From 6f142a188e57267e6b86d7ffee191e9aa97e4d9c Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Tue, 26 May 2026 11:19:59 -0700 Subject: [PATCH 1/6] Comparison aid --- scripts/compare-standalone-to-monorepo.sh | 141 ++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100755 scripts/compare-standalone-to-monorepo.sh diff --git a/scripts/compare-standalone-to-monorepo.sh b/scripts/compare-standalone-to-monorepo.sh new file mode 100755 index 000000000..139eb1b38 --- /dev/null +++ b/scripts/compare-standalone-to-monorepo.sh @@ -0,0 +1,141 @@ +#!/bin/sh +# compare-standalone-to-monorepo.sh +# +# Compare POM, Java source, and Java properties files between the +# standalone copilot-sdk-java repo and the monorepo's java/ directory. +# +# Usage: +# ./scripts/compare-standalone-to-monorepo.sh /path/to/standalone /path/to/monorepo [--diff] +# +# The standalone path should point to the root of copilot-sdk-java. +# The monorepo path should point to the root of copilot-sdk (the java/ subdir +# is appended automatically). +# +# Compatible with macOS zsh and POSIX sh/bash. + +set -e + +# ── Parse arguments ────────────────────────────────────────────────── +SHOW_DIFF=false +STANDALONE="" +MONOREPO="" + +for arg in "$@"; do + case "$arg" in + --diff) + SHOW_DIFF=true + ;; + *) + if [ -z "$STANDALONE" ]; then + STANDALONE="$arg" + elif [ -z "$MONOREPO" ]; then + MONOREPO="$arg" + else + echo "Error: unexpected argument: $arg" >&2 + echo "Usage: $0 [--diff]" >&2 + exit 1 + fi + ;; + esac +done + +if [ -z "$STANDALONE" ] || [ -z "$MONOREPO" ]; then + echo "Usage: $0 [--diff]" >&2 + exit 1 +fi + +MONO_JAVA="${MONOREPO}/java" + +if [ ! -d "$STANDALONE" ]; then + echo "Error: standalone directory does not exist: $STANDALONE" >&2 + exit 1 +fi + +if [ ! -d "$MONO_JAVA" ]; then + echo "Error: monorepo java directory does not exist: $MONO_JAVA" >&2 + exit 1 +fi + +# ── Collect comparable files from the standalone repo ──────────────── +# Excludes: target/, node_modules/, temporary-prompts/, scripts/codegen/ +# (these are build artifacts or standalone-only content) +TMPFILE=$(mktemp) +trap 'rm -f "$TMPFILE"' EXIT + +(cd "$STANDALONE" && find . -type f \( -name "pom.xml" -o -name "*.java" -o -name "*.properties" \) \ + | grep -v '/target/' \ + | grep -v '/node_modules/' \ + | grep -v '^\./temporary-prompts/' \ + | grep -v '^\./scripts/codegen/' \ + | sed 's|^\./||' \ + | sort) > "$TMPFILE" + +# ── Compare ────────────────────────────────────────────────────────── +DIFFER_COUNT=0 +MISSING_COUNT=0 +SAME_COUNT=0 +DIFFER_LIST="" +MISSING_LIST="" + +while IFS= read -r relpath; do + standalone_file="${STANDALONE}/${relpath}" + mono_file="${MONO_JAVA}/${relpath}" + + if [ ! -f "$mono_file" ]; then + MISSING_COUNT=$((MISSING_COUNT + 1)) + MISSING_LIST="${MISSING_LIST}${relpath} +" + elif ! diff -q "$standalone_file" "$mono_file" >/dev/null 2>&1; then + DIFFER_COUNT=$((DIFFER_COUNT + 1)) + DIFFER_LIST="${DIFFER_LIST}${relpath} +" + else + SAME_COUNT=$((SAME_COUNT + 1)) + fi +done < "$TMPFILE" + +TOTAL_COUNT=$(wc -l < "$TMPFILE" | tr -d ' ') + +# ── Output ─────────────────────────────────────────────────────────── +echo "Compared ${TOTAL_COUNT} files (pom.xml, *.java, *.properties)" +echo " Identical: ${SAME_COUNT}" +echo " Differ: ${DIFFER_COUNT}" +echo " Missing from monorepo: ${MISSING_COUNT}" +echo "" + +if [ "$DIFFER_COUNT" -gt 0 ]; then + echo "The following files differ between the standalone and monorepo:" + echo "" + printf '%s' "$DIFFER_LIST" | while IFS= read -r f; do + [ -n "$f" ] && echo " $f" + done + echo "" +fi + +if [ "$MISSING_COUNT" -gt 0 ]; then + echo "The following files exist in standalone but NOT in monorepo:" + echo "" + printf '%s' "$MISSING_LIST" | while IFS= read -r f; do + [ -n "$f" ] && echo " $f" + done + echo "" +fi + +if [ "$DIFFER_COUNT" -eq 0 ] && [ "$MISSING_COUNT" -eq 0 ]; then + echo "All files are identical." +fi + +# ── Optional unified diffs ─────────────────────────────────────────── +if [ "$SHOW_DIFF" = true ] && [ "$DIFFER_COUNT" -gt 0 ]; then + echo "================================================================================" + echo "Unified diffs for differing files:" + echo "================================================================================" + printf '%s' "$DIFFER_LIST" | while IFS= read -r f; do + if [ -n "$f" ]; then + echo "" + echo "--- standalone/$f" + echo "+++ monorepo/java/$f" + diff -u "${STANDALONE}/${f}" "${MONO_JAVA}/${f}" || true + fi + done +fi From d37974c3783f96b463a19a3ce7c0c6ebd8bbaaed Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Tue, 26 May 2026 11:44:14 -0700 Subject: [PATCH 2/6] On branch edburns/ghcp-sp-115-java-repackage working toward https://github.com/github/copilot-sdk/issues/1434 . modified: src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java modified: src/test/java/com/github/copilot/sdk/E2ETestContext.java modified: src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java - Back sync from monorepo to standalone. --- .../copilot/sdk/DocumentationSamplesTest.java | 6 -- .../github/copilot/sdk/E2ETestContext.java | 7 +++ .../github/copilot/sdk/McpAndAgentsTest.java | 60 ++++++++++++------- 3 files changed, 46 insertions(+), 27 deletions(-) diff --git a/src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java b/src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java index bb8a6f07e..941fcf592 100644 --- a/src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java +++ b/src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java @@ -7,7 +7,6 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.List; -import java.util.stream.Stream; import org.junit.jupiter.api.Test; @@ -135,11 +134,6 @@ private static List documentationFiles() throws IOException { List files = new ArrayList<>(); files.add(root.resolve("README.md")); files.add(root.resolve("jbang-example.java")); - - try (Stream markdownFiles = Files.walk(root.resolve("src/site/markdown"))) { - markdownFiles.filter(Files::isRegularFile).filter(path -> path.toString().endsWith(".md")) - .forEach(files::add); - } return files; } } diff --git a/src/test/java/com/github/copilot/sdk/E2ETestContext.java b/src/test/java/com/github/copilot/sdk/E2ETestContext.java index 9680148ff..f75eaa689 100644 --- a/src/test/java/com/github/copilot/sdk/E2ETestContext.java +++ b/src/test/java/com/github/copilot/sdk/E2ETestContext.java @@ -121,6 +121,13 @@ public Path getWorkDir() { return workDir; } + /** + * Gets the repository root for locating shared test assets. + */ + public Path getRepoRoot() { + return repoRoot; + } + /** * Gets the proxy URL. */ diff --git a/src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java b/src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java index 03f989f5b..3b8f8a00b 100644 --- a/src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java +++ b/src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java @@ -6,6 +6,7 @@ import static org.junit.jupiter.api.Assertions.*; +import java.nio.file.Path; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -17,6 +18,7 @@ import org.junit.jupiter.api.Test; import com.github.copilot.sdk.generated.AssistantMessageEvent; +import com.github.copilot.sdk.generated.rpc.McpServerStatus; import com.github.copilot.sdk.json.CustomAgentConfig; import com.github.copilot.sdk.json.DefaultAgentConfig; import com.github.copilot.sdk.json.McpServerConfig; @@ -51,9 +53,33 @@ static void teardown() throws Exception { } } - // Helper method to create an MCP stdio server configuration - private McpStdioServerConfig createLocalMcpServer(String command, List args) { - return new McpStdioServerConfig().setCommand(command).setArgs(args).setTools(List.of("*")); + private Map createTestMcpServers(String... serverNames) { + Map servers = new HashMap<>(); + for (String serverName : serverNames) { + servers.put(serverName, createTestMcpServer()); + } + return servers; + } + + private McpStdioServerConfig createTestMcpServer() { + Path harnessDir = ctx.getRepoRoot().resolve("test").resolve("harness"); + return new McpStdioServerConfig().setCommand("node") + .setArgs(List.of(harnessDir.resolve("test-mcp-server.mjs").toString())) + .setWorkingDirectory(harnessDir.toString()).setTools(List.of("*")); + } + + private void waitForMcpServerStatus(CopilotSession session, String serverName, McpServerStatus expectedStatus) + throws Exception { + long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(60); + while (System.nanoTime() < deadline) { + var result = session.getRpc().mcp.list().get(5, TimeUnit.SECONDS); + if (result.servers() != null && result.servers().stream() + .anyMatch(server -> serverName.equals(server.name()) && expectedStatus == server.status())) { + return; + } + Thread.sleep(200); + } + fail(serverName + " did not reach " + expectedStatus); } // ============ MCP Server Tests ============ @@ -68,8 +94,7 @@ private McpStdioServerConfig createLocalMcpServer(String command, List a void testShouldAcceptMcpServerConfigurationOnSessionCreate() throws Exception { ctx.configureForTest("mcp_and_agents", "should_accept_mcp_server_configuration_on_session_create"); - var mcpServers = new HashMap(); - mcpServers.put("test-server", createLocalMcpServer("echo", List.of("hello"))); + var mcpServers = createTestMcpServers("test-server"); try (CopilotClient client = ctx.createClient()) { CopilotSession session = client.createSession( @@ -77,6 +102,7 @@ void testShouldAcceptMcpServerConfigurationOnSessionCreate() throws Exception { .get(); assertNotNull(session.getSessionId()); + waitForMcpServerStatus(session, "test-server", McpServerStatus.CONNECTED); // Simple interaction to verify session works AssistantMessageEvent response = session.sendAndWait(new MessageOptions().setPrompt("What is 2+2?")).get(60, @@ -108,20 +134,13 @@ void testShouldAcceptMcpServerConfigurationOnSessionResume() throws Exception { session1.sendAndWait(new MessageOptions().setPrompt("What is 1+1?")).get(60, TimeUnit.SECONDS); // Resume with MCP servers - var mcpServers = new HashMap(); - mcpServers.put("test-server", createLocalMcpServer("echo", List.of("hello"))); + var mcpServers = createTestMcpServers("test-server"); CopilotSession session2 = client.resumeSession(sessionId, new ResumeSessionConfig() .setMcpServers(mcpServers).setOnPermissionRequest(PermissionHandler.APPROVE_ALL)).get(); assertEquals(sessionId, session2.getSessionId()); - - AssistantMessageEvent response = session2.sendAndWait(new MessageOptions().setPrompt("What is 3+3?")) - .get(60, TimeUnit.SECONDS); - - assertNotNull(response); - assertTrue(response.getData().content().contains("6"), - "Response should contain 6: " + response.getData().content()); + waitForMcpServerStatus(session2, "test-server", McpServerStatus.CONNECTED); session2.close(); } @@ -139,9 +158,7 @@ void testShouldHandleMultipleMcpServers() throws Exception { // count ctx.configureForTest("mcp_and_agents", "should_accept_mcp_server_configuration_on_session_create"); - var mcpServers = new HashMap(); - mcpServers.put("server1", createLocalMcpServer("echo", List.of("server1"))); - mcpServers.put("server2", createLocalMcpServer("echo", List.of("server2"))); + var mcpServers = createTestMcpServers("server1", "server2"); try (CopilotClient client = ctx.createClient()) { CopilotSession session = client.createSession( @@ -149,6 +166,8 @@ void testShouldHandleMultipleMcpServers() throws Exception { .get(); assertNotNull(session.getSessionId()); + waitForMcpServerStatus(session, "server1", McpServerStatus.CONNECTED); + waitForMcpServerStatus(session, "server2", McpServerStatus.CONNECTED); session.close(); } } @@ -296,8 +315,7 @@ void testShouldAcceptCustomAgentWithMcpServers() throws Exception { // Use combined snapshot since this uses both MCP servers and custom agents ctx.configureForTest("mcp_and_agents", "should_accept_both_mcp_servers_and_custom_agents"); - var agentMcpServers = new HashMap(); - agentMcpServers.put("agent-server", createLocalMcpServer("echo", List.of("agent-mcp"))); + var agentMcpServers = createTestMcpServers("agent-server"); List customAgents = List.of(new CustomAgentConfig().setName("mcp-agent") .setDisplayName("MCP Agent").setDescription("An agent with its own MCP servers") @@ -350,8 +368,7 @@ void testShouldAcceptMultipleCustomAgents() throws Exception { void testShouldAcceptBothMcpServersAndCustomAgents() throws Exception { ctx.configureForTest("mcp_and_agents", "should_accept_both_mcp_servers_and_custom_agents"); - var mcpServers = new HashMap(); - mcpServers.put("shared-server", createLocalMcpServer("echo", List.of("shared"))); + var mcpServers = createTestMcpServers("shared-server"); List customAgents = List.of(new CustomAgentConfig().setName("combined-agent") .setDisplayName("Combined Agent").setDescription("An agent using shared MCP servers") @@ -362,6 +379,7 @@ void testShouldAcceptBothMcpServersAndCustomAgents() throws Exception { .setCustomAgents(customAgents).setOnPermissionRequest(PermissionHandler.APPROVE_ALL)).get(); assertNotNull(session.getSessionId()); + waitForMcpServerStatus(session, "shared-server", McpServerStatus.CONNECTED); AssistantMessageEvent response = session.sendAndWait(new MessageOptions().setPrompt("What is 7+7?")).get(60, TimeUnit.SECONDS); From 29df68449ca5e5282418ba69d92ff0b419bca8c2 Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Tue, 26 May 2026 12:02:28 -0700 Subject: [PATCH 3/6] On branch edburns/ghcp-sp-115-java-repackage Complete the repackage modified: .github/copilot-instructions.md modified: .github/prompts/agentic-merge-reference-impl.prompt.md modified: CHANGELOG.md modified: README.md modified: config/spotbugs/spotbugs-exclude.xml modified: jbang-example.java modified: pom.xml modified: scripts/codegen/java.ts deleted: src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AbortReason.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java deleted: src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java deleted: src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java deleted: src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java deleted: src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java deleted: src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java deleted: src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java deleted: src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java deleted: src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java deleted: src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java deleted: src/generated/java/com/github/copilot/sdk/generated/HookEndError.java deleted: src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpServerStatusChangedStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java deleted: src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServerStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedKind.java deleted: src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java deleted: src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java deleted: src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java deleted: src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java deleted: src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SkillSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java deleted: src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java deleted: src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java deleted: src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java deleted: src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java deleted: src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java deleted: src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java deleted: src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java deleted: src/main/java/com/github/copilot/sdk/CliServerManager.java deleted: src/main/java/com/github/copilot/sdk/ConnectionState.java deleted: src/main/java/com/github/copilot/sdk/CopilotClient.java deleted: src/main/java/com/github/copilot/sdk/CopilotSession.java deleted: src/main/java/com/github/copilot/sdk/EventErrorHandler.java deleted: src/main/java/com/github/copilot/sdk/EventErrorPolicy.java deleted: src/main/java/com/github/copilot/sdk/ExtractedTransforms.java deleted: src/main/java/com/github/copilot/sdk/JsonRpcClient.java deleted: src/main/java/com/github/copilot/sdk/JsonRpcException.java deleted: src/main/java/com/github/copilot/sdk/LifecycleEventManager.java deleted: src/main/java/com/github/copilot/sdk/LoggingHelpers.java deleted: src/main/java/com/github/copilot/sdk/RpcHandlerDispatcher.java deleted: src/main/java/com/github/copilot/sdk/SdkProtocolVersion.java deleted: src/main/java/com/github/copilot/sdk/SessionRequestBuilder.java deleted: src/main/java/com/github/copilot/sdk/SystemMessageMode.java deleted: src/main/java/com/github/copilot/sdk/json/AgentInfo.java deleted: src/main/java/com/github/copilot/sdk/json/Attachment.java deleted: src/main/java/com/github/copilot/sdk/json/AutoModeSwitchHandler.java deleted: src/main/java/com/github/copilot/sdk/json/AutoModeSwitchInvocation.java deleted: src/main/java/com/github/copilot/sdk/json/AutoModeSwitchRequest.java deleted: src/main/java/com/github/copilot/sdk/json/AutoModeSwitchResponse.java deleted: src/main/java/com/github/copilot/sdk/json/AzureOptions.java deleted: src/main/java/com/github/copilot/sdk/json/BlobAttachment.java deleted: src/main/java/com/github/copilot/sdk/json/CloudSessionOptions.java deleted: src/main/java/com/github/copilot/sdk/json/CloudSessionRepository.java deleted: src/main/java/com/github/copilot/sdk/json/CommandContext.java deleted: src/main/java/com/github/copilot/sdk/json/CommandDefinition.java deleted: src/main/java/com/github/copilot/sdk/json/CommandHandler.java deleted: src/main/java/com/github/copilot/sdk/json/CommandWireDefinition.java deleted: src/main/java/com/github/copilot/sdk/json/CopilotClientOptions.java deleted: src/main/java/com/github/copilot/sdk/json/CreateSessionRequest.java deleted: src/main/java/com/github/copilot/sdk/json/CreateSessionResponse.java deleted: src/main/java/com/github/copilot/sdk/json/CustomAgentConfig.java deleted: src/main/java/com/github/copilot/sdk/json/DefaultAgentConfig.java deleted: src/main/java/com/github/copilot/sdk/json/DeleteSessionResponse.java deleted: src/main/java/com/github/copilot/sdk/json/ElicitationContext.java deleted: src/main/java/com/github/copilot/sdk/json/ElicitationHandler.java deleted: src/main/java/com/github/copilot/sdk/json/ElicitationParams.java deleted: src/main/java/com/github/copilot/sdk/json/ElicitationResult.java deleted: src/main/java/com/github/copilot/sdk/json/ElicitationResultAction.java deleted: src/main/java/com/github/copilot/sdk/json/ElicitationSchema.java deleted: src/main/java/com/github/copilot/sdk/json/ExitPlanModeHandler.java deleted: src/main/java/com/github/copilot/sdk/json/ExitPlanModeInvocation.java deleted: src/main/java/com/github/copilot/sdk/json/ExitPlanModeRequest.java deleted: src/main/java/com/github/copilot/sdk/json/ExitPlanModeResult.java deleted: src/main/java/com/github/copilot/sdk/json/GetAuthStatusResponse.java deleted: src/main/java/com/github/copilot/sdk/json/GetForegroundSessionResponse.java deleted: src/main/java/com/github/copilot/sdk/json/GetLastSessionIdResponse.java deleted: src/main/java/com/github/copilot/sdk/json/GetMessagesResponse.java deleted: src/main/java/com/github/copilot/sdk/json/GetModelsResponse.java deleted: src/main/java/com/github/copilot/sdk/json/GetSessionMetadataResponse.java deleted: src/main/java/com/github/copilot/sdk/json/GetStatusResponse.java deleted: src/main/java/com/github/copilot/sdk/json/HookInvocation.java deleted: src/main/java/com/github/copilot/sdk/json/InfiniteSessionConfig.java deleted: src/main/java/com/github/copilot/sdk/json/InputOptions.java deleted: src/main/java/com/github/copilot/sdk/json/JsonRpcError.java deleted: src/main/java/com/github/copilot/sdk/json/JsonRpcRequest.java deleted: src/main/java/com/github/copilot/sdk/json/JsonRpcResponse.java deleted: src/main/java/com/github/copilot/sdk/json/ListSessionsResponse.java deleted: src/main/java/com/github/copilot/sdk/json/McpHttpServerConfig.java deleted: src/main/java/com/github/copilot/sdk/json/McpServerConfig.java deleted: src/main/java/com/github/copilot/sdk/json/McpStdioServerConfig.java deleted: src/main/java/com/github/copilot/sdk/json/MessageAttachment.java deleted: src/main/java/com/github/copilot/sdk/json/MessageOptions.java deleted: src/main/java/com/github/copilot/sdk/json/ModelBilling.java deleted: src/main/java/com/github/copilot/sdk/json/ModelCapabilities.java deleted: src/main/java/com/github/copilot/sdk/json/ModelCapabilitiesOverride.java deleted: src/main/java/com/github/copilot/sdk/json/ModelInfo.java deleted: src/main/java/com/github/copilot/sdk/json/ModelLimits.java deleted: src/main/java/com/github/copilot/sdk/json/ModelPolicy.java deleted: src/main/java/com/github/copilot/sdk/json/ModelSupports.java deleted: src/main/java/com/github/copilot/sdk/json/ModelVisionLimits.java deleted: src/main/java/com/github/copilot/sdk/json/PermissionHandler.java deleted: src/main/java/com/github/copilot/sdk/json/PermissionInvocation.java deleted: src/main/java/com/github/copilot/sdk/json/PermissionRequest.java deleted: src/main/java/com/github/copilot/sdk/json/PermissionRequestResult.java deleted: src/main/java/com/github/copilot/sdk/json/PermissionRequestResultKind.java deleted: src/main/java/com/github/copilot/sdk/json/PingResponse.java deleted: src/main/java/com/github/copilot/sdk/json/PostToolUseHandler.java deleted: src/main/java/com/github/copilot/sdk/json/PostToolUseHookInput.java deleted: src/main/java/com/github/copilot/sdk/json/PostToolUseHookOutput.java deleted: src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHandler.java deleted: src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookInput.java deleted: src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookOutput.java deleted: src/main/java/com/github/copilot/sdk/json/PreToolUseHandler.java deleted: src/main/java/com/github/copilot/sdk/json/PreToolUseHookInput.java deleted: src/main/java/com/github/copilot/sdk/json/PreToolUseHookOutput.java deleted: src/main/java/com/github/copilot/sdk/json/ProviderConfig.java deleted: src/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java deleted: src/main/java/com/github/copilot/sdk/json/ResumeSessionRequest.java deleted: src/main/java/com/github/copilot/sdk/json/ResumeSessionResponse.java deleted: src/main/java/com/github/copilot/sdk/json/SectionOverride.java deleted: src/main/java/com/github/copilot/sdk/json/SectionOverrideAction.java deleted: src/main/java/com/github/copilot/sdk/json/SendMessageRequest.java deleted: src/main/java/com/github/copilot/sdk/json/SendMessageResponse.java deleted: src/main/java/com/github/copilot/sdk/json/SessionCapabilities.java deleted: src/main/java/com/github/copilot/sdk/json/SessionConfig.java deleted: src/main/java/com/github/copilot/sdk/json/SessionContext.java deleted: src/main/java/com/github/copilot/sdk/json/SessionEndHandler.java deleted: src/main/java/com/github/copilot/sdk/json/SessionEndHookInput.java deleted: src/main/java/com/github/copilot/sdk/json/SessionEndHookOutput.java deleted: src/main/java/com/github/copilot/sdk/json/SessionHooks.java deleted: src/main/java/com/github/copilot/sdk/json/SessionLifecycleEvent.java deleted: src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventMetadata.java deleted: src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventTypes.java deleted: src/main/java/com/github/copilot/sdk/json/SessionLifecycleHandler.java deleted: src/main/java/com/github/copilot/sdk/json/SessionListFilter.java deleted: src/main/java/com/github/copilot/sdk/json/SessionMetadata.java deleted: src/main/java/com/github/copilot/sdk/json/SessionStartHandler.java deleted: src/main/java/com/github/copilot/sdk/json/SessionStartHookInput.java deleted: src/main/java/com/github/copilot/sdk/json/SessionStartHookOutput.java deleted: src/main/java/com/github/copilot/sdk/json/SessionUiApi.java deleted: src/main/java/com/github/copilot/sdk/json/SessionUiCapabilities.java deleted: src/main/java/com/github/copilot/sdk/json/SetForegroundSessionRequest.java deleted: src/main/java/com/github/copilot/sdk/json/SetForegroundSessionResponse.java deleted: src/main/java/com/github/copilot/sdk/json/SystemMessageConfig.java deleted: src/main/java/com/github/copilot/sdk/json/SystemPromptSections.java deleted: src/main/java/com/github/copilot/sdk/json/TelemetryConfig.java deleted: src/main/java/com/github/copilot/sdk/json/ToolBinaryResult.java deleted: src/main/java/com/github/copilot/sdk/json/ToolDefinition.java deleted: src/main/java/com/github/copilot/sdk/json/ToolHandler.java deleted: src/main/java/com/github/copilot/sdk/json/ToolInvocation.java deleted: src/main/java/com/github/copilot/sdk/json/ToolResultObject.java deleted: src/main/java/com/github/copilot/sdk/json/UserInputHandler.java deleted: src/main/java/com/github/copilot/sdk/json/UserInputInvocation.java deleted: src/main/java/com/github/copilot/sdk/json/UserInputRequest.java deleted: src/main/java/com/github/copilot/sdk/json/UserInputResponse.java deleted: src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHandler.java deleted: src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookInput.java deleted: src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookOutput.java deleted: src/main/java/com/github/copilot/sdk/json/package-info.java deleted: src/main/java/com/github/copilot/sdk/package-info.java modified: src/main/java/module-info.java modified: src/site/markdown/advanced.md modified: src/site/markdown/cookbook/error-handling.md modified: src/site/markdown/cookbook/managing-local-files.md modified: src/site/markdown/cookbook/multiple-sessions.md modified: src/site/markdown/cookbook/persisting-sessions.md modified: src/site/markdown/cookbook/pr-visualization.md modified: src/site/markdown/documentation.md modified: src/site/markdown/getting-started.md modified: src/site/markdown/hooks.md modified: src/site/markdown/index.md deleted: src/test/java/com/github/copilot/sdk/AgentInfoTest.java deleted: src/test/java/com/github/copilot/sdk/AskUserTest.java deleted: src/test/java/com/github/copilot/sdk/CapiProxy.java deleted: src/test/java/com/github/copilot/sdk/CliServerManagerTest.java deleted: src/test/java/com/github/copilot/sdk/ClosedSessionGuardTest.java deleted: src/test/java/com/github/copilot/sdk/CommandsTest.java deleted: src/test/java/com/github/copilot/sdk/CompactionTest.java deleted: src/test/java/com/github/copilot/sdk/ConfigCloneTest.java deleted: src/test/java/com/github/copilot/sdk/CopilotClientTest.java deleted: src/test/java/com/github/copilot/sdk/CopilotSessionTest.java deleted: src/test/java/com/github/copilot/sdk/DataObjectCoverageTest.java deleted: src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java deleted: src/test/java/com/github/copilot/sdk/E2ETestContext.java deleted: src/test/java/com/github/copilot/sdk/ElicitationTest.java deleted: src/test/java/com/github/copilot/sdk/ErrorHandlingTest.java deleted: src/test/java/com/github/copilot/sdk/EventFidelityTest.java deleted: src/test/java/com/github/copilot/sdk/ExecutorWiringTest.java deleted: src/test/java/com/github/copilot/sdk/ForwardCompatibilityTest.java deleted: src/test/java/com/github/copilot/sdk/HooksTest.java deleted: src/test/java/com/github/copilot/sdk/JsonIncludeNonNullTest.java deleted: src/test/java/com/github/copilot/sdk/JsonRpcClientTest.java deleted: src/test/java/com/github/copilot/sdk/LifecycleEventManagerTest.java deleted: src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java deleted: src/test/java/com/github/copilot/sdk/MessageAttachmentTest.java deleted: src/test/java/com/github/copilot/sdk/MetadataApiTest.java deleted: src/test/java/com/github/copilot/sdk/ModeHandlersTest.java deleted: src/test/java/com/github/copilot/sdk/ModelInfoTest.java deleted: src/test/java/com/github/copilot/sdk/ModuleDescriptorTest.java deleted: src/test/java/com/github/copilot/sdk/OptionalApiAndJacksonTest.java deleted: src/test/java/com/github/copilot/sdk/PerSessionAuthTest.java deleted: src/test/java/com/github/copilot/sdk/PermissionRequestResultKindTest.java deleted: src/test/java/com/github/copilot/sdk/PermissionsTest.java deleted: src/test/java/com/github/copilot/sdk/PreMcpToolCallHookTest.java deleted: src/test/java/com/github/copilot/sdk/ProviderConfigTest.java deleted: src/test/java/com/github/copilot/sdk/RemoteSessionTest.java deleted: src/test/java/com/github/copilot/sdk/RpcHandlerDispatcherTest.java deleted: src/test/java/com/github/copilot/sdk/RpcWrappersTest.java deleted: src/test/java/com/github/copilot/sdk/SchedulerShutdownRaceTest.java deleted: src/test/java/com/github/copilot/sdk/SessionConfigE2ETest.java deleted: src/test/java/com/github/copilot/sdk/SessionEventDeserializationTest.java deleted: src/test/java/com/github/copilot/sdk/SessionEventHandlingTest.java deleted: src/test/java/com/github/copilot/sdk/SessionEventsE2ETest.java deleted: src/test/java/com/github/copilot/sdk/SessionHandlerTest.java deleted: src/test/java/com/github/copilot/sdk/SessionRequestBuilderTest.java deleted: src/test/java/com/github/copilot/sdk/SkillsTest.java deleted: src/test/java/com/github/copilot/sdk/StreamingFidelityTest.java deleted: src/test/java/com/github/copilot/sdk/TelemetryConfigTest.java deleted: src/test/java/com/github/copilot/sdk/TestUtil.java deleted: src/test/java/com/github/copilot/sdk/TimeoutEdgeCaseTest.java deleted: src/test/java/com/github/copilot/sdk/ToolInvocationTest.java deleted: src/test/java/com/github/copilot/sdk/ToolResultsTest.java deleted: src/test/java/com/github/copilot/sdk/ToolsTest.java deleted: src/test/java/com/github/copilot/sdk/ZeroTimeoutContractTest.java deleted: src/test/java/com/github/copilot/sdk/generated/GeneratedEventTypesCoverageTest.java deleted: src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcApiCoverageTest.java deleted: src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcRecordsCoverageTest.java modified: src/test/resources/logging-debug.properties modified: src/test/resources/logging.properties Untracked files: (use "git add ..." to include in what will be committed) src/generated/java/com/github/copilot/generated/ src/main/java/com/github/copilot/CliServerManager.java src/main/java/com/github/copilot/ConnectionState.java src/main/java/com/github/copilot/CopilotClient.java src/main/java/com/github/copilot/CopilotSession.java src/main/java/com/github/copilot/EventErrorHandler.java src/main/java/com/github/copilot/EventErrorPolicy.java src/main/java/com/github/copilot/ExtractedTransforms.java src/main/java/com/github/copilot/JsonRpcClient.java src/main/java/com/github/copilot/JsonRpcException.java src/main/java/com/github/copilot/LifecycleEventManager.java src/main/java/com/github/copilot/LoggingHelpers.java src/main/java/com/github/copilot/RpcHandlerDispatcher.java src/main/java/com/github/copilot/SdkProtocolVersion.java src/main/java/com/github/copilot/SessionRequestBuilder.java src/main/java/com/github/copilot/SystemMessageMode.java src/main/java/com/github/copilot/package-info.java src/main/java/com/github/copilot/rpc/ src/test/java/com/github/copilot/AgentInfoTest.java src/test/java/com/github/copilot/AskUserTest.java src/test/java/com/github/copilot/CapiProxy.java src/test/java/com/github/copilot/CliServerManagerTest.java src/test/java/com/github/copilot/ClosedSessionGuardTest.java src/test/java/com/github/copilot/CommandsTest.java src/test/java/com/github/copilot/CompactionTest.java src/test/java/com/github/copilot/ConfigCloneTest.java src/test/java/com/github/copilot/CopilotClientTest.java src/test/java/com/github/copilot/CopilotSessionTest.java src/test/java/com/github/copilot/DataObjectCoverageTest.java src/test/java/com/github/copilot/DocumentationSamplesTest.java src/test/java/com/github/copilot/E2ETestContext.java src/test/java/com/github/copilot/ElicitationTest.java src/test/java/com/github/copilot/ErrorHandlingTest.java src/test/java/com/github/copilot/EventFidelityTest.java src/test/java/com/github/copilot/ExecutorWiringTest.java src/test/java/com/github/copilot/ForwardCompatibilityTest.java src/test/java/com/github/copilot/HooksTest.java src/test/java/com/github/copilot/JsonIncludeNonNullTest.java src/test/java/com/github/copilot/JsonRpcClientTest.java src/test/java/com/github/copilot/LifecycleEventManagerTest.java src/test/java/com/github/copilot/McpAndAgentsTest.java src/test/java/com/github/copilot/MessageAttachmentTest.java src/test/java/com/github/copilot/MetadataApiTest.java src/test/java/com/github/copilot/ModeHandlersTest.java src/test/java/com/github/copilot/ModelInfoTest.java src/test/java/com/github/copilot/ModuleDescriptorTest.java src/test/java/com/github/copilot/OptionalApiAndJacksonTest.java src/test/java/com/github/copilot/PerSessionAuthTest.java src/test/java/com/github/copilot/PermissionRequestResultKindTest.java src/test/java/com/github/copilot/PermissionsTest.java src/test/java/com/github/copilot/PreMcpToolCallHookTest.java src/test/java/com/github/copilot/ProviderConfigTest.java src/test/java/com/github/copilot/RemoteSessionTest.java src/test/java/com/github/copilot/RpcHandlerDispatcherTest.java src/test/java/com/github/copilot/RpcWrappersTest.java src/test/java/com/github/copilot/SchedulerShutdownRaceTest.java src/test/java/com/github/copilot/SessionConfigE2ETest.java src/test/java/com/github/copilot/SessionEventDeserializationTest.java src/test/java/com/github/copilot/SessionEventHandlingTest.java src/test/java/com/github/copilot/SessionEventsE2ETest.java src/test/java/com/github/copilot/SessionHandlerTest.java src/test/java/com/github/copilot/SessionRequestBuilderTest.java src/test/java/com/github/copilot/SkillsTest.java src/test/java/com/github/copilot/StreamingFidelityTest.java src/test/java/com/github/copilot/TelemetryConfigTest.java src/test/java/com/github/copilot/TestUtil.java src/test/java/com/github/copilot/TimeoutEdgeCaseTest.java src/test/java/com/github/copilot/ToolInvocationTest.java src/test/java/com/github/copilot/ToolResultsTest.java src/test/java/com/github/copilot/ToolsTest.java src/test/java/com/github/copilot/ZeroTimeoutContractTest.java src/test/java/com/github/copilot/generated/ Signed-off-by: Ed Burns --- .github/copilot-instructions.md | 6 +- .../agentic-merge-reference-impl.prompt.md | 2 +- CHANGELOG.md | 2 +- README.md | 14 +- config/spotbugs/spotbugs-exclude.xml | 4 +- jbang-example.java | 12 +- pom.xml | 6 +- scripts/codegen/java.ts | 6 +- .../{sdk => }/generated/AbortEvent.java | 2 +- .../{sdk => }/generated/AbortReason.java | 2 +- .../generated/AssistantIntentEvent.java | 2 +- .../generated/AssistantMessageDeltaEvent.java | 2 +- .../generated/AssistantMessageEvent.java | 2 +- .../generated/AssistantMessageStartEvent.java | 2 +- .../AssistantMessageToolRequest.java | 2 +- .../AssistantMessageToolRequestType.java | 2 +- .../AssistantReasoningDeltaEvent.java | 2 +- .../generated/AssistantReasoningEvent.java | 2 +- .../AssistantStreamingDeltaEvent.java | 2 +- .../generated/AssistantTurnEndEvent.java | 2 +- .../generated/AssistantTurnStartEvent.java | 2 +- .../generated/AssistantUsageApiEndpoint.java | 2 +- .../generated/AssistantUsageCopilotUsage.java | 2 +- ...AssistantUsageCopilotUsageTokenDetail.java | 2 +- .../generated/AssistantUsageEvent.java | 2 +- .../AssistantUsageQuotaSnapshot.java | 2 +- .../AutoModeSwitchCompletedEvent.java | 2 +- .../AutoModeSwitchRequestedEvent.java | 2 +- .../generated/AutoModeSwitchResponse.java | 2 +- .../generated/CapabilitiesChangedEvent.java | 2 +- .../generated/CapabilitiesChangedUI.java | 2 +- .../generated/CommandCompletedEvent.java | 2 +- .../generated/CommandExecuteEvent.java | 2 +- .../generated/CommandQueuedEvent.java | 2 +- .../generated/CommandsChangedCommand.java | 2 +- .../generated/CommandsChangedEvent.java | 2 +- ...ompactionCompleteCompactionTokensUsed.java | 2 +- ...pleteCompactionTokensUsedCopilotUsage.java | 2 +- ...tionTokensUsedCopilotUsageTokenDetail.java | 2 +- .../generated/CustomAgentsUpdatedAgent.java | 2 +- .../generated/ElicitationCompletedAction.java | 2 +- .../generated/ElicitationCompletedEvent.java | 2 +- .../generated/ElicitationRequestedEvent.java | 2 +- .../generated/ElicitationRequestedMode.java | 2 +- .../generated/ElicitationRequestedSchema.java | 2 +- .../generated/ExitPlanModeAction.java | 2 +- .../generated/ExitPlanModeCompletedEvent.java | 2 +- .../generated/ExitPlanModeRequestedEvent.java | 2 +- .../generated/ExtensionsLoadedExtension.java | 2 +- .../ExtensionsLoadedExtensionSource.java | 2 +- .../ExtensionsLoadedExtensionStatus.java | 2 +- .../generated/ExternalToolCompletedEvent.java | 2 +- .../generated/ExternalToolRequestedEvent.java | 2 +- .../generated/HandoffRepository.java | 2 +- .../generated/HandoffSourceType.java | 2 +- .../{sdk => }/generated/HookEndError.java | 2 +- .../{sdk => }/generated/HookEndEvent.java | 2 +- .../{sdk => }/generated/HookStartEvent.java | 2 +- .../generated/McpOauthCompletedEvent.java | 2 +- .../generated/McpOauthRequiredEvent.java | 2 +- .../McpOauthRequiredStaticClientConfig.java | 2 +- .../{sdk => }/generated/McpServerSource.java | 2 +- .../{sdk => }/generated/McpServerStatus.java | 2 +- .../McpServerStatusChangedStatus.java | 2 +- .../generated/McpServersLoadedServer.java | 2 +- .../McpServersLoadedServerStatus.java | 2 +- .../generated/ModelCallFailureEvent.java | 2 +- .../generated/ModelCallFailureSource.java | 2 +- .../PendingMessagesModifiedEvent.java | 2 +- .../generated/PermissionCompletedEvent.java | 2 +- .../generated/PermissionCompletedKind.java | 2 +- .../generated/PermissionCompletedResult.java | 2 +- .../generated/PermissionRequestedEvent.java | 2 +- .../generated/PlanChangedOperation.java | 2 +- .../{sdk => }/generated/ReasoningSummary.java | 2 +- .../generated/SamplingCompletedEvent.java | 2 +- .../generated/SamplingRequestedEvent.java | 2 +- .../SessionBackgroundTasksChangedEvent.java | 2 +- .../SessionCompactionCompleteEvent.java | 2 +- .../SessionCompactionStartEvent.java | 2 +- .../generated/SessionContextChangedEvent.java | 2 +- .../SessionCustomAgentsUpdatedEvent.java | 2 +- .../SessionCustomNotificationEvent.java | 2 +- .../generated/SessionErrorEvent.java | 2 +- .../{sdk => }/generated/SessionEvent.java | 2 +- .../SessionExtensionsLoadedEvent.java | 2 +- .../generated/SessionHandoffEvent.java | 2 +- .../{sdk => }/generated/SessionIdleEvent.java | 2 +- .../{sdk => }/generated/SessionInfoEvent.java | 2 +- .../SessionMcpServerStatusChangedEvent.java | 2 +- .../SessionMcpServersLoadedEvent.java | 2 +- .../{sdk => }/generated/SessionMode.java | 2 +- .../generated/SessionModeChangedEvent.java | 2 +- .../generated/SessionModelChangeEvent.java | 2 +- .../generated/SessionPlanChangedEvent.java | 2 +- .../SessionRemoteSteerableChangedEvent.java | 2 +- .../generated/SessionResumeEvent.java | 2 +- .../SessionScheduleCancelledEvent.java | 2 +- .../SessionScheduleCreatedEvent.java | 2 +- .../generated/SessionShutdownEvent.java | 2 +- .../generated/SessionSkillsLoadedEvent.java | 2 +- .../generated/SessionSnapshotRewindEvent.java | 2 +- .../generated/SessionStartEvent.java | 2 +- .../generated/SessionTaskCompleteEvent.java | 2 +- .../generated/SessionTitleChangedEvent.java | 2 +- .../generated/SessionToolsUpdatedEvent.java | 2 +- .../generated/SessionTruncationEvent.java | 2 +- .../generated/SessionUsageInfoEvent.java | 2 +- .../generated/SessionWarningEvent.java | 2 +- .../SessionWorkspaceFileChangedEvent.java | 2 +- .../generated/ShutdownCodeChanges.java | 2 +- .../generated/ShutdownModelMetric.java | 2 +- .../ShutdownModelMetricRequests.java | 2 +- .../ShutdownModelMetricTokenDetail.java | 2 +- .../generated/ShutdownModelMetricUsage.java | 2 +- .../generated/ShutdownTokenDetail.java | 2 +- .../{sdk => }/generated/ShutdownType.java | 2 +- .../generated/SkillInvokedEvent.java | 2 +- .../{sdk => }/generated/SkillSource.java | 2 +- .../generated/SkillsLoadedSkill.java | 2 +- .../generated/SubagentCompletedEvent.java | 2 +- .../generated/SubagentDeselectedEvent.java | 2 +- .../generated/SubagentFailedEvent.java | 2 +- .../generated/SubagentSelectedEvent.java | 2 +- .../generated/SubagentStartedEvent.java | 2 +- .../generated/SystemMessageEvent.java | 2 +- .../generated/SystemMessageMetadata.java | 2 +- .../generated/SystemMessageRole.java | 2 +- .../generated/SystemNotificationEvent.java | 2 +- .../generated/ToolExecutionCompleteError.java | 2 +- .../generated/ToolExecutionCompleteEvent.java | 2 +- .../ToolExecutionCompleteResult.java | 2 +- .../ToolExecutionPartialResultEvent.java | 2 +- .../generated/ToolExecutionProgressEvent.java | 2 +- .../generated/ToolExecutionStartEvent.java | 2 +- .../generated/ToolUserRequestedEvent.java | 2 +- .../generated/UnknownSessionEvent.java | 2 +- .../generated/UserInputCompletedEvent.java | 2 +- .../generated/UserInputRequestedEvent.java | 2 +- .../generated/UserMessageAgentMode.java | 2 +- .../{sdk => }/generated/UserMessageEvent.java | 2 +- .../generated/WorkingDirectoryContext.java | 2 +- .../WorkingDirectoryContextHostType.java | 2 +- .../WorkspaceFileChangedOperation.java | 2 +- .../{sdk => }/generated/rpc/AbortReason.java | 2 +- .../generated/rpc/AccountGetQuotaResult.java | 2 +- .../generated/rpc/AccountQuotaSnapshot.java | 2 +- .../{sdk => }/generated/rpc/AgentInfo.java | 2 +- .../generated/rpc/AgentInfoSource.java | 2 +- .../{sdk => }/generated/rpc/AuthInfoType.java | 2 +- .../generated/rpc/ConnectParams.java | 2 +- .../generated/rpc/ConnectResult.java | 2 +- .../rpc/ConnectedRemoteSessionMetadata.java | 2 +- .../ConnectedRemoteSessionMetadataKind.java | 2 +- ...nectedRemoteSessionMetadataRepository.java | 2 +- .../generated/rpc/DiscoveredMcpServer.java | 2 +- .../rpc/DiscoveredMcpServerSource.java | 2 +- .../rpc/DiscoveredMcpServerType.java | 2 +- .../generated/rpc/EventsAgentScope.java | 2 +- .../generated/rpc/EventsCursorStatus.java | 2 +- .../{sdk => }/generated/rpc/Extension.java | 2 +- .../generated/rpc/ExtensionSource.java | 2 +- .../generated/rpc/ExtensionStatus.java | 2 +- .../rpc/HistoryCompactContextWindow.java | 2 +- .../generated/rpc/InstalledPlugin.java | 2 +- .../generated/rpc/InstructionsSources.java | 2 +- .../rpc/InstructionsSourcesLocation.java | 2 +- .../rpc/InstructionsSourcesType.java | 2 +- .../generated/rpc/McpConfigAddParams.java | 2 +- .../generated/rpc/McpConfigDisableParams.java | 2 +- .../generated/rpc/McpConfigEnableParams.java | 2 +- .../generated/rpc/McpConfigListResult.java | 2 +- .../generated/rpc/McpConfigRemoveParams.java | 2 +- .../generated/rpc/McpConfigUpdateParams.java | 2 +- .../generated/rpc/McpDiscoverParams.java | 2 +- .../generated/rpc/McpDiscoverResult.java | 2 +- .../rpc/McpExecuteSamplingRequest.java | 2 +- .../rpc/McpExecuteSamplingResult.java | 2 +- .../rpc/McpSamplingExecutionAction.java | 2 +- .../{sdk => }/generated/rpc/McpServer.java | 2 +- .../generated/rpc/McpServerSource.java | 2 +- .../generated/rpc/McpServerStatus.java | 2 +- .../rpc/McpSetEnvValueModeDetails.java | 2 +- .../rpc/MetadataSnapshotCurrentMode.java | 2 +- .../rpc/MetadataSnapshotRemoteMetadata.java | 2 +- ...adataSnapshotRemoteMetadataRepository.java | 2 +- ...etadataSnapshotRemoteMetadataTaskType.java | 2 +- .../{sdk => }/generated/rpc/Model.java | 2 +- .../{sdk => }/generated/rpc/ModelBilling.java | 2 +- .../rpc/ModelBillingTokenPrices.java | 2 +- .../generated/rpc/ModelCapabilities.java | 2 +- .../rpc/ModelCapabilitiesLimits.java | 2 +- .../rpc/ModelCapabilitiesLimitsVision.java | 2 +- .../rpc/ModelCapabilitiesOverride.java | 2 +- .../rpc/ModelCapabilitiesOverrideLimits.java | 2 +- ...ModelCapabilitiesOverrideLimitsVision.java | 2 +- .../ModelCapabilitiesOverrideSupports.java | 2 +- .../rpc/ModelCapabilitiesSupports.java | 2 +- .../generated/rpc/ModelPickerCategory.java | 2 +- .../rpc/ModelPickerPriceCategory.java | 2 +- .../{sdk => }/generated/rpc/ModelPolicy.java | 2 +- .../generated/rpc/ModelPolicyState.java | 2 +- .../generated/rpc/ModelsListResult.java | 2 +- .../rpc/OptionsUpdateEnvValueMode.java | 2 +- .../rpc/PendingPermissionRequest.java | 2 +- .../generated/rpc/PermissionLocationType.java | 2 +- .../generated/rpc/PermissionPathsConfig.java | 2 +- .../generated/rpc/PermissionRule.java | 2 +- .../generated/rpc/PermissionRulesSet.java | 2 +- .../generated/rpc/PermissionUrlsConfig.java | 2 +- ...igureAdditionalContentExclusionPolicy.java | 2 +- ...eAdditionalContentExclusionPolicyRule.java | 2 +- ...ionalContentExclusionPolicyRuleSource.java | 2 +- ...AdditionalContentExclusionPolicyScope.java | 2 +- .../rpc/PermissionsModifyRulesScope.java | 2 +- .../rpc/PermissionsSetApproveAllSource.java | 2 +- .../{sdk => }/generated/rpc/PingParams.java | 2 +- .../{sdk => }/generated/rpc/PingResult.java | 2 +- .../{sdk => }/generated/rpc/Plugin.java | 2 +- .../generated/rpc/QueuePendingItems.java | 2 +- .../generated/rpc/QueuePendingItemsKind.java | 2 +- .../generated/rpc/ReasoningSummary.java | 2 +- .../generated/rpc/RemoteSessionMode.java | 2 +- .../{sdk => }/generated/rpc/RpcCaller.java | 2 +- .../{sdk => }/generated/rpc/RpcMapper.java | 2 +- .../generated/rpc/ScheduleEntry.java | 2 +- .../rpc/SecretsAddFilterValuesParams.java | 2 +- .../rpc/SecretsAddFilterValuesResult.java | 2 +- .../generated/rpc/SendAgentMode.java | 2 +- .../{sdk => }/generated/rpc/SendMode.java | 2 +- .../generated/rpc/ServerAccountApi.java | 2 +- .../{sdk => }/generated/rpc/ServerMcpApi.java | 2 +- .../generated/rpc/ServerMcpConfigApi.java | 2 +- .../generated/rpc/ServerModelsApi.java | 2 +- .../{sdk => }/generated/rpc/ServerRpc.java | 2 +- .../generated/rpc/ServerSecretsApi.java | 2 +- .../generated/rpc/ServerSessionFsApi.java | 2 +- .../generated/rpc/ServerSessionsApi.java | 2 +- .../{sdk => }/generated/rpc/ServerSkill.java | 2 +- .../generated/rpc/ServerSkillsApi.java | 2 +- .../generated/rpc/ServerSkillsConfigApi.java | 2 +- .../generated/rpc/ServerToolsApi.java | 2 +- .../generated/rpc/SessionAbortParams.java | 2 +- .../generated/rpc/SessionAbortResult.java | 2 +- .../generated/rpc/SessionAgentApi.java | 2 +- .../rpc/SessionAgentDeselectParams.java | 2 +- .../rpc/SessionAgentDeselectResult.java | 2 +- .../rpc/SessionAgentGetCurrentParams.java | 2 +- .../rpc/SessionAgentGetCurrentResult.java | 2 +- .../generated/rpc/SessionAgentListParams.java | 2 +- .../generated/rpc/SessionAgentListResult.java | 2 +- .../rpc/SessionAgentReloadParams.java | 2 +- .../rpc/SessionAgentReloadResult.java | 2 +- .../rpc/SessionAgentSelectParams.java | 2 +- .../rpc/SessionAgentSelectResult.java | 2 +- .../generated/rpc/SessionAuthApi.java | 2 +- .../rpc/SessionAuthGetStatusParams.java | 2 +- .../rpc/SessionAuthGetStatusResult.java | 2 +- .../rpc/SessionAuthSetCredentialsParams.java | 2 +- .../rpc/SessionAuthSetCredentialsResult.java | 2 +- .../generated/rpc/SessionCommandsApi.java | 2 +- .../rpc/SessionCommandsEnqueueParams.java | 2 +- .../rpc/SessionCommandsEnqueueResult.java | 2 +- .../rpc/SessionCommandsExecuteParams.java | 2 +- .../rpc/SessionCommandsExecuteResult.java | 2 +- ...ionCommandsHandlePendingCommandParams.java | 2 +- ...ionCommandsHandlePendingCommandResult.java | 2 +- .../rpc/SessionCommandsInvokeParams.java | 2 +- .../rpc/SessionCommandsListParams.java | 2 +- .../rpc/SessionCommandsListResult.java | 2 +- ...nCommandsRespondToQueuedCommandParams.java | 2 +- ...nCommandsRespondToQueuedCommandResult.java | 2 +- .../generated/rpc/SessionContext.java | 2 +- .../generated/rpc/SessionContextHostType.java | 2 +- .../generated/rpc/SessionEventLogApi.java | 2 +- .../rpc/SessionEventLogReadParams.java | 2 +- .../rpc/SessionEventLogReadResult.java | 2 +- ...SessionEventLogRegisterInterestParams.java | 2 +- ...SessionEventLogRegisterInterestResult.java | 2 +- .../SessionEventLogReleaseInterestParams.java | 2 +- .../SessionEventLogReleaseInterestResult.java | 2 +- .../rpc/SessionEventLogTailParams.java | 2 +- .../rpc/SessionEventLogTailResult.java | 2 +- .../generated/rpc/SessionExtensionsApi.java | 2 +- .../rpc/SessionExtensionsDisableParams.java | 2 +- .../rpc/SessionExtensionsDisableResult.java | 2 +- .../rpc/SessionExtensionsEnableParams.java | 2 +- .../rpc/SessionExtensionsEnableResult.java | 2 +- .../rpc/SessionExtensionsListParams.java | 2 +- .../rpc/SessionExtensionsListResult.java | 2 +- .../rpc/SessionExtensionsReloadParams.java | 2 +- .../rpc/SessionExtensionsReloadResult.java | 2 +- .../generated/rpc/SessionFleetApi.java | 2 +- .../rpc/SessionFleetStartParams.java | 2 +- .../rpc/SessionFleetStartResult.java | 2 +- .../rpc/SessionFsAppendFileParams.java | 2 +- .../generated/rpc/SessionFsError.java | 2 +- .../generated/rpc/SessionFsErrorCode.java | 2 +- .../generated/rpc/SessionFsExistsParams.java | 2 +- .../generated/rpc/SessionFsExistsResult.java | 2 +- .../generated/rpc/SessionFsMkdirParams.java | 2 +- .../rpc/SessionFsReadFileParams.java | 2 +- .../rpc/SessionFsReadFileResult.java | 2 +- .../generated/rpc/SessionFsReaddirParams.java | 2 +- .../generated/rpc/SessionFsReaddirResult.java | 2 +- .../rpc/SessionFsReaddirWithTypesEntry.java | 2 +- .../SessionFsReaddirWithTypesEntryType.java | 2 +- .../rpc/SessionFsReaddirWithTypesParams.java | 2 +- .../rpc/SessionFsReaddirWithTypesResult.java | 2 +- .../generated/rpc/SessionFsRenameParams.java | 2 +- .../generated/rpc/SessionFsRmParams.java | 2 +- .../rpc/SessionFsSetProviderCapabilities.java | 2 +- .../rpc/SessionFsSetProviderConventions.java | 2 +- .../rpc/SessionFsSetProviderParams.java | 2 +- .../rpc/SessionFsSetProviderResult.java | 2 +- .../rpc/SessionFsSqliteExistsParams.java | 2 +- .../rpc/SessionFsSqliteExistsResult.java | 2 +- .../rpc/SessionFsSqliteQueryParams.java | 2 +- .../rpc/SessionFsSqliteQueryResult.java | 2 +- .../rpc/SessionFsSqliteQueryType.java | 2 +- .../generated/rpc/SessionFsStatParams.java | 2 +- .../generated/rpc/SessionFsStatResult.java | 2 +- .../rpc/SessionFsWriteFileParams.java | 2 +- ...ionHistoryAbortManualCompactionParams.java | 2 +- ...ionHistoryAbortManualCompactionResult.java | 2 +- .../generated/rpc/SessionHistoryApi.java | 2 +- ...storyCancelBackgroundCompactionParams.java | 2 +- ...storyCancelBackgroundCompactionResult.java | 2 +- .../rpc/SessionHistoryCompactParams.java | 2 +- .../rpc/SessionHistoryCompactResult.java | 2 +- ...ssionHistorySummarizeForHandoffParams.java | 2 +- ...ssionHistorySummarizeForHandoffResult.java | 2 +- .../rpc/SessionHistoryTruncateParams.java | 2 +- .../rpc/SessionHistoryTruncateResult.java | 2 +- .../generated/rpc/SessionInstalledPlugin.java | 2 +- .../generated/rpc/SessionInstructionsApi.java | 2 +- .../SessionInstructionsGetSourcesParams.java | 2 +- .../SessionInstructionsGetSourcesResult.java | 2 +- .../generated/rpc/SessionLogLevel.java | 2 +- .../generated/rpc/SessionLogParams.java | 2 +- .../generated/rpc/SessionLogResult.java | 2 +- .../generated/rpc/SessionLspApi.java | 2 +- .../rpc/SessionLspInitializeParams.java | 2 +- .../generated/rpc/SessionMcpApi.java | 2 +- ...ssionMcpCancelSamplingExecutionParams.java | 2 +- ...ssionMcpCancelSamplingExecutionResult.java | 2 +- .../rpc/SessionMcpDisableParams.java | 2 +- .../rpc/SessionMcpDisableResult.java | 2 +- .../generated/rpc/SessionMcpEnableParams.java | 2 +- .../generated/rpc/SessionMcpEnableResult.java | 2 +- .../rpc/SessionMcpExecuteSamplingParams.java | 2 +- .../rpc/SessionMcpExecuteSamplingResult.java | 2 +- .../generated/rpc/SessionMcpListParams.java | 2 +- .../generated/rpc/SessionMcpListResult.java | 2 +- .../generated/rpc/SessionMcpOauthApi.java | 2 +- .../rpc/SessionMcpOauthLoginParams.java | 2 +- .../rpc/SessionMcpOauthLoginResult.java | 2 +- .../generated/rpc/SessionMcpReloadParams.java | 2 +- .../generated/rpc/SessionMcpReloadResult.java | 2 +- .../rpc/SessionMcpRemoveGitHubParams.java | 2 +- .../rpc/SessionMcpRemoveGitHubResult.java | 2 +- .../rpc/SessionMcpSetEnvValueModeParams.java | 2 +- .../rpc/SessionMcpSetEnvValueModeResult.java | 2 +- .../generated/rpc/SessionMetadata.java | 2 +- .../generated/rpc/SessionMetadataApi.java | 2 +- .../rpc/SessionMetadataContextInfoParams.java | 2 +- .../rpc/SessionMetadataContextInfoResult.java | 2 +- .../SessionMetadataIsProcessingParams.java | 2 +- .../SessionMetadataIsProcessingResult.java | 2 +- ...nMetadataRecomputeContextTokensParams.java | 2 +- ...nMetadataRecomputeContextTokensResult.java | 2 +- ...sionMetadataRecordContextChangeParams.java | 2 +- ...sionMetadataRecordContextChangeResult.java | 2 +- ...sionMetadataSetWorkingDirectoryParams.java | 2 +- ...sionMetadataSetWorkingDirectoryResult.java | 2 +- .../rpc/SessionMetadataSnapshotParams.java | 2 +- .../rpc/SessionMetadataSnapshotResult.java | 2 +- .../{sdk => }/generated/rpc/SessionMode.java | 2 +- .../generated/rpc/SessionModeApi.java | 2 +- .../generated/rpc/SessionModeGetParams.java | 2 +- .../generated/rpc/SessionModeGetResult.java | 2 +- .../generated/rpc/SessionModeSetParams.java | 2 +- .../generated/rpc/SessionModeSetResult.java | 2 +- .../generated/rpc/SessionModelApi.java | 2 +- .../rpc/SessionModelGetCurrentParams.java | 2 +- .../rpc/SessionModelGetCurrentResult.java | 2 +- .../SessionModelSetReasoningEffortParams.java | 2 +- .../SessionModelSetReasoningEffortResult.java | 2 +- .../rpc/SessionModelSwitchToParams.java | 2 +- .../rpc/SessionModelSwitchToResult.java | 2 +- .../generated/rpc/SessionNameApi.java | 2 +- .../generated/rpc/SessionNameGetParams.java | 2 +- .../generated/rpc/SessionNameGetResult.java | 2 +- .../rpc/SessionNameSetAutoParams.java | 2 +- .../rpc/SessionNameSetAutoResult.java | 2 +- .../generated/rpc/SessionNameSetParams.java | 2 +- .../generated/rpc/SessionOptionsApi.java | 2 +- .../rpc/SessionOptionsUpdateParams.java | 2 +- .../rpc/SessionOptionsUpdateResult.java | 2 +- .../generated/rpc/SessionPermissionsApi.java | 2 +- .../SessionPermissionsConfigureParams.java | 2 +- .../SessionPermissionsConfigureResult.java | 2 +- ...ermissionsFolderTrustAddTrustedParams.java | 2 +- ...ermissionsFolderTrustAddTrustedResult.java | 2 +- .../rpc/SessionPermissionsFolderTrustApi.java | 2 +- ...PermissionsFolderTrustIsTrustedParams.java | 2 +- ...PermissionsFolderTrustIsTrustedResult.java | 2 +- ...sHandlePendingPermissionRequestParams.java | 2 +- ...sHandlePendingPermissionRequestResult.java | 2 +- ...issionsLocationsAddToolApprovalParams.java | 2 +- ...issionsLocationsAddToolApprovalResult.java | 2 +- .../rpc/SessionPermissionsLocationsApi.java | 2 +- ...essionPermissionsLocationsApplyParams.java | 2 +- ...essionPermissionsLocationsApplyResult.java | 2 +- ...sionPermissionsLocationsResolveParams.java | 2 +- ...sionPermissionsLocationsResolveResult.java | 2 +- .../SessionPermissionsModifyRulesParams.java | 2 +- .../SessionPermissionsModifyRulesResult.java | 2 +- ...ionPermissionsNotifyPromptShownParams.java | 2 +- ...ionPermissionsNotifyPromptShownResult.java | 2 +- .../rpc/SessionPermissionsPathsAddParams.java | 2 +- .../rpc/SessionPermissionsPathsAddResult.java | 2 +- .../rpc/SessionPermissionsPathsApi.java | 2 +- ...sIsPathWithinAllowedDirectoriesParams.java | 2 +- ...sIsPathWithinAllowedDirectoriesResult.java | 2 +- ...sionsPathsIsPathWithinWorkspaceParams.java | 2 +- ...sionsPathsIsPathWithinWorkspaceResult.java | 2 +- .../SessionPermissionsPathsListParams.java | 2 +- .../SessionPermissionsPathsListResult.java | 2 +- ...onPermissionsPathsUpdatePrimaryParams.java | 2 +- ...onPermissionsPathsUpdatePrimaryResult.java | 2 +- ...ssionPermissionsPendingRequestsParams.java | 2 +- ...ssionPermissionsPendingRequestsResult.java | 2 +- ...ermissionsResetSessionApprovalsParams.java | 2 +- ...ermissionsResetSessionApprovalsResult.java | 2 +- ...SessionPermissionsSetApproveAllParams.java | 2 +- ...SessionPermissionsSetApproveAllResult.java | 2 +- .../SessionPermissionsSetRequiredParams.java | 2 +- .../SessionPermissionsSetRequiredResult.java | 2 +- .../rpc/SessionPermissionsUrlsApi.java | 2 +- ...missionsUrlsSetUnrestrictedModeParams.java | 2 +- ...missionsUrlsSetUnrestrictedModeResult.java | 2 +- .../generated/rpc/SessionPlanApi.java | 2 +- .../rpc/SessionPlanDeleteParams.java | 2 +- .../rpc/SessionPlanDeleteResult.java | 2 +- .../generated/rpc/SessionPlanReadParams.java | 2 +- .../generated/rpc/SessionPlanReadResult.java | 2 +- .../rpc/SessionPlanUpdateParams.java | 2 +- .../rpc/SessionPlanUpdateResult.java | 2 +- .../generated/rpc/SessionPluginsApi.java | 2 +- .../rpc/SessionPluginsListParams.java | 2 +- .../rpc/SessionPluginsListResult.java | 2 +- .../generated/rpc/SessionQueueApi.java | 2 +- .../rpc/SessionQueueClearParams.java | 2 +- .../rpc/SessionQueuePendingItemsParams.java | 2 +- .../rpc/SessionQueuePendingItemsResult.java | 2 +- .../SessionQueueRemoveMostRecentParams.java | 2 +- .../SessionQueueRemoveMostRecentResult.java | 2 +- .../generated/rpc/SessionRemoteApi.java | 2 +- .../rpc/SessionRemoteDisableParams.java | 2 +- .../rpc/SessionRemoteEnableParams.java | 2 +- .../rpc/SessionRemoteEnableResult.java | 2 +- ...ionRemoteNotifySteerableChangedParams.java | 2 +- ...ionRemoteNotifySteerableChangedResult.java | 2 +- .../{sdk => }/generated/rpc/SessionRpc.java | 2 +- .../generated/rpc/SessionScheduleApi.java | 2 +- .../rpc/SessionScheduleListParams.java | 2 +- .../rpc/SessionScheduleListResult.java | 2 +- .../rpc/SessionScheduleStopParams.java | 2 +- .../rpc/SessionScheduleStopResult.java | 2 +- .../generated/rpc/SessionSendParams.java | 2 +- .../generated/rpc/SessionSendResult.java | 2 +- .../generated/rpc/SessionShellApi.java | 2 +- .../generated/rpc/SessionShellExecParams.java | 2 +- .../generated/rpc/SessionShellExecResult.java | 2 +- .../generated/rpc/SessionShellKillParams.java | 2 +- .../generated/rpc/SessionShellKillResult.java | 2 +- .../generated/rpc/SessionShutdownParams.java | 2 +- .../generated/rpc/SessionSkillsApi.java | 2 +- .../rpc/SessionSkillsDisableParams.java | 2 +- .../rpc/SessionSkillsDisableResult.java | 2 +- .../rpc/SessionSkillsEnableParams.java | 2 +- .../rpc/SessionSkillsEnableResult.java | 2 +- .../rpc/SessionSkillsEnsureLoadedParams.java | 2 +- .../rpc/SessionSkillsGetInvokedParams.java | 2 +- .../rpc/SessionSkillsGetInvokedResult.java | 2 +- .../rpc/SessionSkillsListParams.java | 2 +- .../rpc/SessionSkillsListResult.java | 2 +- .../rpc/SessionSkillsReloadParams.java | 2 +- .../rpc/SessionSkillsReloadResult.java | 2 +- .../generated/rpc/SessionSuspendParams.java | 2 +- .../generated/rpc/SessionTasksApi.java | 2 +- .../rpc/SessionTasksCancelParams.java | 2 +- .../rpc/SessionTasksCancelResult.java | 2 +- ...essionTasksGetCurrentPromotableParams.java | 2 +- ...essionTasksGetCurrentPromotableResult.java | 2 +- .../rpc/SessionTasksGetProgressParams.java | 2 +- .../rpc/SessionTasksGetProgressResult.java | 2 +- .../generated/rpc/SessionTasksListParams.java | 2 +- .../generated/rpc/SessionTasksListResult.java | 2 +- ...TasksPromoteCurrentToBackgroundParams.java | 2 +- ...TasksPromoteCurrentToBackgroundResult.java | 2 +- ...SessionTasksPromoteToBackgroundParams.java | 2 +- ...SessionTasksPromoteToBackgroundResult.java | 2 +- .../rpc/SessionTasksRefreshParams.java | 2 +- .../rpc/SessionTasksRefreshResult.java | 2 +- .../rpc/SessionTasksRemoveParams.java | 2 +- .../rpc/SessionTasksRemoveResult.java | 2 +- .../rpc/SessionTasksSendMessageParams.java | 2 +- .../rpc/SessionTasksSendMessageResult.java | 2 +- .../rpc/SessionTasksStartAgentParams.java | 2 +- .../rpc/SessionTasksStartAgentResult.java | 2 +- .../rpc/SessionTasksWaitForPendingParams.java | 2 +- .../rpc/SessionTasksWaitForPendingResult.java | 2 +- .../generated/rpc/SessionTelemetryApi.java | 2 +- ...ionTelemetrySetFeatureOverridesParams.java | 2 +- .../generated/rpc/SessionToolsApi.java | 2 +- ...ssionToolsHandlePendingToolCallParams.java | 2 +- ...ssionToolsHandlePendingToolCallResult.java | 2 +- ...ssionToolsInitializeAndValidateParams.java | 2 +- ...ssionToolsInitializeAndValidateResult.java | 2 +- .../{sdk => }/generated/rpc/SessionUiApi.java | 2 +- .../rpc/SessionUiElicitationParams.java | 2 +- .../rpc/SessionUiElicitationResult.java | 2 +- ...onUiHandlePendingAutoModeSwitchParams.java | 2 +- ...onUiHandlePendingAutoModeSwitchResult.java | 2 +- ...ssionUiHandlePendingElicitationParams.java | 2 +- ...ssionUiHandlePendingElicitationResult.java | 2 +- ...sionUiHandlePendingExitPlanModeParams.java | 2 +- ...sionUiHandlePendingExitPlanModeResult.java | 2 +- .../SessionUiHandlePendingSamplingParams.java | 2 +- .../SessionUiHandlePendingSamplingResult.java | 2 +- ...SessionUiHandlePendingUserInputParams.java | 2 +- ...SessionUiHandlePendingUserInputResult.java | 2 +- ...sterDirectAutoModeSwitchHandlerParams.java | 2 +- ...sterDirectAutoModeSwitchHandlerResult.java | 2 +- ...sterDirectAutoModeSwitchHandlerParams.java | 2 +- ...sterDirectAutoModeSwitchHandlerResult.java | 2 +- .../generated/rpc/SessionUsageApi.java | 2 +- .../rpc/SessionUsageGetMetricsParams.java | 2 +- .../rpc/SessionUsageGetMetricsResult.java | 2 +- .../rpc/SessionWorkingDirectoryContext.java | 2 +- ...essionWorkingDirectoryContextHostType.java | 2 +- .../generated/rpc/SessionWorkspaceApi.java | 2 +- .../rpc/SessionWorkspaceCreateFileParams.java | 2 +- .../rpc/SessionWorkspaceCreateFileResult.java | 2 +- .../rpc/SessionWorkspaceListFilesParams.java | 2 +- .../rpc/SessionWorkspaceListFilesResult.java | 2 +- .../rpc/SessionWorkspaceReadFileParams.java | 2 +- .../rpc/SessionWorkspaceReadFileResult.java | 2 +- .../generated/rpc/SessionWorkspacesApi.java | 2 +- .../SessionWorkspacesCreateFileParams.java | 2 +- .../SessionWorkspacesGetWorkspaceParams.java | 2 +- .../SessionWorkspacesGetWorkspaceResult.java | 2 +- ...essionWorkspacesListCheckpointsParams.java | 2 +- ...essionWorkspacesListCheckpointsResult.java | 2 +- .../rpc/SessionWorkspacesListFilesParams.java | 2 +- .../rpc/SessionWorkspacesListFilesResult.java | 2 +- ...SessionWorkspacesReadCheckpointParams.java | 2 +- ...SessionWorkspacesReadCheckpointResult.java | 2 +- .../rpc/SessionWorkspacesReadFileParams.java | 2 +- .../rpc/SessionWorkspacesReadFileResult.java | 2 +- ...SessionWorkspacesSaveLargePasteParams.java | 2 +- ...SessionWorkspacesSaveLargePasteResult.java | 2 +- .../rpc/SessionsBulkDeleteParams.java | 2 +- .../rpc/SessionsBulkDeleteResult.java | 2 +- .../rpc/SessionsCheckInUseParams.java | 2 +- .../rpc/SessionsCheckInUseResult.java | 2 +- .../generated/rpc/SessionsCloseParams.java | 2 +- .../generated/rpc/SessionsCloseResult.java | 2 +- .../generated/rpc/SessionsConnectParams.java | 2 +- .../generated/rpc/SessionsConnectResult.java | 2 +- .../rpc/SessionsEnrichMetadataParams.java | 2 +- .../rpc/SessionsEnrichMetadataResult.java | 2 +- .../rpc/SessionsFindByPrefixParams.java | 2 +- .../rpc/SessionsFindByPrefixResult.java | 2 +- .../rpc/SessionsFindByTaskIdParams.java | 2 +- .../rpc/SessionsFindByTaskIdResult.java | 2 +- .../generated/rpc/SessionsForkParams.java | 2 +- .../generated/rpc/SessionsForkResult.java | 2 +- .../rpc/SessionsGetEventFilePathParams.java | 2 +- .../rpc/SessionsGetEventFilePathResult.java | 2 +- .../rpc/SessionsGetLastForContextParams.java | 2 +- .../rpc/SessionsGetLastForContextResult.java | 2 +- ...ionsGetPersistedRemoteSteerableParams.java | 2 +- ...ionsGetPersistedRemoteSteerableResult.java | 2 +- .../generated/rpc/SessionsGetSizesResult.java | 2 +- .../generated/rpc/SessionsListResult.java | 2 +- .../SessionsLoadDeferredRepoHooksParams.java | 2 +- .../SessionsLoadDeferredRepoHooksResult.java | 2 +- .../generated/rpc/SessionsPruneOldParams.java | 2 +- .../generated/rpc/SessionsPruneOldResult.java | 2 +- .../rpc/SessionsReleaseLockParams.java | 2 +- .../rpc/SessionsReleaseLockResult.java | 2 +- .../rpc/SessionsReloadPluginHooksParams.java | 2 +- .../rpc/SessionsReloadPluginHooksResult.java | 2 +- .../generated/rpc/SessionsSaveParams.java | 2 +- .../generated/rpc/SessionsSaveResult.java | 2 +- .../SessionsSetAdditionalPluginsParams.java | 2 +- .../SessionsSetAdditionalPluginsResult.java | 2 +- .../generated/rpc/ShellKillSignal.java | 2 +- .../{sdk => }/generated/rpc/ShutdownType.java | 2 +- .../{sdk => }/generated/rpc/Skill.java | 2 +- .../{sdk => }/generated/rpc/SkillSource.java | 2 +- .../SkillsConfigSetDisabledSkillsParams.java | 2 +- .../generated/rpc/SkillsDiscoverParams.java | 2 +- .../generated/rpc/SkillsDiscoverResult.java | 2 +- .../generated/rpc/SkillsInvokedSkill.java | 2 +- .../generated/rpc/SlashCommandInfo.java | 2 +- .../generated/rpc/SlashCommandInput.java | 2 +- .../rpc/SlashCommandInputCompletion.java | 2 +- .../generated/rpc/SlashCommandKind.java | 2 +- .../copilot/{sdk => }/generated/rpc/Tool.java | 2 +- .../generated/rpc/ToolsListParams.java | 2 +- .../generated/rpc/ToolsListResult.java | 2 +- .../rpc/UIAutoModeSwitchResponse.java | 2 +- .../generated/rpc/UIElicitationResponse.java | 2 +- .../rpc/UIElicitationResponseAction.java | 2 +- .../generated/rpc/UIElicitationSchema.java | 2 +- .../generated/rpc/UIExitPlanModeAction.java | 2 +- .../generated/rpc/UIExitPlanModeResponse.java | 2 +- .../rpc/UIHandlePendingSamplingResponse.java | 2 +- .../generated/rpc/UIUserInputResponse.java | 2 +- .../rpc/UsageMetricsCodeChanges.java | 2 +- .../rpc/UsageMetricsModelMetric.java | 2 +- .../rpc/UsageMetricsModelMetricRequests.java | 2 +- .../UsageMetricsModelMetricTokenDetail.java | 2 +- .../rpc/UsageMetricsModelMetricUsage.java | 2 +- .../rpc/UsageMetricsTokenDetail.java | 2 +- .../rpc/WorkspaceSummaryHostType.java | 2 +- .../generated/rpc/WorkspacesCheckpoints.java | 2 +- .../WorkspacesWorkspaceDetailsHostType.java | 2 +- .../copilot/{sdk => }/CliServerManager.java | 4 +- .../copilot/{sdk => }/ConnectionState.java | 2 +- .../copilot/{sdk => }/CopilotClient.java | 72 ++++----- .../copilot/{sdk => }/CopilotSession.java | 150 +++++++++--------- .../copilot/{sdk => }/EventErrorHandler.java | 4 +- .../copilot/{sdk => }/EventErrorPolicy.java | 2 +- .../{sdk => }/ExtractedTransforms.java | 4 +- .../copilot/{sdk => }/JsonRpcClient.java | 8 +- .../copilot/{sdk => }/JsonRpcException.java | 2 +- .../{sdk => }/LifecycleEventManager.java | 6 +- .../copilot/{sdk => }/LoggingHelpers.java | 2 +- .../{sdk => }/RpcHandlerDispatcher.java | 24 +-- .../copilot/{sdk => }/SdkProtocolVersion.java | 2 +- .../{sdk => }/SessionRequestBuilder.java | 18 +-- .../copilot/{sdk => }/SystemMessageMode.java | 6 +- .../copilot/{sdk => }/package-info.java | 16 +- .../copilot/{sdk/json => rpc}/AgentInfo.java | 2 +- .../copilot/{sdk/json => rpc}/Attachment.java | 2 +- .../json => rpc}/AutoModeSwitchHandler.java | 2 +- .../AutoModeSwitchInvocation.java | 2 +- .../json => rpc}/AutoModeSwitchRequest.java | 2 +- .../json => rpc}/AutoModeSwitchResponse.java | 2 +- .../{sdk/json => rpc}/AzureOptions.java | 2 +- .../{sdk/json => rpc}/BlobAttachment.java | 2 +- .../json => rpc}/CloudSessionOptions.java | 2 +- .../json => rpc}/CloudSessionRepository.java | 2 +- .../{sdk/json => rpc}/CommandContext.java | 2 +- .../{sdk/json => rpc}/CommandDefinition.java | 2 +- .../{sdk/json => rpc}/CommandHandler.java | 2 +- .../json => rpc}/CommandWireDefinition.java | 2 +- .../json => rpc}/CopilotClientOptions.java | 6 +- .../json => rpc}/CreateSessionRequest.java | 6 +- .../json => rpc}/CreateSessionResponse.java | 2 +- .../{sdk/json => rpc}/CustomAgentConfig.java | 2 +- .../{sdk/json => rpc}/DefaultAgentConfig.java | 2 +- .../json => rpc}/DeleteSessionResponse.java | 4 +- .../{sdk/json => rpc}/ElicitationContext.java | 2 +- .../{sdk/json => rpc}/ElicitationHandler.java | 2 +- .../{sdk/json => rpc}/ElicitationParams.java | 2 +- .../{sdk/json => rpc}/ElicitationResult.java | 2 +- .../json => rpc}/ElicitationResultAction.java | 2 +- .../{sdk/json => rpc}/ElicitationSchema.java | 2 +- .../json => rpc}/ExitPlanModeHandler.java | 2 +- .../json => rpc}/ExitPlanModeInvocation.java | 2 +- .../json => rpc}/ExitPlanModeRequest.java | 2 +- .../{sdk/json => rpc}/ExitPlanModeResult.java | 2 +- .../json => rpc}/GetAuthStatusResponse.java | 2 +- .../GetForegroundSessionResponse.java | 2 +- .../GetLastSessionIdResponse.java | 2 +- .../json => rpc}/GetMessagesResponse.java | 2 +- .../{sdk/json => rpc}/GetModelsResponse.java | 2 +- .../GetSessionMetadataResponse.java | 2 +- .../{sdk/json => rpc}/GetStatusResponse.java | 2 +- .../{sdk/json => rpc}/HookInvocation.java | 2 +- .../json => rpc}/InfiniteSessionConfig.java | 2 +- .../{sdk/json => rpc}/InputOptions.java | 2 +- .../{sdk/json => rpc}/JsonRpcError.java | 2 +- .../{sdk/json => rpc}/JsonRpcRequest.java | 2 +- .../{sdk/json => rpc}/JsonRpcResponse.java | 2 +- .../json => rpc}/ListSessionsResponse.java | 4 +- .../json => rpc}/McpHttpServerConfig.java | 2 +- .../{sdk/json => rpc}/McpServerConfig.java | 2 +- .../json => rpc}/McpStdioServerConfig.java | 2 +- .../{sdk/json => rpc}/MessageAttachment.java | 2 +- .../{sdk/json => rpc}/MessageOptions.java | 4 +- .../{sdk/json => rpc}/ModelBilling.java | 2 +- .../{sdk/json => rpc}/ModelCapabilities.java | 2 +- .../ModelCapabilitiesOverride.java | 6 +- .../copilot/{sdk/json => rpc}/ModelInfo.java | 2 +- .../{sdk/json => rpc}/ModelLimits.java | 2 +- .../{sdk/json => rpc}/ModelPolicy.java | 2 +- .../{sdk/json => rpc}/ModelSupports.java | 2 +- .../{sdk/json => rpc}/ModelVisionLimits.java | 2 +- .../{sdk/json => rpc}/PermissionHandler.java | 2 +- .../json => rpc}/PermissionInvocation.java | 2 +- .../{sdk/json => rpc}/PermissionRequest.java | 2 +- .../json => rpc}/PermissionRequestResult.java | 2 +- .../PermissionRequestResultKind.java | 2 +- .../{sdk/json => rpc}/PingResponse.java | 4 +- .../{sdk/json => rpc}/PostToolUseHandler.java | 2 +- .../json => rpc}/PostToolUseHookInput.java | 2 +- .../json => rpc}/PostToolUseHookOutput.java | 2 +- .../json => rpc}/PreMcpToolCallHandler.java | 2 +- .../json => rpc}/PreMcpToolCallHookInput.java | 2 +- .../PreMcpToolCallHookOutput.java | 2 +- .../{sdk/json => rpc}/PreToolUseHandler.java | 2 +- .../json => rpc}/PreToolUseHookInput.java | 2 +- .../json => rpc}/PreToolUseHookOutput.java | 2 +- .../{sdk/json => rpc}/ProviderConfig.java | 2 +- .../json => rpc}/ResumeSessionConfig.java | 10 +- .../json => rpc}/ResumeSessionRequest.java | 6 +- .../json => rpc}/ResumeSessionResponse.java | 2 +- .../{sdk/json => rpc}/SectionOverride.java | 2 +- .../json => rpc}/SectionOverrideAction.java | 2 +- .../{sdk/json => rpc}/SendMessageRequest.java | 8 +- .../json => rpc}/SendMessageResponse.java | 2 +- .../json => rpc}/SessionCapabilities.java | 2 +- .../{sdk/json => rpc}/SessionConfig.java | 14 +- .../{sdk/json => rpc}/SessionContext.java | 2 +- .../{sdk/json => rpc}/SessionEndHandler.java | 2 +- .../json => rpc}/SessionEndHookInput.java | 2 +- .../json => rpc}/SessionEndHookOutput.java | 2 +- .../{sdk/json => rpc}/SessionHooks.java | 2 +- .../json => rpc}/SessionLifecycleEvent.java | 2 +- .../SessionLifecycleEventMetadata.java | 2 +- .../SessionLifecycleEventTypes.java | 4 +- .../json => rpc}/SessionLifecycleHandler.java | 2 +- .../{sdk/json => rpc}/SessionListFilter.java | 4 +- .../{sdk/json => rpc}/SessionMetadata.java | 8 +- .../json => rpc}/SessionStartHandler.java | 2 +- .../json => rpc}/SessionStartHookInput.java | 2 +- .../json => rpc}/SessionStartHookOutput.java | 2 +- .../{sdk/json => rpc}/SessionUiApi.java | 6 +- .../json => rpc}/SessionUiCapabilities.java | 2 +- .../SetForegroundSessionRequest.java | 2 +- .../SetForegroundSessionResponse.java | 2 +- .../json => rpc}/SystemMessageConfig.java | 4 +- .../json => rpc}/SystemPromptSections.java | 2 +- .../{sdk/json => rpc}/TelemetryConfig.java | 2 +- .../{sdk/json => rpc}/ToolBinaryResult.java | 2 +- .../{sdk/json => rpc}/ToolDefinition.java | 2 +- .../{sdk/json => rpc}/ToolHandler.java | 2 +- .../{sdk/json => rpc}/ToolInvocation.java | 2 +- .../{sdk/json => rpc}/ToolResultObject.java | 2 +- .../{sdk/json => rpc}/UserInputHandler.java | 2 +- .../json => rpc}/UserInputInvocation.java | 2 +- .../{sdk/json => rpc}/UserInputRequest.java | 2 +- .../{sdk/json => rpc}/UserInputResponse.java | 2 +- .../UserPromptSubmittedHandler.java | 2 +- .../UserPromptSubmittedHookInput.java | 2 +- .../UserPromptSubmittedHookOutput.java | 2 +- .../{sdk/json => rpc}/package-info.java | 44 ++--- src/main/java/module-info.java | 16 +- src/site/markdown/advanced.md | 2 +- src/site/markdown/cookbook/error-handling.md | 48 +++--- .../markdown/cookbook/managing-local-files.md | 16 +- .../markdown/cookbook/multiple-sessions.md | 20 +-- .../markdown/cookbook/persisting-sessions.md | 20 +-- .../markdown/cookbook/pr-visualization.md | 14 +- src/site/markdown/documentation.md | 6 +- src/site/markdown/getting-started.md | 48 +++--- src/site/markdown/hooks.md | 10 +- src/site/markdown/index.md | 24 +-- .../copilot/{sdk => }/AgentInfoTest.java | 4 +- .../github/copilot/{sdk => }/AskUserTest.java | 12 +- .../github/copilot/{sdk => }/CapiProxy.java | 2 +- .../{sdk => }/CliServerManagerTest.java | 6 +- .../{sdk => }/ClosedSessionGuardTest.java | 10 +- .../copilot/{sdk => }/CommandsTest.java | 16 +- .../copilot/{sdk => }/CompactionTest.java | 18 +-- .../copilot/{sdk => }/ConfigCloneTest.java | 26 +-- .../copilot/{sdk => }/CopilotClientTest.java | 26 +-- .../copilot/{sdk => }/CopilotSessionTest.java | 36 ++--- .../{sdk => }/DataObjectCoverageTest.java | 34 ++-- .../{sdk => }/DocumentationSamplesTest.java | 2 +- .../copilot/{sdk => }/E2ETestContext.java | 4 +- .../copilot/{sdk => }/ElicitationTest.java | 26 +-- .../copilot/{sdk => }/ErrorHandlingTest.java | 18 +-- .../copilot/{sdk => }/EventFidelityTest.java | 14 +- .../copilot/{sdk => }/ExecutorWiringTest.java | 24 +-- .../{sdk => }/ForwardCompatibilityTest.java | 8 +- .../github/copilot/{sdk => }/HooksTest.java | 16 +- .../{sdk => }/JsonIncludeNonNullTest.java | 26 +-- .../copilot/{sdk => }/JsonRpcClientTest.java | 2 +- .../{sdk => }/LifecycleEventManagerTest.java | 4 +- .../copilot/{sdk => }/McpAndAgentsTest.java | 24 +-- .../{sdk => }/MessageAttachmentTest.java | 12 +- .../copilot/{sdk => }/MetadataApiTest.java | 8 +- .../copilot/{sdk => }/ModeHandlersTest.java | 24 +-- .../copilot/{sdk => }/ModelInfoTest.java | 8 +- .../{sdk => }/ModuleDescriptorTest.java | 8 +- .../{sdk => }/OptionalApiAndJacksonTest.java | 24 +-- .../copilot/{sdk => }/PerSessionAuthTest.java | 10 +- .../PermissionRequestResultKindTest.java | 6 +- .../copilot/{sdk => }/PermissionsTest.java | 22 +-- .../{sdk => }/PreMcpToolCallHookTest.java | 20 +-- .../copilot/{sdk => }/ProviderConfigTest.java | 10 +- .../copilot/{sdk => }/RemoteSessionTest.java | 20 +-- .../{sdk => }/RpcHandlerDispatcherTest.java | 18 +-- .../copilot/{sdk => }/RpcWrappersTest.java | 18 +-- .../{sdk => }/SchedulerShutdownRaceTest.java | 4 +- .../{sdk => }/SessionConfigE2ETest.java | 12 +- .../SessionEventDeserializationTest.java | 10 +- .../{sdk => }/SessionEventHandlingTest.java | 10 +- .../{sdk => }/SessionEventsE2ETest.java | 26 +-- .../copilot/{sdk => }/SessionHandlerTest.java | 20 +-- .../{sdk => }/SessionRequestBuilderTest.java | 58 +++---- .../github/copilot/{sdk => }/SkillsTest.java | 12 +- .../{sdk => }/StreamingFidelityTest.java | 16 +- .../{sdk => }/TelemetryConfigTest.java | 4 +- .../github/copilot/{sdk => }/TestUtil.java | 2 +- .../{sdk => }/TimeoutEdgeCaseTest.java | 6 +- .../copilot/{sdk => }/ToolInvocationTest.java | 4 +- .../copilot/{sdk => }/ToolResultsTest.java | 16 +- .../github/copilot/{sdk => }/ToolsTest.java | 18 +-- .../{sdk => }/ZeroTimeoutContractTest.java | 6 +- .../GeneratedEventTypesCoverageTest.java | 4 +- .../rpc/GeneratedRpcApiCoverageTest.java | 2 +- .../rpc/GeneratedRpcRecordsCoverageTest.java | 4 +- src/test/resources/logging-debug.properties | 2 +- src/test/resources/logging.properties | 2 +- 833 files changed, 1495 insertions(+), 1495 deletions(-) rename src/generated/java/com/github/copilot/{sdk => }/generated/AbortEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AbortReason.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantIntentEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantMessageDeltaEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantMessageEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantMessageStartEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantMessageToolRequest.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantMessageToolRequestType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantReasoningDeltaEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantReasoningEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantStreamingDeltaEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantTurnEndEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantTurnStartEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantUsageApiEndpoint.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantUsageCopilotUsage.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantUsageCopilotUsageTokenDetail.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantUsageEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AssistantUsageQuotaSnapshot.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AutoModeSwitchCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AutoModeSwitchRequestedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/AutoModeSwitchResponse.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CapabilitiesChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CapabilitiesChangedUI.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CommandCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CommandExecuteEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CommandQueuedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CommandsChangedCommand.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CommandsChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CompactionCompleteCompactionTokensUsed.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/CustomAgentsUpdatedAgent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ElicitationCompletedAction.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ElicitationCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ElicitationRequestedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ElicitationRequestedMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ElicitationRequestedSchema.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExitPlanModeAction.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExitPlanModeCompletedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExitPlanModeRequestedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExtensionsLoadedExtension.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExtensionsLoadedExtensionSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExtensionsLoadedExtensionStatus.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExternalToolCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ExternalToolRequestedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/HandoffRepository.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/HandoffSourceType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/HookEndError.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/HookEndEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/HookStartEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpOauthCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpOauthRequiredEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpOauthRequiredStaticClientConfig.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpServerSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpServerStatus.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpServerStatusChangedStatus.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpServersLoadedServer.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/McpServersLoadedServerStatus.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ModelCallFailureEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ModelCallFailureSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/PendingMessagesModifiedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/PermissionCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/PermissionCompletedKind.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/PermissionCompletedResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/PermissionRequestedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/PlanChangedOperation.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ReasoningSummary.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SamplingCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SamplingRequestedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionBackgroundTasksChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionCompactionCompleteEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionCompactionStartEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionContextChangedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionCustomAgentsUpdatedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionCustomNotificationEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionErrorEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionEvent.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionExtensionsLoadedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionHandoffEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionIdleEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionInfoEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionMcpServerStatusChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionMcpServersLoadedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionModeChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionModelChangeEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionPlanChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionRemoteSteerableChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionResumeEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionScheduleCancelledEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionScheduleCreatedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionShutdownEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionSkillsLoadedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionSnapshotRewindEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionStartEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionTaskCompleteEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionTitleChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionToolsUpdatedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionTruncationEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionUsageInfoEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionWarningEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SessionWorkspaceFileChangedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownCodeChanges.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownModelMetric.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownModelMetricRequests.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownModelMetricTokenDetail.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownModelMetricUsage.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownTokenDetail.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ShutdownType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SkillInvokedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SkillSource.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SkillsLoadedSkill.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SubagentCompletedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SubagentDeselectedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SubagentFailedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SubagentSelectedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SubagentStartedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SystemMessageEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SystemMessageMetadata.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SystemMessageRole.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/SystemNotificationEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolExecutionCompleteError.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolExecutionCompleteEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolExecutionCompleteResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolExecutionPartialResultEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolExecutionProgressEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolExecutionStartEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/ToolUserRequestedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/UnknownSessionEvent.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/UserInputCompletedEvent.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/UserInputRequestedEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/UserMessageAgentMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/UserMessageEvent.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/WorkingDirectoryContext.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/WorkingDirectoryContextHostType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/WorkspaceFileChangedOperation.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/AbortReason.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/AccountGetQuotaResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/AccountQuotaSnapshot.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/AgentInfo.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/AgentInfoSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/AuthInfoType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ConnectParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ConnectResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ConnectedRemoteSessionMetadata.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ConnectedRemoteSessionMetadataKind.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ConnectedRemoteSessionMetadataRepository.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/DiscoveredMcpServer.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/DiscoveredMcpServerSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/DiscoveredMcpServerType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/EventsAgentScope.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/EventsCursorStatus.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/Extension.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ExtensionSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ExtensionStatus.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/HistoryCompactContextWindow.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/InstalledPlugin.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/InstructionsSources.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/InstructionsSourcesLocation.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/InstructionsSourcesType.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpConfigAddParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpConfigDisableParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpConfigEnableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpConfigListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpConfigRemoveParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpConfigUpdateParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpDiscoverParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpDiscoverResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpExecuteSamplingRequest.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpExecuteSamplingResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpSamplingExecutionAction.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpServer.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpServerSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpServerStatus.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/McpSetEnvValueModeDetails.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/MetadataSnapshotCurrentMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/MetadataSnapshotRemoteMetadata.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/Model.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelBilling.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelBillingTokenPrices.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilities.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesLimits.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesLimitsVision.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesOverride.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesOverrideLimits.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesOverrideSupports.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelCapabilitiesSupports.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelPickerCategory.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelPickerPriceCategory.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelPolicy.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelPolicyState.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ModelsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/OptionsUpdateEnvValueMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PendingPermissionRequest.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionLocationType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionPathsConfig.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionRule.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionRulesSet.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionUrlsConfig.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionsModifyRulesScope.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PermissionsSetApproveAllSource.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PingParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/PingResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/Plugin.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/QueuePendingItems.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/QueuePendingItemsKind.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ReasoningSummary.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/RemoteSessionMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/RpcCaller.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/RpcMapper.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ScheduleEntry.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SecretsAddFilterValuesParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SecretsAddFilterValuesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SendAgentMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SendMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerAccountApi.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerMcpApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerMcpConfigApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerModelsApi.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerRpc.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerSecretsApi.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerSessionFsApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerSessionsApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerSkill.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerSkillsApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerSkillsConfigApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ServerToolsApi.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAbortParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAbortResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentDeselectParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentDeselectResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentGetCurrentParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentGetCurrentResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentReloadParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentReloadResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentSelectParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAgentSelectResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAuthApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAuthGetStatusParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAuthGetStatusResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAuthSetCredentialsParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionAuthSetCredentialsResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsEnqueueParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsEnqueueResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsExecuteParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsExecuteResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsHandlePendingCommandParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsHandlePendingCommandResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsInvokeParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionContext.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionContextHostType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogReadParams.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogReadResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogRegisterInterestParams.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogRegisterInterestResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogReleaseInterestParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogReleaseInterestResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogTailParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionEventLogTailResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsDisableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsDisableResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsEnableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsEnableResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsReloadParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionExtensionsReloadResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFleetApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFleetStartParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFleetStartResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsAppendFileParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsError.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsErrorCode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsExistsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsExistsResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsMkdirParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReadFileParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReadFileResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReaddirParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReaddirResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReaddirWithTypesEntry.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReaddirWithTypesEntryType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReaddirWithTypesParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsReaddirWithTypesResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsRenameParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsRmParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSetProviderCapabilities.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSetProviderConventions.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSetProviderParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSetProviderResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSqliteExistsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSqliteExistsResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSqliteQueryParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSqliteQueryResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsSqliteQueryType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsStatParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsStatResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionFsWriteFileParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryAbortManualCompactionParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryAbortManualCompactionResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryCompactParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryCompactResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistorySummarizeForHandoffParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistorySummarizeForHandoffResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryTruncateParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionHistoryTruncateResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionInstalledPlugin.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionInstructionsApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionInstructionsGetSourcesParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionInstructionsGetSourcesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionLogLevel.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionLogParams.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionLogResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionLspApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionLspInitializeParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpCancelSamplingExecutionParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpCancelSamplingExecutionResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpDisableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpDisableResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpEnableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpEnableResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpExecuteSamplingParams.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpExecuteSamplingResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpOauthApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpOauthLoginParams.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpOauthLoginResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpReloadParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpReloadResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpRemoveGitHubParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpRemoveGitHubResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpSetEnvValueModeParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMcpSetEnvValueModeResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadata.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataContextInfoParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataContextInfoResult.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataIsProcessingParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataIsProcessingResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataRecomputeContextTokensParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataRecomputeContextTokensResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataRecordContextChangeParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataRecordContextChangeResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataSnapshotParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMetadataSnapshotResult.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionMode.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModeApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModeGetParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModeGetResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModeSetParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModeSetResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelGetCurrentParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelGetCurrentResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelSetReasoningEffortParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelSetReasoningEffortResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelSwitchToParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionModelSwitchToResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionNameApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionNameGetParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionNameGetResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionNameSetAutoParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionNameSetAutoResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionNameSetParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionOptionsApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionOptionsUpdateParams.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionOptionsUpdateResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsConfigureParams.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsConfigureResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsFolderTrustApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsApplyParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsApplyResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsResolveParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsLocationsResolveResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsModifyRulesParams.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsModifyRulesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsNotifyPromptShownParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsNotifyPromptShownResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsAddParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsAddResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsListResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPendingRequestsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsPendingRequestsResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsSetApproveAllParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsSetApproveAllResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsSetRequiredParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsSetRequiredResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsUrlsApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanDeleteParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanDeleteResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanReadParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanReadResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanUpdateParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPlanUpdateResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPluginsApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPluginsListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionPluginsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionQueueApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionQueueClearParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionQueuePendingItemsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionQueuePendingItemsResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionQueueRemoveMostRecentParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionQueueRemoveMostRecentResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRemoteApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRemoteDisableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRemoteEnableParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRemoteEnableResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRemoteNotifySteerableChangedParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRemoteNotifySteerableChangedResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionRpc.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionScheduleApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionScheduleListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionScheduleListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionScheduleStopParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionScheduleStopResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSendParams.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSendResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionShellApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionShellExecParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionShellExecResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionShellKillParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionShellKillResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionShutdownParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsDisableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsDisableResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsEnableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsEnableResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsEnsureLoadedParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsGetInvokedParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsGetInvokedResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsReloadParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSkillsReloadResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionSuspendParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksCancelParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksCancelResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksGetCurrentPromotableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksGetCurrentPromotableResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksGetProgressParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksGetProgressResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksPromoteToBackgroundParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksPromoteToBackgroundResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksRefreshParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksRefreshResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksRemoveParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksRemoveResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksSendMessageParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksSendMessageResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksStartAgentParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksStartAgentResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksWaitForPendingParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTasksWaitForPendingResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTelemetryApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionToolsApi.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionToolsHandlePendingToolCallParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionToolsHandlePendingToolCallResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionToolsInitializeAndValidateParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionToolsInitializeAndValidateResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiElicitationParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiElicitationResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingElicitationParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingElicitationResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingSamplingParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingSamplingResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingUserInputParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiHandlePendingUserInputResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUsageApi.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUsageGetMetricsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionUsageGetMetricsResult.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkingDirectoryContext.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkingDirectoryContextHostType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceApi.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceCreateFileParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceCreateFileResult.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceListFilesParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceListFilesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceReadFileParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspaceReadFileResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesApi.java (99%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesCreateFileParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesGetWorkspaceParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesGetWorkspaceResult.java (98%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesListCheckpointsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesListCheckpointsResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesListFilesParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesListFilesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesReadCheckpointParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesReadCheckpointResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesReadFileParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesReadFileResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesSaveLargePasteParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionWorkspacesSaveLargePasteResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsBulkDeleteParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsBulkDeleteResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsCheckInUseParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsCheckInUseResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsCloseParams.java (94%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsCloseResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsConnectParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsConnectResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsEnrichMetadataParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsEnrichMetadataResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsFindByPrefixParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsFindByPrefixResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsFindByTaskIdParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsFindByTaskIdResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsForkParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsForkResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetEventFilePathParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetEventFilePathResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetLastForContextParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetLastForContextResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsGetSizesResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsLoadDeferredRepoHooksParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsLoadDeferredRepoHooksResult.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsPruneOldParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsPruneOldResult.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsReleaseLockParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsReleaseLockResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsReloadPluginHooksParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsReloadPluginHooksResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsSaveParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsSaveResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsSetAdditionalPluginsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SessionsSetAdditionalPluginsResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ShellKillSignal.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ShutdownType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/Skill.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SkillSource.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SkillsConfigSetDisabledSkillsParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SkillsDiscoverParams.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SkillsDiscoverResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SkillsInvokedSkill.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SlashCommandInfo.java (97%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SlashCommandInput.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SlashCommandInputCompletion.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/SlashCommandKind.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/Tool.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ToolsListParams.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/ToolsListResult.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIAutoModeSwitchResponse.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIElicitationResponse.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIElicitationResponseAction.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIElicitationSchema.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIExitPlanModeAction.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIExitPlanModeResponse.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIHandlePendingSamplingResponse.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UIUserInputResponse.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UsageMetricsCodeChanges.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UsageMetricsModelMetric.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UsageMetricsModelMetricRequests.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UsageMetricsModelMetricTokenDetail.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UsageMetricsModelMetricUsage.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/UsageMetricsTokenDetail.java (95%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/WorkspaceSummaryHostType.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/WorkspacesCheckpoints.java (96%) rename src/generated/java/com/github/copilot/{sdk => }/generated/rpc/WorkspacesWorkspaceDetailsHostType.java (96%) rename src/main/java/com/github/copilot/{sdk => }/CliServerManager.java (99%) rename src/main/java/com/github/copilot/{sdk => }/ConnectionState.java (96%) rename src/main/java/com/github/copilot/{sdk => }/CopilotClient.java (94%) rename src/main/java/com/github/copilot/{sdk => }/CopilotSession.java (94%) rename src/main/java/com/github/copilot/{sdk => }/EventErrorHandler.java (96%) rename src/main/java/com/github/copilot/{sdk => }/EventErrorPolicy.java (98%) rename src/main/java/com/github/copilot/{sdk => }/ExtractedTransforms.java (93%) rename src/main/java/com/github/copilot/{sdk => }/JsonRpcClient.java (98%) rename src/main/java/com/github/copilot/{sdk => }/JsonRpcException.java (97%) rename src/main/java/com/github/copilot/{sdk => }/LifecycleEventManager.java (95%) rename src/main/java/com/github/copilot/{sdk => }/LoggingHelpers.java (98%) rename src/main/java/com/github/copilot/{sdk => }/RpcHandlerDispatcher.java (97%) rename src/main/java/com/github/copilot/{sdk => }/SdkProtocolVersion.java (96%) rename src/main/java/com/github/copilot/{sdk => }/SessionRequestBuilder.java (96%) rename src/main/java/com/github/copilot/{sdk => }/SystemMessageMode.java (91%) rename src/main/java/com/github/copilot/{sdk => }/package-info.java (76%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/AgentInfo.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/Attachment.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/AutoModeSwitchHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/AutoModeSwitchInvocation.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/AutoModeSwitchRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/AutoModeSwitchResponse.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/AzureOptions.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/BlobAttachment.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CloudSessionOptions.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CloudSessionRepository.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CommandContext.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CommandDefinition.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CommandHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CommandWireDefinition.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CopilotClientOptions.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CreateSessionRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CreateSessionResponse.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/CustomAgentConfig.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/DefaultAgentConfig.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/DeleteSessionResponse.java (89%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ElicitationContext.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ElicitationHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ElicitationParams.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ElicitationResult.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ElicitationResultAction.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ElicitationSchema.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ExitPlanModeHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ExitPlanModeInvocation.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ExitPlanModeRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ExitPlanModeResult.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetAuthStatusResponse.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetForegroundSessionResponse.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetLastSessionIdResponse.java (89%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetMessagesResponse.java (91%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetModelsResponse.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetSessionMetadataResponse.java (94%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/GetStatusResponse.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/HookInvocation.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/InfiniteSessionConfig.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/InputOptions.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/JsonRpcError.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/JsonRpcRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/JsonRpcResponse.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ListSessionsResponse.java (89%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/McpHttpServerConfig.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/McpServerConfig.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/McpStdioServerConfig.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/MessageAttachment.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/MessageOptions.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelBilling.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelCapabilities.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelCapabilitiesOverride.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelInfo.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelLimits.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelPolicy.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelSupports.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ModelVisionLimits.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PermissionHandler.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PermissionInvocation.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PermissionRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PermissionRequestResult.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PermissionRequestResultKind.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PingResponse.java (92%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PostToolUseHandler.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PostToolUseHookInput.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PostToolUseHookOutput.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PreMcpToolCallHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PreMcpToolCallHookInput.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PreMcpToolCallHookOutput.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PreToolUseHandler.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PreToolUseHookInput.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/PreToolUseHookOutput.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ProviderConfig.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ResumeSessionConfig.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ResumeSessionRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ResumeSessionResponse.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SectionOverride.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SectionOverrideAction.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SendMessageRequest.java (92%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SendMessageResponse.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionCapabilities.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionConfig.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionContext.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionEndHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionEndHookInput.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionEndHookOutput.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionHooks.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionLifecycleEvent.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionLifecycleEventMetadata.java (94%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionLifecycleEventTypes.java (90%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionLifecycleHandler.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionListFilter.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionMetadata.java (94%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionStartHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionStartHookInput.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionStartHookOutput.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionUiApi.java (94%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SessionUiCapabilities.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SetForegroundSessionRequest.java (94%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SetForegroundSessionResponse.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SystemMessageConfig.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/SystemPromptSections.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/TelemetryConfig.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ToolBinaryResult.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ToolDefinition.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ToolHandler.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ToolInvocation.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/ToolResultObject.java (99%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserInputHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserInputInvocation.java (95%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserInputRequest.java (98%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserInputResponse.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserPromptSubmittedHandler.java (97%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserPromptSubmittedHookInput.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/UserPromptSubmittedHookOutput.java (96%) rename src/main/java/com/github/copilot/{sdk/json => rpc}/package-info.java (59%) rename src/test/java/com/github/copilot/{sdk => }/AgentInfoTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/AskUserTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/CapiProxy.java (99%) rename src/test/java/com/github/copilot/{sdk => }/CliServerManagerTest.java (98%) rename src/test/java/com/github/copilot/{sdk => }/ClosedSessionGuardTest.java (98%) rename src/test/java/com/github/copilot/{sdk => }/CommandsTest.java (93%) rename src/test/java/com/github/copilot/{sdk => }/CompactionTest.java (93%) rename src/test/java/com/github/copilot/{sdk => }/ConfigCloneTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/CopilotClientTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/CopilotSessionTest.java (97%) rename src/test/java/com/github/copilot/{sdk => }/DataObjectCoverageTest.java (91%) rename src/test/java/com/github/copilot/{sdk => }/DocumentationSamplesTest.java (99%) rename src/test/java/com/github/copilot/{sdk => }/E2ETestContext.java (99%) rename src/test/java/com/github/copilot/{sdk => }/ElicitationTest.java (90%) rename src/test/java/com/github/copilot/{sdk => }/ErrorHandlingTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/EventFidelityTest.java (91%) rename src/test/java/com/github/copilot/{sdk => }/ExecutorWiringTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/ForwardCompatibilityTest.java (94%) rename src/test/java/com/github/copilot/{sdk => }/HooksTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/JsonIncludeNonNullTest.java (89%) rename src/test/java/com/github/copilot/{sdk => }/JsonRpcClientTest.java (99%) rename src/test/java/com/github/copilot/{sdk => }/LifecycleEventManagerTest.java (98%) rename src/test/java/com/github/copilot/{sdk => }/McpAndAgentsTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/MessageAttachmentTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/MetadataApiTest.java (98%) rename src/test/java/com/github/copilot/{sdk => }/ModeHandlersTest.java (89%) rename src/test/java/com/github/copilot/{sdk => }/ModelInfoTest.java (91%) rename src/test/java/com/github/copilot/{sdk => }/ModuleDescriptorTest.java (84%) rename src/test/java/com/github/copilot/{sdk => }/OptionalApiAndJacksonTest.java (97%) rename src/test/java/com/github/copilot/{sdk => }/PerSessionAuthTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/PermissionRequestResultKindTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/PermissionsTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/PreMcpToolCallHookTest.java (93%) rename src/test/java/com/github/copilot/{sdk => }/ProviderConfigTest.java (98%) rename src/test/java/com/github/copilot/{sdk => }/RemoteSessionTest.java (95%) rename src/test/java/com/github/copilot/{sdk => }/RpcHandlerDispatcherTest.java (97%) rename src/test/java/com/github/copilot/{sdk => }/RpcWrappersTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/SchedulerShutdownRaceTest.java (97%) rename src/test/java/com/github/copilot/{sdk => }/SessionConfigE2ETest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/SessionEventDeserializationTest.java (99%) rename src/test/java/com/github/copilot/{sdk => }/SessionEventHandlingTest.java (99%) rename src/test/java/com/github/copilot/{sdk => }/SessionEventsE2ETest.java (94%) rename src/test/java/com/github/copilot/{sdk => }/SessionHandlerTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/SessionRequestBuilderTest.java (93%) rename src/test/java/com/github/copilot/{sdk => }/SkillsTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/StreamingFidelityTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/TelemetryConfigTest.java (96%) rename src/test/java/com/github/copilot/{sdk => }/TestUtil.java (99%) rename src/test/java/com/github/copilot/{sdk => }/TimeoutEdgeCaseTest.java (97%) rename src/test/java/com/github/copilot/{sdk => }/ToolInvocationTest.java (98%) rename src/test/java/com/github/copilot/{sdk => }/ToolResultsTest.java (93%) rename src/test/java/com/github/copilot/{sdk => }/ToolsTest.java (97%) rename src/test/java/com/github/copilot/{sdk => }/ZeroTimeoutContractTest.java (94%) rename src/test/java/com/github/copilot/{sdk => }/generated/GeneratedEventTypesCoverageTest.java (99%) rename src/test/java/com/github/copilot/{sdk => }/generated/rpc/GeneratedRpcApiCoverageTest.java (99%) rename src/test/java/com/github/copilot/{sdk => }/generated/rpc/GeneratedRpcRecordsCoverageTest.java (99%) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 7b304f267..5c5c0ff8e 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -75,9 +75,9 @@ mvn test -Dtest=CopilotClientTest ### Package Structure -- `com.github.copilot.sdk` - Core classes (CopilotClient, CopilotSession, JsonRpcClient) -- `com.github.copilot.sdk.json` - DTOs, request/response types, handler interfaces (SessionConfig, MessageOptions, ToolDefinition, etc.) -- `com.github.copilot.sdk.generated` - Generated event types for session streaming (SessionEvent, AssistantMessageEvent, SessionIdleEvent, ToolExecutionStartEvent, etc.) +- `com.github.copilot` - Core classes (CopilotClient, CopilotSession, JsonRpcClient) +- `com.github.copilot.rpc` - DTOs, request/response types, handler interfaces (SessionConfig, MessageOptions, ToolDefinition, etc.) +- `com.github.copilot.generated` - Generated event types for session streaming (SessionEvent, AssistantMessageEvent, SessionIdleEvent, ToolExecutionStartEvent, etc.) ### Test Infrastructure diff --git a/.github/prompts/agentic-merge-reference-impl.prompt.md b/.github/prompts/agentic-merge-reference-impl.prompt.md index 88cc2bdfe..579903b99 100644 --- a/.github/prompts/agentic-merge-reference-impl.prompt.md +++ b/.github/prompts/agentic-merge-reference-impl.prompt.md @@ -209,7 +209,7 @@ This creates a clear history of changes that can be reviewed in the Pull Request Follow the existing Java SDK patterns: - Use Jackson for JSON serialization (`ObjectMapper`) - Use Java records for DTOs where appropriate -- Follow the existing package structure under `com.github.copilot.sdk` +- Follow the existing package structure under `com.github.copilot` - Maintain backward compatibility when possible - **Match the style of surrounding code** - Consistency with existing code is more important than reference implementation patterns - **Prefer existing abstractions** - If the Java SDK already solves a problem differently than .NET, keep the Java approach diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e174dd21..40c47e694 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -405,7 +405,7 @@ New types: `GetForegroundSessionResponse`, `SetForegroundSessionResponse` - Advanced usage documentation with comprehensive examples - Getting started guide with Maven and JBang instructions -- Package-info.java files for `com.github.copilot.sdk`, `events`, and `json` packages +- Package-info.java files for `com.github.copilot`, `events`, and `json` packages - `@since` annotations on all public classes - Versioned documentation with version selector on GitHub Pages - Maven resources plugin for site markdown filtering diff --git a/README.md b/README.md index 37bb2d659..e4d2cc302 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,13 @@ implementation 'com.github:copilot-sdk-java:1.0.0-beta-java.4' ## Quick Start ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionUsageInfoEvent; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionUsageInfoEvent; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; import java.util.concurrent.Executors; diff --git a/config/spotbugs/spotbugs-exclude.xml b/config/spotbugs/spotbugs-exclude.xml index 1c7d415f6..b0b362882 100644 --- a/config/spotbugs/spotbugs-exclude.xml +++ b/config/spotbugs/spotbugs-exclude.xml @@ -10,11 +10,11 @@ --> - + - + diff --git a/jbang-example.java b/jbang-example.java index 1c41679cd..a3616e263 100644 --- a/jbang-example.java +++ b/jbang-example.java @@ -1,11 +1,11 @@ ///usr/bin/env jbang "$0" "$@" ; exit $? //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionUsageInfoEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionUsageInfoEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; import static java.lang.System.out; diff --git a/pom.xml b/pom.xml index be9e92a93..b8ba9ef0e 100644 --- a/pom.xml +++ b/pom.xml @@ -429,11 +429,11 @@ testExecutionAgentArgs - com/github/copilot/sdk/** + com/github/copilot/** - com/github/copilot/sdk/E2ETestContext* - com/github/copilot/sdk/CapiProxy* + com/github/copilot/E2ETestContext* + com/github/copilot/CapiProxy* diff --git a/scripts/codegen/java.ts b/scripts/codegen/java.ts index 34bc83a9d..a17ff2f68 100644 --- a/scripts/codegen/java.ts +++ b/scripts/codegen/java.ts @@ -358,7 +358,7 @@ async function generateSessionEvents(schemaPath: string): Promise { pendingStandaloneTypes.clear(); const variants = extractEventVariants(schema); - const packageName = "com.github.copilot.sdk.generated"; + const packageName = "com.github.copilot.generated"; const packageDir = `src/generated/java/com/github/copilot/sdk/generated`; // Generate base SessionEvent class @@ -940,7 +940,7 @@ async function generateRpcTypes(schemaPath: string): Promise { console.warn(`[codegen] Could not load session-events schema for cross-ref resolution: ${e}`); } - const packageName = "com.github.copilot.sdk.generated.rpc"; + const packageName = "com.github.copilot.generated.rpc"; const packageDir = `src/generated/java/com/github/copilot/sdk/generated/rpc`; // Collect all RPC methods from all sections @@ -1562,7 +1562,7 @@ async function generateRpcWrappers(schemaPath: string): Promise { // Set module-level definitions for $ref resolution in wrapper helpers currentDefinitions = (schema.definitions ?? {}) as Record; - const packageName = "com.github.copilot.sdk.generated.rpc"; + const packageName = "com.github.copilot.generated.rpc"; const packageDir = `src/generated/java/com/github/copilot/sdk/generated/rpc`; // RpcCaller interface and shared ObjectMapper holder diff --git a/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java b/src/generated/java/com/github/copilot/generated/AbortEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java rename to src/generated/java/com/github/copilot/generated/AbortEvent.java index 297f23f72..e58922aa0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java +++ b/src/generated/java/com/github/copilot/generated/AbortEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java b/src/generated/java/com/github/copilot/generated/AbortReason.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/AbortReason.java rename to src/generated/java/com/github/copilot/generated/AbortReason.java index 2bb93b886..2ffbdb8d8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java +++ b/src/generated/java/com/github/copilot/generated/AbortReason.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java b/src/generated/java/com/github/copilot/generated/AssistantIntentEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantIntentEvent.java index 332daeb17..49de4cda2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantIntentEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java b/src/generated/java/com/github/copilot/generated/AssistantMessageDeltaEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantMessageDeltaEvent.java index ff84f757d..cdc0e3e26 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantMessageDeltaEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java b/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java index ab58b24e5..74d531008 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java b/src/generated/java/com/github/copilot/generated/AssistantMessageStartEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantMessageStartEvent.java index 8a83da943..f85e33b88 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantMessageStartEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java b/src/generated/java/com/github/copilot/generated/AssistantMessageToolRequest.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java rename to src/generated/java/com/github/copilot/generated/AssistantMessageToolRequest.java index e185a01fa..201373401 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java +++ b/src/generated/java/com/github/copilot/generated/AssistantMessageToolRequest.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java b/src/generated/java/com/github/copilot/generated/AssistantMessageToolRequestType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java rename to src/generated/java/com/github/copilot/generated/AssistantMessageToolRequestType.java index 024b845d6..acf6df7b4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java +++ b/src/generated/java/com/github/copilot/generated/AssistantMessageToolRequestType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java b/src/generated/java/com/github/copilot/generated/AssistantReasoningDeltaEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantReasoningDeltaEvent.java index 5c7a6f94b..f9d8b25b4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantReasoningDeltaEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java b/src/generated/java/com/github/copilot/generated/AssistantReasoningEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantReasoningEvent.java index 58a7e665d..d84b40058 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantReasoningEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java b/src/generated/java/com/github/copilot/generated/AssistantStreamingDeltaEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantStreamingDeltaEvent.java index 31acae7c6..e5eae1897 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantStreamingDeltaEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java b/src/generated/java/com/github/copilot/generated/AssistantTurnEndEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantTurnEndEvent.java index e349711dc..fa245915b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantTurnEndEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java b/src/generated/java/com/github/copilot/generated/AssistantTurnStartEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantTurnStartEvent.java index 245803774..f090117bf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantTurnStartEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java b/src/generated/java/com/github/copilot/generated/AssistantUsageApiEndpoint.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java rename to src/generated/java/com/github/copilot/generated/AssistantUsageApiEndpoint.java index e69e4ef86..9f94c4a6e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java +++ b/src/generated/java/com/github/copilot/generated/AssistantUsageApiEndpoint.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java b/src/generated/java/com/github/copilot/generated/AssistantUsageCopilotUsage.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java rename to src/generated/java/com/github/copilot/generated/AssistantUsageCopilotUsage.java index ee3e9f9cf..e9db8a530 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java +++ b/src/generated/java/com/github/copilot/generated/AssistantUsageCopilotUsage.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java b/src/generated/java/com/github/copilot/generated/AssistantUsageCopilotUsageTokenDetail.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java rename to src/generated/java/com/github/copilot/generated/AssistantUsageCopilotUsageTokenDetail.java index bea7cf162..9354568c7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java +++ b/src/generated/java/com/github/copilot/generated/AssistantUsageCopilotUsageTokenDetail.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java b/src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java rename to src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java index 7d06ae9a0..24b74c54f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java +++ b/src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java b/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java rename to src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java index 1bfa2c088..167f42040 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java +++ b/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java b/src/generated/java/com/github/copilot/generated/AutoModeSwitchCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/AutoModeSwitchCompletedEvent.java index 09c15cc1a..76a35dbb7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/AutoModeSwitchCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java b/src/generated/java/com/github/copilot/generated/AutoModeSwitchRequestedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/AutoModeSwitchRequestedEvent.java index 4c68eb746..79fc5c316 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/AutoModeSwitchRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java b/src/generated/java/com/github/copilot/generated/AutoModeSwitchResponse.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java rename to src/generated/java/com/github/copilot/generated/AutoModeSwitchResponse.java index 3f677ca20..46745b66e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java +++ b/src/generated/java/com/github/copilot/generated/AutoModeSwitchResponse.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java b/src/generated/java/com/github/copilot/generated/CapabilitiesChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java rename to src/generated/java/com/github/copilot/generated/CapabilitiesChangedEvent.java index ff359b04a..8f0d0809f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/CapabilitiesChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java b/src/generated/java/com/github/copilot/generated/CapabilitiesChangedUI.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java rename to src/generated/java/com/github/copilot/generated/CapabilitiesChangedUI.java index 828733b04..89c211f6c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java +++ b/src/generated/java/com/github/copilot/generated/CapabilitiesChangedUI.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java b/src/generated/java/com/github/copilot/generated/CommandCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/CommandCompletedEvent.java index 584cde38b..a334edbb1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/CommandCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java b/src/generated/java/com/github/copilot/generated/CommandExecuteEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java rename to src/generated/java/com/github/copilot/generated/CommandExecuteEvent.java index 5d07300e8..efd840bbd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java +++ b/src/generated/java/com/github/copilot/generated/CommandExecuteEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java b/src/generated/java/com/github/copilot/generated/CommandQueuedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java rename to src/generated/java/com/github/copilot/generated/CommandQueuedEvent.java index f724f5299..518248aa9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java +++ b/src/generated/java/com/github/copilot/generated/CommandQueuedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java b/src/generated/java/com/github/copilot/generated/CommandsChangedCommand.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java rename to src/generated/java/com/github/copilot/generated/CommandsChangedCommand.java index cb446ee24..383f141fc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java +++ b/src/generated/java/com/github/copilot/generated/CommandsChangedCommand.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java b/src/generated/java/com/github/copilot/generated/CommandsChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java rename to src/generated/java/com/github/copilot/generated/CommandsChangedEvent.java index 7b2d3c2c1..a3f8fba19 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/CommandsChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java b/src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsed.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java rename to src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsed.java index c3469eb7b..ed454deaf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java +++ b/src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsed.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java b/src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java rename to src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java index 76e5a0ed8..886229cc6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java +++ b/src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java b/src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java rename to src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java index 5c368251f..83209f94c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java +++ b/src/generated/java/com/github/copilot/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java b/src/generated/java/com/github/copilot/generated/CustomAgentsUpdatedAgent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java rename to src/generated/java/com/github/copilot/generated/CustomAgentsUpdatedAgent.java index 154e76377..642be8694 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java +++ b/src/generated/java/com/github/copilot/generated/CustomAgentsUpdatedAgent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java b/src/generated/java/com/github/copilot/generated/ElicitationCompletedAction.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java rename to src/generated/java/com/github/copilot/generated/ElicitationCompletedAction.java index 32e4723e5..cc6026f25 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java +++ b/src/generated/java/com/github/copilot/generated/ElicitationCompletedAction.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java b/src/generated/java/com/github/copilot/generated/ElicitationCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/ElicitationCompletedEvent.java index ee713a100..454cc43a0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ElicitationCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java b/src/generated/java/com/github/copilot/generated/ElicitationRequestedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/ElicitationRequestedEvent.java index 000c242c9..6c8aa2547 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ElicitationRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java b/src/generated/java/com/github/copilot/generated/ElicitationRequestedMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java rename to src/generated/java/com/github/copilot/generated/ElicitationRequestedMode.java index ffe24b56f..49538450d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java +++ b/src/generated/java/com/github/copilot/generated/ElicitationRequestedMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java b/src/generated/java/com/github/copilot/generated/ElicitationRequestedSchema.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java rename to src/generated/java/com/github/copilot/generated/ElicitationRequestedSchema.java index 4234867ad..d6ad62b4b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java +++ b/src/generated/java/com/github/copilot/generated/ElicitationRequestedSchema.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java b/src/generated/java/com/github/copilot/generated/ExitPlanModeAction.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java rename to src/generated/java/com/github/copilot/generated/ExitPlanModeAction.java index a8b85ad94..6d8664141 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java +++ b/src/generated/java/com/github/copilot/generated/ExitPlanModeAction.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java b/src/generated/java/com/github/copilot/generated/ExitPlanModeCompletedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/ExitPlanModeCompletedEvent.java index 378853293..6056a570e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ExitPlanModeCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java b/src/generated/java/com/github/copilot/generated/ExitPlanModeRequestedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/ExitPlanModeRequestedEvent.java index e96124bc7..134e01cbb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ExitPlanModeRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java b/src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtension.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java rename to src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtension.java index 32e8ae460..b47f308c8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java +++ b/src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtension.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java b/src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtensionSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java rename to src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtensionSource.java index d6409caf4..abf991a01 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java +++ b/src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtensionSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java b/src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtensionStatus.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java rename to src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtensionStatus.java index a4ef8de99..8f8ca0b65 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java +++ b/src/generated/java/com/github/copilot/generated/ExtensionsLoadedExtensionStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java b/src/generated/java/com/github/copilot/generated/ExternalToolCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/ExternalToolCompletedEvent.java index be086cb6d..cfd9828e7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ExternalToolCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java b/src/generated/java/com/github/copilot/generated/ExternalToolRequestedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/ExternalToolRequestedEvent.java index 72591dd47..1f5a3a205 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ExternalToolRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java b/src/generated/java/com/github/copilot/generated/HandoffRepository.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java rename to src/generated/java/com/github/copilot/generated/HandoffRepository.java index a87002c9e..e54226a8b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java +++ b/src/generated/java/com/github/copilot/generated/HandoffRepository.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java b/src/generated/java/com/github/copilot/generated/HandoffSourceType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java rename to src/generated/java/com/github/copilot/generated/HandoffSourceType.java index 06f39c214..83d667782 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java +++ b/src/generated/java/com/github/copilot/generated/HandoffSourceType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java b/src/generated/java/com/github/copilot/generated/HookEndError.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/HookEndError.java rename to src/generated/java/com/github/copilot/generated/HookEndError.java index bbf992536..59646b3cc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java +++ b/src/generated/java/com/github/copilot/generated/HookEndError.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java b/src/generated/java/com/github/copilot/generated/HookEndEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java rename to src/generated/java/com/github/copilot/generated/HookEndEvent.java index 71b148fb1..1b90f5fa9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java +++ b/src/generated/java/com/github/copilot/generated/HookEndEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java b/src/generated/java/com/github/copilot/generated/HookStartEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java rename to src/generated/java/com/github/copilot/generated/HookStartEvent.java index 0505c4182..f4605ce25 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java +++ b/src/generated/java/com/github/copilot/generated/HookStartEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java b/src/generated/java/com/github/copilot/generated/McpOauthCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/McpOauthCompletedEvent.java index 33a56f824..f02c7d42a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/McpOauthCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java b/src/generated/java/com/github/copilot/generated/McpOauthRequiredEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java rename to src/generated/java/com/github/copilot/generated/McpOauthRequiredEvent.java index c2e9843da..c384afcf0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java +++ b/src/generated/java/com/github/copilot/generated/McpOauthRequiredEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java b/src/generated/java/com/github/copilot/generated/McpOauthRequiredStaticClientConfig.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java rename to src/generated/java/com/github/copilot/generated/McpOauthRequiredStaticClientConfig.java index b037b82ac..764f8b7fc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java +++ b/src/generated/java/com/github/copilot/generated/McpOauthRequiredStaticClientConfig.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java b/src/generated/java/com/github/copilot/generated/McpServerSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java rename to src/generated/java/com/github/copilot/generated/McpServerSource.java index 15cff507a..63514743a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java +++ b/src/generated/java/com/github/copilot/generated/McpServerSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java b/src/generated/java/com/github/copilot/generated/McpServerStatus.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java rename to src/generated/java/com/github/copilot/generated/McpServerStatus.java index f9c948f10..b5bb08093 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java +++ b/src/generated/java/com/github/copilot/generated/McpServerStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatusChangedStatus.java b/src/generated/java/com/github/copilot/generated/McpServerStatusChangedStatus.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/McpServerStatusChangedStatus.java rename to src/generated/java/com/github/copilot/generated/McpServerStatusChangedStatus.java index c0a6d989d..cc11c8cab 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatusChangedStatus.java +++ b/src/generated/java/com/github/copilot/generated/McpServerStatusChangedStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java b/src/generated/java/com/github/copilot/generated/McpServersLoadedServer.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java rename to src/generated/java/com/github/copilot/generated/McpServersLoadedServer.java index dbd08ede7..aba91bdef 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java +++ b/src/generated/java/com/github/copilot/generated/McpServersLoadedServer.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServerStatus.java b/src/generated/java/com/github/copilot/generated/McpServersLoadedServerStatus.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServerStatus.java rename to src/generated/java/com/github/copilot/generated/McpServersLoadedServerStatus.java index 4d09fe2a3..af3c97840 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServerStatus.java +++ b/src/generated/java/com/github/copilot/generated/McpServersLoadedServerStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java b/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java rename to src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java index 42de2f1f8..e4df71384 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java +++ b/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java b/src/generated/java/com/github/copilot/generated/ModelCallFailureSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java rename to src/generated/java/com/github/copilot/generated/ModelCallFailureSource.java index 469adaab4..747112c3d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java +++ b/src/generated/java/com/github/copilot/generated/ModelCallFailureSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java b/src/generated/java/com/github/copilot/generated/PendingMessagesModifiedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java rename to src/generated/java/com/github/copilot/generated/PendingMessagesModifiedEvent.java index 7cdcf1d3a..2b7fecee0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java +++ b/src/generated/java/com/github/copilot/generated/PendingMessagesModifiedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java b/src/generated/java/com/github/copilot/generated/PermissionCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/PermissionCompletedEvent.java index feeb4ca82..e389863d3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/PermissionCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedKind.java b/src/generated/java/com/github/copilot/generated/PermissionCompletedKind.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedKind.java rename to src/generated/java/com/github/copilot/generated/PermissionCompletedKind.java index c02f221fd..61c770b65 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedKind.java +++ b/src/generated/java/com/github/copilot/generated/PermissionCompletedKind.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedResult.java b/src/generated/java/com/github/copilot/generated/PermissionCompletedResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedResult.java rename to src/generated/java/com/github/copilot/generated/PermissionCompletedResult.java index 4a180001c..1beb80523 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedResult.java +++ b/src/generated/java/com/github/copilot/generated/PermissionCompletedResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java b/src/generated/java/com/github/copilot/generated/PermissionRequestedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/PermissionRequestedEvent.java index fda4db42f..2d7988062 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/PermissionRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java b/src/generated/java/com/github/copilot/generated/PlanChangedOperation.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java rename to src/generated/java/com/github/copilot/generated/PlanChangedOperation.java index cd52d7ec1..35d4fece4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java +++ b/src/generated/java/com/github/copilot/generated/PlanChangedOperation.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java b/src/generated/java/com/github/copilot/generated/ReasoningSummary.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java rename to src/generated/java/com/github/copilot/generated/ReasoningSummary.java index 98897bbc9..a2b6d3e02 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java +++ b/src/generated/java/com/github/copilot/generated/ReasoningSummary.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java b/src/generated/java/com/github/copilot/generated/SamplingCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/SamplingCompletedEvent.java index 2c6b264aa..0cf0e9daa 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SamplingCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java b/src/generated/java/com/github/copilot/generated/SamplingRequestedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/SamplingRequestedEvent.java index 2be3cfc49..1982f552c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SamplingRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionBackgroundTasksChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionBackgroundTasksChangedEvent.java index 062954dfb..2a712ae49 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionBackgroundTasksChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java b/src/generated/java/com/github/copilot/generated/SessionCompactionCompleteEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java rename to src/generated/java/com/github/copilot/generated/SessionCompactionCompleteEvent.java index 3c1252003..a1e418d9c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionCompactionCompleteEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java b/src/generated/java/com/github/copilot/generated/SessionCompactionStartEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java rename to src/generated/java/com/github/copilot/generated/SessionCompactionStartEvent.java index 051f83f4c..90fcd76b6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionCompactionStartEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionContextChangedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionContextChangedEvent.java index 6cc775d52..1fc5ef0ea 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionContextChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java b/src/generated/java/com/github/copilot/generated/SessionCustomAgentsUpdatedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionCustomAgentsUpdatedEvent.java index ec10ed9c9..9ceed8c65 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionCustomAgentsUpdatedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java b/src/generated/java/com/github/copilot/generated/SessionCustomNotificationEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java rename to src/generated/java/com/github/copilot/generated/SessionCustomNotificationEvent.java index 3078895b7..499d143d4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionCustomNotificationEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java b/src/generated/java/com/github/copilot/generated/SessionErrorEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java rename to src/generated/java/com/github/copilot/generated/SessionErrorEvent.java index 48ae04ade..c644adcef 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionErrorEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java b/src/generated/java/com/github/copilot/generated/SessionEvent.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java rename to src/generated/java/com/github/copilot/generated/SessionEvent.java index 2181be197..e27096264 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java b/src/generated/java/com/github/copilot/generated/SessionExtensionsLoadedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionExtensionsLoadedEvent.java index a1b9b8fce..0165be5d2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionExtensionsLoadedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java b/src/generated/java/com/github/copilot/generated/SessionHandoffEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java rename to src/generated/java/com/github/copilot/generated/SessionHandoffEvent.java index 11599defa..7edba44c0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionHandoffEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java b/src/generated/java/com/github/copilot/generated/SessionIdleEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java rename to src/generated/java/com/github/copilot/generated/SessionIdleEvent.java index cdb38a344..dc7136c20 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionIdleEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java b/src/generated/java/com/github/copilot/generated/SessionInfoEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java rename to src/generated/java/com/github/copilot/generated/SessionInfoEvent.java index c0613dfa2..2d9ac3690 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionInfoEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionMcpServerStatusChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionMcpServerStatusChangedEvent.java index 27cf4d9cc..345e9ab2e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionMcpServerStatusChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java b/src/generated/java/com/github/copilot/generated/SessionMcpServersLoadedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionMcpServersLoadedEvent.java index 0a0b7bc50..d97875513 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionMcpServersLoadedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java b/src/generated/java/com/github/copilot/generated/SessionMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/SessionMode.java rename to src/generated/java/com/github/copilot/generated/SessionMode.java index f6359c0df..ba579b306 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java +++ b/src/generated/java/com/github/copilot/generated/SessionMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionModeChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionModeChangedEvent.java index c997f9850..28fb3e9e4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionModeChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java b/src/generated/java/com/github/copilot/generated/SessionModelChangeEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java rename to src/generated/java/com/github/copilot/generated/SessionModelChangeEvent.java index 8225fc78f..0c408e0b3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionModelChangeEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionPlanChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionPlanChangedEvent.java index 266ec307d..cf9f4706d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionPlanChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionRemoteSteerableChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionRemoteSteerableChangedEvent.java index 5ba942315..adcc3aeb7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionRemoteSteerableChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java b/src/generated/java/com/github/copilot/generated/SessionResumeEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java rename to src/generated/java/com/github/copilot/generated/SessionResumeEvent.java index a5983fc2a..e27cc2045 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionResumeEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java b/src/generated/java/com/github/copilot/generated/SessionScheduleCancelledEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java rename to src/generated/java/com/github/copilot/generated/SessionScheduleCancelledEvent.java index 2c480a757..51aba5d4c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionScheduleCancelledEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java b/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java index eb051a014..2a9cbdeb4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java b/src/generated/java/com/github/copilot/generated/SessionShutdownEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java rename to src/generated/java/com/github/copilot/generated/SessionShutdownEvent.java index e9d3c4432..03ad8e027 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionShutdownEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java b/src/generated/java/com/github/copilot/generated/SessionSkillsLoadedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionSkillsLoadedEvent.java index c429125bf..f04118435 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionSkillsLoadedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java b/src/generated/java/com/github/copilot/generated/SessionSnapshotRewindEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java rename to src/generated/java/com/github/copilot/generated/SessionSnapshotRewindEvent.java index b121fdff3..9c7e8765b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionSnapshotRewindEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java b/src/generated/java/com/github/copilot/generated/SessionStartEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java rename to src/generated/java/com/github/copilot/generated/SessionStartEvent.java index 0143908f5..0bb4b800f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionStartEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java b/src/generated/java/com/github/copilot/generated/SessionTaskCompleteEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java rename to src/generated/java/com/github/copilot/generated/SessionTaskCompleteEvent.java index f114ff82b..097f59c97 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionTaskCompleteEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionTitleChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionTitleChangedEvent.java index 4d6086bf3..e835e8ae5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionTitleChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java b/src/generated/java/com/github/copilot/generated/SessionToolsUpdatedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionToolsUpdatedEvent.java index 0cb8614c7..1d80e5b60 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionToolsUpdatedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java b/src/generated/java/com/github/copilot/generated/SessionTruncationEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java rename to src/generated/java/com/github/copilot/generated/SessionTruncationEvent.java index 60e7134e6..0a96601b6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionTruncationEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java b/src/generated/java/com/github/copilot/generated/SessionUsageInfoEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java rename to src/generated/java/com/github/copilot/generated/SessionUsageInfoEvent.java index 84d73703a..70ecfe01a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionUsageInfoEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java b/src/generated/java/com/github/copilot/generated/SessionWarningEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java rename to src/generated/java/com/github/copilot/generated/SessionWarningEvent.java index fc0a0778e..42b2eb8df 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionWarningEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java b/src/generated/java/com/github/copilot/generated/SessionWorkspaceFileChangedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java rename to src/generated/java/com/github/copilot/generated/SessionWorkspaceFileChangedEvent.java index ba9032664..85447d567 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SessionWorkspaceFileChangedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java b/src/generated/java/com/github/copilot/generated/ShutdownCodeChanges.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java rename to src/generated/java/com/github/copilot/generated/ShutdownCodeChanges.java index 9512573bd..1ca80ad71 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownCodeChanges.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java b/src/generated/java/com/github/copilot/generated/ShutdownModelMetric.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java rename to src/generated/java/com/github/copilot/generated/ShutdownModelMetric.java index bc7d41d8b..b7eb37fd9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownModelMetric.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java b/src/generated/java/com/github/copilot/generated/ShutdownModelMetricRequests.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java rename to src/generated/java/com/github/copilot/generated/ShutdownModelMetricRequests.java index 901d2a3e7..ebc58271e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownModelMetricRequests.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java b/src/generated/java/com/github/copilot/generated/ShutdownModelMetricTokenDetail.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java rename to src/generated/java/com/github/copilot/generated/ShutdownModelMetricTokenDetail.java index f179898a3..fe18de6c6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownModelMetricTokenDetail.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java b/src/generated/java/com/github/copilot/generated/ShutdownModelMetricUsage.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java rename to src/generated/java/com/github/copilot/generated/ShutdownModelMetricUsage.java index a2301664b..09a61920d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownModelMetricUsage.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java b/src/generated/java/com/github/copilot/generated/ShutdownTokenDetail.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java rename to src/generated/java/com/github/copilot/generated/ShutdownTokenDetail.java index 856e4d2f6..75db095c5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownTokenDetail.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java b/src/generated/java/com/github/copilot/generated/ShutdownType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java rename to src/generated/java/com/github/copilot/generated/ShutdownType.java index fbc627df8..288d0835f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java +++ b/src/generated/java/com/github/copilot/generated/ShutdownType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java b/src/generated/java/com/github/copilot/generated/SkillInvokedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java rename to src/generated/java/com/github/copilot/generated/SkillInvokedEvent.java index 6aa238544..5be080a64 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SkillInvokedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java b/src/generated/java/com/github/copilot/generated/SkillSource.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SkillSource.java rename to src/generated/java/com/github/copilot/generated/SkillSource.java index 9951c1da9..b681faaae 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java +++ b/src/generated/java/com/github/copilot/generated/SkillSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java b/src/generated/java/com/github/copilot/generated/SkillsLoadedSkill.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java rename to src/generated/java/com/github/copilot/generated/SkillsLoadedSkill.java index 21f0dc0f4..07ce97825 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java +++ b/src/generated/java/com/github/copilot/generated/SkillsLoadedSkill.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java b/src/generated/java/com/github/copilot/generated/SubagentCompletedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/SubagentCompletedEvent.java index 45bdade9a..98924809f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SubagentCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java b/src/generated/java/com/github/copilot/generated/SubagentDeselectedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java rename to src/generated/java/com/github/copilot/generated/SubagentDeselectedEvent.java index 391df6d49..2274ba66e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SubagentDeselectedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java b/src/generated/java/com/github/copilot/generated/SubagentFailedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java rename to src/generated/java/com/github/copilot/generated/SubagentFailedEvent.java index 3437e93ba..9264b5b0e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SubagentFailedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java b/src/generated/java/com/github/copilot/generated/SubagentSelectedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java rename to src/generated/java/com/github/copilot/generated/SubagentSelectedEvent.java index b342e4230..7eb82019b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SubagentSelectedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java b/src/generated/java/com/github/copilot/generated/SubagentStartedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java rename to src/generated/java/com/github/copilot/generated/SubagentStartedEvent.java index 737d773f1..647bc824d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java +++ b/src/generated/java/com/github/copilot/generated/SubagentStartedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java b/src/generated/java/com/github/copilot/generated/SystemMessageEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java rename to src/generated/java/com/github/copilot/generated/SystemMessageEvent.java index 82976c004..09d39a199 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java +++ b/src/generated/java/com/github/copilot/generated/SystemMessageEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java b/src/generated/java/com/github/copilot/generated/SystemMessageMetadata.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java rename to src/generated/java/com/github/copilot/generated/SystemMessageMetadata.java index 2b054dc94..f7f5fcbf2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java +++ b/src/generated/java/com/github/copilot/generated/SystemMessageMetadata.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java b/src/generated/java/com/github/copilot/generated/SystemMessageRole.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java rename to src/generated/java/com/github/copilot/generated/SystemMessageRole.java index 921b69ec0..3ccd8c31d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java +++ b/src/generated/java/com/github/copilot/generated/SystemMessageRole.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java b/src/generated/java/com/github/copilot/generated/SystemNotificationEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java rename to src/generated/java/com/github/copilot/generated/SystemNotificationEvent.java index ba11910e0..5a8a0fdfb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java +++ b/src/generated/java/com/github/copilot/generated/SystemNotificationEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java b/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteError.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java rename to src/generated/java/com/github/copilot/generated/ToolExecutionCompleteError.java index dbdc99ba7..ac4c7d843 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java +++ b/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteError.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java b/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java rename to src/generated/java/com/github/copilot/generated/ToolExecutionCompleteEvent.java index 8d1c1c5c2..36284b472 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java +++ b/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java b/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java rename to src/generated/java/com/github/copilot/generated/ToolExecutionCompleteResult.java index 8f2830541..4792ec8da 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java +++ b/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java b/src/generated/java/com/github/copilot/generated/ToolExecutionPartialResultEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java rename to src/generated/java/com/github/copilot/generated/ToolExecutionPartialResultEvent.java index e548cc1b0..9c43aa2ec 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java +++ b/src/generated/java/com/github/copilot/generated/ToolExecutionPartialResultEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java b/src/generated/java/com/github/copilot/generated/ToolExecutionProgressEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java rename to src/generated/java/com/github/copilot/generated/ToolExecutionProgressEvent.java index d2b20312a..f3a7c1158 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java +++ b/src/generated/java/com/github/copilot/generated/ToolExecutionProgressEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java b/src/generated/java/com/github/copilot/generated/ToolExecutionStartEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java rename to src/generated/java/com/github/copilot/generated/ToolExecutionStartEvent.java index a98f7dec3..782f185f7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java +++ b/src/generated/java/com/github/copilot/generated/ToolExecutionStartEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java b/src/generated/java/com/github/copilot/generated/ToolUserRequestedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/ToolUserRequestedEvent.java index ffd69535d..1b4d519a9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/ToolUserRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java b/src/generated/java/com/github/copilot/generated/UnknownSessionEvent.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java rename to src/generated/java/com/github/copilot/generated/UnknownSessionEvent.java index cf56b4b4f..8f1257cf9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java +++ b/src/generated/java/com/github/copilot/generated/UnknownSessionEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java b/src/generated/java/com/github/copilot/generated/UserInputCompletedEvent.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java rename to src/generated/java/com/github/copilot/generated/UserInputCompletedEvent.java index 66883aa62..7750c9e70 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java +++ b/src/generated/java/com/github/copilot/generated/UserInputCompletedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java b/src/generated/java/com/github/copilot/generated/UserInputRequestedEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java rename to src/generated/java/com/github/copilot/generated/UserInputRequestedEvent.java index bb903191b..e7ddb2859 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java +++ b/src/generated/java/com/github/copilot/generated/UserInputRequestedEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java b/src/generated/java/com/github/copilot/generated/UserMessageAgentMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java rename to src/generated/java/com/github/copilot/generated/UserMessageAgentMode.java index 6c1710602..f6e7c60d7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java +++ b/src/generated/java/com/github/copilot/generated/UserMessageAgentMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java b/src/generated/java/com/github/copilot/generated/UserMessageEvent.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java rename to src/generated/java/com/github/copilot/generated/UserMessageEvent.java index 0e0de5dd2..3e8e7520f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java +++ b/src/generated/java/com/github/copilot/generated/UserMessageEvent.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java b/src/generated/java/com/github/copilot/generated/WorkingDirectoryContext.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java rename to src/generated/java/com/github/copilot/generated/WorkingDirectoryContext.java index b023859e2..813cd5e02 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java +++ b/src/generated/java/com/github/copilot/generated/WorkingDirectoryContext.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java b/src/generated/java/com/github/copilot/generated/WorkingDirectoryContextHostType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java rename to src/generated/java/com/github/copilot/generated/WorkingDirectoryContextHostType.java index 4786b8bc0..c87237a8d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java +++ b/src/generated/java/com/github/copilot/generated/WorkingDirectoryContextHostType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java b/src/generated/java/com/github/copilot/generated/WorkspaceFileChangedOperation.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java rename to src/generated/java/com/github/copilot/generated/WorkspaceFileChangedOperation.java index 7e21ec548..a6347ed77 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java +++ b/src/generated/java/com/github/copilot/generated/WorkspaceFileChangedOperation.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: session-events.schema.json -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java b/src/generated/java/com/github/copilot/generated/rpc/AbortReason.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java rename to src/generated/java/com/github/copilot/generated/rpc/AbortReason.java index 0d0302fa4..a48640077 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java +++ b/src/generated/java/com/github/copilot/generated/rpc/AbortReason.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java b/src/generated/java/com/github/copilot/generated/rpc/AccountGetQuotaResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java rename to src/generated/java/com/github/copilot/generated/rpc/AccountGetQuotaResult.java index 468519623..257a08756 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/AccountGetQuotaResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java b/src/generated/java/com/github/copilot/generated/rpc/AccountQuotaSnapshot.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java rename to src/generated/java/com/github/copilot/generated/rpc/AccountQuotaSnapshot.java index a13f01195..88e7ba9c6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java +++ b/src/generated/java/com/github/copilot/generated/rpc/AccountQuotaSnapshot.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java b/src/generated/java/com/github/copilot/generated/rpc/AgentInfo.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java rename to src/generated/java/com/github/copilot/generated/rpc/AgentInfo.java index df2a24622..ce8089373 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java +++ b/src/generated/java/com/github/copilot/generated/rpc/AgentInfo.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java b/src/generated/java/com/github/copilot/generated/rpc/AgentInfoSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java rename to src/generated/java/com/github/copilot/generated/rpc/AgentInfoSource.java index 699df1787..6f8afe71e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/AgentInfoSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java b/src/generated/java/com/github/copilot/generated/rpc/AuthInfoType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java rename to src/generated/java/com/github/copilot/generated/rpc/AuthInfoType.java index 89c5db85c..1fb4b43ba 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/AuthInfoType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java b/src/generated/java/com/github/copilot/generated/rpc/ConnectParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java rename to src/generated/java/com/github/copilot/generated/rpc/ConnectParams.java index b22245ed9..590dd0147 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ConnectParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java b/src/generated/java/com/github/copilot/generated/rpc/ConnectResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java rename to src/generated/java/com/github/copilot/generated/rpc/ConnectResult.java index f51b1a9c3..d24d120e1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ConnectResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java b/src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadata.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java rename to src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadata.java index 006b750c1..9e3a4a57f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadata.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java b/src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadataKind.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java rename to src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadataKind.java index 14e4e4b22..8d22c1dd4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadataKind.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java b/src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadataRepository.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java rename to src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadataRepository.java index 562dfba8a..7daa17bd1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ConnectedRemoteSessionMetadataRepository.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java b/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServer.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java rename to src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServer.java index 2cfe49334..73095ef61 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java +++ b/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServer.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerSource.java b/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerSource.java rename to src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerSource.java index 6bc451b34..89d7322fb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java b/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java rename to src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerType.java index 0d4293d9a..8e6c1417a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java b/src/generated/java/com/github/copilot/generated/rpc/EventsAgentScope.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java rename to src/generated/java/com/github/copilot/generated/rpc/EventsAgentScope.java index e748df0d3..5e85b1926 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java +++ b/src/generated/java/com/github/copilot/generated/rpc/EventsAgentScope.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java b/src/generated/java/com/github/copilot/generated/rpc/EventsCursorStatus.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java rename to src/generated/java/com/github/copilot/generated/rpc/EventsCursorStatus.java index eb68386ad..31c1fcab0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java +++ b/src/generated/java/com/github/copilot/generated/rpc/EventsCursorStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java b/src/generated/java/com/github/copilot/generated/rpc/Extension.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java rename to src/generated/java/com/github/copilot/generated/rpc/Extension.java index 7784fa5a4..13bb851b4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java +++ b/src/generated/java/com/github/copilot/generated/rpc/Extension.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java b/src/generated/java/com/github/copilot/generated/rpc/ExtensionSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java rename to src/generated/java/com/github/copilot/generated/rpc/ExtensionSource.java index 2ec3da397..aeb7a144f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ExtensionSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java b/src/generated/java/com/github/copilot/generated/rpc/ExtensionStatus.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java rename to src/generated/java/com/github/copilot/generated/rpc/ExtensionStatus.java index 241a5cd60..34592663f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ExtensionStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java b/src/generated/java/com/github/copilot/generated/rpc/HistoryCompactContextWindow.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java rename to src/generated/java/com/github/copilot/generated/rpc/HistoryCompactContextWindow.java index 4ac1a8fa9..6c223f029 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java +++ b/src/generated/java/com/github/copilot/generated/rpc/HistoryCompactContextWindow.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java b/src/generated/java/com/github/copilot/generated/rpc/InstalledPlugin.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java rename to src/generated/java/com/github/copilot/generated/rpc/InstalledPlugin.java index 9f48489da..c274dfb1a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java +++ b/src/generated/java/com/github/copilot/generated/rpc/InstalledPlugin.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java b/src/generated/java/com/github/copilot/generated/rpc/InstructionsSources.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java rename to src/generated/java/com/github/copilot/generated/rpc/InstructionsSources.java index 0cc669e22..9e6a458d4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java +++ b/src/generated/java/com/github/copilot/generated/rpc/InstructionsSources.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java b/src/generated/java/com/github/copilot/generated/rpc/InstructionsSourcesLocation.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java rename to src/generated/java/com/github/copilot/generated/rpc/InstructionsSourcesLocation.java index 943591213..23db5a367 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java +++ b/src/generated/java/com/github/copilot/generated/rpc/InstructionsSourcesLocation.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java b/src/generated/java/com/github/copilot/generated/rpc/InstructionsSourcesType.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java rename to src/generated/java/com/github/copilot/generated/rpc/InstructionsSourcesType.java index b451f40c6..6fed6c4bf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/InstructionsSourcesType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java b/src/generated/java/com/github/copilot/generated/rpc/McpConfigAddParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java rename to src/generated/java/com/github/copilot/generated/rpc/McpConfigAddParams.java index a865e900e..64ffd3951 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpConfigAddParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java b/src/generated/java/com/github/copilot/generated/rpc/McpConfigDisableParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/McpConfigDisableParams.java index 49664f8e8..e71c12f93 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpConfigDisableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java b/src/generated/java/com/github/copilot/generated/rpc/McpConfigEnableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/McpConfigEnableParams.java index 4bf628465..952d6fb68 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpConfigEnableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java b/src/generated/java/com/github/copilot/generated/rpc/McpConfigListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/McpConfigListResult.java index f2be8641a..4d6644228 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpConfigListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java b/src/generated/java/com/github/copilot/generated/rpc/McpConfigRemoveParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java rename to src/generated/java/com/github/copilot/generated/rpc/McpConfigRemoveParams.java index 9e87063c4..840b72abf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpConfigRemoveParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java b/src/generated/java/com/github/copilot/generated/rpc/McpConfigUpdateParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java rename to src/generated/java/com/github/copilot/generated/rpc/McpConfigUpdateParams.java index 8c2df6072..f2c2b0faa 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpConfigUpdateParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java b/src/generated/java/com/github/copilot/generated/rpc/McpDiscoverParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java rename to src/generated/java/com/github/copilot/generated/rpc/McpDiscoverParams.java index 29b386052..ed7b32bb7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpDiscoverParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java b/src/generated/java/com/github/copilot/generated/rpc/McpDiscoverResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java rename to src/generated/java/com/github/copilot/generated/rpc/McpDiscoverResult.java index 074aedc61..b000b16ff 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpDiscoverResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java b/src/generated/java/com/github/copilot/generated/rpc/McpExecuteSamplingRequest.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java rename to src/generated/java/com/github/copilot/generated/rpc/McpExecuteSamplingRequest.java index 9dcf307ea..4fd862ebd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpExecuteSamplingRequest.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java b/src/generated/java/com/github/copilot/generated/rpc/McpExecuteSamplingResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java rename to src/generated/java/com/github/copilot/generated/rpc/McpExecuteSamplingResult.java index 6524610d0..18a838d30 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpExecuteSamplingResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java b/src/generated/java/com/github/copilot/generated/rpc/McpSamplingExecutionAction.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java rename to src/generated/java/com/github/copilot/generated/rpc/McpSamplingExecutionAction.java index a00f41e82..d0a3802f7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpSamplingExecutionAction.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java b/src/generated/java/com/github/copilot/generated/rpc/McpServer.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java rename to src/generated/java/com/github/copilot/generated/rpc/McpServer.java index e8b71f7e8..7da05f659 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpServer.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java b/src/generated/java/com/github/copilot/generated/rpc/McpServerSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java rename to src/generated/java/com/github/copilot/generated/rpc/McpServerSource.java index 3ffe4b797..f709df96d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpServerSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java b/src/generated/java/com/github/copilot/generated/rpc/McpServerStatus.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java rename to src/generated/java/com/github/copilot/generated/rpc/McpServerStatus.java index 06bec4f30..db463a737 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpServerStatus.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java b/src/generated/java/com/github/copilot/generated/rpc/McpSetEnvValueModeDetails.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java rename to src/generated/java/com/github/copilot/generated/rpc/McpSetEnvValueModeDetails.java index d62e10c30..dda0c02ca 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java +++ b/src/generated/java/com/github/copilot/generated/rpc/McpSetEnvValueModeDetails.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotCurrentMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java rename to src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotCurrentMode.java index 5d55d1c4b..2d6c7eb57 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotCurrentMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadata.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java rename to src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadata.java index b97a5f12c..88b6dede3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java +++ b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadata.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java rename to src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java index fb6c62e8a..cc0bb6532 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java +++ b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java rename to src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java index 387d39234..da019b5f7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java b/src/generated/java/com/github/copilot/generated/rpc/Model.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java rename to src/generated/java/com/github/copilot/generated/rpc/Model.java index 1a808911c..090451916 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java +++ b/src/generated/java/com/github/copilot/generated/rpc/Model.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java b/src/generated/java/com/github/copilot/generated/rpc/ModelBilling.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelBilling.java index 9e634bb79..94a8188f1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelBilling.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java b/src/generated/java/com/github/copilot/generated/rpc/ModelBillingTokenPrices.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelBillingTokenPrices.java index 34005daf1..7477b8526 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelBillingTokenPrices.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilities.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilities.java index 4c6b5e3af..168a72099 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilities.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesLimits.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesLimits.java index 8adf6812b..694e2a2ea 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesLimits.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesLimitsVision.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesLimitsVision.java index cbfc7c3b8..d7f8e7154 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesLimitsVision.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverride.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverride.java index 1ec67824e..1433a7b5e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverride.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideLimits.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideLimits.java index f5b0b4e5e..c0de367f3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideLimits.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java index 0d53e8532..86339787d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideSupports.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideSupports.java index 23304c82d..ec1da750d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesOverrideSupports.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesSupports.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesSupports.java index f898f130f..91a98b423 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelCapabilitiesSupports.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java b/src/generated/java/com/github/copilot/generated/rpc/ModelPickerCategory.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelPickerCategory.java index ba0bdddfd..ab36abfd9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelPickerCategory.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java b/src/generated/java/com/github/copilot/generated/rpc/ModelPickerPriceCategory.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelPickerPriceCategory.java index cf722e496..8f7050395 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelPickerPriceCategory.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java b/src/generated/java/com/github/copilot/generated/rpc/ModelPolicy.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelPolicy.java index a6cdeb5d5..f37fb85d0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelPolicy.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java b/src/generated/java/com/github/copilot/generated/rpc/ModelPolicyState.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelPolicyState.java index 1673080d0..525d57ca6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelPolicyState.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/ModelsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/ModelsListResult.java index db9dd791a..0ae1acfce 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ModelsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java b/src/generated/java/com/github/copilot/generated/rpc/OptionsUpdateEnvValueMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java rename to src/generated/java/com/github/copilot/generated/rpc/OptionsUpdateEnvValueMode.java index f75daae61..7be82f9d5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/OptionsUpdateEnvValueMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java b/src/generated/java/com/github/copilot/generated/rpc/PendingPermissionRequest.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java rename to src/generated/java/com/github/copilot/generated/rpc/PendingPermissionRequest.java index f4d84c730..de370ca5d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PendingPermissionRequest.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionLocationType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionLocationType.java index c3b368cac..1b00c5bf5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionLocationType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionPathsConfig.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionPathsConfig.java index 1ac49881b..29aef6c66 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionPathsConfig.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionRule.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionRule.java index ad8a57d8f..7980e0e83 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionRule.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionRulesSet.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionRulesSet.java index c29f11ba4..7cc00563f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionRulesSet.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionUrlsConfig.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionUrlsConfig.java index 46ff5501f..728e7b40d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionUrlsConfig.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java index 2b31068e0..61108c16b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java index c41050f1b..c6c7f649a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java index 372e341da..a5d4a45f3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java index 1c378ec62..f006888b7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionsModifyRulesScope.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionsModifyRulesScope.java index 53dc33391..f574befcf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionsModifyRulesScope.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java b/src/generated/java/com/github/copilot/generated/rpc/PermissionsSetApproveAllSource.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java rename to src/generated/java/com/github/copilot/generated/rpc/PermissionsSetApproveAllSource.java index 9e88acc59..b86b09dfa 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PermissionsSetApproveAllSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java b/src/generated/java/com/github/copilot/generated/rpc/PingParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java rename to src/generated/java/com/github/copilot/generated/rpc/PingParams.java index 564478b17..2e00e6cac 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PingParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java b/src/generated/java/com/github/copilot/generated/rpc/PingResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java rename to src/generated/java/com/github/copilot/generated/rpc/PingResult.java index b0ed087bd..ded50ecbd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/PingResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java b/src/generated/java/com/github/copilot/generated/rpc/Plugin.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java rename to src/generated/java/com/github/copilot/generated/rpc/Plugin.java index 1b09c22ce..b10cd31cf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java +++ b/src/generated/java/com/github/copilot/generated/rpc/Plugin.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java b/src/generated/java/com/github/copilot/generated/rpc/QueuePendingItems.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java rename to src/generated/java/com/github/copilot/generated/rpc/QueuePendingItems.java index ccffaed7e..bfbc87f46 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java +++ b/src/generated/java/com/github/copilot/generated/rpc/QueuePendingItems.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java b/src/generated/java/com/github/copilot/generated/rpc/QueuePendingItemsKind.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java rename to src/generated/java/com/github/copilot/generated/rpc/QueuePendingItemsKind.java index 90f9e7f62..7cf13a257 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java +++ b/src/generated/java/com/github/copilot/generated/rpc/QueuePendingItemsKind.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java b/src/generated/java/com/github/copilot/generated/rpc/ReasoningSummary.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java rename to src/generated/java/com/github/copilot/generated/rpc/ReasoningSummary.java index 5e534e214..3b95a9e2b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ReasoningSummary.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java b/src/generated/java/com/github/copilot/generated/rpc/RemoteSessionMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java rename to src/generated/java/com/github/copilot/generated/rpc/RemoteSessionMode.java index 93238eef4..68c3e6617 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/RemoteSessionMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java b/src/generated/java/com/github/copilot/generated/rpc/RpcCaller.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java rename to src/generated/java/com/github/copilot/generated/rpc/RpcCaller.java index d15513ce0..67e7571a1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java +++ b/src/generated/java/com/github/copilot/generated/rpc/RpcCaller.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java b/src/generated/java/com/github/copilot/generated/rpc/RpcMapper.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java rename to src/generated/java/com/github/copilot/generated/rpc/RpcMapper.java index 87d432820..0d2a4e8b7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java +++ b/src/generated/java/com/github/copilot/generated/rpc/RpcMapper.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java b/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java rename to src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java index 8038341a8..fb41975bd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SecretsAddFilterValuesParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SecretsAddFilterValuesParams.java index e8d1b5542..364377311 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SecretsAddFilterValuesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SecretsAddFilterValuesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SecretsAddFilterValuesResult.java index 7762377ff..f6261b638 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SecretsAddFilterValuesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java b/src/generated/java/com/github/copilot/generated/rpc/SendAgentMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java rename to src/generated/java/com/github/copilot/generated/rpc/SendAgentMode.java index 7dee184c9..641a1ac47 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SendAgentMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java b/src/generated/java/com/github/copilot/generated/rpc/SendMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java rename to src/generated/java/com/github/copilot/generated/rpc/SendMode.java index c424caabc..013f59597 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SendMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerAccountApi.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerAccountApi.java index 583e11085..d3bd44460 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerAccountApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerMcpApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerMcpApi.java index db70171c9..6ff26e80d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerMcpApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerMcpConfigApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerMcpConfigApi.java index cec231c61..6f0a2105d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerMcpConfigApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerModelsApi.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerModelsApi.java index e062c6f0a..c0515a06f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerModelsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java b/src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java index 436fcc696..707e998d0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerSecretsApi.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerSecretsApi.java index af8f6c3c5..800722c85 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerSecretsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerSessionFsApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerSessionFsApi.java index 25aefcf25..93022becf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerSessionFsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerSessionsApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerSessionsApi.java index 72a13699c..c4b25a649 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerSessionsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java b/src/generated/java/com/github/copilot/generated/rpc/ServerSkill.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerSkill.java index 92f9e0ccc..ba02ea28d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerSkill.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerSkillsApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerSkillsApi.java index 8884edc97..6404ab6fd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerSkillsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerSkillsConfigApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerSkillsConfigApi.java index a0236fd33..e552227cc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerSkillsConfigApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java b/src/generated/java/com/github/copilot/generated/rpc/ServerToolsApi.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/ServerToolsApi.java index 81bbaece6..10e64747e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ServerToolsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAbortParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAbortParams.java index 8f7c47f7c..4738643b8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAbortParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAbortResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAbortResult.java index 4a8d42c71..9d75b5db5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAbortResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentApi.java index ab91fe3ae..c992d36e3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectParams.java index d412c83cf..1b1094713 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectResult.java index 81e2e3ebb..679a3fb83 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentGetCurrentParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentGetCurrentParams.java index 24bf532ff..59774974f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentGetCurrentParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentGetCurrentResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentGetCurrentResult.java index fec2bc94f..d4dfe25b4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentGetCurrentResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentListParams.java index 6badf614c..9763eb5c3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentListResult.java index 9b618b248..d7cdd1127 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentReloadParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentReloadParams.java index 5b30c866a..c3467c5e9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentReloadParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentReloadResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentReloadResult.java index d058293ea..47eec9eae 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentReloadResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentSelectParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentSelectParams.java index 38532ace0..372d1d1f6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentSelectParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentSelectResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAgentSelectResult.java index ea19f5648..927352e2d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAgentSelectResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAuthApi.java index 5b87bf3b3..0f5729fe5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthGetStatusParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAuthGetStatusParams.java index 4a9988668..d57a3cccc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthGetStatusParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthGetStatusResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAuthGetStatusResult.java index 6e58fe6c7..3480257cc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthGetStatusResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthSetCredentialsParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAuthSetCredentialsParams.java index 5e5e6b502..0b3b7aa9d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthSetCredentialsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthSetCredentialsResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionAuthSetCredentialsResult.java index 5aef213a4..ad53ee919 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionAuthSetCredentialsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsApi.java index 7a142ecf9..b0bc291e6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsEnqueueParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsEnqueueParams.java index 6ca80d251..f4ca14dfa 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsEnqueueParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsEnqueueResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsEnqueueResult.java index e968e1df8..649f01ca4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsEnqueueResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsExecuteParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsExecuteParams.java index 1f1e73acb..f88ac4c03 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsExecuteParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsExecuteResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsExecuteResult.java index a03b08c66..1b1c44299 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsExecuteResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsHandlePendingCommandParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsHandlePendingCommandParams.java index e036870e1..9b9c12514 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsHandlePendingCommandParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsHandlePendingCommandResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsHandlePendingCommandResult.java index 101714028..9e3698702 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsHandlePendingCommandResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsInvokeParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsInvokeParams.java index ec35a5bb3..21d92ebab 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsInvokeParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsListParams.java index a1fa2728b..d60a147d8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsListResult.java index aae276f6c..8d532352a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java index 8eb5d2dbc..22b89f364 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java index 3cf5a6de3..1cc396139 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java b/src/generated/java/com/github/copilot/generated/rpc/SessionContext.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionContext.java index 1a8c148bd..50376a0f0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionContext.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java b/src/generated/java/com/github/copilot/generated/rpc/SessionContextHostType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionContextHostType.java index db0945e31..8eea0e719 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionContextHostType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogApi.java index 58351e99a..eac102aef 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadParams.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadParams.java index cad49d452..a77e8a871 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadResult.java index 725a76792..dcd138e7b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestParams.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestParams.java index 3bddc6904..94f68bdf7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestResult.java index e0a6bb5a5..ac4da49d0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogRegisterInterestResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReleaseInterestParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReleaseInterestParams.java index c6bd4efb1..1eea25f44 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReleaseInterestParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReleaseInterestResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReleaseInterestResult.java index 0ba6b149a..39cf07afa 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReleaseInterestResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogTailParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogTailParams.java index 270af92dc..3906d7e6e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogTailParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogTailResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionEventLogTailResult.java index a966cd591..1b29827d3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogTailResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java index cf7e6a505..337ba15cc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableParams.java index 896ee43c8..f4bf4d5b3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableResult.java index 136e858fb..ac057e5a2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableParams.java index 45db74f49..5e00268af 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableResult.java index 1b7d328e0..82d9b9c6b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsListParams.java index b1c320f68..52f9c08f9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsListResult.java index ae3aa777f..ba5ea94f1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadParams.java index e192ededf..ceaa990f1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadResult.java index e4a1a2264..9d118b783 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFleetApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFleetApi.java index 3c59b0c4a..27023dc89 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFleetApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFleetStartParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFleetStartParams.java index 5e687cec5..5d5e2c88c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFleetStartParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFleetStartResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFleetStartResult.java index e328b4ec2..c89f377d7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFleetStartResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsAppendFileParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsAppendFileParams.java index 84a1807ce..a3db24a0d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsAppendFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsError.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsError.java index a78aa5374..349114dfd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsError.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsErrorCode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsErrorCode.java index 099ff1236..4098d43ab 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsErrorCode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsExistsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsExistsParams.java index f5217f532..29b510798 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsExistsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsExistsResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsExistsResult.java index 6209fd635..0068ae3a3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsExistsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsMkdirParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsMkdirParams.java index 80e0e95a2..c1ed1aec7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsMkdirParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReadFileParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReadFileParams.java index 851c1ac88..d040129cc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReadFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReadFileResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReadFileResult.java index c3abbde10..c71e1a514 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReadFileResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirParams.java index 1b18f9df5..00b865c33 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirResult.java index 053017d1e..745118beb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesEntry.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesEntry.java index 7cafa538e..f4c755951 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesEntry.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesEntryType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesEntryType.java index 71640ec34..67e62372e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesEntryType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesParams.java index b092d2075..a6b80481d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesResult.java index 13f105622..3fb693c80 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsReaddirWithTypesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsRenameParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsRenameParams.java index f1d758cba..76dbc8cfb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsRenameParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsRmParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsRmParams.java index b73a9d631..ed50649a3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsRmParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderCapabilities.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderCapabilities.java index 570182125..7d6c0adb3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderCapabilities.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderConventions.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderConventions.java index ac669a189..abac4795f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderConventions.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderParams.java index e03dcfcc8..d99a14862 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderResult.java index 621ed7d05..6088729f5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSetProviderResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteExistsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteExistsParams.java index 47f2bf045..1956f804b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteExistsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteExistsResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteExistsResult.java index 0cccf0cec..6c1328e9e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteExistsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryParams.java index 1f07d8cac..e489bb122 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryResult.java index edc1e9c83..ff14d3ec1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryType.java index ef0143da2..a59bdd1f2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsSqliteQueryType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsStatParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsStatParams.java index 410b168fd..2e6ccfdea 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsStatParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsStatResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsStatResult.java index 2e3b811d9..56d883d10 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsStatResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionFsWriteFileParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionFsWriteFileParams.java index ed08b2f7d..4f4e02636 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionFsWriteFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryAbortManualCompactionParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryAbortManualCompactionParams.java index c08926c39..04749d2b6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryAbortManualCompactionParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryAbortManualCompactionResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryAbortManualCompactionResult.java index efefbd1a0..7767202d7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryAbortManualCompactionResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryApi.java index 143250b0c..91c7702f7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java index faba738ed..56adc34ae 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java index 22d9b926e..c22fdd092 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCompactParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCompactParams.java index 30a3fd393..cbb23e96f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCompactParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCompactResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCompactResult.java index e7546b44c..46a52f425 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryCompactResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistorySummarizeForHandoffParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistorySummarizeForHandoffParams.java index 946b9232f..816af2cd1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistorySummarizeForHandoffParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistorySummarizeForHandoffResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistorySummarizeForHandoffResult.java index d49b225d2..3723aae25 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistorySummarizeForHandoffResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryTruncateParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryTruncateParams.java index a56ed6994..70b1331e4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryTruncateParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryTruncateResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionHistoryTruncateResult.java index 7905c66b9..3c2a74ccb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionHistoryTruncateResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java b/src/generated/java/com/github/copilot/generated/rpc/SessionInstalledPlugin.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionInstalledPlugin.java index 8ca95b8b3..5d1428558 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionInstalledPlugin.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsApi.java index 5aec59dfd..15f3fce68 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesParams.java index cc1e2fb3b..f9b683147 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesResult.java index 10badb176..4d62780da 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java b/src/generated/java/com/github/copilot/generated/rpc/SessionLogLevel.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionLogLevel.java index 7ec7361a7..e9ca23da2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionLogLevel.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionLogParams.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionLogParams.java index 66e0d4c85..edd160f82 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionLogParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionLogResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionLogResult.java index 23d9e8d6a..7d9d79d71 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionLogResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionLspApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionLspApi.java index 79aa00055..76678266c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionLspApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionLspInitializeParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionLspInitializeParams.java index 37c064aa7..bd0387b88 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionLspInitializeParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpApi.java index be2d22d4b..4282a2334 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpCancelSamplingExecutionParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpCancelSamplingExecutionParams.java index 191eeda98..c00459e4b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpCancelSamplingExecutionParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpCancelSamplingExecutionResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpCancelSamplingExecutionResult.java index 35147aed2..9495602f6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpCancelSamplingExecutionResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableParams.java index a9d2b0060..adee20ceb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableResult.java index 0565cf8d1..834dc2cb7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableParams.java index f7d19088a..53b23f9ee 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableResult.java index 43319c3a9..86b1a6716 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpExecuteSamplingParams.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpExecuteSamplingParams.java index 19a9adffb..b6f995971 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpExecuteSamplingParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpExecuteSamplingResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpExecuteSamplingResult.java index d22143c53..578cb10f2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpExecuteSamplingResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpListParams.java index fb04ed4a1..4ae5d6a2c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpListResult.java index d61809d42..220f663b6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java index c603af3d7..68535ebc4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java index 004cd3d62..4fcca6618 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginResult.java index 9c557f6f5..e3d9071f7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadParams.java index 705e42b72..6df56c453 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadResult.java index 80a2c4c26..3f0d970fc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpRemoveGitHubParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpRemoveGitHubParams.java index 5c7915d9f..0213c76f5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpRemoveGitHubParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpRemoveGitHubResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpRemoveGitHubResult.java index 1f13b31c4..1845649bc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpRemoveGitHubResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpSetEnvValueModeParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpSetEnvValueModeParams.java index 01efee333..5a524cfb0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpSetEnvValueModeParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpSetEnvValueModeResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMcpSetEnvValueModeResult.java index 9e69732d2..300ef08e7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMcpSetEnvValueModeResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadata.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadata.java index 6069f8ab4..c1d3e75eb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadata.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataApi.java index b0a82347a..7bd7e66bb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataContextInfoParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataContextInfoParams.java index 94176d544..4b6bccf7e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataContextInfoParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataContextInfoResult.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataContextInfoResult.java index fe8e15f78..de9074e8c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataContextInfoResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataIsProcessingParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataIsProcessingParams.java index 5e86f186a..329dbea10 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataIsProcessingParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataIsProcessingResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataIsProcessingResult.java index fb5d4e59b..e496bb662 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataIsProcessingResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecomputeContextTokensParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecomputeContextTokensParams.java index 27824912c..979f8808d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecomputeContextTokensParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecomputeContextTokensResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecomputeContextTokensResult.java index c8d398a4d..4aab3841a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecomputeContextTokensResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeParams.java index 24e1c79ba..6b42c822c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeResult.java index 08d780868..41f252b20 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java index 436286f65..507b0a49f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java index b1c0f5fb9..85ef81026 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotParams.java index ffbad219e..d3e94df43 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotResult.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotResult.java index 49002659e..ec905f078 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataSnapshotResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java b/src/generated/java/com/github/copilot/generated/rpc/SessionMode.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionMode.java index d335fd7cd..e12db3624 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionMode.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModeApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModeApi.java index b28cd5d37..e5201bd6a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModeApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModeGetParams.java index c8f660f92..c1a493621 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModeGetResult.java index 595dff851..b5123aebf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModeSetParams.java index 22618fe35..b12bea9ff 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModeSetResult.java index f4609f671..c79602272 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelApi.java index b2c112b66..eda751b3e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelGetCurrentParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelGetCurrentParams.java index 1687e9fff..abcf1c2ab 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelGetCurrentParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelGetCurrentResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelGetCurrentResult.java index 5afd22911..7bb2f8496 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelGetCurrentResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSetReasoningEffortParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelSetReasoningEffortParams.java index da6bb1870..6135c2e0a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSetReasoningEffortParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSetReasoningEffortResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelSetReasoningEffortResult.java index 0ec6e239e..2d6cbd0a6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSetReasoningEffortResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSwitchToParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelSwitchToParams.java index e06d3e68a..c5c1cbbe0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSwitchToParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSwitchToResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionModelSwitchToResult.java index 6c4e7a39c..8bf6f2c8e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionModelSwitchToResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionNameApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionNameApi.java index 73b6c6bc2..e7e1be58a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionNameApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionNameGetParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionNameGetParams.java index 941a19a89..d3728d06d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionNameGetParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionNameGetResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionNameGetResult.java index 349aa81a2..b3e459967 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionNameGetResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionNameSetAutoParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionNameSetAutoParams.java index 4b6db1bde..8c69e0d5d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionNameSetAutoParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionNameSetAutoResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionNameSetAutoResult.java index 134694a8c..e84407d89 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionNameSetAutoResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionNameSetParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionNameSetParams.java index 6ad1fcd37..7fd348c36 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionNameSetParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionOptionsApi.java index 8624c57e3..4e46d346a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java index fa768dd7b..081817f3a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateResult.java index a20c64ab8..4e514944c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsApi.java index 082268d89..42d947954 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsConfigureParams.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsConfigureParams.java index 494495fc5..0ae82cd21 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsConfigureParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsConfigureResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsConfigureResult.java index 7f9ce4150..267403f09 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsConfigureResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java index 184087f22..27544af71 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java index dbe09efc5..d7181cd86 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustApi.java index 5337a40f1..00191e5c4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java index bacbe5649..f8d666a88 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java index 3f2e26a0d..c969d324b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java index f8f10a8d1..2f061ed0c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java index a517e642f..07bcc16e7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java index 42429498d..bb99721ab 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java index fae259c23..044851720 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApi.java index 388bd49df..c40877b6b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApplyParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApplyParams.java index 7af5ef28f..aa40ddb2a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApplyParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApplyResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApplyResult.java index b2514d8af..842226b32 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsApplyResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsResolveParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsResolveParams.java index d6ba06fba..2e4f5cf2f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsResolveParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsResolveResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsResolveResult.java index 3254bb2c6..ff22dcafe 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsLocationsResolveResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsModifyRulesParams.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsModifyRulesParams.java index ca91f611e..3243aea8b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsModifyRulesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsModifyRulesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsModifyRulesResult.java index b4ed7786f..6c5c83675 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsModifyRulesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsNotifyPromptShownParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsNotifyPromptShownParams.java index 50129680f..8c4b25c72 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsNotifyPromptShownParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsNotifyPromptShownResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsNotifyPromptShownResult.java index 6f2a368f4..092d8abf8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsNotifyPromptShownResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddParams.java index 5730b6b5e..272408cce 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddResult.java index efb8fd5c4..182c39b6f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsApi.java index 38ad70c67..f4fc1a770 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java index 71bd09a61..c9d43aeb2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java index 6aadee068..6e876bcca 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java index 699bf4cc8..c8fafd90c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java index 3d64be687..3eaf87052 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsListParams.java index 23fad022d..43ae1f040 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsListResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsListResult.java index ab56c4a29..78d86e370 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java index 626ef5752..98a7ccfb2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java index 34b8c403e..7be298132 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPendingRequestsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPendingRequestsParams.java index c7ec7f946..4e3f24cb7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPendingRequestsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPendingRequestsResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPendingRequestsResult.java index b2b3c4ec1..33769fa8b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPendingRequestsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java index 1f125f14d..dd369bf43 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java index 81f71aea3..2097ed064 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetApproveAllParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetApproveAllParams.java index c61bdcca0..0517a5d86 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetApproveAllParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetApproveAllResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetApproveAllResult.java index 50301af4a..7504cac18 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetApproveAllResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetRequiredParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetRequiredParams.java index e862dd76f..e3c3e0e34 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetRequiredParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetRequiredResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetRequiredResult.java index 56f90afbc..eaab9e378 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetRequiredResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsApi.java index 1f46c66dc..71b97adff 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java index ed3c0bc6b..6579489eb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java index 41199db33..beef183a7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanApi.java index 165621138..25ff6884f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteParams.java index 5e7732fb8..d47bd774e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteResult.java index 666109985..98cb199e6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanReadParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanReadParams.java index 2891852ea..57949be2b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanReadParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanReadResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanReadResult.java index 3b5c1634a..65a1ba75f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanReadResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateParams.java index fea63cf01..128a7b814 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateResult.java index aa6c64aaf..3e17cfeda 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPluginsApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPluginsApi.java index 176310e11..e59e2b398 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPluginsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPluginsListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPluginsListParams.java index f5923c0d2..7229b23a0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPluginsListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionPluginsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionPluginsListResult.java index c5acac58d..bdf3e6dd8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionPluginsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionQueueApi.java index 19533541d..9c4a13b55 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueClearParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionQueueClearParams.java index 1ab26019e..38d4404c7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueClearParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsParams.java index 6bc51f807..a4e2b10c2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsResult.java index 9f839fdc1..0a8e6540e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueRemoveMostRecentParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionQueueRemoveMostRecentParams.java index 1ca36be68..26419bcea 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueRemoveMostRecentParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueRemoveMostRecentResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionQueueRemoveMostRecentResult.java index a92c93d5f..ecd428322 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionQueueRemoveMostRecentResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRemoteApi.java index f5f0ec3cc..3e4f2ce8c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteDisableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRemoteDisableParams.java index c2ebe21e8..a49197aa1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteDisableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteEnableParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRemoteEnableParams.java index b487353cb..20c3db98a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteEnableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteEnableResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRemoteEnableResult.java index b098ebbef..5b282f91b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteEnableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedParams.java index 8851fad7a..13df7f676 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedResult.java index 857f37362..4d48e604d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java b/src/generated/java/com/github/copilot/generated/rpc/SessionRpc.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionRpc.java index a2639eb0a..ff66aeef3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionRpc.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionScheduleApi.java index a0714233b..e35fb2197 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionScheduleListParams.java index 0b32d10d8..3dda01502 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionScheduleListResult.java index 80202f88d..6a5ec101c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleStopParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionScheduleStopParams.java index f82cca373..321599991 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleStopParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleStopResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionScheduleStopResult.java index 803706803..b61b0bb9e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionScheduleStopResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSendParams.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSendParams.java index caebce526..42177c82d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSendParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSendResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSendResult.java index d93c58ce1..747435e18 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSendResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionShellApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionShellApi.java index 6ed7c8b6b..9abf8a626 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionShellApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionShellExecParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionShellExecParams.java index 82a5815d9..817adc93c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionShellExecParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionShellExecResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionShellExecResult.java index d7790ce70..28a756535 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionShellExecResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionShellKillParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionShellKillParams.java index c89e21982..1b26f1cb4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionShellKillParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionShellKillResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionShellKillResult.java index 163c990bb..db3ff08cf 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionShellKillResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionShutdownParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionShutdownParams.java index e7bf266e8..c17bef956 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionShutdownParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsApi.java index 82cea6a8f..0d6a2fec3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableParams.java index 82f20ecec..ba1df8ea2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableResult.java index 7f3fe40b8..3bd4b7dad 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableParams.java index 0d42ce06e..6e6a7fd62 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableResult.java index 1e7ea4c7f..e8684ddc1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnsureLoadedParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnsureLoadedParams.java index 8b7ab0e62..1d5a7f102 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnsureLoadedParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsGetInvokedParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsGetInvokedParams.java index 8ae29d5e7..c17c00d07 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsGetInvokedParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsGetInvokedResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsGetInvokedResult.java index f20c657c0..ed62e0fc7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsGetInvokedResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsListParams.java index 6f8986bfd..1d45d8fa9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsListResult.java index 98bafbaff..ded58a52f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsReloadParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsReloadParams.java index 5c2cdbeb3..3d580001c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsReloadParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsReloadResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSkillsReloadResult.java index 10d4fa7de..38c426e5b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsReloadResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionSuspendParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionSuspendParams.java index 103cefc68..4ca1c33ab 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionSuspendParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksApi.java index 5fa5ca90f..f203c536c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksCancelParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksCancelParams.java index e00f9fcf8..56fab2d64 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksCancelParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksCancelResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksCancelResult.java index 1ecae8152..ffb17a6f0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksCancelResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetCurrentPromotableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetCurrentPromotableParams.java index e183c7bc4..25a78bbc7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetCurrentPromotableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetCurrentPromotableResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetCurrentPromotableResult.java index 65eee3220..4ca2200ec 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetCurrentPromotableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetProgressParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetProgressParams.java index bcdf9a8d8..0081430c5 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetProgressParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetProgressResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetProgressResult.java index d2a4c7eb5..6f24e4bc9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksGetProgressResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksListParams.java index 8716e9549..d645ee348 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksListResult.java index 307cdd6b9..ec52af751 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java index 31c7fa94a..b7ec7e39e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java index 590082505..702aa1c4e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteToBackgroundParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteToBackgroundParams.java index 6dc27fd7c..f75e97f39 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteToBackgroundParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteToBackgroundResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteToBackgroundResult.java index 9580bc608..5ed332b17 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksPromoteToBackgroundResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshParams.java index 3560835af..da6e164df 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshResult.java index c38636976..497d41233 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRemoveParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksRemoveParams.java index 69fdfbd41..66a730590 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRemoveParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRemoveResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksRemoveResult.java index 44ff4eb75..0d4173cac 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRemoveResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksSendMessageParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksSendMessageParams.java index 5b496b080..841ad104a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksSendMessageParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksSendMessageResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksSendMessageResult.java index 0f72e5a69..dee710d95 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksSendMessageResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksStartAgentParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksStartAgentParams.java index 3ad64c52e..f146e6e91 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksStartAgentParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksStartAgentResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksStartAgentResult.java index 96bab97fa..24cd051ce 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksStartAgentResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingParams.java index 6dc935822..916c9f424 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingResult.java index 5cbce9cd5..b8ec86d12 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTelemetryApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTelemetryApi.java index 5cad4e771..92c24b4e8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTelemetryApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java index aa0d4e3c3..d0f364e23 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsApi.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionToolsApi.java index ded588627..81c04f2ca 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsHandlePendingToolCallParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionToolsHandlePendingToolCallParams.java index 3bdde0904..a5bfa4cca 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsHandlePendingToolCallParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsHandlePendingToolCallResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionToolsHandlePendingToolCallResult.java index 3eae1158d..fefaa652e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsHandlePendingToolCallResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateParams.java index d3ec2aeea..f605cb817 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateResult.java index d25c0e5a8..b4126b390 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiApi.java index 3ae829588..c3116fe58 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiElicitationParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiElicitationParams.java index e92aa36bd..d68416704 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiElicitationParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiElicitationResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiElicitationResult.java index 4be941e08..d08d7453e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiElicitationResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java index ab37b178c..1afe7d5e7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java index 0df5ca571..335f5d894 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingElicitationParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingElicitationParams.java index b648fb7a9..73d97220f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingElicitationParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingElicitationResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingElicitationResult.java index bf25a1686..bb2c91b6e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingElicitationResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java index a83d7d038..87c492bdb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java index c3c183b51..69fc6586d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSamplingParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSamplingParams.java index 6c4304fd5..8ce2ad2e1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSamplingParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSamplingResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSamplingResult.java index 2fa7e09e1..ced26ad66 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingSamplingResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingUserInputParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingUserInputParams.java index 3e1624bf2..89034cbd2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingUserInputParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingUserInputResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingUserInputResult.java index fb240b3c5..ae6369ee0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiHandlePendingUserInputResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java index 42c8ba2a5..f778d3164 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java index 5aedb596b..991954a26 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java index c22ad46e7..beab56aa2 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java index 6d36ad751..0836c5c16 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUsageApi.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUsageApi.java index c3db06d6b..b9a5a14a8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUsageApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUsageGetMetricsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUsageGetMetricsParams.java index 72cb52de9..035bf6498 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUsageGetMetricsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionUsageGetMetricsResult.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionUsageGetMetricsResult.java index 21feae576..e51b9453f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionUsageGetMetricsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkingDirectoryContext.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkingDirectoryContext.java index 4c17aa5ea..b16ef01e8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkingDirectoryContext.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkingDirectoryContextHostType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkingDirectoryContextHostType.java index 0c5a0cffe..1ed7e60d0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkingDirectoryContextHostType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceApi.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceApi.java index 8fd7d7467..d74f67047 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileParams.java index c25fdd790..94efe9313 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileResult.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileResult.java index e77cf58c5..f0bf113ba 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceCreateFileResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesParams.java index 0fb6431c9..a2fd1407c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesResult.java index 1b46df541..96e7ce9c4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceListFilesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileParams.java index ded74763a..c39a8a525 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileResult.java index c8705581e..b4ece91ef 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspaceReadFileResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesApi.java similarity index 99% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesApi.java index de51e4a90..df0e690a8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesApi.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import java.util.concurrent.CompletableFuture; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesCreateFileParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesCreateFileParams.java index b57681a17..3d757f852 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesCreateFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesGetWorkspaceParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesGetWorkspaceParams.java index 9f9628bb6..6a7482af7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesGetWorkspaceParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesGetWorkspaceResult.java similarity index 98% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesGetWorkspaceResult.java index ded4778b4..6beb5d453 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesGetWorkspaceResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListCheckpointsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListCheckpointsParams.java index 3f3c1ac1e..3d55cf43a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListCheckpointsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListCheckpointsResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListCheckpointsResult.java index c25be02d4..b6f562c66 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListCheckpointsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListFilesParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListFilesParams.java index 68b976a60..7fd4771a1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListFilesParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListFilesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListFilesResult.java index 06908175b..90a7cf2ce 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesListFilesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadCheckpointParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadCheckpointParams.java index 851a01bd4..8266acab4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadCheckpointParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadCheckpointResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadCheckpointResult.java index 4f9e18709..1b4322994 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadCheckpointResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadFileParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadFileParams.java index e322ee06d..85f44b608 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadFileParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadFileResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadFileResult.java index 7a0717dbe..b85ce3f6e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesReadFileResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesSaveLargePasteParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesSaveLargePasteParams.java index 466f5b7ba..23def325c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesSaveLargePasteParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesSaveLargePasteResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesSaveLargePasteResult.java index 84e5719d7..523b12488 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesSaveLargePasteResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsBulkDeleteParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsBulkDeleteParams.java index 986103825..e1aa50697 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsBulkDeleteParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsBulkDeleteResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsBulkDeleteResult.java index 893dd8210..2447d409d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsBulkDeleteResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsCheckInUseParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsCheckInUseParams.java index be8b2e385..4be30632d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsCheckInUseParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsCheckInUseResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsCheckInUseResult.java index c22e818cc..1ab7edab7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsCheckInUseResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseParams.java similarity index 94% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsCloseParams.java index c29d385be..667e18a4c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsCloseResult.java index fc8c5ee66..a63c44633 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsConnectParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsConnectParams.java index a8a9e76f6..5d0dfffeb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsConnectParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsConnectResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsConnectResult.java index b67783328..42c5d7e2e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsConnectResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsEnrichMetadataParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsEnrichMetadataParams.java index ef3330a97..973c952e9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsEnrichMetadataParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsEnrichMetadataResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsEnrichMetadataResult.java index fee15a2ed..864eed23d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsEnrichMetadataResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByPrefixParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsFindByPrefixParams.java index 628d93cb8..285876be0 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByPrefixParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByPrefixResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsFindByPrefixResult.java index 94b3a106c..27ceb2950 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByPrefixResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByTaskIdParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsFindByTaskIdParams.java index 23e1aaaed..cd643796c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByTaskIdParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByTaskIdResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsFindByTaskIdResult.java index eb5b9bfd4..d27634058 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsFindByTaskIdResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsForkParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsForkParams.java index 19858ac97..33bfb3a81 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsForkParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsForkResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsForkResult.java index 29bcb8c92..5e67f101e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsForkResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetEventFilePathParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetEventFilePathParams.java index a23a5434c..a0d19b5a4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetEventFilePathParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetEventFilePathResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetEventFilePathResult.java index 261a0d452..9d77f105f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetEventFilePathResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetLastForContextParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetLastForContextParams.java index 0b06f161f..43a23a89b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetLastForContextParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetLastForContextResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetLastForContextResult.java index c31e8d781..018b96f71 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetLastForContextResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java index 1fd9e476f..21f26bfcd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java index c4de7b09b..9dedef981 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetSizesResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsGetSizesResult.java index 98ec269e4..958f6e242 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsGetSizesResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsListResult.java index 99060bb18..7608fe3f3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsLoadDeferredRepoHooksParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsLoadDeferredRepoHooksParams.java index 67590914e..347b7c7e7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsLoadDeferredRepoHooksParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsLoadDeferredRepoHooksResult.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsLoadDeferredRepoHooksResult.java index 6f2299a49..194ce088d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsLoadDeferredRepoHooksResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsPruneOldParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsPruneOldParams.java index e36c033e3..d85438730 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsPruneOldParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsPruneOldResult.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsPruneOldResult.java index 6bcf5cecd..c04389b0c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsPruneOldResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockParams.java index 81c968251..76add5bcb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockResult.java index e3c660dc6..dde0c445e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksParams.java index a9537382a..82978334f 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksResult.java index 0920dd86e..835641e4d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsSaveParams.java index ae3b42b02..27f49addd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsSaveResult.java index 74ae1a466..758d11885 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsParams.java index 34ca74de9..d03706e3a 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java b/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsResult.java index e6f2a5b4c..848ff9e08 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java b/src/generated/java/com/github/copilot/generated/rpc/ShellKillSignal.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java rename to src/generated/java/com/github/copilot/generated/rpc/ShellKillSignal.java index 92700c5c0..646fa2be8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ShellKillSignal.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java b/src/generated/java/com/github/copilot/generated/rpc/ShutdownType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java rename to src/generated/java/com/github/copilot/generated/rpc/ShutdownType.java index 5dac44cfb..1b4e79dd4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ShutdownType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java b/src/generated/java/com/github/copilot/generated/rpc/Skill.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java rename to src/generated/java/com/github/copilot/generated/rpc/Skill.java index 92f94d661..d64f01515 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java +++ b/src/generated/java/com/github/copilot/generated/rpc/Skill.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java b/src/generated/java/com/github/copilot/generated/rpc/SkillSource.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java rename to src/generated/java/com/github/copilot/generated/rpc/SkillSource.java index db5f405a4..8d723548b 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SkillSource.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java b/src/generated/java/com/github/copilot/generated/rpc/SkillsConfigSetDisabledSkillsParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SkillsConfigSetDisabledSkillsParams.java index f704129dd..200e88cd7 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SkillsConfigSetDisabledSkillsParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java b/src/generated/java/com/github/copilot/generated/rpc/SkillsDiscoverParams.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java rename to src/generated/java/com/github/copilot/generated/rpc/SkillsDiscoverParams.java index be1d1921f..117680699 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SkillsDiscoverParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java b/src/generated/java/com/github/copilot/generated/rpc/SkillsDiscoverResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java rename to src/generated/java/com/github/copilot/generated/rpc/SkillsDiscoverResult.java index c80a73837..f56c814bc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SkillsDiscoverResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java b/src/generated/java/com/github/copilot/generated/rpc/SkillsInvokedSkill.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java rename to src/generated/java/com/github/copilot/generated/rpc/SkillsInvokedSkill.java index 7dde08942..697e18fa4 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SkillsInvokedSkill.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInfo.java similarity index 97% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java rename to src/generated/java/com/github/copilot/generated/rpc/SlashCommandInfo.java index 686018c51..722274524 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInfo.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInput.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java rename to src/generated/java/com/github/copilot/generated/rpc/SlashCommandInput.java index 186dec5a8..dcfc2a36e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInput.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInputCompletion.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java rename to src/generated/java/com/github/copilot/generated/rpc/SlashCommandInputCompletion.java index c192fa9c0..bfd2e7787 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInputCompletion.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandKind.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java rename to src/generated/java/com/github/copilot/generated/rpc/SlashCommandKind.java index 1f08c4efc..1f05c4773 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java +++ b/src/generated/java/com/github/copilot/generated/rpc/SlashCommandKind.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java b/src/generated/java/com/github/copilot/generated/rpc/Tool.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java rename to src/generated/java/com/github/copilot/generated/rpc/Tool.java index 5954c2c03..e4b1361c8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java +++ b/src/generated/java/com/github/copilot/generated/rpc/Tool.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java b/src/generated/java/com/github/copilot/generated/rpc/ToolsListParams.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java rename to src/generated/java/com/github/copilot/generated/rpc/ToolsListParams.java index 3072c46eb..6523f4bdc 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ToolsListParams.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java b/src/generated/java/com/github/copilot/generated/rpc/ToolsListResult.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java rename to src/generated/java/com/github/copilot/generated/rpc/ToolsListResult.java index 30e3b0962..5127277fb 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java +++ b/src/generated/java/com/github/copilot/generated/rpc/ToolsListResult.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java b/src/generated/java/com/github/copilot/generated/rpc/UIAutoModeSwitchResponse.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java rename to src/generated/java/com/github/copilot/generated/rpc/UIAutoModeSwitchResponse.java index 170c378a4..f6a3534d8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIAutoModeSwitchResponse.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java b/src/generated/java/com/github/copilot/generated/rpc/UIElicitationResponse.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java rename to src/generated/java/com/github/copilot/generated/rpc/UIElicitationResponse.java index 058a68c0d..e157ee727 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIElicitationResponse.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java b/src/generated/java/com/github/copilot/generated/rpc/UIElicitationResponseAction.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java rename to src/generated/java/com/github/copilot/generated/rpc/UIElicitationResponseAction.java index e4811ef95..4ce8d95cd 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIElicitationResponseAction.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java b/src/generated/java/com/github/copilot/generated/rpc/UIElicitationSchema.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java rename to src/generated/java/com/github/copilot/generated/rpc/UIElicitationSchema.java index 171f5c688..d4f0a2684 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIElicitationSchema.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java b/src/generated/java/com/github/copilot/generated/rpc/UIExitPlanModeAction.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java rename to src/generated/java/com/github/copilot/generated/rpc/UIExitPlanModeAction.java index 7ea38d6fd..1670701e1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIExitPlanModeAction.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java b/src/generated/java/com/github/copilot/generated/rpc/UIExitPlanModeResponse.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java rename to src/generated/java/com/github/copilot/generated/rpc/UIExitPlanModeResponse.java index 55cd430a9..50e201142 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIExitPlanModeResponse.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java b/src/generated/java/com/github/copilot/generated/rpc/UIHandlePendingSamplingResponse.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java rename to src/generated/java/com/github/copilot/generated/rpc/UIHandlePendingSamplingResponse.java index f00084315..590061f4c 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIHandlePendingSamplingResponse.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java b/src/generated/java/com/github/copilot/generated/rpc/UIUserInputResponse.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java rename to src/generated/java/com/github/copilot/generated/rpc/UIUserInputResponse.java index ec8b6e842..d4ce9899d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UIUserInputResponse.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsCodeChanges.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java rename to src/generated/java/com/github/copilot/generated/rpc/UsageMetricsCodeChanges.java index b425ca3d5..4c445efe1 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsCodeChanges.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetric.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java rename to src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetric.java index f86aab354..7e34f43b3 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetric.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricRequests.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java rename to src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricRequests.java index ac18ded85..ef9fbe47d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricRequests.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricTokenDetail.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java rename to src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricTokenDetail.java index 1a64c76e9..e47a45fde 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricTokenDetail.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricUsage.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java rename to src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricUsage.java index f7c556a0f..112c2c06d 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsModelMetricUsage.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsTokenDetail.java similarity index 95% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java rename to src/generated/java/com/github/copilot/generated/rpc/UsageMetricsTokenDetail.java index 1175c7b8b..55d0b81c8 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java +++ b/src/generated/java/com/github/copilot/generated/rpc/UsageMetricsTokenDetail.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java b/src/generated/java/com/github/copilot/generated/rpc/WorkspaceSummaryHostType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java rename to src/generated/java/com/github/copilot/generated/rpc/WorkspaceSummaryHostType.java index 58cc24ea5..71ce8e4b6 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/WorkspaceSummaryHostType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java b/src/generated/java/com/github/copilot/generated/rpc/WorkspacesCheckpoints.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java rename to src/generated/java/com/github/copilot/generated/rpc/WorkspacesCheckpoints.java index 81c49f6fa..07de034a9 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java +++ b/src/generated/java/com/github/copilot/generated/rpc/WorkspacesCheckpoints.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java b/src/generated/java/com/github/copilot/generated/rpc/WorkspacesWorkspaceDetailsHostType.java similarity index 96% rename from src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java rename to src/generated/java/com/github/copilot/generated/rpc/WorkspacesWorkspaceDetailsHostType.java index 0872a87a4..aca85030e 100644 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java +++ b/src/generated/java/com/github/copilot/generated/rpc/WorkspacesWorkspaceDetailsHostType.java @@ -5,7 +5,7 @@ // AUTO-GENERATED FILE - DO NOT EDIT // Generated from: api.schema.json -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import javax.annotation.processing.Generated; diff --git a/src/main/java/com/github/copilot/sdk/CliServerManager.java b/src/main/java/com/github/copilot/CliServerManager.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/CliServerManager.java rename to src/main/java/com/github/copilot/CliServerManager.java index bd4effe5a..a6a08a848 100644 --- a/src/main/java/com/github/copilot/sdk/CliServerManager.java +++ b/src/main/java/com/github/copilot/CliServerManager.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.BufferedReader; import java.io.File; @@ -19,7 +19,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import com.github.copilot.sdk.json.CopilotClientOptions; +import com.github.copilot.rpc.CopilotClientOptions; /** * Manages the lifecycle of the Copilot CLI server process. diff --git a/src/main/java/com/github/copilot/sdk/ConnectionState.java b/src/main/java/com/github/copilot/ConnectionState.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/ConnectionState.java rename to src/main/java/com/github/copilot/ConnectionState.java index d35528006..5ce3782d1 100644 --- a/src/main/java/com/github/copilot/sdk/ConnectionState.java +++ b/src/main/java/com/github/copilot/ConnectionState.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; /** * Represents the connection state of a {@link CopilotClient}. diff --git a/src/main/java/com/github/copilot/sdk/CopilotClient.java b/src/main/java/com/github/copilot/CopilotClient.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/CopilotClient.java rename to src/main/java/com/github/copilot/CopilotClient.java index 4d0770319..dd3db19a6 100644 --- a/src/main/java/com/github/copilot/sdk/CopilotClient.java +++ b/src/main/java/com/github/copilot/CopilotClient.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.IOException; import java.net.URI; @@ -19,25 +19,25 @@ import java.util.logging.Level; import java.util.logging.Logger; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.CreateSessionResponse; -import com.github.copilot.sdk.generated.rpc.ConnectParams; -import com.github.copilot.sdk.generated.rpc.ServerRpc; -import com.github.copilot.sdk.json.DeleteSessionResponse; -import com.github.copilot.sdk.json.GetAuthStatusResponse; -import com.github.copilot.sdk.json.GetLastSessionIdResponse; -import com.github.copilot.sdk.json.GetSessionMetadataResponse; -import com.github.copilot.sdk.json.GetModelsResponse; -import com.github.copilot.sdk.json.GetStatusResponse; -import com.github.copilot.sdk.json.ListSessionsResponse; -import com.github.copilot.sdk.json.ModelInfo; -import com.github.copilot.sdk.json.PingResponse; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.ResumeSessionResponse; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionLifecycleHandler; -import com.github.copilot.sdk.json.SessionListFilter; -import com.github.copilot.sdk.json.SessionMetadata; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.CreateSessionResponse; +import com.github.copilot.generated.rpc.ConnectParams; +import com.github.copilot.generated.rpc.ServerRpc; +import com.github.copilot.rpc.DeleteSessionResponse; +import com.github.copilot.rpc.GetAuthStatusResponse; +import com.github.copilot.rpc.GetLastSessionIdResponse; +import com.github.copilot.rpc.GetSessionMetadataResponse; +import com.github.copilot.rpc.GetModelsResponse; +import com.github.copilot.rpc.GetStatusResponse; +import com.github.copilot.rpc.ListSessionsResponse; +import com.github.copilot.rpc.ModelInfo; +import com.github.copilot.rpc.PingResponse; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.ResumeSessionResponse; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionLifecycleHandler; +import com.github.copilot.rpc.SessionListFilter; +import com.github.copilot.rpc.SessionMetadata; /** * Provides a client for interacting with the Copilot CLI server. @@ -249,7 +249,7 @@ private void verifyProtocolVersion(Connection connection) throws Exception { // Try the new 'connect' RPC which supports connection tokens var connectParams = new ConnectParams(effectiveConnectionToken); var connectResponse = connection.rpc - .invoke("connect", connectParams, com.github.copilot.sdk.generated.rpc.ConnectResult.class) + .invoke("connect", connectParams, com.github.copilot.generated.rpc.ConnectResult.class) .get(30, TimeUnit.SECONDS); serverVersion = connectResponse.protocolVersion() != null ? connectResponse.protocolVersion().intValue() @@ -397,7 +397,7 @@ private static void cleanupCliProcess(Process process) { * receive responses. Remember to close the session when done. *

* A permission handler is required when creating a session. Use - * {@link com.github.copilot.sdk.json.PermissionHandler#APPROVE_ALL} to approve + * {@link com.github.copilot.rpc.PermissionHandler#APPROVE_ALL} to approve * all permission requests, or provide a custom handler to control permissions * selectively. * @@ -410,14 +410,14 @@ private static void cleanupCliProcess(Process process) { * * @param config * configuration for the session, including the required - * {@link SessionConfig#setOnPermissionRequest(com.github.copilot.sdk.json.PermissionHandler)} + * {@link SessionConfig#setOnPermissionRequest(com.github.copilot.rpc.PermissionHandler)} * handler * @return a future that resolves with the created CopilotSession * @throws IllegalArgumentException * if {@code config} is {@code null} or does not have a permission * handler set * @see SessionConfig - * @see com.github.copilot.sdk.json.PermissionHandler#APPROVE_ALL + * @see com.github.copilot.rpc.PermissionHandler#APPROVE_ALL */ public CompletableFuture createSession(SessionConfig config) { if (config == null || config.getOnPermissionRequest() == null) { @@ -494,7 +494,7 @@ public CompletableFuture createSession(SessionConfig config) { * conversation. The session's history is preserved. *

* A permission handler is required when resuming a session. Use - * {@link com.github.copilot.sdk.json.PermissionHandler#APPROVE_ALL} to approve + * {@link com.github.copilot.rpc.PermissionHandler#APPROVE_ALL} to approve * all permission requests, or provide a custom handler to control permissions * selectively. * @@ -502,7 +502,7 @@ public CompletableFuture createSession(SessionConfig config) { * the ID of the session to resume * @param config * configuration for the resumed session, including the required - * {@link ResumeSessionConfig#setOnPermissionRequest(com.github.copilot.sdk.json.PermissionHandler)} + * {@link ResumeSessionConfig#setOnPermissionRequest(com.github.copilot.rpc.PermissionHandler)} * handler * @return a future that resolves with the resumed CopilotSession * @throws IllegalArgumentException @@ -510,7 +510,7 @@ public CompletableFuture createSession(SessionConfig config) { * handler set * @see #listSessions() * @see #getLastSessionId() - * @see com.github.copilot.sdk.json.PermissionHandler#APPROVE_ALL + * @see com.github.copilot.rpc.PermissionHandler#APPROVE_ALL */ public CompletableFuture resumeSession(String sessionId, ResumeSessionConfig config) { if (config == null || config.getOnPermissionRequest() == null) { @@ -659,7 +659,7 @@ public CompletableFuture getAuthStatus() { * The cache is cleared when the client disconnects. *

* If an {@code onListModels} handler was provided in - * {@link com.github.copilot.sdk.json.CopilotClientOptions}, it is called + * {@link com.github.copilot.rpc.CopilotClientOptions}, it is called * instead of querying the CLI server. This is useful in BYOK mode. * * @return a future that resolves with a list of available models @@ -714,7 +714,7 @@ public CompletableFuture> listModels() { * * @return a future that resolves with the last session ID, or {@code null} if * no sessions exist - * @see #resumeSession(String, com.github.copilot.sdk.json.ResumeSessionConfig) + * @see #resumeSession(String, com.github.copilot.rpc.ResumeSessionConfig) */ public CompletableFuture getLastSessionId() { return ensureConnected().thenCompose( @@ -755,7 +755,7 @@ public CompletableFuture deleteSession(String sessionId) { * * @return a future that resolves with a list of session metadata * @see SessionMetadata - * @see #resumeSession(String, com.github.copilot.sdk.json.ResumeSessionConfig) + * @see #resumeSession(String, com.github.copilot.rpc.ResumeSessionConfig) */ public CompletableFuture> listSessions() { return listSessions(null); @@ -785,7 +785,7 @@ public CompletableFuture> listSessions() { * @return a future that resolves with a list of session metadata * @see SessionMetadata * @see SessionListFilter - * @see #resumeSession(String, com.github.copilot.sdk.json.ResumeSessionConfig) + * @see #resumeSession(String, com.github.copilot.rpc.ResumeSessionConfig) */ public CompletableFuture> listSessions(SessionListFilter filter) { return ensureConnected().thenCompose(connection -> { @@ -835,8 +835,8 @@ public CompletableFuture getSessionMetadata(String sessionId) { public CompletableFuture getForegroundSessionId() { return ensureConnected().thenCompose(connection -> connection.rpc .invoke("session.getForeground", Map.of(), - com.github.copilot.sdk.json.GetForegroundSessionResponse.class) - .thenApply(com.github.copilot.sdk.json.GetForegroundSessionResponse::sessionId)); + com.github.copilot.rpc.GetForegroundSessionResponse.class) + .thenApply(com.github.copilot.rpc.GetForegroundSessionResponse::sessionId)); } /** @@ -853,8 +853,8 @@ public CompletableFuture getForegroundSessionId() { */ public CompletableFuture setForegroundSessionId(String sessionId) { return ensureConnected().thenCompose(connection -> connection.rpc - .invoke("session.setForeground", new com.github.copilot.sdk.json.SetForegroundSessionRequest(sessionId), - com.github.copilot.sdk.json.SetForegroundSessionResponse.class) + .invoke("session.setForeground", new com.github.copilot.rpc.SetForegroundSessionRequest(sessionId), + com.github.copilot.rpc.SetForegroundSessionResponse.class) .thenAccept(response -> { if (!response.success()) { throw new RuntimeException( @@ -882,7 +882,7 @@ public AutoCloseable onLifecycle(SessionLifecycleHandler handler) { * * @param eventType * the event type to listen for (use - * {@link com.github.copilot.sdk.json.SessionLifecycleEventTypes} + * {@link com.github.copilot.rpc.SessionLifecycleEventTypes} * constants) * @param handler * a callback that receives events of the specified type diff --git a/src/main/java/com/github/copilot/sdk/CopilotSession.java b/src/main/java/com/github/copilot/CopilotSession.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/CopilotSession.java rename to src/main/java/com/github/copilot/CopilotSession.java index 4b75fbc7e..6a8676d8f 100644 --- a/src/main/java/com/github/copilot/sdk/CopilotSession.java +++ b/src/main/java/com/github/copilot/CopilotSession.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.Closeable; import java.io.IOException; @@ -29,75 +29,75 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.rpc.SessionCommandsHandlePendingCommandParams; -import com.github.copilot.sdk.generated.rpc.SessionLogParams; -import com.github.copilot.sdk.generated.rpc.SessionLogLevel; -import com.github.copilot.sdk.generated.rpc.ModelCapabilitiesOverride; -import com.github.copilot.sdk.generated.rpc.ModelCapabilitiesOverrideLimits; -import com.github.copilot.sdk.generated.rpc.ModelCapabilitiesOverrideSupports; -import com.github.copilot.sdk.generated.rpc.SessionModelSwitchToParams; -import com.github.copilot.sdk.generated.rpc.SessionPermissionsHandlePendingPermissionRequestParams; -import com.github.copilot.sdk.generated.rpc.SessionRpc; -import com.github.copilot.sdk.generated.rpc.SessionToolsHandlePendingToolCallParams; -import com.github.copilot.sdk.generated.rpc.SessionUiElicitationParams; -import com.github.copilot.sdk.generated.rpc.SessionUiHandlePendingElicitationParams; -import com.github.copilot.sdk.generated.rpc.UIElicitationResponse; -import com.github.copilot.sdk.generated.rpc.UIElicitationResponseAction; -import com.github.copilot.sdk.generated.rpc.UIElicitationSchema; -import com.github.copilot.sdk.generated.CapabilitiesChangedEvent; -import com.github.copilot.sdk.generated.CommandExecuteEvent; -import com.github.copilot.sdk.generated.ElicitationRequestedEvent; -import com.github.copilot.sdk.generated.ExternalToolRequestedEvent; -import com.github.copilot.sdk.generated.PermissionRequestedEvent; -import com.github.copilot.sdk.generated.SessionErrorEvent; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.json.AgentInfo; -import com.github.copilot.sdk.json.AutoModeSwitchHandler; -import com.github.copilot.sdk.json.AutoModeSwitchInvocation; -import com.github.copilot.sdk.json.AutoModeSwitchRequest; -import com.github.copilot.sdk.json.AutoModeSwitchResponse; -import com.github.copilot.sdk.json.CommandContext; -import com.github.copilot.sdk.json.CommandDefinition; -import com.github.copilot.sdk.json.CommandHandler; -import com.github.copilot.sdk.json.ElicitationContext; -import com.github.copilot.sdk.json.ElicitationHandler; -import com.github.copilot.sdk.json.ElicitationParams; -import com.github.copilot.sdk.json.ElicitationResult; -import com.github.copilot.sdk.json.ElicitationResultAction; -import com.github.copilot.sdk.json.ExitPlanModeHandler; -import com.github.copilot.sdk.json.ExitPlanModeInvocation; -import com.github.copilot.sdk.json.ExitPlanModeRequest; -import com.github.copilot.sdk.json.ExitPlanModeResult; -import com.github.copilot.sdk.json.ElicitationSchema; -import com.github.copilot.sdk.json.GetMessagesResponse; -import com.github.copilot.sdk.json.HookInvocation; -import com.github.copilot.sdk.json.InputOptions; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PermissionInvocation; -import com.github.copilot.sdk.json.PermissionRequest; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.PostToolUseHookInput; -import com.github.copilot.sdk.json.PreMcpToolCallHookInput; -import com.github.copilot.sdk.json.PreToolUseHookInput; -import com.github.copilot.sdk.json.SendMessageRequest; -import com.github.copilot.sdk.json.SendMessageResponse; -import com.github.copilot.sdk.json.SessionCapabilities; -import com.github.copilot.sdk.json.SessionEndHookInput; -import com.github.copilot.sdk.json.SessionHooks; -import com.github.copilot.sdk.json.SessionStartHookInput; -import com.github.copilot.sdk.json.SessionUiApi; -import com.github.copilot.sdk.json.SessionUiCapabilities; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.ToolResultObject; -import com.github.copilot.sdk.json.UserInputHandler; -import com.github.copilot.sdk.json.UserInputInvocation; -import com.github.copilot.sdk.json.UserInputRequest; -import com.github.copilot.sdk.json.UserInputResponse; -import com.github.copilot.sdk.json.UserPromptSubmittedHookInput; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.rpc.SessionCommandsHandlePendingCommandParams; +import com.github.copilot.generated.rpc.SessionLogParams; +import com.github.copilot.generated.rpc.SessionLogLevel; +import com.github.copilot.generated.rpc.ModelCapabilitiesOverride; +import com.github.copilot.generated.rpc.ModelCapabilitiesOverrideLimits; +import com.github.copilot.generated.rpc.ModelCapabilitiesOverrideSupports; +import com.github.copilot.generated.rpc.SessionModelSwitchToParams; +import com.github.copilot.generated.rpc.SessionPermissionsHandlePendingPermissionRequestParams; +import com.github.copilot.generated.rpc.SessionRpc; +import com.github.copilot.generated.rpc.SessionToolsHandlePendingToolCallParams; +import com.github.copilot.generated.rpc.SessionUiElicitationParams; +import com.github.copilot.generated.rpc.SessionUiHandlePendingElicitationParams; +import com.github.copilot.generated.rpc.UIElicitationResponse; +import com.github.copilot.generated.rpc.UIElicitationResponseAction; +import com.github.copilot.generated.rpc.UIElicitationSchema; +import com.github.copilot.generated.CapabilitiesChangedEvent; +import com.github.copilot.generated.CommandExecuteEvent; +import com.github.copilot.generated.ElicitationRequestedEvent; +import com.github.copilot.generated.ExternalToolRequestedEvent; +import com.github.copilot.generated.PermissionRequestedEvent; +import com.github.copilot.generated.SessionErrorEvent; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.rpc.AgentInfo; +import com.github.copilot.rpc.AutoModeSwitchHandler; +import com.github.copilot.rpc.AutoModeSwitchInvocation; +import com.github.copilot.rpc.AutoModeSwitchRequest; +import com.github.copilot.rpc.AutoModeSwitchResponse; +import com.github.copilot.rpc.CommandContext; +import com.github.copilot.rpc.CommandDefinition; +import com.github.copilot.rpc.CommandHandler; +import com.github.copilot.rpc.ElicitationContext; +import com.github.copilot.rpc.ElicitationHandler; +import com.github.copilot.rpc.ElicitationParams; +import com.github.copilot.rpc.ElicitationResult; +import com.github.copilot.rpc.ElicitationResultAction; +import com.github.copilot.rpc.ExitPlanModeHandler; +import com.github.copilot.rpc.ExitPlanModeInvocation; +import com.github.copilot.rpc.ExitPlanModeRequest; +import com.github.copilot.rpc.ExitPlanModeResult; +import com.github.copilot.rpc.ElicitationSchema; +import com.github.copilot.rpc.GetMessagesResponse; +import com.github.copilot.rpc.HookInvocation; +import com.github.copilot.rpc.InputOptions; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PermissionInvocation; +import com.github.copilot.rpc.PermissionRequest; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.PostToolUseHookInput; +import com.github.copilot.rpc.PreMcpToolCallHookInput; +import com.github.copilot.rpc.PreToolUseHookInput; +import com.github.copilot.rpc.SendMessageRequest; +import com.github.copilot.rpc.SendMessageResponse; +import com.github.copilot.rpc.SessionCapabilities; +import com.github.copilot.rpc.SessionEndHookInput; +import com.github.copilot.rpc.SessionHooks; +import com.github.copilot.rpc.SessionStartHookInput; +import com.github.copilot.rpc.SessionUiApi; +import com.github.copilot.rpc.SessionUiCapabilities; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.ToolResultObject; +import com.github.copilot.rpc.UserInputHandler; +import com.github.copilot.rpc.UserInputInvocation; +import com.github.copilot.rpc.UserInputRequest; +import com.github.copilot.rpc.UserInputResponse; +import com.github.copilot.rpc.UserPromptSubmittedHookInput; /** * Represents a single conversation session with the Copilot CLI. @@ -136,9 +136,9 @@ * session.close(); * } * - * @see CopilotClient#createSession(com.github.copilot.sdk.json.SessionConfig) + * @see CopilotClient#createSession(com.github.copilot.rpc.SessionConfig) * @see CopilotClient#resumeSession(String, - * com.github.copilot.sdk.json.ResumeSessionConfig) + * com.github.copilot.rpc.ResumeSessionConfig) * @see SessionEvent * @since 1.0.0 */ @@ -867,7 +867,7 @@ private void executeToolAndRespondAsync(String requestId, String toolName, Strin JsonNode argumentsNode = arguments instanceof JsonNode jn ? jn : (arguments != null ? MAPPER.valueToTree(arguments) : null); - var invocation = new com.github.copilot.sdk.json.ToolInvocation().setSessionId(sessionId) + var invocation = new com.github.copilot.rpc.ToolInvocation().setSessionId(sessionId) .setToolCallId(toolCallId).setToolName(toolName).setArguments(argumentsNode); tool.handler().invoke(invocation).thenAccept(result -> { @@ -1463,7 +1463,7 @@ void registerHooks(SessionHooks hooks) { * Registers transform callbacks for system message sections. *

* Called internally when creating or resuming a session with - * {@link com.github.copilot.sdk.SystemMessageMode#CUSTOMIZE} and transform + * {@link com.github.copilot.SystemMessageMode#CUSTOMIZE} and transform * callbacks. * * @param callbacks @@ -1696,7 +1696,7 @@ public CompletableFuture setModel(String model, String reasoningEffort) { * @since 1.3.0 */ public CompletableFuture setModel(String model, String reasoningEffort, - com.github.copilot.sdk.json.ModelCapabilitiesOverride modelCapabilities) { + com.github.copilot.rpc.ModelCapabilitiesOverride modelCapabilities) { ensureNotTerminated(); ModelCapabilitiesOverride generatedCapabilities = null; if (modelCapabilities != null) { diff --git a/src/main/java/com/github/copilot/sdk/EventErrorHandler.java b/src/main/java/com/github/copilot/EventErrorHandler.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/EventErrorHandler.java rename to src/main/java/com/github/copilot/EventErrorHandler.java index 2ff77d971..20510f463 100644 --- a/src/main/java/com/github/copilot/sdk/EventErrorHandler.java +++ b/src/main/java/com/github/copilot/EventErrorHandler.java @@ -2,9 +2,9 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; -import com.github.copilot.sdk.generated.SessionEvent; +import com.github.copilot.generated.SessionEvent; /** * A handler for errors thrown by event handlers during event dispatch. diff --git a/src/main/java/com/github/copilot/sdk/EventErrorPolicy.java b/src/main/java/com/github/copilot/EventErrorPolicy.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/EventErrorPolicy.java rename to src/main/java/com/github/copilot/EventErrorPolicy.java index b7c3dca21..288af00e0 100644 --- a/src/main/java/com/github/copilot/sdk/EventErrorPolicy.java +++ b/src/main/java/com/github/copilot/EventErrorPolicy.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; /** * Controls how event dispatch behaves when an event handler throws an diff --git a/src/main/java/com/github/copilot/sdk/ExtractedTransforms.java b/src/main/java/com/github/copilot/ExtractedTransforms.java similarity index 93% rename from src/main/java/com/github/copilot/sdk/ExtractedTransforms.java rename to src/main/java/com/github/copilot/ExtractedTransforms.java index 717d873d3..bae60fc7c 100644 --- a/src/main/java/com/github/copilot/sdk/ExtractedTransforms.java +++ b/src/main/java/com/github/copilot/ExtractedTransforms.java @@ -2,13 +2,13 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.function.Function; -import com.github.copilot.sdk.json.SystemMessageConfig; +import com.github.copilot.rpc.SystemMessageConfig; /** * Result of extracting transform callbacks from a {@link SystemMessageConfig}. diff --git a/src/main/java/com/github/copilot/sdk/JsonRpcClient.java b/src/main/java/com/github/copilot/JsonRpcClient.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/JsonRpcClient.java rename to src/main/java/com/github/copilot/JsonRpcClient.java index 73db478ca..a7cd0e120 100644 --- a/src/main/java/com/github/copilot/sdk/JsonRpcClient.java +++ b/src/main/java/com/github/copilot/JsonRpcClient.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.BufferedInputStream; import java.io.IOException; @@ -28,9 +28,9 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.github.copilot.sdk.json.JsonRpcError; -import com.github.copilot.sdk.json.JsonRpcRequest; -import com.github.copilot.sdk.json.JsonRpcResponse; +import com.github.copilot.rpc.JsonRpcError; +import com.github.copilot.rpc.JsonRpcRequest; +import com.github.copilot.rpc.JsonRpcResponse; /** * JSON-RPC 2.0 client implementation for communicating with the Copilot CLI. diff --git a/src/main/java/com/github/copilot/sdk/JsonRpcException.java b/src/main/java/com/github/copilot/JsonRpcException.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/JsonRpcException.java rename to src/main/java/com/github/copilot/JsonRpcException.java index dbc3ab77b..1786466bd 100644 --- a/src/main/java/com/github/copilot/sdk/JsonRpcException.java +++ b/src/main/java/com/github/copilot/JsonRpcException.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; /** * Exception thrown when a JSON-RPC error occurs during communication with the diff --git a/src/main/java/com/github/copilot/sdk/LifecycleEventManager.java b/src/main/java/com/github/copilot/LifecycleEventManager.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/LifecycleEventManager.java rename to src/main/java/com/github/copilot/LifecycleEventManager.java index 21c00e233..673b9d10e 100644 --- a/src/main/java/com/github/copilot/sdk/LifecycleEventManager.java +++ b/src/main/java/com/github/copilot/LifecycleEventManager.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.util.ArrayList; import java.util.List; @@ -11,8 +11,8 @@ import java.util.logging.Level; import java.util.logging.Logger; -import com.github.copilot.sdk.json.SessionLifecycleEvent; -import com.github.copilot.sdk.json.SessionLifecycleHandler; +import com.github.copilot.rpc.SessionLifecycleEvent; +import com.github.copilot.rpc.SessionLifecycleHandler; /** * Manages lifecycle event subscriptions and dispatching. diff --git a/src/main/java/com/github/copilot/sdk/LoggingHelpers.java b/src/main/java/com/github/copilot/LoggingHelpers.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/LoggingHelpers.java rename to src/main/java/com/github/copilot/LoggingHelpers.java index 654494ef1..c80e8fb69 100644 --- a/src/main/java/com/github/copilot/sdk/LoggingHelpers.java +++ b/src/main/java/com/github/copilot/LoggingHelpers.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.util.concurrent.TimeUnit; import java.util.logging.Level; diff --git a/src/main/java/com/github/copilot/sdk/RpcHandlerDispatcher.java b/src/main/java/com/github/copilot/RpcHandlerDispatcher.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/RpcHandlerDispatcher.java rename to src/main/java/com/github/copilot/RpcHandlerDispatcher.java index 1d76d8b88..391f270db 100644 --- a/src/main/java/com/github/copilot/sdk/RpcHandlerDispatcher.java +++ b/src/main/java/com/github/copilot/RpcHandlerDispatcher.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.IOException; import java.util.ArrayList; @@ -16,17 +16,17 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.json.AutoModeSwitchRequest; -import com.github.copilot.sdk.json.ExitPlanModeRequest; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.SessionLifecycleEvent; -import com.github.copilot.sdk.json.SessionLifecycleEventMetadata; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.ToolInvocation; -import com.github.copilot.sdk.json.ToolResultObject; -import com.github.copilot.sdk.json.UserInputRequest; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.rpc.AutoModeSwitchRequest; +import com.github.copilot.rpc.ExitPlanModeRequest; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.SessionLifecycleEvent; +import com.github.copilot.rpc.SessionLifecycleEventMetadata; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.ToolInvocation; +import com.github.copilot.rpc.ToolResultObject; +import com.github.copilot.rpc.UserInputRequest; /** * Dispatches incoming JSON-RPC method calls to the appropriate handlers. diff --git a/src/main/java/com/github/copilot/sdk/SdkProtocolVersion.java b/src/main/java/com/github/copilot/SdkProtocolVersion.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/SdkProtocolVersion.java rename to src/main/java/com/github/copilot/SdkProtocolVersion.java index 3b00a88ae..8569b0104 100644 --- a/src/main/java/com/github/copilot/sdk/SdkProtocolVersion.java +++ b/src/main/java/com/github/copilot/SdkProtocolVersion.java @@ -4,7 +4,7 @@ // Code generated by update-protocol-version.ts. DO NOT EDIT. -package com.github.copilot.sdk; +package com.github.copilot; /** * Provides the SDK protocol version. This must match the version expected by diff --git a/src/main/java/com/github/copilot/sdk/SessionRequestBuilder.java b/src/main/java/com/github/copilot/SessionRequestBuilder.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/SessionRequestBuilder.java rename to src/main/java/com/github/copilot/SessionRequestBuilder.java index 0cdc4f942..d9ad69282 100644 --- a/src/main/java/com/github/copilot/sdk/SessionRequestBuilder.java +++ b/src/main/java/com/github/copilot/SessionRequestBuilder.java @@ -2,21 +2,21 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.function.Function; -import com.github.copilot.sdk.json.CreateSessionRequest; -import com.github.copilot.sdk.json.CommandWireDefinition; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.ResumeSessionRequest; -import com.github.copilot.sdk.json.SectionOverride; -import com.github.copilot.sdk.json.SectionOverrideAction; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SystemMessageConfig; +import com.github.copilot.rpc.CreateSessionRequest; +import com.github.copilot.rpc.CommandWireDefinition; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.ResumeSessionRequest; +import com.github.copilot.rpc.SectionOverride; +import com.github.copilot.rpc.SectionOverrideAction; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SystemMessageConfig; /** * Builds JSON-RPC request objects from session configuration. diff --git a/src/main/java/com/github/copilot/sdk/SystemMessageMode.java b/src/main/java/com/github/copilot/SystemMessageMode.java similarity index 91% rename from src/main/java/com/github/copilot/sdk/SystemMessageMode.java rename to src/main/java/com/github/copilot/SystemMessageMode.java index 67fb5ea5e..9659625ea 100644 --- a/src/main/java/com/github/copilot/sdk/SystemMessageMode.java +++ b/src/main/java/com/github/copilot/SystemMessageMode.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import com.fasterxml.jackson.annotation.JsonValue; @@ -13,7 +13,7 @@ * This enum determines whether to append custom instructions to the default * system message or replace it entirely. * - * @see com.github.copilot.sdk.json.SystemMessageConfig + * @see com.github.copilot.rpc.SystemMessageConfig * @since 1.0.0 */ public enum SystemMessageMode { @@ -37,7 +37,7 @@ public enum SystemMessageMode { * Override individual sections of the system prompt. *

* Use this mode with - * {@link com.github.copilot.sdk.json.SystemMessageConfig#setSections} to + * {@link com.github.copilot.rpc.SystemMessageConfig#setSections} to * selectively replace, remove, append, prepend, or transform individual * sections of the default system prompt. An optional {@code content} string is * appended after all sections when provided. diff --git a/src/main/java/com/github/copilot/sdk/package-info.java b/src/main/java/com/github/copilot/package-info.java similarity index 76% rename from src/main/java/com/github/copilot/sdk/package-info.java rename to src/main/java/com/github/copilot/package-info.java index f775d575f..1b8252dcd 100644 --- a/src/main/java/com/github/copilot/sdk/package-info.java +++ b/src/main/java/com/github/copilot/package-info.java @@ -13,15 +13,15 @@ * *

Main Classes

*
    - *
  • {@link com.github.copilot.sdk.CopilotClient} - The main client for + *
  • {@link com.github.copilot.CopilotClient} - The main client for * connecting to and communicating with the Copilot CLI. Manages the lifecycle * of the CLI process and provides methods for creating sessions, querying * models, and checking authentication status.
  • - *
  • {@link com.github.copilot.sdk.CopilotSession} - Represents a single + *
  • {@link com.github.copilot.CopilotSession} - Represents a single * conversation session with Copilot. Sessions maintain context across multiple * messages and support streaming responses, tool invocations, and event * handling.
  • - *
  • {@link com.github.copilot.sdk.JsonRpcClient} - Low-level JSON-RPC client + *
  • {@link com.github.copilot.JsonRpcClient} - Low-level JSON-RPC client * for communication with the Copilot CLI process.
  • *
* @@ -43,15 +43,15 @@ * *

Related Packages

*
    - *
  • {@link com.github.copilot.sdk.generated} - Auto-generated event types + *
  • {@link com.github.copilot.generated} - Auto-generated event types * emitted during session processing
  • - *
  • {@link com.github.copilot.sdk.json} - Configuration and data transfer + *
  • {@link com.github.copilot.rpc} - Configuration and data transfer * objects
  • *
* - * @see com.github.copilot.sdk.CopilotClient - * @see com.github.copilot.sdk.CopilotSession + * @see com.github.copilot.CopilotClient + * @see com.github.copilot.CopilotSession * @see GitHub * Repository */ -package com.github.copilot.sdk; +package com.github.copilot; diff --git a/src/main/java/com/github/copilot/sdk/json/AgentInfo.java b/src/main/java/com/github/copilot/rpc/AgentInfo.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/AgentInfo.java rename to src/main/java/com/github/copilot/rpc/AgentInfo.java index 1cc10a91d..84e512644 100644 --- a/src/main/java/com/github/copilot/sdk/json/AgentInfo.java +++ b/src/main/java/com/github/copilot/rpc/AgentInfo.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/Attachment.java b/src/main/java/com/github/copilot/rpc/Attachment.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/Attachment.java rename to src/main/java/com/github/copilot/rpc/Attachment.java index 04011d6f1..68f66af5b 100644 --- a/src/main/java/com/github/copilot/sdk/json/Attachment.java +++ b/src/main/java/com/github/copilot/rpc/Attachment.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchHandler.java b/src/main/java/com/github/copilot/rpc/AutoModeSwitchHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/AutoModeSwitchHandler.java rename to src/main/java/com/github/copilot/rpc/AutoModeSwitchHandler.java index 5fa19f4b1..781088ba9 100644 --- a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchHandler.java +++ b/src/main/java/com/github/copilot/rpc/AutoModeSwitchHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchInvocation.java b/src/main/java/com/github/copilot/rpc/AutoModeSwitchInvocation.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/AutoModeSwitchInvocation.java rename to src/main/java/com/github/copilot/rpc/AutoModeSwitchInvocation.java index 278d10ccf..9dd4994a0 100644 --- a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchInvocation.java +++ b/src/main/java/com/github/copilot/rpc/AutoModeSwitchInvocation.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context for an auto-mode-switch request invocation. diff --git a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchRequest.java b/src/main/java/com/github/copilot/rpc/AutoModeSwitchRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/AutoModeSwitchRequest.java rename to src/main/java/com/github/copilot/rpc/AutoModeSwitchRequest.java index 0ef784c02..5b0f0d491 100644 --- a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchRequest.java +++ b/src/main/java/com/github/copilot/rpc/AutoModeSwitchRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchResponse.java b/src/main/java/com/github/copilot/rpc/AutoModeSwitchResponse.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/AutoModeSwitchResponse.java rename to src/main/java/com/github/copilot/rpc/AutoModeSwitchResponse.java index c072b73e2..a254f9ca8 100644 --- a/src/main/java/com/github/copilot/sdk/json/AutoModeSwitchResponse.java +++ b/src/main/java/com/github/copilot/rpc/AutoModeSwitchResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/src/main/java/com/github/copilot/sdk/json/AzureOptions.java b/src/main/java/com/github/copilot/rpc/AzureOptions.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/AzureOptions.java rename to src/main/java/com/github/copilot/rpc/AzureOptions.java index c2e146c19..7adbc5656 100644 --- a/src/main/java/com/github/copilot/sdk/json/AzureOptions.java +++ b/src/main/java/com/github/copilot/rpc/AzureOptions.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/BlobAttachment.java b/src/main/java/com/github/copilot/rpc/BlobAttachment.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/BlobAttachment.java rename to src/main/java/com/github/copilot/rpc/BlobAttachment.java index d58a1e15e..fe15293c6 100644 --- a/src/main/java/com/github/copilot/sdk/json/BlobAttachment.java +++ b/src/main/java/com/github/copilot/rpc/BlobAttachment.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/CloudSessionOptions.java b/src/main/java/com/github/copilot/rpc/CloudSessionOptions.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/CloudSessionOptions.java rename to src/main/java/com/github/copilot/rpc/CloudSessionOptions.java index 897d07eda..b63bfbbcd 100644 --- a/src/main/java/com/github/copilot/sdk/json/CloudSessionOptions.java +++ b/src/main/java/com/github/copilot/rpc/CloudSessionOptions.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/CloudSessionRepository.java b/src/main/java/com/github/copilot/rpc/CloudSessionRepository.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/CloudSessionRepository.java rename to src/main/java/com/github/copilot/rpc/CloudSessionRepository.java index 5806c22cd..c502693c3 100644 --- a/src/main/java/com/github/copilot/sdk/json/CloudSessionRepository.java +++ b/src/main/java/com/github/copilot/rpc/CloudSessionRepository.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/CommandContext.java b/src/main/java/com/github/copilot/rpc/CommandContext.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/CommandContext.java rename to src/main/java/com/github/copilot/rpc/CommandContext.java index 4657699bb..ec423831b 100644 --- a/src/main/java/com/github/copilot/sdk/json/CommandContext.java +++ b/src/main/java/com/github/copilot/rpc/CommandContext.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context passed to a {@link CommandHandler} when a slash command is executed. diff --git a/src/main/java/com/github/copilot/sdk/json/CommandDefinition.java b/src/main/java/com/github/copilot/rpc/CommandDefinition.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/CommandDefinition.java rename to src/main/java/com/github/copilot/rpc/CommandDefinition.java index 33a6cbada..c64c71cd9 100644 --- a/src/main/java/com/github/copilot/sdk/json/CommandDefinition.java +++ b/src/main/java/com/github/copilot/rpc/CommandDefinition.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Defines a slash command that users can invoke from the CLI TUI. diff --git a/src/main/java/com/github/copilot/sdk/json/CommandHandler.java b/src/main/java/com/github/copilot/rpc/CommandHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/CommandHandler.java rename to src/main/java/com/github/copilot/rpc/CommandHandler.java index d63955638..1d54c9535 100644 --- a/src/main/java/com/github/copilot/sdk/json/CommandHandler.java +++ b/src/main/java/com/github/copilot/rpc/CommandHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/CommandWireDefinition.java b/src/main/java/com/github/copilot/rpc/CommandWireDefinition.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/CommandWireDefinition.java rename to src/main/java/com/github/copilot/rpc/CommandWireDefinition.java index 2ee65c58e..20b8d5b63 100644 --- a/src/main/java/com/github/copilot/sdk/json/CommandWireDefinition.java +++ b/src/main/java/com/github/copilot/rpc/CommandWireDefinition.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/CopilotClientOptions.java b/src/main/java/com/github/copilot/rpc/CopilotClientOptions.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/CopilotClientOptions.java rename to src/main/java/com/github/copilot/rpc/CopilotClientOptions.java index e4605ffe1..cb372d914 100644 --- a/src/main/java/com/github/copilot/sdk/json/CopilotClientOptions.java +++ b/src/main/java/com/github/copilot/rpc/CopilotClientOptions.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Arrays; import java.util.HashMap; @@ -20,7 +20,7 @@ /** * Configuration options for creating a - * {@link com.github.copilot.sdk.CopilotClient}. + * {@link com.github.copilot.CopilotClient}. *

* This class provides a fluent API for configuring how the client connects to * and manages the Copilot CLI server. All setter methods return {@code this} @@ -35,7 +35,7 @@ * var client = new CopilotClient(options); * } * - * @see com.github.copilot.sdk.CopilotClient + * @see com.github.copilot.CopilotClient * @since 1.0.0 */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/src/main/java/com/github/copilot/sdk/json/CreateSessionRequest.java b/src/main/java/com/github/copilot/rpc/CreateSessionRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/CreateSessionRequest.java rename to src/main/java/com/github/copilot/rpc/CreateSessionRequest.java index 881840a73..1edad85d4 100644 --- a/src/main/java/com/github/copilot/sdk/json/CreateSessionRequest.java +++ b/src/main/java/com/github/copilot/rpc/CreateSessionRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; @@ -16,9 +16,9 @@ *

* This is a low-level class for JSON-RPC communication. For creating sessions, * use - * {@link com.github.copilot.sdk.CopilotClient#createSession(SessionConfig)}. + * {@link com.github.copilot.CopilotClient#createSession(SessionConfig)}. * - * @see com.github.copilot.sdk.CopilotClient#createSession(SessionConfig) + * @see com.github.copilot.CopilotClient#createSession(SessionConfig) * @see SessionConfig * @since 1.0.0 */ diff --git a/src/main/java/com/github/copilot/sdk/json/CreateSessionResponse.java b/src/main/java/com/github/copilot/rpc/CreateSessionResponse.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/CreateSessionResponse.java rename to src/main/java/com/github/copilot/rpc/CreateSessionResponse.java index b47af050b..e10926769 100644 --- a/src/main/java/com/github/copilot/sdk/json/CreateSessionResponse.java +++ b/src/main/java/com/github/copilot/rpc/CreateSessionResponse.java @@ -1,4 +1,4 @@ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/CustomAgentConfig.java b/src/main/java/com/github/copilot/rpc/CustomAgentConfig.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/CustomAgentConfig.java rename to src/main/java/com/github/copilot/rpc/CustomAgentConfig.java index cb2dbf452..5136f7778 100644 --- a/src/main/java/com/github/copilot/sdk/json/CustomAgentConfig.java +++ b/src/main/java/com/github/copilot/rpc/CustomAgentConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/DefaultAgentConfig.java b/src/main/java/com/github/copilot/rpc/DefaultAgentConfig.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/DefaultAgentConfig.java rename to src/main/java/com/github/copilot/rpc/DefaultAgentConfig.java index 88f39ecff..4be5dbbb9 100644 --- a/src/main/java/com/github/copilot/sdk/json/DefaultAgentConfig.java +++ b/src/main/java/com/github/copilot/rpc/DefaultAgentConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/DeleteSessionResponse.java b/src/main/java/com/github/copilot/rpc/DeleteSessionResponse.java similarity index 89% rename from src/main/java/com/github/copilot/sdk/json/DeleteSessionResponse.java rename to src/main/java/com/github/copilot/rpc/DeleteSessionResponse.java index 1f53dfac3..33e709183 100644 --- a/src/main/java/com/github/copilot/sdk/json/DeleteSessionResponse.java +++ b/src/main/java/com/github/copilot/rpc/DeleteSessionResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -13,7 +13,7 @@ * This is a low-level class for JSON-RPC communication containing the result of * a session deletion operation. * - * @see com.github.copilot.sdk.CopilotClient#deleteSession(String) + * @see com.github.copilot.CopilotClient#deleteSession(String) * @since 1.0.0 */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/src/main/java/com/github/copilot/sdk/json/ElicitationContext.java b/src/main/java/com/github/copilot/rpc/ElicitationContext.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ElicitationContext.java rename to src/main/java/com/github/copilot/rpc/ElicitationContext.java index 87687b194..84c870e93 100644 --- a/src/main/java/com/github/copilot/sdk/json/ElicitationContext.java +++ b/src/main/java/com/github/copilot/rpc/ElicitationContext.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context for an elicitation request received from the server or MCP tools. diff --git a/src/main/java/com/github/copilot/sdk/json/ElicitationHandler.java b/src/main/java/com/github/copilot/rpc/ElicitationHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ElicitationHandler.java rename to src/main/java/com/github/copilot/rpc/ElicitationHandler.java index d0a0d0616..ed62d1248 100644 --- a/src/main/java/com/github/copilot/sdk/json/ElicitationHandler.java +++ b/src/main/java/com/github/copilot/rpc/ElicitationHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/ElicitationParams.java b/src/main/java/com/github/copilot/rpc/ElicitationParams.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ElicitationParams.java rename to src/main/java/com/github/copilot/rpc/ElicitationParams.java index 8bd81022e..273681bba 100644 --- a/src/main/java/com/github/copilot/sdk/json/ElicitationParams.java +++ b/src/main/java/com/github/copilot/rpc/ElicitationParams.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Parameters for an elicitation request sent from the SDK to the host. diff --git a/src/main/java/com/github/copilot/sdk/json/ElicitationResult.java b/src/main/java/com/github/copilot/rpc/ElicitationResult.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ElicitationResult.java rename to src/main/java/com/github/copilot/rpc/ElicitationResult.java index 3ba30b83d..42073de35 100644 --- a/src/main/java/com/github/copilot/sdk/json/ElicitationResult.java +++ b/src/main/java/com/github/copilot/rpc/ElicitationResult.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/ElicitationResultAction.java b/src/main/java/com/github/copilot/rpc/ElicitationResultAction.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/ElicitationResultAction.java rename to src/main/java/com/github/copilot/rpc/ElicitationResultAction.java index fd280cdeb..51fea7852 100644 --- a/src/main/java/com/github/copilot/sdk/json/ElicitationResultAction.java +++ b/src/main/java/com/github/copilot/rpc/ElicitationResultAction.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Action value for an {@link ElicitationResult}. diff --git a/src/main/java/com/github/copilot/sdk/json/ElicitationSchema.java b/src/main/java/com/github/copilot/rpc/ElicitationSchema.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ElicitationSchema.java rename to src/main/java/com/github/copilot/rpc/ElicitationSchema.java index c3d548775..6111bf53b 100644 --- a/src/main/java/com/github/copilot/sdk/json/ElicitationSchema.java +++ b/src/main/java/com/github/copilot/rpc/ElicitationSchema.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeHandler.java b/src/main/java/com/github/copilot/rpc/ExitPlanModeHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ExitPlanModeHandler.java rename to src/main/java/com/github/copilot/rpc/ExitPlanModeHandler.java index 13ecbe075..28addcb0c 100644 --- a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeHandler.java +++ b/src/main/java/com/github/copilot/rpc/ExitPlanModeHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeInvocation.java b/src/main/java/com/github/copilot/rpc/ExitPlanModeInvocation.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/ExitPlanModeInvocation.java rename to src/main/java/com/github/copilot/rpc/ExitPlanModeInvocation.java index 6fd023126..934c77d65 100644 --- a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeInvocation.java +++ b/src/main/java/com/github/copilot/rpc/ExitPlanModeInvocation.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context for an exit-plan-mode request invocation. diff --git a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeRequest.java b/src/main/java/com/github/copilot/rpc/ExitPlanModeRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ExitPlanModeRequest.java rename to src/main/java/com/github/copilot/rpc/ExitPlanModeRequest.java index be09350ef..63499ee57 100644 --- a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeRequest.java +++ b/src/main/java/com/github/copilot/rpc/ExitPlanModeRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeResult.java b/src/main/java/com/github/copilot/rpc/ExitPlanModeResult.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ExitPlanModeResult.java rename to src/main/java/com/github/copilot/rpc/ExitPlanModeResult.java index 876e750b4..d61377cbc 100644 --- a/src/main/java/com/github/copilot/sdk/json/ExitPlanModeResult.java +++ b/src/main/java/com/github/copilot/rpc/ExitPlanModeResult.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/GetAuthStatusResponse.java b/src/main/java/com/github/copilot/rpc/GetAuthStatusResponse.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/GetAuthStatusResponse.java rename to src/main/java/com/github/copilot/rpc/GetAuthStatusResponse.java index 4cf5d80c6..d2e65c89b 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetAuthStatusResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetAuthStatusResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/GetForegroundSessionResponse.java b/src/main/java/com/github/copilot/rpc/GetForegroundSessionResponse.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/GetForegroundSessionResponse.java rename to src/main/java/com/github/copilot/rpc/GetForegroundSessionResponse.java index 96962c690..65c0557ca 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetForegroundSessionResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetForegroundSessionResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/GetLastSessionIdResponse.java b/src/main/java/com/github/copilot/rpc/GetLastSessionIdResponse.java similarity index 89% rename from src/main/java/com/github/copilot/sdk/json/GetLastSessionIdResponse.java rename to src/main/java/com/github/copilot/rpc/GetLastSessionIdResponse.java index 52042f57c..3f488d0e9 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetLastSessionIdResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetLastSessionIdResponse.java @@ -1,4 +1,4 @@ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/GetMessagesResponse.java b/src/main/java/com/github/copilot/rpc/GetMessagesResponse.java similarity index 91% rename from src/main/java/com/github/copilot/sdk/json/GetMessagesResponse.java rename to src/main/java/com/github/copilot/rpc/GetMessagesResponse.java index 1a3ed6aae..7726ab649 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetMessagesResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetMessagesResponse.java @@ -1,4 +1,4 @@ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/GetModelsResponse.java b/src/main/java/com/github/copilot/rpc/GetModelsResponse.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/GetModelsResponse.java rename to src/main/java/com/github/copilot/rpc/GetModelsResponse.java index 8f13912b9..b5eefa9ef 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetModelsResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetModelsResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/GetSessionMetadataResponse.java b/src/main/java/com/github/copilot/rpc/GetSessionMetadataResponse.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/json/GetSessionMetadataResponse.java rename to src/main/java/com/github/copilot/rpc/GetSessionMetadataResponse.java index eeceb4177..7ffeb29d0 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetSessionMetadataResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetSessionMetadataResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/GetStatusResponse.java b/src/main/java/com/github/copilot/rpc/GetStatusResponse.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/GetStatusResponse.java rename to src/main/java/com/github/copilot/rpc/GetStatusResponse.java index a77f378ab..434f00353 100644 --- a/src/main/java/com/github/copilot/sdk/json/GetStatusResponse.java +++ b/src/main/java/com/github/copilot/rpc/GetStatusResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/HookInvocation.java b/src/main/java/com/github/copilot/rpc/HookInvocation.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/HookInvocation.java rename to src/main/java/com/github/copilot/rpc/HookInvocation.java index 39ab50686..40d807246 100644 --- a/src/main/java/com/github/copilot/sdk/json/HookInvocation.java +++ b/src/main/java/com/github/copilot/rpc/HookInvocation.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context for a hook invocation. diff --git a/src/main/java/com/github/copilot/sdk/json/InfiniteSessionConfig.java b/src/main/java/com/github/copilot/rpc/InfiniteSessionConfig.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/InfiniteSessionConfig.java rename to src/main/java/com/github/copilot/rpc/InfiniteSessionConfig.java index 561796ede..02718d6a2 100644 --- a/src/main/java/com/github/copilot/sdk/json/InfiniteSessionConfig.java +++ b/src/main/java/com/github/copilot/rpc/InfiniteSessionConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/InputOptions.java b/src/main/java/com/github/copilot/rpc/InputOptions.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/InputOptions.java rename to src/main/java/com/github/copilot/rpc/InputOptions.java index ca1cc5d38..db938a3f4 100644 --- a/src/main/java/com/github/copilot/sdk/json/InputOptions.java +++ b/src/main/java/com/github/copilot/rpc/InputOptions.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/src/main/java/com/github/copilot/sdk/json/JsonRpcError.java b/src/main/java/com/github/copilot/rpc/JsonRpcError.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/JsonRpcError.java rename to src/main/java/com/github/copilot/rpc/JsonRpcError.java index e7f021f43..f270c4327 100644 --- a/src/main/java/com/github/copilot/sdk/json/JsonRpcError.java +++ b/src/main/java/com/github/copilot/rpc/JsonRpcError.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/JsonRpcRequest.java b/src/main/java/com/github/copilot/rpc/JsonRpcRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/JsonRpcRequest.java rename to src/main/java/com/github/copilot/rpc/JsonRpcRequest.java index 1921370e2..6bef7f370 100644 --- a/src/main/java/com/github/copilot/sdk/json/JsonRpcRequest.java +++ b/src/main/java/com/github/copilot/rpc/JsonRpcRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/JsonRpcResponse.java b/src/main/java/com/github/copilot/rpc/JsonRpcResponse.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/JsonRpcResponse.java rename to src/main/java/com/github/copilot/rpc/JsonRpcResponse.java index 1a78ed017..6c80474af 100644 --- a/src/main/java/com/github/copilot/sdk/json/JsonRpcResponse.java +++ b/src/main/java/com/github/copilot/rpc/JsonRpcResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ListSessionsResponse.java b/src/main/java/com/github/copilot/rpc/ListSessionsResponse.java similarity index 89% rename from src/main/java/com/github/copilot/sdk/json/ListSessionsResponse.java rename to src/main/java/com/github/copilot/rpc/ListSessionsResponse.java index b535ee396..61955eb42 100644 --- a/src/main/java/com/github/copilot/sdk/json/ListSessionsResponse.java +++ b/src/main/java/com/github/copilot/rpc/ListSessionsResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; @@ -15,7 +15,7 @@ * This is a low-level class for JSON-RPC communication containing the list of * available sessions. * - * @see com.github.copilot.sdk.CopilotClient#listSessions() + * @see com.github.copilot.CopilotClient#listSessions() * @see SessionMetadata * @since 1.0.0 */ diff --git a/src/main/java/com/github/copilot/sdk/json/McpHttpServerConfig.java b/src/main/java/com/github/copilot/rpc/McpHttpServerConfig.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/McpHttpServerConfig.java rename to src/main/java/com/github/copilot/rpc/McpHttpServerConfig.java index 7017db3d2..83a42a88f 100644 --- a/src/main/java/com/github/copilot/sdk/json/McpHttpServerConfig.java +++ b/src/main/java/com/github/copilot/rpc/McpHttpServerConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/McpServerConfig.java b/src/main/java/com/github/copilot/rpc/McpServerConfig.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/McpServerConfig.java rename to src/main/java/com/github/copilot/rpc/McpServerConfig.java index 7cf39af6b..aef365d3f 100644 --- a/src/main/java/com/github/copilot/sdk/json/McpServerConfig.java +++ b/src/main/java/com/github/copilot/rpc/McpServerConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/McpStdioServerConfig.java b/src/main/java/com/github/copilot/rpc/McpStdioServerConfig.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/McpStdioServerConfig.java rename to src/main/java/com/github/copilot/rpc/McpStdioServerConfig.java index 900034be6..8ce739ffb 100644 --- a/src/main/java/com/github/copilot/sdk/json/McpStdioServerConfig.java +++ b/src/main/java/com/github/copilot/rpc/McpStdioServerConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/MessageAttachment.java b/src/main/java/com/github/copilot/rpc/MessageAttachment.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/MessageAttachment.java rename to src/main/java/com/github/copilot/rpc/MessageAttachment.java index 3371a56ba..e28c5da2e 100644 --- a/src/main/java/com/github/copilot/sdk/json/MessageAttachment.java +++ b/src/main/java/com/github/copilot/rpc/MessageAttachment.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/src/main/java/com/github/copilot/sdk/json/MessageOptions.java b/src/main/java/com/github/copilot/rpc/MessageOptions.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/MessageOptions.java rename to src/main/java/com/github/copilot/rpc/MessageOptions.java index 21909d576..49b25c094 100644 --- a/src/main/java/com/github/copilot/sdk/json/MessageOptions.java +++ b/src/main/java/com/github/copilot/rpc/MessageOptions.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.ArrayList; import java.util.Collections; @@ -36,7 +36,7 @@ * session.send(options).get(); * } * - * @see com.github.copilot.sdk.CopilotSession#send(MessageOptions) + * @see com.github.copilot.CopilotSession#send(MessageOptions) * @since 1.0.0 */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/src/main/java/com/github/copilot/sdk/json/ModelBilling.java b/src/main/java/com/github/copilot/rpc/ModelBilling.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/ModelBilling.java rename to src/main/java/com/github/copilot/rpc/ModelBilling.java index d04ef0d3e..c7bfc72b5 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelBilling.java +++ b/src/main/java/com/github/copilot/rpc/ModelBilling.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ModelCapabilities.java b/src/main/java/com/github/copilot/rpc/ModelCapabilities.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/ModelCapabilities.java rename to src/main/java/com/github/copilot/rpc/ModelCapabilities.java index 1cadcb05e..2a71601cf 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelCapabilities.java +++ b/src/main/java/com/github/copilot/rpc/ModelCapabilities.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ModelCapabilitiesOverride.java b/src/main/java/com/github/copilot/rpc/ModelCapabilitiesOverride.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ModelCapabilitiesOverride.java rename to src/main/java/com/github/copilot/rpc/ModelCapabilitiesOverride.java index 02727d4b5..6a670252a 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelCapabilitiesOverride.java +++ b/src/main/java/com/github/copilot/rpc/ModelCapabilitiesOverride.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @@ -16,7 +16,7 @@ * defaults. *

* Use this to override specific model capabilities when creating a session or - * switching models with {@link com.github.copilot.sdk.CopilotSession#setModel}. + * switching models with {@link com.github.copilot.CopilotSession#setModel}. * Only non-null fields are applied; unset fields retain their runtime defaults. * *

Example: Disable vision for a session

@@ -33,7 +33,7 @@ * new ModelCapabilitiesOverride().setSupports(new ModelCapabilitiesOverride.Supports().setVision(true))).get(); * } * - * @see com.github.copilot.sdk.CopilotSession#setModel(String, String, + * @see com.github.copilot.CopilotSession#setModel(String, String, * ModelCapabilitiesOverride) * @see SessionConfig#setModelCapabilities(ModelCapabilitiesOverride) * @since 1.3.0 diff --git a/src/main/java/com/github/copilot/sdk/json/ModelInfo.java b/src/main/java/com/github/copilot/rpc/ModelInfo.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/ModelInfo.java rename to src/main/java/com/github/copilot/rpc/ModelInfo.java index e04790069..b9331c868 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelInfo.java +++ b/src/main/java/com/github/copilot/rpc/ModelInfo.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/ModelLimits.java b/src/main/java/com/github/copilot/rpc/ModelLimits.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ModelLimits.java rename to src/main/java/com/github/copilot/rpc/ModelLimits.java index 734a50ded..a27741823 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelLimits.java +++ b/src/main/java/com/github/copilot/rpc/ModelLimits.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ModelPolicy.java b/src/main/java/com/github/copilot/rpc/ModelPolicy.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/ModelPolicy.java rename to src/main/java/com/github/copilot/rpc/ModelPolicy.java index 9cf226272..75fe36b11 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelPolicy.java +++ b/src/main/java/com/github/copilot/rpc/ModelPolicy.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ModelSupports.java b/src/main/java/com/github/copilot/rpc/ModelSupports.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ModelSupports.java rename to src/main/java/com/github/copilot/rpc/ModelSupports.java index 905ac6823..1462cdd98 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelSupports.java +++ b/src/main/java/com/github/copilot/rpc/ModelSupports.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ModelVisionLimits.java b/src/main/java/com/github/copilot/rpc/ModelVisionLimits.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ModelVisionLimits.java rename to src/main/java/com/github/copilot/rpc/ModelVisionLimits.java index 331985e53..204099adf 100644 --- a/src/main/java/com/github/copilot/sdk/json/ModelVisionLimits.java +++ b/src/main/java/com/github/copilot/rpc/ModelVisionLimits.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/PermissionHandler.java b/src/main/java/com/github/copilot/rpc/PermissionHandler.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/PermissionHandler.java rename to src/main/java/com/github/copilot/rpc/PermissionHandler.java index d230748fc..bd8e70b75 100644 --- a/src/main/java/com/github/copilot/sdk/json/PermissionHandler.java +++ b/src/main/java/com/github/copilot/rpc/PermissionHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/PermissionInvocation.java b/src/main/java/com/github/copilot/rpc/PermissionInvocation.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/PermissionInvocation.java rename to src/main/java/com/github/copilot/rpc/PermissionInvocation.java index 218a570cf..bda5bdde0 100644 --- a/src/main/java/com/github/copilot/sdk/json/PermissionInvocation.java +++ b/src/main/java/com/github/copilot/rpc/PermissionInvocation.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context information for a permission request invocation. diff --git a/src/main/java/com/github/copilot/sdk/json/PermissionRequest.java b/src/main/java/com/github/copilot/rpc/PermissionRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/PermissionRequest.java rename to src/main/java/com/github/copilot/rpc/PermissionRequest.java index 99dc7018a..51a303feb 100644 --- a/src/main/java/com/github/copilot/sdk/json/PermissionRequest.java +++ b/src/main/java/com/github/copilot/rpc/PermissionRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/PermissionRequestResult.java b/src/main/java/com/github/copilot/rpc/PermissionRequestResult.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/PermissionRequestResult.java rename to src/main/java/com/github/copilot/rpc/PermissionRequestResult.java index 3d7390f03..6c611a064 100644 --- a/src/main/java/com/github/copilot/sdk/json/PermissionRequestResult.java +++ b/src/main/java/com/github/copilot/rpc/PermissionRequestResult.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/PermissionRequestResultKind.java b/src/main/java/com/github/copilot/rpc/PermissionRequestResultKind.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/PermissionRequestResultKind.java rename to src/main/java/com/github/copilot/rpc/PermissionRequestResultKind.java index f782fd76b..95476c36f 100644 --- a/src/main/java/com/github/copilot/sdk/json/PermissionRequestResultKind.java +++ b/src/main/java/com/github/copilot/rpc/PermissionRequestResultKind.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Objects; diff --git a/src/main/java/com/github/copilot/sdk/json/PingResponse.java b/src/main/java/com/github/copilot/rpc/PingResponse.java similarity index 92% rename from src/main/java/com/github/copilot/sdk/json/PingResponse.java rename to src/main/java/com/github/copilot/rpc/PingResponse.java index 3dec2b352..efa607c6b 100644 --- a/src/main/java/com/github/copilot/sdk/json/PingResponse.java +++ b/src/main/java/com/github/copilot/rpc/PingResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -13,7 +13,7 @@ * The ping response confirms connectivity and provides information about the * server, including the protocol version. * - * @see com.github.copilot.sdk.CopilotClient#ping(String) + * @see com.github.copilot.CopilotClient#ping(String) * @since 1.0.0 */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/src/main/java/com/github/copilot/sdk/json/PostToolUseHandler.java b/src/main/java/com/github/copilot/rpc/PostToolUseHandler.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/PostToolUseHandler.java rename to src/main/java/com/github/copilot/rpc/PostToolUseHandler.java index 12688e63c..7b5f1601c 100644 --- a/src/main/java/com/github/copilot/sdk/json/PostToolUseHandler.java +++ b/src/main/java/com/github/copilot/rpc/PostToolUseHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/PostToolUseHookInput.java b/src/main/java/com/github/copilot/rpc/PostToolUseHookInput.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/PostToolUseHookInput.java rename to src/main/java/com/github/copilot/rpc/PostToolUseHookInput.java index 4ac398506..9da5aee88 100644 --- a/src/main/java/com/github/copilot/sdk/json/PostToolUseHookInput.java +++ b/src/main/java/com/github/copilot/rpc/PostToolUseHookInput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/PostToolUseHookOutput.java b/src/main/java/com/github/copilot/rpc/PostToolUseHookOutput.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/PostToolUseHookOutput.java rename to src/main/java/com/github/copilot/rpc/PostToolUseHookOutput.java index a532bf15e..24af02707 100644 --- a/src/main/java/com/github/copilot/sdk/json/PostToolUseHookOutput.java +++ b/src/main/java/com/github/copilot/rpc/PostToolUseHookOutput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHandler.java b/src/main/java/com/github/copilot/rpc/PreMcpToolCallHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHandler.java rename to src/main/java/com/github/copilot/rpc/PreMcpToolCallHandler.java index 4ace4d8d8..9e7d147ed 100644 --- a/src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHandler.java +++ b/src/main/java/com/github/copilot/rpc/PreMcpToolCallHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookInput.java b/src/main/java/com/github/copilot/rpc/PreMcpToolCallHookInput.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookInput.java rename to src/main/java/com/github/copilot/rpc/PreMcpToolCallHookInput.java index 17e32c02f..881065aa8 100644 --- a/src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookInput.java +++ b/src/main/java/com/github/copilot/rpc/PreMcpToolCallHookInput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookOutput.java b/src/main/java/com/github/copilot/rpc/PreMcpToolCallHookOutput.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookOutput.java rename to src/main/java/com/github/copilot/rpc/PreMcpToolCallHookOutput.java index a05111326..21da35e5e 100644 --- a/src/main/java/com/github/copilot/sdk/json/PreMcpToolCallHookOutput.java +++ b/src/main/java/com/github/copilot/rpc/PreMcpToolCallHookOutput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/PreToolUseHandler.java b/src/main/java/com/github/copilot/rpc/PreToolUseHandler.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/PreToolUseHandler.java rename to src/main/java/com/github/copilot/rpc/PreToolUseHandler.java index 3f98972e5..94f17acab 100644 --- a/src/main/java/com/github/copilot/sdk/json/PreToolUseHandler.java +++ b/src/main/java/com/github/copilot/rpc/PreToolUseHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/PreToolUseHookInput.java b/src/main/java/com/github/copilot/rpc/PreToolUseHookInput.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/PreToolUseHookInput.java rename to src/main/java/com/github/copilot/rpc/PreToolUseHookInput.java index 6cbab78b7..b6cb11859 100644 --- a/src/main/java/com/github/copilot/sdk/json/PreToolUseHookInput.java +++ b/src/main/java/com/github/copilot/rpc/PreToolUseHookInput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/PreToolUseHookOutput.java b/src/main/java/com/github/copilot/rpc/PreToolUseHookOutput.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/PreToolUseHookOutput.java rename to src/main/java/com/github/copilot/rpc/PreToolUseHookOutput.java index a92c8f01a..25d49a54d 100644 --- a/src/main/java/com/github/copilot/sdk/json/PreToolUseHookOutput.java +++ b/src/main/java/com/github/copilot/rpc/PreToolUseHookOutput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ProviderConfig.java b/src/main/java/com/github/copilot/rpc/ProviderConfig.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/ProviderConfig.java rename to src/main/java/com/github/copilot/rpc/ProviderConfig.java index 1c5e6fcc7..6c9cf379f 100644 --- a/src/main/java/com/github/copilot/sdk/json/ProviderConfig.java +++ b/src/main/java/com/github/copilot/rpc/ProviderConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java b/src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java rename to src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java index 72c9f6f47..b85b35dad 100644 --- a/src/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java +++ b/src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.ArrayList; import java.util.Collections; @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.github.copilot.sdk.generated.SessionEvent; +import com.github.copilot.generated.SessionEvent; import java.util.Optional; /** @@ -31,7 +31,7 @@ * var session = client.resumeSession(sessionId, config).get(); * } * - * @see com.github.copilot.sdk.CopilotClient#resumeSession(String, + * @see com.github.copilot.CopilotClient#resumeSession(String, * ResumeSessionConfig) * @since 1.0.0 */ @@ -241,7 +241,7 @@ public ResumeSessionConfig setProvider(ProviderConfig provider) { * {@code true}, telemetry is enabled for GitHub-authenticated sessions. When a * custom {@link ProviderConfig} (BYOK) is configured, session telemetry is * always disabled regardless of this setting. This is independent of - * {@link com.github.copilot.sdk.json.CopilotClientOptions#getTelemetry() + * {@link com.github.copilot.rpc.CopilotClientOptions#getTelemetry() * CopilotClientOptions.TelemetryConfig}, which configures OpenTelemetry export * for observability. * @@ -744,7 +744,7 @@ public Consumer getOnEvent() { * {@code session.resume} RPC is issued. *

* Equivalent to calling - * {@link com.github.copilot.sdk.CopilotSession#on(Consumer)} immediately after + * {@link com.github.copilot.CopilotSession#on(Consumer)} immediately after * resumption, but executes earlier in the lifecycle so no events are missed. * * @param onEvent diff --git a/src/main/java/com/github/copilot/sdk/json/ResumeSessionRequest.java b/src/main/java/com/github/copilot/rpc/ResumeSessionRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ResumeSessionRequest.java rename to src/main/java/com/github/copilot/rpc/ResumeSessionRequest.java index 8aca77b7d..bd8613d54 100644 --- a/src/main/java/com/github/copilot/sdk/json/ResumeSessionRequest.java +++ b/src/main/java/com/github/copilot/rpc/ResumeSessionRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; @@ -16,9 +16,9 @@ *

* This is a low-level class for JSON-RPC communication. For resuming sessions, * use - * {@link com.github.copilot.sdk.CopilotClient#resumeSession(String, ResumeSessionConfig)}. + * {@link com.github.copilot.CopilotClient#resumeSession(String, ResumeSessionConfig)}. * - * @see com.github.copilot.sdk.CopilotClient#resumeSession(String, + * @see com.github.copilot.CopilotClient#resumeSession(String, * ResumeSessionConfig) * @see ResumeSessionConfig * @since 1.0.0 diff --git a/src/main/java/com/github/copilot/sdk/json/ResumeSessionResponse.java b/src/main/java/com/github/copilot/rpc/ResumeSessionResponse.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/ResumeSessionResponse.java rename to src/main/java/com/github/copilot/rpc/ResumeSessionResponse.java index 8349c5d30..cd787d37f 100644 --- a/src/main/java/com/github/copilot/sdk/json/ResumeSessionResponse.java +++ b/src/main/java/com/github/copilot/rpc/ResumeSessionResponse.java @@ -1,4 +1,4 @@ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SectionOverride.java b/src/main/java/com/github/copilot/rpc/SectionOverride.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/SectionOverride.java rename to src/main/java/com/github/copilot/rpc/SectionOverride.java index 40a58449d..0b4dd05ce 100644 --- a/src/main/java/com/github/copilot/sdk/json/SectionOverride.java +++ b/src/main/java/com/github/copilot/rpc/SectionOverride.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; import java.util.function.Function; diff --git a/src/main/java/com/github/copilot/sdk/json/SectionOverrideAction.java b/src/main/java/com/github/copilot/rpc/SectionOverrideAction.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SectionOverrideAction.java rename to src/main/java/com/github/copilot/rpc/SectionOverrideAction.java index 2d179f753..f3569009b 100644 --- a/src/main/java/com/github/copilot/sdk/json/SectionOverrideAction.java +++ b/src/main/java/com/github/copilot/rpc/SectionOverrideAction.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/src/main/java/com/github/copilot/sdk/json/SendMessageRequest.java b/src/main/java/com/github/copilot/rpc/SendMessageRequest.java similarity index 92% rename from src/main/java/com/github/copilot/sdk/json/SendMessageRequest.java rename to src/main/java/com/github/copilot/rpc/SendMessageRequest.java index 2ef39770f..bdd904a59 100644 --- a/src/main/java/com/github/copilot/sdk/json/SendMessageRequest.java +++ b/src/main/java/com/github/copilot/rpc/SendMessageRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; @@ -15,10 +15,10 @@ * Internal request object for sending a message to a session. *

* This is a low-level class for JSON-RPC communication. For sending messages, - * use {@link com.github.copilot.sdk.CopilotSession#send(String)} or - * {@link com.github.copilot.sdk.CopilotSession#sendAndWait(String)}. + * use {@link com.github.copilot.CopilotSession#send(String)} or + * {@link com.github.copilot.CopilotSession#sendAndWait(String)}. * - * @see com.github.copilot.sdk.CopilotSession + * @see com.github.copilot.CopilotSession * @see MessageOptions * @since 1.0.0 */ diff --git a/src/main/java/com/github/copilot/sdk/json/SendMessageResponse.java b/src/main/java/com/github/copilot/rpc/SendMessageResponse.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/SendMessageResponse.java rename to src/main/java/com/github/copilot/rpc/SendMessageResponse.java index 7d79a7a2b..b3d158864 100644 --- a/src/main/java/com/github/copilot/sdk/json/SendMessageResponse.java +++ b/src/main/java/com/github/copilot/rpc/SendMessageResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionCapabilities.java b/src/main/java/com/github/copilot/rpc/SessionCapabilities.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/SessionCapabilities.java rename to src/main/java/com/github/copilot/rpc/SessionCapabilities.java index 4eb4fc025..b0daf4a5b 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionCapabilities.java +++ b/src/main/java/com/github/copilot/rpc/SessionCapabilities.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Represents the capabilities reported by the host for a session. diff --git a/src/main/java/com/github/copilot/sdk/json/SessionConfig.java b/src/main/java/com/github/copilot/rpc/SessionConfig.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/SessionConfig.java rename to src/main/java/com/github/copilot/rpc/SessionConfig.java index ddf06cca7..461e1d73b 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionConfig.java +++ b/src/main/java/com/github/copilot/rpc/SessionConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.ArrayList; import java.util.Collections; @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.github.copilot.sdk.generated.SessionEvent; +import com.github.copilot.generated.SessionEvent; import java.util.Optional; /** @@ -32,7 +32,7 @@ * var session = client.createSession(config).get(); * } * - * @see com.github.copilot.sdk.CopilotClient#createSession(SessionConfig) + * @see com.github.copilot.CopilotClient#createSession(SessionConfig) * @since 1.0.0 */ @JsonInclude(JsonInclude.Include.NON_NULL) @@ -205,9 +205,9 @@ public SystemMessageConfig getSystemMessage() { * Sets the system message configuration. *

* The system message controls the behavior and personality of the assistant. - * Use {@link com.github.copilot.sdk.SystemMessageMode#APPEND} to add + * Use {@link com.github.copilot.SystemMessageMode#APPEND} to add * instructions while preserving default behavior, or - * {@link com.github.copilot.sdk.SystemMessageMode#REPLACE} to fully customize. + * {@link com.github.copilot.SystemMessageMode#REPLACE} to fully customize. * * @param systemMessage * the system message configuration @@ -296,7 +296,7 @@ public SessionConfig setProvider(ProviderConfig provider) { * {@code true}, telemetry is enabled for GitHub-authenticated sessions. When a * custom {@link ProviderConfig} (BYOK) is configured, session telemetry is * always disabled regardless of this setting. This is independent of - * {@link com.github.copilot.sdk.json.CopilotClientOptions#getTelemetry() + * {@link com.github.copilot.rpc.CopilotClientOptions#getTelemetry() * CopilotClientOptions.TelemetryConfig}, which configures OpenTelemetry export * for observability. * @@ -795,7 +795,7 @@ public Consumer getOnEvent() { * {@code session.create} RPC is issued. *

* Equivalent to calling - * {@link com.github.copilot.sdk.CopilotSession#on(Consumer)} immediately after + * {@link com.github.copilot.CopilotSession#on(Consumer)} immediately after * creation, but executes earlier in the lifecycle so no events are missed. * Using this property rather than {@code CopilotSession.on()} guarantees that * early events emitted by the CLI during session creation (e.g. diff --git a/src/main/java/com/github/copilot/sdk/json/SessionContext.java b/src/main/java/com/github/copilot/rpc/SessionContext.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/SessionContext.java rename to src/main/java/com/github/copilot/rpc/SessionContext.java index fb6e16f8c..170308267 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionContext.java +++ b/src/main/java/com/github/copilot/rpc/SessionContext.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionEndHandler.java b/src/main/java/com/github/copilot/rpc/SessionEndHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SessionEndHandler.java rename to src/main/java/com/github/copilot/rpc/SessionEndHandler.java index e8fc908df..d7d608261 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionEndHandler.java +++ b/src/main/java/com/github/copilot/rpc/SessionEndHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionEndHookInput.java b/src/main/java/com/github/copilot/rpc/SessionEndHookInput.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SessionEndHookInput.java rename to src/main/java/com/github/copilot/rpc/SessionEndHookInput.java index 0d3d3e294..f29b69838 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionEndHookInput.java +++ b/src/main/java/com/github/copilot/rpc/SessionEndHookInput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionEndHookOutput.java b/src/main/java/com/github/copilot/rpc/SessionEndHookOutput.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/SessionEndHookOutput.java rename to src/main/java/com/github/copilot/rpc/SessionEndHookOutput.java index 23ebf958e..068e85682 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionEndHookOutput.java +++ b/src/main/java/com/github/copilot/rpc/SessionEndHookOutput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionHooks.java b/src/main/java/com/github/copilot/rpc/SessionHooks.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/SessionHooks.java rename to src/main/java/com/github/copilot/rpc/SessionHooks.java index 301d64cb5..ebfeffe33 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionHooks.java +++ b/src/main/java/com/github/copilot/rpc/SessionHooks.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Hook handlers configuration for a session. diff --git a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleEvent.java b/src/main/java/com/github/copilot/rpc/SessionLifecycleEvent.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SessionLifecycleEvent.java rename to src/main/java/com/github/copilot/rpc/SessionLifecycleEvent.java index 59d1e252f..55857a74a 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleEvent.java +++ b/src/main/java/com/github/copilot/rpc/SessionLifecycleEvent.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventMetadata.java b/src/main/java/com/github/copilot/rpc/SessionLifecycleEventMetadata.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventMetadata.java rename to src/main/java/com/github/copilot/rpc/SessionLifecycleEventMetadata.java index 7c76c07aa..bf384a7ce 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventMetadata.java +++ b/src/main/java/com/github/copilot/rpc/SessionLifecycleEventMetadata.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventTypes.java b/src/main/java/com/github/copilot/rpc/SessionLifecycleEventTypes.java similarity index 90% rename from src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventTypes.java rename to src/main/java/com/github/copilot/rpc/SessionLifecycleEventTypes.java index b3eb35598..109c85b94 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleEventTypes.java +++ b/src/main/java/com/github/copilot/rpc/SessionLifecycleEventTypes.java @@ -2,13 +2,13 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Types of session lifecycle events. *

* Constants for session lifecycle event types used with - * {@link com.github.copilot.sdk.CopilotClient#onLifecycle(String, SessionLifecycleHandler)}. + * {@link com.github.copilot.CopilotClient#onLifecycle(String, SessionLifecycleHandler)}. * * @since 1.0.0 */ diff --git a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleHandler.java b/src/main/java/com/github/copilot/rpc/SessionLifecycleHandler.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/SessionLifecycleHandler.java rename to src/main/java/com/github/copilot/rpc/SessionLifecycleHandler.java index 11937ee64..755f2aa4e 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionLifecycleHandler.java +++ b/src/main/java/com/github/copilot/rpc/SessionLifecycleHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Handler for session lifecycle events. diff --git a/src/main/java/com/github/copilot/sdk/json/SessionListFilter.java b/src/main/java/com/github/copilot/rpc/SessionListFilter.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/SessionListFilter.java rename to src/main/java/com/github/copilot/rpc/SessionListFilter.java index f62f7674f..d6c454852 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionListFilter.java +++ b/src/main/java/com/github/copilot/rpc/SessionListFilter.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Filter options for listing sessions. @@ -22,7 +22,7 @@ * var sessions = client.listSessions(filter).get(); * } * - * @see com.github.copilot.sdk.CopilotClient#listSessions(SessionListFilter) + * @see com.github.copilot.CopilotClient#listSessions(SessionListFilter) * @since 1.0.0 */ public class SessionListFilter extends SessionContext { diff --git a/src/main/java/com/github/copilot/sdk/json/SessionMetadata.java b/src/main/java/com/github/copilot/rpc/SessionMetadata.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/json/SessionMetadata.java rename to src/main/java/com/github/copilot/rpc/SessionMetadata.java index cb2690d19..90207b9c7 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionMetadata.java +++ b/src/main/java/com/github/copilot/rpc/SessionMetadata.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -11,7 +11,7 @@ * Metadata about an existing Copilot session. *

* This class represents session information returned when listing available - * sessions via {@link com.github.copilot.sdk.CopilotClient#listSessions()}. It + * sessions via {@link com.github.copilot.CopilotClient#listSessions()}. It * includes timing information, a summary of the conversation, and whether the * session is stored remotely. * @@ -26,8 +26,8 @@ * } * } * - * @see com.github.copilot.sdk.CopilotClient#listSessions() - * @see com.github.copilot.sdk.CopilotClient#resumeSession(String, + * @see com.github.copilot.CopilotClient#listSessions() + * @see com.github.copilot.CopilotClient#resumeSession(String, * ResumeSessionConfig) * @since 1.0.0 */ diff --git a/src/main/java/com/github/copilot/sdk/json/SessionStartHandler.java b/src/main/java/com/github/copilot/rpc/SessionStartHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SessionStartHandler.java rename to src/main/java/com/github/copilot/rpc/SessionStartHandler.java index fd631cb7f..3c65a6944 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionStartHandler.java +++ b/src/main/java/com/github/copilot/rpc/SessionStartHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionStartHookInput.java b/src/main/java/com/github/copilot/rpc/SessionStartHookInput.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SessionStartHookInput.java rename to src/main/java/com/github/copilot/rpc/SessionStartHookInput.java index 55bff3e26..d6e5b3759 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionStartHookInput.java +++ b/src/main/java/com/github/copilot/rpc/SessionStartHookInput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionStartHookOutput.java b/src/main/java/com/github/copilot/rpc/SessionStartHookOutput.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/SessionStartHookOutput.java rename to src/main/java/com/github/copilot/rpc/SessionStartHookOutput.java index 3ef5971c4..2650a5efa 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionStartHookOutput.java +++ b/src/main/java/com/github/copilot/rpc/SessionStartHookOutput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/SessionUiApi.java b/src/main/java/com/github/copilot/rpc/SessionUiApi.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/json/SessionUiApi.java rename to src/main/java/com/github/copilot/rpc/SessionUiApi.java index f0a43f261..1cf32e468 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionUiApi.java +++ b/src/main/java/com/github/copilot/rpc/SessionUiApi.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; @@ -11,7 +11,7 @@ *

* All methods on this interface throw {@link IllegalStateException} if the host * does not report elicitation support via - * {@link com.github.copilot.sdk.CopilotSession#getCapabilities()}. Check + * {@link com.github.copilot.CopilotSession#getCapabilities()}. Check * {@code session.getCapabilities().getUi() != null && * Boolean.TRUE.equals(session.getCapabilities().getUi().getElicitation())} * before calling. @@ -25,7 +25,7 @@ * } * } * - * @see com.github.copilot.sdk.CopilotSession#getUi() + * @see com.github.copilot.CopilotSession#getUi() * @since 1.0.0 */ public interface SessionUiApi { diff --git a/src/main/java/com/github/copilot/sdk/json/SessionUiCapabilities.java b/src/main/java/com/github/copilot/rpc/SessionUiCapabilities.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/SessionUiCapabilities.java rename to src/main/java/com/github/copilot/rpc/SessionUiCapabilities.java index d19d531ee..015220d0c 100644 --- a/src/main/java/com/github/copilot/sdk/json/SessionUiCapabilities.java +++ b/src/main/java/com/github/copilot/rpc/SessionUiCapabilities.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Optional; diff --git a/src/main/java/com/github/copilot/sdk/json/SetForegroundSessionRequest.java b/src/main/java/com/github/copilot/rpc/SetForegroundSessionRequest.java similarity index 94% rename from src/main/java/com/github/copilot/sdk/json/SetForegroundSessionRequest.java rename to src/main/java/com/github/copilot/rpc/SetForegroundSessionRequest.java index d3944871a..faa35406b 100644 --- a/src/main/java/com/github/copilot/sdk/json/SetForegroundSessionRequest.java +++ b/src/main/java/com/github/copilot/rpc/SetForegroundSessionRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SetForegroundSessionResponse.java b/src/main/java/com/github/copilot/rpc/SetForegroundSessionResponse.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/SetForegroundSessionResponse.java rename to src/main/java/com/github/copilot/rpc/SetForegroundSessionResponse.java index c4680c95d..43bc90735 100644 --- a/src/main/java/com/github/copilot/sdk/json/SetForegroundSessionResponse.java +++ b/src/main/java/com/github/copilot/rpc/SetForegroundSessionResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/SystemMessageConfig.java b/src/main/java/com/github/copilot/rpc/SystemMessageConfig.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/SystemMessageConfig.java rename to src/main/java/com/github/copilot/rpc/SystemMessageConfig.java index 94af117ea..973168f4d 100644 --- a/src/main/java/com/github/copilot/sdk/json/SystemMessageConfig.java +++ b/src/main/java/com/github/copilot/rpc/SystemMessageConfig.java @@ -2,12 +2,12 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; import com.fasterxml.jackson.annotation.JsonInclude; -import com.github.copilot.sdk.SystemMessageMode; +import com.github.copilot.SystemMessageMode; /** * Configuration for customizing the system message. diff --git a/src/main/java/com/github/copilot/sdk/json/SystemPromptSections.java b/src/main/java/com/github/copilot/rpc/SystemPromptSections.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/SystemPromptSections.java rename to src/main/java/com/github/copilot/rpc/SystemPromptSections.java index fa512d032..c68fcbe0c 100644 --- a/src/main/java/com/github/copilot/sdk/json/SystemPromptSections.java +++ b/src/main/java/com/github/copilot/rpc/SystemPromptSections.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Well-known system prompt section identifiers for use with diff --git a/src/main/java/com/github/copilot/sdk/json/TelemetryConfig.java b/src/main/java/com/github/copilot/rpc/TelemetryConfig.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/TelemetryConfig.java rename to src/main/java/com/github/copilot/rpc/TelemetryConfig.java index 7272c9884..c0b75f29d 100644 --- a/src/main/java/com/github/copilot/sdk/json/TelemetryConfig.java +++ b/src/main/java/com/github/copilot/rpc/TelemetryConfig.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Optional; diff --git a/src/main/java/com/github/copilot/sdk/json/ToolBinaryResult.java b/src/main/java/com/github/copilot/rpc/ToolBinaryResult.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/ToolBinaryResult.java rename to src/main/java/com/github/copilot/rpc/ToolBinaryResult.java index e00fce9cf..f89b6a55f 100644 --- a/src/main/java/com/github/copilot/sdk/json/ToolBinaryResult.java +++ b/src/main/java/com/github/copilot/rpc/ToolBinaryResult.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/ToolDefinition.java b/src/main/java/com/github/copilot/rpc/ToolDefinition.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/ToolDefinition.java rename to src/main/java/com/github/copilot/rpc/ToolDefinition.java index ba33ce1e3..c880e5a77 100644 --- a/src/main/java/com/github/copilot/sdk/json/ToolDefinition.java +++ b/src/main/java/com/github/copilot/rpc/ToolDefinition.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/ToolHandler.java b/src/main/java/com/github/copilot/rpc/ToolHandler.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/ToolHandler.java rename to src/main/java/com/github/copilot/rpc/ToolHandler.java index e3e421b65..15e52512e 100644 --- a/src/main/java/com/github/copilot/sdk/json/ToolHandler.java +++ b/src/main/java/com/github/copilot/rpc/ToolHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/ToolInvocation.java b/src/main/java/com/github/copilot/rpc/ToolInvocation.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/ToolInvocation.java rename to src/main/java/com/github/copilot/rpc/ToolInvocation.java index e5febba6f..dddfdd06f 100644 --- a/src/main/java/com/github/copilot/sdk/json/ToolInvocation.java +++ b/src/main/java/com/github/copilot/rpc/ToolInvocation.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/ToolResultObject.java b/src/main/java/com/github/copilot/rpc/ToolResultObject.java similarity index 99% rename from src/main/java/com/github/copilot/sdk/json/ToolResultObject.java rename to src/main/java/com/github/copilot/rpc/ToolResultObject.java index dcb5ad78f..e55ff9ab6 100644 --- a/src/main/java/com/github/copilot/sdk/json/ToolResultObject.java +++ b/src/main/java/com/github/copilot/rpc/ToolResultObject.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.List; import java.util.Map; diff --git a/src/main/java/com/github/copilot/sdk/json/UserInputHandler.java b/src/main/java/com/github/copilot/rpc/UserInputHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/UserInputHandler.java rename to src/main/java/com/github/copilot/rpc/UserInputHandler.java index e5d171098..7595bc5b9 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserInputHandler.java +++ b/src/main/java/com/github/copilot/rpc/UserInputHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/UserInputInvocation.java b/src/main/java/com/github/copilot/rpc/UserInputInvocation.java similarity index 95% rename from src/main/java/com/github/copilot/sdk/json/UserInputInvocation.java rename to src/main/java/com/github/copilot/rpc/UserInputInvocation.java index 3232b0c34..3eed480ca 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserInputInvocation.java +++ b/src/main/java/com/github/copilot/rpc/UserInputInvocation.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; /** * Context for a user input request invocation. diff --git a/src/main/java/com/github/copilot/sdk/json/UserInputRequest.java b/src/main/java/com/github/copilot/rpc/UserInputRequest.java similarity index 98% rename from src/main/java/com/github/copilot/sdk/json/UserInputRequest.java rename to src/main/java/com/github/copilot/rpc/UserInputRequest.java index 23b0d8812..8e3551c5a 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserInputRequest.java +++ b/src/main/java/com/github/copilot/rpc/UserInputRequest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.Collections; import java.util.List; diff --git a/src/main/java/com/github/copilot/sdk/json/UserInputResponse.java b/src/main/java/com/github/copilot/rpc/UserInputResponse.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/UserInputResponse.java rename to src/main/java/com/github/copilot/rpc/UserInputResponse.java index 4cfaa13f0..c9e0133c7 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserInputResponse.java +++ b/src/main/java/com/github/copilot/rpc/UserInputResponse.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHandler.java b/src/main/java/com/github/copilot/rpc/UserPromptSubmittedHandler.java similarity index 97% rename from src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHandler.java rename to src/main/java/com/github/copilot/rpc/UserPromptSubmittedHandler.java index 0dc59762b..e0953ed7f 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHandler.java +++ b/src/main/java/com/github/copilot/rpc/UserPromptSubmittedHandler.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import java.util.concurrent.CompletableFuture; diff --git a/src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookInput.java b/src/main/java/com/github/copilot/rpc/UserPromptSubmittedHookInput.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookInput.java rename to src/main/java/com/github/copilot/rpc/UserPromptSubmittedHookInput.java index 2f3a0948d..8b37df677 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookInput.java +++ b/src/main/java/com/github/copilot/rpc/UserPromptSubmittedHookInput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookOutput.java b/src/main/java/com/github/copilot/rpc/UserPromptSubmittedHookOutput.java similarity index 96% rename from src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookOutput.java rename to src/main/java/com/github/copilot/rpc/UserPromptSubmittedHookOutput.java index d5b345556..ac37f2bd9 100644 --- a/src/main/java/com/github/copilot/sdk/json/UserPromptSubmittedHookOutput.java +++ b/src/main/java/com/github/copilot/rpc/UserPromptSubmittedHookOutput.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/github/copilot/sdk/json/package-info.java b/src/main/java/com/github/copilot/rpc/package-info.java similarity index 59% rename from src/main/java/com/github/copilot/sdk/json/package-info.java rename to src/main/java/com/github/copilot/rpc/package-info.java index aabf62069..64ffcec69 100644 --- a/src/main/java/com/github/copilot/sdk/json/package-info.java +++ b/src/main/java/com/github/copilot/rpc/package-info.java @@ -13,67 +13,67 @@ * *

Client Configuration

*
    - *
  • {@link com.github.copilot.sdk.json.CopilotClientOptions} - Options for - * configuring the {@link com.github.copilot.sdk.CopilotClient}, including CLI + *
  • {@link com.github.copilot.rpc.CopilotClientOptions} - Options for + * configuring the {@link com.github.copilot.CopilotClient}, including CLI * path, port, transport mode, and auto-start behavior.
  • *
* *

Session Configuration

*
    - *
  • {@link com.github.copilot.sdk.json.SessionConfig} - Configuration for + *
  • {@link com.github.copilot.rpc.SessionConfig} - Configuration for * creating a new session, including model selection, tools, system message, and * MCP server configuration.
  • - *
  • {@link com.github.copilot.sdk.json.ResumeSessionConfig} - Configuration + *
  • {@link com.github.copilot.rpc.ResumeSessionConfig} - Configuration * for resuming an existing session.
  • - *
  • {@link com.github.copilot.sdk.json.InfiniteSessionConfig} - Configuration + *
  • {@link com.github.copilot.rpc.InfiniteSessionConfig} - Configuration * for infinite sessions with automatic context compaction.
  • - *
  • {@link com.github.copilot.sdk.json.SystemMessageConfig} - System message + *
  • {@link com.github.copilot.rpc.SystemMessageConfig} - System message * customization options.
  • *
* *

Message and Tool Configuration

*
    - *
  • {@link com.github.copilot.sdk.json.MessageOptions} - Options for sending + *
  • {@link com.github.copilot.rpc.MessageOptions} - Options for sending * messages, including prompt text and attachments.
  • - *
  • {@link com.github.copilot.sdk.json.ToolDefinition} - Definition of a + *
  • {@link com.github.copilot.rpc.ToolDefinition} - Definition of a * custom tool that can be invoked by the assistant.
  • - *
  • {@link com.github.copilot.sdk.json.ToolInvocation} - Represents a tool + *
  • {@link com.github.copilot.rpc.ToolInvocation} - Represents a tool * invocation request from the assistant.
  • - *
  • {@link com.github.copilot.sdk.json.Attachment} - File attachment for + *
  • {@link com.github.copilot.rpc.Attachment} - File attachment for * messages.
  • *
* *

Provider Configuration (BYOK)

*
    - *
  • {@link com.github.copilot.sdk.json.ProviderConfig} - Configuration for + *
  • {@link com.github.copilot.rpc.ProviderConfig} - Configuration for * using your own API keys with custom providers (OpenAI, Azure, etc.).
  • - *
  • {@link com.github.copilot.sdk.json.AzureOptions} - Azure-specific + *
  • {@link com.github.copilot.rpc.AzureOptions} - Azure-specific * configuration options.
  • *
* *

Model Information

*
    - *
  • {@link com.github.copilot.sdk.json.ModelInfo} - Information about an + *
  • {@link com.github.copilot.rpc.ModelInfo} - Information about an * available AI model.
  • - *
  • {@link com.github.copilot.sdk.json.ModelCapabilities} - Model + *
  • {@link com.github.copilot.rpc.ModelCapabilities} - Model * capabilities and limits.
  • - *
  • {@link com.github.copilot.sdk.json.ModelPolicy} - Model policy and state + *
  • {@link com.github.copilot.rpc.ModelPolicy} - Model policy and state * information.
  • *
* *

Custom Agents

*
    - *
  • {@link com.github.copilot.sdk.json.CustomAgentConfig} - Configuration for + *
  • {@link com.github.copilot.rpc.CustomAgentConfig} - Configuration for * custom agents with specialized behaviors and tools.
  • *
* *

Permissions

*
    - *
  • {@link com.github.copilot.sdk.json.PermissionHandler} - Handler for + *
  • {@link com.github.copilot.rpc.PermissionHandler} - Handler for * permission requests from the assistant.
  • - *
  • {@link com.github.copilot.sdk.json.PermissionRequest} - A permission + *
  • {@link com.github.copilot.rpc.PermissionRequest} - A permission * request from the assistant.
  • - *
  • {@link com.github.copilot.sdk.json.PermissionRequestResult} - Result of a + *
  • {@link com.github.copilot.rpc.PermissionRequestResult} - Result of a * permission request decision.
  • *
* @@ -88,8 +88,8 @@ * var session = client.createSession(config).get(); * } * - * @see com.github.copilot.sdk.CopilotClient - * @see com.github.copilot.sdk.CopilotSession + * @see com.github.copilot.CopilotClient + * @see com.github.copilot.CopilotSession */ @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "DTOs for JSON deserialization - low risk") -package com.github.copilot.sdk.json; +package com.github.copilot.rpc; diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index d912fb420..01b741694 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -5,7 +5,7 @@ /** * GitHub Copilot SDK for Java. */ -module com.github.copilot.sdk.java { +module com.github.copilot.java { requires transitive com.fasterxml.jackson.annotation; requires com.fasterxml.jackson.core; requires transitive com.fasterxml.jackson.databind; @@ -15,12 +15,12 @@ requires static java.net.http; requires java.logging; - exports com.github.copilot.sdk; - exports com.github.copilot.sdk.generated; - exports com.github.copilot.sdk.generated.rpc; - exports com.github.copilot.sdk.json; + exports com.github.copilot; + exports com.github.copilot.generated; + exports com.github.copilot.generated.rpc; + exports com.github.copilot.rpc; - opens com.github.copilot.sdk to com.fasterxml.jackson.databind; - opens com.github.copilot.sdk.generated to com.fasterxml.jackson.databind; - opens com.github.copilot.sdk.json to com.fasterxml.jackson.databind; + opens com.github.copilot to com.fasterxml.jackson.databind; + opens com.github.copilot.generated to com.fasterxml.jackson.databind; + opens com.github.copilot.rpc to com.fasterxml.jackson.databind; } diff --git a/src/site/markdown/advanced.md b/src/site/markdown/advanced.md index 85694185d..c78b40cf4 100644 --- a/src/site/markdown/advanced.md +++ b/src/site/markdown/advanced.md @@ -970,7 +970,7 @@ subscription.close(); ### Subscribing to Specific Event Types ```java -import com.github.copilot.sdk.json.SessionLifecycleEventTypes; +import com.github.copilot.rpc.SessionLifecycleEventTypes; // Listen only for session creation var subscription = client.onLifecycle( diff --git a/src/site/markdown/cookbook/error-handling.md b/src/site/markdown/cookbook/error-handling.md index 963b8b093..5078afa3f 100644 --- a/src/site/markdown/cookbook/error-handling.md +++ b/src/site/markdown/cookbook/error-handling.md @@ -31,11 +31,11 @@ jbang BasicErrorHandling.java **Code:** ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; public class BasicErrorHandling { public static void main(String[] args) { @@ -65,7 +65,7 @@ public class BasicErrorHandling { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; +import com.github.copilot.CopilotClient; import java.util.concurrent.ExecutionException; public class SpecificErrorHandling { @@ -100,9 +100,9 @@ public class SpecificErrorHandling { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotSession; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; +import com.github.copilot.CopilotSession; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -131,8 +131,8 @@ public class TimeoutHandling { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotSession; -import com.github.copilot.sdk.json.MessageOptions; +import com.github.copilot.CopilotSession; +import com.github.copilot.rpc.MessageOptions; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; @@ -163,7 +163,7 @@ public class AbortRequest { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; +import com.github.copilot.CopilotClient; public class GracefulShutdown { public static void main(String[] args) { @@ -193,11 +193,11 @@ public class GracefulShutdown { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; public class TryWithResources { public static void doWork() throws Exception { @@ -225,13 +225,13 @@ public class TryWithResources { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.ToolResultObject; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.ToolResultObject; import java.util.Map; import java.util.List; import java.util.concurrent.CompletableFuture; diff --git a/src/site/markdown/cookbook/managing-local-files.md b/src/site/markdown/cookbook/managing-local-files.md index 2a7b5540f..4d79dc29d 100644 --- a/src/site/markdown/cookbook/managing-local-files.md +++ b/src/site/markdown/cookbook/managing-local-files.md @@ -35,14 +35,14 @@ jbang ManagingLocalFiles.java **Code:** ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.generated.ToolExecutionCompleteEvent; -import com.github.copilot.sdk.generated.ToolExecutionStartEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.generated.ToolExecutionCompleteEvent; +import com.github.copilot.generated.ToolExecutionStartEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; import java.nio.file.Paths; import java.util.concurrent.CountDownLatch; diff --git a/src/site/markdown/cookbook/multiple-sessions.md b/src/site/markdown/cookbook/multiple-sessions.md index 84da5a255..5849394d5 100644 --- a/src/site/markdown/cookbook/multiple-sessions.md +++ b/src/site/markdown/cookbook/multiple-sessions.md @@ -31,11 +31,11 @@ jbang MultipleSessions.java **Code:** ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; public class MultipleSessions { public static void main(String[] args) throws Exception { @@ -177,11 +177,11 @@ common-pool threads: ```java //DEPS com.github:copilot-sdk-java:${project.version} -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; +import com.github.copilot.CopilotClient; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; diff --git a/src/site/markdown/cookbook/persisting-sessions.md b/src/site/markdown/cookbook/persisting-sessions.md index ef80fd3d0..89837bc14 100644 --- a/src/site/markdown/cookbook/persisting-sessions.md +++ b/src/site/markdown/cookbook/persisting-sessions.md @@ -31,11 +31,11 @@ jbang PersistingSessions.java **Code:** ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; public class PersistingSessions { public static void main(String[] args) throws Exception { @@ -128,11 +128,11 @@ public class DeleteSession { ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.UserMessageEvent; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ResumeSessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.UserMessageEvent; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ResumeSessionConfig; public class SessionHistory { public static void main(String[] args) throws Exception { diff --git a/src/site/markdown/cookbook/pr-visualization.md b/src/site/markdown/cookbook/pr-visualization.md index 1036bb0f7..b72d9088b 100644 --- a/src/site/markdown/cookbook/pr-visualization.md +++ b/src/site/markdown/cookbook/pr-visualization.md @@ -35,13 +35,13 @@ jbang PRVisualization.java github/copilot-sdk ```java //DEPS com.github:copilot-sdk-java:1.0.0-beta-java.4 -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.ToolExecutionStartEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SystemMessageConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.ToolExecutionStartEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SystemMessageConfig; import java.io.BufferedReader; import java.io.EOFException; import java.io.IOException; diff --git a/src/site/markdown/documentation.md b/src/site/markdown/documentation.md index 7b0c958e3..415c111b8 100644 --- a/src/site/markdown/documentation.md +++ b/src/site/markdown/documentation.md @@ -27,9 +27,9 @@ This guide covers common use cases for the GitHub Copilot SDK for Java. For comp Create a client, start a session, and send a message: ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; try (var client = new CopilotClient()) { client.start().get(); diff --git a/src/site/markdown/getting-started.md b/src/site/markdown/getting-started.md index 724b1a2dd..0bde2ef50 100644 --- a/src/site/markdown/getting-started.md +++ b/src/site/markdown/getting-started.md @@ -64,10 +64,10 @@ For the fastest way to try the SDK without setting up a project, use [JBang](htt Create a new file and add the following code. This is the simplest way to use the SDK. ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; public class HelloCopilot { public static void main(String[] args) throws Exception { @@ -109,12 +109,12 @@ Congratulations! You just built your first Copilot-powered app. Right now, you wait for the complete response before seeing anything. Let's make it interactive by streaming the response as it's generated. ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageDeltaEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageDeltaEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; import java.util.concurrent.CompletableFuture; public class StreamingExample { @@ -156,13 +156,13 @@ Run the code again. You'll see the response appear word by word. Now for the powerful part. Let's give Copilot the ability to call your code by defining a custom tool. We'll create a simple weather lookup tool. ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageDeltaEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageDeltaEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; import java.util.List; import java.util.Map; import java.util.Random; @@ -238,13 +238,13 @@ Run it and you'll see Copilot call your tool to get weather data, then respond w Let's put it all together into a useful interactive assistant: ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageDeltaEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageDeltaEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; import java.util.List; import java.util.Map; import java.util.Random; diff --git a/src/site/markdown/hooks.md b/src/site/markdown/hooks.md index cb978ef8b..8db63b978 100644 --- a/src/site/markdown/hooks.md +++ b/src/site/markdown/hooks.md @@ -337,11 +337,11 @@ var hooks = new SessionHooks() Combining multiple hooks for comprehensive session control: ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PreToolUseHookOutput; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionHooks; +import com.github.copilot.CopilotClient; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PreToolUseHookOutput; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionHooks; import java.util.concurrent.CompletableFuture; public class HooksExample { diff --git a/src/site/markdown/index.md b/src/site/markdown/index.md index a097da69e..645645d4b 100644 --- a/src/site/markdown/index.md +++ b/src/site/markdown/index.md @@ -36,12 +36,12 @@ implementation 'com.github:copilot-sdk-java:${project.version}' ### Quick Example ```java -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; import java.util.concurrent.CompletableFuture; public class Example { @@ -87,12 +87,12 @@ You can quickly try the SDK without setting up a full project using [JBang](http # Create a simple script cat > hello-copilot.java << 'EOF' //DEPS com.github:copilot-sdk-java:${project.version} -import com.github.copilot.sdk.CopilotClient; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.CopilotClient; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; import java.util.concurrent.CompletableFuture; class hello { diff --git a/src/test/java/com/github/copilot/sdk/AgentInfoTest.java b/src/test/java/com/github/copilot/AgentInfoTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/AgentInfoTest.java rename to src/test/java/com/github/copilot/AgentInfoTest.java index 0893773e7..3b15f5582 100644 --- a/src/test/java/com/github/copilot/sdk/AgentInfoTest.java +++ b/src/test/java/com/github/copilot/AgentInfoTest.java @@ -2,13 +2,13 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.AgentInfo; +import com.github.copilot.rpc.AgentInfo; /** * Unit tests for {@link AgentInfo} getters, setters, and fluent chaining. diff --git a/src/test/java/com/github/copilot/sdk/AskUserTest.java b/src/test/java/com/github/copilot/AskUserTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/AskUserTest.java rename to src/test/java/com/github/copilot/AskUserTest.java index a2ad13b18..f32a6632d 100644 --- a/src/test/java/com/github/copilot/sdk/AskUserTest.java +++ b/src/test/java/com/github/copilot/AskUserTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -14,11 +14,11 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.UserInputRequest; -import com.github.copilot.sdk.json.UserInputResponse; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.UserInputRequest; +import com.github.copilot.rpc.UserInputResponse; /** * Tests for user input handler (ask_user) functionality. diff --git a/src/test/java/com/github/copilot/sdk/CapiProxy.java b/src/test/java/com/github/copilot/CapiProxy.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/CapiProxy.java rename to src/test/java/com/github/copilot/CapiProxy.java index 09c4e2016..90c2dd0a7 100644 --- a/src/test/java/com/github/copilot/sdk/CapiProxy.java +++ b/src/test/java/com/github/copilot/CapiProxy.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.BufferedReader; import java.io.IOException; diff --git a/src/test/java/com/github/copilot/sdk/CliServerManagerTest.java b/src/test/java/com/github/copilot/CliServerManagerTest.java similarity index 98% rename from src/test/java/com/github/copilot/sdk/CliServerManagerTest.java rename to src/test/java/com/github/copilot/CliServerManagerTest.java index 90e6dcc3c..2df5dafab 100644 --- a/src/test/java/com/github/copilot/sdk/CliServerManagerTest.java +++ b/src/test/java/com/github/copilot/CliServerManagerTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,8 +12,8 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.TelemetryConfig; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.TelemetryConfig; /** * Unit tests for {@link CliServerManager} covering parseCliUrl, diff --git a/src/test/java/com/github/copilot/sdk/ClosedSessionGuardTest.java b/src/test/java/com/github/copilot/ClosedSessionGuardTest.java similarity index 98% rename from src/test/java/com/github/copilot/sdk/ClosedSessionGuardTest.java rename to src/test/java/com/github/copilot/ClosedSessionGuardTest.java index edc503f94..12636fb77 100644 --- a/src/test/java/com/github/copilot/sdk/ClosedSessionGuardTest.java +++ b/src/test/java/com/github/copilot/ClosedSessionGuardTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -13,10 +13,10 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * Tests for closed-session guard functionality in CopilotSession. diff --git a/src/test/java/com/github/copilot/sdk/CommandsTest.java b/src/test/java/com/github/copilot/CommandsTest.java similarity index 93% rename from src/test/java/com/github/copilot/sdk/CommandsTest.java rename to src/test/java/com/github/copilot/CommandsTest.java index 6bddbed28..0da8822a2 100644 --- a/src/test/java/com/github/copilot/sdk/CommandsTest.java +++ b/src/test/java/com/github/copilot/CommandsTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -11,13 +11,13 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.CommandContext; -import com.github.copilot.sdk.json.CommandDefinition; -import com.github.copilot.sdk.json.CommandHandler; -import com.github.copilot.sdk.json.CommandWireDefinition; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.rpc.CommandContext; +import com.github.copilot.rpc.CommandDefinition; +import com.github.copilot.rpc.CommandHandler; +import com.github.copilot.rpc.CommandWireDefinition; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; /** * Unit tests for the Commands feature (CommandDefinition, CommandContext, diff --git a/src/test/java/com/github/copilot/sdk/CompactionTest.java b/src/test/java/com/github/copilot/CompactionTest.java similarity index 93% rename from src/test/java/com/github/copilot/sdk/CompactionTest.java rename to src/test/java/com/github/copilot/CompactionTest.java index 306eeb6c7..100b8e8fe 100644 --- a/src/test/java/com/github/copilot/sdk/CompactionTest.java +++ b/src/test/java/com/github/copilot/CompactionTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -16,14 +16,14 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionCompactionCompleteEvent; -import com.github.copilot.sdk.generated.SessionCompactionStartEvent; -import com.github.copilot.sdk.json.InfiniteSessionConfig; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionCompactionCompleteEvent; +import com.github.copilot.generated.SessionCompactionStartEvent; +import com.github.copilot.rpc.InfiniteSessionConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * Tests for compaction and infinite sessions functionality. diff --git a/src/test/java/com/github/copilot/sdk/ConfigCloneTest.java b/src/test/java/com/github/copilot/ConfigCloneTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/ConfigCloneTest.java rename to src/test/java/com/github/copilot/ConfigCloneTest.java index 09bd3ee38..f26f67ed9 100644 --- a/src/test/java/com/github/copilot/sdk/ConfigCloneTest.java +++ b/src/test/java/com/github/copilot/ConfigCloneTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -15,18 +15,18 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.json.AutoModeSwitchResponse; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.DefaultAgentConfig; -import com.github.copilot.sdk.json.ExitPlanModeResult; -import com.github.copilot.sdk.json.InfiniteSessionConfig; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.ModelInfo; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SystemMessageConfig; -import com.github.copilot.sdk.json.TelemetryConfig; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.rpc.AutoModeSwitchResponse; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.DefaultAgentConfig; +import com.github.copilot.rpc.ExitPlanModeResult; +import com.github.copilot.rpc.InfiniteSessionConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.ModelInfo; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SystemMessageConfig; +import com.github.copilot.rpc.TelemetryConfig; class ConfigCloneTest { diff --git a/src/test/java/com/github/copilot/sdk/CopilotClientTest.java b/src/test/java/com/github/copilot/CopilotClientTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/CopilotClientTest.java rename to src/test/java/com/github/copilot/CopilotClientTest.java index 137ad360b..1d6bfc704 100644 --- a/src/test/java/com/github/copilot/sdk/CopilotClientTest.java +++ b/src/test/java/com/github/copilot/CopilotClientTest.java @@ -2,17 +2,17 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PingResponse; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionLifecycleEvent; -import com.github.copilot.sdk.json.SessionLifecycleEventTypes; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PingResponse; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionLifecycleEvent; +import com.github.copilot.rpc.SessionLifecycleEventTypes; import java.lang.reflect.Field; import java.util.ArrayList; @@ -473,8 +473,8 @@ void testNullOptionsDefaultsToEmpty() { @Test void testListModels_WithCustomHandler_CallsHandler() throws Exception { - var customModels = new ArrayList(); - var model = new com.github.copilot.sdk.json.ModelInfo(); + var customModels = new ArrayList(); + var model = new com.github.copilot.rpc.ModelInfo(); model.setId("my-custom-model"); customModels.add(model); @@ -494,8 +494,8 @@ void testListModels_WithCustomHandler_CallsHandler() throws Exception { @Test void testListModels_WithCustomHandler_CachesResults() throws Exception { - var customModels = new ArrayList(); - var model = new com.github.copilot.sdk.json.ModelInfo(); + var customModels = new ArrayList(); + var model = new com.github.copilot.rpc.ModelInfo(); model.setId("cached-model"); customModels.add(model); @@ -514,8 +514,8 @@ void testListModels_WithCustomHandler_CachesResults() throws Exception { @Test void testListModels_WithCustomHandler_WorksWithoutStart() throws Exception { - var customModels = new ArrayList(); - var model = new com.github.copilot.sdk.json.ModelInfo(); + var customModels = new ArrayList(); + var model = new com.github.copilot.rpc.ModelInfo(); model.setId("no-start-model"); customModels.add(model); diff --git a/src/test/java/com/github/copilot/sdk/CopilotSessionTest.java b/src/test/java/com/github/copilot/CopilotSessionTest.java similarity index 97% rename from src/test/java/com/github/copilot/sdk/CopilotSessionTest.java rename to src/test/java/com/github/copilot/CopilotSessionTest.java index 6a2f75809..4a1f68919 100644 --- a/src/test/java/com/github/copilot/sdk/CopilotSessionTest.java +++ b/src/test/java/com/github/copilot/CopilotSessionTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -23,21 +23,21 @@ import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.AbortEvent; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.generated.SessionStartEvent; -import com.github.copilot.sdk.generated.ToolExecutionStartEvent; -import com.github.copilot.sdk.generated.UserMessageEvent; -import com.github.copilot.sdk.generated.rpc.SessionRpc; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.DefaultAgentConfig; -import com.github.copilot.sdk.json.SystemMessageConfig; -import com.github.copilot.sdk.json.ToolDefinition; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.AbortEvent; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.generated.SessionStartEvent; +import com.github.copilot.generated.ToolExecutionStartEvent; +import com.github.copilot.generated.UserMessageEvent; +import com.github.copilot.generated.rpc.SessionRpc; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.DefaultAgentConfig; +import com.github.copilot.rpc.SystemMessageConfig; +import com.github.copilot.rpc.ToolDefinition; /** * Tests for CopilotSession. @@ -830,7 +830,7 @@ void testSessionListFilterFluentAPI() throws Exception { var session = client .createSession(new SessionConfig().setOnPermissionRequest(PermissionHandler.APPROVE_ALL)).get(); - var filter = new com.github.copilot.sdk.json.SessionListFilter().setCwd("/test/path") + var filter = new com.github.copilot.rpc.SessionListFilter().setCwd("/test/path") .setRepository("owner/repo").setBranch("main").setGitRoot("/test"); assertEquals("/test/path", filter.getCwd()); @@ -865,7 +865,7 @@ void testShouldGetSessionMetadataById() throws Exception { // state asynchronously so it may not be queryable immediately // (mirrors .NET WaitForConditionAsync pattern). var sessionId = session.getSessionId(); - com.github.copilot.sdk.json.SessionMetadata metadata = null; + com.github.copilot.rpc.SessionMetadata metadata = null; long deadline = System.currentTimeMillis() + 10_000; while (System.currentTimeMillis() < deadline) { long remaining = Math.max(1, deadline - System.currentTimeMillis()); diff --git a/src/test/java/com/github/copilot/sdk/DataObjectCoverageTest.java b/src/test/java/com/github/copilot/DataObjectCoverageTest.java similarity index 91% rename from src/test/java/com/github/copilot/sdk/DataObjectCoverageTest.java rename to src/test/java/com/github/copilot/DataObjectCoverageTest.java index 3c83b8286..ece824234 100644 --- a/src/test/java/com/github/copilot/sdk/DataObjectCoverageTest.java +++ b/src/test/java/com/github/copilot/DataObjectCoverageTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -10,22 +10,22 @@ import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.ObjectNode; -import com.github.copilot.sdk.json.CustomAgentConfig; -import com.github.copilot.sdk.json.GetForegroundSessionResponse; -import com.github.copilot.sdk.json.McpHttpServerConfig; -import com.github.copilot.sdk.json.McpStdioServerConfig; -import com.github.copilot.sdk.json.ModelCapabilitiesOverride; -import com.github.copilot.sdk.json.PermissionRequest; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PostToolUseHookInput; -import com.github.copilot.sdk.json.PostToolUseHookOutput; -import com.github.copilot.sdk.json.PreToolUseHookInput; -import com.github.copilot.sdk.json.PreToolUseHookOutput; -import com.github.copilot.sdk.json.SectionOverride; -import com.github.copilot.sdk.json.SetForegroundSessionRequest; -import com.github.copilot.sdk.json.SetForegroundSessionResponse; -import com.github.copilot.sdk.json.ToolBinaryResult; -import com.github.copilot.sdk.json.ToolResultObject; +import com.github.copilot.rpc.CustomAgentConfig; +import com.github.copilot.rpc.GetForegroundSessionResponse; +import com.github.copilot.rpc.McpHttpServerConfig; +import com.github.copilot.rpc.McpStdioServerConfig; +import com.github.copilot.rpc.ModelCapabilitiesOverride; +import com.github.copilot.rpc.PermissionRequest; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PostToolUseHookInput; +import com.github.copilot.rpc.PostToolUseHookOutput; +import com.github.copilot.rpc.PreToolUseHookInput; +import com.github.copilot.rpc.PreToolUseHookOutput; +import com.github.copilot.rpc.SectionOverride; +import com.github.copilot.rpc.SetForegroundSessionRequest; +import com.github.copilot.rpc.SetForegroundSessionResponse; +import com.github.copilot.rpc.ToolBinaryResult; +import com.github.copilot.rpc.ToolResultObject; /** * Unit tests for various data transfer objects and record types that were diff --git a/src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java b/src/test/java/com/github/copilot/DocumentationSamplesTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java rename to src/test/java/com/github/copilot/DocumentationSamplesTest.java index 941fcf592..f7170f4fd 100644 --- a/src/test/java/com/github/copilot/sdk/DocumentationSamplesTest.java +++ b/src/test/java/com/github/copilot/DocumentationSamplesTest.java @@ -1,4 +1,4 @@ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/src/test/java/com/github/copilot/sdk/E2ETestContext.java b/src/test/java/com/github/copilot/E2ETestContext.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/E2ETestContext.java rename to src/test/java/com/github/copilot/E2ETestContext.java index f75eaa689..2bc139d94 100644 --- a/src/test/java/com/github/copilot/sdk/E2ETestContext.java +++ b/src/test/java/com/github/copilot/E2ETestContext.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.BufferedReader; import java.io.IOException; @@ -18,7 +18,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import com.github.copilot.sdk.json.CopilotClientOptions; +import com.github.copilot.rpc.CopilotClientOptions; /** * E2E test context that manages the test environment including the CapiProxy, diff --git a/src/test/java/com/github/copilot/sdk/ElicitationTest.java b/src/test/java/com/github/copilot/ElicitationTest.java similarity index 90% rename from src/test/java/com/github/copilot/sdk/ElicitationTest.java rename to src/test/java/com/github/copilot/ElicitationTest.java index 1f6245127..2fcb03fe5 100644 --- a/src/test/java/com/github/copilot/sdk/ElicitationTest.java +++ b/src/test/java/com/github/copilot/ElicitationTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,18 +12,18 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.ElicitationContext; -import com.github.copilot.sdk.json.ElicitationHandler; -import com.github.copilot.sdk.json.ElicitationParams; -import com.github.copilot.sdk.json.ElicitationResult; -import com.github.copilot.sdk.json.ElicitationResultAction; -import com.github.copilot.sdk.json.ElicitationSchema; -import com.github.copilot.sdk.json.InputOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionCapabilities; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionUiCapabilities; +import com.github.copilot.rpc.ElicitationContext; +import com.github.copilot.rpc.ElicitationHandler; +import com.github.copilot.rpc.ElicitationParams; +import com.github.copilot.rpc.ElicitationResult; +import com.github.copilot.rpc.ElicitationResultAction; +import com.github.copilot.rpc.ElicitationSchema; +import com.github.copilot.rpc.InputOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionCapabilities; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionUiCapabilities; /** * Unit tests for the Elicitation feature and Session Capabilities. diff --git a/src/test/java/com/github/copilot/sdk/ErrorHandlingTest.java b/src/test/java/com/github/copilot/ErrorHandlingTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/ErrorHandlingTest.java rename to src/test/java/com/github/copilot/ErrorHandlingTest.java index 8c606930a..32579ffc4 100644 --- a/src/test/java/com/github/copilot/sdk/ErrorHandlingTest.java +++ b/src/test/java/com/github/copilot/ErrorHandlingTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -16,13 +16,13 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionErrorEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionErrorEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; import java.util.Map; @@ -84,7 +84,7 @@ void testHandlesToolCallingErrors_toolErrorDoesNotCrashSession() throws Exceptio assertNotNull(response, "Should receive a response even when tool fails"); // Should have received session.idle (indicating successful completion) - assertTrue(allEvents.stream().anyMatch(e -> e instanceof com.github.copilot.sdk.generated.SessionIdleEvent), + assertTrue(allEvents.stream().anyMatch(e -> e instanceof com.github.copilot.generated.SessionIdleEvent), "Session should reach idle state after handling tool error"); session.close(); diff --git a/src/test/java/com/github/copilot/sdk/EventFidelityTest.java b/src/test/java/com/github/copilot/EventFidelityTest.java similarity index 91% rename from src/test/java/com/github/copilot/sdk/EventFidelityTest.java rename to src/test/java/com/github/copilot/EventFidelityTest.java index 60b8e1327..cca63b4d6 100644 --- a/src/test/java/com/github/copilot/sdk/EventFidelityTest.java +++ b/src/test/java/com/github/copilot/EventFidelityTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -14,12 +14,12 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantUsageEvent; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.SessionUsageInfoEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.AssistantUsageEvent; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.SessionUsageInfoEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * E2E tests for event fidelity — verifying the shape, ordering, and presence of diff --git a/src/test/java/com/github/copilot/sdk/ExecutorWiringTest.java b/src/test/java/com/github/copilot/ExecutorWiringTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/ExecutorWiringTest.java rename to src/test/java/com/github/copilot/ExecutorWiringTest.java index a5eb3a62d..78764db0f 100644 --- a/src/test/java/com/github/copilot/sdk/ExecutorWiringTest.java +++ b/src/test/java/com/github/copilot/ExecutorWiringTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -21,17 +21,17 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.PreToolUseHookOutput; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionHooks; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.UserInputResponse; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.PreToolUseHookOutput; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionHooks; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.UserInputResponse; /** * Tests verifying that when an {@link Executor} is provided via diff --git a/src/test/java/com/github/copilot/sdk/ForwardCompatibilityTest.java b/src/test/java/com/github/copilot/ForwardCompatibilityTest.java similarity index 94% rename from src/test/java/com/github/copilot/sdk/ForwardCompatibilityTest.java rename to src/test/java/com/github/copilot/ForwardCompatibilityTest.java index 06e2af5cf..40166307e 100644 --- a/src/test/java/com/github/copilot/sdk/ForwardCompatibilityTest.java +++ b/src/test/java/com/github/copilot/ForwardCompatibilityTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -10,9 +10,9 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.UnknownSessionEvent; -import com.github.copilot.sdk.generated.UserMessageEvent; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.UnknownSessionEvent; +import com.github.copilot.generated.UserMessageEvent; /** * Unit tests for forward-compatible handling of unknown session event types. diff --git a/src/test/java/com/github/copilot/sdk/HooksTest.java b/src/test/java/com/github/copilot/HooksTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/HooksTest.java rename to src/test/java/com/github/copilot/HooksTest.java index 1278d082b..4608848f1 100644 --- a/src/test/java/com/github/copilot/sdk/HooksTest.java +++ b/src/test/java/com/github/copilot/HooksTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -18,13 +18,13 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PostToolUseHookInput; -import com.github.copilot.sdk.json.PreToolUseHookInput; -import com.github.copilot.sdk.json.PreToolUseHookOutput; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionHooks; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PostToolUseHookInput; +import com.github.copilot.rpc.PreToolUseHookInput; +import com.github.copilot.rpc.PreToolUseHookOutput; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionHooks; /** * Tests for hooks functionality (pre-tool-use and post-tool-use hooks). diff --git a/src/test/java/com/github/copilot/sdk/JsonIncludeNonNullTest.java b/src/test/java/com/github/copilot/JsonIncludeNonNullTest.java similarity index 89% rename from src/test/java/com/github/copilot/sdk/JsonIncludeNonNullTest.java rename to src/test/java/com/github/copilot/JsonIncludeNonNullTest.java index 7465507f5..7a9554b7b 100644 --- a/src/test/java/com/github/copilot/sdk/JsonIncludeNonNullTest.java +++ b/src/test/java/com/github/copilot/JsonIncludeNonNullTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,20 +12,20 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.CustomAgentConfig; -import com.github.copilot.sdk.json.InfiniteSessionConfig; -import com.github.copilot.sdk.json.InputOptions; -import com.github.copilot.sdk.json.ModelCapabilitiesOverride; -import com.github.copilot.sdk.json.ProviderConfig; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionUiCapabilities; -import com.github.copilot.sdk.json.TelemetryConfig; -import com.github.copilot.sdk.json.UserInputRequest; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.CustomAgentConfig; +import com.github.copilot.rpc.InfiniteSessionConfig; +import com.github.copilot.rpc.InputOptions; +import com.github.copilot.rpc.ModelCapabilitiesOverride; +import com.github.copilot.rpc.ProviderConfig; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionUiCapabilities; +import com.github.copilot.rpc.TelemetryConfig; +import com.github.copilot.rpc.UserInputRequest; /** - * Verifies that public DTO classes in the {@code com.github.copilot.sdk.json} + * Verifies that public DTO classes in the {@code com.github.copilot.rpc} * package are annotated with {@code @JsonInclude(JsonInclude.Include.NON_NULL)} * so that null-valued fields are omitted during JSON serialization. */ diff --git a/src/test/java/com/github/copilot/sdk/JsonRpcClientTest.java b/src/test/java/com/github/copilot/JsonRpcClientTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/JsonRpcClientTest.java rename to src/test/java/com/github/copilot/JsonRpcClientTest.java index 4fb43f4b6..3491ac8ab 100644 --- a/src/test/java/com/github/copilot/sdk/JsonRpcClientTest.java +++ b/src/test/java/com/github/copilot/JsonRpcClientTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; diff --git a/src/test/java/com/github/copilot/sdk/LifecycleEventManagerTest.java b/src/test/java/com/github/copilot/LifecycleEventManagerTest.java similarity index 98% rename from src/test/java/com/github/copilot/sdk/LifecycleEventManagerTest.java rename to src/test/java/com/github/copilot/LifecycleEventManagerTest.java index 1500f2794..6ec6fb5a3 100644 --- a/src/test/java/com/github/copilot/sdk/LifecycleEventManagerTest.java +++ b/src/test/java/com/github/copilot/LifecycleEventManagerTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -11,7 +11,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.SessionLifecycleEvent; +import com.github.copilot.rpc.SessionLifecycleEvent; /** * Unit tests for {@link LifecycleEventManager} covering subscribe, unsubscribe, diff --git a/src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java b/src/test/java/com/github/copilot/McpAndAgentsTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java rename to src/test/java/com/github/copilot/McpAndAgentsTest.java index 3b8f8a00b..f39e56eab 100644 --- a/src/test/java/com/github/copilot/sdk/McpAndAgentsTest.java +++ b/src/test/java/com/github/copilot/McpAndAgentsTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -17,17 +17,17 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.rpc.McpServerStatus; -import com.github.copilot.sdk.json.CustomAgentConfig; -import com.github.copilot.sdk.json.DefaultAgentConfig; -import com.github.copilot.sdk.json.McpServerConfig; -import com.github.copilot.sdk.json.McpStdioServerConfig; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.rpc.McpServerStatus; +import com.github.copilot.rpc.CustomAgentConfig; +import com.github.copilot.rpc.DefaultAgentConfig; +import com.github.copilot.rpc.McpServerConfig; +import com.github.copilot.rpc.McpStdioServerConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; /** * Tests for MCP Servers and Custom Agents functionality. diff --git a/src/test/java/com/github/copilot/sdk/MessageAttachmentTest.java b/src/test/java/com/github/copilot/MessageAttachmentTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/MessageAttachmentTest.java rename to src/test/java/com/github/copilot/MessageAttachmentTest.java index 3150cecc2..27e9f56cc 100644 --- a/src/test/java/com/github/copilot/sdk/MessageAttachmentTest.java +++ b/src/test/java/com/github/copilot/MessageAttachmentTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,11 +12,11 @@ import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.json.Attachment; -import com.github.copilot.sdk.json.BlobAttachment; -import com.github.copilot.sdk.json.MessageAttachment; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.SendMessageRequest; +import com.github.copilot.rpc.Attachment; +import com.github.copilot.rpc.BlobAttachment; +import com.github.copilot.rpc.MessageAttachment; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.SendMessageRequest; /** * Tests for the {@link MessageAttachment} sealed interface and type-safe diff --git a/src/test/java/com/github/copilot/sdk/MetadataApiTest.java b/src/test/java/com/github/copilot/MetadataApiTest.java similarity index 98% rename from src/test/java/com/github/copilot/sdk/MetadataApiTest.java rename to src/test/java/com/github/copilot/MetadataApiTest.java index 3a9120a52..b2c775eb1 100644 --- a/src/test/java/com/github/copilot/sdk/MetadataApiTest.java +++ b/src/test/java/com/github/copilot/MetadataApiTest.java @@ -2,12 +2,12 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.ToolExecutionProgressEvent; -import com.github.copilot.sdk.json.*; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.ToolExecutionProgressEvent; +import com.github.copilot.rpc.*; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; diff --git a/src/test/java/com/github/copilot/sdk/ModeHandlersTest.java b/src/test/java/com/github/copilot/ModeHandlersTest.java similarity index 89% rename from src/test/java/com/github/copilot/sdk/ModeHandlersTest.java rename to src/test/java/com/github/copilot/ModeHandlersTest.java index 965d431e0..62202c903 100644 --- a/src/test/java/com/github/copilot/sdk/ModeHandlersTest.java +++ b/src/test/java/com/github/copilot/ModeHandlersTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -15,17 +15,17 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.ExitPlanModeAction; -import com.github.copilot.sdk.generated.ExitPlanModeCompletedEvent; -import com.github.copilot.sdk.generated.ExitPlanModeRequestedEvent; -import com.github.copilot.sdk.json.AutoModeSwitchRequest; -import com.github.copilot.sdk.json.AutoModeSwitchResponse; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.ExitPlanModeRequest; -import com.github.copilot.sdk.json.ExitPlanModeResult; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.ExitPlanModeAction; +import com.github.copilot.generated.ExitPlanModeCompletedEvent; +import com.github.copilot.generated.ExitPlanModeRequestedEvent; +import com.github.copilot.rpc.AutoModeSwitchRequest; +import com.github.copilot.rpc.AutoModeSwitchResponse; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.ExitPlanModeRequest; +import com.github.copilot.rpc.ExitPlanModeResult; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * E2E tests for exit-plan-mode and auto-mode-switch handler APIs. diff --git a/src/test/java/com/github/copilot/sdk/ModelInfoTest.java b/src/test/java/com/github/copilot/ModelInfoTest.java similarity index 91% rename from src/test/java/com/github/copilot/sdk/ModelInfoTest.java rename to src/test/java/com/github/copilot/ModelInfoTest.java index f36d0c4bd..b4936d1cc 100644 --- a/src/test/java/com/github/copilot/sdk/ModelInfoTest.java +++ b/src/test/java/com/github/copilot/ModelInfoTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -10,9 +10,9 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.ModelInfo; -import com.github.copilot.sdk.json.ModelSupports; -import com.github.copilot.sdk.json.SessionMetadata; +import com.github.copilot.rpc.ModelInfo; +import com.github.copilot.rpc.ModelSupports; +import com.github.copilot.rpc.SessionMetadata; /** * Unit tests for {@link ModelInfo}, {@link ModelSupports}, and diff --git a/src/test/java/com/github/copilot/sdk/ModuleDescriptorTest.java b/src/test/java/com/github/copilot/ModuleDescriptorTest.java similarity index 84% rename from src/test/java/com/github/copilot/sdk/ModuleDescriptorTest.java rename to src/test/java/com/github/copilot/ModuleDescriptorTest.java index 36be13734..16a13fd69 100644 --- a/src/test/java/com/github/copilot/sdk/ModuleDescriptorTest.java +++ b/src/test/java/com/github/copilot/ModuleDescriptorTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -16,12 +16,12 @@ class ModuleDescriptorTest { void sdkHasExplicitModuleDescriptor() { Module module = CopilotClient.class.getModule(); assertTrue(module.isNamed()); - assertEquals("com.github.copilot.sdk.java", module.getName()); + assertEquals("com.github.copilot.java", module.getName()); ModuleDescriptor descriptor = module.getDescriptor(); - assertTrue(descriptor.exports().stream().anyMatch(export -> export.source().equals("com.github.copilot.sdk"))); + assertTrue(descriptor.exports().stream().anyMatch(export -> export.source().equals("com.github.copilot"))); assertTrue(descriptor.exports().stream() - .anyMatch(export -> export.source().equals("com.github.copilot.sdk.json"))); + .anyMatch(export -> export.source().equals("com.github.copilot.rpc"))); assertTrue(descriptor.requires().stream() .anyMatch(require -> require.name().equals("com.fasterxml.jackson.databind"))); } diff --git a/src/test/java/com/github/copilot/sdk/OptionalApiAndJacksonTest.java b/src/test/java/com/github/copilot/OptionalApiAndJacksonTest.java similarity index 97% rename from src/test/java/com/github/copilot/sdk/OptionalApiAndJacksonTest.java rename to src/test/java/com/github/copilot/OptionalApiAndJacksonTest.java index 2a9770e2e..1db593dbe 100644 --- a/src/test/java/com/github/copilot/sdk/OptionalApiAndJacksonTest.java +++ b/src/test/java/com/github/copilot/OptionalApiAndJacksonTest.java @@ -2,22 +2,22 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.CustomAgentConfig; -import com.github.copilot.sdk.json.InfiniteSessionConfig; -import com.github.copilot.sdk.json.InputOptions; -import com.github.copilot.sdk.json.ModelCapabilitiesOverride; -import com.github.copilot.sdk.json.ProviderConfig; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionUiCapabilities; -import com.github.copilot.sdk.json.TelemetryConfig; -import com.github.copilot.sdk.json.UserInputRequest; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.CustomAgentConfig; +import com.github.copilot.rpc.InfiniteSessionConfig; +import com.github.copilot.rpc.InputOptions; +import com.github.copilot.rpc.ModelCapabilitiesOverride; +import com.github.copilot.rpc.ProviderConfig; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionUiCapabilities; +import com.github.copilot.rpc.TelemetryConfig; +import com.github.copilot.rpc.UserInputRequest; import org.junit.jupiter.api.Test; /** diff --git a/src/test/java/com/github/copilot/sdk/PerSessionAuthTest.java b/src/test/java/com/github/copilot/PerSessionAuthTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/PerSessionAuthTest.java rename to src/test/java/com/github/copilot/PerSessionAuthTest.java index dd5de81b8..000d36e4b 100644 --- a/src/test/java/com/github/copilot/sdk/PerSessionAuthTest.java +++ b/src/test/java/com/github/copilot/PerSessionAuthTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -13,10 +13,10 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.rpc.SessionAuthGetStatusResult; -import com.github.copilot.sdk.json.CopilotClientOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.rpc.SessionAuthGetStatusResult; +import com.github.copilot.rpc.CopilotClientOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * Tests for per-session GitHub authentication. diff --git a/src/test/java/com/github/copilot/sdk/PermissionRequestResultKindTest.java b/src/test/java/com/github/copilot/PermissionRequestResultKindTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/PermissionRequestResultKindTest.java rename to src/test/java/com/github/copilot/PermissionRequestResultKindTest.java index ab81966dc..0bd08f47d 100644 --- a/src/test/java/com/github/copilot/sdk/PermissionRequestResultKindTest.java +++ b/src/test/java/com/github/copilot/PermissionRequestResultKindTest.java @@ -2,15 +2,15 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; /** * Unit tests for {@link PermissionRequestResultKind}. diff --git a/src/test/java/com/github/copilot/sdk/PermissionsTest.java b/src/test/java/com/github/copilot/PermissionsTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/PermissionsTest.java rename to src/test/java/com/github/copilot/PermissionsTest.java index 6cc8eaa30..6f10f353c 100644 --- a/src/test/java/com/github/copilot/sdk/PermissionsTest.java +++ b/src/test/java/com/github/copilot/PermissionsTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -17,15 +17,15 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.ToolExecutionCompleteEvent; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PermissionRequest; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.MessageOptions; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.ToolExecutionCompleteEvent; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PermissionRequest; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.MessageOptions; /** * Tests for permission callback functionality. @@ -417,7 +417,7 @@ void testShouldShortCircuitPermissionHandlerWhenSetApproveAllEnabled() throws Ex // Set approve-all so the runtime short-circuits var setResult = session.getRpc().permissions - .setApproveAll(new com.github.copilot.sdk.generated.rpc.SessionPermissionsSetApproveAllParams( + .setApproveAll(new com.github.copilot.generated.rpc.SessionPermissionsSetApproveAllParams( session.getSessionId(), true, null)) .get(10, TimeUnit.SECONDS); assertTrue(setResult.success(), "setApproveAll should succeed"); diff --git a/src/test/java/com/github/copilot/sdk/PreMcpToolCallHookTest.java b/src/test/java/com/github/copilot/PreMcpToolCallHookTest.java similarity index 93% rename from src/test/java/com/github/copilot/sdk/PreMcpToolCallHookTest.java rename to src/test/java/com/github/copilot/PreMcpToolCallHookTest.java index 37db10c17..5da0d2002 100644 --- a/src/test/java/com/github/copilot/sdk/PreMcpToolCallHookTest.java +++ b/src/test/java/com/github/copilot/PreMcpToolCallHookTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -19,15 +19,15 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.McpServerConfig; -import com.github.copilot.sdk.json.McpStdioServerConfig; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PreMcpToolCallHookInput; -import com.github.copilot.sdk.json.PreMcpToolCallHookOutput; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionHooks; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.McpServerConfig; +import com.github.copilot.rpc.McpStdioServerConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PreMcpToolCallHookInput; +import com.github.copilot.rpc.PreMcpToolCallHookOutput; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionHooks; /** * Tests for preMcpToolCall hook functionality. diff --git a/src/test/java/com/github/copilot/sdk/ProviderConfigTest.java b/src/test/java/com/github/copilot/ProviderConfigTest.java similarity index 98% rename from src/test/java/com/github/copilot/sdk/ProviderConfigTest.java rename to src/test/java/com/github/copilot/ProviderConfigTest.java index 6bbb3ae28..5c40230ec 100644 --- a/src/test/java/com/github/copilot/sdk/ProviderConfigTest.java +++ b/src/test/java/com/github/copilot/ProviderConfigTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -14,10 +14,10 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.json.AzureOptions; -import com.github.copilot.sdk.json.ProviderConfig; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.rpc.AzureOptions; +import com.github.copilot.rpc.ProviderConfig; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; /** * Tests for {@link ProviderConfig} and {@link AzureOptions} BYOK (Bring Your diff --git a/src/test/java/com/github/copilot/sdk/RemoteSessionTest.java b/src/test/java/com/github/copilot/RemoteSessionTest.java similarity index 95% rename from src/test/java/com/github/copilot/sdk/RemoteSessionTest.java rename to src/test/java/com/github/copilot/RemoteSessionTest.java index 6e093db6c..67c5f5bb6 100644 --- a/src/test/java/com/github/copilot/sdk/RemoteSessionTest.java +++ b/src/test/java/com/github/copilot/RemoteSessionTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,10 +12,10 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.json.CreateSessionRequest; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.ResumeSessionRequest; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.rpc.CreateSessionRequest; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.ResumeSessionRequest; +import com.github.copilot.rpc.SessionConfig; /** * Tests for the {@code remoteSession} feature across all session config types. @@ -368,12 +368,12 @@ void handoffEvent_withRemoteSourceType_containsRemoteSessionId() throws Exceptio } """; - var event = (com.github.copilot.sdk.generated.SessionHandoffEvent) MAPPER.readValue(json, - com.github.copilot.sdk.generated.SessionEvent.class); + var event = (com.github.copilot.generated.SessionHandoffEvent) MAPPER.readValue(json, + com.github.copilot.generated.SessionEvent.class); assertNotNull(event); var data = event.getData(); assertEquals("remote-sess-42", data.remoteSessionId()); - assertEquals(com.github.copilot.sdk.generated.HandoffSourceType.REMOTE, data.sourceType()); + assertEquals(com.github.copilot.generated.HandoffSourceType.REMOTE, data.sourceType()); assertEquals("Session exported for remote execution", data.summary()); assertEquals("test-org", data.repository().owner()); assertEquals("test-repo", data.repository().name()); @@ -391,8 +391,8 @@ void handoffEvent_withoutRemoteSessionId_fieldIsNull() throws Exception { } """; - var event = (com.github.copilot.sdk.generated.SessionHandoffEvent) MAPPER.readValue(json, - com.github.copilot.sdk.generated.SessionEvent.class); + var event = (com.github.copilot.generated.SessionHandoffEvent) MAPPER.readValue(json, + com.github.copilot.generated.SessionEvent.class); assertNotNull(event); assertNull(event.getData().remoteSessionId()); } diff --git a/src/test/java/com/github/copilot/sdk/RpcHandlerDispatcherTest.java b/src/test/java/com/github/copilot/RpcHandlerDispatcherTest.java similarity index 97% rename from src/test/java/com/github/copilot/sdk/RpcHandlerDispatcherTest.java rename to src/test/java/com/github/copilot/RpcHandlerDispatcherTest.java index 7453a7b26..76c2d41b2 100644 --- a/src/test/java/com/github/copilot/sdk/RpcHandlerDispatcherTest.java +++ b/src/test/java/com/github/copilot/RpcHandlerDispatcherTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -24,14 +24,14 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.PreToolUseHookOutput; -import com.github.copilot.sdk.json.SessionHooks; -import com.github.copilot.sdk.json.SessionLifecycleEvent; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.ToolResultObject; -import com.github.copilot.sdk.json.UserInputResponse; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.PreToolUseHookOutput; +import com.github.copilot.rpc.SessionHooks; +import com.github.copilot.rpc.SessionLifecycleEvent; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.ToolResultObject; +import com.github.copilot.rpc.UserInputResponse; /** * Unit tests for {@link RpcHandlerDispatcher} focusing on coverage gaps diff --git a/src/test/java/com/github/copilot/sdk/RpcWrappersTest.java b/src/test/java/com/github/copilot/RpcWrappersTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/RpcWrappersTest.java rename to src/test/java/com/github/copilot/RpcWrappersTest.java index e2356d985..7b01e1d38 100644 --- a/src/test/java/com/github/copilot/sdk/RpcWrappersTest.java +++ b/src/test/java/com/github/copilot/RpcWrappersTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -15,13 +15,13 @@ import org.junit.jupiter.api.Test; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.generated.rpc.McpConfigAddParams; -import com.github.copilot.sdk.generated.rpc.McpDiscoverParams; -import com.github.copilot.sdk.generated.rpc.RpcCaller; -import com.github.copilot.sdk.generated.rpc.ServerRpc; -import com.github.copilot.sdk.generated.rpc.SessionAgentSelectParams; -import com.github.copilot.sdk.generated.rpc.SessionModelSwitchToParams; -import com.github.copilot.sdk.generated.rpc.SessionRpc; +import com.github.copilot.generated.rpc.McpConfigAddParams; +import com.github.copilot.generated.rpc.McpDiscoverParams; +import com.github.copilot.generated.rpc.RpcCaller; +import com.github.copilot.generated.rpc.ServerRpc; +import com.github.copilot.generated.rpc.SessionAgentSelectParams; +import com.github.copilot.generated.rpc.SessionModelSwitchToParams; +import com.github.copilot.generated.rpc.SessionRpc; /** * Unit tests for the generated RPC wrapper classes ({@link ServerRpc} and @@ -90,7 +90,7 @@ void serverRpc_ping_passes_params_directly() { var stub = new StubCaller(); var server = new ServerRpc(stub); - var params = new com.github.copilot.sdk.generated.rpc.PingParams(null); + var params = new com.github.copilot.generated.rpc.PingParams(null); server.ping(params); assertEquals(1, stub.calls.size()); diff --git a/src/test/java/com/github/copilot/sdk/SchedulerShutdownRaceTest.java b/src/test/java/com/github/copilot/SchedulerShutdownRaceTest.java similarity index 97% rename from src/test/java/com/github/copilot/sdk/SchedulerShutdownRaceTest.java rename to src/test/java/com/github/copilot/SchedulerShutdownRaceTest.java index e60e4aa34..48a58bbc9 100644 --- a/src/test/java/com/github/copilot/sdk/SchedulerShutdownRaceTest.java +++ b/src/test/java/com/github/copilot/SchedulerShutdownRaceTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.ArgumentMatchers.*; @@ -16,7 +16,7 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.MessageOptions; +import com.github.copilot.rpc.MessageOptions; /** * Regression coverage for the race between {@code sendAndWait()} and diff --git a/src/test/java/com/github/copilot/sdk/SessionConfigE2ETest.java b/src/test/java/com/github/copilot/SessionConfigE2ETest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/SessionConfigE2ETest.java rename to src/test/java/com/github/copilot/SessionConfigE2ETest.java index 4c2691d86..dbae0fe9f 100644 --- a/src/test/java/com/github/copilot/sdk/SessionConfigE2ETest.java +++ b/src/test/java/com/github/copilot/SessionConfigE2ETest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -16,11 +16,11 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ProviderConfig; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ProviderConfig; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; /** * E2E tests for session configuration features. diff --git a/src/test/java/com/github/copilot/sdk/SessionEventDeserializationTest.java b/src/test/java/com/github/copilot/SessionEventDeserializationTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/SessionEventDeserializationTest.java rename to src/test/java/com/github/copilot/SessionEventDeserializationTest.java index 0abec58f9..06c3ef02a 100644 --- a/src/test/java/com/github/copilot/sdk/SessionEventDeserializationTest.java +++ b/src/test/java/com/github/copilot/SessionEventDeserializationTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,7 +12,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.generated.*; +import com.github.copilot.generated.*; /** * Tests for session event deserialization. @@ -841,7 +841,7 @@ void testParseUnknownEventType() throws Exception { SessionEvent event = parseJson(json); assertNotNull(event, "Unknown event types should return an UnknownSessionEvent"); - assertInstanceOf(com.github.copilot.sdk.generated.UnknownSessionEvent.class, event, + assertInstanceOf(com.github.copilot.generated.UnknownSessionEvent.class, event, "Unknown event types should return UnknownSessionEvent for forward compatibility"); assertEquals("unknown.event.type", event.getType(), "UnknownSessionEvent should preserve the original type from JSON"); @@ -859,7 +859,7 @@ void testParseMissingTypeField() throws Exception { SessionEvent event = parseJson(json); assertNotNull(event, "Events without type field should return UnknownSessionEvent"); - assertInstanceOf(com.github.copilot.sdk.generated.UnknownSessionEvent.class, event); + assertInstanceOf(com.github.copilot.generated.UnknownSessionEvent.class, event); } @Test @@ -887,7 +887,7 @@ void testParseEmptyJson() throws Exception { SessionEvent event = parseJson(json); assertNotNull(event, "Empty JSON should return UnknownSessionEvent"); - assertInstanceOf(com.github.copilot.sdk.generated.UnknownSessionEvent.class, event); + assertInstanceOf(com.github.copilot.generated.UnknownSessionEvent.class, event); } // ========================================================================= diff --git a/src/test/java/com/github/copilot/sdk/SessionEventHandlingTest.java b/src/test/java/com/github/copilot/SessionEventHandlingTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/SessionEventHandlingTest.java rename to src/test/java/com/github/copilot/SessionEventHandlingTest.java index 94f2c3dc7..e3a415b8b 100644 --- a/src/test/java/com/github/copilot/sdk/SessionEventHandlingTest.java +++ b/src/test/java/com/github/copilot/SessionEventHandlingTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -21,10 +21,10 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.generated.SessionStartEvent; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.generated.SessionStartEvent; /** * Unit tests for session event handling API. diff --git a/src/test/java/com/github/copilot/sdk/SessionEventsE2ETest.java b/src/test/java/com/github/copilot/SessionEventsE2ETest.java similarity index 94% rename from src/test/java/com/github/copilot/sdk/SessionEventsE2ETest.java rename to src/test/java/com/github/copilot/SessionEventsE2ETest.java index d13c84247..161839a53 100644 --- a/src/test/java/com/github/copilot/sdk/SessionEventsE2ETest.java +++ b/src/test/java/com/github/copilot/SessionEventsE2ETest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -16,18 +16,18 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.generated.AssistantTurnEndEvent; -import com.github.copilot.sdk.generated.AssistantTurnStartEvent; -import com.github.copilot.sdk.generated.AssistantUsageEvent; -import com.github.copilot.sdk.generated.SessionIdleEvent; -import com.github.copilot.sdk.generated.ToolExecutionCompleteEvent; -import com.github.copilot.sdk.generated.ToolExecutionStartEvent; -import com.github.copilot.sdk.generated.UserMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.generated.AssistantTurnEndEvent; +import com.github.copilot.generated.AssistantTurnStartEvent; +import com.github.copilot.generated.AssistantUsageEvent; +import com.github.copilot.generated.SessionIdleEvent; +import com.github.copilot.generated.ToolExecutionCompleteEvent; +import com.github.copilot.generated.ToolExecutionStartEvent; +import com.github.copilot.generated.UserMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * E2E tests for session events to verify event lifecycle. diff --git a/src/test/java/com/github/copilot/sdk/SessionHandlerTest.java b/src/test/java/com/github/copilot/SessionHandlerTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/SessionHandlerTest.java rename to src/test/java/com/github/copilot/SessionHandlerTest.java index 5a8dc3fcb..1b672e6e2 100644 --- a/src/test/java/com/github/copilot/sdk/SessionHandlerTest.java +++ b/src/test/java/com/github/copilot/SessionHandlerTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -16,15 +16,15 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.SessionEndHookOutput; -import com.github.copilot.sdk.json.SessionHooks; -import com.github.copilot.sdk.json.SessionStartHookOutput; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.UserInputRequest; -import com.github.copilot.sdk.json.UserInputResponse; -import com.github.copilot.sdk.json.UserPromptSubmittedHookOutput; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.SessionEndHookOutput; +import com.github.copilot.rpc.SessionHooks; +import com.github.copilot.rpc.SessionStartHookOutput; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.UserInputRequest; +import com.github.copilot.rpc.UserInputResponse; +import com.github.copilot.rpc.UserPromptSubmittedHookOutput; /** * Unit tests for CopilotSession internal handler methods. diff --git a/src/test/java/com/github/copilot/sdk/SessionRequestBuilderTest.java b/src/test/java/com/github/copilot/SessionRequestBuilderTest.java similarity index 93% rename from src/test/java/com/github/copilot/sdk/SessionRequestBuilderTest.java rename to src/test/java/com/github/copilot/SessionRequestBuilderTest.java index 5c8f00838..49a4c9c30 100644 --- a/src/test/java/com/github/copilot/sdk/SessionRequestBuilderTest.java +++ b/src/test/java/com/github/copilot/SessionRequestBuilderTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -12,21 +12,21 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.AutoModeSwitchResponse; -import com.github.copilot.sdk.json.CloudSessionOptions; -import com.github.copilot.sdk.json.CloudSessionRepository; -import com.github.copilot.sdk.json.CreateSessionRequest; -import com.github.copilot.sdk.json.DefaultAgentConfig; -import com.github.copilot.sdk.json.ElicitationHandler; -import com.github.copilot.sdk.json.ElicitationResult; -import com.github.copilot.sdk.json.ElicitationResultAction; -import com.github.copilot.sdk.json.ExitPlanModeResult; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.ResumeSessionRequest; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.SessionHooks; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.UserInputResponse; +import com.github.copilot.rpc.AutoModeSwitchResponse; +import com.github.copilot.rpc.CloudSessionOptions; +import com.github.copilot.rpc.CloudSessionRepository; +import com.github.copilot.rpc.CreateSessionRequest; +import com.github.copilot.rpc.DefaultAgentConfig; +import com.github.copilot.rpc.ElicitationHandler; +import com.github.copilot.rpc.ElicitationResult; +import com.github.copilot.rpc.ElicitationResultAction; +import com.github.copilot.rpc.ExitPlanModeResult; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.ResumeSessionRequest; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.SessionHooks; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.UserInputResponse; /** * Unit tests for {@link SessionRequestBuilder} branch coverage. @@ -245,7 +245,7 @@ void testConfigureResumeSessionWithUserInputHandler() throws Exception { // Handler was registered — verify by calling handleUserInputRequest // (package-private) - var response = session.handleUserInputRequest(new com.github.copilot.sdk.json.UserInputRequest()).get(); + var response = session.handleUserInputRequest(new com.github.copilot.rpc.UserInputRequest()).get(); assertNotNull(response); } @@ -301,8 +301,8 @@ void extractTransformCallbacks_nullSystemMessage_returnsNull() { @Test void extractTransformCallbacks_appendMode_returnsOriginalConfig() { - var config = new com.github.copilot.sdk.json.SystemMessageConfig() - .setMode(com.github.copilot.sdk.SystemMessageMode.APPEND).setContent("extra content"); + var config = new com.github.copilot.rpc.SystemMessageConfig() + .setMode(com.github.copilot.SystemMessageMode.APPEND).setContent("extra content"); ExtractedTransforms result = SessionRequestBuilder.extractTransformCallbacks(config); assertSame(config, result.wireSystemMessage()); assertNull(result.transformCallbacks()); @@ -310,10 +310,10 @@ void extractTransformCallbacks_appendMode_returnsOriginalConfig() { @Test void extractTransformCallbacks_customizeModeNoTransforms_returnsOriginalConfig() { - var sections = Map.of("tone", new com.github.copilot.sdk.json.SectionOverride() - .setAction(com.github.copilot.sdk.json.SectionOverrideAction.REMOVE)); - var config = new com.github.copilot.sdk.json.SystemMessageConfig() - .setMode(com.github.copilot.sdk.SystemMessageMode.CUSTOMIZE).setSections(sections); + var sections = Map.of("tone", new com.github.copilot.rpc.SectionOverride() + .setAction(com.github.copilot.rpc.SectionOverrideAction.REMOVE)); + var config = new com.github.copilot.rpc.SystemMessageConfig() + .setMode(com.github.copilot.SystemMessageMode.CUSTOMIZE).setSections(sections); ExtractedTransforms result = SessionRequestBuilder.extractTransformCallbacks(config); assertSame(config, result.wireSystemMessage()); assertNull(result.transformCallbacks()); @@ -323,9 +323,9 @@ void extractTransformCallbacks_customizeModeNoTransforms_returnsOriginalConfig() void extractTransformCallbacks_customizeModeWithTransform_extractsCallbacks() { var transformFn = (java.util.function.Function>) content -> CompletableFuture .completedFuture(content + " modified"); - var sections = Map.of("identity", new com.github.copilot.sdk.json.SectionOverride().setTransform(transformFn)); - var config = new com.github.copilot.sdk.json.SystemMessageConfig() - .setMode(com.github.copilot.sdk.SystemMessageMode.CUSTOMIZE).setSections(sections); + var sections = Map.of("identity", new com.github.copilot.rpc.SectionOverride().setTransform(transformFn)); + var config = new com.github.copilot.rpc.SystemMessageConfig() + .setMode(com.github.copilot.SystemMessageMode.CUSTOMIZE).setSections(sections); ExtractedTransforms result = SessionRequestBuilder.extractTransformCallbacks(config); @@ -338,7 +338,7 @@ void extractTransformCallbacks_customizeModeWithTransform_extractsCallbacks() { assertNotNull(result.wireSystemMessage().getSections()); var wireSection = result.wireSystemMessage().getSections().get("identity"); assertNotNull(wireSection); - assertEquals(com.github.copilot.sdk.json.SectionOverrideAction.TRANSFORM, wireSection.getAction()); + assertEquals(com.github.copilot.rpc.SectionOverrideAction.TRANSFORM, wireSection.getAction()); assertNull(wireSection.getTransform()); } @@ -366,7 +366,7 @@ void configureSessionWithNullConfig_returnsEarly() { void configureSessionWithCommands_registersCommands() { CopilotSession session = new CopilotSession("session-1", null); - var cmd = new com.github.copilot.sdk.json.CommandDefinition().setName("deploy") + var cmd = new com.github.copilot.rpc.CommandDefinition().setName("deploy") .setHandler(ctx -> CompletableFuture.completedFuture(null)); var config = new SessionConfig().setCommands(List.of(cmd)); @@ -402,7 +402,7 @@ void configureSessionWithOnEvent_registersEventHandler() { void configureResumedSessionWithCommands_registersCommands() { CopilotSession session = new CopilotSession("session-1", null); - var cmd = new com.github.copilot.sdk.json.CommandDefinition().setName("rollback") + var cmd = new com.github.copilot.rpc.CommandDefinition().setName("rollback") .setHandler(ctx -> CompletableFuture.completedFuture(null)); var config = new ResumeSessionConfig().setCommands(List.of(cmd)); diff --git a/src/test/java/com/github/copilot/sdk/SkillsTest.java b/src/test/java/com/github/copilot/SkillsTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/SkillsTest.java rename to src/test/java/com/github/copilot/SkillsTest.java index 6cf34044f..6d4b7e1f7 100644 --- a/src/test/java/com/github/copilot/sdk/SkillsTest.java +++ b/src/test/java/com/github/copilot/SkillsTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -17,11 +17,11 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.CustomAgentConfig; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.CustomAgentConfig; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; /** * Tests for skills configuration functionality. diff --git a/src/test/java/com/github/copilot/sdk/StreamingFidelityTest.java b/src/test/java/com/github/copilot/StreamingFidelityTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/StreamingFidelityTest.java rename to src/test/java/com/github/copilot/StreamingFidelityTest.java index d3df63eb0..631496a8f 100644 --- a/src/test/java/com/github/copilot/sdk/StreamingFidelityTest.java +++ b/src/test/java/com/github/copilot/StreamingFidelityTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -17,13 +17,13 @@ import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.AssistantMessageDeltaEvent; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.ResumeSessionConfig; -import com.github.copilot.sdk.json.SessionConfig; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.AssistantMessageDeltaEvent; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.ResumeSessionConfig; +import com.github.copilot.rpc.SessionConfig; /** * E2E tests for streaming fidelity — verifying that delta events are produced diff --git a/src/test/java/com/github/copilot/sdk/TelemetryConfigTest.java b/src/test/java/com/github/copilot/TelemetryConfigTest.java similarity index 96% rename from src/test/java/com/github/copilot/sdk/TelemetryConfigTest.java rename to src/test/java/com/github/copilot/TelemetryConfigTest.java index 278777ce1..2dd41c28a 100644 --- a/src/test/java/com/github/copilot/sdk/TelemetryConfigTest.java +++ b/src/test/java/com/github/copilot/TelemetryConfigTest.java @@ -2,13 +2,13 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.json.TelemetryConfig; +import com.github.copilot.rpc.TelemetryConfig; /** * Unit tests for {@link TelemetryConfig} getters, setters, and fluent chaining. diff --git a/src/test/java/com/github/copilot/sdk/TestUtil.java b/src/test/java/com/github/copilot/TestUtil.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/TestUtil.java rename to src/test/java/com/github/copilot/TestUtil.java index af4474590..cadef040b 100644 --- a/src/test/java/com/github/copilot/sdk/TestUtil.java +++ b/src/test/java/com/github/copilot/TestUtil.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import java.io.BufferedReader; import java.io.InputStreamReader; diff --git a/src/test/java/com/github/copilot/sdk/TimeoutEdgeCaseTest.java b/src/test/java/com/github/copilot/TimeoutEdgeCaseTest.java similarity index 97% rename from src/test/java/com/github/copilot/sdk/TimeoutEdgeCaseTest.java rename to src/test/java/com/github/copilot/TimeoutEdgeCaseTest.java index b771f65b2..17e1851bb 100644 --- a/src/test/java/com/github/copilot/sdk/TimeoutEdgeCaseTest.java +++ b/src/test/java/com/github/copilot/TimeoutEdgeCaseTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -15,8 +15,8 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; /** * Regression tests for timeout edge cases in diff --git a/src/test/java/com/github/copilot/sdk/ToolInvocationTest.java b/src/test/java/com/github/copilot/ToolInvocationTest.java similarity index 98% rename from src/test/java/com/github/copilot/sdk/ToolInvocationTest.java rename to src/test/java/com/github/copilot/ToolInvocationTest.java index 3dcbf7c9a..2bc9edb1b 100644 --- a/src/test/java/com/github/copilot/sdk/ToolInvocationTest.java +++ b/src/test/java/com/github/copilot/ToolInvocationTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -10,7 +10,7 @@ import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.fasterxml.jackson.databind.node.ObjectNode; -import com.github.copilot.sdk.json.ToolInvocation; +import com.github.copilot.rpc.ToolInvocation; /** * Unit tests for {@link ToolInvocation}. diff --git a/src/test/java/com/github/copilot/sdk/ToolResultsTest.java b/src/test/java/com/github/copilot/ToolResultsTest.java similarity index 93% rename from src/test/java/com/github/copilot/sdk/ToolResultsTest.java rename to src/test/java/com/github/copilot/ToolResultsTest.java index 31f9d1b07..54216d921 100644 --- a/src/test/java/com/github/copilot/sdk/ToolResultsTest.java +++ b/src/test/java/com/github/copilot/ToolResultsTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -16,13 +16,13 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.SessionEvent; -import com.github.copilot.sdk.generated.ToolExecutionCompleteEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; -import com.github.copilot.sdk.json.ToolResultObject; +import com.github.copilot.generated.SessionEvent; +import com.github.copilot.generated.ToolExecutionCompleteEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; +import com.github.copilot.rpc.ToolResultObject; /** * E2E tests for tool result types — verifying that rejected and denied result diff --git a/src/test/java/com/github/copilot/sdk/ToolsTest.java b/src/test/java/com/github/copilot/ToolsTest.java similarity index 97% rename from src/test/java/com/github/copilot/sdk/ToolsTest.java rename to src/test/java/com/github/copilot/ToolsTest.java index 6cd0c99bd..3bbe76784 100644 --- a/src/test/java/com/github/copilot/sdk/ToolsTest.java +++ b/src/test/java/com/github/copilot/ToolsTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; @@ -20,14 +20,14 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; -import com.github.copilot.sdk.json.PermissionHandler; -import com.github.copilot.sdk.json.PermissionRequest; -import com.github.copilot.sdk.json.PermissionRequestResult; -import com.github.copilot.sdk.json.PermissionRequestResultKind; -import com.github.copilot.sdk.json.SessionConfig; -import com.github.copilot.sdk.json.ToolDefinition; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; +import com.github.copilot.rpc.PermissionHandler; +import com.github.copilot.rpc.PermissionRequest; +import com.github.copilot.rpc.PermissionRequestResult; +import com.github.copilot.rpc.PermissionRequestResultKind; +import com.github.copilot.rpc.SessionConfig; +import com.github.copilot.rpc.ToolDefinition; /** * Tests for custom tools functionality. diff --git a/src/test/java/com/github/copilot/sdk/ZeroTimeoutContractTest.java b/src/test/java/com/github/copilot/ZeroTimeoutContractTest.java similarity index 94% rename from src/test/java/com/github/copilot/sdk/ZeroTimeoutContractTest.java rename to src/test/java/com/github/copilot/ZeroTimeoutContractTest.java index 524026e69..3d986566d 100644 --- a/src/test/java/com/github/copilot/sdk/ZeroTimeoutContractTest.java +++ b/src/test/java/com/github/copilot/ZeroTimeoutContractTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk; +package com.github.copilot; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.ArgumentMatchers.*; @@ -12,8 +12,8 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.generated.AssistantMessageEvent; -import com.github.copilot.sdk.json.MessageOptions; +import com.github.copilot.generated.AssistantMessageEvent; +import com.github.copilot.rpc.MessageOptions; /** * Verifies the documented contract that {@code timeoutMs <= 0} means "no diff --git a/src/test/java/com/github/copilot/sdk/generated/GeneratedEventTypesCoverageTest.java b/src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/generated/GeneratedEventTypesCoverageTest.java rename to src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java index 7cbaf9a0c..0edf1b2f8 100644 --- a/src/test/java/com/github/copilot/sdk/generated/GeneratedEventTypesCoverageTest.java +++ b/src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.generated; +package com.github.copilot.generated; import static org.junit.jupiter.api.Assertions.*; @@ -15,7 +15,7 @@ /** * Deserialization tests for generated session event types that are not covered - * in {@link com.github.copilot.sdk.SessionEventDeserializationTest}. Verifies + * in {@link com.github.copilot.SessionEventDeserializationTest}. Verifies * that each event deserializes correctly from JSON and that the {@code type} * discriminator and {@code data} fields are accessible. */ diff --git a/src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcApiCoverageTest.java b/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcApiCoverageTest.java rename to src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java index e0f66bd59..4bc1cc06b 100644 --- a/src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcApiCoverageTest.java +++ b/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import static org.junit.jupiter.api.Assertions.*; diff --git a/src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcRecordsCoverageTest.java b/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java similarity index 99% rename from src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcRecordsCoverageTest.java rename to src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java index 6601b4829..d34fa76b1 100644 --- a/src/test/java/com/github/copilot/sdk/generated/rpc/GeneratedRpcRecordsCoverageTest.java +++ b/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. *--------------------------------------------------------------------------------------------*/ -package com.github.copilot.sdk.generated.rpc; +package com.github.copilot.generated.rpc; import static org.junit.jupiter.api.Assertions.*; @@ -13,7 +13,7 @@ import org.junit.jupiter.api.Test; -import com.github.copilot.sdk.TestUtil; +import com.github.copilot.TestUtil; /** * Tests for generated RPC param and result record types. Exercises diff --git a/src/test/resources/logging-debug.properties b/src/test/resources/logging-debug.properties index 096ed002e..d461aa1e3 100644 --- a/src/test/resources/logging-debug.properties +++ b/src/test/resources/logging-debug.properties @@ -15,7 +15,7 @@ java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format=%1$tF %1$tT.%1$tL %4$-7s [%3$s] %5$s%6$s%n # Set FINE level for Copilot SDK classes -com.github.copilot.sdk.level=FINE +com.github.copilot.level=FINE # Root logger level .level=INFO diff --git a/src/test/resources/logging.properties b/src/test/resources/logging.properties index d294b5661..6aff48d46 100644 --- a/src/test/resources/logging.properties +++ b/src/test/resources/logging.properties @@ -3,6 +3,6 @@ java.util.logging.ConsoleHandler.level=INFO java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format=%1$tF %1$tT.%1$tL %4$-7s [%3$s] %5$s%6$s%n -com.github.copilot.sdk.level=INFO +com.github.copilot.level=INFO .level=INFO From 6972a89e8d878e4597f10285c0e96eecff8d51c7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 19:03:17 +0000 Subject: [PATCH 4/6] Regenerate codegen output Auto-committed by codegen-check workflow. --- .../copilot/sdk/generated/AbortEvent.java | 42 ++++ .../copilot/sdk/generated/AbortReason.java | 37 +++ .../sdk/generated/AssistantIntentEvent.java | 42 ++++ .../generated/AssistantMessageDeltaEvent.java | 46 ++++ .../sdk/generated/AssistantMessageEvent.java | 71 ++++++ .../generated/AssistantMessageStartEvent.java | 44 ++++ .../AssistantMessageToolRequest.java | 41 ++++ .../AssistantMessageToolRequestType.java | 35 +++ .../AssistantReasoningDeltaEvent.java | 44 ++++ .../generated/AssistantReasoningEvent.java | 44 ++++ .../AssistantStreamingDeltaEvent.java | 42 ++++ .../sdk/generated/AssistantTurnEndEvent.java | 42 ++++ .../generated/AssistantTurnStartEvent.java | 44 ++++ .../generated/AssistantUsageApiEndpoint.java | 39 +++ .../generated/AssistantUsageCopilotUsage.java | 30 +++ ...AssistantUsageCopilotUsageTokenDetail.java | 33 +++ .../sdk/generated/AssistantUsageEvent.java | 77 ++++++ .../AssistantUsageQuotaSnapshot.java | 42 ++++ .../AutoModeSwitchCompletedEvent.java | 44 ++++ .../AutoModeSwitchRequestedEvent.java | 46 ++++ .../sdk/generated/AutoModeSwitchResponse.java | 37 +++ .../generated/CapabilitiesChangedEvent.java | 42 ++++ .../sdk/generated/CapabilitiesChangedUI.java | 27 +++ .../sdk/generated/CommandCompletedEvent.java | 42 ++++ .../sdk/generated/CommandExecuteEvent.java | 48 ++++ .../sdk/generated/CommandQueuedEvent.java | 44 ++++ .../sdk/generated/CommandsChangedCommand.java | 29 +++ .../sdk/generated/CommandsChangedEvent.java | 43 ++++ ...ompactionCompleteCompactionTokensUsed.java | 39 +++ ...pleteCompactionTokensUsedCopilotUsage.java | 30 +++ ...tionTokensUsedCopilotUsageTokenDetail.java | 33 +++ .../generated/CustomAgentsUpdatedAgent.java | 42 ++++ .../generated/ElicitationCompletedAction.java | 37 +++ .../generated/ElicitationCompletedEvent.java | 47 ++++ .../generated/ElicitationRequestedEvent.java | 54 +++++ .../generated/ElicitationRequestedMode.java | 35 +++ .../generated/ElicitationRequestedSchema.java | 33 +++ .../sdk/generated/ExitPlanModeAction.java | 39 +++ .../generated/ExitPlanModeCompletedEvent.java | 50 ++++ .../generated/ExitPlanModeRequestedEvent.java | 51 ++++ .../generated/ExtensionsLoadedExtension.java | 33 +++ .../ExtensionsLoadedExtensionSource.java | 35 +++ .../ExtensionsLoadedExtensionStatus.java | 39 +++ .../generated/ExternalToolCompletedEvent.java | 42 ++++ .../generated/ExternalToolRequestedEvent.java | 54 +++++ .../sdk/generated/HandoffRepository.java | 31 +++ .../sdk/generated/HandoffSourceType.java | 35 +++ .../copilot/sdk/generated/HookEndError.java | 29 +++ .../copilot/sdk/generated/HookEndEvent.java | 50 ++++ .../copilot/sdk/generated/HookStartEvent.java | 46 ++++ .../sdk/generated/McpOauthCompletedEvent.java | 42 ++++ .../sdk/generated/McpOauthRequiredEvent.java | 48 ++++ .../McpOauthRequiredStaticClientConfig.java | 31 +++ .../sdk/generated/McpServerSource.java | 39 +++ .../sdk/generated/McpServerStatus.java | 43 ++++ .../sdk/generated/McpServersLoadedServer.java | 33 +++ .../sdk/generated/ModelCallFailureEvent.java | 56 +++++ .../sdk/generated/ModelCallFailureSource.java | 37 +++ .../PendingMessagesModifiedEvent.java | 39 +++ .../generated/PermissionCompletedEvent.java | 46 ++++ .../generated/PermissionRequestedEvent.java | 48 ++++ .../sdk/generated/PlanChangedOperation.java | 37 +++ .../sdk/generated/ReasoningSummary.java | 37 +++ .../sdk/generated/SamplingCompletedEvent.java | 42 ++++ .../sdk/generated/SamplingRequestedEvent.java | 46 ++++ .../SessionBackgroundTasksChangedEvent.java | 39 +++ .../SessionCompactionCompleteEvent.java | 72 ++++++ .../SessionCompactionStartEvent.java | 46 ++++ .../generated/SessionContextChangedEvent.java | 56 +++++ .../SessionCustomAgentsUpdatedEvent.java | 47 ++++ .../SessionCustomNotificationEvent.java | 51 ++++ .../sdk/generated/SessionErrorEvent.java | 56 +++++ .../copilot/sdk/generated/SessionEvent.java | 229 ++++++++++++++++++ .../SessionExtensionsLoadedEvent.java | 43 ++++ .../sdk/generated/SessionHandoffEvent.java | 55 +++++ .../sdk/generated/SessionIdleEvent.java | 42 ++++ .../sdk/generated/SessionInfoEvent.java | 48 ++++ .../SessionMcpServerStatusChangedEvent.java | 44 ++++ .../SessionMcpServersLoadedEvent.java | 43 ++++ .../copilot/sdk/generated/SessionMode.java | 37 +++ .../generated/SessionModeChangedEvent.java | 44 ++++ .../generated/SessionModelChangeEvent.java | 54 +++++ .../generated/SessionPlanChangedEvent.java | 42 ++++ .../SessionRemoteSteerableChangedEvent.java | 42 ++++ .../sdk/generated/SessionResumeEvent.java | 61 +++++ .../SessionScheduleCancelledEvent.java | 42 ++++ .../SessionScheduleCreatedEvent.java | 50 ++++ .../sdk/generated/SessionShutdownEvent.java | 69 ++++++ .../generated/SessionSkillsLoadedEvent.java | 43 ++++ .../generated/SessionSnapshotRewindEvent.java | 44 ++++ .../sdk/generated/SessionStartEvent.java | 65 +++++ .../generated/SessionTaskCompleteEvent.java | 44 ++++ .../generated/SessionTitleChangedEvent.java | 42 ++++ .../generated/SessionToolsUpdatedEvent.java | 42 ++++ .../sdk/generated/SessionTruncationEvent.java | 56 +++++ .../sdk/generated/SessionUsageInfoEvent.java | 54 +++++ .../sdk/generated/SessionWarningEvent.java | 46 ++++ .../SessionWorkspaceFileChangedEvent.java | 44 ++++ .../sdk/generated/ShutdownCodeChanges.java | 32 +++ .../sdk/generated/ShutdownModelMetric.java | 34 +++ .../ShutdownModelMetricRequests.java | 29 +++ .../ShutdownModelMetricTokenDetail.java | 27 +++ .../generated/ShutdownModelMetricUsage.java | 35 +++ .../sdk/generated/ShutdownTokenDetail.java | 27 +++ .../copilot/sdk/generated/ShutdownType.java | 35 +++ .../sdk/generated/SkillInvokedEvent.java | 55 +++++ .../copilot/sdk/generated/SkillSource.java | 45 ++++ .../sdk/generated/SkillsLoadedSkill.java | 37 +++ .../sdk/generated/SubagentCompletedEvent.java | 54 +++++ .../generated/SubagentDeselectedEvent.java | 39 +++ .../sdk/generated/SubagentFailedEvent.java | 56 +++++ .../sdk/generated/SubagentSelectedEvent.java | 47 ++++ .../sdk/generated/SubagentStartedEvent.java | 50 ++++ .../sdk/generated/SystemMessageEvent.java | 48 ++++ .../sdk/generated/SystemMessageMetadata.java | 30 +++ .../sdk/generated/SystemMessageRole.java | 35 +++ .../generated/SystemNotificationEvent.java | 44 ++++ .../generated/ToolExecutionCompleteError.java | 29 +++ .../generated/ToolExecutionCompleteEvent.java | 63 +++++ .../ToolExecutionCompleteResult.java | 32 +++ .../ToolExecutionPartialResultEvent.java | 44 ++++ .../generated/ToolExecutionProgressEvent.java | 44 ++++ .../generated/ToolExecutionStartEvent.java | 54 +++++ .../sdk/generated/ToolUserRequestedEvent.java | 46 ++++ .../sdk/generated/UnknownSessionEvent.java | 31 +++ .../generated/UserInputCompletedEvent.java | 46 ++++ .../generated/UserInputRequestedEvent.java | 51 ++++ .../sdk/generated/UserMessageAgentMode.java | 39 +++ .../sdk/generated/UserMessageEvent.java | 61 +++++ .../generated/WorkingDirectoryContext.java | 41 ++++ .../WorkingDirectoryContextHostType.java | 35 +++ .../WorkspaceFileChangedOperation.java | 35 +++ .../sdk/generated/rpc/AbortReason.java | 37 +++ .../generated/rpc/AccountGetQuotaResult.java | 28 +++ .../generated/rpc/AccountQuotaSnapshot.java | 42 ++++ .../copilot/sdk/generated/rpc/AgentInfo.java | 49 ++++ .../sdk/generated/rpc/AgentInfoSource.java | 43 ++++ .../sdk/generated/rpc/AuthInfoType.java | 45 ++++ .../sdk/generated/rpc/ConnectParams.java | 27 +++ .../sdk/generated/rpc/ConnectResult.java | 31 +++ .../rpc/ConnectedRemoteSessionMetadata.java | 48 ++++ .../ConnectedRemoteSessionMetadataKind.java | 35 +++ ...nectedRemoteSessionMetadataRepository.java | 31 +++ .../generated/rpc/DiscoveredMcpServer.java | 33 +++ .../rpc/DiscoveredMcpServerType.java | 39 +++ .../sdk/generated/rpc/EventsAgentScope.java | 35 +++ .../sdk/generated/rpc/EventsCursorStatus.java | 35 +++ .../copilot/sdk/generated/rpc/Extension.java | 35 +++ .../sdk/generated/rpc/ExtensionSource.java | 35 +++ .../sdk/generated/rpc/ExtensionStatus.java | 39 +++ .../rpc/HistoryCompactContextWindow.java | 37 +++ .../sdk/generated/rpc/InstalledPlugin.java | 39 +++ .../generated/rpc/InstructionsSources.java | 44 ++++ .../rpc/InstructionsSourcesLocation.java | 39 +++ .../rpc/InstructionsSourcesType.java | 45 ++++ .../sdk/generated/rpc/McpConfigAddParams.java | 29 +++ .../generated/rpc/McpConfigDisableParams.java | 28 +++ .../generated/rpc/McpConfigEnableParams.java | 28 +++ .../generated/rpc/McpConfigListResult.java | 28 +++ .../generated/rpc/McpConfigRemoveParams.java | 27 +++ .../generated/rpc/McpConfigUpdateParams.java | 29 +++ .../sdk/generated/rpc/McpDiscoverParams.java | 27 +++ .../sdk/generated/rpc/McpDiscoverResult.java | 28 +++ .../rpc/McpExecuteSamplingRequest.java | 24 ++ .../rpc/McpExecuteSamplingResult.java | 24 ++ .../rpc/McpSamplingExecutionAction.java | 37 +++ .../copilot/sdk/generated/rpc/McpServer.java | 33 +++ .../sdk/generated/rpc/McpServerSource.java | 39 +++ .../sdk/generated/rpc/McpServerStatus.java | 43 ++++ .../rpc/McpSetEnvValueModeDetails.java | 35 +++ .../rpc/MetadataSnapshotCurrentMode.java | 37 +++ .../rpc/MetadataSnapshotRemoteMetadata.java | 33 +++ ...adataSnapshotRemoteMetadataRepository.java | 31 +++ ...etadataSnapshotRemoteMetadataTaskType.java | 35 +++ .../copilot/sdk/generated/rpc/Model.java | 44 ++++ .../sdk/generated/rpc/ModelBilling.java | 29 +++ .../rpc/ModelBillingTokenPrices.java | 33 +++ .../sdk/generated/rpc/ModelCapabilities.java | 29 +++ .../rpc/ModelCapabilitiesLimits.java | 33 +++ .../rpc/ModelCapabilitiesLimitsVision.java | 32 +++ .../rpc/ModelCapabilitiesOverride.java | 29 +++ .../rpc/ModelCapabilitiesOverrideLimits.java | 33 +++ ...ModelCapabilitiesOverrideLimitsVision.java | 32 +++ .../ModelCapabilitiesOverrideSupports.java | 29 +++ .../rpc/ModelCapabilitiesSupports.java | 29 +++ .../generated/rpc/ModelPickerCategory.java | 37 +++ .../rpc/ModelPickerPriceCategory.java | 39 +++ .../sdk/generated/rpc/ModelPolicy.java | 29 +++ .../sdk/generated/rpc/ModelPolicyState.java | 37 +++ .../sdk/generated/rpc/ModelsListResult.java | 28 +++ .../rpc/OptionsUpdateEnvValueMode.java | 35 +++ .../rpc/PendingPermissionRequest.java | 29 +++ .../generated/rpc/PermissionLocationType.java | 35 +++ .../generated/rpc/PermissionPathsConfig.java | 34 +++ .../sdk/generated/rpc/PermissionRule.java | 29 +++ .../sdk/generated/rpc/PermissionRulesSet.java | 30 +++ .../generated/rpc/PermissionUrlsConfig.java | 30 +++ ...igureAdditionalContentExclusionPolicy.java | 30 +++ ...eAdditionalContentExclusionPolicyRule.java | 31 +++ ...ionalContentExclusionPolicyRuleSource.java | 27 +++ ...AdditionalContentExclusionPolicyScope.java | 35 +++ .../rpc/PermissionsModifyRulesScope.java | 35 +++ .../rpc/PermissionsSetApproveAllSource.java | 39 +++ .../copilot/sdk/generated/rpc/PingParams.java | 27 +++ .../copilot/sdk/generated/rpc/PingResult.java | 32 +++ .../copilot/sdk/generated/rpc/Plugin.java | 33 +++ .../sdk/generated/rpc/QueuePendingItems.java | 29 +++ .../generated/rpc/QueuePendingItemsKind.java | 35 +++ .../sdk/generated/rpc/ReasoningSummary.java | 37 +++ .../sdk/generated/rpc/RemoteSessionMode.java | 37 +++ .../copilot/sdk/generated/rpc/RpcCaller.java | 38 +++ .../copilot/sdk/generated/rpc/RpcMapper.java | 38 +++ .../sdk/generated/rpc/ScheduleEntry.java | 38 +++ .../rpc/SecretsAddFilterValuesParams.java | 28 +++ .../rpc/SecretsAddFilterValuesResult.java | 27 +++ .../sdk/generated/rpc/SendAgentMode.java | 39 +++ .../copilot/sdk/generated/rpc/SendMode.java | 35 +++ .../sdk/generated/rpc/ServerAccountApi.java | 36 +++ .../sdk/generated/rpc/ServerMcpApi.java | 40 +++ .../sdk/generated/rpc/ServerMcpConfigApi.java | 76 ++++++ .../sdk/generated/rpc/ServerModelsApi.java | 36 +++ .../copilot/sdk/generated/rpc/ServerRpc.java | 77 ++++++ .../sdk/generated/rpc/ServerSecretsApi.java | 36 +++ .../sdk/generated/rpc/ServerSessionFsApi.java | 36 +++ .../sdk/generated/rpc/ServerSessionsApi.java | 218 +++++++++++++++++ .../sdk/generated/rpc/ServerSkill.java | 39 +++ .../sdk/generated/rpc/ServerSkillsApi.java | 40 +++ .../generated/rpc/ServerSkillsConfigApi.java | 36 +++ .../sdk/generated/rpc/ServerToolsApi.java | 36 +++ .../sdk/generated/rpc/SessionAbortParams.java | 29 +++ .../sdk/generated/rpc/SessionAbortResult.java | 29 +++ .../sdk/generated/rpc/SessionAgentApi.java | 87 +++++++ .../rpc/SessionAgentDeselectParams.java | 27 +++ .../rpc/SessionAgentGetCurrentParams.java | 27 +++ .../rpc/SessionAgentGetCurrentResult.java | 27 +++ .../generated/rpc/SessionAgentListParams.java | 27 +++ .../generated/rpc/SessionAgentListResult.java | 28 +++ .../rpc/SessionAgentReloadParams.java | 27 +++ .../rpc/SessionAgentReloadResult.java | 28 +++ .../rpc/SessionAgentSelectParams.java | 29 +++ .../rpc/SessionAgentSelectResult.java | 27 +++ .../sdk/generated/rpc/SessionAuthApi.java | 57 +++++ .../rpc/SessionAuthGetStatusParams.java | 27 +++ .../rpc/SessionAuthGetStatusResult.java | 37 +++ .../rpc/SessionAuthSetCredentialsParams.java | 29 +++ .../rpc/SessionAuthSetCredentialsResult.java | 27 +++ .../sdk/generated/rpc/SessionCommandsApi.java | 117 +++++++++ .../rpc/SessionCommandsEnqueueParams.java | 29 +++ .../rpc/SessionCommandsEnqueueResult.java | 27 +++ .../rpc/SessionCommandsExecuteParams.java | 31 +++ .../rpc/SessionCommandsExecuteResult.java | 27 +++ ...ionCommandsHandlePendingCommandParams.java | 31 +++ ...ionCommandsHandlePendingCommandResult.java | 27 +++ .../rpc/SessionCommandsInvokeParams.java | 31 +++ .../rpc/SessionCommandsListParams.java | 27 +++ .../rpc/SessionCommandsListResult.java | 28 +++ ...nCommandsRespondToQueuedCommandParams.java | 31 +++ ...nCommandsRespondToQueuedCommandResult.java | 27 +++ .../sdk/generated/rpc/SessionContext.java | 35 +++ .../generated/rpc/SessionContextHostType.java | 35 +++ .../sdk/generated/rpc/SessionEventLogApi.java | 87 +++++++ .../rpc/SessionEventLogReadParams.java | 37 +++ .../rpc/SessionEventLogReadResult.java | 34 +++ ...SessionEventLogRegisterInterestParams.java | 29 +++ ...SessionEventLogRegisterInterestResult.java | 27 +++ .../SessionEventLogReleaseInterestParams.java | 29 +++ .../SessionEventLogReleaseInterestResult.java | 27 +++ .../rpc/SessionEventLogTailParams.java | 27 +++ .../rpc/SessionEventLogTailResult.java | 27 +++ .../generated/rpc/SessionExtensionsApi.java | 82 +++++++ .../rpc/SessionExtensionsDisableParams.java | 29 +++ .../rpc/SessionExtensionsEnableParams.java | 29 +++ .../rpc/SessionExtensionsListParams.java | 27 +++ .../rpc/SessionExtensionsListResult.java | 28 +++ .../rpc/SessionExtensionsReloadParams.java | 27 +++ .../sdk/generated/rpc/SessionFleetApi.java | 47 ++++ .../rpc/SessionFleetStartParams.java | 29 +++ .../rpc/SessionFleetStartResult.java | 27 +++ .../rpc/SessionFsAppendFileParams.java | 33 +++ .../sdk/generated/rpc/SessionFsError.java | 29 +++ .../sdk/generated/rpc/SessionFsErrorCode.java | 35 +++ .../generated/rpc/SessionFsExistsParams.java | 29 +++ .../generated/rpc/SessionFsExistsResult.java | 27 +++ .../generated/rpc/SessionFsMkdirParams.java | 33 +++ .../rpc/SessionFsReadFileParams.java | 29 +++ .../rpc/SessionFsReadFileResult.java | 29 +++ .../generated/rpc/SessionFsReaddirParams.java | 29 +++ .../generated/rpc/SessionFsReaddirResult.java | 30 +++ .../rpc/SessionFsReaddirWithTypesEntry.java | 29 +++ .../SessionFsReaddirWithTypesEntryType.java | 35 +++ .../rpc/SessionFsReaddirWithTypesParams.java | 29 +++ .../rpc/SessionFsReaddirWithTypesResult.java | 30 +++ .../generated/rpc/SessionFsRenameParams.java | 31 +++ .../sdk/generated/rpc/SessionFsRmParams.java | 33 +++ .../rpc/SessionFsSetProviderCapabilities.java | 27 +++ .../rpc/SessionFsSetProviderConventions.java | 35 +++ .../rpc/SessionFsSetProviderParams.java | 33 +++ .../rpc/SessionFsSetProviderResult.java | 27 +++ .../rpc/SessionFsSqliteExistsParams.java | 27 +++ .../rpc/SessionFsSqliteExistsResult.java | 27 +++ .../rpc/SessionFsSqliteQueryParams.java | 34 +++ .../rpc/SessionFsSqliteQueryResult.java | 37 +++ .../rpc/SessionFsSqliteQueryType.java | 37 +++ .../generated/rpc/SessionFsStatParams.java | 29 +++ .../generated/rpc/SessionFsStatResult.java | 38 +++ .../rpc/SessionFsWriteFileParams.java | 33 +++ ...ionHistoryAbortManualCompactionParams.java | 27 +++ ...ionHistoryAbortManualCompactionResult.java | 27 +++ .../sdk/generated/rpc/SessionHistoryApi.java | 87 +++++++ ...storyCancelBackgroundCompactionParams.java | 27 +++ ...storyCancelBackgroundCompactionResult.java | 27 +++ .../rpc/SessionHistoryCompactParams.java | 27 +++ .../rpc/SessionHistoryCompactResult.java | 35 +++ ...ssionHistorySummarizeForHandoffParams.java | 27 +++ ...ssionHistorySummarizeForHandoffResult.java | 27 +++ .../rpc/SessionHistoryTruncateParams.java | 29 +++ .../rpc/SessionHistoryTruncateResult.java | 27 +++ .../generated/rpc/SessionInstalledPlugin.java | 39 +++ .../generated/rpc/SessionInstructionsApi.java | 40 +++ .../SessionInstructionsGetSourcesParams.java | 27 +++ .../SessionInstructionsGetSourcesResult.java | 28 +++ .../sdk/generated/rpc/SessionLogLevel.java | 37 +++ .../sdk/generated/rpc/SessionLogParams.java | 39 +++ .../sdk/generated/rpc/SessionLogResult.java | 28 +++ .../sdk/generated/rpc/SessionLspApi.java | 47 ++++ .../rpc/SessionLspInitializeParams.java | 33 +++ .../sdk/generated/rpc/SessionMcpApi.java | 141 +++++++++++ ...ssionMcpCancelSamplingExecutionParams.java | 29 +++ ...ssionMcpCancelSamplingExecutionResult.java | 27 +++ .../rpc/SessionMcpDisableParams.java | 29 +++ .../generated/rpc/SessionMcpEnableParams.java | 29 +++ .../rpc/SessionMcpExecuteSamplingParams.java | 35 +++ .../rpc/SessionMcpExecuteSamplingResult.java | 31 +++ .../generated/rpc/SessionMcpListParams.java | 27 +++ .../generated/rpc/SessionMcpListResult.java | 28 +++ .../sdk/generated/rpc/SessionMcpOauthApi.java | 47 ++++ .../rpc/SessionMcpOauthLoginParams.java | 35 +++ .../rpc/SessionMcpOauthLoginResult.java | 27 +++ .../generated/rpc/SessionMcpReloadParams.java | 27 +++ .../rpc/SessionMcpRemoveGitHubParams.java | 27 +++ .../rpc/SessionMcpRemoveGitHubResult.java | 27 +++ .../rpc/SessionMcpSetEnvValueModeParams.java | 29 +++ .../rpc/SessionMcpSetEnvValueModeResult.java | 27 +++ .../sdk/generated/rpc/SessionMetadata.java | 41 ++++ .../sdk/generated/rpc/SessionMetadataApi.java | 112 +++++++++ .../rpc/SessionMetadataContextInfoParams.java | 33 +++ .../rpc/SessionMetadataContextInfoResult.java | 52 ++++ .../SessionMetadataIsProcessingParams.java | 27 +++ .../SessionMetadataIsProcessingResult.java | 27 +++ ...nMetadataRecomputeContextTokensParams.java | 29 +++ ...nMetadataRecomputeContextTokensResult.java | 31 +++ ...sionMetadataRecordContextChangeParams.java | 29 +++ ...sionMetadataRecordContextChangeResult.java | 24 ++ ...sionMetadataSetWorkingDirectoryParams.java | 29 +++ ...sionMetadataSetWorkingDirectoryResult.java | 27 +++ .../rpc/SessionMetadataSnapshotParams.java | 27 +++ .../rpc/SessionMetadataSnapshotResult.java | 77 ++++++ .../sdk/generated/rpc/SessionMode.java | 37 +++ .../sdk/generated/rpc/SessionModeApi.java | 57 +++++ .../generated/rpc/SessionModeGetParams.java | 27 +++ .../generated/rpc/SessionModeSetParams.java | 29 +++ .../sdk/generated/rpc/SessionModelApi.java | 72 ++++++ .../rpc/SessionModelGetCurrentParams.java | 27 +++ .../rpc/SessionModelGetCurrentResult.java | 29 +++ .../SessionModelSetReasoningEffortParams.java | 29 +++ .../SessionModelSetReasoningEffortResult.java | 27 +++ .../rpc/SessionModelSwitchToParams.java | 35 +++ .../rpc/SessionModelSwitchToResult.java | 27 +++ .../sdk/generated/rpc/SessionNameApi.java | 72 ++++++ .../generated/rpc/SessionNameGetParams.java | 27 +++ .../generated/rpc/SessionNameGetResult.java | 27 +++ .../rpc/SessionNameSetAutoParams.java | 29 +++ .../rpc/SessionNameSetAutoResult.java | 27 +++ .../generated/rpc/SessionNameSetParams.java | 29 +++ .../sdk/generated/rpc/SessionOptionsApi.java | 47 ++++ .../rpc/SessionOptionsUpdateParams.java | 101 ++++++++ .../rpc/SessionOptionsUpdateResult.java | 27 +++ .../generated/rpc/SessionPermissionsApi.java | 155 ++++++++++++ .../SessionPermissionsConfigureParams.java | 40 +++ .../SessionPermissionsConfigureResult.java | 27 +++ ...ermissionsFolderTrustAddTrustedParams.java | 29 +++ ...ermissionsFolderTrustAddTrustedResult.java | 27 +++ .../rpc/SessionPermissionsFolderTrustApi.java | 62 +++++ ...PermissionsFolderTrustIsTrustedParams.java | 29 +++ ...PermissionsFolderTrustIsTrustedResult.java | 27 +++ ...sHandlePendingPermissionRequestParams.java | 31 +++ ...sHandlePendingPermissionRequestResult.java | 27 +++ ...issionsLocationsAddToolApprovalParams.java | 31 +++ ...issionsLocationsAddToolApprovalResult.java | 27 +++ .../rpc/SessionPermissionsLocationsApi.java | 77 ++++++ ...essionPermissionsLocationsApplyParams.java | 29 +++ ...essionPermissionsLocationsApplyResult.java | 38 +++ ...sionPermissionsLocationsResolveParams.java | 29 +++ ...sionPermissionsLocationsResolveResult.java | 29 +++ .../SessionPermissionsModifyRulesParams.java | 36 +++ .../SessionPermissionsModifyRulesResult.java | 27 +++ ...ionPermissionsNotifyPromptShownParams.java | 29 +++ ...ionPermissionsNotifyPromptShownResult.java | 27 +++ .../rpc/SessionPermissionsPathsAddParams.java | 29 +++ .../rpc/SessionPermissionsPathsAddResult.java | 27 +++ .../rpc/SessionPermissionsPathsApi.java | 102 ++++++++ ...sIsPathWithinAllowedDirectoriesParams.java | 29 +++ ...sIsPathWithinAllowedDirectoriesResult.java | 27 +++ ...sionsPathsIsPathWithinWorkspaceParams.java | 29 +++ ...sionsPathsIsPathWithinWorkspaceResult.java | 27 +++ .../SessionPermissionsPathsListParams.java | 27 +++ .../SessionPermissionsPathsListResult.java | 30 +++ ...onPermissionsPathsUpdatePrimaryParams.java | 29 +++ ...onPermissionsPathsUpdatePrimaryResult.java | 27 +++ ...ssionPermissionsPendingRequestsParams.java | 27 +++ ...ssionPermissionsPendingRequestsResult.java | 28 +++ ...ermissionsResetSessionApprovalsParams.java | 27 +++ ...ermissionsResetSessionApprovalsResult.java | 27 +++ ...SessionPermissionsSetApproveAllParams.java | 31 +++ ...SessionPermissionsSetApproveAllResult.java | 27 +++ .../SessionPermissionsSetRequiredParams.java | 29 +++ .../SessionPermissionsSetRequiredResult.java | 27 +++ .../rpc/SessionPermissionsUrlsApi.java | 47 ++++ ...missionsUrlsSetUnrestrictedModeParams.java | 29 +++ ...missionsUrlsSetUnrestrictedModeResult.java | 27 +++ .../sdk/generated/rpc/SessionPlanApi.java | 67 +++++ .../rpc/SessionPlanDeleteParams.java | 27 +++ .../generated/rpc/SessionPlanReadParams.java | 27 +++ .../generated/rpc/SessionPlanReadResult.java | 31 +++ .../rpc/SessionPlanUpdateParams.java | 29 +++ .../sdk/generated/rpc/SessionPluginsApi.java | 40 +++ .../rpc/SessionPluginsListParams.java | 27 +++ .../rpc/SessionPluginsListResult.java | 28 +++ .../sdk/generated/rpc/SessionQueueApi.java | 60 +++++ .../rpc/SessionQueueClearParams.java | 27 +++ .../rpc/SessionQueuePendingItemsParams.java | 27 +++ .../rpc/SessionQueuePendingItemsResult.java | 30 +++ .../SessionQueueRemoveMostRecentParams.java | 27 +++ .../SessionQueueRemoveMostRecentResult.java | 27 +++ .../sdk/generated/rpc/SessionRemoteApi.java | 72 ++++++ .../rpc/SessionRemoteDisableParams.java | 27 +++ .../rpc/SessionRemoteEnableParams.java | 29 +++ .../rpc/SessionRemoteEnableResult.java | 29 +++ ...ionRemoteNotifySteerableChangedParams.java | 29 +++ ...ionRemoteNotifySteerableChangedResult.java | 24 ++ .../copilot/sdk/generated/rpc/SessionRpc.java | 200 +++++++++++++++ .../sdk/generated/rpc/SessionScheduleApi.java | 57 +++++ .../rpc/SessionScheduleListParams.java | 27 +++ .../rpc/SessionScheduleListResult.java | 28 +++ .../rpc/SessionScheduleStopParams.java | 29 +++ .../rpc/SessionScheduleStopResult.java | 27 +++ .../sdk/generated/rpc/SessionSendParams.java | 55 +++++ .../sdk/generated/rpc/SessionSendResult.java | 27 +++ .../sdk/generated/rpc/SessionShellApi.java | 62 +++++ .../generated/rpc/SessionShellExecParams.java | 33 +++ .../generated/rpc/SessionShellExecResult.java | 27 +++ .../generated/rpc/SessionShellKillParams.java | 31 +++ .../generated/rpc/SessionShellKillResult.java | 27 +++ .../generated/rpc/SessionShutdownParams.java | 31 +++ .../sdk/generated/rpc/SessionSkillsApi.java | 102 ++++++++ .../rpc/SessionSkillsDisableParams.java | 29 +++ .../rpc/SessionSkillsEnableParams.java | 29 +++ .../rpc/SessionSkillsEnsureLoadedParams.java | 27 +++ .../rpc/SessionSkillsGetInvokedParams.java | 27 +++ .../rpc/SessionSkillsGetInvokedResult.java | 28 +++ .../rpc/SessionSkillsListParams.java | 27 +++ .../rpc/SessionSkillsListResult.java | 28 +++ .../rpc/SessionSkillsReloadParams.java | 27 +++ .../rpc/SessionSkillsReloadResult.java | 30 +++ .../generated/rpc/SessionSuspendParams.java | 27 +++ .../sdk/generated/rpc/SessionTasksApi.java | 172 +++++++++++++ .../rpc/SessionTasksCancelParams.java | 29 +++ .../rpc/SessionTasksCancelResult.java | 27 +++ ...essionTasksGetCurrentPromotableParams.java | 27 +++ ...essionTasksGetCurrentPromotableResult.java | 27 +++ .../rpc/SessionTasksGetProgressParams.java | 29 +++ .../rpc/SessionTasksGetProgressResult.java | 27 +++ .../generated/rpc/SessionTasksListParams.java | 27 +++ .../generated/rpc/SessionTasksListResult.java | 28 +++ ...TasksPromoteCurrentToBackgroundParams.java | 27 +++ ...TasksPromoteCurrentToBackgroundResult.java | 27 +++ ...SessionTasksPromoteToBackgroundParams.java | 29 +++ ...SessionTasksPromoteToBackgroundResult.java | 27 +++ .../rpc/SessionTasksRefreshParams.java | 27 +++ .../rpc/SessionTasksRefreshResult.java | 24 ++ .../rpc/SessionTasksRemoveParams.java | 29 +++ .../rpc/SessionTasksRemoveResult.java | 27 +++ .../rpc/SessionTasksSendMessageParams.java | 33 +++ .../rpc/SessionTasksSendMessageResult.java | 29 +++ .../rpc/SessionTasksStartAgentParams.java | 37 +++ .../rpc/SessionTasksStartAgentResult.java | 27 +++ .../rpc/SessionTasksWaitForPendingParams.java | 27 +++ .../rpc/SessionTasksWaitForPendingResult.java | 24 ++ .../generated/rpc/SessionTelemetryApi.java | 47 ++++ ...ionTelemetrySetFeatureOverridesParams.java | 30 +++ .../sdk/generated/rpc/SessionToolsApi.java | 57 +++++ ...ssionToolsHandlePendingToolCallParams.java | 33 +++ ...ssionToolsHandlePendingToolCallResult.java | 27 +++ ...ssionToolsInitializeAndValidateParams.java | 27 +++ ...ssionToolsInitializeAndValidateResult.java | 24 ++ .../sdk/generated/rpc/SessionUiApi.java | 147 +++++++++++ .../rpc/SessionUiElicitationParams.java | 31 +++ .../rpc/SessionUiElicitationResult.java | 30 +++ ...onUiHandlePendingAutoModeSwitchParams.java | 31 +++ ...onUiHandlePendingAutoModeSwitchResult.java | 27 +++ ...ssionUiHandlePendingElicitationParams.java | 31 +++ ...ssionUiHandlePendingElicitationResult.java | 27 +++ ...sionUiHandlePendingExitPlanModeParams.java | 31 +++ ...sionUiHandlePendingExitPlanModeResult.java | 27 +++ .../SessionUiHandlePendingSamplingParams.java | 31 +++ .../SessionUiHandlePendingSamplingResult.java | 27 +++ ...SessionUiHandlePendingUserInputParams.java | 31 +++ ...SessionUiHandlePendingUserInputResult.java | 27 +++ ...sterDirectAutoModeSwitchHandlerParams.java | 27 +++ ...sterDirectAutoModeSwitchHandlerResult.java | 27 +++ ...sterDirectAutoModeSwitchHandlerParams.java | 29 +++ ...sterDirectAutoModeSwitchHandlerResult.java | 27 +++ .../sdk/generated/rpc/SessionUsageApi.java | 40 +++ .../rpc/SessionUsageGetMetricsParams.java | 27 +++ .../rpc/SessionUsageGetMetricsResult.java | 49 ++++ .../rpc/SessionWorkingDirectoryContext.java | 41 ++++ ...essionWorkingDirectoryContextHostType.java | 35 +++ .../generated/rpc/SessionWorkspacesApi.java | 122 ++++++++++ .../SessionWorkspacesCreateFileParams.java | 31 +++ .../SessionWorkspacesGetWorkspaceParams.java | 27 +++ .../SessionWorkspacesGetWorkspaceResult.java | 53 ++++ ...essionWorkspacesListCheckpointsParams.java | 27 +++ ...essionWorkspacesListCheckpointsResult.java | 28 +++ .../rpc/SessionWorkspacesListFilesParams.java | 27 +++ .../rpc/SessionWorkspacesListFilesResult.java | 28 +++ ...SessionWorkspacesReadCheckpointParams.java | 29 +++ ...SessionWorkspacesReadCheckpointResult.java | 27 +++ .../rpc/SessionWorkspacesReadFileParams.java | 29 +++ .../rpc/SessionWorkspacesReadFileResult.java | 27 +++ ...SessionWorkspacesSaveLargePasteParams.java | 29 +++ ...SessionWorkspacesSaveLargePasteResult.java | 39 +++ .../rpc/SessionsBulkDeleteParams.java | 28 +++ .../rpc/SessionsBulkDeleteResult.java | 28 +++ .../rpc/SessionsCheckInUseParams.java | 28 +++ .../rpc/SessionsCheckInUseResult.java | 28 +++ .../generated/rpc/SessionsCloseParams.java | 27 +++ .../generated/rpc/SessionsCloseResult.java | 24 ++ .../generated/rpc/SessionsConnectParams.java | 27 +++ .../generated/rpc/SessionsConnectResult.java | 29 +++ .../rpc/SessionsEnrichMetadataParams.java | 28 +++ .../rpc/SessionsEnrichMetadataResult.java | 28 +++ .../rpc/SessionsFindByPrefixParams.java | 27 +++ .../rpc/SessionsFindByPrefixResult.java | 27 +++ .../rpc/SessionsFindByTaskIdParams.java | 27 +++ .../rpc/SessionsFindByTaskIdResult.java | 27 +++ .../sdk/generated/rpc/SessionsForkParams.java | 31 +++ .../sdk/generated/rpc/SessionsForkResult.java | 29 +++ .../rpc/SessionsGetEventFilePathParams.java | 27 +++ .../rpc/SessionsGetEventFilePathResult.java | 27 +++ .../rpc/SessionsGetLastForContextParams.java | 27 +++ .../rpc/SessionsGetLastForContextResult.java | 27 +++ ...ionsGetPersistedRemoteSteerableParams.java | 27 +++ ...ionsGetPersistedRemoteSteerableResult.java | 27 +++ .../generated/rpc/SessionsGetSizesResult.java | 28 +++ .../sdk/generated/rpc/SessionsListResult.java | 28 +++ .../SessionsLoadDeferredRepoHooksParams.java | 27 +++ .../SessionsLoadDeferredRepoHooksResult.java | 30 +++ .../generated/rpc/SessionsPruneOldParams.java | 34 +++ .../generated/rpc/SessionsPruneOldResult.java | 36 +++ .../rpc/SessionsReleaseLockParams.java | 27 +++ .../rpc/SessionsReleaseLockResult.java | 24 ++ .../rpc/SessionsReloadPluginHooksParams.java | 29 +++ .../rpc/SessionsReloadPluginHooksResult.java | 24 ++ .../sdk/generated/rpc/SessionsSaveParams.java | 27 +++ .../sdk/generated/rpc/SessionsSaveResult.java | 24 ++ .../SessionsSetAdditionalPluginsParams.java | 28 +++ .../SessionsSetAdditionalPluginsResult.java | 24 ++ .../sdk/generated/rpc/ShellKillSignal.java | 37 +++ .../sdk/generated/rpc/ShutdownType.java | 35 +++ .../copilot/sdk/generated/rpc/Skill.java | 39 +++ .../sdk/generated/rpc/SkillSource.java | 45 ++++ .../SkillsConfigSetDisabledSkillsParams.java | 28 +++ .../generated/rpc/SkillsDiscoverParams.java | 30 +++ .../generated/rpc/SkillsDiscoverResult.java | 28 +++ .../sdk/generated/rpc/SkillsInvokedSkill.java | 36 +++ .../sdk/generated/rpc/SlashCommandInfo.java | 40 +++ .../sdk/generated/rpc/SlashCommandInput.java | 33 +++ .../rpc/SlashCommandInputCompletion.java | 33 +++ .../sdk/generated/rpc/SlashCommandKind.java | 37 +++ .../copilot/sdk/generated/rpc/Tool.java | 36 +++ .../sdk/generated/rpc/ToolsListParams.java | 27 +++ .../sdk/generated/rpc/ToolsListResult.java | 28 +++ .../rpc/UIAutoModeSwitchResponse.java | 37 +++ .../generated/rpc/UIElicitationResponse.java | 30 +++ .../rpc/UIElicitationResponseAction.java | 37 +++ .../generated/rpc/UIElicitationSchema.java | 33 +++ .../generated/rpc/UIExitPlanModeAction.java | 39 +++ .../generated/rpc/UIExitPlanModeResponse.java | 33 +++ .../rpc/UIHandlePendingSamplingResponse.java | 24 ++ .../generated/rpc/UIUserInputResponse.java | 29 +++ .../rpc/UsageMetricsCodeChanges.java | 34 +++ .../rpc/UsageMetricsModelMetric.java | 34 +++ .../rpc/UsageMetricsModelMetricRequests.java | 29 +++ .../UsageMetricsModelMetricTokenDetail.java | 27 +++ .../rpc/UsageMetricsModelMetricUsage.java | 35 +++ .../rpc/UsageMetricsTokenDetail.java | 27 +++ .../rpc/WorkspaceSummaryHostType.java | 35 +++ .../generated/rpc/WorkspacesCheckpoints.java | 31 +++ .../WorkspacesWorkspaceDetailsHostType.java | 35 +++ 599 files changed, 22421 insertions(+) create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AbortReason.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/HookEndError.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SkillSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java create mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java diff --git a/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java new file mode 100644 index 000000000..e58922aa0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "abort". Turn abort information including the reason for termination + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AbortEvent extends SessionEvent { + + @Override + public String getType() { return "abort"; } + + @JsonProperty("data") + private AbortEventData data; + + public AbortEventData getData() { return data; } + public void setData(AbortEventData data) { this.data = data; } + + /** Data payload for {@link AbortEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AbortEventData( + /** Finite reason code describing why the current turn was aborted */ + @JsonProperty("reason") AbortReason reason + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java b/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java new file mode 100644 index 000000000..2ffbdb8d8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Finite reason code describing why the current turn was aborted + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AbortReason { + /** The {@code user_initiated} variant. */ + USER_INITIATED("user_initiated"), + /** The {@code remote_command} variant. */ + REMOTE_COMMAND("remote_command"), + /** The {@code user_abort} variant. */ + USER_ABORT("user_abort"); + + private final String value; + AbortReason(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AbortReason fromValue(String value) { + for (AbortReason v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AbortReason value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java new file mode 100644 index 000000000..49de4cda2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.intent". Agent intent description for current activity or plan + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantIntentEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.intent"; } + + @JsonProperty("data") + private AssistantIntentEventData data; + + public AssistantIntentEventData getData() { return data; } + public void setData(AssistantIntentEventData data) { this.data = data; } + + /** Data payload for {@link AssistantIntentEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantIntentEventData( + /** Short description of what the agent is currently doing or planning to do */ + @JsonProperty("intent") String intent + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java new file mode 100644 index 000000000..cdc0e3e26 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.message_delta". Streaming assistant message delta for incremental response updates + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantMessageDeltaEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.message_delta"; } + + @JsonProperty("data") + private AssistantMessageDeltaEventData data; + + public AssistantMessageDeltaEventData getData() { return data; } + public void setData(AssistantMessageDeltaEventData data) { this.data = data; } + + /** Data payload for {@link AssistantMessageDeltaEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantMessageDeltaEventData( + /** Message ID this delta belongs to, matching the corresponding assistant.message event */ + @JsonProperty("messageId") String messageId, + /** Incremental text chunk to append to the message content */ + @JsonProperty("deltaContent") String deltaContent, + /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ + @JsonProperty("parentToolCallId") String parentToolCallId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java new file mode 100644 index 000000000..74d531008 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java @@ -0,0 +1,71 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.message". Assistant response containing text content, optional tool requests, and interaction metadata + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantMessageEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.message"; } + + @JsonProperty("data") + private AssistantMessageEventData data; + + public AssistantMessageEventData getData() { return data; } + public void setData(AssistantMessageEventData data) { this.data = data; } + + /** Data payload for {@link AssistantMessageEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantMessageEventData( + /** Unique identifier for this assistant message */ + @JsonProperty("messageId") String messageId, + /** Model that produced this assistant message, if known */ + @JsonProperty("model") String model, + /** The assistant's text response content */ + @JsonProperty("content") String content, + /** Tool invocations requested by the assistant in this message */ + @JsonProperty("toolRequests") List toolRequests, + /** Opaque/encrypted extended thinking data from Anthropic models. Session-bound and stripped on resume. */ + @JsonProperty("reasoningOpaque") String reasoningOpaque, + /** Readable reasoning text from the model's extended thinking */ + @JsonProperty("reasoningText") String reasoningText, + /** Encrypted reasoning content from OpenAI models. Session-bound and stripped on resume. */ + @JsonProperty("encryptedContent") String encryptedContent, + /** Generation phase for phased-output models (e.g., thinking vs. response phases) */ + @JsonProperty("phase") String phase, + /** Actual output token count from the API response (completion_tokens), used for accurate token accounting */ + @JsonProperty("outputTokens") Long outputTokens, + /** CAPI interaction ID for correlating this message with upstream telemetry */ + @JsonProperty("interactionId") String interactionId, + /** GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs */ + @JsonProperty("requestId") String requestId, + /** Raw Anthropic content array with advisor blocks (server_tool_use, advisor_tool_result) for verbatim round-tripping */ + @JsonProperty("anthropicAdvisorBlocks") List anthropicAdvisorBlocks, + /** Anthropic advisor model ID used for this response, for timeline display on replay */ + @JsonProperty("anthropicAdvisorModel") String anthropicAdvisorModel, + /** Identifier for the agent loop turn that produced this message, matching the corresponding assistant.turn_start event */ + @JsonProperty("turnId") String turnId, + /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ + @JsonProperty("parentToolCallId") String parentToolCallId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java new file mode 100644 index 000000000..f85e33b88 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.message_start". Streaming assistant message start metadata + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantMessageStartEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.message_start"; } + + @JsonProperty("data") + private AssistantMessageStartEventData data; + + public AssistantMessageStartEventData getData() { return data; } + public void setData(AssistantMessageStartEventData data) { this.data = data; } + + /** Data payload for {@link AssistantMessageStartEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantMessageStartEventData( + /** Message ID this start event belongs to, matching subsequent deltas and assistant.message */ + @JsonProperty("messageId") String messageId, + /** Generation phase this message belongs to for phased-output models */ + @JsonProperty("phase") String phase + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java new file mode 100644 index 000000000..201373401 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java @@ -0,0 +1,41 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * A tool invocation request from the assistant + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AssistantMessageToolRequest( + /** Unique identifier for this tool call */ + @JsonProperty("toolCallId") String toolCallId, + /** Name of the tool being invoked */ + @JsonProperty("name") String name, + /** Arguments to pass to the tool, format depends on the tool */ + @JsonProperty("arguments") Object arguments, + /** Tool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. Defaults to "function" when absent. */ + @JsonProperty("type") AssistantMessageToolRequestType type, + /** Human-readable display title for the tool */ + @JsonProperty("toolTitle") String toolTitle, + /** Name of the MCP server hosting this tool, when the tool is an MCP tool */ + @JsonProperty("mcpServerName") String mcpServerName, + /** Original tool name on the MCP server, when the tool is an MCP tool */ + @JsonProperty("mcpToolName") String mcpToolName, + /** Resolved intention summary describing what this specific call does */ + @JsonProperty("intentionSummary") String intentionSummary +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java new file mode 100644 index 000000000..acf6df7b4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Tool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. Defaults to "function" when absent. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AssistantMessageToolRequestType { + /** The {@code function} variant. */ + FUNCTION("function"), + /** The {@code custom} variant. */ + CUSTOM("custom"); + + private final String value; + AssistantMessageToolRequestType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AssistantMessageToolRequestType fromValue(String value) { + for (AssistantMessageToolRequestType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AssistantMessageToolRequestType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java new file mode 100644 index 000000000..f9d8b25b4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.reasoning_delta". Streaming reasoning delta for incremental extended thinking updates + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantReasoningDeltaEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.reasoning_delta"; } + + @JsonProperty("data") + private AssistantReasoningDeltaEventData data; + + public AssistantReasoningDeltaEventData getData() { return data; } + public void setData(AssistantReasoningDeltaEventData data) { this.data = data; } + + /** Data payload for {@link AssistantReasoningDeltaEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantReasoningDeltaEventData( + /** Reasoning block ID this delta belongs to, matching the corresponding assistant.reasoning event */ + @JsonProperty("reasoningId") String reasoningId, + /** Incremental text chunk to append to the reasoning content */ + @JsonProperty("deltaContent") String deltaContent + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java new file mode 100644 index 000000000..d84b40058 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.reasoning". Assistant reasoning content for timeline display with complete thinking text + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantReasoningEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.reasoning"; } + + @JsonProperty("data") + private AssistantReasoningEventData data; + + public AssistantReasoningEventData getData() { return data; } + public void setData(AssistantReasoningEventData data) { this.data = data; } + + /** Data payload for {@link AssistantReasoningEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantReasoningEventData( + /** Unique identifier for this reasoning block */ + @JsonProperty("reasoningId") String reasoningId, + /** The complete extended thinking text from the model */ + @JsonProperty("content") String content + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java new file mode 100644 index 000000000..e5eae1897 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.streaming_delta". Streaming response progress with cumulative byte count + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantStreamingDeltaEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.streaming_delta"; } + + @JsonProperty("data") + private AssistantStreamingDeltaEventData data; + + public AssistantStreamingDeltaEventData getData() { return data; } + public void setData(AssistantStreamingDeltaEventData data) { this.data = data; } + + /** Data payload for {@link AssistantStreamingDeltaEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantStreamingDeltaEventData( + /** Cumulative total bytes received from the streaming response so far */ + @JsonProperty("totalResponseSizeBytes") Long totalResponseSizeBytes + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java new file mode 100644 index 000000000..fa245915b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.turn_end". Turn completion metadata including the turn identifier + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantTurnEndEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.turn_end"; } + + @JsonProperty("data") + private AssistantTurnEndEventData data; + + public AssistantTurnEndEventData getData() { return data; } + public void setData(AssistantTurnEndEventData data) { this.data = data; } + + /** Data payload for {@link AssistantTurnEndEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantTurnEndEventData( + /** Identifier of the turn that has ended, matching the corresponding assistant.turn_start event */ + @JsonProperty("turnId") String turnId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java new file mode 100644 index 000000000..f090117bf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "assistant.turn_start". Turn initialization metadata including identifier and interaction tracking + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantTurnStartEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.turn_start"; } + + @JsonProperty("data") + private AssistantTurnStartEventData data; + + public AssistantTurnStartEventData getData() { return data; } + public void setData(AssistantTurnStartEventData data) { this.data = data; } + + /** Data payload for {@link AssistantTurnStartEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantTurnStartEventData( + /** Identifier for this turn within the agentic loop, typically a stringified turn number */ + @JsonProperty("turnId") String turnId, + /** CAPI interaction ID for correlating this turn with upstream telemetry */ + @JsonProperty("interactionId") String interactionId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java new file mode 100644 index 000000000..9f94c4a6e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * API endpoint used for this model call, matching CAPI supported_endpoints vocabulary + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AssistantUsageApiEndpoint { + /** The {@code /chat/completions} variant. */ + CHAT_COMPLETIONS("/chat/completions"), + /** The {@code /v1/messages} variant. */ + V1_MESSAGES("/v1/messages"), + /** The {@code /responses} variant. */ + RESPONSES("/responses"), + /** The {@code ws:/responses} variant. */ + WS_RESPONSES("ws:/responses"); + + private final String value; + AssistantUsageApiEndpoint(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AssistantUsageApiEndpoint fromValue(String value) { + for (AssistantUsageApiEndpoint v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AssistantUsageApiEndpoint value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java new file mode 100644 index 000000000..e9db8a530 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Per-request cost and usage data from the CAPI copilot_usage response field + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AssistantUsageCopilotUsage( + /** Itemized token usage breakdown */ + @JsonProperty("tokenDetails") List tokenDetails, + /** Total cost in nano-AI units for this request */ + @JsonProperty("totalNanoAiu") Double totalNanoAiu +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java new file mode 100644 index 000000000..9354568c7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token usage detail for a single billing category + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AssistantUsageCopilotUsageTokenDetail( + /** Number of tokens in this billing batch */ + @JsonProperty("batchSize") Long batchSize, + /** Cost per batch of tokens */ + @JsonProperty("costPerBatch") Long costPerBatch, + /** Total token count for this entry */ + @JsonProperty("tokenCount") Long tokenCount, + /** Token category (e.g., "input", "output") */ + @JsonProperty("tokenType") String tokenType +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java new file mode 100644 index 000000000..24b74c54f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java @@ -0,0 +1,77 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Session event "assistant.usage". LLM API call usage metrics including tokens, costs, quotas, and billing information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AssistantUsageEvent extends SessionEvent { + + @Override + public String getType() { return "assistant.usage"; } + + @JsonProperty("data") + private AssistantUsageEventData data; + + public AssistantUsageEventData getData() { return data; } + public void setData(AssistantUsageEventData data) { this.data = data; } + + /** Data payload for {@link AssistantUsageEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AssistantUsageEventData( + /** Model identifier used for this API call */ + @JsonProperty("model") String model, + /** Number of input tokens consumed */ + @JsonProperty("inputTokens") Long inputTokens, + /** Number of output tokens produced */ + @JsonProperty("outputTokens") Long outputTokens, + /** Number of tokens read from prompt cache */ + @JsonProperty("cacheReadTokens") Long cacheReadTokens, + /** Number of tokens written to prompt cache */ + @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, + /** Number of output tokens used for reasoning (e.g., chain-of-thought) */ + @JsonProperty("reasoningTokens") Long reasoningTokens, + /** Model multiplier cost for billing purposes */ + @JsonProperty("cost") Double cost, + /** Duration of the API call in milliseconds */ + @JsonProperty("duration") Long duration, + /** Time to first token in milliseconds. Only available for streaming requests */ + @JsonProperty("timeToFirstTokenMs") Long timeToFirstTokenMs, + /** Average inter-token latency in milliseconds. Only available for streaming requests */ + @JsonProperty("interTokenLatencyMs") Double interTokenLatencyMs, + /** What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls */ + @JsonProperty("initiator") String initiator, + /** Completion ID from the model provider (e.g., chatcmpl-abc123) */ + @JsonProperty("apiCallId") String apiCallId, + /** GitHub request tracing ID (x-github-request-id header) for server-side log correlation */ + @JsonProperty("providerCallId") String providerCallId, + /** API endpoint used for this model call, matching CAPI supported_endpoints vocabulary */ + @JsonProperty("apiEndpoint") AssistantUsageApiEndpoint apiEndpoint, + /** Parent tool call ID when this usage originates from a sub-agent */ + @JsonProperty("parentToolCallId") String parentToolCallId, + /** Per-quota resource usage snapshots, keyed by quota identifier */ + @JsonProperty("quotaSnapshots") Map quotaSnapshots, + /** Per-request cost and usage data from the CAPI copilot_usage response field */ + @JsonProperty("copilotUsage") AssistantUsageCopilotUsage copilotUsage, + /** Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max") */ + @JsonProperty("reasoningEffort") String reasoningEffort + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java new file mode 100644 index 000000000..167f42040 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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.time.OffsetDateTime; +import javax.annotation.processing.Generated; + +/** + * Schema for the `AssistantUsageQuotaSnapshot` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AssistantUsageQuotaSnapshot( + /** Whether the user has an unlimited usage entitlement */ + @JsonProperty("isUnlimitedEntitlement") Boolean isUnlimitedEntitlement, + /** Total requests allowed by the entitlement */ + @JsonProperty("entitlementRequests") Long entitlementRequests, + /** Number of requests already consumed */ + @JsonProperty("usedRequests") Long usedRequests, + /** Whether usage is still permitted after quota exhaustion */ + @JsonProperty("usageAllowedWithExhaustedQuota") Boolean usageAllowedWithExhaustedQuota, + /** Number of additional usage requests made this period */ + @JsonProperty("overage") Double overage, + /** Whether additional usage is allowed when quota is exhausted */ + @JsonProperty("overageAllowedWithExhaustedQuota") Boolean overageAllowedWithExhaustedQuota, + /** Percentage of quota remaining (0 to 100) */ + @JsonProperty("remainingPercentage") Double remainingPercentage, + /** Date when the quota resets */ + @JsonProperty("resetDate") OffsetDateTime resetDate +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java new file mode 100644 index 000000000..76a35dbb7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "auto_mode_switch.completed". Auto mode switch completion notification + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AutoModeSwitchCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "auto_mode_switch.completed"; } + + @JsonProperty("data") + private AutoModeSwitchCompletedEventData data; + + public AutoModeSwitchCompletedEventData getData() { return data; } + public void setData(AutoModeSwitchCompletedEventData data) { this.data = data; } + + /** Data payload for {@link AutoModeSwitchCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AutoModeSwitchCompletedEventData( + /** Request ID of the resolved request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId, + /** The user's auto-mode-switch choice */ + @JsonProperty("response") AutoModeSwitchResponse response + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java new file mode 100644 index 000000000..79fc5c316 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "auto_mode_switch.requested". Auto mode switch request notification requiring user approval + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class AutoModeSwitchRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "auto_mode_switch.requested"; } + + @JsonProperty("data") + private AutoModeSwitchRequestedEventData data; + + public AutoModeSwitchRequestedEventData getData() { return data; } + public void setData(AutoModeSwitchRequestedEventData data) { this.data = data; } + + /** Data payload for {@link AutoModeSwitchRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record AutoModeSwitchRequestedEventData( + /** Unique identifier for this request; used to respond via session.respondToAutoModeSwitch() */ + @JsonProperty("requestId") String requestId, + /** The rate limit error code that triggered this request */ + @JsonProperty("errorCode") String errorCode, + /** Seconds until the rate limit resets, when known. Lets clients render a humanized reset time alongside the prompt. */ + @JsonProperty("retryAfterSeconds") Long retryAfterSeconds + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java new file mode 100644 index 000000000..46745b66e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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 user's auto-mode-switch choice + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AutoModeSwitchResponse { + /** The {@code yes} variant. */ + YES("yes"), + /** The {@code yes_always} variant. */ + YES_ALWAYS("yes_always"), + /** The {@code no} variant. */ + NO("no"); + + private final String value; + AutoModeSwitchResponse(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoModeSwitchResponse fromValue(String value) { + for (AutoModeSwitchResponse v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AutoModeSwitchResponse value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java new file mode 100644 index 000000000..8f0d0809f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "capabilities.changed". Session capability change notification + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class CapabilitiesChangedEvent extends SessionEvent { + + @Override + public String getType() { return "capabilities.changed"; } + + @JsonProperty("data") + private CapabilitiesChangedEventData data; + + public CapabilitiesChangedEventData getData() { return data; } + public void setData(CapabilitiesChangedEventData data) { this.data = data; } + + /** Data payload for {@link CapabilitiesChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record CapabilitiesChangedEventData( + /** UI capability changes */ + @JsonProperty("ui") CapabilitiesChangedUI ui + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java b/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java new file mode 100644 index 000000000..89c211f6c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * UI capability changes + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CapabilitiesChangedUI( + /** Whether elicitation is now supported */ + @JsonProperty("elicitation") Boolean elicitation +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java new file mode 100644 index 000000000..a334edbb1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "command.completed". Queued command completion notification signaling UI dismissal + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class CommandCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "command.completed"; } + + @JsonProperty("data") + private CommandCompletedEventData data; + + public CommandCompletedEventData getData() { return data; } + public void setData(CommandCompletedEventData data) { this.data = data; } + + /** Data payload for {@link CommandCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record CommandCompletedEventData( + /** Request ID of the resolved command request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java new file mode 100644 index 000000000..efd840bbd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "command.execute". Registered command dispatch request routed to the owning client + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class CommandExecuteEvent extends SessionEvent { + + @Override + public String getType() { return "command.execute"; } + + @JsonProperty("data") + private CommandExecuteEventData data; + + public CommandExecuteEventData getData() { return data; } + public void setData(CommandExecuteEventData data) { this.data = data; } + + /** Data payload for {@link CommandExecuteEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record CommandExecuteEventData( + /** Unique identifier; used to respond via session.commands.handlePendingCommand() */ + @JsonProperty("requestId") String requestId, + /** The full command text (e.g., /deploy production) */ + @JsonProperty("command") String command, + /** Command name without leading / */ + @JsonProperty("commandName") String commandName, + /** Raw argument string after the command name */ + @JsonProperty("args") String args + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java new file mode 100644 index 000000000..518248aa9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "command.queued". Queued slash command dispatch request for client execution + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class CommandQueuedEvent extends SessionEvent { + + @Override + public String getType() { return "command.queued"; } + + @JsonProperty("data") + private CommandQueuedEventData data; + + public CommandQueuedEventData getData() { return data; } + public void setData(CommandQueuedEventData data) { this.data = data; } + + /** Data payload for {@link CommandQueuedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record CommandQueuedEventData( + /** Unique identifier for this request; used to respond via session.respondToQueuedCommand() */ + @JsonProperty("requestId") String requestId, + /** The slash command text to be executed (e.g., /help, /clear) */ + @JsonProperty("command") String command + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java b/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java new file mode 100644 index 000000000..383f141fc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `CommandsChangedCommand` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CommandsChangedCommand( + /** Slash command name without the leading slash. */ + @JsonProperty("name") String name, + /** Optional human-readable command description. */ + @JsonProperty("description") String description +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java new file mode 100644 index 000000000..a3f8fba19 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "commands.changed". SDK command registration change notification + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class CommandsChangedEvent extends SessionEvent { + + @Override + public String getType() { return "commands.changed"; } + + @JsonProperty("data") + private CommandsChangedEventData data; + + public CommandsChangedEventData getData() { return data; } + public void setData(CommandsChangedEventData data) { this.data = data; } + + /** Data payload for {@link CommandsChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record CommandsChangedEventData( + /** Current list of registered SDK commands */ + @JsonProperty("commands") List commands + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java new file mode 100644 index 000000000..ed454deaf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token usage breakdown for the compaction LLM call (aligned with assistant.usage format) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CompactionCompleteCompactionTokensUsed( + /** Input tokens consumed by the compaction LLM call */ + @JsonProperty("inputTokens") Long inputTokens, + /** Output tokens produced by the compaction LLM call */ + @JsonProperty("outputTokens") Long outputTokens, + /** Cached input tokens reused in the compaction LLM call */ + @JsonProperty("cacheReadTokens") Long cacheReadTokens, + /** Tokens written to prompt cache in the compaction LLM call */ + @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, + /** Per-request cost and usage data from the CAPI copilot_usage response field */ + @JsonProperty("copilotUsage") CompactionCompleteCompactionTokensUsedCopilotUsage copilotUsage, + /** Duration of the compaction LLM call in milliseconds */ + @JsonProperty("duration") Long duration, + /** Model identifier used for the compaction LLM call */ + @JsonProperty("model") String model +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java new file mode 100644 index 000000000..886229cc6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Per-request cost and usage data from the CAPI copilot_usage response field + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CompactionCompleteCompactionTokensUsedCopilotUsage( + /** Itemized token usage breakdown */ + @JsonProperty("tokenDetails") List tokenDetails, + /** Total cost in nano-AI units for this request */ + @JsonProperty("totalNanoAiu") Double totalNanoAiu +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java new file mode 100644 index 000000000..83209f94c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token usage detail for a single billing category + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail( + /** Number of tokens in this billing batch */ + @JsonProperty("batchSize") Long batchSize, + /** Cost per batch of tokens */ + @JsonProperty("costPerBatch") Long costPerBatch, + /** Total token count for this entry */ + @JsonProperty("tokenCount") Long tokenCount, + /** Token category (e.g., "input", "output") */ + @JsonProperty("tokenType") String tokenType +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java b/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java new file mode 100644 index 000000000..642be8694 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Schema for the `CustomAgentsUpdatedAgent` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CustomAgentsUpdatedAgent( + /** Unique identifier for the agent */ + @JsonProperty("id") String id, + /** Internal name of the agent */ + @JsonProperty("name") String name, + /** Human-readable display name */ + @JsonProperty("displayName") String displayName, + /** Description of what the agent does */ + @JsonProperty("description") String description, + /** Source location: user, project, inherited, remote, or plugin */ + @JsonProperty("source") String source, + /** List of tool names available to this agent, or null when all tools are available */ + @JsonProperty("tools") List tools, + /** Whether the agent can be selected by the user */ + @JsonProperty("userInvocable") Boolean userInvocable, + /** Model override for this agent, if set */ + @JsonProperty("model") String model +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java new file mode 100644 index 000000000..cc6026f25 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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 user action: "accept" (submitted form), "decline" (explicitly refused), or "cancel" (dismissed) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ElicitationCompletedAction { + /** The {@code accept} variant. */ + ACCEPT("accept"), + /** The {@code decline} variant. */ + DECLINE("decline"), + /** The {@code cancel} variant. */ + CANCEL("cancel"); + + private final String value; + ElicitationCompletedAction(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ElicitationCompletedAction fromValue(String value) { + for (ElicitationCompletedAction v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ElicitationCompletedAction value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java new file mode 100644 index 000000000..454cc43a0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Session event "elicitation.completed". Elicitation request completion with the user's response + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ElicitationCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "elicitation.completed"; } + + @JsonProperty("data") + private ElicitationCompletedEventData data; + + public ElicitationCompletedEventData getData() { return data; } + public void setData(ElicitationCompletedEventData data) { this.data = data; } + + /** Data payload for {@link ElicitationCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ElicitationCompletedEventData( + /** Request ID of the resolved elicitation request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId, + /** The user action: "accept" (submitted form), "decline" (explicitly refused), or "cancel" (dismissed) */ + @JsonProperty("action") ElicitationCompletedAction action, + /** The submitted form data when action is 'accept'; keys match the requested schema fields */ + @JsonProperty("content") Map content + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java new file mode 100644 index 000000000..6c8aa2547 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "elicitation.requested". Elicitation request; may be form-based (structured input) or URL-based (browser redirect) + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ElicitationRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "elicitation.requested"; } + + @JsonProperty("data") + private ElicitationRequestedEventData data; + + public ElicitationRequestedEventData getData() { return data; } + public void setData(ElicitationRequestedEventData data) { this.data = data; } + + /** Data payload for {@link ElicitationRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ElicitationRequestedEventData( + /** Unique identifier for this elicitation request; used to respond via session.respondToElicitation() */ + @JsonProperty("requestId") String requestId, + /** Tool call ID from the LLM completion; used to correlate with CompletionChunk.toolCall.id for remote UIs */ + @JsonProperty("toolCallId") String toolCallId, + /** The source that initiated the request (MCP server name, or absent for agent-initiated) */ + @JsonProperty("elicitationSource") String elicitationSource, + /** Message describing what information is needed from the user */ + @JsonProperty("message") String message, + /** Elicitation mode; "form" for structured input, "url" for browser-based. Defaults to "form" when absent. */ + @JsonProperty("mode") ElicitationRequestedMode mode, + /** JSON Schema describing the form fields to present to the user (form mode only) */ + @JsonProperty("requestedSchema") ElicitationRequestedSchema requestedSchema, + /** URL to open in the user's browser (url mode only) */ + @JsonProperty("url") String url + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java new file mode 100644 index 000000000..49538450d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Elicitation mode; "form" for structured input, "url" for browser-based. Defaults to "form" when absent. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ElicitationRequestedMode { + /** The {@code form} variant. */ + FORM("form"), + /** The {@code url} variant. */ + URL("url"); + + private final String value; + ElicitationRequestedMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ElicitationRequestedMode fromValue(String value) { + for (ElicitationRequestedMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ElicitationRequestedMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java new file mode 100644 index 000000000..d6ad62b4b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 java.util.Map; +import javax.annotation.processing.Generated; + +/** + * JSON Schema describing the form fields to present to the user (form mode only) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ElicitationRequestedSchema( + /** Schema type indicator (always 'object') */ + @JsonProperty("type") String type, + /** Form field definitions, keyed by field name */ + @JsonProperty("properties") Map properties, + /** List of required field names */ + @JsonProperty("required") List required +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java new file mode 100644 index 000000000..6d8664141 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Exit plan mode action + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ExitPlanModeAction { + /** The {@code exit_only} variant. */ + EXIT_ONLY("exit_only"), + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"), + /** The {@code autopilot_fleet} variant. */ + AUTOPILOT_FLEET("autopilot_fleet"); + + private final String value; + ExitPlanModeAction(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ExitPlanModeAction fromValue(String value) { + for (ExitPlanModeAction v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ExitPlanModeAction value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java new file mode 100644 index 000000000..6056a570e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java @@ -0,0 +1,50 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "exit_plan_mode.completed". Plan mode exit completion with the user's approval decision and optional feedback + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ExitPlanModeCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "exit_plan_mode.completed"; } + + @JsonProperty("data") + private ExitPlanModeCompletedEventData data; + + public ExitPlanModeCompletedEventData getData() { return data; } + public void setData(ExitPlanModeCompletedEventData data) { this.data = data; } + + /** Data payload for {@link ExitPlanModeCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ExitPlanModeCompletedEventData( + /** Request ID of the resolved exit plan mode request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId, + /** Whether the plan was approved by the user */ + @JsonProperty("approved") Boolean approved, + /** Action selected by the user */ + @JsonProperty("selectedAction") ExitPlanModeAction selectedAction, + /** Whether edits should be auto-approved without confirmation */ + @JsonProperty("autoApproveEdits") Boolean autoApproveEdits, + /** Free-form feedback from the user if they requested changes to the plan */ + @JsonProperty("feedback") String feedback + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java new file mode 100644 index 000000000..134e01cbb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java @@ -0,0 +1,51 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "exit_plan_mode.requested". Plan approval request with plan content and available user actions + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ExitPlanModeRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "exit_plan_mode.requested"; } + + @JsonProperty("data") + private ExitPlanModeRequestedEventData data; + + public ExitPlanModeRequestedEventData getData() { return data; } + public void setData(ExitPlanModeRequestedEventData data) { this.data = data; } + + /** Data payload for {@link ExitPlanModeRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ExitPlanModeRequestedEventData( + /** Unique identifier for this request; used to respond via session.respondToExitPlanMode() */ + @JsonProperty("requestId") String requestId, + /** Summary of the plan that was created */ + @JsonProperty("summary") String summary, + /** Full content of the plan file */ + @JsonProperty("planContent") String planContent, + /** Available actions the user can take */ + @JsonProperty("actions") List actions, + /** Recommended action to preselect for the user */ + @JsonProperty("recommendedAction") ExitPlanModeAction recommendedAction + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java new file mode 100644 index 000000000..b47f308c8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `ExtensionsLoadedExtension` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ExtensionsLoadedExtension( + /** Source-qualified extension ID (e.g., 'project:my-ext', 'user:auth-helper') */ + @JsonProperty("id") String id, + /** Extension name (directory name) */ + @JsonProperty("name") String name, + /** Discovery source */ + @JsonProperty("source") ExtensionsLoadedExtensionSource source, + /** Current status: running, disabled, failed, or starting */ + @JsonProperty("status") ExtensionsLoadedExtensionStatus status +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java new file mode 100644 index 000000000..abf991a01 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Discovery source + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ExtensionsLoadedExtensionSource { + /** The {@code project} variant. */ + PROJECT("project"), + /** The {@code user} variant. */ + USER("user"); + + private final String value; + ExtensionsLoadedExtensionSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ExtensionsLoadedExtensionSource fromValue(String value) { + for (ExtensionsLoadedExtensionSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ExtensionsLoadedExtensionSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java new file mode 100644 index 000000000..8f8ca0b65 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Current status: running, disabled, failed, or starting + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ExtensionsLoadedExtensionStatus { + /** The {@code running} variant. */ + RUNNING("running"), + /** The {@code disabled} variant. */ + DISABLED("disabled"), + /** The {@code failed} variant. */ + FAILED("failed"), + /** The {@code starting} variant. */ + STARTING("starting"); + + private final String value; + ExtensionsLoadedExtensionStatus(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ExtensionsLoadedExtensionStatus fromValue(String value) { + for (ExtensionsLoadedExtensionStatus v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ExtensionsLoadedExtensionStatus value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java new file mode 100644 index 000000000..cfd9828e7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "external_tool.completed". External tool completion notification signaling UI dismissal + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ExternalToolCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "external_tool.completed"; } + + @JsonProperty("data") + private ExternalToolCompletedEventData data; + + public ExternalToolCompletedEventData getData() { return data; } + public void setData(ExternalToolCompletedEventData data) { this.data = data; } + + /** Data payload for {@link ExternalToolCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ExternalToolCompletedEventData( + /** Request ID of the resolved external tool request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java new file mode 100644 index 000000000..1f5a3a205 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "external_tool.requested". External tool invocation request for client-side tool execution + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ExternalToolRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "external_tool.requested"; } + + @JsonProperty("data") + private ExternalToolRequestedEventData data; + + public ExternalToolRequestedEventData getData() { return data; } + public void setData(ExternalToolRequestedEventData data) { this.data = data; } + + /** Data payload for {@link ExternalToolRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ExternalToolRequestedEventData( + /** Unique identifier for this request; used to respond via session.respondToExternalTool() */ + @JsonProperty("requestId") String requestId, + /** Session ID that this external tool request belongs to */ + @JsonProperty("sessionId") String sessionId, + /** Tool call ID assigned to this external tool invocation */ + @JsonProperty("toolCallId") String toolCallId, + /** Name of the external tool to invoke */ + @JsonProperty("toolName") String toolName, + /** Arguments to pass to the external tool */ + @JsonProperty("arguments") Object arguments, + /** W3C Trace Context traceparent header for the execute_tool span */ + @JsonProperty("traceparent") String traceparent, + /** W3C Trace Context tracestate header for the execute_tool span */ + @JsonProperty("tracestate") String tracestate + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java b/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java new file mode 100644 index 000000000..e54226a8b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Repository context for the handed-off session + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record HandoffRepository( + /** Repository owner (user or organization) */ + @JsonProperty("owner") String owner, + /** Repository name */ + @JsonProperty("name") String name, + /** Git branch name, if applicable */ + @JsonProperty("branch") String branch +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java b/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java new file mode 100644 index 000000000..83d667782 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Origin type of the session being handed off + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum HandoffSourceType { + /** The {@code remote} variant. */ + REMOTE("remote"), + /** The {@code local} variant. */ + LOCAL("local"); + + private final String value; + HandoffSourceType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static HandoffSourceType fromValue(String value) { + for (HandoffSourceType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown HandoffSourceType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java b/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java new file mode 100644 index 000000000..59646b3cc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Error details when the hook failed + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record HookEndError( + /** Human-readable error message */ + @JsonProperty("message") String message, + /** Error stack trace, when available */ + @JsonProperty("stack") String stack +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java b/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java new file mode 100644 index 000000000..1b90f5fa9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java @@ -0,0 +1,50 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "hook.end". Hook invocation completion details including output, success status, and error information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class HookEndEvent extends SessionEvent { + + @Override + public String getType() { return "hook.end"; } + + @JsonProperty("data") + private HookEndEventData data; + + public HookEndEventData getData() { return data; } + public void setData(HookEndEventData data) { this.data = data; } + + /** Data payload for {@link HookEndEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record HookEndEventData( + /** Identifier matching the corresponding hook.start event */ + @JsonProperty("hookInvocationId") String hookInvocationId, + /** Type of hook that was invoked (e.g., "preToolUse", "postToolUse", "sessionStart") */ + @JsonProperty("hookType") String hookType, + /** Output data produced by the hook */ + @JsonProperty("output") Object output, + /** Whether the hook completed successfully */ + @JsonProperty("success") Boolean success, + /** Error details when the hook failed */ + @JsonProperty("error") HookEndError error + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java new file mode 100644 index 000000000..f4605ce25 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "hook.start". Hook invocation start details including type and input data + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class HookStartEvent extends SessionEvent { + + @Override + public String getType() { return "hook.start"; } + + @JsonProperty("data") + private HookStartEventData data; + + public HookStartEventData getData() { return data; } + public void setData(HookStartEventData data) { this.data = data; } + + /** Data payload for {@link HookStartEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record HookStartEventData( + /** Unique identifier for this hook invocation */ + @JsonProperty("hookInvocationId") String hookInvocationId, + /** Type of hook being invoked (e.g., "preToolUse", "postToolUse", "sessionStart") */ + @JsonProperty("hookType") String hookType, + /** Input data passed to the hook */ + @JsonProperty("input") Object input + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java new file mode 100644 index 000000000..f02c7d42a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "mcp.oauth_completed". MCP OAuth request completion notification + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class McpOauthCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "mcp.oauth_completed"; } + + @JsonProperty("data") + private McpOauthCompletedEventData data; + + public McpOauthCompletedEventData getData() { return data; } + public void setData(McpOauthCompletedEventData data) { this.data = data; } + + /** Data payload for {@link McpOauthCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record McpOauthCompletedEventData( + /** Request ID of the resolved OAuth request */ + @JsonProperty("requestId") String requestId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java b/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java new file mode 100644 index 000000000..c384afcf0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "mcp.oauth_required". OAuth authentication request for an MCP server + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class McpOauthRequiredEvent extends SessionEvent { + + @Override + public String getType() { return "mcp.oauth_required"; } + + @JsonProperty("data") + private McpOauthRequiredEventData data; + + public McpOauthRequiredEventData getData() { return data; } + public void setData(McpOauthRequiredEventData data) { this.data = data; } + + /** Data payload for {@link McpOauthRequiredEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record McpOauthRequiredEventData( + /** Unique identifier for this OAuth request; used to respond via session.respondToMcpOAuth() */ + @JsonProperty("requestId") String requestId, + /** Display name of the MCP server that requires OAuth */ + @JsonProperty("serverName") String serverName, + /** URL of the MCP server that requires OAuth */ + @JsonProperty("serverUrl") String serverUrl, + /** Static OAuth client configuration, if the server specifies one */ + @JsonProperty("staticClientConfig") McpOauthRequiredStaticClientConfig staticClientConfig + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java b/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java new file mode 100644 index 000000000..764f8b7fc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Static OAuth client configuration, if the server specifies one + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpOauthRequiredStaticClientConfig( + /** OAuth client ID for the server */ + @JsonProperty("clientId") String clientId, + /** Whether this is a public OAuth client */ + @JsonProperty("publicClient") Boolean publicClient, + /** Optional non-default OAuth grant type. When set to 'client_credentials', the OAuth flow runs headlessly using the client_id + keychain-stored secret (no browser, no callback server). */ + @JsonProperty("grantType") String grantType +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java b/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java new file mode 100644 index 000000000..63514743a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Configuration source: user, workspace, plugin, or builtin + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum McpServerSource { + /** 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; + McpServerSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpServerSource fromValue(String value) { + for (McpServerSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpServerSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java b/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java new file mode 100644 index 000000000..b5bb08093 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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 McpServerStatus { + /** 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; + McpServerStatus(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpServerStatus fromValue(String value) { + for (McpServerStatus v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpServerStatus value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java b/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java new file mode 100644 index 000000000..aba91bdef --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `McpServersLoadedServer` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpServersLoadedServer( + /** Server name (config key) */ + @JsonProperty("name") String name, + /** Connection status: connected, failed, needs-auth, pending, disabled, or not_configured */ + @JsonProperty("status") McpServerStatus status, + /** Configuration source: user, workspace, plugin, or builtin */ + @JsonProperty("source") McpServerSource source, + /** Error message if the server failed to connect */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java new file mode 100644 index 000000000..e4df71384 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "model.call_failure". Failed LLM API call metadata for telemetry + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ModelCallFailureEvent extends SessionEvent { + + @Override + public String getType() { return "model.call_failure"; } + + @JsonProperty("data") + private ModelCallFailureEventData data; + + public ModelCallFailureEventData getData() { return data; } + public void setData(ModelCallFailureEventData data) { this.data = data; } + + /** Data payload for {@link ModelCallFailureEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ModelCallFailureEventData( + /** Model identifier used for the failed API call */ + @JsonProperty("model") String model, + /** What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls */ + @JsonProperty("initiator") String initiator, + /** Completion ID from the model provider (e.g., chatcmpl-abc123) */ + @JsonProperty("apiCallId") String apiCallId, + /** GitHub request tracing ID (x-github-request-id header) for server-side log correlation */ + @JsonProperty("providerCallId") String providerCallId, + /** HTTP status code from the failed request */ + @JsonProperty("statusCode") Long statusCode, + /** Duration of the failed API call in milliseconds */ + @JsonProperty("durationMs") Long durationMs, + /** Where the failed model call originated */ + @JsonProperty("source") ModelCallFailureSource source, + /** Raw provider/runtime error message for restricted telemetry */ + @JsonProperty("errorMessage") String errorMessage + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java b/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java new file mode 100644 index 000000000..747112c3d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Where the failed model call originated + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ModelCallFailureSource { + /** The {@code top_level} variant. */ + TOP_LEVEL("top_level"), + /** The {@code subagent} variant. */ + SUBAGENT("subagent"), + /** The {@code mcp_sampling} variant. */ + MCP_SAMPLING("mcp_sampling"); + + private final String value; + ModelCallFailureSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelCallFailureSource fromValue(String value) { + for (ModelCallFailureSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ModelCallFailureSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java new file mode 100644 index 000000000..2b7fecee0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "pending_messages.modified". Empty payload; the event signals that the pending message queue has changed + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class PendingMessagesModifiedEvent extends SessionEvent { + + @Override + public String getType() { return "pending_messages.modified"; } + + @JsonProperty("data") + private PendingMessagesModifiedEventData data; + + public PendingMessagesModifiedEventData getData() { return data; } + public void setData(PendingMessagesModifiedEventData data) { this.data = data; } + + /** Data payload for {@link PendingMessagesModifiedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record PendingMessagesModifiedEventData() { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java new file mode 100644 index 000000000..e389863d3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "permission.completed". Permission request completion notification signaling UI dismissal + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class PermissionCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "permission.completed"; } + + @JsonProperty("data") + private PermissionCompletedEventData data; + + public PermissionCompletedEventData getData() { return data; } + public void setData(PermissionCompletedEventData data) { this.data = data; } + + /** Data payload for {@link PermissionCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record PermissionCompletedEventData( + /** Request ID of the resolved permission request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId, + /** Optional tool call ID associated with this permission prompt; clients may use it to correlate UI created from tool-scoped prompts */ + @JsonProperty("toolCallId") String toolCallId, + /** The result of the permission request */ + @JsonProperty("result") Object result + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java new file mode 100644 index 000000000..2d7988062 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "permission.requested". Permission request notification requiring client approval with request details + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class PermissionRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "permission.requested"; } + + @JsonProperty("data") + private PermissionRequestedEventData data; + + public PermissionRequestedEventData getData() { return data; } + public void setData(PermissionRequestedEventData data) { this.data = data; } + + /** Data payload for {@link PermissionRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record PermissionRequestedEventData( + /** Unique identifier for this permission request; used to respond via session.respondToPermission() */ + @JsonProperty("requestId") String requestId, + /** Details of the permission being requested */ + @JsonProperty("permissionRequest") Object permissionRequest, + /** Derived user-facing permission prompt details for UI consumers */ + @JsonProperty("promptRequest") Object promptRequest, + /** When true, this permission was already resolved by a permissionRequest hook and requires no client action */ + @JsonProperty("resolvedByHook") Boolean resolvedByHook + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java b/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java new file mode 100644 index 000000000..35d4fece4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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 type of operation performed on the plan file + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum PlanChangedOperation { + /** The {@code create} variant. */ + CREATE("create"), + /** The {@code update} variant. */ + UPDATE("update"), + /** The {@code delete} variant. */ + DELETE("delete"); + + private final String value; + PlanChangedOperation(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static PlanChangedOperation fromValue(String value) { + for (PlanChangedOperation v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown PlanChangedOperation value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java b/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java new file mode 100644 index 000000000..a2b6d3e02 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Reasoning summary mode used for model calls, if applicable (e.g. "none", "concise", "detailed") + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ReasoningSummary { + /** The {@code none} variant. */ + NONE("none"), + /** The {@code concise} variant. */ + CONCISE("concise"), + /** The {@code detailed} variant. */ + DETAILED("detailed"); + + private final String value; + ReasoningSummary(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ReasoningSummary fromValue(String value) { + for (ReasoningSummary v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ReasoningSummary value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java new file mode 100644 index 000000000..0cf0e9daa --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "sampling.completed". Sampling request completion notification signaling UI dismissal + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SamplingCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "sampling.completed"; } + + @JsonProperty("data") + private SamplingCompletedEventData data; + + public SamplingCompletedEventData getData() { return data; } + public void setData(SamplingCompletedEventData data) { this.data = data; } + + /** Data payload for {@link SamplingCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SamplingCompletedEventData( + /** Request ID of the resolved sampling request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java new file mode 100644 index 000000000..1982f552c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "sampling.requested". Sampling request from an MCP server; contains the server name and a requestId for correlation + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SamplingRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "sampling.requested"; } + + @JsonProperty("data") + private SamplingRequestedEventData data; + + public SamplingRequestedEventData getData() { return data; } + public void setData(SamplingRequestedEventData data) { this.data = data; } + + /** Data payload for {@link SamplingRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SamplingRequestedEventData( + /** Unique identifier for this sampling request; used to respond via session.respondToSampling() */ + @JsonProperty("requestId") String requestId, + /** Name of the MCP server that initiated the sampling request */ + @JsonProperty("serverName") String serverName, + /** The JSON-RPC request ID from the MCP protocol */ + @JsonProperty("mcpRequestId") Object mcpRequestId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java new file mode 100644 index 000000000..2a712ae49 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.background_tasks_changed". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionBackgroundTasksChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.background_tasks_changed"; } + + @JsonProperty("data") + private SessionBackgroundTasksChangedEventData data; + + public SessionBackgroundTasksChangedEventData getData() { return data; } + public void setData(SessionBackgroundTasksChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionBackgroundTasksChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionBackgroundTasksChangedEventData() { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java new file mode 100644 index 000000000..a1e418d9c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java @@ -0,0 +1,72 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.compaction_complete". Conversation compaction results including success status, metrics, and optional error details + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionCompactionCompleteEvent extends SessionEvent { + + @Override + public String getType() { return "session.compaction_complete"; } + + @JsonProperty("data") + private SessionCompactionCompleteEventData data; + + public SessionCompactionCompleteEventData getData() { return data; } + public void setData(SessionCompactionCompleteEventData data) { this.data = data; } + + /** Data payload for {@link SessionCompactionCompleteEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionCompactionCompleteEventData( + /** Whether compaction completed successfully */ + @JsonProperty("success") Boolean success, + /** Error message if compaction failed */ + @JsonProperty("error") String error, + /** Total tokens in conversation before compaction */ + @JsonProperty("preCompactionTokens") Long preCompactionTokens, + /** Total tokens in conversation after compaction */ + @JsonProperty("postCompactionTokens") Long postCompactionTokens, + /** Number of messages before compaction */ + @JsonProperty("preCompactionMessagesLength") Long preCompactionMessagesLength, + /** Number of messages removed during compaction */ + @JsonProperty("messagesRemoved") Long messagesRemoved, + /** Number of tokens removed during compaction */ + @JsonProperty("tokensRemoved") Long tokensRemoved, + /** User-supplied focus instructions provided to a manual `/compact` invocation. Omitted for automatic compaction and for manual compaction with no focus text. */ + @JsonProperty("customInstructions") String customInstructions, + /** LLM-generated summary of the compacted conversation history */ + @JsonProperty("summaryContent") String summaryContent, + /** Checkpoint snapshot number created for recovery */ + @JsonProperty("checkpointNumber") Long checkpointNumber, + /** File path where the checkpoint was stored */ + @JsonProperty("checkpointPath") String checkpointPath, + /** Token usage breakdown for the compaction LLM call (aligned with assistant.usage format) */ + @JsonProperty("compactionTokensUsed") CompactionCompleteCompactionTokensUsed compactionTokensUsed, + /** GitHub request tracing ID (x-github-request-id header) for the compaction LLM call */ + @JsonProperty("requestId") String requestId, + /** Token count from system message(s) after compaction */ + @JsonProperty("systemTokens") Long systemTokens, + /** Token count from non-system messages (user, assistant, tool) after compaction */ + @JsonProperty("conversationTokens") Long conversationTokens, + /** Token count from tool definitions after compaction */ + @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java new file mode 100644 index 000000000..90fcd76b6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.compaction_start". Context window breakdown at the start of LLM-powered conversation compaction + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionCompactionStartEvent extends SessionEvent { + + @Override + public String getType() { return "session.compaction_start"; } + + @JsonProperty("data") + private SessionCompactionStartEventData data; + + public SessionCompactionStartEventData getData() { return data; } + public void setData(SessionCompactionStartEventData data) { this.data = data; } + + /** Data payload for {@link SessionCompactionStartEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionCompactionStartEventData( + /** Token count from system message(s) at compaction start */ + @JsonProperty("systemTokens") Long systemTokens, + /** Token count from non-system messages (user, assistant, tool) at compaction start */ + @JsonProperty("conversationTokens") Long conversationTokens, + /** Token count from tool definitions at compaction start */ + @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java new file mode 100644 index 000000000..1fc5ef0ea --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.context_changed". Updated working directory and git context after the change + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionContextChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.context_changed"; } + + @JsonProperty("data") + private SessionContextChangedEventData data; + + public SessionContextChangedEventData getData() { return data; } + public void setData(SessionContextChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionContextChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionContextChangedEventData( + /** Current working directory path */ + @JsonProperty("cwd") String cwd, + /** Root directory of the git repository, resolved via git rev-parse */ + @JsonProperty("gitRoot") String gitRoot, + /** Repository identifier derived from the git remote URL ("owner/name" for GitHub, "org/project/repo" for Azure DevOps) */ + @JsonProperty("repository") String repository, + /** Hosting platform type of the repository (github or ado) */ + @JsonProperty("hostType") WorkingDirectoryContextHostType hostType, + /** Raw host string from the git remote URL (e.g. "github.com", "mycompany.ghe.com", "dev.azure.com") */ + @JsonProperty("repositoryHost") String repositoryHost, + /** Current git branch name */ + @JsonProperty("branch") String branch, + /** Head commit of current git branch at session start time */ + @JsonProperty("headCommit") String headCommit, + /** Base commit of current git branch at session start time */ + @JsonProperty("baseCommit") String baseCommit + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java new file mode 100644 index 000000000..9ceed8c65 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.custom_agents_updated". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionCustomAgentsUpdatedEvent extends SessionEvent { + + @Override + public String getType() { return "session.custom_agents_updated"; } + + @JsonProperty("data") + private SessionCustomAgentsUpdatedEventData data; + + public SessionCustomAgentsUpdatedEventData getData() { return data; } + public void setData(SessionCustomAgentsUpdatedEventData data) { this.data = data; } + + /** Data payload for {@link SessionCustomAgentsUpdatedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionCustomAgentsUpdatedEventData( + /** Array of loaded custom agent metadata */ + @JsonProperty("agents") List agents, + /** Non-fatal warnings from agent loading */ + @JsonProperty("warnings") List warnings, + /** Fatal errors from agent loading */ + @JsonProperty("errors") List errors + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java new file mode 100644 index 000000000..499d143d4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java @@ -0,0 +1,51 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Session event "session.custom_notification". Opaque custom notification data. Consumers may branch on source and name, but payload semantics are source-defined. + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionCustomNotificationEvent extends SessionEvent { + + @Override + public String getType() { return "session.custom_notification"; } + + @JsonProperty("data") + private SessionCustomNotificationEventData data; + + public SessionCustomNotificationEventData getData() { return data; } + public void setData(SessionCustomNotificationEventData data) { this.data = data; } + + /** Data payload for {@link SessionCustomNotificationEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionCustomNotificationEventData( + /** Namespace for the custom notification producer */ + @JsonProperty("source") String source, + /** Source-defined custom notification name */ + @JsonProperty("name") String name, + /** Optional source-defined payload schema version */ + @JsonProperty("version") Long version, + /** Optional source-defined string identifiers describing the payload subject */ + @JsonProperty("subject") Map subject, + /** Source-defined JSON payload for the custom notification */ + @JsonProperty("payload") Object payload + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java new file mode 100644 index 000000000..c644adcef --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.error". Error details for timeline display including message and optional diagnostic information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionErrorEvent extends SessionEvent { + + @Override + public String getType() { return "session.error"; } + + @JsonProperty("data") + private SessionErrorEventData data; + + public SessionErrorEventData getData() { return data; } + public void setData(SessionErrorEventData data) { this.data = data; } + + /** Data payload for {@link SessionErrorEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionErrorEventData( + /** Category of error (e.g., "authentication", "authorization", "quota", "rate_limit", "context_limit", "query") */ + @JsonProperty("errorType") String errorType, + /** Fine-grained error code from the upstream provider, when available. For `errorType: "rate_limit"`, this is one of the `RateLimitErrorCode` values (e.g., `"user_weekly_rate_limited"`, `"user_global_rate_limited"`, `"rate_limited"`, `"user_model_rate_limited"`, `"integration_rate_limited"`). For `errorType: "quota"`, this is the CAPI quota error code (e.g., `"quota_exceeded"`, `"session_quota_exceeded"`, `"billing_not_configured"`). */ + @JsonProperty("errorCode") String errorCode, + /** Only set on `errorType: "rate_limit"`. When `true`, the runtime will follow this error with an `auto_mode_switch.requested` event (or silently switch if `continueOnAutoMode` is enabled). UI clients can use this flag to suppress duplicate rendering of the rate-limit error when they show their own auto-mode-switch prompt. */ + @JsonProperty("eligibleForAutoSwitch") Boolean eligibleForAutoSwitch, + /** Human-readable error message */ + @JsonProperty("message") String message, + /** Error stack trace, when available */ + @JsonProperty("stack") String stack, + /** HTTP status code from the upstream request, if applicable */ + @JsonProperty("statusCode") Long statusCode, + /** GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs */ + @JsonProperty("providerCallId") String providerCallId, + /** Optional URL associated with this error that the user can open in a browser */ + @JsonProperty("url") String url + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java new file mode 100644 index 000000000..e27096264 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java @@ -0,0 +1,229 @@ +/*--------------------------------------------------------------------------------------------- + * 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 com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.UUID; +import javax.annotation.processing.Generated; + +/** + * Base class for all generated session events. + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true, defaultImpl = UnknownSessionEvent.class) +@JsonSubTypes({ + @JsonSubTypes.Type(value = SessionStartEvent.class, name = "session.start"), + @JsonSubTypes.Type(value = SessionResumeEvent.class, name = "session.resume"), + @JsonSubTypes.Type(value = SessionRemoteSteerableChangedEvent.class, name = "session.remote_steerable_changed"), + @JsonSubTypes.Type(value = SessionErrorEvent.class, name = "session.error"), + @JsonSubTypes.Type(value = SessionIdleEvent.class, name = "session.idle"), + @JsonSubTypes.Type(value = SessionTitleChangedEvent.class, name = "session.title_changed"), + @JsonSubTypes.Type(value = SessionScheduleCreatedEvent.class, name = "session.schedule_created"), + @JsonSubTypes.Type(value = SessionScheduleCancelledEvent.class, name = "session.schedule_cancelled"), + @JsonSubTypes.Type(value = SessionInfoEvent.class, name = "session.info"), + @JsonSubTypes.Type(value = SessionWarningEvent.class, name = "session.warning"), + @JsonSubTypes.Type(value = SessionModelChangeEvent.class, name = "session.model_change"), + @JsonSubTypes.Type(value = SessionModeChangedEvent.class, name = "session.mode_changed"), + @JsonSubTypes.Type(value = SessionPlanChangedEvent.class, name = "session.plan_changed"), + @JsonSubTypes.Type(value = SessionWorkspaceFileChangedEvent.class, name = "session.workspace_file_changed"), + @JsonSubTypes.Type(value = SessionHandoffEvent.class, name = "session.handoff"), + @JsonSubTypes.Type(value = SessionTruncationEvent.class, name = "session.truncation"), + @JsonSubTypes.Type(value = SessionSnapshotRewindEvent.class, name = "session.snapshot_rewind"), + @JsonSubTypes.Type(value = SessionShutdownEvent.class, name = "session.shutdown"), + @JsonSubTypes.Type(value = SessionContextChangedEvent.class, name = "session.context_changed"), + @JsonSubTypes.Type(value = SessionUsageInfoEvent.class, name = "session.usage_info"), + @JsonSubTypes.Type(value = SessionCompactionStartEvent.class, name = "session.compaction_start"), + @JsonSubTypes.Type(value = SessionCompactionCompleteEvent.class, name = "session.compaction_complete"), + @JsonSubTypes.Type(value = SessionTaskCompleteEvent.class, name = "session.task_complete"), + @JsonSubTypes.Type(value = UserMessageEvent.class, name = "user.message"), + @JsonSubTypes.Type(value = PendingMessagesModifiedEvent.class, name = "pending_messages.modified"), + @JsonSubTypes.Type(value = AssistantTurnStartEvent.class, name = "assistant.turn_start"), + @JsonSubTypes.Type(value = AssistantIntentEvent.class, name = "assistant.intent"), + @JsonSubTypes.Type(value = AssistantReasoningEvent.class, name = "assistant.reasoning"), + @JsonSubTypes.Type(value = AssistantReasoningDeltaEvent.class, name = "assistant.reasoning_delta"), + @JsonSubTypes.Type(value = AssistantStreamingDeltaEvent.class, name = "assistant.streaming_delta"), + @JsonSubTypes.Type(value = AssistantMessageEvent.class, name = "assistant.message"), + @JsonSubTypes.Type(value = AssistantMessageStartEvent.class, name = "assistant.message_start"), + @JsonSubTypes.Type(value = AssistantMessageDeltaEvent.class, name = "assistant.message_delta"), + @JsonSubTypes.Type(value = AssistantTurnEndEvent.class, name = "assistant.turn_end"), + @JsonSubTypes.Type(value = AssistantUsageEvent.class, name = "assistant.usage"), + @JsonSubTypes.Type(value = ModelCallFailureEvent.class, name = "model.call_failure"), + @JsonSubTypes.Type(value = AbortEvent.class, name = "abort"), + @JsonSubTypes.Type(value = ToolUserRequestedEvent.class, name = "tool.user_requested"), + @JsonSubTypes.Type(value = ToolExecutionStartEvent.class, name = "tool.execution_start"), + @JsonSubTypes.Type(value = ToolExecutionPartialResultEvent.class, name = "tool.execution_partial_result"), + @JsonSubTypes.Type(value = ToolExecutionProgressEvent.class, name = "tool.execution_progress"), + @JsonSubTypes.Type(value = ToolExecutionCompleteEvent.class, name = "tool.execution_complete"), + @JsonSubTypes.Type(value = SkillInvokedEvent.class, name = "skill.invoked"), + @JsonSubTypes.Type(value = SubagentStartedEvent.class, name = "subagent.started"), + @JsonSubTypes.Type(value = SubagentCompletedEvent.class, name = "subagent.completed"), + @JsonSubTypes.Type(value = SubagentFailedEvent.class, name = "subagent.failed"), + @JsonSubTypes.Type(value = SubagentSelectedEvent.class, name = "subagent.selected"), + @JsonSubTypes.Type(value = SubagentDeselectedEvent.class, name = "subagent.deselected"), + @JsonSubTypes.Type(value = HookStartEvent.class, name = "hook.start"), + @JsonSubTypes.Type(value = HookEndEvent.class, name = "hook.end"), + @JsonSubTypes.Type(value = SystemMessageEvent.class, name = "system.message"), + @JsonSubTypes.Type(value = SystemNotificationEvent.class, name = "system.notification"), + @JsonSubTypes.Type(value = PermissionRequestedEvent.class, name = "permission.requested"), + @JsonSubTypes.Type(value = PermissionCompletedEvent.class, name = "permission.completed"), + @JsonSubTypes.Type(value = UserInputRequestedEvent.class, name = "user_input.requested"), + @JsonSubTypes.Type(value = UserInputCompletedEvent.class, name = "user_input.completed"), + @JsonSubTypes.Type(value = ElicitationRequestedEvent.class, name = "elicitation.requested"), + @JsonSubTypes.Type(value = ElicitationCompletedEvent.class, name = "elicitation.completed"), + @JsonSubTypes.Type(value = SamplingRequestedEvent.class, name = "sampling.requested"), + @JsonSubTypes.Type(value = SamplingCompletedEvent.class, name = "sampling.completed"), + @JsonSubTypes.Type(value = McpOauthRequiredEvent.class, name = "mcp.oauth_required"), + @JsonSubTypes.Type(value = McpOauthCompletedEvent.class, name = "mcp.oauth_completed"), + @JsonSubTypes.Type(value = SessionCustomNotificationEvent.class, name = "session.custom_notification"), + @JsonSubTypes.Type(value = ExternalToolRequestedEvent.class, name = "external_tool.requested"), + @JsonSubTypes.Type(value = ExternalToolCompletedEvent.class, name = "external_tool.completed"), + @JsonSubTypes.Type(value = CommandQueuedEvent.class, name = "command.queued"), + @JsonSubTypes.Type(value = CommandExecuteEvent.class, name = "command.execute"), + @JsonSubTypes.Type(value = CommandCompletedEvent.class, name = "command.completed"), + @JsonSubTypes.Type(value = AutoModeSwitchRequestedEvent.class, name = "auto_mode_switch.requested"), + @JsonSubTypes.Type(value = AutoModeSwitchCompletedEvent.class, name = "auto_mode_switch.completed"), + @JsonSubTypes.Type(value = CommandsChangedEvent.class, name = "commands.changed"), + @JsonSubTypes.Type(value = CapabilitiesChangedEvent.class, name = "capabilities.changed"), + @JsonSubTypes.Type(value = ExitPlanModeRequestedEvent.class, name = "exit_plan_mode.requested"), + @JsonSubTypes.Type(value = ExitPlanModeCompletedEvent.class, name = "exit_plan_mode.completed"), + @JsonSubTypes.Type(value = SessionToolsUpdatedEvent.class, name = "session.tools_updated"), + @JsonSubTypes.Type(value = SessionBackgroundTasksChangedEvent.class, name = "session.background_tasks_changed"), + @JsonSubTypes.Type(value = SessionSkillsLoadedEvent.class, name = "session.skills_loaded"), + @JsonSubTypes.Type(value = SessionCustomAgentsUpdatedEvent.class, name = "session.custom_agents_updated"), + @JsonSubTypes.Type(value = SessionMcpServersLoadedEvent.class, name = "session.mcp_servers_loaded"), + @JsonSubTypes.Type(value = SessionMcpServerStatusChangedEvent.class, name = "session.mcp_server_status_changed"), + @JsonSubTypes.Type(value = SessionExtensionsLoadedEvent.class, name = "session.extensions_loaded") +}) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public abstract sealed class SessionEvent permits + SessionStartEvent, + SessionResumeEvent, + SessionRemoteSteerableChangedEvent, + SessionErrorEvent, + SessionIdleEvent, + SessionTitleChangedEvent, + SessionScheduleCreatedEvent, + SessionScheduleCancelledEvent, + SessionInfoEvent, + SessionWarningEvent, + SessionModelChangeEvent, + SessionModeChangedEvent, + SessionPlanChangedEvent, + SessionWorkspaceFileChangedEvent, + SessionHandoffEvent, + SessionTruncationEvent, + SessionSnapshotRewindEvent, + SessionShutdownEvent, + SessionContextChangedEvent, + SessionUsageInfoEvent, + SessionCompactionStartEvent, + SessionCompactionCompleteEvent, + SessionTaskCompleteEvent, + UserMessageEvent, + PendingMessagesModifiedEvent, + AssistantTurnStartEvent, + AssistantIntentEvent, + AssistantReasoningEvent, + AssistantReasoningDeltaEvent, + AssistantStreamingDeltaEvent, + AssistantMessageEvent, + AssistantMessageStartEvent, + AssistantMessageDeltaEvent, + AssistantTurnEndEvent, + AssistantUsageEvent, + ModelCallFailureEvent, + AbortEvent, + ToolUserRequestedEvent, + ToolExecutionStartEvent, + ToolExecutionPartialResultEvent, + ToolExecutionProgressEvent, + ToolExecutionCompleteEvent, + SkillInvokedEvent, + SubagentStartedEvent, + SubagentCompletedEvent, + SubagentFailedEvent, + SubagentSelectedEvent, + SubagentDeselectedEvent, + HookStartEvent, + HookEndEvent, + SystemMessageEvent, + SystemNotificationEvent, + PermissionRequestedEvent, + PermissionCompletedEvent, + UserInputRequestedEvent, + UserInputCompletedEvent, + ElicitationRequestedEvent, + ElicitationCompletedEvent, + SamplingRequestedEvent, + SamplingCompletedEvent, + McpOauthRequiredEvent, + McpOauthCompletedEvent, + SessionCustomNotificationEvent, + ExternalToolRequestedEvent, + ExternalToolCompletedEvent, + CommandQueuedEvent, + CommandExecuteEvent, + CommandCompletedEvent, + AutoModeSwitchRequestedEvent, + AutoModeSwitchCompletedEvent, + CommandsChangedEvent, + CapabilitiesChangedEvent, + ExitPlanModeRequestedEvent, + ExitPlanModeCompletedEvent, + SessionToolsUpdatedEvent, + SessionBackgroundTasksChangedEvent, + SessionSkillsLoadedEvent, + SessionCustomAgentsUpdatedEvent, + SessionMcpServersLoadedEvent, + SessionMcpServerStatusChangedEvent, + SessionExtensionsLoadedEvent, + UnknownSessionEvent { + + /** Unique event identifier (UUID v4), generated when the event is emitted. */ + @JsonProperty("id") + private UUID id; + + /** ISO 8601 timestamp when the event was created. */ + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + /** ID of the chronologically preceding event in the session. Null for the first event. */ + @JsonProperty("parentId") + private UUID parentId; + + /** When true, the event is transient and not persisted to the session event log on disk. */ + @JsonProperty("ephemeral") + private Boolean ephemeral; + + /** + * Returns the event-type discriminator string (e.g., {@code "session.idle"}). + * + * @return the event type + */ + public abstract String getType(); + + public UUID getId() { return id; } + public void setId(UUID id) { this.id = id; } + + public OffsetDateTime getTimestamp() { return timestamp; } + public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } + + public UUID getParentId() { return parentId; } + public void setParentId(UUID parentId) { this.parentId = parentId; } + + public Boolean getEphemeral() { return ephemeral; } + public void setEphemeral(Boolean ephemeral) { this.ephemeral = ephemeral; } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java new file mode 100644 index 000000000..0165be5d2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.extensions_loaded". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionExtensionsLoadedEvent extends SessionEvent { + + @Override + public String getType() { return "session.extensions_loaded"; } + + @JsonProperty("data") + private SessionExtensionsLoadedEventData data; + + public SessionExtensionsLoadedEventData getData() { return data; } + public void setData(SessionExtensionsLoadedEventData data) { this.data = data; } + + /** Data payload for {@link SessionExtensionsLoadedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionExtensionsLoadedEventData( + /** Array of discovered extensions and their status */ + @JsonProperty("extensions") List extensions + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java new file mode 100644 index 000000000..7edba44c0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java @@ -0,0 +1,55 @@ +/*--------------------------------------------------------------------------------------------- + * 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.time.OffsetDateTime; +import javax.annotation.processing.Generated; + +/** + * Session event "session.handoff". Session handoff metadata including source, context, and repository information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionHandoffEvent extends SessionEvent { + + @Override + public String getType() { return "session.handoff"; } + + @JsonProperty("data") + private SessionHandoffEventData data; + + public SessionHandoffEventData getData() { return data; } + public void setData(SessionHandoffEventData data) { this.data = data; } + + /** Data payload for {@link SessionHandoffEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionHandoffEventData( + /** ISO 8601 timestamp when the handoff occurred */ + @JsonProperty("handoffTime") OffsetDateTime handoffTime, + /** Origin type of the session being handed off */ + @JsonProperty("sourceType") HandoffSourceType sourceType, + /** Repository context for the handed-off session */ + @JsonProperty("repository") HandoffRepository repository, + /** Additional context information for the handoff */ + @JsonProperty("context") String context, + /** Summary of the work done in the source session */ + @JsonProperty("summary") String summary, + /** Session ID of the remote session being handed off */ + @JsonProperty("remoteSessionId") String remoteSessionId, + /** GitHub host URL for the source session (e.g., https://github.com or https://tenant.ghe.com) */ + @JsonProperty("host") String host + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java new file mode 100644 index 000000000..dc7136c20 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.idle". Payload indicating the session is idle with no background agents in flight + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionIdleEvent extends SessionEvent { + + @Override + public String getType() { return "session.idle"; } + + @JsonProperty("data") + private SessionIdleEventData data; + + public SessionIdleEventData getData() { return data; } + public void setData(SessionIdleEventData data) { this.data = data; } + + /** Data payload for {@link SessionIdleEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionIdleEventData( + /** True when the preceding agentic loop was cancelled via abort signal */ + @JsonProperty("aborted") Boolean aborted + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java new file mode 100644 index 000000000..2d9ac3690 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.info". Informational message for timeline display with categorization + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionInfoEvent extends SessionEvent { + + @Override + public String getType() { return "session.info"; } + + @JsonProperty("data") + private SessionInfoEventData data; + + public SessionInfoEventData getData() { return data; } + public void setData(SessionInfoEventData data) { this.data = data; } + + /** Data payload for {@link SessionInfoEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionInfoEventData( + /** Category of informational message (e.g., "notification", "timing", "context_window", "mcp", "snapshot", "configuration", "authentication", "model") */ + @JsonProperty("infoType") String infoType, + /** Human-readable informational message for display in the timeline */ + @JsonProperty("message") String message, + /** Optional URL associated with this message that the user can open in a browser */ + @JsonProperty("url") String url, + /** Optional actionable tip displayed with this message */ + @JsonProperty("tip") String tip + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java new file mode 100644 index 000000000..345e9ab2e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.mcp_server_status_changed". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionMcpServerStatusChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.mcp_server_status_changed"; } + + @JsonProperty("data") + private SessionMcpServerStatusChangedEventData data; + + public SessionMcpServerStatusChangedEventData getData() { return data; } + public void setData(SessionMcpServerStatusChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionMcpServerStatusChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionMcpServerStatusChangedEventData( + /** Name of the MCP server whose status changed */ + @JsonProperty("serverName") String serverName, + /** Connection status: connected, failed, needs-auth, pending, disabled, or not_configured */ + @JsonProperty("status") McpServerStatus status + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java new file mode 100644 index 000000000..d97875513 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.mcp_servers_loaded". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionMcpServersLoadedEvent extends SessionEvent { + + @Override + public String getType() { return "session.mcp_servers_loaded"; } + + @JsonProperty("data") + private SessionMcpServersLoadedEventData data; + + public SessionMcpServersLoadedEventData getData() { return data; } + public void setData(SessionMcpServersLoadedEventData data) { this.data = data; } + + /** Data payload for {@link SessionMcpServersLoadedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionMcpServersLoadedEventData( + /** Array of MCP server status summaries */ + @JsonProperty("servers") List servers + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java b/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java new file mode 100644 index 000000000..ba579b306 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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 session mode the agent is operating in + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionMode { + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code plan} variant. */ + PLAN("plan"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"); + + private final String value; + SessionMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionMode fromValue(String value) { + for (SessionMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java new file mode 100644 index 000000000..28fb3e9e4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.mode_changed". Agent mode change details including previous and new modes + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionModeChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.mode_changed"; } + + @JsonProperty("data") + private SessionModeChangedEventData data; + + public SessionModeChangedEventData getData() { return data; } + public void setData(SessionModeChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionModeChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionModeChangedEventData( + /** The session mode the agent is operating in */ + @JsonProperty("previousMode") SessionMode previousMode, + /** The session mode the agent is operating in */ + @JsonProperty("newMode") SessionMode newMode + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java new file mode 100644 index 000000000..0c408e0b3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.model_change". Model change details including previous and new model identifiers + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionModelChangeEvent extends SessionEvent { + + @Override + public String getType() { return "session.model_change"; } + + @JsonProperty("data") + private SessionModelChangeEventData data; + + public SessionModelChangeEventData getData() { return data; } + public void setData(SessionModelChangeEventData data) { this.data = data; } + + /** Data payload for {@link SessionModelChangeEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionModelChangeEventData( + /** Model that was previously selected, if any */ + @JsonProperty("previousModel") String previousModel, + /** Newly selected model identifier */ + @JsonProperty("newModel") String newModel, + /** Reasoning effort level before the model change, if applicable */ + @JsonProperty("previousReasoningEffort") String previousReasoningEffort, + /** Reasoning effort level after the model change, if applicable */ + @JsonProperty("reasoningEffort") String reasoningEffort, + /** Reasoning summary mode before the model change, if applicable */ + @JsonProperty("previousReasoningSummary") ReasoningSummary previousReasoningSummary, + /** Reasoning summary mode after the model change, if applicable */ + @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, + /** Reason the change happened, when not user-initiated. Currently `"rate_limit_auto_switch"` for changes triggered by the auto-mode-switch rate-limit recovery path. UI clients can use this to render contextual copy. */ + @JsonProperty("cause") String cause + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java new file mode 100644 index 000000000..cf9f4706d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.plan_changed". Plan file operation details indicating what changed + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPlanChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.plan_changed"; } + + @JsonProperty("data") + private SessionPlanChangedEventData data; + + public SessionPlanChangedEventData getData() { return data; } + public void setData(SessionPlanChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionPlanChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionPlanChangedEventData( + /** The type of operation performed on the plan file */ + @JsonProperty("operation") PlanChangedOperation operation + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java new file mode 100644 index 000000000..adcc3aeb7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.remote_steerable_changed". Notifies that the session's remote steering capability has changed + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionRemoteSteerableChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.remote_steerable_changed"; } + + @JsonProperty("data") + private SessionRemoteSteerableChangedEventData data; + + public SessionRemoteSteerableChangedEventData getData() { return data; } + public void setData(SessionRemoteSteerableChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionRemoteSteerableChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionRemoteSteerableChangedEventData( + /** Whether this session now supports remote steering via GitHub */ + @JsonProperty("remoteSteerable") Boolean remoteSteerable + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java new file mode 100644 index 000000000..e27cc2045 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * 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.time.OffsetDateTime; +import javax.annotation.processing.Generated; + +/** + * Session event "session.resume". Session resume metadata including current context and event count + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionResumeEvent extends SessionEvent { + + @Override + public String getType() { return "session.resume"; } + + @JsonProperty("data") + private SessionResumeEventData data; + + public SessionResumeEventData getData() { return data; } + public void setData(SessionResumeEventData data) { this.data = data; } + + /** Data payload for {@link SessionResumeEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionResumeEventData( + /** ISO 8601 timestamp when the session was resumed */ + @JsonProperty("resumeTime") OffsetDateTime resumeTime, + /** Total number of persisted events in the session at the time of resume */ + @JsonProperty("eventCount") Long eventCount, + /** Model currently selected at resume time */ + @JsonProperty("selectedModel") String selectedModel, + /** Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max") */ + @JsonProperty("reasoningEffort") String reasoningEffort, + /** Reasoning summary mode used for model calls, if applicable (e.g. "none", "concise", "detailed") */ + @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, + /** Updated working directory and git context at resume time */ + @JsonProperty("context") WorkingDirectoryContext context, + /** Whether the session was already in use by another client at resume time */ + @JsonProperty("alreadyInUse") Boolean alreadyInUse, + /** True when this resume attached to a session that the runtime already had running in-memory (for example, an extension joining a session another client was actively driving). False (or omitted) for cold resumes — the runtime had to reconstitute the session from its persisted event log. */ + @JsonProperty("sessionWasActive") Boolean sessionWasActive, + /** Whether this session supports remote steering via GitHub */ + @JsonProperty("remoteSteerable") Boolean remoteSteerable, + /** When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after resume and the agentic loop awaits their results. User sends are queued behind the pending work until all such requests reach a terminal state. When false (the default), any such tool calls and permission requests are immediately marked as interrupted on resume. */ + @JsonProperty("continuePendingWork") Boolean continuePendingWork + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java new file mode 100644 index 000000000..51aba5d4c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.schedule_cancelled". Scheduled prompt cancelled from the schedule manager dialog + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionScheduleCancelledEvent extends SessionEvent { + + @Override + public String getType() { return "session.schedule_cancelled"; } + + @JsonProperty("data") + private SessionScheduleCancelledEventData data; + + public SessionScheduleCancelledEventData getData() { return data; } + public void setData(SessionScheduleCancelledEventData data) { this.data = data; } + + /** Data payload for {@link SessionScheduleCancelledEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionScheduleCancelledEventData( + /** Id of the scheduled prompt that was cancelled */ + @JsonProperty("id") Long id + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java new file mode 100644 index 000000000..2a9cbdeb4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java @@ -0,0 +1,50 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.schedule_created". Scheduled prompt registered via /every or /after + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionScheduleCreatedEvent extends SessionEvent { + + @Override + public String getType() { return "session.schedule_created"; } + + @JsonProperty("data") + private SessionScheduleCreatedEventData data; + + public SessionScheduleCreatedEventData getData() { return data; } + public void setData(SessionScheduleCreatedEventData data) { this.data = data; } + + /** Data payload for {@link SessionScheduleCreatedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionScheduleCreatedEventData( + /** Sequential id assigned to the scheduled prompt within the session */ + @JsonProperty("id") Long id, + /** Interval between ticks in milliseconds */ + @JsonProperty("intervalMs") Long intervalMs, + /** Prompt text that gets enqueued on every tick */ + @JsonProperty("prompt") String prompt, + /** Whether the schedule re-arms after each tick (`/every`) or fires once (`/after`) */ + @JsonProperty("recurring") Boolean recurring, + /** Optional user-facing label shown in the timeline instead of the actual prompt (e.g. `/skill-name args` when the prompt is a skill invocation expansion) */ + @JsonProperty("displayPrompt") String displayPrompt + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java new file mode 100644 index 000000000..03ad8e027 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java @@ -0,0 +1,69 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Session event "session.shutdown". Session termination metrics including usage statistics, code changes, and shutdown reason + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionShutdownEvent extends SessionEvent { + + @Override + public String getType() { return "session.shutdown"; } + + @JsonProperty("data") + private SessionShutdownEventData data; + + public SessionShutdownEventData getData() { return data; } + public void setData(SessionShutdownEventData data) { this.data = data; } + + /** Data payload for {@link SessionShutdownEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionShutdownEventData( + /** Whether the session ended normally ("routine") or due to a crash/fatal error ("error") */ + @JsonProperty("shutdownType") ShutdownType shutdownType, + /** Error description when shutdownType is "error" */ + @JsonProperty("errorReason") String errorReason, + /** Total number of premium API requests used during the session */ + @JsonProperty("totalPremiumRequests") Double totalPremiumRequests, + /** Session-wide accumulated nano-AI units cost */ + @JsonProperty("totalNanoAiu") Double totalNanoAiu, + /** Session-wide per-token-type accumulated token counts */ + @JsonProperty("tokenDetails") Map tokenDetails, + /** Cumulative time spent in API calls during the session, in milliseconds */ + @JsonProperty("totalApiDurationMs") Long totalApiDurationMs, + /** Unix timestamp (milliseconds) when the session started */ + @JsonProperty("sessionStartTime") Long sessionStartTime, + /** Aggregate code change metrics for the session */ + @JsonProperty("codeChanges") ShutdownCodeChanges codeChanges, + /** Per-model usage breakdown, keyed by model identifier */ + @JsonProperty("modelMetrics") Map modelMetrics, + /** Model that was selected at the time of shutdown */ + @JsonProperty("currentModel") String currentModel, + /** Total tokens in context window at shutdown */ + @JsonProperty("currentTokens") Long currentTokens, + /** System message token count at shutdown */ + @JsonProperty("systemTokens") Long systemTokens, + /** Non-system message token count at shutdown */ + @JsonProperty("conversationTokens") Long conversationTokens, + /** Tool definitions token count at shutdown */ + @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java new file mode 100644 index 000000000..f04118435 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.skills_loaded". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionSkillsLoadedEvent extends SessionEvent { + + @Override + public String getType() { return "session.skills_loaded"; } + + @JsonProperty("data") + private SessionSkillsLoadedEventData data; + + public SessionSkillsLoadedEventData getData() { return data; } + public void setData(SessionSkillsLoadedEventData data) { this.data = data; } + + /** Data payload for {@link SessionSkillsLoadedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionSkillsLoadedEventData( + /** Array of resolved skill metadata */ + @JsonProperty("skills") List skills + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java new file mode 100644 index 000000000..9c7e8765b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.snapshot_rewind". Session rewind details including target event and count of removed events + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionSnapshotRewindEvent extends SessionEvent { + + @Override + public String getType() { return "session.snapshot_rewind"; } + + @JsonProperty("data") + private SessionSnapshotRewindEventData data; + + public SessionSnapshotRewindEventData getData() { return data; } + public void setData(SessionSnapshotRewindEventData data) { this.data = data; } + + /** Data payload for {@link SessionSnapshotRewindEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionSnapshotRewindEventData( + /** Event ID that was rewound to; this event and all after it were removed */ + @JsonProperty("upToEventId") String upToEventId, + /** Number of events that were removed by the rewind */ + @JsonProperty("eventsRemoved") Long eventsRemoved + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java new file mode 100644 index 000000000..0bb4b800f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java @@ -0,0 +1,65 @@ +/*--------------------------------------------------------------------------------------------- + * 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.time.OffsetDateTime; +import javax.annotation.processing.Generated; + +/** + * Session event "session.start". Session initialization metadata including context and configuration + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionStartEvent extends SessionEvent { + + @Override + public String getType() { return "session.start"; } + + @JsonProperty("data") + private SessionStartEventData data; + + public SessionStartEventData getData() { return data; } + public void setData(SessionStartEventData data) { this.data = data; } + + /** Data payload for {@link SessionStartEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionStartEventData( + /** Unique identifier for the session */ + @JsonProperty("sessionId") String sessionId, + /** Schema version number for the session event format */ + @JsonProperty("version") Long version, + /** Identifier of the software producing the events (e.g., "copilot-agent") */ + @JsonProperty("producer") String producer, + /** Version string of the Copilot application */ + @JsonProperty("copilotVersion") String copilotVersion, + /** ISO 8601 timestamp when the session was created */ + @JsonProperty("startTime") OffsetDateTime startTime, + /** Model selected at session creation time, if any */ + @JsonProperty("selectedModel") String selectedModel, + /** Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max") */ + @JsonProperty("reasoningEffort") String reasoningEffort, + /** Reasoning summary mode used for model calls, if applicable (e.g. "none", "concise", "detailed") */ + @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, + /** Working directory and git context at session start */ + @JsonProperty("context") WorkingDirectoryContext context, + /** Whether the session was already in use by another client at start time */ + @JsonProperty("alreadyInUse") Boolean alreadyInUse, + /** Whether this session supports remote steering via GitHub */ + @JsonProperty("remoteSteerable") Boolean remoteSteerable, + /** When set, identifies a parent session whose context this session continues — e.g., a detached headless rem-agent run launched on the parent's interactive shutdown. Telemetry from this session is reported under the parent's session_id. */ + @JsonProperty("detachedFromSpawningParentSessionId") String detachedFromSpawningParentSessionId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java new file mode 100644 index 000000000..097f59c97 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.task_complete". Task completion notification with summary from the agent + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionTaskCompleteEvent extends SessionEvent { + + @Override + public String getType() { return "session.task_complete"; } + + @JsonProperty("data") + private SessionTaskCompleteEventData data; + + public SessionTaskCompleteEventData getData() { return data; } + public void setData(SessionTaskCompleteEventData data) { this.data = data; } + + /** Data payload for {@link SessionTaskCompleteEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionTaskCompleteEventData( + /** Summary of the completed task, provided by the agent */ + @JsonProperty("summary") String summary, + /** Whether the tool call succeeded. False when validation failed (e.g., invalid arguments) */ + @JsonProperty("success") Boolean success + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java new file mode 100644 index 000000000..e835e8ae5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.title_changed". Session title change payload containing the new display title + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionTitleChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.title_changed"; } + + @JsonProperty("data") + private SessionTitleChangedEventData data; + + public SessionTitleChangedEventData getData() { return data; } + public void setData(SessionTitleChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionTitleChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionTitleChangedEventData( + /** The new display title for the session */ + @JsonProperty("title") String title + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java new file mode 100644 index 000000000..1d80e5b60 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.tools_updated". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionToolsUpdatedEvent extends SessionEvent { + + @Override + public String getType() { return "session.tools_updated"; } + + @JsonProperty("data") + private SessionToolsUpdatedEventData data; + + public SessionToolsUpdatedEventData getData() { return data; } + public void setData(SessionToolsUpdatedEventData data) { this.data = data; } + + /** Data payload for {@link SessionToolsUpdatedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionToolsUpdatedEventData( + /** Identifier of the model the resolved tools apply to. */ + @JsonProperty("model") String model + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java new file mode 100644 index 000000000..0a96601b6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.truncation". Conversation truncation statistics including token counts and removed content metrics + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionTruncationEvent extends SessionEvent { + + @Override + public String getType() { return "session.truncation"; } + + @JsonProperty("data") + private SessionTruncationEventData data; + + public SessionTruncationEventData getData() { return data; } + public void setData(SessionTruncationEventData data) { this.data = data; } + + /** Data payload for {@link SessionTruncationEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionTruncationEventData( + /** Maximum token count for the model's context window */ + @JsonProperty("tokenLimit") Long tokenLimit, + /** Total tokens in conversation messages before truncation */ + @JsonProperty("preTruncationTokensInMessages") Long preTruncationTokensInMessages, + /** Number of conversation messages before truncation */ + @JsonProperty("preTruncationMessagesLength") Long preTruncationMessagesLength, + /** Total tokens in conversation messages after truncation */ + @JsonProperty("postTruncationTokensInMessages") Long postTruncationTokensInMessages, + /** Number of conversation messages after truncation */ + @JsonProperty("postTruncationMessagesLength") Long postTruncationMessagesLength, + /** Number of tokens removed by truncation */ + @JsonProperty("tokensRemovedDuringTruncation") Long tokensRemovedDuringTruncation, + /** Number of messages removed by truncation */ + @JsonProperty("messagesRemovedDuringTruncation") Long messagesRemovedDuringTruncation, + /** Identifier of the component that performed truncation (e.g., "BasicTruncator") */ + @JsonProperty("performedBy") String performedBy + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java new file mode 100644 index 000000000..70ecfe01a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.usage_info". Current context window usage statistics including token and message counts + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionUsageInfoEvent extends SessionEvent { + + @Override + public String getType() { return "session.usage_info"; } + + @JsonProperty("data") + private SessionUsageInfoEventData data; + + public SessionUsageInfoEventData getData() { return data; } + public void setData(SessionUsageInfoEventData data) { this.data = data; } + + /** Data payload for {@link SessionUsageInfoEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionUsageInfoEventData( + /** Maximum token count for the model's context window */ + @JsonProperty("tokenLimit") Long tokenLimit, + /** Current number of tokens in the context window */ + @JsonProperty("currentTokens") Long currentTokens, + /** Current number of messages in the conversation */ + @JsonProperty("messagesLength") Long messagesLength, + /** Token count from system message(s) */ + @JsonProperty("systemTokens") Long systemTokens, + /** Token count from non-system messages (user, assistant, tool) */ + @JsonProperty("conversationTokens") Long conversationTokens, + /** Token count from tool definitions */ + @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens, + /** Whether this is the first usage_info event emitted in this session */ + @JsonProperty("isInitial") Boolean isInitial + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java new file mode 100644 index 000000000..42b2eb8df --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.warning". Warning message for timeline display with categorization + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionWarningEvent extends SessionEvent { + + @Override + public String getType() { return "session.warning"; } + + @JsonProperty("data") + private SessionWarningEventData data; + + public SessionWarningEventData getData() { return data; } + public void setData(SessionWarningEventData data) { this.data = data; } + + /** Data payload for {@link SessionWarningEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionWarningEventData( + /** Category of warning (e.g., "subscription", "policy", "mcp") */ + @JsonProperty("warningType") String warningType, + /** Human-readable warning message for display in the timeline */ + @JsonProperty("message") String message, + /** Optional URL associated with this warning that the user can open in a browser */ + @JsonProperty("url") String url + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java new file mode 100644 index 000000000..85447d567 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "session.workspace_file_changed". Workspace file change details including path and operation type + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionWorkspaceFileChangedEvent extends SessionEvent { + + @Override + public String getType() { return "session.workspace_file_changed"; } + + @JsonProperty("data") + private SessionWorkspaceFileChangedEventData data; + + public SessionWorkspaceFileChangedEventData getData() { return data; } + public void setData(SessionWorkspaceFileChangedEventData data) { this.data = data; } + + /** Data payload for {@link SessionWorkspaceFileChangedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionWorkspaceFileChangedEventData( + /** Relative path within the session workspace files directory */ + @JsonProperty("path") String path, + /** Whether the file was newly created or updated */ + @JsonProperty("operation") WorkspaceFileChangedOperation operation + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java new file mode 100644 index 000000000..1ca80ad71 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java @@ -0,0 +1,32 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Aggregate code change metrics for the session + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ShutdownCodeChanges( + /** Total number of lines added during the session */ + @JsonProperty("linesAdded") Long linesAdded, + /** Total number of lines removed during the session */ + @JsonProperty("linesRemoved") Long linesRemoved, + /** List of file paths that were modified during the session */ + @JsonProperty("filesModified") List filesModified +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java new file mode 100644 index 000000000..b7eb37fd9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Schema for the `ShutdownModelMetric` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ShutdownModelMetric( + /** Request count and cost metrics */ + @JsonProperty("requests") ShutdownModelMetricRequests requests, + /** Token usage breakdown */ + @JsonProperty("usage") ShutdownModelMetricUsage usage, + /** Accumulated nano-AI units cost for this model */ + @JsonProperty("totalNanoAiu") Double totalNanoAiu, + /** Token count details per type */ + @JsonProperty("tokenDetails") Map tokenDetails +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java new file mode 100644 index 000000000..ebc58271e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Request count and cost metrics + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ShutdownModelMetricRequests( + /** Total number of API requests made to this model */ + @JsonProperty("count") Long count, + /** Cumulative cost multiplier for requests to this model */ + @JsonProperty("cost") Double cost +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java new file mode 100644 index 000000000..fe18de6c6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `ShutdownModelMetricTokenDetail` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ShutdownModelMetricTokenDetail( + /** Accumulated token count for this token type */ + @JsonProperty("tokenCount") Long tokenCount +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java new file mode 100644 index 000000000..09a61920d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token usage breakdown + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ShutdownModelMetricUsage( + /** Total input tokens consumed across all requests to this model */ + @JsonProperty("inputTokens") Long inputTokens, + /** Total output tokens produced across all requests to this model */ + @JsonProperty("outputTokens") Long outputTokens, + /** Total tokens read from prompt cache across all requests */ + @JsonProperty("cacheReadTokens") Long cacheReadTokens, + /** Total tokens written to prompt cache across all requests */ + @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, + /** Total reasoning tokens produced across all requests to this model */ + @JsonProperty("reasoningTokens") Long reasoningTokens +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java new file mode 100644 index 000000000..75db095c5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `ShutdownTokenDetail` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ShutdownTokenDetail( + /** Accumulated token count for this token type */ + @JsonProperty("tokenCount") Long tokenCount +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java new file mode 100644 index 000000000..288d0835f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 session ended normally ("routine") or due to a crash/fatal error ("error") + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ShutdownType { + /** The {@code routine} variant. */ + ROUTINE("routine"), + /** The {@code error} variant. */ + ERROR("error"); + + private final String value; + ShutdownType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ShutdownType fromValue(String value) { + for (ShutdownType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ShutdownType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java new file mode 100644 index 000000000..5be080a64 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java @@ -0,0 +1,55 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "skill.invoked". Skill invocation details including content, allowed tools, and plugin metadata + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SkillInvokedEvent extends SessionEvent { + + @Override + public String getType() { return "skill.invoked"; } + + @JsonProperty("data") + private SkillInvokedEventData data; + + public SkillInvokedEventData getData() { return data; } + public void setData(SkillInvokedEventData data) { this.data = data; } + + /** Data payload for {@link SkillInvokedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SkillInvokedEventData( + /** Name of the invoked skill */ + @JsonProperty("name") String name, + /** File path to the SKILL.md definition */ + @JsonProperty("path") String path, + /** Full content of the skill file, injected into the conversation for the model */ + @JsonProperty("content") String content, + /** Tool names that should be auto-approved when this skill is active */ + @JsonProperty("allowedTools") List allowedTools, + /** Name of the plugin this skill originated from, when applicable */ + @JsonProperty("pluginName") String pluginName, + /** Version of the plugin this skill originated from, when applicable */ + @JsonProperty("pluginVersion") String pluginVersion, + /** Description of the skill from its SKILL.md frontmatter */ + @JsonProperty("description") String description + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java b/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java new file mode 100644 index 000000000..b681faaae --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Source location type (e.g., project, personal-copilot, plugin, builtin) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SkillSource { + /** The {@code project} variant. */ + PROJECT("project"), + /** The {@code inherited} variant. */ + INHERITED("inherited"), + /** The {@code personal-copilot} variant. */ + PERSONAL_COPILOT("personal-copilot"), + /** The {@code personal-agents} variant. */ + PERSONAL_AGENTS("personal-agents"), + /** The {@code plugin} variant. */ + PLUGIN("plugin"), + /** The {@code custom} variant. */ + CUSTOM("custom"), + /** The {@code builtin} variant. */ + BUILTIN("builtin"); + + private final String value; + SkillSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SkillSource fromValue(String value) { + for (SkillSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SkillSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java b/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java new file mode 100644 index 000000000..07ce97825 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `SkillsLoadedSkill` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SkillsLoadedSkill( + /** Unique identifier for the skill */ + @JsonProperty("name") String name, + /** Description of what the skill does */ + @JsonProperty("description") String description, + /** Source location type (e.g., project, personal-copilot, plugin, builtin) */ + @JsonProperty("source") SkillSource source, + /** Whether the skill can be invoked by the user as a slash command */ + @JsonProperty("userInvocable") Boolean userInvocable, + /** Whether the skill is currently enabled */ + @JsonProperty("enabled") Boolean enabled, + /** Absolute path to the skill file, if available */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java new file mode 100644 index 000000000..98924809f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "subagent.completed". Sub-agent completion details for successful execution + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SubagentCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "subagent.completed"; } + + @JsonProperty("data") + private SubagentCompletedEventData data; + + public SubagentCompletedEventData getData() { return data; } + public void setData(SubagentCompletedEventData data) { this.data = data; } + + /** Data payload for {@link SubagentCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SubagentCompletedEventData( + /** Tool call ID of the parent tool invocation that spawned this sub-agent */ + @JsonProperty("toolCallId") String toolCallId, + /** Internal name of the sub-agent */ + @JsonProperty("agentName") String agentName, + /** Human-readable display name of the sub-agent */ + @JsonProperty("agentDisplayName") String agentDisplayName, + /** Model used by the sub-agent */ + @JsonProperty("model") String model, + /** Total number of tool calls made by the sub-agent */ + @JsonProperty("totalToolCalls") Long totalToolCalls, + /** Total tokens (input + output) consumed by the sub-agent */ + @JsonProperty("totalTokens") Long totalTokens, + /** Wall-clock duration of the sub-agent execution in milliseconds */ + @JsonProperty("durationMs") Long durationMs + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java new file mode 100644 index 000000000..2274ba66e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "subagent.deselected". Empty payload; the event signals that the custom agent was deselected, returning to the default agent + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SubagentDeselectedEvent extends SessionEvent { + + @Override + public String getType() { return "subagent.deselected"; } + + @JsonProperty("data") + private SubagentDeselectedEventData data; + + public SubagentDeselectedEventData getData() { return data; } + public void setData(SubagentDeselectedEventData data) { this.data = data; } + + /** Data payload for {@link SubagentDeselectedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SubagentDeselectedEventData() { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java new file mode 100644 index 000000000..9264b5b0e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "subagent.failed". Sub-agent failure details including error message and agent information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SubagentFailedEvent extends SessionEvent { + + @Override + public String getType() { return "subagent.failed"; } + + @JsonProperty("data") + private SubagentFailedEventData data; + + public SubagentFailedEventData getData() { return data; } + public void setData(SubagentFailedEventData data) { this.data = data; } + + /** Data payload for {@link SubagentFailedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SubagentFailedEventData( + /** Tool call ID of the parent tool invocation that spawned this sub-agent */ + @JsonProperty("toolCallId") String toolCallId, + /** Internal name of the sub-agent */ + @JsonProperty("agentName") String agentName, + /** Human-readable display name of the sub-agent */ + @JsonProperty("agentDisplayName") String agentDisplayName, + /** Error message describing why the sub-agent failed */ + @JsonProperty("error") String error, + /** Model used by the sub-agent (if any model calls succeeded before failure) */ + @JsonProperty("model") String model, + /** Total number of tool calls made before the sub-agent failed */ + @JsonProperty("totalToolCalls") Long totalToolCalls, + /** Total tokens (input + output) consumed before the sub-agent failed */ + @JsonProperty("totalTokens") Long totalTokens, + /** Wall-clock duration of the sub-agent execution in milliseconds */ + @JsonProperty("durationMs") Long durationMs + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java new file mode 100644 index 000000000..7eb82019b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "subagent.selected". Custom agent selection details including name and available tools + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SubagentSelectedEvent extends SessionEvent { + + @Override + public String getType() { return "subagent.selected"; } + + @JsonProperty("data") + private SubagentSelectedEventData data; + + public SubagentSelectedEventData getData() { return data; } + public void setData(SubagentSelectedEventData data) { this.data = data; } + + /** Data payload for {@link SubagentSelectedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SubagentSelectedEventData( + /** Internal name of the selected custom agent */ + @JsonProperty("agentName") String agentName, + /** Human-readable display name of the selected custom agent */ + @JsonProperty("agentDisplayName") String agentDisplayName, + /** List of tool names available to this agent, or null for all tools */ + @JsonProperty("tools") List tools + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java new file mode 100644 index 000000000..647bc824d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java @@ -0,0 +1,50 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "subagent.started". Sub-agent startup details including parent tool call and agent information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SubagentStartedEvent extends SessionEvent { + + @Override + public String getType() { return "subagent.started"; } + + @JsonProperty("data") + private SubagentStartedEventData data; + + public SubagentStartedEventData getData() { return data; } + public void setData(SubagentStartedEventData data) { this.data = data; } + + /** Data payload for {@link SubagentStartedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SubagentStartedEventData( + /** Tool call ID of the parent tool invocation that spawned this sub-agent */ + @JsonProperty("toolCallId") String toolCallId, + /** Internal name of the sub-agent */ + @JsonProperty("agentName") String agentName, + /** Human-readable display name of the sub-agent */ + @JsonProperty("agentDisplayName") String agentDisplayName, + /** Description of what the sub-agent does */ + @JsonProperty("agentDescription") String agentDescription, + /** Model the sub-agent will run with, when known at start. Surfaced in the timeline for auto-selected sub-agents (e.g. rubber-duck). */ + @JsonProperty("model") String model + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java new file mode 100644 index 000000000..09d39a199 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "system.message". System/developer instruction content with role and optional template metadata + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SystemMessageEvent extends SessionEvent { + + @Override + public String getType() { return "system.message"; } + + @JsonProperty("data") + private SystemMessageEventData data; + + public SystemMessageEventData getData() { return data; } + public void setData(SystemMessageEventData data) { this.data = data; } + + /** Data payload for {@link SystemMessageEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SystemMessageEventData( + /** The system or developer prompt text sent as model input */ + @JsonProperty("content") String content, + /** Message role: "system" for system prompts, "developer" for developer-injected instructions */ + @JsonProperty("role") SystemMessageRole role, + /** Optional name identifier for the message source */ + @JsonProperty("name") String name, + /** Metadata about the prompt template and its construction */ + @JsonProperty("metadata") SystemMessageMetadata metadata + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java new file mode 100644 index 000000000..f7f5fcbf2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Metadata about the prompt template and its construction + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SystemMessageMetadata( + /** Version identifier of the prompt template used */ + @JsonProperty("promptVersion") String promptVersion, + /** Template variables used when constructing the prompt */ + @JsonProperty("variables") Map variables +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java new file mode 100644 index 000000000..3ccd8c31d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Message role: "system" for system prompts, "developer" for developer-injected instructions + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SystemMessageRole { + /** The {@code system} variant. */ + SYSTEM("system"), + /** The {@code developer} variant. */ + DEVELOPER("developer"); + + private final String value; + SystemMessageRole(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SystemMessageRole fromValue(String value) { + for (SystemMessageRole v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SystemMessageRole value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java new file mode 100644 index 000000000..5a8a0fdfb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "system.notification". System-generated notification for runtime events like background task completion + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SystemNotificationEvent extends SessionEvent { + + @Override + public String getType() { return "system.notification"; } + + @JsonProperty("data") + private SystemNotificationEventData data; + + public SystemNotificationEventData getData() { return data; } + public void setData(SystemNotificationEventData data) { this.data = data; } + + /** Data payload for {@link SystemNotificationEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SystemNotificationEventData( + /** The notification text, typically wrapped in XML tags */ + @JsonProperty("content") String content, + /** Structured metadata identifying what triggered this notification */ + @JsonProperty("kind") Object kind + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java new file mode 100644 index 000000000..ac4c7d843 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Error details when the tool execution failed + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ToolExecutionCompleteError( + /** Human-readable error message */ + @JsonProperty("message") String message, + /** Machine-readable error code */ + @JsonProperty("code") String code +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java new file mode 100644 index 000000000..36284b472 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java @@ -0,0 +1,63 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Session event "tool.execution_complete". Tool execution completion results including success status, detailed output, and error information + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ToolExecutionCompleteEvent extends SessionEvent { + + @Override + public String getType() { return "tool.execution_complete"; } + + @JsonProperty("data") + private ToolExecutionCompleteEventData data; + + public ToolExecutionCompleteEventData getData() { return data; } + public void setData(ToolExecutionCompleteEventData data) { this.data = data; } + + /** Data payload for {@link ToolExecutionCompleteEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ToolExecutionCompleteEventData( + /** Unique identifier for the completed tool call */ + @JsonProperty("toolCallId") String toolCallId, + /** Whether the tool execution completed successfully */ + @JsonProperty("success") Boolean success, + /** Model identifier that generated this tool call */ + @JsonProperty("model") String model, + /** CAPI interaction ID for correlating this tool execution with upstream telemetry */ + @JsonProperty("interactionId") String interactionId, + /** Whether this tool call was explicitly requested by the user rather than the assistant */ + @JsonProperty("isUserRequested") Boolean isUserRequested, + /** Tool execution result on success */ + @JsonProperty("result") ToolExecutionCompleteResult result, + /** Error details when the tool execution failed */ + @JsonProperty("error") ToolExecutionCompleteError error, + /** Tool-specific telemetry data (e.g., CodeQL check counts, grep match counts) */ + @JsonProperty("toolTelemetry") Map toolTelemetry, + /** Identifier for the agent loop turn this tool was invoked in, matching the corresponding assistant.turn_start event */ + @JsonProperty("turnId") String turnId, + /** Whether this tool execution ran inside a sandbox container */ + @JsonProperty("sandboxed") Boolean sandboxed, + /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ + @JsonProperty("parentToolCallId") String parentToolCallId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java new file mode 100644 index 000000000..4792ec8da --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java @@ -0,0 +1,32 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Tool execution result on success + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ToolExecutionCompleteResult( + /** Concise tool result text sent to the LLM for chat completion, potentially truncated for token efficiency */ + @JsonProperty("content") String content, + /** Full detailed tool result for UI/timeline display, preserving complete content such as diffs. Falls back to content when absent. */ + @JsonProperty("detailedContent") String detailedContent, + /** Structured content blocks (text, images, audio, resources) returned by the tool in their native format */ + @JsonProperty("contents") List contents +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java new file mode 100644 index 000000000..9c43aa2ec --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "tool.execution_partial_result". Streaming tool execution output for incremental result display + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ToolExecutionPartialResultEvent extends SessionEvent { + + @Override + public String getType() { return "tool.execution_partial_result"; } + + @JsonProperty("data") + private ToolExecutionPartialResultEventData data; + + public ToolExecutionPartialResultEventData getData() { return data; } + public void setData(ToolExecutionPartialResultEventData data) { this.data = data; } + + /** Data payload for {@link ToolExecutionPartialResultEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ToolExecutionPartialResultEventData( + /** Tool call ID this partial result belongs to */ + @JsonProperty("toolCallId") String toolCallId, + /** Incremental output chunk from the running tool */ + @JsonProperty("partialOutput") String partialOutput + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java new file mode 100644 index 000000000..f3a7c1158 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "tool.execution_progress". Tool execution progress notification with status message + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ToolExecutionProgressEvent extends SessionEvent { + + @Override + public String getType() { return "tool.execution_progress"; } + + @JsonProperty("data") + private ToolExecutionProgressEventData data; + + public ToolExecutionProgressEventData getData() { return data; } + public void setData(ToolExecutionProgressEventData data) { this.data = data; } + + /** Data payload for {@link ToolExecutionProgressEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ToolExecutionProgressEventData( + /** Tool call ID this progress notification belongs to */ + @JsonProperty("toolCallId") String toolCallId, + /** Human-readable progress status message (e.g., from an MCP server) */ + @JsonProperty("progressMessage") String progressMessage + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java new file mode 100644 index 000000000..782f185f7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java @@ -0,0 +1,54 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "tool.execution_start". Tool execution startup details including MCP server information when applicable + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ToolExecutionStartEvent extends SessionEvent { + + @Override + public String getType() { return "tool.execution_start"; } + + @JsonProperty("data") + private ToolExecutionStartEventData data; + + public ToolExecutionStartEventData getData() { return data; } + public void setData(ToolExecutionStartEventData data) { this.data = data; } + + /** Data payload for {@link ToolExecutionStartEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ToolExecutionStartEventData( + /** Unique identifier for this tool call */ + @JsonProperty("toolCallId") String toolCallId, + /** Name of the tool being executed */ + @JsonProperty("toolName") String toolName, + /** Arguments passed to the tool */ + @JsonProperty("arguments") Object arguments, + /** Name of the MCP server hosting this tool, when the tool is an MCP tool */ + @JsonProperty("mcpServerName") String mcpServerName, + /** Original tool name on the MCP server, when the tool is an MCP tool */ + @JsonProperty("mcpToolName") String mcpToolName, + /** Identifier for the agent loop turn this tool was invoked in, matching the corresponding assistant.turn_start event */ + @JsonProperty("turnId") String turnId, + /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ + @JsonProperty("parentToolCallId") String parentToolCallId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java new file mode 100644 index 000000000..1b4d519a9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "tool.user_requested". User-initiated tool invocation request with tool name and arguments + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ToolUserRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "tool.user_requested"; } + + @JsonProperty("data") + private ToolUserRequestedEventData data; + + public ToolUserRequestedEventData getData() { return data; } + public void setData(ToolUserRequestedEventData data) { this.data = data; } + + /** Data payload for {@link ToolUserRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record ToolUserRequestedEventData( + /** Unique identifier for this tool call */ + @JsonProperty("toolCallId") String toolCallId, + /** Name of the tool the user wants to invoke */ + @JsonProperty("toolName") String toolName, + /** Arguments for the tool invocation */ + @JsonProperty("arguments") Object arguments + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java new file mode 100644 index 000000000..8f1257cf9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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.JsonProperty; +import javax.annotation.processing.Generated; + +/** + * Fallback for event types not yet known to this SDK version. + *

+ * {@link #getType()} returns the original type string from the JSON payload, + * preserving forward compatibility with event types introduced by newer CLI versions. + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class UnknownSessionEvent extends SessionEvent { + + @JsonProperty("type") + private String type = "unknown"; + + @Override + public String getType() { return type; } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java new file mode 100644 index 000000000..7750c9e70 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java @@ -0,0 +1,46 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "user_input.completed". User input request completion with the user's response + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class UserInputCompletedEvent extends SessionEvent { + + @Override + public String getType() { return "user_input.completed"; } + + @JsonProperty("data") + private UserInputCompletedEventData data; + + public UserInputCompletedEventData getData() { return data; } + public void setData(UserInputCompletedEventData data) { this.data = data; } + + /** Data payload for {@link UserInputCompletedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record UserInputCompletedEventData( + /** Request ID of the resolved user input request; clients should dismiss any UI for this request */ + @JsonProperty("requestId") String requestId, + /** The user's answer to the input request */ + @JsonProperty("answer") String answer, + /** Whether the answer was typed as free-form text rather than selected from choices */ + @JsonProperty("wasFreeform") Boolean wasFreeform + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java new file mode 100644 index 000000000..e7ddb2859 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java @@ -0,0 +1,51 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "user_input.requested". User input request notification with question and optional predefined choices + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class UserInputRequestedEvent extends SessionEvent { + + @Override + public String getType() { return "user_input.requested"; } + + @JsonProperty("data") + private UserInputRequestedEventData data; + + public UserInputRequestedEventData getData() { return data; } + public void setData(UserInputRequestedEventData data) { this.data = data; } + + /** Data payload for {@link UserInputRequestedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record UserInputRequestedEventData( + /** Unique identifier for this input request; used to respond via session.respondToUserInput() */ + @JsonProperty("requestId") String requestId, + /** The question or prompt to present to the user */ + @JsonProperty("question") String question, + /** Predefined choices for the user to select from, if applicable */ + @JsonProperty("choices") List choices, + /** Whether the user can provide a free-form text response in addition to predefined choices */ + @JsonProperty("allowFreeform") Boolean allowFreeform, + /** The LLM-assigned tool call ID that triggered this request; used by remote UIs to correlate responses */ + @JsonProperty("toolCallId") String toolCallId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java b/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java new file mode 100644 index 000000000..f6e7c60d7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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 agent mode that was active when this message was sent + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum UserMessageAgentMode { + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code plan} variant. */ + PLAN("plan"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"), + /** The {@code shell} variant. */ + SHELL("shell"); + + private final String value; + UserMessageAgentMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static UserMessageAgentMode fromValue(String value) { + for (UserMessageAgentMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown UserMessageAgentMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java new file mode 100644 index 000000000..3e8e7520f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java @@ -0,0 +1,61 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session event "user.message". + * + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class UserMessageEvent extends SessionEvent { + + @Override + public String getType() { return "user.message"; } + + @JsonProperty("data") + private UserMessageEventData data; + + public UserMessageEventData getData() { return data; } + public void setData(UserMessageEventData data) { this.data = data; } + + /** Data payload for {@link UserMessageEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record UserMessageEventData( + /** The user's message text as displayed in the timeline */ + @JsonProperty("content") String content, + /** Transformed version of the message sent to the model, with XML wrapping, timestamps, and other augmentations for prompt caching */ + @JsonProperty("transformedContent") String transformedContent, + /** Files, selections, or GitHub references attached to the message */ + @JsonProperty("attachments") List attachments, + /** Normalized document MIME types that were sent natively instead of through tagged_files XML */ + @JsonProperty("supportedNativeDocumentMimeTypes") List supportedNativeDocumentMimeTypes, + /** Path-backed native document attachments that stayed on the tagged_files path flow because native upload could not read them or would exceed the request size limit */ + @JsonProperty("nativeDocumentPathFallbackPaths") List nativeDocumentPathFallbackPaths, + /** Origin of this message, used for timeline filtering (e.g., "skill-pdf" for skill-injected messages that should be hidden from the user) */ + @JsonProperty("source") String source, + /** The agent mode that was active when this message was sent */ + @JsonProperty("agentMode") UserMessageAgentMode agentMode, + /** True when this user message was auto-injected by autopilot's continuation loop rather than typed by the user; used to distinguish autopilot-driven turns in telemetry. */ + @JsonProperty("isAutopilotContinuation") Boolean isAutopilotContinuation, + /** CAPI interaction ID for correlating this user message with its turn */ + @JsonProperty("interactionId") String interactionId, + /** Parent agent task ID for background telemetry correlated to this user turn */ + @JsonProperty("parentAgentTaskId") String parentAgentTaskId + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java b/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java new file mode 100644 index 000000000..813cd5e02 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java @@ -0,0 +1,41 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Working directory and git context at session start + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record WorkingDirectoryContext( + /** Current working directory path */ + @JsonProperty("cwd") String cwd, + /** Root directory of the git repository, resolved via git rev-parse */ + @JsonProperty("gitRoot") String gitRoot, + /** Repository identifier derived from the git remote URL ("owner/name" for GitHub, "org/project/repo" for Azure DevOps) */ + @JsonProperty("repository") String repository, + /** Hosting platform type of the repository (github or ado) */ + @JsonProperty("hostType") WorkingDirectoryContextHostType hostType, + /** Raw host string from the git remote URL (e.g. "github.com", "mycompany.ghe.com", "dev.azure.com") */ + @JsonProperty("repositoryHost") String repositoryHost, + /** Current git branch name */ + @JsonProperty("branch") String branch, + /** Head commit of current git branch at session start time */ + @JsonProperty("headCommit") String headCommit, + /** Base commit of current git branch at session start time */ + @JsonProperty("baseCommit") String baseCommit +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java new file mode 100644 index 000000000..c87237a8d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Hosting platform type of the repository (github or ado) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum WorkingDirectoryContextHostType { + /** The {@code github} variant. */ + GITHUB("github"), + /** The {@code ado} variant. */ + ADO("ado"); + + private final String value; + WorkingDirectoryContextHostType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkingDirectoryContextHostType fromValue(String value) { + for (WorkingDirectoryContextHostType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown WorkingDirectoryContextHostType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java b/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java new file mode 100644 index 000000000..a6347ed77 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 file was newly created or updated + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum WorkspaceFileChangedOperation { + /** The {@code create} variant. */ + CREATE("create"), + /** The {@code update} variant. */ + UPDATE("update"); + + private final String value; + WorkspaceFileChangedOperation(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkspaceFileChangedOperation fromValue(String value) { + for (WorkspaceFileChangedOperation v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown WorkspaceFileChangedOperation value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java new file mode 100644 index 000000000..a48640077 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Finite reason code describing why the current turn was aborted + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AbortReason { + /** The {@code user_initiated} variant. */ + USER_INITIATED("user_initiated"), + /** The {@code remote_command} variant. */ + REMOTE_COMMAND("remote_command"), + /** The {@code user_abort} variant. */ + USER_ABORT("user_abort"); + + private final String value; + AbortReason(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AbortReason fromValue(String value) { + for (AbortReason v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AbortReason value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java new file mode 100644 index 000000000..257a08756 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Quota usage snapshots for the resolved user, keyed by quota type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AccountGetQuotaResult( + /** Quota snapshots keyed by type (e.g., chat, completions, premium_interactions) */ + @JsonProperty("quotaSnapshots") Map quotaSnapshots +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java new file mode 100644 index 000000000..88e7ba9c6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java @@ -0,0 +1,42 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `AccountQuotaSnapshot` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AccountQuotaSnapshot( + /** Whether the user has an unlimited usage entitlement */ + @JsonProperty("isUnlimitedEntitlement") Boolean isUnlimitedEntitlement, + /** Number of requests included in the entitlement, or -1 for unlimited entitlements */ + @JsonProperty("entitlementRequests") Long entitlementRequests, + /** Number of requests used so far this period */ + @JsonProperty("usedRequests") Long usedRequests, + /** Whether usage is still permitted after quota exhaustion */ + @JsonProperty("usageAllowedWithExhaustedQuota") Boolean usageAllowedWithExhaustedQuota, + /** Percentage of entitlement remaining */ + @JsonProperty("remainingPercentage") Double remainingPercentage, + /** Number of additional usage requests made this period */ + @JsonProperty("overage") Double overage, + /** Whether additional usage is allowed when quota is exhausted */ + @JsonProperty("overageAllowedWithExhaustedQuota") Boolean overageAllowedWithExhaustedQuota, + /** Date when the quota resets (ISO 8601 string) */ + @JsonProperty("resetDate") OffsetDateTime resetDate +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java new file mode 100644 index 000000000..ce8089373 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java @@ -0,0 +1,49 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Schema for the `AgentInfo` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record AgentInfo( + /** Unique identifier of the custom agent */ + @JsonProperty("name") String name, + /** Human-readable display name */ + @JsonProperty("displayName") String displayName, + /** Description of the agent's purpose */ + @JsonProperty("description") String description, + /** Absolute local file path of the agent definition. Only set for file-based agents loaded from disk; remote agents do not have a path. */ + @JsonProperty("path") String path, + /** Stable identifier for selection. For most agents this is the same as `name`; for plugin/builtin agents it may differ. Always populated; defaults to `name` when no distinct id was assigned. */ + @JsonProperty("id") String id, + /** Where the agent definition was loaded from */ + @JsonProperty("source") AgentInfoSource source, + /** Whether the agent can be selected directly by the user. Agents marked `false` are subagent-only. */ + @JsonProperty("userInvocable") Boolean userInvocable, + /** Allowed tool names for this agent. Empty array means none; omitted means inherit defaults. */ + @JsonProperty("tools") List tools, + /** Preferred model id for this agent. When omitted, inherits the outer agent's model. */ + @JsonProperty("model") String model, + /** MCP server configurations attached to this agent, keyed by server name. Server config shape mirrors the MCP `mcpServers` schema. */ + @JsonProperty("mcpServers") Map mcpServers, + /** Skill names preloaded into this agent's context. Omitted means none. */ + @JsonProperty("skills") List skills +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java new file mode 100644 index 000000000..6f8afe71e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Where the agent definition was loaded from + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AgentInfoSource { + /** The {@code user} variant. */ + USER("user"), + /** The {@code project} variant. */ + PROJECT("project"), + /** The {@code inherited} variant. */ + INHERITED("inherited"), + /** The {@code remote} variant. */ + REMOTE("remote"), + /** The {@code plugin} variant. */ + PLUGIN("plugin"), + /** The {@code builtin} variant. */ + BUILTIN("builtin"); + + private final String value; + AgentInfoSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AgentInfoSource fromValue(String value) { + for (AgentInfoSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AgentInfoSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java new file mode 100644 index 000000000..1fb4b43ba --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Authentication type + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum AuthInfoType { + /** The {@code hmac} variant. */ + HMAC("hmac"), + /** The {@code env} variant. */ + ENV("env"), + /** The {@code user} variant. */ + USER("user"), + /** The {@code gh-cli} variant. */ + GH_CLI("gh-cli"), + /** The {@code api-key} variant. */ + API_KEY("api-key"), + /** The {@code token} variant. */ + TOKEN("token"), + /** The {@code copilot-api-token} variant. */ + COPILOT_API_TOKEN("copilot-api-token"); + + private final String value; + AuthInfoType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static AuthInfoType fromValue(String value) { + for (AuthInfoType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown AuthInfoType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java new file mode 100644 index 000000000..590dd0147 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 connection token presented by the SDK client during the handshake. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ConnectParams( + /** Connection token; required when the server was started with COPILOT_CONNECTION_TOKEN */ + @JsonProperty("token") String token +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java new file mode 100644 index 000000000..d24d120e1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Handshake result reporting the server's protocol version and package version on success. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ConnectResult( + /** Always true on success */ + @JsonProperty("ok") Boolean ok, + /** Server protocol version number */ + @JsonProperty("protocolVersion") Long protocolVersion, + /** Server package version */ + @JsonProperty("version") String version +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java new file mode 100644 index 000000000..9e3a4a57f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java @@ -0,0 +1,48 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Metadata for a connected remote session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ConnectedRemoteSessionMetadata( + /** SDK session ID for the connected remote session. */ + @JsonProperty("sessionId") String sessionId, + /** Optional friendly session name. */ + @JsonProperty("name") String name, + /** Optional session summary. */ + @JsonProperty("summary") String summary, + /** Session start time as an ISO 8601 string. */ + @JsonProperty("startTime") OffsetDateTime startTime, + /** Last session update time as an ISO 8601 string. */ + @JsonProperty("modifiedTime") OffsetDateTime modifiedTime, + /** Repository associated with the connected remote session. */ + @JsonProperty("repository") ConnectedRemoteSessionMetadataRepository repository, + /** Pull request number associated with the session. */ + @JsonProperty("pullRequestNumber") Long pullRequestNumber, + /** Original remote resource identifier. */ + @JsonProperty("resourceId") String resourceId, + /** Neutral SDK discriminator for the connected remote session kind. */ + @JsonProperty("kind") ConnectedRemoteSessionMetadataKind kind, + /** Remote session staleness deadline as an ISO 8601 string. */ + @JsonProperty("staleAt") OffsetDateTime staleAt, + /** Remote session state returned by the backing service. */ + @JsonProperty("state") String state +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java new file mode 100644 index 000000000..8d22c1dd4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Neutral SDK discriminator for the connected remote session kind. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ConnectedRemoteSessionMetadataKind { + /** The {@code remote-session} variant. */ + REMOTE_SESSION("remote-session"), + /** The {@code coding-agent} variant. */ + CODING_AGENT("coding-agent"); + + private final String value; + ConnectedRemoteSessionMetadataKind(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectedRemoteSessionMetadataKind fromValue(String value) { + for (ConnectedRemoteSessionMetadataKind v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ConnectedRemoteSessionMetadataKind value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java new file mode 100644 index 000000000..7daa17bd1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Repository associated with the connected remote session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ConnectedRemoteSessionMetadataRepository( + /** Repository owner or organization login. */ + @JsonProperty("owner") String owner, + /** Repository name. */ + @JsonProperty("name") String name, + /** Branch associated with the remote session. */ + @JsonProperty("branch") String branch +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java new file mode 100644 index 000000000..73095ef61 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `DiscoveredMcpServer` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record DiscoveredMcpServer( + /** Server name (config key) */ + @JsonProperty("name") String name, + /** Server transport type: stdio, http, sse, or memory */ + @JsonProperty("type") DiscoveredMcpServerType type, + /** Configuration source: user, workspace, plugin, or builtin */ + @JsonProperty("source") McpServerSource source, + /** Whether the server is enabled (not in the disabled list) */ + @JsonProperty("enabled") Boolean enabled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java new file mode 100644 index 000000000..8e6c1417a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Server transport type: stdio, http, sse, or memory + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum DiscoveredMcpServerType { + /** The {@code stdio} variant. */ + STDIO("stdio"), + /** The {@code http} variant. */ + HTTP("http"), + /** The {@code sse} variant. */ + SSE("sse"), + /** The {@code memory} variant. */ + MEMORY("memory"); + + private final String value; + DiscoveredMcpServerType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static DiscoveredMcpServerType fromValue(String value) { + for (DiscoveredMcpServerType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown DiscoveredMcpServerType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java new file mode 100644 index 000000000..5e85b1926 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Agent-scope filter: 'primary' returns only main-agent events plus events whose type starts with 'subagent.' (matching the typed-subscription default behavior); 'all' returns events from all agents (matching wildcard-subscription behavior). Default is 'all' to preserve wildcard semantics for catch-up callers. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum EventsAgentScope { + /** The {@code primary} variant. */ + PRIMARY("primary"), + /** The {@code all} variant. */ + ALL("all"); + + private final String value; + EventsAgentScope(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static EventsAgentScope fromValue(String value) { + for (EventsAgentScope v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown EventsAgentScope value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java new file mode 100644 index 000000000..31c1fcab0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Cursor status: 'ok' means the cursor was applied successfully; 'expired' means the cursor referred to an event that no longer exists in history (e.g. truncated or compacted away) and the read started from the beginning of the remaining history. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum EventsCursorStatus { + /** The {@code ok} variant. */ + OK("ok"), + /** The {@code expired} variant. */ + EXPIRED("expired"); + + private final String value; + EventsCursorStatus(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static EventsCursorStatus fromValue(String value) { + for (EventsCursorStatus v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown EventsCursorStatus value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java new file mode 100644 index 000000000..13bb851b4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `Extension` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record Extension( + /** Source-qualified ID (e.g., 'project:my-ext', 'user:auth-helper') */ + @JsonProperty("id") String id, + /** Extension name (directory name) */ + @JsonProperty("name") String name, + /** Discovery source: project (.github/extensions/) or user (~/.copilot/extensions/) */ + @JsonProperty("source") ExtensionSource source, + /** Current status: running, disabled, failed, or starting */ + @JsonProperty("status") ExtensionStatus status, + /** Process ID if the extension is running */ + @JsonProperty("pid") Long pid +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java new file mode 100644 index 000000000..aeb7a144f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Discovery source: project (.github/extensions/) or user (~/.copilot/extensions/) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ExtensionSource { + /** The {@code project} variant. */ + PROJECT("project"), + /** The {@code user} variant. */ + USER("user"); + + private final String value; + ExtensionSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ExtensionSource fromValue(String value) { + for (ExtensionSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ExtensionSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java new file mode 100644 index 000000000..34592663f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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 status: running, disabled, failed, or starting + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ExtensionStatus { + /** The {@code running} variant. */ + RUNNING("running"), + /** The {@code disabled} variant. */ + DISABLED("disabled"), + /** The {@code failed} variant. */ + FAILED("failed"), + /** The {@code starting} variant. */ + STARTING("starting"); + + private final String value; + ExtensionStatus(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ExtensionStatus fromValue(String value) { + for (ExtensionStatus v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ExtensionStatus value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java new file mode 100644 index 000000000..6c223f029 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Post-compaction context window usage breakdown + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record HistoryCompactContextWindow( + /** Maximum token count for the model's context window */ + @JsonProperty("tokenLimit") Long tokenLimit, + /** Current total tokens in the context window (system + conversation + tool definitions) */ + @JsonProperty("currentTokens") Long currentTokens, + /** Current number of messages in the conversation */ + @JsonProperty("messagesLength") Long messagesLength, + /** Token count from system message(s) */ + @JsonProperty("systemTokens") Long systemTokens, + /** Token count from non-system messages (user, assistant, tool) */ + @JsonProperty("conversationTokens") Long conversationTokens, + /** Token count from tool definitions */ + @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java new file mode 100644 index 000000000..c274dfb1a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `InstalledPlugin` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record InstalledPlugin( + /** Plugin name */ + @JsonProperty("name") String name, + /** Marketplace the plugin came from (empty string for direct repo installs) */ + @JsonProperty("marketplace") String marketplace, + /** Version installed (if available) */ + @JsonProperty("version") String version, + /** Installation timestamp */ + @JsonProperty("installed_at") String installedAt, + /** Whether the plugin is currently enabled */ + @JsonProperty("enabled") Boolean enabled, + /** Path where the plugin is cached locally */ + @JsonProperty("cache_path") String cachePath, + /** Source for direct repo installs (when marketplace is empty) */ + @JsonProperty("source") Object source +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java new file mode 100644 index 000000000..9e6a458d4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `InstructionsSources` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record InstructionsSources( + /** Unique identifier for this source (used for toggling) */ + @JsonProperty("id") String id, + /** Human-readable label */ + @JsonProperty("label") String label, + /** File path relative to repo or absolute for home */ + @JsonProperty("sourcePath") String sourcePath, + /** Raw content of the instruction file */ + @JsonProperty("content") String content, + /** Category of instruction source — used for merge logic */ + @JsonProperty("type") InstructionsSourcesType type, + /** Where this source lives — used for UI grouping */ + @JsonProperty("location") InstructionsSourcesLocation location, + /** Glob pattern(s) from frontmatter — when set, this instruction applies only to matching files */ + @JsonProperty("applyTo") List applyTo, + /** Short description (body after frontmatter) for use in instruction tables */ + @JsonProperty("description") String description, + /** When true, this source starts disabled and must be toggled on by the user */ + @JsonProperty("defaultDisabled") Boolean defaultDisabled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java new file mode 100644 index 000000000..23db5a367 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Where this source lives — used for UI grouping + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum InstructionsSourcesLocation { + /** The {@code user} variant. */ + USER("user"), + /** The {@code repository} variant. */ + REPOSITORY("repository"), + /** The {@code working-directory} variant. */ + WORKING_DIRECTORY("working-directory"), + /** The {@code plugin} variant. */ + PLUGIN("plugin"); + + private final String value; + InstructionsSourcesLocation(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static InstructionsSourcesLocation fromValue(String value) { + for (InstructionsSourcesLocation v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown InstructionsSourcesLocation value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java new file mode 100644 index 000000000..6fed6c4bf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Category of instruction source — used for merge logic + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum InstructionsSourcesType { + /** The {@code home} variant. */ + HOME("home"), + /** The {@code repo} variant. */ + REPO("repo"), + /** The {@code model} variant. */ + MODEL("model"), + /** The {@code vscode} variant. */ + VSCODE("vscode"), + /** The {@code nested-agents} variant. */ + NESTED_AGENTS("nested-agents"), + /** The {@code child-instructions} variant. */ + CHILD_INSTRUCTIONS("child-instructions"), + /** The {@code plugin} variant. */ + PLUGIN("plugin"); + + private final String value; + InstructionsSourcesType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static InstructionsSourcesType fromValue(String value) { + for (InstructionsSourcesType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown InstructionsSourcesType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java new file mode 100644 index 000000000..64ffd3951 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP server name and configuration to add to user configuration. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpConfigAddParams( + /** Unique name for the MCP server */ + @JsonProperty("name") String name, + /** MCP server configuration (stdio process or remote HTTP/SSE) */ + @JsonProperty("config") Object config +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java new file mode 100644 index 000000000..e71c12f93 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP server names to disable for new sessions. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpConfigDisableParams( + /** Names of MCP servers to disable. Each server is added to the persisted disabled list so new sessions skip it. Already-disabled names are ignored. Active sessions keep their current connections until they end. */ + @JsonProperty("names") List names +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java new file mode 100644 index 000000000..952d6fb68 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP server names to enable for new sessions. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpConfigEnableParams( + /** Names of MCP servers to enable. Each server is removed from the persisted disabled list so new sessions spawn it. Unknown or already-enabled names are ignored. */ + @JsonProperty("names") List names +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java new file mode 100644 index 000000000..4d6644228 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * User-configured MCP servers, keyed by server name. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpConfigListResult( + /** All MCP servers from user config, keyed by name */ + @JsonProperty("servers") Map servers +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java new file mode 100644 index 000000000..840b72abf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP server name to remove from user configuration. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpConfigRemoveParams( + /** Name of the MCP server to remove */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java new file mode 100644 index 000000000..f2c2b0faa --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP server name and replacement configuration to write to user configuration. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpConfigUpdateParams( + /** Name of the MCP server to update */ + @JsonProperty("name") String name, + /** MCP server configuration (stdio process or remote HTTP/SSE) */ + @JsonProperty("config") Object config +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java new file mode 100644 index 000000000..ed7b32bb7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 working directory used as context for MCP server discovery. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpDiscoverParams( + /** Working directory used as context for discovery (e.g., plugin resolution) */ + @JsonProperty("workingDirectory") String workingDirectory +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java new file mode 100644 index 000000000..b000b16ff --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP servers discovered from user, workspace, plugin, and built-in sources. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpDiscoverResult( + /** MCP servers discovered from all sources */ + @JsonProperty("servers") List servers +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java new file mode 100644 index 000000000..4fd862ebd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Raw MCP CreateMessageRequest params, as received in the `sampling.requested` event. Treated as opaque at the schema layer; the runtime converts the embedded MCP messages into the OpenAI chat-completion shape internally. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpExecuteSamplingRequest() { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java new file mode 100644 index 000000000..18a838d30 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP CreateMessageResult payload (with optional 'tools' extension), present when action='success'. Treated as opaque at the schema layer; consumers should construct/consume it per the MCP CreateMessageResult shape. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpExecuteSamplingResult() { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java new file mode 100644 index 000000000..d0a3802f7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Outcome of the sampling inference. 'success' produced a response; 'failure' encountered an error (including agent-side rejection by content filter or criteria); 'cancelled' the caller cancelled this execution via cancelSamplingExecution. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum McpSamplingExecutionAction { + /** The {@code success} variant. */ + SUCCESS("success"), + /** The {@code failure} variant. */ + FAILURE("failure"), + /** The {@code cancelled} variant. */ + CANCELLED("cancelled"); + + private final String value; + McpSamplingExecutionAction(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpSamplingExecutionAction fromValue(String value) { + for (McpSamplingExecutionAction v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpSamplingExecutionAction value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java new file mode 100644 index 000000000..7da05f659 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `McpServer` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record McpServer( + /** Server name (config key) */ + @JsonProperty("name") String name, + /** Connection status: connected, failed, needs-auth, pending, disabled, or not_configured */ + @JsonProperty("status") McpServerStatus status, + /** Configuration source: user, workspace, plugin, or builtin */ + @JsonProperty("source") McpServerSource source, + /** Error message if the server failed to connect */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java new file mode 100644 index 000000000..f709df96d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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: user, workspace, plugin, or builtin + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum McpServerSource { + /** 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; + McpServerSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpServerSource fromValue(String value) { + for (McpServerSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpServerSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java new file mode 100644 index 000000000..db463a737 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Connection status: connected, failed, needs-auth, pending, disabled, or not_configured + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum McpServerStatus { + /** 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; + McpServerStatus(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpServerStatus fromValue(String value) { + for (McpServerStatus v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpServerStatus value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java new file mode 100644 index 000000000..dda0c02ca --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * How environment-variable values supplied to MCP servers are resolved. "direct" passes literal string values; "indirect" treats values as references (e.g. names of environment variables on the host) that the runtime resolves before launch. Defaults to the runtime's startup mode; clients that intentionally launch MCP servers with literal values (e.g. CLI prompt mode and ACP) set this to "direct". + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum McpSetEnvValueModeDetails { + /** The {@code direct} variant. */ + DIRECT("direct"), + /** The {@code indirect} variant. */ + INDIRECT("indirect"); + + private final String value; + McpSetEnvValueModeDetails(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpSetEnvValueModeDetails fromValue(String value) { + for (McpSetEnvValueModeDetails v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpSetEnvValueModeDetails value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java new file mode 100644 index 000000000..2d6c7eb57 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The current agent mode for this session (e.g., 'interactive', 'plan', 'autopilot') + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum MetadataSnapshotCurrentMode { + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code plan} variant. */ + PLAN("plan"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"); + + private final String value; + MetadataSnapshotCurrentMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static MetadataSnapshotCurrentMode fromValue(String value) { + for (MetadataSnapshotCurrentMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown MetadataSnapshotCurrentMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java new file mode 100644 index 000000000..88b6dede3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Remote-session-specific metadata. Populated only when `isRemote` is true. Fields are immutable for the lifetime of the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record MetadataSnapshotRemoteMetadata( + /** The original resource identifier (task ID or PR node ID), preserved across event-replay reconstructions. Falls back to `sessionId` when absent. */ + @JsonProperty("resourceId") String resourceId, + /** The repository the remote session targets. */ + @JsonProperty("repository") MetadataSnapshotRemoteMetadataRepository repository, + /** The pull request number the remote session is associated with, if any. */ + @JsonProperty("pullRequestNumber") Long pullRequestNumber, + /** Whether the remote task originated from Copilot Coding Agent (cca) or a CLI `--remote` invocation. */ + @JsonProperty("taskType") MetadataSnapshotRemoteMetadataTaskType taskType +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java new file mode 100644 index 000000000..cc0bb6532 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The repository the remote session targets. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record MetadataSnapshotRemoteMetadataRepository( + /** The GitHub owner (user or organization) of the target repository. */ + @JsonProperty("owner") String owner, + /** The GitHub repository name (without owner). */ + @JsonProperty("name") String name, + /** The branch the remote session is operating on. */ + @JsonProperty("branch") String branch +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java new file mode 100644 index 000000000..da019b5f7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 remote task originated from Copilot Coding Agent (cca) or a CLI `--remote` invocation. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum MetadataSnapshotRemoteMetadataTaskType { + /** The {@code cca} variant. */ + CCA("cca"), + /** The {@code cli} variant. */ + CLI("cli"); + + private final String value; + MetadataSnapshotRemoteMetadataTaskType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static MetadataSnapshotRemoteMetadataTaskType fromValue(String value) { + for (MetadataSnapshotRemoteMetadataTaskType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown MetadataSnapshotRemoteMetadataTaskType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java new file mode 100644 index 000000000..090451916 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java @@ -0,0 +1,44 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `Model` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record Model( + /** Model identifier (e.g., "claude-sonnet-4.5") */ + @JsonProperty("id") String id, + /** Display name */ + @JsonProperty("name") String name, + /** Model capabilities and limits */ + @JsonProperty("capabilities") ModelCapabilities capabilities, + /** Policy state (if applicable) */ + @JsonProperty("policy") ModelPolicy policy, + /** Billing information */ + @JsonProperty("billing") ModelBilling billing, + /** Supported reasoning effort levels (only present if model supports reasoning effort) */ + @JsonProperty("supportedReasoningEfforts") List supportedReasoningEfforts, + /** Default reasoning effort level (only present if model supports reasoning effort) */ + @JsonProperty("defaultReasoningEffort") String defaultReasoningEffort, + /** Model capability category for grouping in the model picker */ + @JsonProperty("modelPickerCategory") ModelPickerCategory modelPickerCategory, + /** Relative cost tier for token-based billing users */ + @JsonProperty("modelPickerPriceCategory") ModelPickerPriceCategory modelPickerPriceCategory +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java new file mode 100644 index 000000000..94a8188f1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Billing information + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelBilling( + /** Billing cost multiplier relative to the base rate */ + @JsonProperty("multiplier") Double multiplier, + /** Token-level pricing information for this model */ + @JsonProperty("tokenPrices") ModelBillingTokenPrices tokenPrices +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java new file mode 100644 index 000000000..7477b8526 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token-level pricing information for this model + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelBillingTokenPrices( + /** Price per billing batch of input tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */ + @JsonProperty("inputPrice") Long inputPrice, + /** Price per billing batch of output tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */ + @JsonProperty("outputPrice") Long outputPrice, + /** Price per billing batch of cached tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */ + @JsonProperty("cachePrice") Long cachePrice, + /** Number of tokens per standard billing batch */ + @JsonProperty("batchSize") Long batchSize +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java new file mode 100644 index 000000000..168a72099 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Model capabilities and limits + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilities( + /** Feature flags indicating what the model supports */ + @JsonProperty("supports") ModelCapabilitiesSupports supports, + /** Token limits for prompts, outputs, and context window */ + @JsonProperty("limits") ModelCapabilitiesLimits limits +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java new file mode 100644 index 000000000..694e2a2ea --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token limits for prompts, outputs, and context window + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesLimits( + /** Maximum number of prompt/input tokens */ + @JsonProperty("max_prompt_tokens") Long maxPromptTokens, + /** Maximum number of output/completion tokens */ + @JsonProperty("max_output_tokens") Long maxOutputTokens, + /** Maximum total context window size in tokens */ + @JsonProperty("max_context_window_tokens") Long maxContextWindowTokens, + /** Vision-specific limits */ + @JsonProperty("vision") ModelCapabilitiesLimitsVision vision +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java new file mode 100644 index 000000000..d7f8e7154 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java @@ -0,0 +1,32 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Vision-specific limits + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesLimitsVision( + /** MIME types the model accepts */ + @JsonProperty("supported_media_types") List supportedMediaTypes, + /** Maximum number of images per prompt */ + @JsonProperty("max_prompt_images") Long maxPromptImages, + /** Maximum image size in bytes */ + @JsonProperty("max_prompt_image_size") Long maxPromptImageSize +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java new file mode 100644 index 000000000..1433a7b5e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Override individual model capabilities resolved by the runtime + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesOverride( + /** Feature flags indicating what the model supports */ + @JsonProperty("supports") ModelCapabilitiesOverrideSupports supports, + /** Token limits for prompts, outputs, and context window */ + @JsonProperty("limits") ModelCapabilitiesOverrideLimits limits +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java new file mode 100644 index 000000000..c0de367f3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token limits for prompts, outputs, and context window + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesOverrideLimits( + /** Maximum number of prompt/input tokens */ + @JsonProperty("max_prompt_tokens") Long maxPromptTokens, + /** Maximum number of output/completion tokens */ + @JsonProperty("max_output_tokens") Long maxOutputTokens, + /** Maximum total context window size in tokens */ + @JsonProperty("max_context_window_tokens") Long maxContextWindowTokens, + /** Vision-specific limits */ + @JsonProperty("vision") ModelCapabilitiesOverrideLimitsVision vision +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java new file mode 100644 index 000000000..86339787d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java @@ -0,0 +1,32 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Vision-specific limits + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesOverrideLimitsVision( + /** MIME types the model accepts */ + @JsonProperty("supported_media_types") List supportedMediaTypes, + /** Maximum number of images per prompt */ + @JsonProperty("max_prompt_images") Long maxPromptImages, + /** Maximum image size in bytes */ + @JsonProperty("max_prompt_image_size") Long maxPromptImageSize +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java new file mode 100644 index 000000000..ec1da750d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Feature flags indicating what the model supports + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesOverrideSupports( + /** Whether this model supports vision/image input */ + @JsonProperty("vision") Boolean vision, + /** Whether this model supports reasoning effort configuration */ + @JsonProperty("reasoningEffort") Boolean reasoningEffort +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java new file mode 100644 index 000000000..91a98b423 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Feature flags indicating what the model supports + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelCapabilitiesSupports( + /** Whether this model supports vision/image input */ + @JsonProperty("vision") Boolean vision, + /** Whether this model supports reasoning effort configuration */ + @JsonProperty("reasoningEffort") Boolean reasoningEffort +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java new file mode 100644 index 000000000..ab36abfd9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Model capability category for grouping in the model picker + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ModelPickerCategory { + /** The {@code lightweight} variant. */ + LIGHTWEIGHT("lightweight"), + /** The {@code versatile} variant. */ + VERSATILE("versatile"), + /** The {@code powerful} variant. */ + POWERFUL("powerful"); + + private final String value; + ModelPickerCategory(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelPickerCategory fromValue(String value) { + for (ModelPickerCategory v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ModelPickerCategory value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java new file mode 100644 index 000000000..8f7050395 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Relative cost tier for token-based billing users + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ModelPickerPriceCategory { + /** The {@code low} variant. */ + LOW("low"), + /** The {@code medium} variant. */ + MEDIUM("medium"), + /** The {@code high} variant. */ + HIGH("high"), + /** The {@code very_high} variant. */ + VERY_HIGH("very_high"); + + private final String value; + ModelPickerPriceCategory(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelPickerPriceCategory fromValue(String value) { + for (ModelPickerPriceCategory v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ModelPickerPriceCategory value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java new file mode 100644 index 000000000..f37fb85d0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Policy state (if applicable) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelPolicy( + /** Current policy state for this model */ + @JsonProperty("state") ModelPolicyState state, + /** Usage terms or conditions for this model */ + @JsonProperty("terms") String terms +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java new file mode 100644 index 000000000..525d57ca6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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 policy state for this model + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ModelPolicyState { + /** The {@code enabled} variant. */ + ENABLED("enabled"), + /** The {@code disabled} variant. */ + DISABLED("disabled"), + /** The {@code unconfigured} variant. */ + UNCONFIGURED("unconfigured"); + + private final String value; + ModelPolicyState(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ModelPolicyState fromValue(String value) { + for (ModelPolicyState v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ModelPolicyState value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java new file mode 100644 index 000000000..0ae1acfce --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * List of Copilot models available to the resolved user, including capabilities and billing metadata. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ModelsListResult( + /** List of available models with full metadata */ + @JsonProperty("models") List models +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java new file mode 100644 index 000000000..7be82f9d5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * How env values are passed to MCP servers (`direct` inlines literal values; `indirect` resolves at launch). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum OptionsUpdateEnvValueMode { + /** The {@code direct} variant. */ + DIRECT("direct"), + /** The {@code indirect} variant. */ + INDIRECT("indirect"); + + private final String value; + OptionsUpdateEnvValueMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static OptionsUpdateEnvValueMode fromValue(String value) { + for (OptionsUpdateEnvValueMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown OptionsUpdateEnvValueMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java new file mode 100644 index 000000000..de370ca5d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `PendingPermissionRequest` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PendingPermissionRequest( + /** Unique identifier for the pending permission request */ + @JsonProperty("requestId") String requestId, + /** The user-facing permission prompt details (commands, write, read, mcp, url, memory, custom-tool, path, hook) */ + @JsonProperty("request") Object request +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java new file mode 100644 index 000000000..1b00c5bf5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 location is a git repo or directory + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum PermissionLocationType { + /** The {@code repo} variant. */ + REPO("repo"), + /** The {@code dir} variant. */ + DIR("dir"); + + private final String value; + PermissionLocationType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static PermissionLocationType fromValue(String value) { + for (PermissionLocationType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown PermissionLocationType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java new file mode 100644 index 000000000..29aef6c66 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * If specified, replaces the session's path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session's working directory). Omit to leave the current path policy unchanged. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PermissionPathsConfig( + /** If true, the runtime allows access to all paths without prompting. Equivalent to constructing an UnrestrictedPathManager. */ + @JsonProperty("unrestricted") Boolean unrestricted, + /** Additional directories to allow tool access to (in addition to the session's working directory). When `unrestricted` is true, these are still pre-populated on the UnrestrictedPathManager so they remain visible via getDirectories() (e.g. for @-mention completion). */ + @JsonProperty("additionalDirectories") List additionalDirectories, + /** Whether to include the system temp directory in the allowed list (defaults to true). Ignored when `unrestricted` is true. */ + @JsonProperty("includeTempDirectory") Boolean includeTempDirectory, + /** Workspace root path (special-cased to be allowed even before the directory exists). Ignored when `unrestricted` is true. */ + @JsonProperty("workspacePath") String workspacePath +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java new file mode 100644 index 000000000..7980e0e83 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `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/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java new file mode 100644 index 000000000..7cc00563f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * If specified, replaces the session's approved/denied permission rules. Omit to leave the current rules unchanged. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PermissionRulesSet( + /** Rules that auto-approve matching requests */ + @JsonProperty("approved") List approved, + /** Rules that auto-deny matching requests */ + @JsonProperty("denied") List denied +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java new file mode 100644 index 000000000..728e7b40d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * If specified, replaces the session's URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PermissionUrlsConfig( + /** If true, the runtime allows access to all URLs without prompting. Initial allow-list is ignored when this is true. */ + @JsonProperty("unrestricted") Boolean unrestricted, + /** Initial list of allowed URL/domain patterns. Patterns may include path components. Ignored when `unrestricted` is true. */ + @JsonProperty("initialAllowed") List initialAllowed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java new file mode 100644 index 000000000..61108c16b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `PermissionsConfigureAdditionalContentExclusionPolicy` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PermissionsConfigureAdditionalContentExclusionPolicy( + @JsonProperty("rules") List rules, + @JsonProperty("last_updated_at") Object lastUpdatedAt, + /** Allowed values for the `PermissionsConfigureAdditionalContentExclusionPolicyScope` enumeration. */ + @JsonProperty("scope") PermissionsConfigureAdditionalContentExclusionPolicyScope scope +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java new file mode 100644 index 000000000..c6c7f649a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `PermissionsConfigureAdditionalContentExclusionPolicyRule` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PermissionsConfigureAdditionalContentExclusionPolicyRule( + @JsonProperty("paths") List paths, + @JsonProperty("ifAnyMatch") List ifAnyMatch, + @JsonProperty("ifNoneMatch") List ifNoneMatch, + /** Schema for the `PermissionsConfigureAdditionalContentExclusionPolicyRuleSource` type. */ + @JsonProperty("source") PermissionsConfigureAdditionalContentExclusionPolicyRuleSource source +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java new file mode 100644 index 000000000..a5d4a45f3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `PermissionsConfigureAdditionalContentExclusionPolicyRuleSource` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PermissionsConfigureAdditionalContentExclusionPolicyRuleSource( + @JsonProperty("name") String name, + @JsonProperty("type") String type +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java new file mode 100644 index 000000000..f006888b7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Allowed values for the `PermissionsConfigureAdditionalContentExclusionPolicyScope` enumeration. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum PermissionsConfigureAdditionalContentExclusionPolicyScope { + /** The {@code repo} variant. */ + REPO("repo"), + /** The {@code all} variant. */ + ALL("all"); + + private final String value; + PermissionsConfigureAdditionalContentExclusionPolicyScope(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static PermissionsConfigureAdditionalContentExclusionPolicyScope fromValue(String value) { + for (PermissionsConfigureAdditionalContentExclusionPolicyScope v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown PermissionsConfigureAdditionalContentExclusionPolicyScope value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java new file mode 100644 index 000000000..f574befcf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 change applies to ephemeral session-scoped rules (cleared at session end) or to location-scoped rules persisted via the location-permissions config file. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum PermissionsModifyRulesScope { + /** The {@code session} variant. */ + SESSION("session"), + /** The {@code location} variant. */ + LOCATION("location"); + + private final String value; + PermissionsModifyRulesScope(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static PermissionsModifyRulesScope fromValue(String value) { + for (PermissionsModifyRulesScope v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown PermissionsModifyRulesScope value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java new file mode 100644 index 000000000..b86b09dfa --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Optional source for allow-all telemetry. Defaults to `rpc` when omitted for SDK callers. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum PermissionsSetApproveAllSource { + /** The {@code cli_flag} variant. */ + CLI_FLAG("cli_flag"), + /** The {@code slash_command} variant. */ + SLASH_COMMAND("slash_command"), + /** The {@code autopilot_confirmation} variant. */ + AUTOPILOT_CONFIRMATION("autopilot_confirmation"), + /** The {@code rpc} variant. */ + RPC("rpc"); + + private final String value; + PermissionsSetApproveAllSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static PermissionsSetApproveAllSource fromValue(String value) { + for (PermissionsSetApproveAllSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown PermissionsSetApproveAllSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java new file mode 100644 index 000000000..2e00e6cac --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 message to echo back to the caller. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PingParams( + /** Optional message to echo back */ + @JsonProperty("message") String message +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java new file mode 100644 index 000000000..ded50ecbd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java @@ -0,0 +1,32 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Server liveness response, including the echoed message, current server timestamp, and protocol version. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record PingResult( + /** Echoed message (or default greeting) */ + @JsonProperty("message") String message, + /** ISO 8601 timestamp when the server handled the ping */ + @JsonProperty("timestamp") OffsetDateTime timestamp, + /** Server protocol version number */ + @JsonProperty("protocolVersion") Long protocolVersion +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java new file mode 100644 index 000000000..b10cd31cf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `Plugin` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record Plugin( + /** Plugin name */ + @JsonProperty("name") String name, + /** Marketplace the plugin came from */ + @JsonProperty("marketplace") String marketplace, + /** Installed version */ + @JsonProperty("version") String version, + /** Whether the plugin is currently enabled */ + @JsonProperty("enabled") Boolean enabled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java new file mode 100644 index 000000000..bfbc87f46 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `QueuePendingItems` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record QueuePendingItems( + /** Whether this item is a queued user message or a queued slash command / model change */ + @JsonProperty("kind") QueuePendingItemsKind kind, + /** Human-readable text to display for this queue entry in the UI */ + @JsonProperty("displayText") String displayText +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java new file mode 100644 index 000000000..7cf13a257 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 this item is a queued user message or a queued slash command / model change + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum QueuePendingItemsKind { + /** The {@code message} variant. */ + MESSAGE("message"), + /** The {@code command} variant. */ + COMMAND("command"); + + private final String value; + QueuePendingItemsKind(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static QueuePendingItemsKind fromValue(String value) { + for (QueuePendingItemsKind v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown QueuePendingItemsKind value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java new file mode 100644 index 000000000..3b95a9e2b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Reasoning summary mode to request for supported model clients + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ReasoningSummary { + /** The {@code none} variant. */ + NONE("none"), + /** The {@code concise} variant. */ + CONCISE("concise"), + /** The {@code detailed} variant. */ + DETAILED("detailed"); + + private final String value; + ReasoningSummary(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ReasoningSummary fromValue(String value) { + for (ReasoningSummary v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ReasoningSummary value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java new file mode 100644 index 000000000..68c3e6617 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Per-session remote mode. "off" disables remote, "export" exports session events to GitHub without enabling remote steering, "on" enables both export and remote steering. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum RemoteSessionMode { + /** The {@code off} variant. */ + OFF("off"), + /** The {@code export} variant. */ + EXPORT("export"), + /** The {@code on} variant. */ + ON("on"); + + private final String value; + RemoteSessionMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static RemoteSessionMode fromValue(String value) { + for (RemoteSessionMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown RemoteSessionMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java new file mode 100644 index 000000000..67e7571a1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java @@ -0,0 +1,38 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Interface for invoking JSON-RPC methods with typed responses. + *

+ * Implementations delegate to the underlying transport layer + * (e.g., a {@code JsonRpcClient} instance). A method reference is typically the clearest + * way to adapt a generic {@code invoke} method to this interface: + *

{@code
+ * RpcCaller caller = jsonRpcClient::invoke;
+ * }
+ * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public interface RpcCaller { + + /** + * Invokes a JSON-RPC method and returns a future for the typed response. + * + * @param the expected response type + * @param method the JSON-RPC method name + * @param params the request parameters (may be a {@code Map}, DTO record, or {@code JsonNode}) + * @param resultType the {@link Class} of the expected response type + * @return a {@link CompletableFuture} that completes with the deserialized result + */ + CompletableFuture invoke(String method, Object params, Class resultType); +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java new file mode 100644 index 000000000..0d2a4e8b7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java @@ -0,0 +1,38 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Package-private holder for the shared {@link com.fasterxml.jackson.databind.ObjectMapper} + * used by session API classes when merging {@code sessionId} into call parameters. + *

+ * {@link com.fasterxml.jackson.databind.ObjectMapper} is thread-safe and expensive to + * instantiate, so a single shared instance is used across all generated API classes. + * The configuration mirrors {@code JsonRpcClient}'s mapper (JavaTimeModule, lenient + * unknown-property handling, ISO date format, NON_NULL inclusion). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +final class RpcMapper { + + static final com.fasterxml.jackson.databind.ObjectMapper INSTANCE = createMapper(); + + private static com.fasterxml.jackson.databind.ObjectMapper createMapper() { + com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); + mapper.registerModule(new com.fasterxml.jackson.datatype.jsr310.JavaTimeModule()); + mapper.configure(com.fasterxml.jackson.databind.DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(com.fasterxml.jackson.databind.SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); + mapper.setDefaultPropertyInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL); + return mapper; + } + + private RpcMapper() {} +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java new file mode 100644 index 000000000..fb41975bd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java @@ -0,0 +1,38 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `ScheduleEntry` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ScheduleEntry( + /** Sequential id assigned by the runtime within the session. Stable across resumes (rebuilt from the event log). */ + @JsonProperty("id") Long id, + /** Interval between scheduled ticks, in milliseconds. */ + @JsonProperty("intervalMs") Long intervalMs, + /** Prompt text that gets enqueued on every tick. */ + @JsonProperty("prompt") String prompt, + /** Whether the schedule re-arms after each tick (`/every`) or fires once (`/after`). */ + @JsonProperty("recurring") Boolean recurring, + /** Display-only label for the prompt as shown in the UI (e.g. `/skill-name` for a skill-invocation schedule). The actual enqueued prompt is `prompt`. */ + @JsonProperty("displayPrompt") String displayPrompt, + /** ISO 8601 timestamp when the next tick is scheduled to fire. */ + @JsonProperty("nextRunAt") OffsetDateTime nextRunAt +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java new file mode 100644 index 000000000..364377311 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Secret values to add to the redaction filter. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SecretsAddFilterValuesParams( + /** Raw secret values to register for redaction */ + @JsonProperty("values") List values +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java new file mode 100644 index 000000000..f6261b638 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Confirmation that the secret values were registered. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SecretsAddFilterValuesResult( + /** Whether the values were successfully registered */ + @JsonProperty("ok") Boolean ok +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java new file mode 100644 index 000000000..641a1ac47 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The UI mode the agent was in when this message was sent. Defaults to the session's current mode. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SendAgentMode { + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code plan} variant. */ + PLAN("plan"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"), + /** The {@code shell} variant. */ + SHELL("shell"); + + private final String value; + SendAgentMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SendAgentMode fromValue(String value) { + for (SendAgentMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SendAgentMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java new file mode 100644 index 000000000..013f59597 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * How to deliver the message. `enqueue` (default) appends to the message queue. `immediate` interjects during an in-progress turn. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SendMode { + /** The {@code enqueue} variant. */ + ENQUEUE("enqueue"), + /** The {@code immediate} variant. */ + IMMEDIATE("immediate"); + + private final String value; + SendMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SendMode fromValue(String value) { + for (SendMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SendMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java new file mode 100644 index 000000000..d3bd44460 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 account} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerAccountApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerAccountApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Optional GitHub token used to look up quota for a specific user instead of the global auth context. + * @since 1.0.0 + */ + public CompletableFuture getQuota() { + return caller.invoke("account.getQuota", java.util.Map.of(), AccountGetQuotaResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java new file mode 100644 index 000000000..6ff26e80d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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 mcp} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerMcpApi { + + private final RpcCaller caller; + + /** API methods for the {@code mcp.config} sub-namespace. */ + public final ServerMcpConfigApi config; + + /** @param caller the RPC transport function */ + ServerMcpApi(RpcCaller caller) { + this.caller = caller; + this.config = new ServerMcpConfigApi(caller); + } + + /** + * Optional working directory used as context for MCP server discovery. + * @since 1.0.0 + */ + public CompletableFuture discover(McpDiscoverParams params) { + return caller.invoke("mcp.discover", params, McpDiscoverResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java new file mode 100644 index 000000000..6f0a2105d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java @@ -0,0 +1,76 @@ +/*--------------------------------------------------------------------------------------------- + * 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 mcp.config} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerMcpConfigApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerMcpConfigApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * User-configured MCP servers, keyed by server name. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("mcp.config.list", java.util.Map.of(), McpConfigListResult.class); + } + + /** + * MCP server name and configuration to add to user configuration. + * @since 1.0.0 + */ + public CompletableFuture add(McpConfigAddParams params) { + return caller.invoke("mcp.config.add", params, Void.class); + } + + /** + * MCP server name and replacement configuration to write to user configuration. + * @since 1.0.0 + */ + public CompletableFuture update(McpConfigUpdateParams params) { + return caller.invoke("mcp.config.update", params, Void.class); + } + + /** + * MCP server name to remove from user configuration. + * @since 1.0.0 + */ + public CompletableFuture remove(McpConfigRemoveParams params) { + return caller.invoke("mcp.config.remove", params, Void.class); + } + + /** + * MCP server names to enable for new sessions. + * @since 1.0.0 + */ + public CompletableFuture enable(McpConfigEnableParams params) { + return caller.invoke("mcp.config.enable", params, Void.class); + } + + /** + * MCP server names to disable for new sessions. + * @since 1.0.0 + */ + public CompletableFuture disable(McpConfigDisableParams params) { + return caller.invoke("mcp.config.disable", params, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java new file mode 100644 index 000000000..c0515a06f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 models} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerModelsApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerModelsApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Optional GitHub token used to list models for a specific user instead of the global auth context. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("models.list", java.util.Map.of(), ModelsListResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java new file mode 100644 index 000000000..707e998d0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java @@ -0,0 +1,77 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Typed client for server-level RPC methods. + *

+ * Provides strongly-typed access to all server-level API namespaces. + *

+ * Obtain an instance by calling {@code new ServerRpc(caller)}. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerRpc { + + private final RpcCaller caller; + + /** API methods for the {@code models} namespace. */ + public final ServerModelsApi models; + /** API methods for the {@code tools} namespace. */ + public final ServerToolsApi tools; + /** API methods for the {@code account} namespace. */ + public final ServerAccountApi account; + /** API methods for the {@code secrets} namespace. */ + public final ServerSecretsApi secrets; + /** API methods for the {@code mcp} namespace. */ + public final ServerMcpApi mcp; + /** API methods for the {@code skills} namespace. */ + public final ServerSkillsApi skills; + /** API methods for the {@code sessionFs} namespace. */ + public final ServerSessionFsApi sessionFs; + /** API methods for the {@code sessions} namespace. */ + public final ServerSessionsApi sessions; + + /** + * Creates a new server RPC client. + * + * @param caller the RPC transport function (e.g., {@code jsonRpcClient::invoke}) + */ + public ServerRpc(RpcCaller caller) { + this.caller = caller; + this.models = new ServerModelsApi(caller); + this.tools = new ServerToolsApi(caller); + this.account = new ServerAccountApi(caller); + this.secrets = new ServerSecretsApi(caller); + this.mcp = new ServerMcpApi(caller); + this.skills = new ServerSkillsApi(caller); + this.sessionFs = new ServerSessionFsApi(caller); + this.sessions = new ServerSessionsApi(caller); + } + + /** + * Optional message to echo back to the caller. + * @since 1.0.0 + */ + public CompletableFuture ping(PingParams params) { + return caller.invoke("ping", params, PingResult.class); + } + + /** + * Optional connection token presented by the SDK client during the handshake. + * @since 1.0.0 + */ + public CompletableFuture connect(ConnectParams params) { + return caller.invoke("connect", params, ConnectResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java new file mode 100644 index 000000000..800722c85 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 secrets} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerSecretsApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerSecretsApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Secret values to add to the redaction filter. + * @since 1.0.0 + */ + public CompletableFuture addFilterValues(SecretsAddFilterValuesParams params) { + return caller.invoke("secrets.addFilterValues", params, SecretsAddFilterValuesResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java new file mode 100644 index 000000000..93022becf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 sessionFs} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerSessionFsApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerSessionFsApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider. + * @since 1.0.0 + */ + public CompletableFuture setProvider(SessionFsSetProviderParams params) { + return caller.invoke("sessionFs.setProvider", params, SessionFsSetProviderResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java new file mode 100644 index 000000000..c4b25a649 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java @@ -0,0 +1,218 @@ +/*--------------------------------------------------------------------------------------------- + * 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 sessions} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerSessionsApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerSessionsApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture fork(SessionsForkParams params) { + return caller.invoke("sessions.fork", params, SessionsForkResult.class); + } + + /** + * Remote session connection parameters. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture connect() { + return caller.invoke("sessions.connect", java.util.Map.of(), SessionsConnectResult.class); + } + + /** + * Optional metadata-load limit and context filter applied to the returned sessions. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("sessions.list", java.util.Map.of(), SessionsListResult.class); + } + + /** + * GitHub task ID to look up. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture findByTaskId(SessionsFindByTaskIdParams params) { + return caller.invoke("sessions.findByTaskId", params, SessionsFindByTaskIdResult.class); + } + + /** + * UUID prefix to resolve to a unique session ID. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture findByPrefix(SessionsFindByPrefixParams params) { + return caller.invoke("sessions.findByPrefix", params, SessionsFindByPrefixResult.class); + } + + /** + * Optional working-directory context used to score session relevance. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getLastForContext(SessionsGetLastForContextParams params) { + return caller.invoke("sessions.getLastForContext", params, SessionsGetLastForContextResult.class); + } + + /** + * Session ID whose event-log file path to compute. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getEventFilePath() { + return caller.invoke("sessions.getEventFilePath", java.util.Map.of(), SessionsGetEventFilePathResult.class); + } + + /** + * Map of sessionId -> on-disk size in bytes for each session's workspace directory. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getSizes() { + return caller.invoke("sessions.getSizes", java.util.Map.of(), SessionsGetSizesResult.class); + } + + /** + * Session IDs to test for live in-use locks. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture checkInUse(SessionsCheckInUseParams params) { + return caller.invoke("sessions.checkInUse", params, SessionsCheckInUseResult.class); + } + + /** + * Session ID to look up the persisted remote-steerable flag for. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getPersistedRemoteSteerable() { + return caller.invoke("sessions.getPersistedRemoteSteerable", java.util.Map.of(), SessionsGetPersistedRemoteSteerableResult.class); + } + + /** + * Session ID to close. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture close() { + return caller.invoke("sessions.close", java.util.Map.of(), Void.class); + } + + /** + * Session IDs to close, deactivate, and delete from disk. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture bulkDelete(SessionsBulkDeleteParams params) { + return caller.invoke("sessions.bulkDelete", params, SessionsBulkDeleteResult.class); + } + + /** + * Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true). + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture pruneOld(SessionsPruneOldParams params) { + return caller.invoke("sessions.pruneOld", params, SessionsPruneOldResult.class); + } + + /** + * Session ID whose pending events should be flushed to disk. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture save() { + return caller.invoke("sessions.save", java.util.Map.of(), Void.class); + } + + /** + * Session ID whose in-use lock should be released. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture releaseLock() { + return caller.invoke("sessions.releaseLock", java.util.Map.of(), Void.class); + } + + /** + * Session metadata records to enrich with summary and context information. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture enrichMetadata(SessionsEnrichMetadataParams params) { + return caller.invoke("sessions.enrichMetadata", params, SessionsEnrichMetadataResult.class); + } + + /** + * Active session ID and an optional flag for deferring repo-level hooks until folder trust. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture reloadPluginHooks(SessionsReloadPluginHooksParams params) { + return caller.invoke("sessions.reloadPluginHooks", params, Void.class); + } + + /** + * Active session ID whose deferred repo-level hooks should be loaded. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture loadDeferredRepoHooks() { + return caller.invoke("sessions.loadDeferredRepoHooks", java.util.Map.of(), SessionsLoadDeferredRepoHooksResult.class); + } + + /** + * Manager-wide additional plugins to register; replaces any previously-configured set. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setAdditionalPlugins(SessionsSetAdditionalPluginsParams params) { + return caller.invoke("sessions.setAdditionalPlugins", params, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java new file mode 100644 index 000000000..ba02ea28d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `ServerSkill` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ServerSkill( + /** Unique identifier for the skill */ + @JsonProperty("name") String name, + /** Description of what the skill does */ + @JsonProperty("description") String description, + /** Source location type (e.g., project, personal-copilot, plugin, builtin) */ + @JsonProperty("source") SkillSource source, + /** Whether the skill can be invoked by the user as a slash command */ + @JsonProperty("userInvocable") Boolean userInvocable, + /** Whether the skill is currently enabled (based on global config) */ + @JsonProperty("enabled") Boolean enabled, + /** Absolute path to the skill file */ + @JsonProperty("path") String path, + /** The project path this skill belongs to (only for project/inherited skills) */ + @JsonProperty("projectPath") String projectPath +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java new file mode 100644 index 000000000..6404ab6fd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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 skills} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerSkillsApi { + + private final RpcCaller caller; + + /** API methods for the {@code skills.config} sub-namespace. */ + public final ServerSkillsConfigApi config; + + /** @param caller the RPC transport function */ + ServerSkillsApi(RpcCaller caller) { + this.caller = caller; + this.config = new ServerSkillsConfigApi(caller); + } + + /** + * Optional project paths and additional skill directories to include in discovery. + * @since 1.0.0 + */ + public CompletableFuture discover(SkillsDiscoverParams params) { + return caller.invoke("skills.discover", params, SkillsDiscoverResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java new file mode 100644 index 000000000..e552227cc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 skills.config} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerSkillsConfigApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerSkillsConfigApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Skill names to mark as disabled in global configuration, replacing any previous list. + * @since 1.0.0 + */ + public CompletableFuture setDisabledSkills(SkillsConfigSetDisabledSkillsParams params) { + return caller.invoke("skills.config.setDisabledSkills", params, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java new file mode 100644 index 000000000..10e64747e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 tools} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class ServerToolsApi { + + private final RpcCaller caller; + + /** @param caller the RPC transport function */ + ServerToolsApi(RpcCaller caller) { + this.caller = caller; + } + + /** + * Optional model identifier whose tool overrides should be applied to the listing. + * @since 1.0.0 + */ + public CompletableFuture list(ToolsListParams params) { + return caller.invoke("tools.list", params, ToolsListResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java new file mode 100644 index 000000000..4738643b8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Parameters for aborting the current turn + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAbortParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Finite reason code describing why the current turn was aborted */ + @JsonProperty("reason") AbortReason reason +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java new file mode 100644 index 000000000..9d75b5db5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 of aborting the current turn + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAbortResult( + /** Whether the abort completed successfully */ + @JsonProperty("success") Boolean success, + /** Error message if the abort failed */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java new file mode 100644 index 000000000..c992d36e3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java @@ -0,0 +1,87 @@ +/*--------------------------------------------------------------------------------------------- + * 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 agent} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionAgentApi { + + 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 */ + SessionAgentApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.agent.list", java.util.Map.of("sessionId", this.sessionId), SessionAgentListResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getCurrent() { + return caller.invoke("session.agent.getCurrent", java.util.Map.of("sessionId", this.sessionId), SessionAgentGetCurrentResult.class); + } + + /** + * Name of the custom agent to select for subsequent turns. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture select(SessionAgentSelectParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.agent.select", _p, SessionAgentSelectResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture deselect() { + return caller.invoke("session.agent.deselect", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture reload() { + return caller.invoke("session.agent.reload", java.util.Map.of("sessionId", this.sessionId), SessionAgentReloadResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java new file mode 100644 index 000000000..1b1094713 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentDeselectParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java new file mode 100644 index 000000000..59774974f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentGetCurrentParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java new file mode 100644 index 000000000..d4dfe25b4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The currently selected custom agent, or null when using the default agent. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentGetCurrentResult( + /** Currently selected custom agent, or null if using the default agent */ + @JsonProperty("agent") AgentInfo agent +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java new file mode 100644 index 000000000..9763eb5c3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java new file mode 100644 index 000000000..d7cdd1127 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Custom agents available to the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentListResult( + /** Available custom agents */ + @JsonProperty("agents") List agents +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java new file mode 100644 index 000000000..c3467c5e9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentReloadParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java new file mode 100644 index 000000000..47eec9eae --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Custom agents available to the session after reloading definitions from disk. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentReloadResult( + /** Reloaded custom agents */ + @JsonProperty("agents") List agents +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java new file mode 100644 index 000000000..372d1d1f6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Name of the custom agent to select for subsequent turns. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentSelectParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the custom agent to select */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java new file mode 100644 index 000000000..927352e2d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The newly selected custom agent. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAgentSelectResult( + /** The newly selected custom agent */ + @JsonProperty("agent") AgentInfo agent +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java new file mode 100644 index 000000000..0f5729fe5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java @@ -0,0 +1,57 @@ +/*--------------------------------------------------------------------------------------------- + * 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 auth} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionAuthApi { + + 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 */ + SessionAuthApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getStatus() { + return caller.invoke("session.auth.getStatus", java.util.Map.of("sessionId", this.sessionId), SessionAuthGetStatusResult.class); + } + + /** + * New auth credentials to install on the session. Omit to leave credentials unchanged. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setCredentials(SessionAuthSetCredentialsParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.auth.setCredentials", _p, SessionAuthSetCredentialsResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java new file mode 100644 index 000000000..d57a3cccc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAuthGetStatusParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java new file mode 100644 index 000000000..3480257cc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Authentication status and account metadata for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAuthGetStatusResult( + /** Whether the session has resolved authentication */ + @JsonProperty("isAuthenticated") Boolean isAuthenticated, + /** Authentication type */ + @JsonProperty("authType") AuthInfoType authType, + /** Authentication host URL */ + @JsonProperty("host") String host, + /** Authenticated login/username, if available */ + @JsonProperty("login") String login, + /** Human-readable authentication status description */ + @JsonProperty("statusMessage") String statusMessage, + /** Copilot plan tier (e.g., individual_pro, business) */ + @JsonProperty("copilotPlan") String copilotPlan +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java new file mode 100644 index 000000000..0b3b7aa9d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * New auth credentials to install on the session. Omit to leave credentials unchanged. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAuthSetCredentialsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** 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. */ + @JsonProperty("credentials") Object credentials +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java new file mode 100644 index 000000000..ad53ee919 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the credential update succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionAuthSetCredentialsResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java new file mode 100644 index 000000000..b0bc291e6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java @@ -0,0 +1,117 @@ +/*--------------------------------------------------------------------------------------------- + * 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 commands} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionCommandsApi { + + 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 */ + SessionCommandsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Optional filters controlling which command sources to include in the listing. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.commands.list", java.util.Map.of("sessionId", this.sessionId), SessionCommandsListResult.class); + } + + /** + * Slash command name and optional raw input string to invoke. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture invoke(SessionCommandsInvokeParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.commands.invoke", _p, Void.class); + } + + /** + * Pending command request ID and an optional error if the client handler failed. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingCommand(SessionCommandsHandlePendingCommandParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.commands.handlePendingCommand", _p, SessionCommandsHandlePendingCommandResult.class); + } + + /** + * Slash command name and argument string to execute synchronously. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture execute(SessionCommandsExecuteParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.commands.execute", _p, SessionCommandsExecuteResult.class); + } + + /** + * Slash-prefixed command string to enqueue for FIFO processing. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture enqueue(SessionCommandsEnqueueParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.commands.enqueue", _p, SessionCommandsEnqueueResult.class); + } + + /** + * Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands). + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture respondToQueuedCommand(SessionCommandsRespondToQueuedCommandParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.commands.respondToQueuedCommand", _p, SessionCommandsRespondToQueuedCommandResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java new file mode 100644 index 000000000..f4ca14dfa --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Slash-prefixed command string to enqueue for FIFO processing. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsEnqueueParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Slash-prefixed command string to enqueue, e.g. '/compact' or '/model gpt-4'. Queued FIFO with any in-flight items; if the session is idle, processing kicks off immediately. */ + @JsonProperty("command") String command +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java new file mode 100644 index 000000000..649f01ca4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the command was accepted into the local execution queue. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsEnqueueResult( + /** True when the command was accepted into the local execution queue. False when the call targets a session that does not support local command queueing (e.g. remote sessions). */ + @JsonProperty("queued") Boolean queued +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java new file mode 100644 index 000000000..f88ac4c03 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Slash command name and argument string to execute synchronously. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsExecuteParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the slash command to invoke (without the leading '/'). */ + @JsonProperty("commandName") String commandName, + /** Argument string to pass to the command (empty string if none). */ + @JsonProperty("args") String args +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java new file mode 100644 index 000000000..1b1c44299 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Error message produced while executing the command, if any. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsExecuteResult( + /** Error message produced while executing the command, if any. Omitted when the handler succeeded. */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java new file mode 100644 index 000000000..9b9c12514 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Pending command request ID and an optional error if the client handler failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsHandlePendingCommandParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Request ID from the command invocation event */ + @JsonProperty("requestId") String requestId, + /** Error message if the command handler failed */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java new file mode 100644 index 000000000..9e3698702 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the pending client-handled command was completed successfully. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsHandlePendingCommandResult( + /** Whether the command was handled successfully */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java new file mode 100644 index 000000000..21d92ebab --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Slash command name and optional raw input string to invoke. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsInvokeParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Command name. Leading slashes are stripped and the name is matched case-insensitively. */ + @JsonProperty("name") String name, + /** Raw input after the command name */ + @JsonProperty("input") String input +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java new file mode 100644 index 000000000..d60a147d8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 filters controlling which command sources to include in the listing. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java new file mode 100644 index 000000000..8d532352a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Slash commands available in the session, after applying any include/exclude filters. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsListResult( + /** Commands available in this session */ + @JsonProperty("commands") List commands +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java new file mode 100644 index 000000000..22b89f364 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsRespondToQueuedCommandParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Request ID from the `command.queued` event the host is responding to. */ + @JsonProperty("requestId") String requestId, + /** Result of the queued command execution. */ + @JsonProperty("result") Object result +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java new file mode 100644 index 000000000..1cc396139 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the queued-command response was matched to a pending request. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionCommandsRespondToQueuedCommandResult( + /** Whether a pending queued command with the given request ID was found and resolved. False when the request was already resolved, cancelled, or unknown. */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java new file mode 100644 index 000000000..50376a0f0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `SessionContext` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionContext( + /** Most recent working directory for this session */ + @JsonProperty("cwd") String cwd, + /** Git repository root, if the cwd was inside a git repo */ + @JsonProperty("gitRoot") String gitRoot, + /** Repository slug in `owner/name` form, when known */ + @JsonProperty("repository") String repository, + /** Repository host type */ + @JsonProperty("hostType") SessionContextHostType hostType, + /** Active git branch */ + @JsonProperty("branch") String branch +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java new file mode 100644 index 000000000..8eea0e719 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Repository host type + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionContextHostType { + /** The {@code github} variant. */ + GITHUB("github"), + /** The {@code ado} variant. */ + ADO("ado"); + + private final String value; + SessionContextHostType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionContextHostType fromValue(String value) { + for (SessionContextHostType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionContextHostType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java new file mode 100644 index 000000000..eac102aef --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java @@ -0,0 +1,87 @@ +/*--------------------------------------------------------------------------------------------- + * 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 eventLog} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionEventLogApi { + + 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 */ + SessionEventLogApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Cursor, batch size, and optional long-poll/filter parameters for reading session events. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture read(SessionEventLogReadParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.eventLog.read", _p, SessionEventLogReadResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture tail() { + return caller.invoke("session.eventLog.tail", java.util.Map.of("sessionId", this.sessionId), SessionEventLogTailResult.class); + } + + /** + * Event type to register consumer interest for, used by runtime gating logic. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture registerInterest(SessionEventLogRegisterInterestParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.eventLog.registerInterest", _p, SessionEventLogRegisterInterestResult.class); + } + + /** + * Opaque handle previously returned by `registerInterest` to release. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture releaseInterest(SessionEventLogReleaseInterestParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.eventLog.releaseInterest", _p, SessionEventLogReleaseInterestResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java new file mode 100644 index 000000000..a77e8a871 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Cursor, batch size, and optional long-poll/filter parameters for reading session events. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogReadParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Opaque cursor returned by a previous read. Omit on the first call to start from the beginning of the session's persisted history. */ + @JsonProperty("cursor") String cursor, + /** Maximum number of events to return in this batch (1–1000, default 200). */ + @JsonProperty("max") Long max, + /** Milliseconds to wait for new events when the cursor is at the tail of history. 0 (default) returns immediately even if no events are available. Capped at 30000ms. Ephemeral events that arrive during the wait are delivered in this batch but are NOT replayable on a subsequent read (use a non-zero waitMs in your next call to capture future ephemerals as they happen). */ + @JsonProperty("waitMs") Long waitMs, + /** Either '*' to receive all event types, or a non-empty list of event types to receive */ + @JsonProperty("types") Object types, + /** Agent-scope filter: 'primary' returns only main-agent events plus events whose type starts with 'subagent.' (matching the typed-subscription default behavior); 'all' returns events from all agents (matching wildcard-subscription behavior). Default is 'all' to preserve wildcard semantics for catch-up callers. */ + @JsonProperty("agentScope") EventsAgentScope agentScope +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java new file mode 100644 index 000000000..dcd138e7b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Batch of session events returned by a read, with cursor and continuation metadata. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogReadResult( + /** Events are delivered in two batches per read: persisted events first (in append order), then ephemeral events (in seq order). When `waitMs > 0` and the catch-up batches were empty, post-wait events follow the same two-batch ordering. Persisted and ephemeral events do not interleave within a single read. */ + @JsonProperty("events") List events, + /** Opaque cursor for the next read. Pass back unchanged in the next read.cursor to continue from where this read left off. Always present, even when no events were returned. */ + @JsonProperty("cursor") String cursor, + /** True when the read returned `max` events and more events are available immediately. When false, the next read with a non-zero `waitMs` will block until a new event arrives or the wait expires. */ + @JsonProperty("hasMore") Boolean hasMore, + /** Cursor status: 'ok' means the cursor was applied successfully; 'expired' means the cursor referred to an event that no longer exists in history (e.g. truncated or compacted away) and the read started from the beginning of the remaining history. */ + @JsonProperty("cursorStatus") EventsCursorStatus cursorStatus +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java new file mode 100644 index 000000000..94f68bdf7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Event type to register consumer interest for, used by runtime gating logic. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogRegisterInterestParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The event type the consumer wants the runtime to treat as 'observed' for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. `mcp.oauth_required`: when interest is registered the runtime delegates the full interactive OAuth flow to the consumer; when no interest is registered the runtime installs a browserless fallback that silently reuses cached tokens). SDK clients that long-poll events do NOT automatically appear as listeners to these gating checks — they must explicitly call `registerInterest` for each event type they want the runtime to count as having a consumer. Multiple registrations for the same event type from the same or different consumers are tracked independently and must each be released. See: `mcp.oauth_required`, `sampling.requested`, `auto_mode_switch.requested`, `user_input.requested`, `elicitation.requested`, `command.queued`, `exit_plan_mode.requested`. */ + @JsonProperty("eventType") String eventType +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java new file mode 100644 index 000000000..ac4da49d0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Opaque handle representing an event-type interest registration. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogRegisterInterestResult( + /** Opaque handle for this registration. Pass to releaseInterest to release. Each call to registerInterest produces a fresh handle, even when the same eventType is registered multiple times. */ + @JsonProperty("handle") String handle +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java new file mode 100644 index 000000000..1eea25f44 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Opaque handle previously returned by `registerInterest` to release. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogReleaseInterestParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Handle returned by a previous `registerInterest` call. Idempotent: releasing an unknown or already-released handle is a no-op (returns success). When the last outstanding handle for an event type is released, the runtime reverts to its 'no consumer' code path for that event type. */ + @JsonProperty("handle") String handle +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java new file mode 100644 index 000000000..39cf07afa --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogReleaseInterestResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java new file mode 100644 index 000000000..3906d7e6e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogTailParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java new file mode 100644 index 000000000..1b29827d3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Snapshot of the current tail cursor without returning any events. Use this when a consumer wants to subscribe to live events going forward without first paginating through the entire persisted history (which would happen if `read` were called without a cursor on a long-lived session). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionEventLogTailResult( + /** Opaque cursor pointing at the current tail of the session's persisted-events history. Pass back to `read` to receive only events that arrive AFTER this snapshot. When the session has no events, this returns the same sentinel as an unset cursor (i.e. equivalent to omitting the cursor on a first read). */ + @JsonProperty("cursor") String cursor +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java new file mode 100644 index 000000000..337ba15cc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java @@ -0,0 +1,82 @@ +/*--------------------------------------------------------------------------------------------- + * 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 extensions} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionExtensionsApi { + + 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 */ + SessionExtensionsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.extensions.list", java.util.Map.of("sessionId", this.sessionId), SessionExtensionsListResult.class); + } + + /** + * Source-qualified extension identifier to enable for the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture enable(SessionExtensionsEnableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.extensions.enable", _p, Void.class); + } + + /** + * Source-qualified extension identifier to disable for the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture disable(SessionExtensionsDisableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.extensions.disable", _p, Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture reload() { + return caller.invoke("session.extensions.reload", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java new file mode 100644 index 000000000..f4bf4d5b3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Source-qualified extension identifier to disable for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionExtensionsDisableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Source-qualified extension ID to disable */ + @JsonProperty("id") String id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java new file mode 100644 index 000000000..5e00268af --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Source-qualified extension identifier to enable for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionExtensionsEnableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Source-qualified extension ID to enable */ + @JsonProperty("id") String id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java new file mode 100644 index 000000000..52f9c08f9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionExtensionsListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java new file mode 100644 index 000000000..ba5ea94f1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Extensions discovered for the session, with their current status. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionExtensionsListResult( + /** Discovered extensions and their current status */ + @JsonProperty("extensions") List extensions +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java new file mode 100644 index 000000000..ceaa990f1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionExtensionsReloadParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java new file mode 100644 index 000000000..27023dc89 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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 fleet} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionFleetApi { + + 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 */ + SessionFleetApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Optional user prompt to combine with the fleet orchestration instructions. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture start(SessionFleetStartParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.fleet.start", _p, SessionFleetStartResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java new file mode 100644 index 000000000..5d5e2c88c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 user prompt to combine with the fleet orchestration instructions. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFleetStartParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Optional user prompt to combine with fleet instructions */ + @JsonProperty("prompt") String prompt +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java new file mode 100644 index 000000000..c89f377d7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether fleet mode was successfully activated. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFleetStartResult( + /** Whether fleet mode was successfully activated */ + @JsonProperty("started") Boolean started +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java new file mode 100644 index 000000000..a3db24a0d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path, content to append, and optional mode for the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsAppendFileParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path, + /** Content to append */ + @JsonProperty("content") String content, + /** Optional POSIX-style mode for newly created files */ + @JsonProperty("mode") Long mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java new file mode 100644 index 000000000..349114dfd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Describes a filesystem error. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsError( + /** Error classification */ + @JsonProperty("code") SessionFsErrorCode code, + /** Free-form detail about the error, for logging/diagnostics */ + @JsonProperty("message") String message +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java new file mode 100644 index 000000000..4098d43ab --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Error classification + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionFsErrorCode { + /** The {@code ENOENT} variant. */ + ENOENT("ENOENT"), + /** The {@code UNKNOWN} variant. */ + UNKNOWN("UNKNOWN"); + + private final String value; + SessionFsErrorCode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionFsErrorCode fromValue(String value) { + for (SessionFsErrorCode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionFsErrorCode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java new file mode 100644 index 000000000..29b510798 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path to test for existence in the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsExistsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java new file mode 100644 index 000000000..0068ae3a3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the requested path exists in the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsExistsResult( + /** Whether the path exists */ + @JsonProperty("exists") Boolean exists +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java new file mode 100644 index 000000000..c1ed1aec7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path to create in the client-provided session filesystem, with options for recursive creation and POSIX mode. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsMkdirParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path, + /** Create parent directories as needed */ + @JsonProperty("recursive") Boolean recursive, + /** Optional POSIX-style mode for newly created directories */ + @JsonProperty("mode") Long mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java new file mode 100644 index 000000000..d040129cc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path of the file to read from the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReadFileParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java new file mode 100644 index 000000000..c71e1a514 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 content as a UTF-8 string, or a filesystem error if the read failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReadFileResult( + /** File content as UTF-8 string */ + @JsonProperty("content") String content, + /** Describes a filesystem error. */ + @JsonProperty("error") SessionFsError error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java new file mode 100644 index 000000000..00b865c33 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path whose entries should be listed from the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReaddirParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java new file mode 100644 index 000000000..745118beb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Names of entries in the requested directory, or a filesystem error if the read failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReaddirResult( + /** Entry names in the directory */ + @JsonProperty("entries") List entries, + /** Describes a filesystem error. */ + @JsonProperty("error") SessionFsError error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java new file mode 100644 index 000000000..f4c755951 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `SessionFsReaddirWithTypesEntry` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReaddirWithTypesEntry( + /** Entry name */ + @JsonProperty("name") String name, + /** Entry type */ + @JsonProperty("type") SessionFsReaddirWithTypesEntryType type +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java new file mode 100644 index 000000000..67e62372e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Entry type + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionFsReaddirWithTypesEntryType { + /** The {@code file} variant. */ + FILE("file"), + /** The {@code directory} variant. */ + DIRECTORY("directory"); + + private final String value; + SessionFsReaddirWithTypesEntryType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionFsReaddirWithTypesEntryType fromValue(String value) { + for (SessionFsReaddirWithTypesEntryType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionFsReaddirWithTypesEntryType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java new file mode 100644 index 000000000..a6b80481d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path whose entries (with type information) should be listed from the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReaddirWithTypesParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java new file mode 100644 index 000000000..3fb693c80 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Entries in the requested directory paired with file/directory type information, or a filesystem error if the read failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsReaddirWithTypesResult( + /** Directory entries with type information */ + @JsonProperty("entries") List entries, + /** Describes a filesystem error. */ + @JsonProperty("error") SessionFsError error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java new file mode 100644 index 000000000..76dbc8cfb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Source and destination paths for renaming or moving an entry in the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsRenameParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Source path using SessionFs conventions */ + @JsonProperty("src") String src, + /** Destination path using SessionFs conventions */ + @JsonProperty("dest") String dest +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java new file mode 100644 index 000000000..ed50649a3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path to remove from the client-provided session filesystem, with options for recursive removal and force. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsRmParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path, + /** Remove directories and their contents recursively */ + @JsonProperty("recursive") Boolean recursive, + /** Ignore errors if the path does not exist */ + @JsonProperty("force") Boolean force +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java new file mode 100644 index 000000000..7d6c0adb3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 capabilities declared by the provider + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSetProviderCapabilities( + /** Whether the provider supports SQLite query/exists operations */ + @JsonProperty("sqlite") Boolean sqlite +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java new file mode 100644 index 000000000..abac4795f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path conventions used by this filesystem + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionFsSetProviderConventions { + /** The {@code windows} variant. */ + WINDOWS("windows"), + /** The {@code posix} variant. */ + POSIX("posix"); + + private final String value; + SessionFsSetProviderConventions(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionFsSetProviderConventions fromValue(String value) { + for (SessionFsSetProviderConventions v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionFsSetProviderConventions value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java new file mode 100644 index 000000000..d99a14862 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSetProviderParams( + /** Initial working directory for sessions */ + @JsonProperty("initialCwd") String initialCwd, + /** Path within each session's SessionFs where the runtime stores files for that session */ + @JsonProperty("sessionStatePath") String sessionStatePath, + /** Path conventions used by this filesystem */ + @JsonProperty("conventions") SessionFsSetProviderConventions conventions, + /** Optional capabilities declared by the provider */ + @JsonProperty("capabilities") SessionFsSetProviderCapabilities capabilities +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java new file mode 100644 index 000000000..6088729f5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the calling client was registered as the session filesystem provider. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSetProviderResult( + /** Whether the provider was set successfully */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java new file mode 100644 index 000000000..1956f804b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSqliteExistsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java new file mode 100644 index 000000000..6c1328e9e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the per-session SQLite database already exists. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSqliteExistsResult( + /** Whether the session database already exists */ + @JsonProperty("exists") Boolean exists +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java new file mode 100644 index 000000000..e489bb122 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * SQL query, query type, and optional bind parameters for executing a SQLite query against the per-session database. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSqliteQueryParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** SQL query to execute */ + @JsonProperty("query") String query, + /** How to execute the query: 'exec' for DDL/multi-statement (no results), 'query' for SELECT (returns rows), 'run' for INSERT/UPDATE/DELETE (returns rowsAffected) */ + @JsonProperty("queryType") SessionFsSqliteQueryType queryType, + /** Optional named bind parameters */ + @JsonProperty("params") Map params +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java new file mode 100644 index 000000000..ff14d3ec1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Query results including rows, columns, and rows affected, or a filesystem error if execution failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsSqliteQueryResult( + /** For SELECT: array of row objects. For others: empty array. */ + @JsonProperty("rows") List> rows, + /** Column names from the result set */ + @JsonProperty("columns") List columns, + /** Number of rows affected (for INSERT/UPDATE/DELETE) */ + @JsonProperty("rowsAffected") Long rowsAffected, + /** SQLite last_insert_rowid() value for INSERT. */ + @JsonProperty("lastInsertRowid") Long lastInsertRowid, + /** Describes a filesystem error. */ + @JsonProperty("error") SessionFsError error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java new file mode 100644 index 000000000..a59bdd1f2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * How to execute the query: 'exec' for DDL/multi-statement (no results), 'query' for SELECT (returns rows), 'run' for INSERT/UPDATE/DELETE (returns rowsAffected) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionFsSqliteQueryType { + /** The {@code exec} variant. */ + EXEC("exec"), + /** The {@code query} variant. */ + QUERY("query"), + /** The {@code run} variant. */ + RUN("run"); + + private final String value; + SessionFsSqliteQueryType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionFsSqliteQueryType fromValue(String value) { + for (SessionFsSqliteQueryType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionFsSqliteQueryType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java new file mode 100644 index 000000000..2e6ccfdea --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path whose metadata should be returned from the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsStatParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java new file mode 100644 index 000000000..56d883d10 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java @@ -0,0 +1,38 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Filesystem metadata for the requested path, or a filesystem error if the stat failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsStatResult( + /** Whether the path is a file */ + @JsonProperty("isFile") Boolean isFile, + /** Whether the path is a directory */ + @JsonProperty("isDirectory") Boolean isDirectory, + /** File size in bytes */ + @JsonProperty("size") Long size, + /** ISO 8601 timestamp of last modification */ + @JsonProperty("mtime") OffsetDateTime mtime, + /** ISO 8601 timestamp of creation */ + @JsonProperty("birthtime") OffsetDateTime birthtime, + /** Describes a filesystem error. */ + @JsonProperty("error") SessionFsError error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java new file mode 100644 index 000000000..4f4e02636 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path, content to write, and optional mode for the client-provided session filesystem. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionFsWriteFileParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path using SessionFs conventions */ + @JsonProperty("path") String path, + /** Content to write */ + @JsonProperty("content") String content, + /** Optional POSIX-style mode for newly created files */ + @JsonProperty("mode") Long mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java new file mode 100644 index 000000000..04749d2b6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryAbortManualCompactionParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java new file mode 100644 index 000000000..7767202d7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether an in-progress manual compaction was aborted. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryAbortManualCompactionResult( + /** Whether an in-progress manual compaction was aborted. False when no manual compaction was running, when its abort controller was already aborted, or when the session is remote. */ + @JsonProperty("aborted") Boolean aborted +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java new file mode 100644 index 000000000..91c7702f7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java @@ -0,0 +1,87 @@ +/*--------------------------------------------------------------------------------------------- + * 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 history} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionHistoryApi { + + 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 */ + SessionHistoryApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Optional compaction parameters. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture compact() { + return caller.invoke("session.history.compact", java.util.Map.of("sessionId", this.sessionId), SessionHistoryCompactResult.class); + } + + /** + * Identifier of the event to truncate to; this event and all later events are removed. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture truncate(SessionHistoryTruncateParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.history.truncate", _p, SessionHistoryTruncateResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture cancelBackgroundCompaction() { + return caller.invoke("session.history.cancelBackgroundCompaction", java.util.Map.of("sessionId", this.sessionId), SessionHistoryCancelBackgroundCompactionResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture abortManualCompaction() { + return caller.invoke("session.history.abortManualCompaction", java.util.Map.of("sessionId", this.sessionId), SessionHistoryAbortManualCompactionResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture summarizeForHandoff() { + return caller.invoke("session.history.summarizeForHandoff", java.util.Map.of("sessionId", this.sessionId), SessionHistorySummarizeForHandoffResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java new file mode 100644 index 000000000..56adc34ae --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryCancelBackgroundCompactionParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java new file mode 100644 index 000000000..c22fdd092 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether an in-progress background compaction was cancelled. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryCancelBackgroundCompactionResult( + /** Whether an in-progress background compaction was cancelled. False when no compaction was running, when the session is remote, or when the underlying processor was unavailable. */ + @JsonProperty("cancelled") Boolean cancelled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java new file mode 100644 index 000000000..cbb23e96f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 compaction parameters. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryCompactParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java new file mode 100644 index 000000000..46a52f425 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Compaction outcome with the number of tokens and messages removed, summary text, and the resulting context window breakdown. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryCompactResult( + /** Whether compaction completed successfully */ + @JsonProperty("success") Boolean success, + /** Number of tokens freed by compaction */ + @JsonProperty("tokensRemoved") Long tokensRemoved, + /** Number of messages removed during compaction */ + @JsonProperty("messagesRemoved") Long messagesRemoved, + /** Summary text produced by compaction. Omitted when compaction did not produce a summary (e.g. failure path). */ + @JsonProperty("summaryContent") String summaryContent, + /** Post-compaction context window usage breakdown */ + @JsonProperty("contextWindow") HistoryCompactContextWindow contextWindow +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java new file mode 100644 index 000000000..816af2cd1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistorySummarizeForHandoffParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java new file mode 100644 index 000000000..3723aae25 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Markdown summary of the conversation context (empty when not available). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistorySummarizeForHandoffResult( + /** Markdown summary of the conversation context produced by an LLM. Empty string when there are no messages or when the session does not support local summarization. */ + @JsonProperty("summary") String summary +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java new file mode 100644 index 000000000..70b1331e4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the event to truncate to; this event and all later events are removed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryTruncateParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Event ID to truncate to. This event and all events after it are removed from the session. */ + @JsonProperty("eventId") String eventId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java new file mode 100644 index 000000000..3c2a74ccb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Number of events that were removed by the truncation. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionHistoryTruncateResult( + /** Number of events that were removed */ + @JsonProperty("eventsRemoved") Long eventsRemoved +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java new file mode 100644 index 000000000..5d1428558 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `SessionInstalledPlugin` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionInstalledPlugin( + /** Plugin name */ + @JsonProperty("name") String name, + /** Marketplace the plugin came from (empty string for direct repo installs) */ + @JsonProperty("marketplace") String marketplace, + /** Installed version, if known */ + @JsonProperty("version") String version, + /** Installation timestamp (ISO-8601) */ + @JsonProperty("installed_at") String installedAt, + /** Whether the plugin is currently enabled */ + @JsonProperty("enabled") Boolean enabled, + /** Path where the plugin is cached locally */ + @JsonProperty("cache_path") String cachePath, + /** Source descriptor for direct repo installs (when marketplace is empty) */ + @JsonProperty("source") Object source +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java new file mode 100644 index 000000000..15f3fce68 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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 instructions} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionInstructionsApi { + + private final RpcCaller caller; + private final String sessionId; + + /** @param caller the RPC transport function */ + SessionInstructionsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getSources() { + return caller.invoke("session.instructions.getSources", java.util.Map.of("sessionId", this.sessionId), SessionInstructionsGetSourcesResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java new file mode 100644 index 000000000..f9b683147 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionInstructionsGetSourcesParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java new file mode 100644 index 000000000..4d62780da --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Instruction sources loaded for the session, in merge order. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionInstructionsGetSourcesResult( + /** Instruction sources for the session */ + @JsonProperty("sources") List sources +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java new file mode 100644 index 000000000..e9ca23da2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Log severity level. Determines how the message is displayed in the timeline. Defaults to "info". + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionLogLevel { + /** The {@code info} variant. */ + INFO("info"), + /** The {@code warning} variant. */ + WARNING("warning"), + /** The {@code error} variant. */ + ERROR("error"); + + private final String value; + SessionLogLevel(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionLogLevel fromValue(String value) { + for (SessionLogLevel v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionLogLevel value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java new file mode 100644 index 000000000..edd160f82 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionLogParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Human-readable message */ + @JsonProperty("message") String message, + /** Log severity level. Determines how the message is displayed in the timeline. Defaults to "info". */ + @JsonProperty("level") SessionLogLevel level, + /** Domain category for this log entry (e.g., "mcp", "subscription", "policy", "model"). Maps to `infoType`/`warningType`/`errorType` on the emitted event. Defaults to "notification". */ + @JsonProperty("type") String type, + /** When true, the message is transient and not persisted to the session event log on disk */ + @JsonProperty("ephemeral") Boolean ephemeral, + /** Optional URL the user can open in their browser for more details */ + @JsonProperty("url") String url, + /** Optional actionable tip displayed alongside the message. Only honored on `level: "info"`. */ + @JsonProperty("tip") String tip +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java new file mode 100644 index 000000000..7d9d79d71 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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.UUID; +import javax.annotation.processing.Generated; + +/** + * Identifier of the session event that was emitted for the log message. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionLogResult( + /** The unique identifier of the emitted session event */ + @JsonProperty("eventId") UUID eventId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java new file mode 100644 index 000000000..76678266c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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 lsp} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionLspApi { + + 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 */ + SessionLspApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Parameters for (re)loading the merged LSP configuration set. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture initialize(SessionLspInitializeParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.lsp.initialize", _p, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java new file mode 100644 index 000000000..bd0387b88 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Parameters for (re)loading the merged LSP configuration set. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionLspInitializeParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Working directory used to load project-level LSP configs. Defaults to the session working directory when omitted. */ + @JsonProperty("workingDirectory") String workingDirectory, + /** Git root used as the boundary when traversing for project-level LSP configs (supports monorepos). */ + @JsonProperty("gitRoot") String gitRoot, + /** Force re-initialization even when LSP configs were already loaded for the working directory. */ + @JsonProperty("force") Boolean force +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java new file mode 100644 index 000000000..4282a2334 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java @@ -0,0 +1,141 @@ +/*--------------------------------------------------------------------------------------------- + * 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 mcp} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionMcpApi { + + private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; + + private final RpcCaller caller; + private final String sessionId; + + /** API methods for the {@code mcp.oauth} sub-namespace. */ + public final SessionMcpOauthApi oauth; + + /** @param caller the RPC transport function */ + SessionMcpApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + this.oauth = new SessionMcpOauthApi(caller, sessionId); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.mcp.list", java.util.Map.of("sessionId", this.sessionId), SessionMcpListResult.class); + } + + /** + * Name of the MCP server to enable for the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture enable(SessionMcpEnableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mcp.enable", _p, Void.class); + } + + /** + * Name of the MCP server to disable for the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture disable(SessionMcpDisableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mcp.disable", _p, Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture reload() { + return caller.invoke("session.mcp.reload", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture executeSampling(SessionMcpExecuteSamplingParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mcp.executeSampling", _p, SessionMcpExecuteSamplingResult.class); + } + + /** + * The requestId previously passed to executeSampling that should be cancelled. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture cancelSamplingExecution(SessionMcpCancelSamplingExecutionParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mcp.cancelSamplingExecution", _p, SessionMcpCancelSamplingExecutionResult.class); + } + + /** + * Mode controlling how MCP server env values are resolved (`direct` or `indirect`). + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setEnvValueMode(SessionMcpSetEnvValueModeParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mcp.setEnvValueMode", _p, SessionMcpSetEnvValueModeResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture removeGitHub() { + return caller.invoke("session.mcp.removeGitHub", java.util.Map.of("sessionId", this.sessionId), SessionMcpRemoveGitHubResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java new file mode 100644 index 000000000..c00459e4b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The requestId previously passed to executeSampling that should be cancelled. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpCancelSamplingExecutionParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The requestId previously passed to executeSampling that should be cancelled */ + @JsonProperty("requestId") String requestId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java new file mode 100644 index 000000000..9495602f6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether an in-flight sampling execution with the given requestId was found and cancelled. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpCancelSamplingExecutionResult( + /** True if an in-flight execution with the given requestId was found and signalled to cancel. False when no such execution is in flight (already completed, never started, or cancelled by another caller). */ + @JsonProperty("cancelled") Boolean cancelled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java new file mode 100644 index 000000000..adee20ceb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Name of the MCP server to disable for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpDisableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the MCP server to disable */ + @JsonProperty("serverName") String serverName +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java new file mode 100644 index 000000000..53b23f9ee --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Name of the MCP server to enable for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpEnableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the MCP server to enable */ + @JsonProperty("serverName") String serverName +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java new file mode 100644 index 000000000..b6f995971 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpExecuteSamplingParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Caller-provided unique identifier for this sampling execution. Use this same ID with cancelSamplingExecution to cancel the in-flight call. Must be unique within the session for the lifetime of the call. */ + @JsonProperty("requestId") String requestId, + /** Name of the MCP server that initiated the sampling request */ + @JsonProperty("serverName") String serverName, + /** The original MCP JSON-RPC request ID (string or number). Used by the runtime to correlate the inference with the originating MCP request for telemetry; this is distinct from `requestId` (which is the schema-level cancellation handle). */ + @JsonProperty("mcpRequestId") Object mcpRequestId, + /** Raw MCP CreateMessageRequest params, as received in the `sampling.requested` event. Treated as opaque at the schema layer; the runtime converts the embedded MCP messages into the OpenAI chat-completion shape internally. */ + @JsonProperty("request") McpExecuteSamplingRequest request +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java new file mode 100644 index 000000000..578cb10f2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Outcome of an MCP sampling execution: success result, failure error, or cancellation. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpExecuteSamplingResult( + /** Outcome of the sampling inference. 'success' produced a response; 'failure' encountered an error (including agent-side rejection by content filter or criteria); 'cancelled' the caller cancelled this execution via cancelSamplingExecution. */ + @JsonProperty("action") McpSamplingExecutionAction action, + /** MCP CreateMessageResult payload (with optional 'tools' extension), present when action='success'. Treated as opaque at the schema layer; consumers should construct/consume it per the MCP CreateMessageResult shape. */ + @JsonProperty("result") McpExecuteSamplingResult result, + /** Error description, present when action='failure'. */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java new file mode 100644 index 000000000..4ae5d6a2c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java new file mode 100644 index 000000000..220f663b6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * MCP servers configured for the session, with their connection status. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpListResult( + /** Configured MCP servers */ + @JsonProperty("servers") List servers +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java new file mode 100644 index 000000000..68535ebc4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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 mcp.oauth} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionMcpOauthApi { + + 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 */ + SessionMcpOauthApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture login(SessionMcpOauthLoginParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mcp.oauth.login", _p, SessionMcpOauthLoginResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java new file mode 100644 index 000000000..4fcca6618 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpOauthLoginParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the remote MCP server to authenticate */ + @JsonProperty("serverName") String serverName, + /** When true, clears any cached OAuth token for the server and runs a full new authorization. Use when the user explicitly wants to switch accounts or believes their session is stuck. */ + @JsonProperty("forceReauth") Boolean forceReauth, + /** Optional override for the OAuth client display name shown on the consent screen. Applies to newly registered dynamic clients only — existing registrations keep the name they were created with. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass their own surface-specific label so the consent screen matches the product the user sees. */ + @JsonProperty("clientName") String clientName, + /** Optional override for the body text shown on the OAuth loopback callback success page. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass surface-specific copy telling the user where to return. */ + @JsonProperty("callbackSuccessMessage") String callbackSuccessMessage +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java new file mode 100644 index 000000000..e3d9071f7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpOauthLoginResult( + /** URL the caller should open in a browser to complete OAuth. Omitted when cached tokens were still valid and no browser interaction was needed — the server is already reconnected in that case. When present, the runtime starts the callback listener before returning and continues the flow in the background; completion is signaled via session.mcp_server_status_changed. */ + @JsonProperty("authorizationUrl") String authorizationUrl +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java new file mode 100644 index 000000000..6df56c453 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpReloadParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java new file mode 100644 index 000000000..0213c76f5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpRemoveGitHubParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java new file mode 100644 index 000000000..1845649bc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the auto-managed `github` MCP server was removed (false when nothing to remove). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpRemoveGitHubResult( + /** True when the auto-managed `github` MCP server was removed; false when no removal happened (e.g. user has explicitly configured a `github` server, or the server was not registered). */ + @JsonProperty("removed") Boolean removed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java new file mode 100644 index 000000000..5a524cfb0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Mode controlling how MCP server env values are resolved (`direct` or `indirect`). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpSetEnvValueModeParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** How environment-variable values supplied to MCP servers are resolved. "direct" passes literal string values; "indirect" treats values as references (e.g. names of environment variables on the host) that the runtime resolves before launch. Defaults to the runtime's startup mode; clients that intentionally launch MCP servers with literal values (e.g. CLI prompt mode and ACP) set this to "direct". */ + @JsonProperty("mode") McpSetEnvValueModeDetails mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java new file mode 100644 index 000000000..300ef08e7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Env-value mode recorded on the session after the update. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMcpSetEnvValueModeResult( + /** Mode recorded on the session after the update */ + @JsonProperty("mode") McpSetEnvValueModeDetails mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java new file mode 100644 index 000000000..c1d3e75eb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java @@ -0,0 +1,41 @@ +/*--------------------------------------------------------------------------------------------- + * 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, + /** True for remote (GitHub) sessions; false for local */ + @JsonProperty("isRemote") Boolean isRemote, + /** 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java new file mode 100644 index 000000000..7bd7e66bb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java @@ -0,0 +1,112 @@ +/*--------------------------------------------------------------------------------------------- + * 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 metadata} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionMetadataApi { + + 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 */ + SessionMetadataApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture snapshot() { + return caller.invoke("session.metadata.snapshot", java.util.Map.of("sessionId", this.sessionId), SessionMetadataSnapshotResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture isProcessing() { + return caller.invoke("session.metadata.isProcessing", java.util.Map.of("sessionId", this.sessionId), SessionMetadataIsProcessingResult.class); + } + + /** + * Model identifier and token limits used to compute the context-info breakdown. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture contextInfo(SessionMetadataContextInfoParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.metadata.contextInfo", _p, SessionMetadataContextInfoResult.class); + } + + /** + * Updated working-directory/git context to record on the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture recordContextChange(SessionMetadataRecordContextChangeParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.metadata.recordContextChange", _p, Void.class); + } + + /** + * Absolute path to set as the session's new working directory. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setWorkingDirectory(SessionMetadataSetWorkingDirectoryParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.metadata.setWorkingDirectory", _p, SessionMetadataSetWorkingDirectoryResult.class); + } + + /** + * Model identifier to use when re-tokenizing the session's existing messages. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture recomputeContextTokens(SessionMetadataRecomputeContextTokensParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.metadata.recomputeContextTokens", _p, SessionMetadataRecomputeContextTokensResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java new file mode 100644 index 000000000..4b6bccf7e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Model identifier and token limits used to compute the context-info breakdown. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataContextInfoParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Maximum prompt tokens allowed by the target model. Pass 0 to use the runtime default. */ + @JsonProperty("promptTokenLimit") Long promptTokenLimit, + /** Maximum output tokens allowed by the target model. Pass 0 if unknown. */ + @JsonProperty("outputTokenLimit") Long outputTokenLimit, + /** Model identifier used for tokenization. Omit to use the session default. Used both for token counting and to compute display values. */ + @JsonProperty("selectedModel") String selectedModel +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java new file mode 100644 index 000000000..de9074e8c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java @@ -0,0 +1,52 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token breakdown for the session's current context window, or null if uninitialized. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataContextInfoResult( + /** Token breakdown for the current context window, or null if the session has not yet been initialized (no system prompt or tool metadata cached). */ + @JsonProperty("contextInfo") SessionMetadataContextInfoResultContextInfo contextInfo +) { + + /** Token-usage breakdown for the session's current context window */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionMetadataContextInfoResultContextInfo( + /** The model used for token counting */ + @JsonProperty("modelName") String modelName, + /** Tokens consumed by the system prompt */ + @JsonProperty("systemTokens") Long systemTokens, + /** Tokens consumed by user/assistant/tool messages */ + @JsonProperty("conversationTokens") Long conversationTokens, + /** Tokens consumed by tool definitions sent to the model (excludes deferred tools) */ + @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens, + /** Sum of system, conversation and tool-definition tokens */ + @JsonProperty("totalTokens") Long totalTokens, + /** Maximum prompt tokens allowed by the model (or DEFAULT_TOKEN_LIMIT if unspecified) */ + @JsonProperty("promptTokenLimit") Long promptTokenLimit, + /** Token count at which background compaction starts (configurable percentage of promptTokenLimit) */ + @JsonProperty("compactionThreshold") Long compactionThreshold, + /** Total context limit for /context display. promptTokenLimit + min(32k or 64k, outputTokenLimit) depending on model. */ + @JsonProperty("limit") Long limit, + /** Output reserve plus tokens after the buffer-exhaustion blocking threshold (default 95%) */ + @JsonProperty("bufferTokens") Long bufferTokens + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java new file mode 100644 index 000000000..329dbea10 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataIsProcessingParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java new file mode 100644 index 000000000..e496bb662 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the local session is currently processing a turn or background continuation. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataIsProcessingResult( + /** Whether the session is currently processing user/agent messages. False for non-local sessions (which don't run a local agentic loop). Reflects an in-flight turn or background continuation. */ + @JsonProperty("processing") Boolean processing +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java new file mode 100644 index 000000000..979f8808d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Model identifier to use when re-tokenizing the session's existing messages. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataRecomputeContextTokensParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Model identifier used for tokenization. The runtime token-counts both chat-context and system-context messages against this model. */ + @JsonProperty("modelId") String modelId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java new file mode 100644 index 000000000..4aab3841a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Re-tokenize the session's existing messages against `modelId` and return the token totals. Useful for hosts that want an initial estimate of context usage on session resume, before the next agent turn fires `session.context_info_changed` events. Returns zeros for an empty session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataRecomputeContextTokensResult( + /** Sum of tokens across chat-context and system-context messages currently held by the session. */ + @JsonProperty("totalTokens") Long totalTokens, + /** Tokens contributed by user/assistant/tool messages (excludes system/developer prompts). */ + @JsonProperty("messagesTokenCount") Long messagesTokenCount, + /** Tokens contributed by system/developer prompt snapshots. */ + @JsonProperty("systemTokenCount") Long systemTokenCount +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java new file mode 100644 index 000000000..6b42c822c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Updated working-directory/git context to record on the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataRecordContextChangeParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Updated working directory and git context. Emitted as the new payload of `session.context_changed`. */ + @JsonProperty("context") SessionWorkingDirectoryContext context +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java new file mode 100644 index 000000000..41f252b20 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java new file mode 100644 index 000000000..507b0a49f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Absolute path to set as the session's new working directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataSetWorkingDirectoryParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Absolute path to set as the session's working directory. The runtime updates the session's recorded cwd so subsequent operations (shell tools, file lookups, telemetry) anchor to it. */ + @JsonProperty("workingDirectory") String workingDirectory +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java new file mode 100644 index 000000000..85ef81026 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Update the session's working directory. Used by the host when the user explicitly changes cwd (e.g., the `/cd` slash command). The host is responsible for `process.chdir` and any related side-effects (file index, etc.); this method only updates the session's own recorded path. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataSetWorkingDirectoryResult( + /** Working directory after the update */ + @JsonProperty("workingDirectory") String workingDirectory +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java new file mode 100644 index 000000000..d3e94df43 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataSnapshotParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java new file mode 100644 index 000000000..ec905f078 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java @@ -0,0 +1,77 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Point-in-time snapshot of slow-changing session identifier and state fields + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionMetadataSnapshotResult( + /** The unique identifier of the session */ + @JsonProperty("sessionId") String sessionId, + /** ISO 8601 timestamp of when the session started */ + @JsonProperty("startTime") OffsetDateTime startTime, + /** ISO 8601 timestamp of when the session's persisted state was last modified on disk. For new sessions, equals startTime. For resumed sessions, reflects the previous modification time at construction. */ + @JsonProperty("modifiedTime") OffsetDateTime modifiedTime, + /** Whether this is a remote session (i.e., one whose runtime executes elsewhere and is steered through this process) */ + @JsonProperty("isRemote") Boolean isRemote, + /** True when the session was detected to be in use by another process at construction time. Local consumers may surface a confirmation prompt before fully attaching. Always false for new sessions. */ + @JsonProperty("alreadyInUse") Boolean alreadyInUse, + /** Absolute path to the session's workspace directory on disk, or null if the session has no associated workspace */ + @JsonProperty("workspacePath") String workspacePath, + /** User-provided name supplied at session construction (via `--name`), if any. Immutable after construction. */ + @JsonProperty("initialName") String initialName, + /** Remote-session-specific metadata. Populated only when `isRemote` is true. Fields are immutable for the lifetime of the session. */ + @JsonProperty("remoteMetadata") MetadataSnapshotRemoteMetadata remoteMetadata, + /** Short human-readable summary of the session, if known. Omitted when no summary has been generated. */ + @JsonProperty("summary") String summary, + /** Absolute path to the session's current working directory */ + @JsonProperty("workingDirectory") String workingDirectory, + /** The current agent mode for this session (e.g., 'interactive', 'plan', 'autopilot') */ + @JsonProperty("currentMode") MetadataSnapshotCurrentMode currentMode, + /** Currently selected model identifier, if any */ + @JsonProperty("selectedModel") String selectedModel, + /** Public-facing workspace metadata for this session, or null if the session has no associated workspace. Excludes runtime-internal fields (GitHub IDs, summary count, internal flags). */ + @JsonProperty("workspace") SessionMetadataSnapshotResultWorkspace workspace +) { + + /** Public-facing projection of workspace metadata for SDK / TUI consumers */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionMetadataSnapshotResultWorkspace( + /** Workspace identifier (1:1 with sessionId) */ + @JsonProperty("id") String id, + /** Current working directory at session start */ + @JsonProperty("cwd") String cwd, + /** Resolved git root for cwd, if any */ + @JsonProperty("git_root") String gitRoot, + /** Repository identifier in 'owner/repo' or 'org/project/repo' format, if any */ + @JsonProperty("repository") String repository, + /** Repository host type, if known */ + @JsonProperty("host_type") WorkspaceSummaryHostType hostType, + /** Branch checked out at session start, if any */ + @JsonProperty("branch") String branch, + /** Display name for the session, if set */ + @JsonProperty("name") String name, + /** ISO 8601 timestamp when the workspace was created */ + @JsonProperty("created_at") OffsetDateTime createdAt, + /** ISO 8601 timestamp when the workspace was last updated */ + @JsonProperty("updated_at") OffsetDateTime updatedAt + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java new file mode 100644 index 000000000..e12db3624 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The session mode the agent is operating in + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionMode { + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code plan} variant. */ + PLAN("plan"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"); + + private final String value; + SessionMode(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionMode fromValue(String value) { + for (SessionMode v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionMode value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java new file mode 100644 index 000000000..e5201bd6a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java @@ -0,0 +1,57 @@ +/*--------------------------------------------------------------------------------------------- + * 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 mode} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionModeApi { + + 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 */ + SessionModeApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture get() { + return caller.invoke("session.mode.get", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * Agent interaction mode to apply to the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture set(SessionModeSetParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.mode.set", _p, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java new file mode 100644 index 000000000..c1a493621 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModeGetParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java new file mode 100644 index 000000000..b12bea9ff --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Agent interaction mode to apply to the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModeSetParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The session mode the agent is operating in */ + @JsonProperty("mode") SessionMode mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java new file mode 100644 index 000000000..eda751b3e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java @@ -0,0 +1,72 @@ +/*--------------------------------------------------------------------------------------------- + * 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 model} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionModelApi { + + 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 */ + SessionModelApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getCurrent() { + return caller.invoke("session.model.getCurrent", java.util.Map.of("sessionId", this.sessionId), SessionModelGetCurrentResult.class); + } + + /** + * Target model identifier and optional reasoning effort, summary, and capability overrides. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture switchTo(SessionModelSwitchToParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.model.switchTo", _p, SessionModelSwitchToResult.class); + } + + /** + * Reasoning effort level to apply to the currently selected model. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setReasoningEffort(SessionModelSetReasoningEffortParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.model.setReasoningEffort", _p, SessionModelSetReasoningEffortResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java new file mode 100644 index 000000000..abcf1c2ab --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModelGetCurrentParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java new file mode 100644 index 000000000..7bb2f8496 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The currently selected model and reasoning effort for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModelGetCurrentResult( + /** Currently active model identifier */ + @JsonProperty("modelId") String modelId, + /** Reasoning effort level currently applied to the active model, when one is set. Reads `Session.getReasoningEffort()` synchronously after `getSelectedModel()` resolves so the two values are reported as a snapshot. */ + @JsonProperty("reasoningEffort") String reasoningEffort +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java new file mode 100644 index 000000000..6135c2e0a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Reasoning effort level to apply to the currently selected model. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModelSetReasoningEffortParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Reasoning effort level to apply to the currently selected model. The host is responsible for validating the value against the model's supported levels before calling. */ + @JsonProperty("reasoningEffort") String reasoningEffort +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java new file mode 100644 index 000000000..2d6cbd0a6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Update the session's reasoning effort without changing the selected model. Use `switchTo` instead when you also need to change the model. The runtime stores the effort on the session and applies it to subsequent turns. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModelSetReasoningEffortResult( + /** Reasoning effort level recorded on the session after the update */ + @JsonProperty("reasoningEffort") String reasoningEffort +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java new file mode 100644 index 000000000..c5c1cbbe0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Target model identifier and optional reasoning effort, summary, and capability overrides. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModelSwitchToParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Model identifier to switch to */ + @JsonProperty("modelId") String modelId, + /** Reasoning effort level to use for the model. "none" disables reasoning. */ + @JsonProperty("reasoningEffort") String reasoningEffort, + /** Reasoning summary mode to request for supported model clients */ + @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, + /** Override individual model capabilities resolved by the runtime */ + @JsonProperty("modelCapabilities") ModelCapabilitiesOverride modelCapabilities +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java new file mode 100644 index 000000000..8bf6f2c8e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The model identifier active on the session after the switch. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionModelSwitchToResult( + /** Currently active model identifier after the switch */ + @JsonProperty("modelId") String modelId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java new file mode 100644 index 000000000..e7e1be58a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java @@ -0,0 +1,72 @@ +/*--------------------------------------------------------------------------------------------- + * 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 name} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionNameApi { + + 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 */ + SessionNameApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture get() { + return caller.invoke("session.name.get", java.util.Map.of("sessionId", this.sessionId), SessionNameGetResult.class); + } + + /** + * New friendly name to apply to the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture set(SessionNameSetParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.name.set", _p, Void.class); + } + + /** + * Auto-generated session summary to apply as the session's name when no user-set name exists. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setAuto(SessionNameSetAutoParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.name.setAuto", _p, SessionNameSetAutoResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java new file mode 100644 index 000000000..d3728d06d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionNameGetParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java new file mode 100644 index 000000000..b3e459967 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The session's friendly name, or null when not yet set. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionNameGetResult( + /** The session name (user-set or auto-generated), or null if not yet set */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java new file mode 100644 index 000000000..8c69e0d5d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Auto-generated session summary to apply as the session's name when no user-set name exists. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionNameSetAutoParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Auto-generated session summary. Empty/whitespace-only values are ignored; values are trimmed before persisting. */ + @JsonProperty("summary") String summary +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java new file mode 100644 index 000000000..e84407d89 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the auto-generated summary was applied as the session's name. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionNameSetAutoResult( + /** Whether the auto-generated summary was persisted. False if the session already has a user-set name, the summary normalized to empty, or the session does not have a workspace. */ + @JsonProperty("applied") Boolean applied +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java new file mode 100644 index 000000000..7fd348c36 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * New friendly name to apply to the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionNameSetParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** New session name (1–100 characters, trimmed of leading/trailing whitespace) */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java new file mode 100644 index 000000000..4e46d346a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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 options} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionOptionsApi { + + 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 */ + SessionOptionsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Patch of mutable session options to apply to the running session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture update(SessionOptionsUpdateParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.options.update", _p, SessionOptionsUpdateResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java new file mode 100644 index 000000000..081817f3a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java @@ -0,0 +1,101 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Patch of mutable session options to apply to the running session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionOptionsUpdateParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The model ID to use for assistant turns. */ + @JsonProperty("model") String model, + /** Reasoning effort for the selected model (model-defined enum). */ + @JsonProperty("reasoningEffort") String reasoningEffort, + /** Identifier of the client driving the session. */ + @JsonProperty("clientName") String clientName, + /** Identifier sent to LSP-style integrations. */ + @JsonProperty("lspClientName") String lspClientName, + /** Stable integration identifier used for analytics and rate-limit attribution. */ + @JsonProperty("integrationId") String integrationId, + /** Map of feature-flag IDs to their boolean enabled state. */ + @JsonProperty("featureFlags") Map featureFlags, + /** Whether experimental capabilities are enabled. */ + @JsonProperty("isExperimentalMode") Boolean isExperimentalMode, + /** Custom model-provider configuration (BYOK). Opaque shape; see `ProviderConfig` in the runtime. */ + @JsonProperty("provider") Object provider, + /** Absolute working-directory path for shell tools. */ + @JsonProperty("workingDirectory") String workingDirectory, + /** Allowlist of tool names available to this session. */ + @JsonProperty("availableTools") List availableTools, + /** Denylist of tool names for this session. */ + @JsonProperty("excludedTools") List excludedTools, + /** Whether shell-script safety heuristics are enabled. */ + @JsonProperty("enableScriptSafety") Boolean enableScriptSafety, + /** Shell init profile (`None` or `NonInteractive`). */ + @JsonProperty("shellInitProfile") String shellInitProfile, + /** Per-shell process flags (e.g., `pwsh` arguments). */ + @JsonProperty("shellProcessFlags") List shellProcessFlags, + /** Sandbox configuration shape; opaque to SDK consumers. See `SandboxConfig` in the runtime. */ + @JsonProperty("sandboxConfig") Object sandboxConfig, + /** Whether interactive shell sessions are logged. */ + @JsonProperty("logInteractiveShells") Boolean logInteractiveShells, + /** How env values are passed to MCP servers (`direct` inlines literal values; `indirect` resolves at launch). */ + @JsonProperty("envValueMode") OptionsUpdateEnvValueMode envValueMode, + /** Additional directories to search for skills. */ + @JsonProperty("skillDirectories") List skillDirectories, + /** Skill IDs that should be excluded from this session. */ + @JsonProperty("disabledSkills") List disabledSkills, + /** Whether to discover custom instructions on demand after successful file views (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md surfacing). Combined with `skipCustomInstructions` and the runtime-side `ON_DEMAND_INSTRUCTIONS` feature flag. */ + @JsonProperty("enableOnDemandInstructionDiscovery") Boolean enableOnDemandInstructionDiscovery, + /** Full set of installed plugins for the session. Replaces the existing list; the runtime invalidates the skills cache only when the list materially changes. */ + @JsonProperty("installedPlugins") List installedPlugins, + /** Whether to default custom agents to local-only execution. */ + @JsonProperty("customAgentsLocalOnly") Boolean customAgentsLocalOnly, + /** Whether to skip loading custom instruction sources. */ + @JsonProperty("skipCustomInstructions") Boolean skipCustomInstructions, + /** Instruction source IDs to exclude from the system prompt. */ + @JsonProperty("disabledInstructionSources") List disabledInstructionSources, + /** Whether to include the `Co-authored-by` trailer in commit messages. */ + @JsonProperty("coauthorEnabled") Boolean coauthorEnabled, + /** Optional path for trajectory output. */ + @JsonProperty("trajectoryFile") String trajectoryFile, + /** Whether to stream model responses. */ + @JsonProperty("enableStreaming") Boolean enableStreaming, + /** Override URL for the Copilot API endpoint. */ + @JsonProperty("copilotUrl") String copilotUrl, + /** Whether to disable the `ask_user` tool (encourages autonomous behavior). */ + @JsonProperty("askUserDisabled") Boolean askUserDisabled, + /** Whether to allow auto-mode continuation across turns. */ + @JsonProperty("continueOnAutoMode") Boolean continueOnAutoMode, + /** Whether the session is running in an interactive UI. */ + @JsonProperty("runningInInteractiveMode") Boolean runningInInteractiveMode, + /** Whether to surface reasoning-summary events from the model. */ + @JsonProperty("enableReasoningSummaries") Boolean enableReasoningSummaries, + /** Runtime context discriminator (e.g., `cli`, `actions`). */ + @JsonProperty("agentContext") String agentContext, + /** Override directory for the session-events log. When unset, the runtime's default events log directory is used. */ + @JsonProperty("eventsLogDirectory") String eventsLogDirectory, + /** Additional content-exclusion policies to merge into the session's policy set. Opaque shape; see `ContentExclusionApiResponse` in the runtime. */ + @JsonProperty("additionalContentExclusionPolicies") List additionalContentExclusionPolicies, + /** Whether to expose the `manage_schedule` tool to the agent. The runtime always owns the per-session schedule registry; this flag only controls tool exposure (typically gated to staff users). */ + @JsonProperty("manageScheduleEnabled") Boolean manageScheduleEnabled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java new file mode 100644 index 000000000..4e514944c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the session options patch was applied successfully. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionOptionsUpdateResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java new file mode 100644 index 000000000..42d947954 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java @@ -0,0 +1,155 @@ +/*--------------------------------------------------------------------------------------------- + * 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 permissions} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPermissionsApi { + + private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; + + private final RpcCaller caller; + private final String sessionId; + + /** API methods for the {@code permissions.paths} sub-namespace. */ + public final SessionPermissionsPathsApi paths; + /** API methods for the {@code permissions.locations} sub-namespace. */ + public final SessionPermissionsLocationsApi locations; + /** API methods for the {@code permissions.folderTrust} sub-namespace. */ + public final SessionPermissionsFolderTrustApi folderTrust; + /** API methods for the {@code permissions.urls} sub-namespace. */ + public final SessionPermissionsUrlsApi urls; + + /** @param caller the RPC transport function */ + SessionPermissionsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + this.paths = new SessionPermissionsPathsApi(caller, sessionId); + this.locations = new SessionPermissionsLocationsApi(caller, sessionId); + this.folderTrust = new SessionPermissionsFolderTrustApi(caller, sessionId); + this.urls = new SessionPermissionsUrlsApi(caller, sessionId); + } + + /** + * Patch of permission policy fields to apply (omit a field to leave it unchanged). + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture configure(SessionPermissionsConfigureParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.configure", _p, SessionPermissionsConfigureResult.class); + } + + /** + * Pending permission request ID and the decision to apply (approve/reject and scope). + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingPermissionRequest(SessionPermissionsHandlePendingPermissionRequestParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.handlePendingPermissionRequest", _p, SessionPermissionsHandlePendingPermissionRequestResult.class); + } + + /** + * No parameters; returns currently-pending permission requests for the session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture pendingRequests() { + return caller.invoke("session.permissions.pendingRequests", java.util.Map.of("sessionId", this.sessionId), SessionPermissionsPendingRequestsResult.class); + } + + /** + * Allow-all toggle for tool permission requests, with an optional telemetry source. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setApproveAll(SessionPermissionsSetApproveAllParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.setApproveAll", _p, SessionPermissionsSetApproveAllResult.class); + } + + /** + * Scope and add/remove instructions for modifying session- or location-scoped permission rules. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture modifyRules(SessionPermissionsModifyRulesParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.modifyRules", _p, SessionPermissionsModifyRulesResult.class); + } + + /** + * Toggles whether permission prompts should be bridged into session events for this client. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setRequired(SessionPermissionsSetRequiredParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.setRequired", _p, SessionPermissionsSetRequiredResult.class); + } + + /** + * No parameters; clears all session-scoped tool permission approvals. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture resetSessionApprovals() { + return caller.invoke("session.permissions.resetSessionApprovals", java.util.Map.of("sessionId", this.sessionId), SessionPermissionsResetSessionApprovalsResult.class); + } + + /** + * Notification payload describing the permission prompt that the client just rendered. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture notifyPromptShown(SessionPermissionsNotifyPromptShownParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.notifyPromptShown", _p, SessionPermissionsNotifyPromptShownResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java new file mode 100644 index 000000000..0ae82cd21 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Patch of permission policy fields to apply (omit a field to leave it unchanged). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsConfigureParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** If specified, sets whether tool permission requests are auto-approved without prompting. Omit to leave the current value unchanged. */ + @JsonProperty("approveAllToolPermissionRequests") Boolean approveAllToolPermissionRequests, + /** If specified, sets whether path/URL read permission requests are auto-approved. Omit to leave the current value unchanged. */ + @JsonProperty("approveAllReadPermissionRequests") Boolean approveAllReadPermissionRequests, + /** If specified, replaces the session's approved/denied permission rules. Omit to leave the current rules unchanged. */ + @JsonProperty("rules") PermissionRulesSet rules, + /** If specified, replaces the session's path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session's working directory). Omit to leave the current path policy unchanged. */ + @JsonProperty("paths") PermissionPathsConfig paths, + /** If specified, replaces the session's URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged. */ + @JsonProperty("urls") PermissionUrlsConfig urls, + /** If specified, replaces the host-supplied GitHub Content Exclusion policies on the session (combined with natively-discovered policies when evaluating tool/file access). Omit to leave the current policies unchanged. */ + @JsonProperty("additionalContentExclusionPolicies") List additionalContentExclusionPolicies +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java new file mode 100644 index 000000000..267403f09 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsConfigureResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java new file mode 100644 index 000000000..27544af71 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Folder path to add to trusted folders. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsFolderTrustAddTrustedParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Folder path to mark as trusted */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java new file mode 100644 index 000000000..d7181cd86 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsFolderTrustAddTrustedResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java new file mode 100644 index 000000000..00191e5c4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java @@ -0,0 +1,62 @@ +/*--------------------------------------------------------------------------------------------- + * 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 permissions.folderTrust} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPermissionsFolderTrustApi { + + 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 */ + SessionPermissionsFolderTrustApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Folder path to check for trust. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture isTrusted(SessionPermissionsFolderTrustIsTrustedParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.folderTrust.isTrusted", _p, SessionPermissionsFolderTrustIsTrustedResult.class); + } + + /** + * Folder path to add to trusted folders. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture addTrusted(SessionPermissionsFolderTrustAddTrustedParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.folderTrust.addTrusted", _p, SessionPermissionsFolderTrustAddTrustedResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java new file mode 100644 index 000000000..f8d666a88 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Folder path to check for trust. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsFolderTrustIsTrustedParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Folder path to check */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java new file mode 100644 index 000000000..c969d324b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Folder trust check result. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsFolderTrustIsTrustedResult( + /** Whether the folder is trusted */ + @JsonProperty("trusted") Boolean trusted +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java new file mode 100644 index 000000000..2f061ed0c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Pending permission request ID and the decision to apply (approve/reject and scope). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsHandlePendingPermissionRequestParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Request ID of the pending permission request */ + @JsonProperty("requestId") String requestId, + /** The client's response to the pending permission prompt */ + @JsonProperty("result") Object result +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java new file mode 100644 index 000000000..07bcc16e7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the permission decision was applied; false when the request was already resolved. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsHandlePendingPermissionRequestResult( + /** Whether the permission request was handled successfully */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java new file mode 100644 index 000000000..bb99721ab --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Location-scoped tool approval to persist. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsLocationsAddToolApprovalParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Location key (git root or cwd) to persist the approval to */ + @JsonProperty("locationKey") String locationKey, + /** Tool approval to persist and apply */ + @JsonProperty("approval") Object approval +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java new file mode 100644 index 000000000..044851720 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsLocationsAddToolApprovalResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java new file mode 100644 index 000000000..c40877b6b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java @@ -0,0 +1,77 @@ +/*--------------------------------------------------------------------------------------------- + * 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 permissions.locations} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPermissionsLocationsApi { + + 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 */ + SessionPermissionsLocationsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Working directory to resolve into a location-permissions key. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture resolve(SessionPermissionsLocationsResolveParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.locations.resolve", _p, SessionPermissionsLocationsResolveResult.class); + } + + /** + * Working directory to load persisted location permissions for. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture apply(SessionPermissionsLocationsApplyParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.locations.apply", _p, SessionPermissionsLocationsApplyResult.class); + } + + /** + * Location-scoped tool approval to persist. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture addToolApproval(SessionPermissionsLocationsAddToolApprovalParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.locations.addToolApproval", _p, SessionPermissionsLocationsAddToolApprovalResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java new file mode 100644 index 000000000..aa40ddb2a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Working directory to load persisted location permissions for. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsLocationsApplyParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Working directory whose persisted location permissions should be applied */ + @JsonProperty("workingDirectory") String workingDirectory +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java new file mode 100644 index 000000000..842226b32 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java @@ -0,0 +1,38 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Summary of persisted location permissions applied to the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsLocationsApplyResult( + /** Location key used in the location-permissions store */ + @JsonProperty("locationKey") String locationKey, + /** Whether the location is a git repo or directory */ + @JsonProperty("locationType") PermissionLocationType locationType, + /** Whether a different location was applied since the previous apply call */ + @JsonProperty("changed") Boolean changed, + /** Number of location-scoped rules added to the live permission service */ + @JsonProperty("appliedRuleCount") Long appliedRuleCount, + /** Number of persisted allowed directories added to the live path manager */ + @JsonProperty("appliedDirectoryCount") Long appliedDirectoryCount, + /** Location-scoped rules applied to the live permission service */ + @JsonProperty("appliedRules") List appliedRules +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java new file mode 100644 index 000000000..2e4f5cf2f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Working directory to resolve into a location-permissions key. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsLocationsResolveParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Working directory whose permission location should be resolved */ + @JsonProperty("workingDirectory") String workingDirectory +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java new file mode 100644 index 000000000..ff22dcafe --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Resolved location-permissions key and type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsLocationsResolveResult( + /** Location key used in the location-permissions store */ + @JsonProperty("locationKey") String locationKey, + /** Whether the location is a git repo or directory */ + @JsonProperty("locationType") PermissionLocationType locationType +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java new file mode 100644 index 000000000..3243aea8b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Scope and add/remove instructions for modifying session- or location-scoped permission rules. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsModifyRulesParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Whether the change applies to ephemeral session-scoped rules (cleared at session end) or to location-scoped rules persisted via the location-permissions config file. */ + @JsonProperty("scope") PermissionsModifyRulesScope scope, + /** Rules to add to the scope. Applied before `remove`/`removeAll`. */ + @JsonProperty("add") List add, + /** Specific rules to remove from the scope. Ignored when `removeAll` is true. */ + @JsonProperty("remove") List remove, + /** When true, removes every rule currently in the scope (after any `add` is applied). Useful for clearing the location scope wholesale. */ + @JsonProperty("removeAll") Boolean removeAll +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java new file mode 100644 index 000000000..6c5c83675 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsModifyRulesResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java new file mode 100644 index 000000000..8c4b25c72 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Notification payload describing the permission prompt that the client just rendered. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsNotifyPromptShownParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Human-readable description of the prompt the user is being asked to approve. Used by the runtime to fire the registered `permission_prompt` notification hook (e.g. terminal bell, desktop notification). */ + @JsonProperty("message") String message +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java new file mode 100644 index 000000000..092d8abf8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsNotifyPromptShownResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java new file mode 100644 index 000000000..272408cce --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path to add to the session's allowed directories. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsAddParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Directory to add to the allow-list. The runtime resolves and validates the path before adding. */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java new file mode 100644 index 000000000..182c39b6f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsAddResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java new file mode 100644 index 000000000..f4fc1a770 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java @@ -0,0 +1,102 @@ +/*--------------------------------------------------------------------------------------------- + * 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 permissions.paths} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPermissionsPathsApi { + + 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 */ + SessionPermissionsPathsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * No parameters; returns the session's allow-listed directories. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.permissions.paths.list", java.util.Map.of("sessionId", this.sessionId), SessionPermissionsPathsListResult.class); + } + + /** + * Directory path to add to the session's allowed directories. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture add(SessionPermissionsPathsAddParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.paths.add", _p, SessionPermissionsPathsAddResult.class); + } + + /** + * Directory path to set as the session's new primary working directory. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture updatePrimary(SessionPermissionsPathsUpdatePrimaryParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.paths.updatePrimary", _p, SessionPermissionsPathsUpdatePrimaryResult.class); + } + + /** + * Path to evaluate against the session's allowed directories. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture isPathWithinAllowedDirectories(SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.paths.isPathWithinAllowedDirectories", _p, SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.class); + } + + /** + * Path to evaluate against the session's workspace (primary) directory. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture isPathWithinWorkspace(SessionPermissionsPathsIsPathWithinWorkspaceParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.paths.isPathWithinWorkspace", _p, SessionPermissionsPathsIsPathWithinWorkspaceResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java new file mode 100644 index 000000000..c9d43aeb2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path to evaluate against the session's allowed directories. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path to check against the session's allowed directories */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java new file mode 100644 index 000000000..6e876bcca --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the supplied path is within the session's allowed directories. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult( + /** Whether the path is within the session's allowed directories */ + @JsonProperty("allowed") Boolean allowed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java new file mode 100644 index 000000000..c8fafd90c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Path to evaluate against the session's workspace (primary) directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsIsPathWithinWorkspaceParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Path to check against the session workspace directory */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java new file mode 100644 index 000000000..3eaf87052 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the supplied path is within the session's workspace directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsIsPathWithinWorkspaceResult( + /** Whether the path is within the session workspace directory */ + @JsonProperty("allowed") Boolean allowed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java new file mode 100644 index 000000000..43ae1f040 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * No parameters; returns the session's allow-listed directories. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java new file mode 100644 index 000000000..78d86e370 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Snapshot of the session's allow-listed directories and primary working directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsListResult( + /** All directories currently allowed for tool access on this session. */ + @JsonProperty("directories") List directories, + /** The primary working directory for this session. */ + @JsonProperty("primary") String primary +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java new file mode 100644 index 000000000..98a7ccfb2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 path to set as the session's new primary working directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsUpdatePrimaryParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Directory to set as the new primary working directory for the session's permission policy. */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java new file mode 100644 index 000000000..7be298132 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPathsUpdatePrimaryResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java new file mode 100644 index 000000000..4e3f24cb7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * No parameters; returns currently-pending permission requests for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPendingRequestsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java new file mode 100644 index 000000000..33769fa8b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * List of pending permission requests reconstructed from event history. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsPendingRequestsResult( + /** Pending permission prompts reconstructed from the session's event history. Equivalent to the set of `permission.requested` events that have not yet been followed by a matching `permission.completed` event. Used by clients (e.g. the CLI) to hydrate UI for prompts that were emitted before the client attached to the session. */ + @JsonProperty("items") List items +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java new file mode 100644 index 000000000..dd369bf43 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * No parameters; clears all session-scoped tool permission approvals. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsResetSessionApprovalsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java new file mode 100644 index 000000000..2097ed064 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsResetSessionApprovalsResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java new file mode 100644 index 000000000..0517a5d86 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Allow-all toggle for tool permission requests, with an optional telemetry source. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsSetApproveAllParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Whether to auto-approve all tool permission requests */ + @JsonProperty("enabled") Boolean enabled, + /** Optional source for allow-all telemetry. Defaults to `rpc` when omitted for SDK callers. */ + @JsonProperty("source") PermissionsSetApproveAllSource source +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java new file mode 100644 index 000000000..7504cac18 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsSetApproveAllResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java new file mode 100644 index 000000000..e3c3e0e34 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Toggles whether permission prompts should be bridged into session events for this client. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsSetRequiredParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Whether the client wants `permission.requested` events bridged from the session-owned permission service. CLI clients that render prompt UI set this to `true` for as long as their listener is mounted; headless callers leave it unset (the default is `false`). */ + @JsonProperty("required") Boolean required +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java new file mode 100644 index 000000000..eaab9e378 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsSetRequiredResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java new file mode 100644 index 000000000..71b97adff --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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 permissions.urls} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPermissionsUrlsApi { + + 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 */ + SessionPermissionsUrlsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Whether the URL-permission policy should run in unrestricted mode. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setUnrestrictedMode(SessionPermissionsUrlsSetUnrestrictedModeParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.permissions.urls.setUnrestrictedMode", _p, SessionPermissionsUrlsSetUnrestrictedModeResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java new file mode 100644 index 000000000..6579489eb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Whether the URL-permission policy should run in unrestricted mode. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsUrlsSetUnrestrictedModeParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Whether to allow access to all URLs without prompting. Toggles the runtime's URL-permission policy in place. */ + @JsonProperty("enabled") Boolean enabled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java new file mode 100644 index 000000000..beef183a7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the operation succeeded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPermissionsUrlsSetUnrestrictedModeResult( + /** Whether the operation succeeded */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java new file mode 100644 index 000000000..25ff6884f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java @@ -0,0 +1,67 @@ +/*--------------------------------------------------------------------------------------------- + * 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 plan} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPlanApi { + + 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 */ + SessionPlanApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture read() { + return caller.invoke("session.plan.read", java.util.Map.of("sessionId", this.sessionId), SessionPlanReadResult.class); + } + + /** + * Replacement contents to write to the session plan file. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture update(SessionPlanUpdateParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.plan.update", _p, Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture delete() { + return caller.invoke("session.plan.delete", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java new file mode 100644 index 000000000..d47bd774e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPlanDeleteParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java new file mode 100644 index 000000000..57949be2b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPlanReadParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java new file mode 100644 index 000000000..65a1ba75f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Existence, contents, and resolved path of the session plan file. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPlanReadResult( + /** Whether the plan file exists in the workspace */ + @JsonProperty("exists") Boolean exists, + /** The content of the plan file, or null if it does not exist */ + @JsonProperty("content") String content, + /** Absolute file path of the plan file, or null if workspace is not enabled */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java new file mode 100644 index 000000000..128a7b814 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Replacement contents to write to the session plan file. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPlanUpdateParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The new content for the plan file */ + @JsonProperty("content") String content +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java new file mode 100644 index 000000000..e59e2b398 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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 plugins} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionPluginsApi { + + private final RpcCaller caller; + private final String sessionId; + + /** @param caller the RPC transport function */ + SessionPluginsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.plugins.list", java.util.Map.of("sessionId", this.sessionId), SessionPluginsListResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java new file mode 100644 index 000000000..7229b23a0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPluginsListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java new file mode 100644 index 000000000..bdf3e6dd8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Plugins installed for the session, with their enabled state and version metadata. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionPluginsListResult( + /** Installed plugins */ + @JsonProperty("plugins") List plugins +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java new file mode 100644 index 000000000..9c4a13b55 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java @@ -0,0 +1,60 @@ +/*--------------------------------------------------------------------------------------------- + * 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 queue} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionQueueApi { + + private final RpcCaller caller; + private final String sessionId; + + /** @param caller the RPC transport function */ + SessionQueueApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture pendingItems() { + return caller.invoke("session.queue.pendingItems", java.util.Map.of("sessionId", this.sessionId), SessionQueuePendingItemsResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture removeMostRecent() { + return caller.invoke("session.queue.removeMostRecent", java.util.Map.of("sessionId", this.sessionId), SessionQueueRemoveMostRecentResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture clear() { + return caller.invoke("session.queue.clear", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java new file mode 100644 index 000000000..38d4404c7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionQueueClearParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java new file mode 100644 index 000000000..a4e2b10c2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionQueuePendingItemsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java new file mode 100644 index 000000000..0a8e6540e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Snapshot of the session's pending queued items and immediate-steering messages. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionQueuePendingItemsResult( + /** Pending queued items in submission order. Includes user messages, queued slash commands, and queued model changes; omits internal system items. */ + @JsonProperty("items") List items, + /** Display text for messages currently in the immediate steering queue (interjections sent during a running turn). */ + @JsonProperty("steeringMessages") List steeringMessages +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java new file mode 100644 index 000000000..26419bcea --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionQueueRemoveMostRecentParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java new file mode 100644 index 000000000..ecd428322 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether a user-facing pending item was removed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionQueueRemoveMostRecentResult( + /** True if a user-facing pending item was removed (LIFO across both queues); false when no removable items remained. */ + @JsonProperty("removed") Boolean removed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java new file mode 100644 index 000000000..3e4f2ce8c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java @@ -0,0 +1,72 @@ +/*--------------------------------------------------------------------------------------------- + * 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 remote} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionRemoteApi { + + 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 */ + SessionRemoteApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Optional remote session mode ("off", "export", or "on"); defaults to enabling both export and remote steering. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture enable(SessionRemoteEnableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.remote.enable", _p, SessionRemoteEnableResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture disable() { + return caller.invoke("session.remote.disable", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * New remote-steerability state to persist as a `session.remote_steerable_changed` event. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture notifySteerableChanged(SessionRemoteNotifySteerableChangedParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.remote.notifySteerableChanged", _p, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java new file mode 100644 index 000000000..a49197aa1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionRemoteDisableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java new file mode 100644 index 000000000..20c3db98a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 remote session mode ("off", "export", or "on"); defaults to enabling both export and remote steering. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionRemoteEnableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Per-session remote mode. "off" disables remote, "export" exports session events to GitHub without enabling remote steering, "on" enables both export and remote steering. */ + @JsonProperty("mode") RemoteSessionMode mode +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java new file mode 100644 index 000000000..5b282f91b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 URL for the session and a flag indicating whether remote steering is enabled. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionRemoteEnableResult( + /** GitHub frontend URL for this session */ + @JsonProperty("url") String url, + /** Whether remote steering is enabled */ + @JsonProperty("remoteSteerable") Boolean remoteSteerable +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java new file mode 100644 index 000000000..13df7f676 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * New remote-steerability state to persist as a `session.remote_steerable_changed` event. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionRemoteNotifySteerableChangedParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Whether the session now supports remote steering via GitHub. The runtime persists this as a `session.remote_steerable_changed` event so resume/replay sees the up-to-date capability. */ + @JsonProperty("remoteSteerable") Boolean remoteSteerable +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java new file mode 100644 index 000000000..4d48e604d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java new file mode 100644 index 000000000..ff66aeef3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java @@ -0,0 +1,200 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Typed client for session-scoped RPC methods. + *

+ * Provides strongly-typed access to all session-level API namespaces. + * The {@code sessionId} is injected automatically into every call. + *

+ * Obtain an instance by calling {@code new SessionRpc(caller, sessionId)}. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionRpc { + + private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; + + private final RpcCaller caller; + private final String sessionId; + + /** API methods for the {@code auth} namespace. */ + public final SessionAuthApi auth; + /** API methods for the {@code model} namespace. */ + public final SessionModelApi model; + /** API methods for the {@code mode} namespace. */ + public final SessionModeApi mode; + /** API methods for the {@code name} namespace. */ + public final SessionNameApi name; + /** API methods for the {@code plan} namespace. */ + public final SessionPlanApi plan; + /** API methods for the {@code workspaces} namespace. */ + public final SessionWorkspacesApi workspaces; + /** API methods for the {@code instructions} namespace. */ + public final SessionInstructionsApi instructions; + /** API methods for the {@code fleet} namespace. */ + public final SessionFleetApi fleet; + /** API methods for the {@code agent} namespace. */ + public final SessionAgentApi agent; + /** API methods for the {@code tasks} namespace. */ + public final SessionTasksApi tasks; + /** API methods for the {@code skills} namespace. */ + public final SessionSkillsApi skills; + /** API methods for the {@code mcp} namespace. */ + public final SessionMcpApi mcp; + /** API methods for the {@code plugins} namespace. */ + public final SessionPluginsApi plugins; + /** API methods for the {@code options} namespace. */ + public final SessionOptionsApi options; + /** API methods for the {@code lsp} namespace. */ + public final SessionLspApi lsp; + /** API methods for the {@code extensions} namespace. */ + public final SessionExtensionsApi extensions; + /** API methods for the {@code tools} namespace. */ + public final SessionToolsApi tools; + /** API methods for the {@code commands} namespace. */ + public final SessionCommandsApi commands; + /** API methods for the {@code telemetry} namespace. */ + public final SessionTelemetryApi telemetry; + /** API methods for the {@code ui} namespace. */ + public final SessionUiApi ui; + /** API methods for the {@code permissions} namespace. */ + public final SessionPermissionsApi permissions; + /** API methods for the {@code metadata} namespace. */ + public final SessionMetadataApi metadata; + /** API methods for the {@code shell} namespace. */ + public final SessionShellApi shell; + /** API methods for the {@code history} namespace. */ + public final SessionHistoryApi history; + /** API methods for the {@code queue} namespace. */ + public final SessionQueueApi queue; + /** API methods for the {@code eventLog} namespace. */ + public final SessionEventLogApi eventLog; + /** API methods for the {@code usage} namespace. */ + public final SessionUsageApi usage; + /** API methods for the {@code remote} namespace. */ + public final SessionRemoteApi remote; + /** API methods for the {@code schedule} namespace. */ + public final SessionScheduleApi schedule; + + /** + * Creates a new session RPC client. + * + * @param caller the RPC transport function (e.g., {@code jsonRpcClient::invoke}) + * @param sessionId the session ID to inject into every request + */ + public SessionRpc(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + this.auth = new SessionAuthApi(caller, sessionId); + this.model = new SessionModelApi(caller, sessionId); + this.mode = new SessionModeApi(caller, sessionId); + this.name = new SessionNameApi(caller, sessionId); + this.plan = new SessionPlanApi(caller, sessionId); + this.workspaces = new SessionWorkspacesApi(caller, sessionId); + this.instructions = new SessionInstructionsApi(caller, sessionId); + this.fleet = new SessionFleetApi(caller, sessionId); + this.agent = new SessionAgentApi(caller, sessionId); + this.tasks = new SessionTasksApi(caller, sessionId); + this.skills = new SessionSkillsApi(caller, sessionId); + this.mcp = new SessionMcpApi(caller, sessionId); + this.plugins = new SessionPluginsApi(caller, sessionId); + this.options = new SessionOptionsApi(caller, sessionId); + this.lsp = new SessionLspApi(caller, sessionId); + this.extensions = new SessionExtensionsApi(caller, sessionId); + this.tools = new SessionToolsApi(caller, sessionId); + this.commands = new SessionCommandsApi(caller, sessionId); + this.telemetry = new SessionTelemetryApi(caller, sessionId); + this.ui = new SessionUiApi(caller, sessionId); + this.permissions = new SessionPermissionsApi(caller, sessionId); + this.metadata = new SessionMetadataApi(caller, sessionId); + this.shell = new SessionShellApi(caller, sessionId); + this.history = new SessionHistoryApi(caller, sessionId); + this.queue = new SessionQueueApi(caller, sessionId); + this.eventLog = new SessionEventLogApi(caller, sessionId); + this.usage = new SessionUsageApi(caller, sessionId); + this.remote = new SessionRemoteApi(caller, sessionId); + this.schedule = new SessionScheduleApi(caller, sessionId); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture suspend() { + return caller.invoke("session.suspend", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * Parameters for sending a user message to the session + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture send(SessionSendParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.send", _p, SessionSendResult.class); + } + + /** + * Parameters for aborting the current turn + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture abort(SessionAbortParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.abort", _p, SessionAbortResult.class); + } + + /** + * Parameters for shutting down the session + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture shutdown(SessionShutdownParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.shutdown", _p, Void.class); + } + + /** + * Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture log(SessionLogParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.log", _p, SessionLogResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java new file mode 100644 index 000000000..e35fb2197 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java @@ -0,0 +1,57 @@ +/*--------------------------------------------------------------------------------------------- + * 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 schedule} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionScheduleApi { + + 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 */ + SessionScheduleApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.schedule.list", java.util.Map.of("sessionId", this.sessionId), SessionScheduleListResult.class); + } + + /** + * Identifier of the scheduled prompt to remove. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture stop(SessionScheduleStopParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.schedule.stop", _p, SessionScheduleStopResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java new file mode 100644 index 000000000..3dda01502 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionScheduleListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java new file mode 100644 index 000000000..6a5ec101c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Snapshot of the currently active recurring prompts for this session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionScheduleListResult( + /** Active scheduled prompts, ordered by id. */ + @JsonProperty("entries") List entries +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java new file mode 100644 index 000000000..321599991 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the scheduled prompt to remove. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionScheduleStopParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Id of the scheduled prompt to remove. */ + @JsonProperty("id") Long id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java new file mode 100644 index 000000000..b61b0bb9e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Remove a scheduled prompt by id. The result entry is omitted if the id was unknown. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionScheduleStopResult( + /** The removed entry, or omitted if no entry matched. */ + @JsonProperty("entry") ScheduleEntry entry +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java new file mode 100644 index 000000000..42177c82d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java @@ -0,0 +1,55 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Parameters for sending a user message to the session + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSendParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The user message text */ + @JsonProperty("prompt") String prompt, + /** If provided, this is shown in the timeline instead of `prompt` */ + @JsonProperty("displayPrompt") String displayPrompt, + /** Optional attachments (files, directories, selections, blobs, GitHub references) to include with the message */ + @JsonProperty("attachments") List attachments, + /** How to deliver the message. `enqueue` (default) appends to the message queue. `immediate` interjects during an in-progress turn. */ + @JsonProperty("mode") SendMode mode, + /** If true, adds the message to the front of the queue instead of the end */ + @JsonProperty("prepend") Boolean prepend, + /** If false, this message will not trigger a Premium Request Unit charge. User messages default to billable. */ + @JsonProperty("billable") Boolean billable, + /** If set, the request will fail if the named tool is not available when this message is among the user messages at the start of the current exchange */ + @JsonProperty("requiredTool") String requiredTool, + /** Optional provenance tag copied to the resulting user.message event. Supported values are `system`, `command-*`, and `schedule-*`. */ + @JsonProperty("source") Object source, + /** The UI mode the agent was in when this message was sent. Defaults to the session's current mode. */ + @JsonProperty("agentMode") SendAgentMode agentMode, + /** Custom HTTP headers to include in outbound model requests for this turn. Merged with session-level provider headers; per-turn headers augment and overwrite session-level headers with the same key. */ + @JsonProperty("requestHeaders") Map requestHeaders, + /** W3C Trace Context traceparent header for distributed tracing of this agent turn */ + @JsonProperty("traceparent") String traceparent, + /** W3C Trace Context tracestate header for distributed tracing */ + @JsonProperty("tracestate") String tracestate, + /** If true, await completion of the agentic loop for this message before returning. Defaults to false (fire-and-forget). When true, the result still contains the same `messageId`; the caller can rely on the agent having processed the message before the call resolves. */ + @JsonProperty("wait") Boolean wait_ +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java new file mode 100644 index 000000000..747435e18 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 of sending a user message + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSendResult( + /** Unique identifier assigned to the message */ + @JsonProperty("messageId") String messageId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java new file mode 100644 index 000000000..9abf8a626 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java @@ -0,0 +1,62 @@ +/*--------------------------------------------------------------------------------------------- + * 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 shell} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionShellApi { + + 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 */ + SessionShellApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Shell command to run, with optional working directory and timeout in milliseconds. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture exec(SessionShellExecParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.shell.exec", _p, SessionShellExecResult.class); + } + + /** + * Identifier of a process previously returned by "shell.exec" and the signal to send. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture kill(SessionShellKillParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.shell.kill", _p, SessionShellKillResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java new file mode 100644 index 000000000..817adc93c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Shell command to run, with optional working directory and timeout in milliseconds. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionShellExecParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Shell command to execute */ + @JsonProperty("command") String command, + /** Working directory (defaults to session working directory) */ + @JsonProperty("cwd") String cwd, + /** Timeout in milliseconds (default: 30000) */ + @JsonProperty("timeout") Long timeout +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java new file mode 100644 index 000000000..28a756535 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the spawned process, used to correlate streamed output and exit notifications. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionShellExecResult( + /** Unique identifier for tracking streamed output */ + @JsonProperty("processId") String processId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java new file mode 100644 index 000000000..1b26f1cb4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of a process previously returned by "shell.exec" and the signal to send. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionShellKillParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Process identifier returned by shell.exec */ + @JsonProperty("processId") String processId, + /** Signal to send (default: SIGTERM) */ + @JsonProperty("signal") ShellKillSignal signal +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java new file mode 100644 index 000000000..db3ff08cf --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the signal was delivered; false if the process was unknown or already exited. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionShellKillResult( + /** Whether the signal was sent successfully */ + @JsonProperty("killed") Boolean killed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java new file mode 100644 index 000000000..c17bef956 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Parameters for shutting down the session + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionShutdownParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Why the session is being shut down. Defaults to "routine" when omitted. */ + @JsonProperty("type") ShutdownType type, + /** Optional human-readable reason. Typically the message of the error that triggered shutdown when type is 'error'. */ + @JsonProperty("reason") String reason +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java new file mode 100644 index 000000000..0d6a2fec3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java @@ -0,0 +1,102 @@ +/*--------------------------------------------------------------------------------------------- + * 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 skills} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionSkillsApi { + + 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 */ + SessionSkillsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.skills.list", java.util.Map.of("sessionId", this.sessionId), SessionSkillsListResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getInvoked() { + return caller.invoke("session.skills.getInvoked", java.util.Map.of("sessionId", this.sessionId), SessionSkillsGetInvokedResult.class); + } + + /** + * Name of the skill to enable for the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture enable(SessionSkillsEnableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.skills.enable", _p, Void.class); + } + + /** + * Name of the skill to disable for the session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture disable(SessionSkillsDisableParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.skills.disable", _p, Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture reload() { + return caller.invoke("session.skills.reload", java.util.Map.of("sessionId", this.sessionId), SessionSkillsReloadResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture ensureLoaded() { + return caller.invoke("session.skills.ensureLoaded", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java new file mode 100644 index 000000000..ba1df8ea2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Name of the skill to disable for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsDisableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the skill to disable */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java new file mode 100644 index 000000000..6e6a7fd62 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Name of the skill to enable for the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsEnableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Name of the skill to enable */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java new file mode 100644 index 000000000..1d5a7f102 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsEnsureLoadedParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java new file mode 100644 index 000000000..c17c00d07 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsGetInvokedParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java new file mode 100644 index 000000000..ed62e0fc7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Skills invoked during this session, ordered by invocation time (most recent last). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsGetInvokedResult( + /** Skills invoked during this session, ordered by invocation time (most recent last) */ + @JsonProperty("skills") List skills +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java new file mode 100644 index 000000000..1d45d8fa9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java new file mode 100644 index 000000000..ded58a52f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Skills available to the session, with their enabled state. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsListResult( + /** Available skills */ + @JsonProperty("skills") List skills +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java new file mode 100644 index 000000000..3d580001c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsReloadParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java new file mode 100644 index 000000000..38c426e5b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Diagnostics from reloading skill definitions, with warnings and errors as separate lists. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSkillsReloadResult( + /** Warnings emitted while loading skills (e.g. skills that loaded but had issues) */ + @JsonProperty("warnings") List warnings, + /** Errors emitted while loading skills (e.g. skills that failed to load entirely) */ + @JsonProperty("errors") List errors +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java new file mode 100644 index 000000000..4ca1c33ab --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionSuspendParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java new file mode 100644 index 000000000..f203c536c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java @@ -0,0 +1,172 @@ +/*--------------------------------------------------------------------------------------------- + * 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 tasks} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionTasksApi { + + 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 */ + SessionTasksApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Agent type, prompt, name, and optional description and model override for the new task. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture startAgent(SessionTasksStartAgentParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tasks.startAgent", _p, SessionTasksStartAgentResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture list() { + return caller.invoke("session.tasks.list", java.util.Map.of("sessionId", this.sessionId), SessionTasksListResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture refresh() { + return caller.invoke("session.tasks.refresh", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture waitForPending() { + return caller.invoke("session.tasks.waitForPending", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + + /** + * Identifier of the background task to fetch progress for. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getProgress(SessionTasksGetProgressParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tasks.getProgress", _p, SessionTasksGetProgressResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getCurrentPromotable() { + return caller.invoke("session.tasks.getCurrentPromotable", java.util.Map.of("sessionId", this.sessionId), SessionTasksGetCurrentPromotableResult.class); + } + + /** + * Identifier of the task to promote to background mode. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture promoteToBackground(SessionTasksPromoteToBackgroundParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tasks.promoteToBackground", _p, SessionTasksPromoteToBackgroundResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture promoteCurrentToBackground() { + return caller.invoke("session.tasks.promoteCurrentToBackground", java.util.Map.of("sessionId", this.sessionId), SessionTasksPromoteCurrentToBackgroundResult.class); + } + + /** + * Identifier of the background task to cancel. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture cancel(SessionTasksCancelParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tasks.cancel", _p, SessionTasksCancelResult.class); + } + + /** + * Identifier of the completed or cancelled task to remove from tracking. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture remove(SessionTasksRemoveParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tasks.remove", _p, SessionTasksRemoveResult.class); + } + + /** + * Identifier of the target agent task, message content, and optional sender agent ID. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture sendMessage(SessionTasksSendMessageParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tasks.sendMessage", _p, SessionTasksSendMessageResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java new file mode 100644 index 000000000..56fab2d64 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the background task to cancel. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksCancelParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Task identifier */ + @JsonProperty("id") String id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java new file mode 100644 index 000000000..ffb17a6f0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the background task was successfully cancelled. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksCancelResult( + /** Whether the task was successfully cancelled */ + @JsonProperty("cancelled") Boolean cancelled +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java new file mode 100644 index 000000000..25a78bbc7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksGetCurrentPromotableParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java new file mode 100644 index 000000000..4ca2200ec --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The first sync-waiting task that can currently be promoted to background mode. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksGetCurrentPromotableResult( + /** The first sync-waiting task (agent first, then shell) that can currently be promoted to background mode. Omitted if no such task exists. The returned task is guaranteed to have executionMode='sync' and canPromoteToBackground=true at the time of the call. */ + @JsonProperty("task") Object task +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java new file mode 100644 index 000000000..0081430c5 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the background task to fetch progress for. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksGetProgressParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Task identifier (agent ID or shell ID) */ + @JsonProperty("id") String id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java new file mode 100644 index 000000000..6f24e4bc9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Progress information for the task, or null when no task with that ID is tracked. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksGetProgressResult( + /** Progress information for the task, discriminated by type. Returns null when no task with this ID is currently tracked. */ + @JsonProperty("progress") Object progress +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java new file mode 100644 index 000000000..d645ee348 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksListParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java new file mode 100644 index 000000000..ec52af751 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Background tasks currently tracked by the session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksListResult( + /** Currently tracked tasks */ + @JsonProperty("tasks") List tasks +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java new file mode 100644 index 000000000..b7ec7e39e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksPromoteCurrentToBackgroundParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java new file mode 100644 index 000000000..702aa1c4e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The promoted task as it now exists in background mode, omitted if no promotable task was waiting. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksPromoteCurrentToBackgroundResult( + /** The promoted task as it now exists in background mode, omitted if no promotable task was waiting. Atomic operation: avoids the race window of getCurrentPromotable + promoteToBackground. */ + @JsonProperty("task") Object task +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java new file mode 100644 index 000000000..f75e97f39 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the task to promote to background mode. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksPromoteToBackgroundParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Task identifier */ + @JsonProperty("id") String id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java new file mode 100644 index 000000000..5ed332b17 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the task was successfully promoted to background mode. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksPromoteToBackgroundResult( + /** Whether the task was successfully promoted to background mode */ + @JsonProperty("promoted") Boolean promoted +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java new file mode 100644 index 000000000..da6e164df --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksRefreshParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java new file mode 100644 index 000000000..497d41233 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java new file mode 100644 index 000000000..66a730590 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the completed or cancelled task to remove from tracking. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksRemoveParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Task identifier */ + @JsonProperty("id") String id +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java new file mode 100644 index 000000000..0d4173cac --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the task was removed. False when the task does not exist or is still running/idle. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksRemoveResult( + /** Whether the task was removed. Returns false if the task does not exist or is still running/idle (cancel it first). */ + @JsonProperty("removed") Boolean removed +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java new file mode 100644 index 000000000..841ad104a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier of the target agent task, message content, and optional sender agent ID. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksSendMessageParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Agent task identifier */ + @JsonProperty("id") String id, + /** Message content to send to the agent */ + @JsonProperty("message") String message, + /** Agent ID of the sender, if sent on behalf of another agent */ + @JsonProperty("fromAgentId") String fromAgentId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java new file mode 100644 index 000000000..dee710d95 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the message was delivered, with an error message when delivery failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksSendMessageResult( + /** Whether the message was successfully delivered or steered */ + @JsonProperty("sent") Boolean sent, + /** Error message if delivery failed */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java new file mode 100644 index 000000000..f146e6e91 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Agent type, prompt, name, and optional description and model override for the new task. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksStartAgentParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Type of agent to start (e.g., 'explore', 'task', 'general-purpose') */ + @JsonProperty("agentType") String agentType, + /** Task prompt for the agent */ + @JsonProperty("prompt") String prompt, + /** Short name for the agent, used to generate a human-readable ID */ + @JsonProperty("name") String name, + /** Short description of the task */ + @JsonProperty("description") String description, + /** Optional model override */ + @JsonProperty("model") String model +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java new file mode 100644 index 000000000..24cd051ce --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier assigned to the newly started background agent task. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksStartAgentResult( + /** Generated agent ID for the background task */ + @JsonProperty("agentId") String agentId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java new file mode 100644 index 000000000..916c9f424 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTasksWaitForPendingParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java new file mode 100644 index 000000000..b8ec86d12 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java new file mode 100644 index 000000000..92c24b4e8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------------------------- + * 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 telemetry} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionTelemetryApi { + + 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 */ + SessionTelemetryApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Feature override key/value pairs to attach to subsequent telemetry events from this session. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture setFeatureOverrides(SessionTelemetrySetFeatureOverridesParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.telemetry.setFeatureOverrides", _p, Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java new file mode 100644 index 000000000..d0f364e23 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Feature override key/value pairs to attach to subsequent telemetry events from this session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionTelemetrySetFeatureOverridesParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Override key/value pairs to attach to subsequent telemetry events from this session. Replaces any previously-set overrides. */ + @JsonProperty("features") Map features +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java new file mode 100644 index 000000000..81c04f2ca --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java @@ -0,0 +1,57 @@ +/*--------------------------------------------------------------------------------------------- + * 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 tools} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionToolsApi { + + 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 */ + SessionToolsApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Pending external tool call request ID, with the tool result or an error describing why it failed. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingToolCall(SessionToolsHandlePendingToolCallParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.tools.handlePendingToolCall", _p, SessionToolsHandlePendingToolCallResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture initializeAndValidate() { + return caller.invoke("session.tools.initializeAndValidate", java.util.Map.of("sessionId", this.sessionId), Void.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java new file mode 100644 index 000000000..a5bfa4cca --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Pending external tool call request ID, with the tool result or an error describing why it failed. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionToolsHandlePendingToolCallParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Request ID of the pending tool call */ + @JsonProperty("requestId") String requestId, + /** Tool call result (string or expanded result object) */ + @JsonProperty("result") Object result, + /** Error message if the tool call failed */ + @JsonProperty("error") String error +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java new file mode 100644 index 000000000..fefaa652e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the external tool call result was handled successfully. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionToolsHandlePendingToolCallResult( + /** Whether the tool call result was handled successfully */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java new file mode 100644 index 000000000..f605cb817 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionToolsInitializeAndValidateParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java new file mode 100644 index 000000000..b4126b390 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java new file mode 100644 index 000000000..c3116fe58 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java @@ -0,0 +1,147 @@ +/*--------------------------------------------------------------------------------------------- + * 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 ui} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionUiApi { + + 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 */ + SessionUiApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Prompt message and JSON schema describing the form fields to elicit from the user. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture elicitation(SessionUiElicitationParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.elicitation", _p, SessionUiElicitationResult.class); + } + + /** + * Pending elicitation request ID and the user's response (accept/decline/cancel + form values). + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingElicitation(SessionUiHandlePendingElicitationParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.handlePendingElicitation", _p, SessionUiHandlePendingElicitationResult.class); + } + + /** + * Request ID of a pending `user_input.requested` event and the user's response. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingUserInput(SessionUiHandlePendingUserInputParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.handlePendingUserInput", _p, SessionUiHandlePendingUserInputResult.class); + } + + /** + * Request ID of a pending `sampling.requested` event and an optional sampling result payload (omit to reject). + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingSampling(SessionUiHandlePendingSamplingParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.handlePendingSampling", _p, SessionUiHandlePendingSamplingResult.class); + } + + /** + * Request ID of a pending `auto_mode_switch.requested` event and the user's response. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingAutoModeSwitch(SessionUiHandlePendingAutoModeSwitchParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.handlePendingAutoModeSwitch", _p, SessionUiHandlePendingAutoModeSwitchResult.class); + } + + /** + * Request ID of a pending `exit_plan_mode.requested` event and the user's response. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture handlePendingExitPlanMode(SessionUiHandlePendingExitPlanModeParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.handlePendingExitPlanMode", _p, SessionUiHandlePendingExitPlanModeResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture registerDirectAutoModeSwitchHandler() { + return caller.invoke("session.ui.registerDirectAutoModeSwitchHandler", java.util.Map.of("sessionId", this.sessionId), SessionUiRegisterDirectAutoModeSwitchHandlerResult.class); + } + + /** + * Opaque handle previously returned by `registerDirectAutoModeSwitchHandler` to release. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture unregisterDirectAutoModeSwitchHandler(SessionUiUnregisterDirectAutoModeSwitchHandlerParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.ui.unregisterDirectAutoModeSwitchHandler", _p, SessionUiUnregisterDirectAutoModeSwitchHandlerResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java new file mode 100644 index 000000000..d68416704 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Prompt message and JSON schema describing the form fields to elicit from the user. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiElicitationParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Message describing what information is needed from the user */ + @JsonProperty("message") String message, + /** JSON Schema describing the form fields to present to the user */ + @JsonProperty("requestedSchema") UIElicitationSchema requestedSchema +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java new file mode 100644 index 000000000..d08d7453e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * The elicitation response (accept with form values, decline, or cancel) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiElicitationResult( + /** The user's response: accept (submitted), decline (rejected), or cancel (dismissed) */ + @JsonProperty("action") UIElicitationResponseAction action, + /** The form values submitted by the user (present when action is 'accept') */ + @JsonProperty("content") Map content +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java new file mode 100644 index 000000000..1afe7d5e7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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 ID of a pending `auto_mode_switch.requested` event and the user's response. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingAutoModeSwitchParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The unique request ID from the auto_mode_switch.requested event */ + @JsonProperty("requestId") String requestId, + /** User's choice for auto-mode switching: yes (allow this turn), yes_always (allow + persist as setting), or no (decline). */ + @JsonProperty("response") UIAutoModeSwitchResponse response +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java new file mode 100644 index 000000000..335f5d894 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the pending UI request was resolved by this call. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingAutoModeSwitchResult( + /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java new file mode 100644 index 000000000..73d97220f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Pending elicitation request ID and the user's response (accept/decline/cancel + form values). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingElicitationParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The unique request ID from the elicitation.requested event */ + @JsonProperty("requestId") String requestId, + /** The elicitation response (accept with form values, decline, or cancel) */ + @JsonProperty("result") UIElicitationResponse result +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java new file mode 100644 index 000000000..bb2c91b6e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the elicitation response was accepted; false if it was already resolved by another client. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingElicitationResult( + /** Whether the response was accepted. False if the request was already resolved by another client. */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java new file mode 100644 index 000000000..87c492bdb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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 ID of a pending `exit_plan_mode.requested` event and the user's response. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingExitPlanModeParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The unique request ID from the exit_plan_mode.requested event */ + @JsonProperty("requestId") String requestId, + /** Schema for the `UIExitPlanModeResponse` type. */ + @JsonProperty("response") UIExitPlanModeResponse response +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java new file mode 100644 index 000000000..69fc6586d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the pending UI request was resolved by this call. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingExitPlanModeResult( + /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java new file mode 100644 index 000000000..8ce2ad2e1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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 ID of a pending `sampling.requested` event and an optional sampling result payload (omit to reject). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingSamplingParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The unique request ID from the sampling.requested event */ + @JsonProperty("requestId") String requestId, + /** Optional sampling result payload. Omit to reject/cancel the sampling request without providing a result. */ + @JsonProperty("response") UIHandlePendingSamplingResponse response +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java new file mode 100644 index 000000000..ced26ad66 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the pending UI request was resolved by this call. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingSamplingResult( + /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java new file mode 100644 index 000000000..89034cbd2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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 ID of a pending `user_input.requested` event and the user's response. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingUserInputParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** The unique request ID from the user_input.requested event */ + @JsonProperty("requestId") String requestId, + /** Schema for the `UIUserInputResponse` type. */ + @JsonProperty("response") UIUserInputResponse response +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java new file mode 100644 index 000000000..ae6369ee0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the pending UI request was resolved by this call. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiHandlePendingUserInputResult( + /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ + @JsonProperty("success") Boolean success +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java new file mode 100644 index 000000000..f778d3164 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiRegisterDirectAutoModeSwitchHandlerParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java new file mode 100644 index 000000000..991954a26 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Register an in-process handler for `auto_mode_switch.requested` events. The caller still attaches the actual listener via the standard event-subscription mechanism; this registration solely tells the server bridge to skip its own dispatch (so a remote client doesn't race the in-process handler for the same requestId). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiRegisterDirectAutoModeSwitchHandlerResult( + /** Opaque handle representing the registration. Pass this same handle to `unregisterDirectAutoModeSwitchHandler` when the in-process handler is no longer active. Multiple registrations are reference-counted; the server bridge will only dispatch auto-mode-switch requests when no handles are active. */ + @JsonProperty("handle") String handle +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java new file mode 100644 index 000000000..beab56aa2 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Opaque handle previously returned by `registerDirectAutoModeSwitchHandler` to release. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiUnregisterDirectAutoModeSwitchHandlerParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Handle previously returned by `registerDirectAutoModeSwitchHandler` */ + @JsonProperty("handle") String handle +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java new file mode 100644 index 000000000..0836c5c16 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Indicates whether the handle was active and the registration count was decremented. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUiUnregisterDirectAutoModeSwitchHandlerResult( + /** True if the handle was active and decremented the counter; false if the handle was unknown. */ + @JsonProperty("unregistered") Boolean unregistered +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java new file mode 100644 index 000000000..b9a5a14a8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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 usage} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionUsageApi { + + private final RpcCaller caller; + private final String sessionId; + + /** @param caller the RPC transport function */ + SessionUsageApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getMetrics() { + return caller.invoke("session.usage.getMetrics", java.util.Map.of("sessionId", this.sessionId), SessionUsageGetMetricsResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java new file mode 100644 index 000000000..035bf6498 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUsageGetMetricsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java new file mode 100644 index 000000000..e51b9453f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java @@ -0,0 +1,49 @@ +/*--------------------------------------------------------------------------------------------- + * 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 java.util.Map; +import javax.annotation.processing.Generated; + +/** + * Accumulated session usage metrics, including premium request cost, token counts, model breakdown, and code-change totals. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionUsageGetMetricsResult( + /** Total user-initiated premium request cost across all models (may be fractional due to multipliers) */ + @JsonProperty("totalPremiumRequestCost") Double totalPremiumRequestCost, + /** Raw count of user-initiated API requests */ + @JsonProperty("totalUserRequests") Long totalUserRequests, + /** Session-wide accumulated nano-AI units cost */ + @JsonProperty("totalNanoAiu") Double totalNanoAiu, + /** Session-wide per-token-type accumulated token counts */ + @JsonProperty("tokenDetails") Map tokenDetails, + /** Total time spent in model API calls (milliseconds) */ + @JsonProperty("totalApiDurationMs") Long totalApiDurationMs, + /** ISO 8601 timestamp when the session started */ + @JsonProperty("sessionStartTime") OffsetDateTime sessionStartTime, + /** Aggregated code change metrics */ + @JsonProperty("codeChanges") UsageMetricsCodeChanges codeChanges, + /** Per-model token and request metrics, keyed by model identifier */ + @JsonProperty("modelMetrics") Map modelMetrics, + /** Currently active model identifier */ + @JsonProperty("currentModel") String currentModel, + /** Input tokens from the most recent main-agent API call */ + @JsonProperty("lastCallInputTokens") Long lastCallInputTokens, + /** Output tokens from the most recent main-agent API call */ + @JsonProperty("lastCallOutputTokens") Long lastCallOutputTokens +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java new file mode 100644 index 000000000..b16ef01e8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java @@ -0,0 +1,41 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Updated working directory and git context. Emitted as the new payload of `session.context_changed`. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkingDirectoryContext( + /** Current working directory path */ + @JsonProperty("cwd") String cwd, + /** Root directory of the git repository, resolved via git rev-parse */ + @JsonProperty("gitRoot") String gitRoot, + /** Repository identifier derived from the git remote URL ("owner/name" for GitHub, "org/project/repo" for Azure DevOps) */ + @JsonProperty("repository") String repository, + /** Hosting platform type of the repository */ + @JsonProperty("hostType") SessionWorkingDirectoryContextHostType hostType, + /** Raw host string from the git remote URL (e.g. "github.com", "dev.azure.com") */ + @JsonProperty("repositoryHost") String repositoryHost, + /** Current git branch name */ + @JsonProperty("branch") String branch, + /** Head commit of the current git branch */ + @JsonProperty("headCommit") String headCommit, + /** Merge-base commit SHA (fork point from the remote default branch) */ + @JsonProperty("baseCommit") String baseCommit +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java new file mode 100644 index 000000000..1ed7e60d0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Hosting platform type of the repository + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SessionWorkingDirectoryContextHostType { + /** The {@code github} variant. */ + GITHUB("github"), + /** The {@code ado} variant. */ + ADO("ado"); + + private final String value; + SessionWorkingDirectoryContextHostType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SessionWorkingDirectoryContextHostType fromValue(String value) { + for (SessionWorkingDirectoryContextHostType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SessionWorkingDirectoryContextHostType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java new file mode 100644 index 000000000..df0e690a8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java @@ -0,0 +1,122 @@ +/*--------------------------------------------------------------------------------------------- + * 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 workspaces} namespace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionWorkspacesApi { + + 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 */ + SessionWorkspacesApi(RpcCaller caller, String sessionId) { + this.caller = caller; + this.sessionId = sessionId; + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture getWorkspace() { + return caller.invoke("session.workspaces.getWorkspace", java.util.Map.of("sessionId", this.sessionId), SessionWorkspacesGetWorkspaceResult.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture listFiles() { + return caller.invoke("session.workspaces.listFiles", java.util.Map.of("sessionId", this.sessionId), SessionWorkspacesListFilesResult.class); + } + + /** + * Relative path of the workspace file to read. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture readFile(SessionWorkspacesReadFileParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.workspaces.readFile", _p, SessionWorkspacesReadFileResult.class); + } + + /** + * Relative path and UTF-8 content for the workspace file to create or overwrite. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture createFile(SessionWorkspacesCreateFileParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.workspaces.createFile", _p, Void.class); + } + + /** + * Identifies the target session. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture listCheckpoints() { + return caller.invoke("session.workspaces.listCheckpoints", java.util.Map.of("sessionId", this.sessionId), SessionWorkspacesListCheckpointsResult.class); + } + + /** + * Checkpoint number to read. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture readCheckpoint(SessionWorkspacesReadCheckpointParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.workspaces.readCheckpoint", _p, SessionWorkspacesReadCheckpointResult.class); + } + + /** + * Pasted content to save as a UTF-8 file in the session workspace. + *

+ * Note: the {@code sessionId} field in the params record is overridden + * by the session-scoped wrapper; any value provided is ignored. + * + * @apiNote This method is experimental and may change in a future version. + * @since 1.0.0 + */ + public CompletableFuture saveLargePaste(SessionWorkspacesSaveLargePasteParams params) { + com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); + _p.put("sessionId", this.sessionId); + return caller.invoke("session.workspaces.saveLargePaste", _p, SessionWorkspacesSaveLargePasteResult.class); + } + +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java new file mode 100644 index 000000000..3d757f852 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Relative path and UTF-8 content for the workspace file to create or overwrite. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesCreateFileParams( + /** 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java new file mode 100644 index 000000000..6a7482af7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesGetWorkspaceParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java new file mode 100644 index 000000000..6beb5d453 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java @@ -0,0 +1,53 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Current workspace metadata for the session, including its absolute filesystem path when available. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesGetWorkspaceResult( + /** Current workspace metadata, or null if not available */ + @JsonProperty("workspace") SessionWorkspacesGetWorkspaceResultWorkspace workspace, + /** Absolute filesystem path to the workspace directory. Omitted when the session has no workspace (e.g. remote sessions). */ + @JsonProperty("path") String path +) { + + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionWorkspacesGetWorkspaceResultWorkspace( + @JsonProperty("id") String id, + @JsonProperty("cwd") String cwd, + @JsonProperty("git_root") String gitRoot, + @JsonProperty("repository") String repository, + /** Allowed values for the `WorkspacesWorkspaceDetailsHostType` enumeration. */ + @JsonProperty("host_type") WorkspacesWorkspaceDetailsHostType hostType, + @JsonProperty("branch") String branch, + @JsonProperty("name") String name, + @JsonProperty("user_named") Boolean userNamed, + @JsonProperty("summary_count") Long summaryCount, + @JsonProperty("created_at") OffsetDateTime createdAt, + @JsonProperty("updated_at") OffsetDateTime updatedAt, + @JsonProperty("remote_steerable") Boolean remoteSteerable, + @JsonProperty("mc_task_id") String mcTaskId, + @JsonProperty("mc_session_id") String mcSessionId, + @JsonProperty("mc_last_event_id") String mcLastEventId, + @JsonProperty("chronicle_sync_dismissed") Boolean chronicleSyncDismissed + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java new file mode 100644 index 000000000..3d55cf43a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesListCheckpointsParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java new file mode 100644 index 000000000..b6f562c66 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Workspace checkpoints in chronological order; empty when the workspace is not enabled. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesListCheckpointsResult( + /** Workspace checkpoints in chronological order. Empty when workspace is not enabled. */ + @JsonProperty("checkpoints") List checkpoints +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java new file mode 100644 index 000000000..7fd4771a1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifies the target session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesListFilesParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java new file mode 100644 index 000000000..90a7cf2ce --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Relative paths of files stored in the session workspace files directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesListFilesResult( + /** Relative file paths in the workspace files directory */ + @JsonProperty("files") List files +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java new file mode 100644 index 000000000..8266acab4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Checkpoint number to read. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesReadCheckpointParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Checkpoint number to read */ + @JsonProperty("number") Long number +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java new file mode 100644 index 000000000..1b4322994 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Checkpoint content as a UTF-8 string, or null when the checkpoint or workspace is missing. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesReadCheckpointResult( + /** Checkpoint content as a UTF-8 string, or null when the checkpoint or workspace is missing */ + @JsonProperty("content") String content +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java new file mode 100644 index 000000000..85f44b608 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Relative path of the workspace file to read. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesReadFileParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Relative path within the workspace files directory */ + @JsonProperty("path") String path +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java new file mode 100644 index 000000000..b85ce3f6e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Contents of the requested workspace file as a UTF-8 string. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesReadFileResult( + /** File content as a UTF-8 string */ + @JsonProperty("content") String content +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java new file mode 100644 index 000000000..23def325c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Pasted content to save as a UTF-8 file in the session workspace. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesSaveLargePasteParams( + /** Target session identifier */ + @JsonProperty("sessionId") String sessionId, + /** Pasted content to save as a UTF-8 file */ + @JsonProperty("content") String content +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java new file mode 100644 index 000000000..523b12488 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Descriptor for the saved paste file, or null when the workspace is unavailable. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionWorkspacesSaveLargePasteResult( + /** Saved-paste descriptor, or null when the workspace is unavailable (e.g. CCA runtime, non-infinite sessions, remote sessions) */ + @JsonProperty("saved") SessionWorkspacesSaveLargePasteResultSaved saved +) { + + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionWorkspacesSaveLargePasteResultSaved( + /** Absolute filesystem path to the saved paste file */ + @JsonProperty("filePath") String filePath, + /** Filename within the workspace files directory */ + @JsonProperty("filename") String filename, + /** Size of the saved file in bytes */ + @JsonProperty("sizeBytes") Long sizeBytes + ) { + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java new file mode 100644 index 000000000..e1aa50697 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session IDs to close, deactivate, and delete from disk. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsBulkDeleteParams( + /** Session IDs to close, deactivate, and delete from disk */ + @JsonProperty("sessionIds") List sessionIds +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java new file mode 100644 index 000000000..2447d409d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Map of sessionId -> bytes freed by removing the session's workspace directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsBulkDeleteResult( + /** Map of sessionId -> bytes freed by removing the session's workspace directory. Sessions whose deletion failed are omitted from this map (failures are logged on the server but not surfaced per-id; check the map for absent IDs to detect them). */ + @JsonProperty("freedBytes") Map freedBytes +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java new file mode 100644 index 000000000..4be30632d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session IDs to test for live in-use locks. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsCheckInUseParams( + /** Session IDs to test for live in-use locks */ + @JsonProperty("sessionIds") List sessionIds +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java new file mode 100644 index 000000000..1ab7edab7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session IDs from the input set that are currently in use by another process. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsCheckInUseResult( + /** Session IDs from the input set that are currently held by another running process via an alive lock file */ + @JsonProperty("inUse") List inUse +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java new file mode 100644 index 000000000..667e18a4c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session ID to close. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsCloseParams( + /** Session ID to close */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java new file mode 100644 index 000000000..a63c44633 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java new file mode 100644 index 000000000..5d0dfffeb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Remote session connection parameters. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsConnectParams( + /** Session ID to connect to. */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java new file mode 100644 index 000000000..42c5d7e2e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Remote session connection result. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsConnectResult( + /** SDK session ID for the connected remote session. */ + @JsonProperty("sessionId") String sessionId, + /** Metadata for a connected remote session. */ + @JsonProperty("metadata") ConnectedRemoteSessionMetadata metadata +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java new file mode 100644 index 000000000..973c952e9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session metadata records to enrich with summary and context information. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsEnrichMetadataParams( + /** Session metadata records to enrich. Records that already have summary and context are returned unchanged. */ + @JsonProperty("sessions") List sessions +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java new file mode 100644 index 000000000..864eed23d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The same metadata records, with summary and context fields backfilled where available. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsEnrichMetadataResult( + /** Same records, with summary and context backfilled */ + @JsonProperty("sessions") List sessions +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java new file mode 100644 index 000000000..285876be0 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * UUID prefix to resolve to a unique session ID. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsFindByPrefixParams( + /** UUID prefix (>=7 hex chars, <36 chars). Returns the unique session ID, or undefined when there is no match or the prefix matches multiple sessions. */ + @JsonProperty("prefix") String prefix +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java new file mode 100644 index 000000000..27ceb2950 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session ID matching the prefix, omitted when no unique match exists. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsFindByPrefixResult( + /** Omitted when no unique session matches the prefix (no match or ambiguous) */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java new file mode 100644 index 000000000..cd643796c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 task ID to look up. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsFindByTaskIdParams( + /** GitHub task ID to look up */ + @JsonProperty("taskId") String taskId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java new file mode 100644 index 000000000..d27634058 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * ID of the local session bound to the given GitHub task, or omitted when none. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsFindByTaskIdResult( + /** Omitted when no local session is bound to that GitHub task */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java new file mode 100644 index 000000000..33bfb3a81 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsForkParams( + /** Source session ID to fork from */ + @JsonProperty("sessionId") String sessionId, + /** Optional event ID boundary. When provided, the fork includes only events before this ID (exclusive). When omitted, all events are included. */ + @JsonProperty("toEventId") String toEventId, + /** Optional friendly name to assign to the forked session. */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java new file mode 100644 index 000000000..5e67f101e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Identifier and optional friendly name assigned to the newly forked session. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsForkResult( + /** The new forked session's ID */ + @JsonProperty("sessionId") String sessionId, + /** Friendly name assigned to the forked session, if any. */ + @JsonProperty("name") String name +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java new file mode 100644 index 000000000..a0d19b5a4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session ID whose event-log file path to compute. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetEventFilePathParams( + /** Session ID whose event-log file path to compute */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java new file mode 100644 index 000000000..9d77f105f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Absolute path to the session's events.jsonl file on disk. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetEventFilePathResult( + /** Absolute path to the session's events.jsonl file */ + @JsonProperty("filePath") String filePath +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java new file mode 100644 index 000000000..43a23a89b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 working-directory context used to score session relevance. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetLastForContextParams( + /** Optional working-directory context used to score session relevance. When omitted the most-recently-modified session wins. */ + @JsonProperty("context") SessionContext context +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java new file mode 100644 index 000000000..018b96f71 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Most-relevant session ID for the supplied context, or omitted when no sessions exist. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetLastForContextResult( + /** Most-relevant session ID for the supplied context, or omitted when no sessions exist */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java new file mode 100644 index 000000000..21f26bfcd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session ID to look up the persisted remote-steerable flag for. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetPersistedRemoteSteerableParams( + /** Session ID to look up the persisted remote-steerable flag for */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java new file mode 100644 index 000000000..9dedef981 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The session's persisted remote-steerable flag, or omitted when no value has been persisted. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetPersistedRemoteSteerableResult( + /** The session's persisted remote-steerable flag if recorded; omitted when no value has been persisted */ + @JsonProperty("remoteSteerable") Boolean remoteSteerable +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java new file mode 100644 index 000000000..958f6e242 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Map of sessionId -> on-disk size in bytes for each session's workspace directory. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsGetSizesResult( + /** Map of sessionId -> on-disk size in bytes for the session's workspace directory */ + @JsonProperty("sizes") Map sizes +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java new file mode 100644 index 000000000..7608fe3f3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Persisted sessions matching the filter, ordered most-recently-modified first. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsListResult( + /** Sessions ordered most-recently-modified first */ + @JsonProperty("sessions") List sessions +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java new file mode 100644 index 000000000..347b7c7e7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Active session ID whose deferred repo-level hooks should be loaded. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsLoadDeferredRepoHooksParams( + /** Active session ID whose deferred repo-level hooks should be loaded */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java new file mode 100644 index 000000000..194ce088d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Queued repo-level startup prompts and the total hook command count after loading. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsLoadDeferredRepoHooksResult( + /** Repo-level startup prompts queued from repo hook configs. Empty on resume, when no repo configs were pending, or when disableAllHooks is set. */ + @JsonProperty("startupPrompts") List startupPrompts, + /** Total hook command count (user + plugin + repo) loaded for the session by this call. Captured atomically with startupPrompts so callers don't need to read a separate counter. */ + @JsonProperty("hookCount") Long hookCount +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java new file mode 100644 index 000000000..d85438730 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsPruneOldParams( + /** Delete sessions whose modifiedTime is at least this many days old */ + @JsonProperty("olderThanDays") Long olderThanDays, + /** When true, only report what would be deleted without performing any deletion */ + @JsonProperty("dryRun") Boolean dryRun, + /** When true, named sessions (set via /rename) are also eligible for pruning */ + @JsonProperty("includeNamed") Boolean includeNamed, + /** Session IDs that should never be considered for pruning */ + @JsonProperty("excludeSessionIds") List excludeSessionIds +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java new file mode 100644 index 000000000..c04389b0c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsPruneOldResult( + /** Session IDs that were deleted (always empty in dry-run mode) */ + @JsonProperty("deleted") List deleted, + /** Session IDs that would be deleted in dry-run mode (always empty otherwise) */ + @JsonProperty("candidates") List candidates, + /** Session IDs that were skipped (e.g., named sessions) */ + @JsonProperty("skipped") List skipped, + /** Total bytes freed (actual when not dry-run, projected when dry-run) */ + @JsonProperty("freedBytes") Long freedBytes, + /** True when no deletions were actually performed */ + @JsonProperty("dryRun") Boolean dryRun +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java new file mode 100644 index 000000000..76add5bcb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session ID whose in-use lock should be released. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsReleaseLockParams( + /** Session ID whose in-use lock should be released */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java new file mode 100644 index 000000000..dde0c445e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java new file mode 100644 index 000000000..82978334f --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Active session ID and an optional flag for deferring repo-level hooks until folder trust. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsReloadPluginHooksParams( + /** Active session ID to reload hooks for */ + @JsonProperty("sessionId") String sessionId, + /** When true, skip repo-level hooks. Use before folder trust is confirmed; loadDeferredRepoHooks loads them post-trust. */ + @JsonProperty("deferRepoHooks") Boolean deferRepoHooks +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java new file mode 100644 index 000000000..835641e4d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java new file mode 100644 index 000000000..27f49addd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Session ID whose pending events should be flushed to disk. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsSaveParams( + /** Session ID whose pending events should be flushed to disk */ + @JsonProperty("sessionId") String sessionId +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java new file mode 100644 index 000000000..758d11885 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java new file mode 100644 index 000000000..d03706e3a --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Manager-wide additional plugins to register; replaces any previously-configured set. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SessionsSetAdditionalPluginsParams( + /** Manager-wide additional plugins to register. Replaces any previously-configured set. Pass an empty array to clear. */ + @JsonProperty("plugins") List plugins +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java new file mode 100644 index 000000000..848ff9e08 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java new file mode 100644 index 000000000..646fa2be8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Signal to send (default: SIGTERM) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ShellKillSignal { + /** The {@code SIGTERM} variant. */ + SIGTERM("SIGTERM"), + /** The {@code SIGKILL} variant. */ + SIGKILL("SIGKILL"), + /** The {@code SIGINT} variant. */ + SIGINT("SIGINT"); + + private final String value; + ShellKillSignal(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ShellKillSignal fromValue(String value) { + for (ShellKillSignal v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ShellKillSignal value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java new file mode 100644 index 000000000..1b4e79dd4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Why the session is being shut down. Defaults to "routine" when omitted. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ShutdownType { + /** The {@code routine} variant. */ + ROUTINE("routine"), + /** The {@code error} variant. */ + ERROR("error"); + + private final String value; + ShutdownType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ShutdownType fromValue(String value) { + for (ShutdownType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ShutdownType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java new file mode 100644 index 000000000..d64f01515 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `Skill` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record Skill( + /** Unique identifier for the skill */ + @JsonProperty("name") String name, + /** Description of what the skill does */ + @JsonProperty("description") String description, + /** Source location type (e.g., project, personal-copilot, plugin, builtin) */ + @JsonProperty("source") SkillSource source, + /** Whether the skill can be invoked by the user as a slash command */ + @JsonProperty("userInvocable") Boolean userInvocable, + /** Whether the skill is currently enabled */ + @JsonProperty("enabled") Boolean enabled, + /** Absolute path to the skill file */ + @JsonProperty("path") String path, + /** Name of the plugin that provides the skill, when source is 'plugin' */ + @JsonProperty("pluginName") String pluginName +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java new file mode 100644 index 000000000..8d723548b --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java @@ -0,0 +1,45 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Source location type (e.g., project, personal-copilot, plugin, builtin) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SkillSource { + /** The {@code project} variant. */ + PROJECT("project"), + /** The {@code inherited} variant. */ + INHERITED("inherited"), + /** The {@code personal-copilot} variant. */ + PERSONAL_COPILOT("personal-copilot"), + /** The {@code personal-agents} variant. */ + PERSONAL_AGENTS("personal-agents"), + /** The {@code plugin} variant. */ + PLUGIN("plugin"), + /** The {@code custom} variant. */ + CUSTOM("custom"), + /** The {@code builtin} variant. */ + BUILTIN("builtin"); + + private final String value; + SkillSource(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SkillSource fromValue(String value) { + for (SkillSource v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SkillSource value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java new file mode 100644 index 000000000..200e88cd7 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Skill names to mark as disabled in global configuration, replacing any previous list. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SkillsConfigSetDisabledSkillsParams( + /** List of skill names to disable */ + @JsonProperty("disabledSkills") List disabledSkills +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java new file mode 100644 index 000000000..117680699 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Optional project paths and additional skill directories to include in discovery. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SkillsDiscoverParams( + /** Optional list of project directory paths to scan for project-scoped skills */ + @JsonProperty("projectPaths") List projectPaths, + /** Optional list of additional skill directory paths to include */ + @JsonProperty("skillDirectories") List skillDirectories +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java new file mode 100644 index 000000000..f56c814bc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Skills discovered across global and project sources. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SkillsDiscoverResult( + /** All discovered skills across all sources */ + @JsonProperty("skills") List skills +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java new file mode 100644 index 000000000..697e18fa4 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `SkillsInvokedSkill` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SkillsInvokedSkill( + /** Unique identifier for the skill */ + @JsonProperty("name") String name, + /** Path to the SKILL.md file */ + @JsonProperty("path") String path, + /** Full content of the skill file */ + @JsonProperty("content") String content, + /** Tools that should be auto-approved when this skill is active, captured at invocation time */ + @JsonProperty("allowedTools") List allowedTools, + /** Turn number when the skill was invoked */ + @JsonProperty("invokedAtTurn") Long invokedAtTurn +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java new file mode 100644 index 000000000..722274524 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `SlashCommandInfo` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SlashCommandInfo( + /** Canonical command name without a leading slash */ + @JsonProperty("name") String name, + /** Canonical aliases without leading slashes */ + @JsonProperty("aliases") List aliases, + /** Human-readable command description */ + @JsonProperty("description") String description, + /** Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command */ + @JsonProperty("kind") SlashCommandKind kind, + /** Optional unstructured input hint */ + @JsonProperty("input") SlashCommandInput input, + /** Whether the command may run while an agent turn is active */ + @JsonProperty("allowDuringAgentExecution") Boolean allowDuringAgentExecution, + /** Whether the command is experimental */ + @JsonProperty("experimental") Boolean experimental +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java new file mode 100644 index 000000000..dcfc2a36e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 unstructured input hint + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record SlashCommandInput( + /** Hint to display when command input has not been provided */ + @JsonProperty("hint") String hint, + /** When true, the command requires non-empty input; clients should render the input hint as required */ + @JsonProperty("required") Boolean required, + /** Optional completion hint for the input (e.g. 'directory' for filesystem path completion) */ + @JsonProperty("completion") SlashCommandInputCompletion completion, + /** When true, clients should pass the full text after the command name as a single argument rather than splitting on whitespace */ + @JsonProperty("preserveMultilineInput") Boolean preserveMultilineInput +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java new file mode 100644 index 000000000..bfd2e7787 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Optional completion hint for the input (e.g. 'directory' for filesystem path completion) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SlashCommandInputCompletion { + /** The {@code directory} variant. */ + DIRECTORY("directory"); + + private final String value; + SlashCommandInputCompletion(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SlashCommandInputCompletion fromValue(String value) { + for (SlashCommandInputCompletion v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SlashCommandInputCompletion value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java new file mode 100644 index 000000000..1f05c4773 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum SlashCommandKind { + /** The {@code builtin} variant. */ + BUILTIN("builtin"), + /** The {@code skill} variant. */ + SKILL("skill"), + /** The {@code client} variant. */ + CLIENT("client"); + + private final String value; + SlashCommandKind(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static SlashCommandKind fromValue(String value) { + for (SlashCommandKind v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown SlashCommandKind value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java new file mode 100644 index 000000000..e4b1361c8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java @@ -0,0 +1,36 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Schema for the `Tool` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record Tool( + /** Tool identifier (e.g., "bash", "grep", "str_replace_editor") */ + @JsonProperty("name") String name, + /** Optional namespaced name for declarative filtering (e.g., "playwright/navigate" for MCP tools) */ + @JsonProperty("namespacedName") String namespacedName, + /** Description of what the tool does */ + @JsonProperty("description") String description, + /** JSON Schema for the tool's input parameters */ + @JsonProperty("parameters") Map parameters, + /** Optional instructions for how to use this tool effectively */ + @JsonProperty("instructions") String instructions +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java new file mode 100644 index 000000000..6523f4bdc --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 model identifier whose tool overrides should be applied to the listing. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ToolsListParams( + /** Optional model ID — when provided, the returned tool list reflects model-specific overrides */ + @JsonProperty("model") String model +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java new file mode 100644 index 000000000..5127277fb --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java @@ -0,0 +1,28 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Built-in tools available for the requested model, with their parameters and instructions. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record ToolsListResult( + /** List of available built-in tools with metadata */ + @JsonProperty("tools") List tools +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java new file mode 100644 index 000000000..f6a3534d8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * User's choice for auto-mode switching: yes (allow this turn), yes_always (allow + persist as setting), or no (decline). + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum UIAutoModeSwitchResponse { + /** The {@code yes} variant. */ + YES("yes"), + /** The {@code yes_always} variant. */ + YES_ALWAYS("yes_always"), + /** The {@code no} variant. */ + NO("no"); + + private final String value; + UIAutoModeSwitchResponse(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static UIAutoModeSwitchResponse fromValue(String value) { + for (UIAutoModeSwitchResponse v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown UIAutoModeSwitchResponse value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java new file mode 100644 index 000000000..e157ee727 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java @@ -0,0 +1,30 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * The elicitation response (accept with form values, decline, or cancel) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UIElicitationResponse( + /** The user's response: accept (submitted), decline (rejected), or cancel (dismissed) */ + @JsonProperty("action") UIElicitationResponseAction action, + /** The form values submitted by the user (present when action is 'accept') */ + @JsonProperty("content") Map content +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java new file mode 100644 index 000000000..4ce8d95cd --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java @@ -0,0 +1,37 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The user's response: accept (submitted), decline (rejected), or cancel (dismissed) + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum UIElicitationResponseAction { + /** The {@code accept} variant. */ + ACCEPT("accept"), + /** The {@code decline} variant. */ + DECLINE("decline"), + /** The {@code cancel} variant. */ + CANCEL("cancel"); + + private final String value; + UIElicitationResponseAction(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static UIElicitationResponseAction fromValue(String value) { + for (UIElicitationResponseAction v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown UIElicitationResponseAction value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java new file mode 100644 index 000000000..d4f0a2684 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * JSON Schema describing the form fields to present to the user + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UIElicitationSchema( + /** Schema type indicator (always 'object') */ + @JsonProperty("type") String type, + /** Form field definitions, keyed by field name */ + @JsonProperty("properties") Map properties, + /** List of required field names */ + @JsonProperty("required") List required +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java new file mode 100644 index 000000000..1670701e1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java @@ -0,0 +1,39 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * The action the user selected. Defaults to 'autopilot' when autoApproveEdits is true, otherwise 'interactive'. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum UIExitPlanModeAction { + /** The {@code exit_only} variant. */ + EXIT_ONLY("exit_only"), + /** The {@code interactive} variant. */ + INTERACTIVE("interactive"), + /** The {@code autopilot} variant. */ + AUTOPILOT("autopilot"), + /** The {@code autopilot_fleet} variant. */ + AUTOPILOT_FLEET("autopilot_fleet"); + + private final String value; + UIExitPlanModeAction(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static UIExitPlanModeAction fromValue(String value) { + for (UIExitPlanModeAction v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown UIExitPlanModeAction value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java new file mode 100644 index 000000000..50e201142 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java @@ -0,0 +1,33 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `UIExitPlanModeResponse` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UIExitPlanModeResponse( + /** Whether the plan was approved. */ + @JsonProperty("approved") Boolean approved, + /** The action the user selected. Defaults to 'autopilot' when autoApproveEdits is true, otherwise 'interactive'. */ + @JsonProperty("selectedAction") UIExitPlanModeAction selectedAction, + /** Whether subsequent edits should be auto-approved without confirmation. */ + @JsonProperty("autoApproveEdits") Boolean autoApproveEdits, + /** Feedback from the user when they declined the plan or requested changes. */ + @JsonProperty("feedback") String feedback +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java new file mode 100644 index 000000000..590061f4c --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java @@ -0,0 +1,24 @@ +/*--------------------------------------------------------------------------------------------- + * 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 sampling result payload. Omit to reject/cancel the sampling request without providing a result. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UIHandlePendingSamplingResponse() { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java new file mode 100644 index 000000000..d4ce9899d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `UIUserInputResponse` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UIUserInputResponse( + /** The user's answer text */ + @JsonProperty("answer") String answer, + /** True if the user typed a freeform response, false if they selected a presented choice. Used by telemetry to differentiate between free text input and choice selection. */ + @JsonProperty("wasFreeform") Boolean wasFreeform +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java new file mode 100644 index 000000000..4c445efe1 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Aggregated code change metrics + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UsageMetricsCodeChanges( + /** Total lines of code added */ + @JsonProperty("linesAdded") Long linesAdded, + /** Total lines of code removed */ + @JsonProperty("linesRemoved") Long linesRemoved, + /** Number of distinct files modified */ + @JsonProperty("filesModifiedCount") Long filesModifiedCount, + /** Distinct file paths modified during the session */ + @JsonProperty("filesModified") List filesModified +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java new file mode 100644 index 000000000..7e34f43b3 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java @@ -0,0 +1,34 @@ +/*--------------------------------------------------------------------------------------------- + * 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.Map; +import javax.annotation.processing.Generated; + +/** + * Schema for the `UsageMetricsModelMetric` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UsageMetricsModelMetric( + /** Request count and cost metrics for this model */ + @JsonProperty("requests") UsageMetricsModelMetricRequests requests, + /** Token usage metrics for this model */ + @JsonProperty("usage") UsageMetricsModelMetricUsage usage, + /** Accumulated nano-AI units cost for this model */ + @JsonProperty("totalNanoAiu") Double totalNanoAiu, + /** Token count details per type */ + @JsonProperty("tokenDetails") Map tokenDetails +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java new file mode 100644 index 000000000..ef9fbe47d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java @@ -0,0 +1,29 @@ +/*--------------------------------------------------------------------------------------------- + * 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 count and cost metrics for this model + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UsageMetricsModelMetricRequests( + /** Number of API requests made with this model */ + @JsonProperty("count") Long count, + /** User-initiated premium request cost (with multiplier applied) */ + @JsonProperty("cost") Double cost +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java new file mode 100644 index 000000000..e47a45fde --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `UsageMetricsModelMetricTokenDetail` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UsageMetricsModelMetricTokenDetail( + /** Accumulated token count for this token type */ + @JsonProperty("tokenCount") Long tokenCount +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java new file mode 100644 index 000000000..112c2c06d --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Token usage metrics for this model + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UsageMetricsModelMetricUsage( + /** Total input tokens consumed */ + @JsonProperty("inputTokens") Long inputTokens, + /** Total output tokens produced */ + @JsonProperty("outputTokens") Long outputTokens, + /** Total tokens read from prompt cache */ + @JsonProperty("cacheReadTokens") Long cacheReadTokens, + /** Total tokens written to prompt cache */ + @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, + /** Total output tokens used for reasoning */ + @JsonProperty("reasoningTokens") Long reasoningTokens +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java new file mode 100644 index 000000000..55d0b81c8 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java @@ -0,0 +1,27 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `UsageMetricsTokenDetail` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record UsageMetricsTokenDetail( + /** Accumulated token count for this token type */ + @JsonProperty("tokenCount") Long tokenCount +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java new file mode 100644 index 000000000..71ce8e4b6 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Repository host type, if known + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum WorkspaceSummaryHostType { + /** The {@code github} variant. */ + GITHUB("github"), + /** The {@code ado} variant. */ + ADO("ado"); + + private final String value; + WorkspaceSummaryHostType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkspaceSummaryHostType fromValue(String value) { + for (WorkspaceSummaryHostType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown WorkspaceSummaryHostType value: " + value); + } +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java new file mode 100644 index 000000000..07de034a9 --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java @@ -0,0 +1,31 @@ +/*--------------------------------------------------------------------------------------------- + * 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 `WorkspacesCheckpoints` type. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record WorkspacesCheckpoints( + /** Checkpoint number assigned by the workspace manager */ + @JsonProperty("number") Long number, + /** Human-readable checkpoint title */ + @JsonProperty("title") String title, + /** Filename of the checkpoint within the workspace checkpoints directory */ + @JsonProperty("filename") String filename +) { +} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java new file mode 100644 index 000000000..aca85030e --- /dev/null +++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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; + +/** + * Allowed values for the `WorkspacesWorkspaceDetailsHostType` enumeration. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum WorkspacesWorkspaceDetailsHostType { + /** The {@code github} variant. */ + GITHUB("github"), + /** The {@code ado} variant. */ + ADO("ado"); + + private final String value; + WorkspacesWorkspaceDetailsHostType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkspacesWorkspaceDetailsHostType fromValue(String value) { + for (WorkspacesWorkspaceDetailsHostType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown WorkspacesWorkspaceDetailsHostType value: " + value); + } +} From d153817e0dbecfc41aaf9b0ba921f0f13998d0de Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Tue, 26 May 2026 12:10:06 -0700 Subject: [PATCH 5/6] Spotless --- .../com/github/copilot/CopilotClient.java | 15 ++++--- .../com/github/copilot/SystemMessageMode.java | 8 ++-- .../java/com/github/copilot/package-info.java | 16 +++---- .../copilot/rpc/CreateSessionRequest.java | 3 +- .../copilot/rpc/ResumeSessionConfig.java | 6 +-- .../com/github/copilot/rpc/SessionConfig.java | 16 +++---- .../com/github/copilot/rpc/package-info.java | 42 +++++++++---------- .../github/copilot/CopilotSessionTest.java | 4 +- .../github/copilot/ModuleDescriptorTest.java | 3 +- .../GeneratedEventTypesCoverageTest.java | 4 +- 10 files changed, 57 insertions(+), 60 deletions(-) diff --git a/src/main/java/com/github/copilot/CopilotClient.java b/src/main/java/com/github/copilot/CopilotClient.java index dd3db19a6..20c7a7e7d 100644 --- a/src/main/java/com/github/copilot/CopilotClient.java +++ b/src/main/java/com/github/copilot/CopilotClient.java @@ -397,8 +397,8 @@ private static void cleanupCliProcess(Process process) { * receive responses. Remember to close the session when done. *

* A permission handler is required when creating a session. Use - * {@link com.github.copilot.rpc.PermissionHandler#APPROVE_ALL} to approve - * all permission requests, or provide a custom handler to control permissions + * {@link com.github.copilot.rpc.PermissionHandler#APPROVE_ALL} to approve all + * permission requests, or provide a custom handler to control permissions * selectively. * *

@@ -494,8 +494,8 @@ public CompletableFuture createSession(SessionConfig config) { * conversation. The session's history is preserved. *

* A permission handler is required when resuming a session. Use - * {@link com.github.copilot.rpc.PermissionHandler#APPROVE_ALL} to approve - * all permission requests, or provide a custom handler to control permissions + * {@link com.github.copilot.rpc.PermissionHandler#APPROVE_ALL} to approve all + * permission requests, or provide a custom handler to control permissions * selectively. * * @param sessionId @@ -659,8 +659,8 @@ public CompletableFuture getAuthStatus() { * The cache is cleared when the client disconnects. *

* If an {@code onListModels} handler was provided in - * {@link com.github.copilot.rpc.CopilotClientOptions}, it is called - * instead of querying the CLI server. This is useful in BYOK mode. + * {@link com.github.copilot.rpc.CopilotClientOptions}, it is called instead of + * querying the CLI server. This is useful in BYOK mode. * * @return a future that resolves with a list of available models * @see ModelInfo @@ -834,8 +834,7 @@ public CompletableFuture getSessionMetadata(String sessionId) { */ public CompletableFuture getForegroundSessionId() { return ensureConnected().thenCompose(connection -> connection.rpc - .invoke("session.getForeground", Map.of(), - com.github.copilot.rpc.GetForegroundSessionResponse.class) + .invoke("session.getForeground", Map.of(), com.github.copilot.rpc.GetForegroundSessionResponse.class) .thenApply(com.github.copilot.rpc.GetForegroundSessionResponse::sessionId)); } diff --git a/src/main/java/com/github/copilot/SystemMessageMode.java b/src/main/java/com/github/copilot/SystemMessageMode.java index 9659625ea..d693535f9 100644 --- a/src/main/java/com/github/copilot/SystemMessageMode.java +++ b/src/main/java/com/github/copilot/SystemMessageMode.java @@ -37,10 +37,10 @@ public enum SystemMessageMode { * Override individual sections of the system prompt. *

* Use this mode with - * {@link com.github.copilot.rpc.SystemMessageConfig#setSections} to - * selectively replace, remove, append, prepend, or transform individual - * sections of the default system prompt. An optional {@code content} string is - * appended after all sections when provided. + * {@link com.github.copilot.rpc.SystemMessageConfig#setSections} to selectively + * replace, remove, append, prepend, or transform individual sections of the + * default system prompt. An optional {@code content} string is appended after + * all sections when provided. * * @since 1.2.0 */ diff --git a/src/main/java/com/github/copilot/package-info.java b/src/main/java/com/github/copilot/package-info.java index 1b8252dcd..e47d7ab1b 100644 --- a/src/main/java/com/github/copilot/package-info.java +++ b/src/main/java/com/github/copilot/package-info.java @@ -13,16 +13,16 @@ * *

Main Classes

*
    - *
  • {@link com.github.copilot.CopilotClient} - The main client for - * connecting to and communicating with the Copilot CLI. Manages the lifecycle - * of the CLI process and provides methods for creating sessions, querying - * models, and checking authentication status.
  • + *
  • {@link com.github.copilot.CopilotClient} - The main client for connecting + * to and communicating with the Copilot CLI. Manages the lifecycle of the CLI + * process and provides methods for creating sessions, querying models, and + * checking authentication status.
  • *
  • {@link com.github.copilot.CopilotSession} - Represents a single * conversation session with Copilot. Sessions maintain context across multiple * messages and support streaming responses, tool invocations, and event * handling.
  • - *
  • {@link com.github.copilot.JsonRpcClient} - Low-level JSON-RPC client - * for communication with the Copilot CLI process.
  • + *
  • {@link com.github.copilot.JsonRpcClient} - Low-level JSON-RPC client for + * communication with the Copilot CLI process.
  • *
* *

Quick Start

@@ -43,8 +43,8 @@ * *

Related Packages

*
    - *
  • {@link com.github.copilot.generated} - Auto-generated event types - * emitted during session processing
  • + *
  • {@link com.github.copilot.generated} - Auto-generated event types emitted + * during session processing
  • *
  • {@link com.github.copilot.rpc} - Configuration and data transfer * objects
  • *
diff --git a/src/main/java/com/github/copilot/rpc/CreateSessionRequest.java b/src/main/java/com/github/copilot/rpc/CreateSessionRequest.java index 1edad85d4..ae353f8e4 100644 --- a/src/main/java/com/github/copilot/rpc/CreateSessionRequest.java +++ b/src/main/java/com/github/copilot/rpc/CreateSessionRequest.java @@ -15,8 +15,7 @@ * Internal request object for creating a new session. *

* This is a low-level class for JSON-RPC communication. For creating sessions, - * use - * {@link com.github.copilot.CopilotClient#createSession(SessionConfig)}. + * use {@link com.github.copilot.CopilotClient#createSession(SessionConfig)}. * * @see com.github.copilot.CopilotClient#createSession(SessionConfig) * @see SessionConfig diff --git a/src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java b/src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java index b85b35dad..e110af3ff 100644 --- a/src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java +++ b/src/main/java/com/github/copilot/rpc/ResumeSessionConfig.java @@ -743,9 +743,9 @@ public Consumer getOnEvent() { * Sets an event handler that is registered on the session before the * {@code session.resume} RPC is issued. *

- * Equivalent to calling - * {@link com.github.copilot.CopilotSession#on(Consumer)} immediately after - * resumption, but executes earlier in the lifecycle so no events are missed. + * Equivalent to calling {@link com.github.copilot.CopilotSession#on(Consumer)} + * immediately after resumption, but executes earlier in the lifecycle so no + * events are missed. * * @param onEvent * the event handler to register before session resumption diff --git a/src/main/java/com/github/copilot/rpc/SessionConfig.java b/src/main/java/com/github/copilot/rpc/SessionConfig.java index 461e1d73b..3ba19d8c2 100644 --- a/src/main/java/com/github/copilot/rpc/SessionConfig.java +++ b/src/main/java/com/github/copilot/rpc/SessionConfig.java @@ -205,8 +205,8 @@ public SystemMessageConfig getSystemMessage() { * Sets the system message configuration. *

* The system message controls the behavior and personality of the assistant. - * Use {@link com.github.copilot.SystemMessageMode#APPEND} to add - * instructions while preserving default behavior, or + * Use {@link com.github.copilot.SystemMessageMode#APPEND} to add instructions + * while preserving default behavior, or * {@link com.github.copilot.SystemMessageMode#REPLACE} to fully customize. * * @param systemMessage @@ -794,12 +794,12 @@ public Consumer getOnEvent() { * Sets an event handler that is registered on the session before the * {@code session.create} RPC is issued. *

- * Equivalent to calling - * {@link com.github.copilot.CopilotSession#on(Consumer)} immediately after - * creation, but executes earlier in the lifecycle so no events are missed. - * Using this property rather than {@code CopilotSession.on()} guarantees that - * early events emitted by the CLI during session creation (e.g. - * {@code session.start}) are delivered to the handler. + * Equivalent to calling {@link com.github.copilot.CopilotSession#on(Consumer)} + * immediately after creation, but executes earlier in the lifecycle so no + * events are missed. Using this property rather than + * {@code CopilotSession.on()} guarantees that early events emitted by the CLI + * during session creation (e.g. {@code session.start}) are delivered to the + * handler. * * @param onEvent * the event handler to register before session creation diff --git a/src/main/java/com/github/copilot/rpc/package-info.java b/src/main/java/com/github/copilot/rpc/package-info.java index 64ffcec69..edc7dedcf 100644 --- a/src/main/java/com/github/copilot/rpc/package-info.java +++ b/src/main/java/com/github/copilot/rpc/package-info.java @@ -14,19 +14,19 @@ *

Client Configuration

*
    *
  • {@link com.github.copilot.rpc.CopilotClientOptions} - Options for - * configuring the {@link com.github.copilot.CopilotClient}, including CLI - * path, port, transport mode, and auto-start behavior.
  • + * configuring the {@link com.github.copilot.CopilotClient}, including CLI path, + * port, transport mode, and auto-start behavior. *
* *

Session Configuration

*
    - *
  • {@link com.github.copilot.rpc.SessionConfig} - Configuration for - * creating a new session, including model selection, tools, system message, and - * MCP server configuration.
  • - *
  • {@link com.github.copilot.rpc.ResumeSessionConfig} - Configuration - * for resuming an existing session.
  • - *
  • {@link com.github.copilot.rpc.InfiniteSessionConfig} - Configuration - * for infinite sessions with automatic context compaction.
  • + *
  • {@link com.github.copilot.rpc.SessionConfig} - Configuration for creating + * a new session, including model selection, tools, system message, and MCP + * server configuration.
  • + *
  • {@link com.github.copilot.rpc.ResumeSessionConfig} - Configuration for + * resuming an existing session.
  • + *
  • {@link com.github.copilot.rpc.InfiniteSessionConfig} - Configuration for + * infinite sessions with automatic context compaction.
  • *
  • {@link com.github.copilot.rpc.SystemMessageConfig} - System message * customization options.
  • *
@@ -35,8 +35,8 @@ *
    *
  • {@link com.github.copilot.rpc.MessageOptions} - Options for sending * messages, including prompt text and attachments.
  • - *
  • {@link com.github.copilot.rpc.ToolDefinition} - Definition of a - * custom tool that can be invoked by the assistant.
  • + *
  • {@link com.github.copilot.rpc.ToolDefinition} - Definition of a custom + * tool that can be invoked by the assistant.
  • *
  • {@link com.github.copilot.rpc.ToolInvocation} - Represents a tool * invocation request from the assistant.
  • *
  • {@link com.github.copilot.rpc.Attachment} - File attachment for @@ -45,18 +45,18 @@ * *

    Provider Configuration (BYOK)

    *
      - *
    • {@link com.github.copilot.rpc.ProviderConfig} - Configuration for - * using your own API keys with custom providers (OpenAI, Azure, etc.).
    • + *
    • {@link com.github.copilot.rpc.ProviderConfig} - Configuration for using + * your own API keys with custom providers (OpenAI, Azure, etc.).
    • *
    • {@link com.github.copilot.rpc.AzureOptions} - Azure-specific * configuration options.
    • *
    * *

    Model Information

    *
      - *
    • {@link com.github.copilot.rpc.ModelInfo} - Information about an - * available AI model.
    • - *
    • {@link com.github.copilot.rpc.ModelCapabilities} - Model - * capabilities and limits.
    • + *
    • {@link com.github.copilot.rpc.ModelInfo} - Information about an available + * AI model.
    • + *
    • {@link com.github.copilot.rpc.ModelCapabilities} - Model capabilities and + * limits.
    • *
    • {@link com.github.copilot.rpc.ModelPolicy} - Model policy and state * information.
    • *
    @@ -69,10 +69,10 @@ * *

    Permissions

    *
      - *
    • {@link com.github.copilot.rpc.PermissionHandler} - Handler for - * permission requests from the assistant.
    • - *
    • {@link com.github.copilot.rpc.PermissionRequest} - A permission - * request from the assistant.
    • + *
    • {@link com.github.copilot.rpc.PermissionHandler} - Handler for permission + * requests from the assistant.
    • + *
    • {@link com.github.copilot.rpc.PermissionRequest} - A permission request + * from the assistant.
    • *
    • {@link com.github.copilot.rpc.PermissionRequestResult} - Result of a * permission request decision.
    • *
    diff --git a/src/test/java/com/github/copilot/CopilotSessionTest.java b/src/test/java/com/github/copilot/CopilotSessionTest.java index 4a1f68919..9c74d4946 100644 --- a/src/test/java/com/github/copilot/CopilotSessionTest.java +++ b/src/test/java/com/github/copilot/CopilotSessionTest.java @@ -830,8 +830,8 @@ void testSessionListFilterFluentAPI() throws Exception { var session = client .createSession(new SessionConfig().setOnPermissionRequest(PermissionHandler.APPROVE_ALL)).get(); - var filter = new com.github.copilot.rpc.SessionListFilter().setCwd("/test/path") - .setRepository("owner/repo").setBranch("main").setGitRoot("/test"); + var filter = new com.github.copilot.rpc.SessionListFilter().setCwd("/test/path").setRepository("owner/repo") + .setBranch("main").setGitRoot("/test"); assertEquals("/test/path", filter.getCwd()); assertEquals("owner/repo", filter.getRepository()); diff --git a/src/test/java/com/github/copilot/ModuleDescriptorTest.java b/src/test/java/com/github/copilot/ModuleDescriptorTest.java index 16a13fd69..f7c16bb23 100644 --- a/src/test/java/com/github/copilot/ModuleDescriptorTest.java +++ b/src/test/java/com/github/copilot/ModuleDescriptorTest.java @@ -20,8 +20,7 @@ void sdkHasExplicitModuleDescriptor() { ModuleDescriptor descriptor = module.getDescriptor(); assertTrue(descriptor.exports().stream().anyMatch(export -> export.source().equals("com.github.copilot"))); - assertTrue(descriptor.exports().stream() - .anyMatch(export -> export.source().equals("com.github.copilot.rpc"))); + assertTrue(descriptor.exports().stream().anyMatch(export -> export.source().equals("com.github.copilot.rpc"))); assertTrue(descriptor.requires().stream() .anyMatch(require -> require.name().equals("com.fasterxml.jackson.databind"))); } diff --git a/src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java b/src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java index 0edf1b2f8..28e2aba3b 100644 --- a/src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java +++ b/src/test/java/com/github/copilot/generated/GeneratedEventTypesCoverageTest.java @@ -15,8 +15,8 @@ /** * Deserialization tests for generated session event types that are not covered - * in {@link com.github.copilot.SessionEventDeserializationTest}. Verifies - * that each event deserializes correctly from JSON and that the {@code type} + * in {@link com.github.copilot.SessionEventDeserializationTest}. Verifies that + * each event deserializes correctly from JSON and that the {@code type} * discriminator and {@code data} fields are accessible. */ public class GeneratedEventTypesCoverageTest { From 4c7a4e7531d32b26dffe41c123b38d215c1d5a07 Mon Sep 17 00:00:00 2001 From: Ed Burns Date: Tue, 26 May 2026 12:24:44 -0700 Subject: [PATCH 6/6] Fix additional codegen-check problem --- .../agentic-merge-reference-impl.prompt.md | 20 +- .../prompts/documentation-coverage.prompt.md | 26 +- .../test-coverage-assessment.prompt.md | 26 +- .github/workflows/codegen-agentic-fix.md | 2 +- .../workflows/update-copilot-dependency.yml | 8 +- scripts/codegen/java.ts | 6 +- .../copilot/sdk/generated/AbortEvent.java | 42 ---- .../copilot/sdk/generated/AbortReason.java | 37 --- .../sdk/generated/AssistantIntentEvent.java | 42 ---- .../generated/AssistantMessageDeltaEvent.java | 46 ---- .../sdk/generated/AssistantMessageEvent.java | 71 ------ .../generated/AssistantMessageStartEvent.java | 44 ---- .../AssistantMessageToolRequest.java | 41 ---- .../AssistantMessageToolRequestType.java | 35 --- .../AssistantReasoningDeltaEvent.java | 44 ---- .../generated/AssistantReasoningEvent.java | 44 ---- .../AssistantStreamingDeltaEvent.java | 42 ---- .../sdk/generated/AssistantTurnEndEvent.java | 42 ---- .../generated/AssistantTurnStartEvent.java | 44 ---- .../generated/AssistantUsageApiEndpoint.java | 39 --- .../generated/AssistantUsageCopilotUsage.java | 30 --- ...AssistantUsageCopilotUsageTokenDetail.java | 33 --- .../sdk/generated/AssistantUsageEvent.java | 77 ------ .../AssistantUsageQuotaSnapshot.java | 42 ---- .../AutoModeSwitchCompletedEvent.java | 44 ---- .../AutoModeSwitchRequestedEvent.java | 46 ---- .../sdk/generated/AutoModeSwitchResponse.java | 37 --- .../generated/CapabilitiesChangedEvent.java | 42 ---- .../sdk/generated/CapabilitiesChangedUI.java | 27 --- .../sdk/generated/CommandCompletedEvent.java | 42 ---- .../sdk/generated/CommandExecuteEvent.java | 48 ---- .../sdk/generated/CommandQueuedEvent.java | 44 ---- .../sdk/generated/CommandsChangedCommand.java | 29 --- .../sdk/generated/CommandsChangedEvent.java | 43 ---- ...ompactionCompleteCompactionTokensUsed.java | 39 --- ...pleteCompactionTokensUsedCopilotUsage.java | 30 --- ...tionTokensUsedCopilotUsageTokenDetail.java | 33 --- .../generated/CustomAgentsUpdatedAgent.java | 42 ---- .../generated/ElicitationCompletedAction.java | 37 --- .../generated/ElicitationCompletedEvent.java | 47 ---- .../generated/ElicitationRequestedEvent.java | 54 ----- .../generated/ElicitationRequestedMode.java | 35 --- .../generated/ElicitationRequestedSchema.java | 33 --- .../sdk/generated/ExitPlanModeAction.java | 39 --- .../generated/ExitPlanModeCompletedEvent.java | 50 ---- .../generated/ExitPlanModeRequestedEvent.java | 51 ---- .../generated/ExtensionsLoadedExtension.java | 33 --- .../ExtensionsLoadedExtensionSource.java | 35 --- .../ExtensionsLoadedExtensionStatus.java | 39 --- .../generated/ExternalToolCompletedEvent.java | 42 ---- .../generated/ExternalToolRequestedEvent.java | 54 ----- .../sdk/generated/HandoffRepository.java | 31 --- .../sdk/generated/HandoffSourceType.java | 35 --- .../copilot/sdk/generated/HookEndError.java | 29 --- .../copilot/sdk/generated/HookEndEvent.java | 50 ---- .../copilot/sdk/generated/HookStartEvent.java | 46 ---- .../sdk/generated/McpOauthCompletedEvent.java | 42 ---- .../sdk/generated/McpOauthRequiredEvent.java | 48 ---- .../McpOauthRequiredStaticClientConfig.java | 31 --- .../sdk/generated/McpServerSource.java | 39 --- .../sdk/generated/McpServerStatus.java | 43 ---- .../sdk/generated/McpServersLoadedServer.java | 33 --- .../sdk/generated/ModelCallFailureEvent.java | 56 ----- .../sdk/generated/ModelCallFailureSource.java | 37 --- .../PendingMessagesModifiedEvent.java | 39 --- .../generated/PermissionCompletedEvent.java | 46 ---- .../generated/PermissionRequestedEvent.java | 48 ---- .../sdk/generated/PlanChangedOperation.java | 37 --- .../sdk/generated/ReasoningSummary.java | 37 --- .../sdk/generated/SamplingCompletedEvent.java | 42 ---- .../sdk/generated/SamplingRequestedEvent.java | 46 ---- .../SessionBackgroundTasksChangedEvent.java | 39 --- .../SessionCompactionCompleteEvent.java | 72 ------ .../SessionCompactionStartEvent.java | 46 ---- .../generated/SessionContextChangedEvent.java | 56 ----- .../SessionCustomAgentsUpdatedEvent.java | 47 ---- .../SessionCustomNotificationEvent.java | 51 ---- .../sdk/generated/SessionErrorEvent.java | 56 ----- .../copilot/sdk/generated/SessionEvent.java | 229 ------------------ .../SessionExtensionsLoadedEvent.java | 43 ---- .../sdk/generated/SessionHandoffEvent.java | 55 ----- .../sdk/generated/SessionIdleEvent.java | 42 ---- .../sdk/generated/SessionInfoEvent.java | 48 ---- .../SessionMcpServerStatusChangedEvent.java | 44 ---- .../SessionMcpServersLoadedEvent.java | 43 ---- .../copilot/sdk/generated/SessionMode.java | 37 --- .../generated/SessionModeChangedEvent.java | 44 ---- .../generated/SessionModelChangeEvent.java | 54 ----- .../generated/SessionPlanChangedEvent.java | 42 ---- .../SessionRemoteSteerableChangedEvent.java | 42 ---- .../sdk/generated/SessionResumeEvent.java | 61 ----- .../SessionScheduleCancelledEvent.java | 42 ---- .../SessionScheduleCreatedEvent.java | 50 ---- .../sdk/generated/SessionShutdownEvent.java | 69 ------ .../generated/SessionSkillsLoadedEvent.java | 43 ---- .../generated/SessionSnapshotRewindEvent.java | 44 ---- .../sdk/generated/SessionStartEvent.java | 65 ----- .../generated/SessionTaskCompleteEvent.java | 44 ---- .../generated/SessionTitleChangedEvent.java | 42 ---- .../generated/SessionToolsUpdatedEvent.java | 42 ---- .../sdk/generated/SessionTruncationEvent.java | 56 ----- .../sdk/generated/SessionUsageInfoEvent.java | 54 ----- .../sdk/generated/SessionWarningEvent.java | 46 ---- .../SessionWorkspaceFileChangedEvent.java | 44 ---- .../sdk/generated/ShutdownCodeChanges.java | 32 --- .../sdk/generated/ShutdownModelMetric.java | 34 --- .../ShutdownModelMetricRequests.java | 29 --- .../ShutdownModelMetricTokenDetail.java | 27 --- .../generated/ShutdownModelMetricUsage.java | 35 --- .../sdk/generated/ShutdownTokenDetail.java | 27 --- .../copilot/sdk/generated/ShutdownType.java | 35 --- .../sdk/generated/SkillInvokedEvent.java | 55 ----- .../copilot/sdk/generated/SkillSource.java | 45 ---- .../sdk/generated/SkillsLoadedSkill.java | 37 --- .../sdk/generated/SubagentCompletedEvent.java | 54 ----- .../generated/SubagentDeselectedEvent.java | 39 --- .../sdk/generated/SubagentFailedEvent.java | 56 ----- .../sdk/generated/SubagentSelectedEvent.java | 47 ---- .../sdk/generated/SubagentStartedEvent.java | 50 ---- .../sdk/generated/SystemMessageEvent.java | 48 ---- .../sdk/generated/SystemMessageMetadata.java | 30 --- .../sdk/generated/SystemMessageRole.java | 35 --- .../generated/SystemNotificationEvent.java | 44 ---- .../generated/ToolExecutionCompleteError.java | 29 --- .../generated/ToolExecutionCompleteEvent.java | 63 ----- .../ToolExecutionCompleteResult.java | 32 --- .../ToolExecutionPartialResultEvent.java | 44 ---- .../generated/ToolExecutionProgressEvent.java | 44 ---- .../generated/ToolExecutionStartEvent.java | 54 ----- .../sdk/generated/ToolUserRequestedEvent.java | 46 ---- .../sdk/generated/UnknownSessionEvent.java | 31 --- .../generated/UserInputCompletedEvent.java | 46 ---- .../generated/UserInputRequestedEvent.java | 51 ---- .../sdk/generated/UserMessageAgentMode.java | 39 --- .../sdk/generated/UserMessageEvent.java | 61 ----- .../generated/WorkingDirectoryContext.java | 41 ---- .../WorkingDirectoryContextHostType.java | 35 --- .../WorkspaceFileChangedOperation.java | 35 --- .../sdk/generated/rpc/AbortReason.java | 37 --- .../generated/rpc/AccountGetQuotaResult.java | 28 --- .../generated/rpc/AccountQuotaSnapshot.java | 42 ---- .../copilot/sdk/generated/rpc/AgentInfo.java | 49 ---- .../sdk/generated/rpc/AgentInfoSource.java | 43 ---- .../sdk/generated/rpc/AuthInfoType.java | 45 ---- .../sdk/generated/rpc/ConnectParams.java | 27 --- .../sdk/generated/rpc/ConnectResult.java | 31 --- .../rpc/ConnectedRemoteSessionMetadata.java | 48 ---- .../ConnectedRemoteSessionMetadataKind.java | 35 --- ...nectedRemoteSessionMetadataRepository.java | 31 --- .../generated/rpc/DiscoveredMcpServer.java | 33 --- .../rpc/DiscoveredMcpServerType.java | 39 --- .../sdk/generated/rpc/EventsAgentScope.java | 35 --- .../sdk/generated/rpc/EventsCursorStatus.java | 35 --- .../copilot/sdk/generated/rpc/Extension.java | 35 --- .../sdk/generated/rpc/ExtensionSource.java | 35 --- .../sdk/generated/rpc/ExtensionStatus.java | 39 --- .../rpc/HistoryCompactContextWindow.java | 37 --- .../sdk/generated/rpc/InstalledPlugin.java | 39 --- .../generated/rpc/InstructionsSources.java | 44 ---- .../rpc/InstructionsSourcesLocation.java | 39 --- .../rpc/InstructionsSourcesType.java | 45 ---- .../sdk/generated/rpc/McpConfigAddParams.java | 29 --- .../generated/rpc/McpConfigDisableParams.java | 28 --- .../generated/rpc/McpConfigEnableParams.java | 28 --- .../generated/rpc/McpConfigListResult.java | 28 --- .../generated/rpc/McpConfigRemoveParams.java | 27 --- .../generated/rpc/McpConfigUpdateParams.java | 29 --- .../sdk/generated/rpc/McpDiscoverParams.java | 27 --- .../sdk/generated/rpc/McpDiscoverResult.java | 28 --- .../rpc/McpExecuteSamplingRequest.java | 24 -- .../rpc/McpExecuteSamplingResult.java | 24 -- .../rpc/McpSamplingExecutionAction.java | 37 --- .../copilot/sdk/generated/rpc/McpServer.java | 33 --- .../sdk/generated/rpc/McpServerSource.java | 39 --- .../sdk/generated/rpc/McpServerStatus.java | 43 ---- .../rpc/McpSetEnvValueModeDetails.java | 35 --- .../rpc/MetadataSnapshotCurrentMode.java | 37 --- .../rpc/MetadataSnapshotRemoteMetadata.java | 33 --- ...adataSnapshotRemoteMetadataRepository.java | 31 --- ...etadataSnapshotRemoteMetadataTaskType.java | 35 --- .../copilot/sdk/generated/rpc/Model.java | 44 ---- .../sdk/generated/rpc/ModelBilling.java | 29 --- .../rpc/ModelBillingTokenPrices.java | 33 --- .../sdk/generated/rpc/ModelCapabilities.java | 29 --- .../rpc/ModelCapabilitiesLimits.java | 33 --- .../rpc/ModelCapabilitiesLimitsVision.java | 32 --- .../rpc/ModelCapabilitiesOverride.java | 29 --- .../rpc/ModelCapabilitiesOverrideLimits.java | 33 --- ...ModelCapabilitiesOverrideLimitsVision.java | 32 --- .../ModelCapabilitiesOverrideSupports.java | 29 --- .../rpc/ModelCapabilitiesSupports.java | 29 --- .../generated/rpc/ModelPickerCategory.java | 37 --- .../rpc/ModelPickerPriceCategory.java | 39 --- .../sdk/generated/rpc/ModelPolicy.java | 29 --- .../sdk/generated/rpc/ModelPolicyState.java | 37 --- .../sdk/generated/rpc/ModelsListResult.java | 28 --- .../rpc/OptionsUpdateEnvValueMode.java | 35 --- .../rpc/PendingPermissionRequest.java | 29 --- .../generated/rpc/PermissionLocationType.java | 35 --- .../generated/rpc/PermissionPathsConfig.java | 34 --- .../sdk/generated/rpc/PermissionRule.java | 29 --- .../sdk/generated/rpc/PermissionRulesSet.java | 30 --- .../generated/rpc/PermissionUrlsConfig.java | 30 --- ...igureAdditionalContentExclusionPolicy.java | 30 --- ...eAdditionalContentExclusionPolicyRule.java | 31 --- ...ionalContentExclusionPolicyRuleSource.java | 27 --- ...AdditionalContentExclusionPolicyScope.java | 35 --- .../rpc/PermissionsModifyRulesScope.java | 35 --- .../rpc/PermissionsSetApproveAllSource.java | 39 --- .../copilot/sdk/generated/rpc/PingParams.java | 27 --- .../copilot/sdk/generated/rpc/PingResult.java | 32 --- .../copilot/sdk/generated/rpc/Plugin.java | 33 --- .../sdk/generated/rpc/QueuePendingItems.java | 29 --- .../generated/rpc/QueuePendingItemsKind.java | 35 --- .../sdk/generated/rpc/ReasoningSummary.java | 37 --- .../sdk/generated/rpc/RemoteSessionMode.java | 37 --- .../copilot/sdk/generated/rpc/RpcCaller.java | 38 --- .../copilot/sdk/generated/rpc/RpcMapper.java | 38 --- .../sdk/generated/rpc/ScheduleEntry.java | 38 --- .../rpc/SecretsAddFilterValuesParams.java | 28 --- .../rpc/SecretsAddFilterValuesResult.java | 27 --- .../sdk/generated/rpc/SendAgentMode.java | 39 --- .../copilot/sdk/generated/rpc/SendMode.java | 35 --- .../sdk/generated/rpc/ServerAccountApi.java | 36 --- .../sdk/generated/rpc/ServerMcpApi.java | 40 --- .../sdk/generated/rpc/ServerMcpConfigApi.java | 76 ------ .../sdk/generated/rpc/ServerModelsApi.java | 36 --- .../copilot/sdk/generated/rpc/ServerRpc.java | 77 ------ .../sdk/generated/rpc/ServerSecretsApi.java | 36 --- .../sdk/generated/rpc/ServerSessionFsApi.java | 36 --- .../sdk/generated/rpc/ServerSessionsApi.java | 218 ----------------- .../sdk/generated/rpc/ServerSkill.java | 39 --- .../sdk/generated/rpc/ServerSkillsApi.java | 40 --- .../generated/rpc/ServerSkillsConfigApi.java | 36 --- .../sdk/generated/rpc/ServerToolsApi.java | 36 --- .../sdk/generated/rpc/SessionAbortParams.java | 29 --- .../sdk/generated/rpc/SessionAbortResult.java | 29 --- .../sdk/generated/rpc/SessionAgentApi.java | 87 ------- .../rpc/SessionAgentDeselectParams.java | 27 --- .../rpc/SessionAgentGetCurrentParams.java | 27 --- .../rpc/SessionAgentGetCurrentResult.java | 27 --- .../generated/rpc/SessionAgentListParams.java | 27 --- .../generated/rpc/SessionAgentListResult.java | 28 --- .../rpc/SessionAgentReloadParams.java | 27 --- .../rpc/SessionAgentReloadResult.java | 28 --- .../rpc/SessionAgentSelectParams.java | 29 --- .../rpc/SessionAgentSelectResult.java | 27 --- .../sdk/generated/rpc/SessionAuthApi.java | 57 ----- .../rpc/SessionAuthGetStatusParams.java | 27 --- .../rpc/SessionAuthGetStatusResult.java | 37 --- .../rpc/SessionAuthSetCredentialsParams.java | 29 --- .../rpc/SessionAuthSetCredentialsResult.java | 27 --- .../sdk/generated/rpc/SessionCommandsApi.java | 117 --------- .../rpc/SessionCommandsEnqueueParams.java | 29 --- .../rpc/SessionCommandsEnqueueResult.java | 27 --- .../rpc/SessionCommandsExecuteParams.java | 31 --- .../rpc/SessionCommandsExecuteResult.java | 27 --- ...ionCommandsHandlePendingCommandParams.java | 31 --- ...ionCommandsHandlePendingCommandResult.java | 27 --- .../rpc/SessionCommandsInvokeParams.java | 31 --- .../rpc/SessionCommandsListParams.java | 27 --- .../rpc/SessionCommandsListResult.java | 28 --- ...nCommandsRespondToQueuedCommandParams.java | 31 --- ...nCommandsRespondToQueuedCommandResult.java | 27 --- .../sdk/generated/rpc/SessionContext.java | 35 --- .../generated/rpc/SessionContextHostType.java | 35 --- .../sdk/generated/rpc/SessionEventLogApi.java | 87 ------- .../rpc/SessionEventLogReadParams.java | 37 --- .../rpc/SessionEventLogReadResult.java | 34 --- ...SessionEventLogRegisterInterestParams.java | 29 --- ...SessionEventLogRegisterInterestResult.java | 27 --- .../SessionEventLogReleaseInterestParams.java | 29 --- .../SessionEventLogReleaseInterestResult.java | 27 --- .../rpc/SessionEventLogTailParams.java | 27 --- .../rpc/SessionEventLogTailResult.java | 27 --- .../generated/rpc/SessionExtensionsApi.java | 82 ------- .../rpc/SessionExtensionsDisableParams.java | 29 --- .../rpc/SessionExtensionsEnableParams.java | 29 --- .../rpc/SessionExtensionsListParams.java | 27 --- .../rpc/SessionExtensionsListResult.java | 28 --- .../rpc/SessionExtensionsReloadParams.java | 27 --- .../sdk/generated/rpc/SessionFleetApi.java | 47 ---- .../rpc/SessionFleetStartParams.java | 29 --- .../rpc/SessionFleetStartResult.java | 27 --- .../rpc/SessionFsAppendFileParams.java | 33 --- .../sdk/generated/rpc/SessionFsError.java | 29 --- .../sdk/generated/rpc/SessionFsErrorCode.java | 35 --- .../generated/rpc/SessionFsExistsParams.java | 29 --- .../generated/rpc/SessionFsExistsResult.java | 27 --- .../generated/rpc/SessionFsMkdirParams.java | 33 --- .../rpc/SessionFsReadFileParams.java | 29 --- .../rpc/SessionFsReadFileResult.java | 29 --- .../generated/rpc/SessionFsReaddirParams.java | 29 --- .../generated/rpc/SessionFsReaddirResult.java | 30 --- .../rpc/SessionFsReaddirWithTypesEntry.java | 29 --- .../SessionFsReaddirWithTypesEntryType.java | 35 --- .../rpc/SessionFsReaddirWithTypesParams.java | 29 --- .../rpc/SessionFsReaddirWithTypesResult.java | 30 --- .../generated/rpc/SessionFsRenameParams.java | 31 --- .../sdk/generated/rpc/SessionFsRmParams.java | 33 --- .../rpc/SessionFsSetProviderCapabilities.java | 27 --- .../rpc/SessionFsSetProviderConventions.java | 35 --- .../rpc/SessionFsSetProviderParams.java | 33 --- .../rpc/SessionFsSetProviderResult.java | 27 --- .../rpc/SessionFsSqliteExistsParams.java | 27 --- .../rpc/SessionFsSqliteExistsResult.java | 27 --- .../rpc/SessionFsSqliteQueryParams.java | 34 --- .../rpc/SessionFsSqliteQueryResult.java | 37 --- .../rpc/SessionFsSqliteQueryType.java | 37 --- .../generated/rpc/SessionFsStatParams.java | 29 --- .../generated/rpc/SessionFsStatResult.java | 38 --- .../rpc/SessionFsWriteFileParams.java | 33 --- ...ionHistoryAbortManualCompactionParams.java | 27 --- ...ionHistoryAbortManualCompactionResult.java | 27 --- .../sdk/generated/rpc/SessionHistoryApi.java | 87 ------- ...storyCancelBackgroundCompactionParams.java | 27 --- ...storyCancelBackgroundCompactionResult.java | 27 --- .../rpc/SessionHistoryCompactParams.java | 27 --- .../rpc/SessionHistoryCompactResult.java | 35 --- ...ssionHistorySummarizeForHandoffParams.java | 27 --- ...ssionHistorySummarizeForHandoffResult.java | 27 --- .../rpc/SessionHistoryTruncateParams.java | 29 --- .../rpc/SessionHistoryTruncateResult.java | 27 --- .../generated/rpc/SessionInstalledPlugin.java | 39 --- .../generated/rpc/SessionInstructionsApi.java | 40 --- .../SessionInstructionsGetSourcesParams.java | 27 --- .../SessionInstructionsGetSourcesResult.java | 28 --- .../sdk/generated/rpc/SessionLogLevel.java | 37 --- .../sdk/generated/rpc/SessionLogParams.java | 39 --- .../sdk/generated/rpc/SessionLogResult.java | 28 --- .../sdk/generated/rpc/SessionLspApi.java | 47 ---- .../rpc/SessionLspInitializeParams.java | 33 --- .../sdk/generated/rpc/SessionMcpApi.java | 141 ----------- ...ssionMcpCancelSamplingExecutionParams.java | 29 --- ...ssionMcpCancelSamplingExecutionResult.java | 27 --- .../rpc/SessionMcpDisableParams.java | 29 --- .../generated/rpc/SessionMcpEnableParams.java | 29 --- .../rpc/SessionMcpExecuteSamplingParams.java | 35 --- .../rpc/SessionMcpExecuteSamplingResult.java | 31 --- .../generated/rpc/SessionMcpListParams.java | 27 --- .../generated/rpc/SessionMcpListResult.java | 28 --- .../sdk/generated/rpc/SessionMcpOauthApi.java | 47 ---- .../rpc/SessionMcpOauthLoginParams.java | 35 --- .../rpc/SessionMcpOauthLoginResult.java | 27 --- .../generated/rpc/SessionMcpReloadParams.java | 27 --- .../rpc/SessionMcpRemoveGitHubParams.java | 27 --- .../rpc/SessionMcpRemoveGitHubResult.java | 27 --- .../rpc/SessionMcpSetEnvValueModeParams.java | 29 --- .../rpc/SessionMcpSetEnvValueModeResult.java | 27 --- .../sdk/generated/rpc/SessionMetadata.java | 41 ---- .../sdk/generated/rpc/SessionMetadataApi.java | 112 --------- .../rpc/SessionMetadataContextInfoParams.java | 33 --- .../rpc/SessionMetadataContextInfoResult.java | 52 ---- .../SessionMetadataIsProcessingParams.java | 27 --- .../SessionMetadataIsProcessingResult.java | 27 --- ...nMetadataRecomputeContextTokensParams.java | 29 --- ...nMetadataRecomputeContextTokensResult.java | 31 --- ...sionMetadataRecordContextChangeParams.java | 29 --- ...sionMetadataRecordContextChangeResult.java | 24 -- ...sionMetadataSetWorkingDirectoryParams.java | 29 --- ...sionMetadataSetWorkingDirectoryResult.java | 27 --- .../rpc/SessionMetadataSnapshotParams.java | 27 --- .../rpc/SessionMetadataSnapshotResult.java | 77 ------ .../sdk/generated/rpc/SessionMode.java | 37 --- .../sdk/generated/rpc/SessionModeApi.java | 57 ----- .../generated/rpc/SessionModeGetParams.java | 27 --- .../generated/rpc/SessionModeSetParams.java | 29 --- .../sdk/generated/rpc/SessionModelApi.java | 72 ------ .../rpc/SessionModelGetCurrentParams.java | 27 --- .../rpc/SessionModelGetCurrentResult.java | 29 --- .../SessionModelSetReasoningEffortParams.java | 29 --- .../SessionModelSetReasoningEffortResult.java | 27 --- .../rpc/SessionModelSwitchToParams.java | 35 --- .../rpc/SessionModelSwitchToResult.java | 27 --- .../sdk/generated/rpc/SessionNameApi.java | 72 ------ .../generated/rpc/SessionNameGetParams.java | 27 --- .../generated/rpc/SessionNameGetResult.java | 27 --- .../rpc/SessionNameSetAutoParams.java | 29 --- .../rpc/SessionNameSetAutoResult.java | 27 --- .../generated/rpc/SessionNameSetParams.java | 29 --- .../sdk/generated/rpc/SessionOptionsApi.java | 47 ---- .../rpc/SessionOptionsUpdateParams.java | 101 -------- .../rpc/SessionOptionsUpdateResult.java | 27 --- .../generated/rpc/SessionPermissionsApi.java | 155 ------------ .../SessionPermissionsConfigureParams.java | 40 --- .../SessionPermissionsConfigureResult.java | 27 --- ...ermissionsFolderTrustAddTrustedParams.java | 29 --- ...ermissionsFolderTrustAddTrustedResult.java | 27 --- .../rpc/SessionPermissionsFolderTrustApi.java | 62 ----- ...PermissionsFolderTrustIsTrustedParams.java | 29 --- ...PermissionsFolderTrustIsTrustedResult.java | 27 --- ...sHandlePendingPermissionRequestParams.java | 31 --- ...sHandlePendingPermissionRequestResult.java | 27 --- ...issionsLocationsAddToolApprovalParams.java | 31 --- ...issionsLocationsAddToolApprovalResult.java | 27 --- .../rpc/SessionPermissionsLocationsApi.java | 77 ------ ...essionPermissionsLocationsApplyParams.java | 29 --- ...essionPermissionsLocationsApplyResult.java | 38 --- ...sionPermissionsLocationsResolveParams.java | 29 --- ...sionPermissionsLocationsResolveResult.java | 29 --- .../SessionPermissionsModifyRulesParams.java | 36 --- .../SessionPermissionsModifyRulesResult.java | 27 --- ...ionPermissionsNotifyPromptShownParams.java | 29 --- ...ionPermissionsNotifyPromptShownResult.java | 27 --- .../rpc/SessionPermissionsPathsAddParams.java | 29 --- .../rpc/SessionPermissionsPathsAddResult.java | 27 --- .../rpc/SessionPermissionsPathsApi.java | 102 -------- ...sIsPathWithinAllowedDirectoriesParams.java | 29 --- ...sIsPathWithinAllowedDirectoriesResult.java | 27 --- ...sionsPathsIsPathWithinWorkspaceParams.java | 29 --- ...sionsPathsIsPathWithinWorkspaceResult.java | 27 --- .../SessionPermissionsPathsListParams.java | 27 --- .../SessionPermissionsPathsListResult.java | 30 --- ...onPermissionsPathsUpdatePrimaryParams.java | 29 --- ...onPermissionsPathsUpdatePrimaryResult.java | 27 --- ...ssionPermissionsPendingRequestsParams.java | 27 --- ...ssionPermissionsPendingRequestsResult.java | 28 --- ...ermissionsResetSessionApprovalsParams.java | 27 --- ...ermissionsResetSessionApprovalsResult.java | 27 --- ...SessionPermissionsSetApproveAllParams.java | 31 --- ...SessionPermissionsSetApproveAllResult.java | 27 --- .../SessionPermissionsSetRequiredParams.java | 29 --- .../SessionPermissionsSetRequiredResult.java | 27 --- .../rpc/SessionPermissionsUrlsApi.java | 47 ---- ...missionsUrlsSetUnrestrictedModeParams.java | 29 --- ...missionsUrlsSetUnrestrictedModeResult.java | 27 --- .../sdk/generated/rpc/SessionPlanApi.java | 67 ----- .../rpc/SessionPlanDeleteParams.java | 27 --- .../generated/rpc/SessionPlanReadParams.java | 27 --- .../generated/rpc/SessionPlanReadResult.java | 31 --- .../rpc/SessionPlanUpdateParams.java | 29 --- .../sdk/generated/rpc/SessionPluginsApi.java | 40 --- .../rpc/SessionPluginsListParams.java | 27 --- .../rpc/SessionPluginsListResult.java | 28 --- .../sdk/generated/rpc/SessionQueueApi.java | 60 ----- .../rpc/SessionQueueClearParams.java | 27 --- .../rpc/SessionQueuePendingItemsParams.java | 27 --- .../rpc/SessionQueuePendingItemsResult.java | 30 --- .../SessionQueueRemoveMostRecentParams.java | 27 --- .../SessionQueueRemoveMostRecentResult.java | 27 --- .../sdk/generated/rpc/SessionRemoteApi.java | 72 ------ .../rpc/SessionRemoteDisableParams.java | 27 --- .../rpc/SessionRemoteEnableParams.java | 29 --- .../rpc/SessionRemoteEnableResult.java | 29 --- ...ionRemoteNotifySteerableChangedParams.java | 29 --- ...ionRemoteNotifySteerableChangedResult.java | 24 -- .../copilot/sdk/generated/rpc/SessionRpc.java | 200 --------------- .../sdk/generated/rpc/SessionScheduleApi.java | 57 ----- .../rpc/SessionScheduleListParams.java | 27 --- .../rpc/SessionScheduleListResult.java | 28 --- .../rpc/SessionScheduleStopParams.java | 29 --- .../rpc/SessionScheduleStopResult.java | 27 --- .../sdk/generated/rpc/SessionSendParams.java | 55 ----- .../sdk/generated/rpc/SessionSendResult.java | 27 --- .../sdk/generated/rpc/SessionShellApi.java | 62 ----- .../generated/rpc/SessionShellExecParams.java | 33 --- .../generated/rpc/SessionShellExecResult.java | 27 --- .../generated/rpc/SessionShellKillParams.java | 31 --- .../generated/rpc/SessionShellKillResult.java | 27 --- .../generated/rpc/SessionShutdownParams.java | 31 --- .../sdk/generated/rpc/SessionSkillsApi.java | 102 -------- .../rpc/SessionSkillsDisableParams.java | 29 --- .../rpc/SessionSkillsEnableParams.java | 29 --- .../rpc/SessionSkillsEnsureLoadedParams.java | 27 --- .../rpc/SessionSkillsGetInvokedParams.java | 27 --- .../rpc/SessionSkillsGetInvokedResult.java | 28 --- .../rpc/SessionSkillsListParams.java | 27 --- .../rpc/SessionSkillsListResult.java | 28 --- .../rpc/SessionSkillsReloadParams.java | 27 --- .../rpc/SessionSkillsReloadResult.java | 30 --- .../generated/rpc/SessionSuspendParams.java | 27 --- .../sdk/generated/rpc/SessionTasksApi.java | 172 ------------- .../rpc/SessionTasksCancelParams.java | 29 --- .../rpc/SessionTasksCancelResult.java | 27 --- ...essionTasksGetCurrentPromotableParams.java | 27 --- ...essionTasksGetCurrentPromotableResult.java | 27 --- .../rpc/SessionTasksGetProgressParams.java | 29 --- .../rpc/SessionTasksGetProgressResult.java | 27 --- .../generated/rpc/SessionTasksListParams.java | 27 --- .../generated/rpc/SessionTasksListResult.java | 28 --- ...TasksPromoteCurrentToBackgroundParams.java | 27 --- ...TasksPromoteCurrentToBackgroundResult.java | 27 --- ...SessionTasksPromoteToBackgroundParams.java | 29 --- ...SessionTasksPromoteToBackgroundResult.java | 27 --- .../rpc/SessionTasksRefreshParams.java | 27 --- .../rpc/SessionTasksRefreshResult.java | 24 -- .../rpc/SessionTasksRemoveParams.java | 29 --- .../rpc/SessionTasksRemoveResult.java | 27 --- .../rpc/SessionTasksSendMessageParams.java | 33 --- .../rpc/SessionTasksSendMessageResult.java | 29 --- .../rpc/SessionTasksStartAgentParams.java | 37 --- .../rpc/SessionTasksStartAgentResult.java | 27 --- .../rpc/SessionTasksWaitForPendingParams.java | 27 --- .../rpc/SessionTasksWaitForPendingResult.java | 24 -- .../generated/rpc/SessionTelemetryApi.java | 47 ---- ...ionTelemetrySetFeatureOverridesParams.java | 30 --- .../sdk/generated/rpc/SessionToolsApi.java | 57 ----- ...ssionToolsHandlePendingToolCallParams.java | 33 --- ...ssionToolsHandlePendingToolCallResult.java | 27 --- ...ssionToolsInitializeAndValidateParams.java | 27 --- ...ssionToolsInitializeAndValidateResult.java | 24 -- .../sdk/generated/rpc/SessionUiApi.java | 147 ----------- .../rpc/SessionUiElicitationParams.java | 31 --- .../rpc/SessionUiElicitationResult.java | 30 --- ...onUiHandlePendingAutoModeSwitchParams.java | 31 --- ...onUiHandlePendingAutoModeSwitchResult.java | 27 --- ...ssionUiHandlePendingElicitationParams.java | 31 --- ...ssionUiHandlePendingElicitationResult.java | 27 --- ...sionUiHandlePendingExitPlanModeParams.java | 31 --- ...sionUiHandlePendingExitPlanModeResult.java | 27 --- .../SessionUiHandlePendingSamplingParams.java | 31 --- .../SessionUiHandlePendingSamplingResult.java | 27 --- ...SessionUiHandlePendingUserInputParams.java | 31 --- ...SessionUiHandlePendingUserInputResult.java | 27 --- ...sterDirectAutoModeSwitchHandlerParams.java | 27 --- ...sterDirectAutoModeSwitchHandlerResult.java | 27 --- ...sterDirectAutoModeSwitchHandlerParams.java | 29 --- ...sterDirectAutoModeSwitchHandlerResult.java | 27 --- .../sdk/generated/rpc/SessionUsageApi.java | 40 --- .../rpc/SessionUsageGetMetricsParams.java | 27 --- .../rpc/SessionUsageGetMetricsResult.java | 49 ---- .../rpc/SessionWorkingDirectoryContext.java | 41 ---- ...essionWorkingDirectoryContextHostType.java | 35 --- .../generated/rpc/SessionWorkspacesApi.java | 122 ---------- .../SessionWorkspacesCreateFileParams.java | 31 --- .../SessionWorkspacesGetWorkspaceParams.java | 27 --- .../SessionWorkspacesGetWorkspaceResult.java | 53 ---- ...essionWorkspacesListCheckpointsParams.java | 27 --- ...essionWorkspacesListCheckpointsResult.java | 28 --- .../rpc/SessionWorkspacesListFilesParams.java | 27 --- .../rpc/SessionWorkspacesListFilesResult.java | 28 --- ...SessionWorkspacesReadCheckpointParams.java | 29 --- ...SessionWorkspacesReadCheckpointResult.java | 27 --- .../rpc/SessionWorkspacesReadFileParams.java | 29 --- .../rpc/SessionWorkspacesReadFileResult.java | 27 --- ...SessionWorkspacesSaveLargePasteParams.java | 29 --- ...SessionWorkspacesSaveLargePasteResult.java | 39 --- .../rpc/SessionsBulkDeleteParams.java | 28 --- .../rpc/SessionsBulkDeleteResult.java | 28 --- .../rpc/SessionsCheckInUseParams.java | 28 --- .../rpc/SessionsCheckInUseResult.java | 28 --- .../generated/rpc/SessionsCloseParams.java | 27 --- .../generated/rpc/SessionsCloseResult.java | 24 -- .../generated/rpc/SessionsConnectParams.java | 27 --- .../generated/rpc/SessionsConnectResult.java | 29 --- .../rpc/SessionsEnrichMetadataParams.java | 28 --- .../rpc/SessionsEnrichMetadataResult.java | 28 --- .../rpc/SessionsFindByPrefixParams.java | 27 --- .../rpc/SessionsFindByPrefixResult.java | 27 --- .../rpc/SessionsFindByTaskIdParams.java | 27 --- .../rpc/SessionsFindByTaskIdResult.java | 27 --- .../sdk/generated/rpc/SessionsForkParams.java | 31 --- .../sdk/generated/rpc/SessionsForkResult.java | 29 --- .../rpc/SessionsGetEventFilePathParams.java | 27 --- .../rpc/SessionsGetEventFilePathResult.java | 27 --- .../rpc/SessionsGetLastForContextParams.java | 27 --- .../rpc/SessionsGetLastForContextResult.java | 27 --- ...ionsGetPersistedRemoteSteerableParams.java | 27 --- ...ionsGetPersistedRemoteSteerableResult.java | 27 --- .../generated/rpc/SessionsGetSizesResult.java | 28 --- .../sdk/generated/rpc/SessionsListResult.java | 28 --- .../SessionsLoadDeferredRepoHooksParams.java | 27 --- .../SessionsLoadDeferredRepoHooksResult.java | 30 --- .../generated/rpc/SessionsPruneOldParams.java | 34 --- .../generated/rpc/SessionsPruneOldResult.java | 36 --- .../rpc/SessionsReleaseLockParams.java | 27 --- .../rpc/SessionsReleaseLockResult.java | 24 -- .../rpc/SessionsReloadPluginHooksParams.java | 29 --- .../rpc/SessionsReloadPluginHooksResult.java | 24 -- .../sdk/generated/rpc/SessionsSaveParams.java | 27 --- .../sdk/generated/rpc/SessionsSaveResult.java | 24 -- .../SessionsSetAdditionalPluginsParams.java | 28 --- .../SessionsSetAdditionalPluginsResult.java | 24 -- .../sdk/generated/rpc/ShellKillSignal.java | 37 --- .../sdk/generated/rpc/ShutdownType.java | 35 --- .../copilot/sdk/generated/rpc/Skill.java | 39 --- .../sdk/generated/rpc/SkillSource.java | 45 ---- .../SkillsConfigSetDisabledSkillsParams.java | 28 --- .../generated/rpc/SkillsDiscoverParams.java | 30 --- .../generated/rpc/SkillsDiscoverResult.java | 28 --- .../sdk/generated/rpc/SkillsInvokedSkill.java | 36 --- .../sdk/generated/rpc/SlashCommandInfo.java | 40 --- .../sdk/generated/rpc/SlashCommandInput.java | 33 --- .../rpc/SlashCommandInputCompletion.java | 33 --- .../sdk/generated/rpc/SlashCommandKind.java | 37 --- .../copilot/sdk/generated/rpc/Tool.java | 36 --- .../sdk/generated/rpc/ToolsListParams.java | 27 --- .../sdk/generated/rpc/ToolsListResult.java | 28 --- .../rpc/UIAutoModeSwitchResponse.java | 37 --- .../generated/rpc/UIElicitationResponse.java | 30 --- .../rpc/UIElicitationResponseAction.java | 37 --- .../generated/rpc/UIElicitationSchema.java | 33 --- .../generated/rpc/UIExitPlanModeAction.java | 39 --- .../generated/rpc/UIExitPlanModeResponse.java | 33 --- .../rpc/UIHandlePendingSamplingResponse.java | 24 -- .../generated/rpc/UIUserInputResponse.java | 29 --- .../rpc/UsageMetricsCodeChanges.java | 34 --- .../rpc/UsageMetricsModelMetric.java | 34 --- .../rpc/UsageMetricsModelMetricRequests.java | 29 --- .../UsageMetricsModelMetricTokenDetail.java | 27 --- .../rpc/UsageMetricsModelMetricUsage.java | 35 --- .../rpc/UsageMetricsTokenDetail.java | 27 --- .../rpc/WorkspaceSummaryHostType.java | 35 --- .../generated/rpc/WorkspacesCheckpoints.java | 31 --- .../WorkspacesWorkspaceDetailsHostType.java | 35 --- src/site/markdown/advanced.md | 30 +-- src/site/markdown/documentation.md | 8 +- src/site/markdown/hooks.md | 10 +- 608 files changed, 68 insertions(+), 22489 deletions(-) delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AbortReason.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/HookEndError.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SkillSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java delete mode 100644 src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java diff --git a/.github/prompts/agentic-merge-reference-impl.prompt.md b/.github/prompts/agentic-merge-reference-impl.prompt.md index 579903b99..d5c3528b3 100644 --- a/.github/prompts/agentic-merge-reference-impl.prompt.md +++ b/.github/prompts/agentic-merge-reference-impl.prompt.md @@ -135,11 +135,11 @@ For each change in the reference implementation diff, determine: | reference implementation (.NET) | Java SDK Equivalent | |------------------------------------|--------------------------------------------------------| -| `dotnet/src/Client.cs` | `src/main/java/com/github/copilot/sdk/CopilotClient.java` | -| `dotnet/src/Session.cs` | `src/main/java/com/github/copilot/sdk/CopilotSession.java` | -| `dotnet/src/Types.cs` | `src/main/java/com/github/copilot/sdk/types/*.java` | +| `dotnet/src/Client.cs` | `src/main/java/com/github/copilot/CopilotClient.java` | +| `dotnet/src/Session.cs` | `src/main/java/com/github/copilot/CopilotSession.java` | +| `dotnet/src/Types.cs` | `src/main/java/com/github/copilot/types/*.java` | | `dotnet/src/Generated/*.cs` | ❌ **DO NOT TOUCH** `src/generated/java/**` — see top of this file | -| `dotnet/test/*.cs` | `src/test/java/com/github/copilot/sdk/*Test.java` | +| `dotnet/test/*.cs` | `src/test/java/com/github/copilot/*Test.java` | | `docs/getting-started.md` | `README.md` and `src/site/markdown/*.md` | | `docs/*.md` (new files) | `src/site/markdown/*.md` + update `src/site/site.xml` | | `sdk-protocol-version.json` | (embedded in Java code or resource file) | @@ -230,7 +230,7 @@ git diff "$LAST_REFERENCE_IMPL_COMMIT"..origin/main --stat -- test/snapshots/ For each new or modified test file in `dotnet/test/`: -1. **Create corresponding Java test class** in `src/test/java/com/github/copilot/sdk/` +1. **Create corresponding Java test class** in `src/test/java/com/github/copilot/` 2. **Follow existing test patterns** - Look at existing tests like `PermissionsTest.java` for structure 3. **Use the E2ETestContext** infrastructure for tests that need the test harness 4. **Match snapshot directory names** - Test snapshots in `test/snapshots/` must match the directory name used in `ctx.configureForTest()` @@ -239,10 +239,10 @@ For each new or modified test file in `dotnet/test/`: | reference implementation Test (.NET) | Java SDK Test | |-----------------------------|--------------------------------------------------------| -| `dotnet/test/AskUserTests.cs` | `src/test/java/com/github/copilot/sdk/AskUserTest.java` | -| `dotnet/test/HooksTests.cs` | `src/test/java/com/github/copilot/sdk/HooksTest.java` | -| `dotnet/test/ClientTests.cs` | `src/test/java/com/github/copilot/sdk/CopilotClientTest.java` | -| `dotnet/test/*Tests.cs` | `src/test/java/com/github/copilot/sdk/*Test.java` | +| `dotnet/test/AskUserTests.cs` | `src/test/java/com/github/copilot/AskUserTest.java` | +| `dotnet/test/HooksTests.cs` | `src/test/java/com/github/copilot/HooksTest.java` | +| `dotnet/test/ClientTests.cs` | `src/test/java/com/github/copilot/CopilotClientTest.java` | +| `dotnet/test/*Tests.cs` | `src/test/java/com/github/copilot/*Test.java` | ### Test Snapshot Compatibility @@ -353,7 +353,7 @@ var session = client.createSession( Explain the request/response objects and their properties. -See [FeatureHandler](apidocs/com/github/copilot/sdk/json/FeatureHandler.html) Javadoc for more details. +See [FeatureHandler](apidocs/com/github/copilot/rpc/FeatureHandler.html) Javadoc for more details. ``` ### Verify Documentation Consistency diff --git a/.github/prompts/documentation-coverage.prompt.md b/.github/prompts/documentation-coverage.prompt.md index 80284c6a9..cc627e1f3 100644 --- a/.github/prompts/documentation-coverage.prompt.md +++ b/.github/prompts/documentation-coverage.prompt.md @@ -17,13 +17,13 @@ Extract all public classes, methods, and features from the SDK: ```bash # List all public classes in core package -grep -l "public class\|public interface\|public enum" src/main/java/com/github/copilot/sdk/*.java +grep -l "public class\|public interface\|public enum" src/main/java/com/github/copilot/*.java # List all public classes in json package (DTOs) -grep -l "public class" src/main/java/com/github/copilot/sdk/json/*.java +grep -l "public class" src/main/java/com/github/copilot/rpc/*.java # List all event types -ls src/main/java/com/github/copilot/sdk/events/ +ls src/main/java/com/github/copilot/events/ ``` ### Step 2: Inventory Documentation @@ -45,7 +45,7 @@ For each major feature area, determine if it's documented: Examine `CopilotClient.java` for public methods: ```bash -grep "public.*(" src/main/java/com/github/copilot/sdk/CopilotClient.java | grep -v "@" +grep "public.*(" src/main/java/com/github/copilot/CopilotClient.java | grep -v "@" ``` | Method | Purpose | Documented In | Status | @@ -66,7 +66,7 @@ grep "public.*(" src/main/java/com/github/copilot/sdk/CopilotClient.java | grep Examine `CopilotSession.java` for public methods: ```bash -grep "public.*(" src/main/java/com/github/copilot/sdk/CopilotSession.java | grep -v "@" +grep "public.*(" src/main/java/com/github/copilot/CopilotSession.java | grep -v "@" ``` | Method | Purpose | Documented In | Status | @@ -83,7 +83,7 @@ grep "public.*(" src/main/java/com/github/copilot/sdk/CopilotSession.java | grep Examine `SessionConfig.java` for configurable options: ```bash -grep "public.*set\|private.*;" src/main/java/com/github/copilot/sdk/json/SessionConfig.java +grep "public.*set\|private.*;" src/main/java/com/github/copilot/rpc/SessionConfig.java ``` | Option | Purpose | Documented | Example Provided | @@ -103,7 +103,7 @@ grep "public.*set\|private.*;" src/main/java/com/github/copilot/sdk/json/Session Check which events are documented: ```bash -grep "TYPE_MAP.put" src/main/java/com/github/copilot/sdk/events/SessionEventParser.java +grep "TYPE_MAP.put" src/main/java/com/github/copilot/events/SessionEventParser.java ``` | Event Type | Event Class | Documented | Example | @@ -118,7 +118,7 @@ grep "TYPE_MAP.put" src/main/java/com/github/copilot/sdk/events/SessionEventPars Check `SessionHooks.java` for hook types: ```bash -grep "private.*Handler" src/main/java/com/github/copilot/sdk/json/SessionHooks.java +grep "private.*Handler" src/main/java/com/github/copilot/rpc/SessionHooks.java ``` | Hook | Handler Interface | Documented | Example | @@ -193,11 +193,11 @@ Topics that warrant dedicated documentation: ## Key Files ### Source Code -- `src/main/java/com/github/copilot/sdk/CopilotClient.java` -- `src/main/java/com/github/copilot/sdk/CopilotSession.java` -- `src/main/java/com/github/copilot/sdk/json/SessionConfig.java` -- `src/main/java/com/github/copilot/sdk/json/SessionHooks.java` -- `src/main/java/com/github/copilot/sdk/events/SessionEventParser.java` +- `src/main/java/com/github/copilot/CopilotClient.java` +- `src/main/java/com/github/copilot/CopilotSession.java` +- `src/main/java/com/github/copilot/rpc/SessionConfig.java` +- `src/main/java/com/github/copilot/rpc/SessionHooks.java` +- `src/main/java/com/github/copilot/events/SessionEventParser.java` ### Documentation - `src/site/markdown/index.md` - Landing page diff --git a/.github/prompts/test-coverage-assessment.prompt.md b/.github/prompts/test-coverage-assessment.prompt.md index c2dc3b0c4..6233ad099 100644 --- a/.github/prompts/test-coverage-assessment.prompt.md +++ b/.github/prompts/test-coverage-assessment.prompt.md @@ -17,10 +17,10 @@ First, examine the source code to identify all components that should be tested: ```bash # List all event classes -ls src/main/java/com/github/copilot/sdk/events/ +ls src/main/java/com/github/copilot/events/ # Check the event type mapping in SessionEventParser -grep -n "TYPE_MAP.put" src/main/java/com/github/copilot/sdk/events/SessionEventParser.java +grep -n "TYPE_MAP.put" src/main/java/com/github/copilot/events/SessionEventParser.java ``` Extract the list of all registered event types from `SessionEventParser.java`. @@ -30,7 +30,7 @@ Extract the list of all registered event types from `SessionEventParser.java`. Check `SessionHooks.java` for all available hook handlers: ```bash -grep -E "private.*Handler" src/main/java/com/github/copilot/sdk/json/SessionHooks.java +grep -E "private.*Handler" src/main/java/com/github/copilot/rpc/SessionHooks.java ``` ### Step 3: Analyze Existing Tests @@ -39,13 +39,13 @@ Examine the test files to understand current coverage: ```bash # List all test files -ls src/test/java/com/github/copilot/sdk/ +ls src/test/java/com/github/copilot/ # Check for event-related tests -grep -r "import.*events\." src/test/java/com/github/copilot/sdk/ | grep -v "\.class" +grep -r "import.*events\." src/test/java/com/github/copilot/ | grep -v "\.class" # Check for hook tests -grep -l "SessionHooks\|Hook" src/test/java/com/github/copilot/sdk/*.java +grep -l "SessionHooks\|Hook" src/test/java/com/github/copilot/*.java ``` ### Step 4: Categorize Test Coverage @@ -95,13 +95,13 @@ Prioritized list of tests to add: ## Key Files to Examine -- `src/main/java/com/github/copilot/sdk/events/SessionEventParser.java` - Event type registry -- `src/main/java/com/github/copilot/sdk/json/SessionHooks.java` - Hook definitions -- `src/main/java/com/github/copilot/sdk/CopilotSession.java` - Hook handling logic -- `src/test/java/com/github/copilot/sdk/SessionEventParserTest.java` - Event parsing tests -- `src/test/java/com/github/copilot/sdk/SessionEventsE2ETest.java` - Event E2E tests -- `src/test/java/com/github/copilot/sdk/HooksTest.java` - Hook tests -- `src/test/java/com/github/copilot/sdk/SessionEventHandlingTest.java` - Event handling tests +- `src/main/java/com/github/copilot/events/SessionEventParser.java` - Event type registry +- `src/main/java/com/github/copilot/rpc/SessionHooks.java` - Hook definitions +- `src/main/java/com/github/copilot/CopilotSession.java` - Hook handling logic +- `src/test/java/com/github/copilot/SessionEventParserTest.java` - Event parsing tests +- `src/test/java/com/github/copilot/SessionEventsE2ETest.java` - Event E2E tests +- `src/test/java/com/github/copilot/HooksTest.java` - Hook tests +- `src/test/java/com/github/copilot/SessionEventHandlingTest.java` - Event handling tests ## Verification diff --git a/.github/workflows/codegen-agentic-fix.md b/.github/workflows/codegen-agentic-fix.md index b4aa0a8f2..948524999 100644 --- a/.github/workflows/codegen-agentic-fix.md +++ b/.github/workflows/codegen-agentic-fix.md @@ -177,7 +177,7 @@ For each attempt: 2. **Read the generated types** to understand what changed. Check the generated files that the handwritten code references: ```bash # Example: check what a generated type looks like now - cat src/generated/java/com/github/copilot/sdk/generated/rpc/.java + cat src/generated/java/com/github/copilot/generated/rpc/.java ``` 3. **Fix the affected source files.** You may modify files under: diff --git a/.github/workflows/update-copilot-dependency.yml b/.github/workflows/update-copilot-dependency.yml index d29da6acb..e6d76c212 100644 --- a/.github/workflows/update-copilot-dependency.yml +++ b/.github/workflows/update-copilot-dependency.yml @@ -61,7 +61,7 @@ jobs: cat > /tmp/verify-codegen-prompt.txt << 'PROMPT_EOF' You are running inside the copilot-sdk-java repository. The code generator has just run and produced Java source files under - src/generated/java/com/github/copilot/sdk/generated/rpc/. + src/generated/java/com/github/copilot/generated/rpc/. Your task is to spot-check the generated API classes against the source JSON schema to verify the generator produced correct output. @@ -74,9 +74,9 @@ jobs: scripts/codegen/node_modules/@github/copilot/schemas/api.schema.json 2. Pick these 3 generated API classes to verify: - - src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java - - src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java - - src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java + - src/generated/java/com/github/copilot/generated/rpc/SessionToolsApi.java + - src/generated/java/com/github/copilot/generated/rpc/SessionUiApi.java + - src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsApi.java 3. For each class, verify: - Every RPC method in the schema's corresponding namespace has a diff --git a/scripts/codegen/java.ts b/scripts/codegen/java.ts index a17ff2f68..64fc463a0 100644 --- a/scripts/codegen/java.ts +++ b/scripts/codegen/java.ts @@ -359,7 +359,7 @@ async function generateSessionEvents(schemaPath: string): Promise { const variants = extractEventVariants(schema); const packageName = "com.github.copilot.generated"; - const packageDir = `src/generated/java/com/github/copilot/sdk/generated`; + const packageDir = `src/generated/java/com/github/copilot/generated`; // Generate base SessionEvent class await generateSessionEventBaseClass(variants, packageName, packageDir); @@ -941,7 +941,7 @@ async function generateRpcTypes(schemaPath: string): Promise { } const packageName = "com.github.copilot.generated.rpc"; - const packageDir = `src/generated/java/com/github/copilot/sdk/generated/rpc`; + const packageDir = `src/generated/java/com/github/copilot/generated/rpc`; // Collect all RPC methods from all sections const sections: [string, Record][] = []; @@ -1563,7 +1563,7 @@ async function generateRpcWrappers(schemaPath: string): Promise { currentDefinitions = (schema.definitions ?? {}) as Record; const packageName = "com.github.copilot.generated.rpc"; - const packageDir = `src/generated/java/com/github/copilot/sdk/generated/rpc`; + const packageDir = `src/generated/java/com/github/copilot/generated/rpc`; // RpcCaller interface and shared ObjectMapper holder await generateRpcCallerInterface(packageName, packageDir); diff --git a/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java deleted file mode 100644 index e58922aa0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AbortEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "abort". Turn abort information including the reason for termination - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AbortEvent extends SessionEvent { - - @Override - public String getType() { return "abort"; } - - @JsonProperty("data") - private AbortEventData data; - - public AbortEventData getData() { return data; } - public void setData(AbortEventData data) { this.data = data; } - - /** Data payload for {@link AbortEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AbortEventData( - /** Finite reason code describing why the current turn was aborted */ - @JsonProperty("reason") AbortReason reason - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java b/src/generated/java/com/github/copilot/sdk/generated/AbortReason.java deleted file mode 100644 index 2ffbdb8d8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AbortReason.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; - -/** - * Finite reason code describing why the current turn was aborted - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AbortReason { - /** The {@code user_initiated} variant. */ - USER_INITIATED("user_initiated"), - /** The {@code remote_command} variant. */ - REMOTE_COMMAND("remote_command"), - /** The {@code user_abort} variant. */ - USER_ABORT("user_abort"); - - private final String value; - AbortReason(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AbortReason fromValue(String value) { - for (AbortReason v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AbortReason value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java deleted file mode 100644 index 49de4cda2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantIntentEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "assistant.intent". Agent intent description for current activity or plan - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantIntentEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.intent"; } - - @JsonProperty("data") - private AssistantIntentEventData data; - - public AssistantIntentEventData getData() { return data; } - public void setData(AssistantIntentEventData data) { this.data = data; } - - /** Data payload for {@link AssistantIntentEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantIntentEventData( - /** Short description of what the agent is currently doing or planning to do */ - @JsonProperty("intent") String intent - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java deleted file mode 100644 index cdc0e3e26..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageDeltaEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "assistant.message_delta". Streaming assistant message delta for incremental response updates - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantMessageDeltaEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.message_delta"; } - - @JsonProperty("data") - private AssistantMessageDeltaEventData data; - - public AssistantMessageDeltaEventData getData() { return data; } - public void setData(AssistantMessageDeltaEventData data) { this.data = data; } - - /** Data payload for {@link AssistantMessageDeltaEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantMessageDeltaEventData( - /** Message ID this delta belongs to, matching the corresponding assistant.message event */ - @JsonProperty("messageId") String messageId, - /** Incremental text chunk to append to the message content */ - @JsonProperty("deltaContent") String deltaContent, - /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ - @JsonProperty("parentToolCallId") String parentToolCallId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java deleted file mode 100644 index 74d531008..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java +++ /dev/null @@ -1,71 +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; - -/** - * Session event "assistant.message". Assistant response containing text content, optional tool requests, and interaction metadata - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantMessageEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.message"; } - - @JsonProperty("data") - private AssistantMessageEventData data; - - public AssistantMessageEventData getData() { return data; } - public void setData(AssistantMessageEventData data) { this.data = data; } - - /** Data payload for {@link AssistantMessageEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantMessageEventData( - /** Unique identifier for this assistant message */ - @JsonProperty("messageId") String messageId, - /** Model that produced this assistant message, if known */ - @JsonProperty("model") String model, - /** The assistant's text response content */ - @JsonProperty("content") String content, - /** Tool invocations requested by the assistant in this message */ - @JsonProperty("toolRequests") List toolRequests, - /** Opaque/encrypted extended thinking data from Anthropic models. Session-bound and stripped on resume. */ - @JsonProperty("reasoningOpaque") String reasoningOpaque, - /** Readable reasoning text from the model's extended thinking */ - @JsonProperty("reasoningText") String reasoningText, - /** Encrypted reasoning content from OpenAI models. Session-bound and stripped on resume. */ - @JsonProperty("encryptedContent") String encryptedContent, - /** Generation phase for phased-output models (e.g., thinking vs. response phases) */ - @JsonProperty("phase") String phase, - /** Actual output token count from the API response (completion_tokens), used for accurate token accounting */ - @JsonProperty("outputTokens") Long outputTokens, - /** CAPI interaction ID for correlating this message with upstream telemetry */ - @JsonProperty("interactionId") String interactionId, - /** GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs */ - @JsonProperty("requestId") String requestId, - /** Raw Anthropic content array with advisor blocks (server_tool_use, advisor_tool_result) for verbatim round-tripping */ - @JsonProperty("anthropicAdvisorBlocks") List anthropicAdvisorBlocks, - /** Anthropic advisor model ID used for this response, for timeline display on replay */ - @JsonProperty("anthropicAdvisorModel") String anthropicAdvisorModel, - /** Identifier for the agent loop turn that produced this message, matching the corresponding assistant.turn_start event */ - @JsonProperty("turnId") String turnId, - /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ - @JsonProperty("parentToolCallId") String parentToolCallId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java deleted file mode 100644 index f85e33b88..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageStartEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "assistant.message_start". Streaming assistant message start metadata - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantMessageStartEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.message_start"; } - - @JsonProperty("data") - private AssistantMessageStartEventData data; - - public AssistantMessageStartEventData getData() { return data; } - public void setData(AssistantMessageStartEventData data) { this.data = data; } - - /** Data payload for {@link AssistantMessageStartEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantMessageStartEventData( - /** Message ID this start event belongs to, matching subsequent deltas and assistant.message */ - @JsonProperty("messageId") String messageId, - /** Generation phase this message belongs to for phased-output models */ - @JsonProperty("phase") String phase - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java deleted file mode 100644 index 201373401..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequest.java +++ /dev/null @@ -1,41 +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; - -/** - * A tool invocation request from the assistant - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AssistantMessageToolRequest( - /** Unique identifier for this tool call */ - @JsonProperty("toolCallId") String toolCallId, - /** Name of the tool being invoked */ - @JsonProperty("name") String name, - /** Arguments to pass to the tool, format depends on the tool */ - @JsonProperty("arguments") Object arguments, - /** Tool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. Defaults to "function" when absent. */ - @JsonProperty("type") AssistantMessageToolRequestType type, - /** Human-readable display title for the tool */ - @JsonProperty("toolTitle") String toolTitle, - /** Name of the MCP server hosting this tool, when the tool is an MCP tool */ - @JsonProperty("mcpServerName") String mcpServerName, - /** Original tool name on the MCP server, when the tool is an MCP tool */ - @JsonProperty("mcpToolName") String mcpToolName, - /** Resolved intention summary describing what this specific call does */ - @JsonProperty("intentionSummary") String intentionSummary -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.java deleted file mode 100644 index acf6df7b4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantMessageToolRequestType.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; - -/** - * Tool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. Defaults to "function" when absent. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AssistantMessageToolRequestType { - /** The {@code function} variant. */ - FUNCTION("function"), - /** The {@code custom} variant. */ - CUSTOM("custom"); - - private final String value; - AssistantMessageToolRequestType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AssistantMessageToolRequestType fromValue(String value) { - for (AssistantMessageToolRequestType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AssistantMessageToolRequestType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java deleted file mode 100644 index f9d8b25b4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningDeltaEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "assistant.reasoning_delta". Streaming reasoning delta for incremental extended thinking updates - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantReasoningDeltaEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.reasoning_delta"; } - - @JsonProperty("data") - private AssistantReasoningDeltaEventData data; - - public AssistantReasoningDeltaEventData getData() { return data; } - public void setData(AssistantReasoningDeltaEventData data) { this.data = data; } - - /** Data payload for {@link AssistantReasoningDeltaEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantReasoningDeltaEventData( - /** Reasoning block ID this delta belongs to, matching the corresponding assistant.reasoning event */ - @JsonProperty("reasoningId") String reasoningId, - /** Incremental text chunk to append to the reasoning content */ - @JsonProperty("deltaContent") String deltaContent - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java deleted file mode 100644 index d84b40058..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantReasoningEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "assistant.reasoning". Assistant reasoning content for timeline display with complete thinking text - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantReasoningEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.reasoning"; } - - @JsonProperty("data") - private AssistantReasoningEventData data; - - public AssistantReasoningEventData getData() { return data; } - public void setData(AssistantReasoningEventData data) { this.data = data; } - - /** Data payload for {@link AssistantReasoningEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantReasoningEventData( - /** Unique identifier for this reasoning block */ - @JsonProperty("reasoningId") String reasoningId, - /** The complete extended thinking text from the model */ - @JsonProperty("content") String content - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java deleted file mode 100644 index e5eae1897..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantStreamingDeltaEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "assistant.streaming_delta". Streaming response progress with cumulative byte count - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantStreamingDeltaEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.streaming_delta"; } - - @JsonProperty("data") - private AssistantStreamingDeltaEventData data; - - public AssistantStreamingDeltaEventData getData() { return data; } - public void setData(AssistantStreamingDeltaEventData data) { this.data = data; } - - /** Data payload for {@link AssistantStreamingDeltaEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantStreamingDeltaEventData( - /** Cumulative total bytes received from the streaming response so far */ - @JsonProperty("totalResponseSizeBytes") Long totalResponseSizeBytes - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java deleted file mode 100644 index fa245915b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnEndEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "assistant.turn_end". Turn completion metadata including the turn identifier - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantTurnEndEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.turn_end"; } - - @JsonProperty("data") - private AssistantTurnEndEventData data; - - public AssistantTurnEndEventData getData() { return data; } - public void setData(AssistantTurnEndEventData data) { this.data = data; } - - /** Data payload for {@link AssistantTurnEndEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantTurnEndEventData( - /** Identifier of the turn that has ended, matching the corresponding assistant.turn_start event */ - @JsonProperty("turnId") String turnId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java deleted file mode 100644 index f090117bf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantTurnStartEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "assistant.turn_start". Turn initialization metadata including identifier and interaction tracking - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantTurnStartEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.turn_start"; } - - @JsonProperty("data") - private AssistantTurnStartEventData data; - - public AssistantTurnStartEventData getData() { return data; } - public void setData(AssistantTurnStartEventData data) { this.data = data; } - - /** Data payload for {@link AssistantTurnStartEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantTurnStartEventData( - /** Identifier for this turn within the agentic loop, typically a stringified turn number */ - @JsonProperty("turnId") String turnId, - /** CAPI interaction ID for correlating this turn with upstream telemetry */ - @JsonProperty("interactionId") String interactionId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java deleted file mode 100644 index 9f94c4a6e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageApiEndpoint.java +++ /dev/null @@ -1,39 +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; - -/** - * API endpoint used for this model call, matching CAPI supported_endpoints vocabulary - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AssistantUsageApiEndpoint { - /** The {@code /chat/completions} variant. */ - CHAT_COMPLETIONS("/chat/completions"), - /** The {@code /v1/messages} variant. */ - V1_MESSAGES("/v1/messages"), - /** The {@code /responses} variant. */ - RESPONSES("/responses"), - /** The {@code ws:/responses} variant. */ - WS_RESPONSES("ws:/responses"); - - private final String value; - AssistantUsageApiEndpoint(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AssistantUsageApiEndpoint fromValue(String value) { - for (AssistantUsageApiEndpoint v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AssistantUsageApiEndpoint value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java deleted file mode 100644 index e9db8a530..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsage.java +++ /dev/null @@ -1,30 +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; - -/** - * Per-request cost and usage data from the CAPI copilot_usage response field - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AssistantUsageCopilotUsage( - /** Itemized token usage breakdown */ - @JsonProperty("tokenDetails") List tokenDetails, - /** Total cost in nano-AI units for this request */ - @JsonProperty("totalNanoAiu") Double totalNanoAiu -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java deleted file mode 100644 index 9354568c7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageCopilotUsageTokenDetail.java +++ /dev/null @@ -1,33 +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; - -/** - * Token usage detail for a single billing category - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AssistantUsageCopilotUsageTokenDetail( - /** Number of tokens in this billing batch */ - @JsonProperty("batchSize") Long batchSize, - /** Cost per batch of tokens */ - @JsonProperty("costPerBatch") Long costPerBatch, - /** Total token count for this entry */ - @JsonProperty("tokenCount") Long tokenCount, - /** Token category (e.g., "input", "output") */ - @JsonProperty("tokenType") String tokenType -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java deleted file mode 100644 index 24b74c54f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageEvent.java +++ /dev/null @@ -1,77 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Session event "assistant.usage". LLM API call usage metrics including tokens, costs, quotas, and billing information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AssistantUsageEvent extends SessionEvent { - - @Override - public String getType() { return "assistant.usage"; } - - @JsonProperty("data") - private AssistantUsageEventData data; - - public AssistantUsageEventData getData() { return data; } - public void setData(AssistantUsageEventData data) { this.data = data; } - - /** Data payload for {@link AssistantUsageEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AssistantUsageEventData( - /** Model identifier used for this API call */ - @JsonProperty("model") String model, - /** Number of input tokens consumed */ - @JsonProperty("inputTokens") Long inputTokens, - /** Number of output tokens produced */ - @JsonProperty("outputTokens") Long outputTokens, - /** Number of tokens read from prompt cache */ - @JsonProperty("cacheReadTokens") Long cacheReadTokens, - /** Number of tokens written to prompt cache */ - @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, - /** Number of output tokens used for reasoning (e.g., chain-of-thought) */ - @JsonProperty("reasoningTokens") Long reasoningTokens, - /** Model multiplier cost for billing purposes */ - @JsonProperty("cost") Double cost, - /** Duration of the API call in milliseconds */ - @JsonProperty("duration") Long duration, - /** Time to first token in milliseconds. Only available for streaming requests */ - @JsonProperty("timeToFirstTokenMs") Long timeToFirstTokenMs, - /** Average inter-token latency in milliseconds. Only available for streaming requests */ - @JsonProperty("interTokenLatencyMs") Double interTokenLatencyMs, - /** What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls */ - @JsonProperty("initiator") String initiator, - /** Completion ID from the model provider (e.g., chatcmpl-abc123) */ - @JsonProperty("apiCallId") String apiCallId, - /** GitHub request tracing ID (x-github-request-id header) for server-side log correlation */ - @JsonProperty("providerCallId") String providerCallId, - /** API endpoint used for this model call, matching CAPI supported_endpoints vocabulary */ - @JsonProperty("apiEndpoint") AssistantUsageApiEndpoint apiEndpoint, - /** Parent tool call ID when this usage originates from a sub-agent */ - @JsonProperty("parentToolCallId") String parentToolCallId, - /** Per-quota resource usage snapshots, keyed by quota identifier */ - @JsonProperty("quotaSnapshots") Map quotaSnapshots, - /** Per-request cost and usage data from the CAPI copilot_usage response field */ - @JsonProperty("copilotUsage") AssistantUsageCopilotUsage copilotUsage, - /** Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max") */ - @JsonProperty("reasoningEffort") String reasoningEffort - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java b/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java deleted file mode 100644 index 167f42040..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AssistantUsageQuotaSnapshot.java +++ /dev/null @@ -1,42 +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.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Schema for the `AssistantUsageQuotaSnapshot` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AssistantUsageQuotaSnapshot( - /** Whether the user has an unlimited usage entitlement */ - @JsonProperty("isUnlimitedEntitlement") Boolean isUnlimitedEntitlement, - /** Total requests allowed by the entitlement */ - @JsonProperty("entitlementRequests") Long entitlementRequests, - /** Number of requests already consumed */ - @JsonProperty("usedRequests") Long usedRequests, - /** Whether usage is still permitted after quota exhaustion */ - @JsonProperty("usageAllowedWithExhaustedQuota") Boolean usageAllowedWithExhaustedQuota, - /** Number of additional usage requests made this period */ - @JsonProperty("overage") Double overage, - /** Whether additional usage is allowed when quota is exhausted */ - @JsonProperty("overageAllowedWithExhaustedQuota") Boolean overageAllowedWithExhaustedQuota, - /** Percentage of quota remaining (0 to 100) */ - @JsonProperty("remainingPercentage") Double remainingPercentage, - /** Date when the quota resets */ - @JsonProperty("resetDate") OffsetDateTime resetDate -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java deleted file mode 100644 index 76a35dbb7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchCompletedEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "auto_mode_switch.completed". Auto mode switch completion notification - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AutoModeSwitchCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "auto_mode_switch.completed"; } - - @JsonProperty("data") - private AutoModeSwitchCompletedEventData data; - - public AutoModeSwitchCompletedEventData getData() { return data; } - public void setData(AutoModeSwitchCompletedEventData data) { this.data = data; } - - /** Data payload for {@link AutoModeSwitchCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AutoModeSwitchCompletedEventData( - /** Request ID of the resolved request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId, - /** The user's auto-mode-switch choice */ - @JsonProperty("response") AutoModeSwitchResponse response - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java deleted file mode 100644 index 79fc5c316..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchRequestedEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "auto_mode_switch.requested". Auto mode switch request notification requiring user approval - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class AutoModeSwitchRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "auto_mode_switch.requested"; } - - @JsonProperty("data") - private AutoModeSwitchRequestedEventData data; - - public AutoModeSwitchRequestedEventData getData() { return data; } - public void setData(AutoModeSwitchRequestedEventData data) { this.data = data; } - - /** Data payload for {@link AutoModeSwitchRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record AutoModeSwitchRequestedEventData( - /** Unique identifier for this request; used to respond via session.respondToAutoModeSwitch() */ - @JsonProperty("requestId") String requestId, - /** The rate limit error code that triggered this request */ - @JsonProperty("errorCode") String errorCode, - /** Seconds until the rate limit resets, when known. Lets clients render a humanized reset time alongside the prompt. */ - @JsonProperty("retryAfterSeconds") Long retryAfterSeconds - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java b/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.java deleted file mode 100644 index 46745b66e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/AutoModeSwitchResponse.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; - -/** - * The user's auto-mode-switch choice - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AutoModeSwitchResponse { - /** The {@code yes} variant. */ - YES("yes"), - /** The {@code yes_always} variant. */ - YES_ALWAYS("yes_always"), - /** The {@code no} variant. */ - NO("no"); - - private final String value; - AutoModeSwitchResponse(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AutoModeSwitchResponse fromValue(String value) { - for (AutoModeSwitchResponse v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AutoModeSwitchResponse value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java deleted file mode 100644 index 8f0d0809f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "capabilities.changed". Session capability change notification - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class CapabilitiesChangedEvent extends SessionEvent { - - @Override - public String getType() { return "capabilities.changed"; } - - @JsonProperty("data") - private CapabilitiesChangedEventData data; - - public CapabilitiesChangedEventData getData() { return data; } - public void setData(CapabilitiesChangedEventData data) { this.data = data; } - - /** Data payload for {@link CapabilitiesChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record CapabilitiesChangedEventData( - /** UI capability changes */ - @JsonProperty("ui") CapabilitiesChangedUI ui - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java b/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.java deleted file mode 100644 index 89c211f6c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CapabilitiesChangedUI.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; - -/** - * UI capability changes - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CapabilitiesChangedUI( - /** Whether elicitation is now supported */ - @JsonProperty("elicitation") Boolean elicitation -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java deleted file mode 100644 index a334edbb1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandCompletedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "command.completed". Queued command completion notification signaling UI dismissal - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class CommandCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "command.completed"; } - - @JsonProperty("data") - private CommandCompletedEventData data; - - public CommandCompletedEventData getData() { return data; } - public void setData(CommandCompletedEventData data) { this.data = data; } - - /** Data payload for {@link CommandCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record CommandCompletedEventData( - /** Request ID of the resolved command request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java deleted file mode 100644 index efd840bbd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandExecuteEvent.java +++ /dev/null @@ -1,48 +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; - -/** - * Session event "command.execute". Registered command dispatch request routed to the owning client - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class CommandExecuteEvent extends SessionEvent { - - @Override - public String getType() { return "command.execute"; } - - @JsonProperty("data") - private CommandExecuteEventData data; - - public CommandExecuteEventData getData() { return data; } - public void setData(CommandExecuteEventData data) { this.data = data; } - - /** Data payload for {@link CommandExecuteEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record CommandExecuteEventData( - /** Unique identifier; used to respond via session.commands.handlePendingCommand() */ - @JsonProperty("requestId") String requestId, - /** The full command text (e.g., /deploy production) */ - @JsonProperty("command") String command, - /** Command name without leading / */ - @JsonProperty("commandName") String commandName, - /** Raw argument string after the command name */ - @JsonProperty("args") String args - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java deleted file mode 100644 index 518248aa9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandQueuedEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "command.queued". Queued slash command dispatch request for client execution - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class CommandQueuedEvent extends SessionEvent { - - @Override - public String getType() { return "command.queued"; } - - @JsonProperty("data") - private CommandQueuedEventData data; - - public CommandQueuedEventData getData() { return data; } - public void setData(CommandQueuedEventData data) { this.data = data; } - - /** Data payload for {@link CommandQueuedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record CommandQueuedEventData( - /** Unique identifier for this request; used to respond via session.respondToQueuedCommand() */ - @JsonProperty("requestId") String requestId, - /** The slash command text to be executed (e.g., /help, /clear) */ - @JsonProperty("command") String command - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java b/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.java deleted file mode 100644 index 383f141fc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedCommand.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 `CommandsChangedCommand` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CommandsChangedCommand( - /** Slash command name without the leading slash. */ - @JsonProperty("name") String name, - /** Optional human-readable command description. */ - @JsonProperty("description") String description -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.java deleted file mode 100644 index a3f8fba19..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CommandsChangedEvent.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 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; - -/** - * Session event "commands.changed". SDK command registration change notification - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class CommandsChangedEvent extends SessionEvent { - - @Override - public String getType() { return "commands.changed"; } - - @JsonProperty("data") - private CommandsChangedEventData data; - - public CommandsChangedEventData getData() { return data; } - public void setData(CommandsChangedEventData data) { this.data = data; } - - /** Data payload for {@link CommandsChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record CommandsChangedEventData( - /** Current list of registered SDK commands */ - @JsonProperty("commands") List commands - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java deleted file mode 100644 index ed454deaf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsed.java +++ /dev/null @@ -1,39 +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; - -/** - * Token usage breakdown for the compaction LLM call (aligned with assistant.usage format) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CompactionCompleteCompactionTokensUsed( - /** Input tokens consumed by the compaction LLM call */ - @JsonProperty("inputTokens") Long inputTokens, - /** Output tokens produced by the compaction LLM call */ - @JsonProperty("outputTokens") Long outputTokens, - /** Cached input tokens reused in the compaction LLM call */ - @JsonProperty("cacheReadTokens") Long cacheReadTokens, - /** Tokens written to prompt cache in the compaction LLM call */ - @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, - /** Per-request cost and usage data from the CAPI copilot_usage response field */ - @JsonProperty("copilotUsage") CompactionCompleteCompactionTokensUsedCopilotUsage copilotUsage, - /** Duration of the compaction LLM call in milliseconds */ - @JsonProperty("duration") Long duration, - /** Model identifier used for the compaction LLM call */ - @JsonProperty("model") String model -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java deleted file mode 100644 index 886229cc6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsage.java +++ /dev/null @@ -1,30 +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; - -/** - * Per-request cost and usage data from the CAPI copilot_usage response field - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CompactionCompleteCompactionTokensUsedCopilotUsage( - /** Itemized token usage breakdown */ - @JsonProperty("tokenDetails") List tokenDetails, - /** Total cost in nano-AI units for this request */ - @JsonProperty("totalNanoAiu") Double totalNanoAiu -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java deleted file mode 100644 index 83209f94c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail.java +++ /dev/null @@ -1,33 +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; - -/** - * Token usage detail for a single billing category - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail( - /** Number of tokens in this billing batch */ - @JsonProperty("batchSize") Long batchSize, - /** Cost per batch of tokens */ - @JsonProperty("costPerBatch") Long costPerBatch, - /** Total token count for this entry */ - @JsonProperty("tokenCount") Long tokenCount, - /** Token category (e.g., "input", "output") */ - @JsonProperty("tokenType") String tokenType -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java b/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java deleted file mode 100644 index 642be8694..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/CustomAgentsUpdatedAgent.java +++ /dev/null @@ -1,42 +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; - -/** - * Schema for the `CustomAgentsUpdatedAgent` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CustomAgentsUpdatedAgent( - /** Unique identifier for the agent */ - @JsonProperty("id") String id, - /** Internal name of the agent */ - @JsonProperty("name") String name, - /** Human-readable display name */ - @JsonProperty("displayName") String displayName, - /** Description of what the agent does */ - @JsonProperty("description") String description, - /** Source location: user, project, inherited, remote, or plugin */ - @JsonProperty("source") String source, - /** List of tool names available to this agent, or null when all tools are available */ - @JsonProperty("tools") List tools, - /** Whether the agent can be selected by the user */ - @JsonProperty("userInvocable") Boolean userInvocable, - /** Model override for this agent, if set */ - @JsonProperty("model") String model -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.java deleted file mode 100644 index cc6026f25..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedAction.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; - -/** - * The user action: "accept" (submitted form), "decline" (explicitly refused), or "cancel" (dismissed) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ElicitationCompletedAction { - /** The {@code accept} variant. */ - ACCEPT("accept"), - /** The {@code decline} variant. */ - DECLINE("decline"), - /** The {@code cancel} variant. */ - CANCEL("cancel"); - - private final String value; - ElicitationCompletedAction(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ElicitationCompletedAction fromValue(String value) { - for (ElicitationCompletedAction v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ElicitationCompletedAction value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.java deleted file mode 100644 index 454cc43a0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationCompletedEvent.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 com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.Map; -import javax.annotation.processing.Generated; - -/** - * Session event "elicitation.completed". Elicitation request completion with the user's response - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ElicitationCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "elicitation.completed"; } - - @JsonProperty("data") - private ElicitationCompletedEventData data; - - public ElicitationCompletedEventData getData() { return data; } - public void setData(ElicitationCompletedEventData data) { this.data = data; } - - /** Data payload for {@link ElicitationCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ElicitationCompletedEventData( - /** Request ID of the resolved elicitation request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId, - /** The user action: "accept" (submitted form), "decline" (explicitly refused), or "cancel" (dismissed) */ - @JsonProperty("action") ElicitationCompletedAction action, - /** The submitted form data when action is 'accept'; keys match the requested schema fields */ - @JsonProperty("content") Map content - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java deleted file mode 100644 index 6c8aa2547..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedEvent.java +++ /dev/null @@ -1,54 +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; - -/** - * Session event "elicitation.requested". Elicitation request; may be form-based (structured input) or URL-based (browser redirect) - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ElicitationRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "elicitation.requested"; } - - @JsonProperty("data") - private ElicitationRequestedEventData data; - - public ElicitationRequestedEventData getData() { return data; } - public void setData(ElicitationRequestedEventData data) { this.data = data; } - - /** Data payload for {@link ElicitationRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ElicitationRequestedEventData( - /** Unique identifier for this elicitation request; used to respond via session.respondToElicitation() */ - @JsonProperty("requestId") String requestId, - /** Tool call ID from the LLM completion; used to correlate with CompletionChunk.toolCall.id for remote UIs */ - @JsonProperty("toolCallId") String toolCallId, - /** The source that initiated the request (MCP server name, or absent for agent-initiated) */ - @JsonProperty("elicitationSource") String elicitationSource, - /** Message describing what information is needed from the user */ - @JsonProperty("message") String message, - /** Elicitation mode; "form" for structured input, "url" for browser-based. Defaults to "form" when absent. */ - @JsonProperty("mode") ElicitationRequestedMode mode, - /** JSON Schema describing the form fields to present to the user (form mode only) */ - @JsonProperty("requestedSchema") ElicitationRequestedSchema requestedSchema, - /** URL to open in the user's browser (url mode only) */ - @JsonProperty("url") String url - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.java deleted file mode 100644 index 49538450d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedMode.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; - -/** - * Elicitation mode; "form" for structured input, "url" for browser-based. Defaults to "form" when absent. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ElicitationRequestedMode { - /** The {@code form} variant. */ - FORM("form"), - /** The {@code url} variant. */ - URL("url"); - - private final String value; - ElicitationRequestedMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ElicitationRequestedMode fromValue(String value) { - for (ElicitationRequestedMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ElicitationRequestedMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java b/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java deleted file mode 100644 index d6ad62b4b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ElicitationRequestedSchema.java +++ /dev/null @@ -1,33 +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 java.util.Map; -import javax.annotation.processing.Generated; - -/** - * JSON Schema describing the form fields to present to the user (form mode only) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ElicitationRequestedSchema( - /** Schema type indicator (always 'object') */ - @JsonProperty("type") String type, - /** Form field definitions, keyed by field name */ - @JsonProperty("properties") Map properties, - /** List of required field names */ - @JsonProperty("required") List required -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java deleted file mode 100644 index 6d8664141..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeAction.java +++ /dev/null @@ -1,39 +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; - -/** - * Exit plan mode action - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ExitPlanModeAction { - /** The {@code exit_only} variant. */ - EXIT_ONLY("exit_only"), - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"), - /** The {@code autopilot_fleet} variant. */ - AUTOPILOT_FLEET("autopilot_fleet"); - - private final String value; - ExitPlanModeAction(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ExitPlanModeAction fromValue(String value) { - for (ExitPlanModeAction v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ExitPlanModeAction value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java deleted file mode 100644 index 6056a570e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeCompletedEvent.java +++ /dev/null @@ -1,50 +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; - -/** - * Session event "exit_plan_mode.completed". Plan mode exit completion with the user's approval decision and optional feedback - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ExitPlanModeCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "exit_plan_mode.completed"; } - - @JsonProperty("data") - private ExitPlanModeCompletedEventData data; - - public ExitPlanModeCompletedEventData getData() { return data; } - public void setData(ExitPlanModeCompletedEventData data) { this.data = data; } - - /** Data payload for {@link ExitPlanModeCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ExitPlanModeCompletedEventData( - /** Request ID of the resolved exit plan mode request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId, - /** Whether the plan was approved by the user */ - @JsonProperty("approved") Boolean approved, - /** Action selected by the user */ - @JsonProperty("selectedAction") ExitPlanModeAction selectedAction, - /** Whether edits should be auto-approved without confirmation */ - @JsonProperty("autoApproveEdits") Boolean autoApproveEdits, - /** Free-form feedback from the user if they requested changes to the plan */ - @JsonProperty("feedback") String feedback - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java deleted file mode 100644 index 134e01cbb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExitPlanModeRequestedEvent.java +++ /dev/null @@ -1,51 +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; - -/** - * Session event "exit_plan_mode.requested". Plan approval request with plan content and available user actions - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ExitPlanModeRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "exit_plan_mode.requested"; } - - @JsonProperty("data") - private ExitPlanModeRequestedEventData data; - - public ExitPlanModeRequestedEventData getData() { return data; } - public void setData(ExitPlanModeRequestedEventData data) { this.data = data; } - - /** Data payload for {@link ExitPlanModeRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ExitPlanModeRequestedEventData( - /** Unique identifier for this request; used to respond via session.respondToExitPlanMode() */ - @JsonProperty("requestId") String requestId, - /** Summary of the plan that was created */ - @JsonProperty("summary") String summary, - /** Full content of the plan file */ - @JsonProperty("planContent") String planContent, - /** Available actions the user can take */ - @JsonProperty("actions") List actions, - /** Recommended action to preselect for the user */ - @JsonProperty("recommendedAction") ExitPlanModeAction recommendedAction - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java deleted file mode 100644 index b47f308c8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtension.java +++ /dev/null @@ -1,33 +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 `ExtensionsLoadedExtension` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ExtensionsLoadedExtension( - /** Source-qualified extension ID (e.g., 'project:my-ext', 'user:auth-helper') */ - @JsonProperty("id") String id, - /** Extension name (directory name) */ - @JsonProperty("name") String name, - /** Discovery source */ - @JsonProperty("source") ExtensionsLoadedExtensionSource source, - /** Current status: running, disabled, failed, or starting */ - @JsonProperty("status") ExtensionsLoadedExtensionStatus status -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.java deleted file mode 100644 index abf991a01..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionSource.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; - -/** - * Discovery source - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ExtensionsLoadedExtensionSource { - /** The {@code project} variant. */ - PROJECT("project"), - /** The {@code user} variant. */ - USER("user"); - - private final String value; - ExtensionsLoadedExtensionSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ExtensionsLoadedExtensionSource fromValue(String value) { - for (ExtensionsLoadedExtensionSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ExtensionsLoadedExtensionSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java b/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java deleted file mode 100644 index 8f8ca0b65..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExtensionsLoadedExtensionStatus.java +++ /dev/null @@ -1,39 +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; - -/** - * Current status: running, disabled, failed, or starting - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ExtensionsLoadedExtensionStatus { - /** The {@code running} variant. */ - RUNNING("running"), - /** The {@code disabled} variant. */ - DISABLED("disabled"), - /** The {@code failed} variant. */ - FAILED("failed"), - /** The {@code starting} variant. */ - STARTING("starting"); - - private final String value; - ExtensionsLoadedExtensionStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ExtensionsLoadedExtensionStatus fromValue(String value) { - for (ExtensionsLoadedExtensionStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ExtensionsLoadedExtensionStatus value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java deleted file mode 100644 index cfd9828e7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolCompletedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "external_tool.completed". External tool completion notification signaling UI dismissal - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ExternalToolCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "external_tool.completed"; } - - @JsonProperty("data") - private ExternalToolCompletedEventData data; - - public ExternalToolCompletedEventData getData() { return data; } - public void setData(ExternalToolCompletedEventData data) { this.data = data; } - - /** Data payload for {@link ExternalToolCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ExternalToolCompletedEventData( - /** Request ID of the resolved external tool request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java deleted file mode 100644 index 1f5a3a205..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ExternalToolRequestedEvent.java +++ /dev/null @@ -1,54 +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; - -/** - * Session event "external_tool.requested". External tool invocation request for client-side tool execution - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ExternalToolRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "external_tool.requested"; } - - @JsonProperty("data") - private ExternalToolRequestedEventData data; - - public ExternalToolRequestedEventData getData() { return data; } - public void setData(ExternalToolRequestedEventData data) { this.data = data; } - - /** Data payload for {@link ExternalToolRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ExternalToolRequestedEventData( - /** Unique identifier for this request; used to respond via session.respondToExternalTool() */ - @JsonProperty("requestId") String requestId, - /** Session ID that this external tool request belongs to */ - @JsonProperty("sessionId") String sessionId, - /** Tool call ID assigned to this external tool invocation */ - @JsonProperty("toolCallId") String toolCallId, - /** Name of the external tool to invoke */ - @JsonProperty("toolName") String toolName, - /** Arguments to pass to the external tool */ - @JsonProperty("arguments") Object arguments, - /** W3C Trace Context traceparent header for the execute_tool span */ - @JsonProperty("traceparent") String traceparent, - /** W3C Trace Context tracestate header for the execute_tool span */ - @JsonProperty("tracestate") String tracestate - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java b/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java deleted file mode 100644 index e54226a8b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/HandoffRepository.java +++ /dev/null @@ -1,31 +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; - -/** - * Repository context for the handed-off session - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record HandoffRepository( - /** Repository owner (user or organization) */ - @JsonProperty("owner") String owner, - /** Repository name */ - @JsonProperty("name") String name, - /** Git branch name, if applicable */ - @JsonProperty("branch") String branch -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java b/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.java deleted file mode 100644 index 83d667782..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/HandoffSourceType.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; - -/** - * Origin type of the session being handed off - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum HandoffSourceType { - /** The {@code remote} variant. */ - REMOTE("remote"), - /** The {@code local} variant. */ - LOCAL("local"); - - private final String value; - HandoffSourceType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static HandoffSourceType fromValue(String value) { - for (HandoffSourceType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown HandoffSourceType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java b/src/generated/java/com/github/copilot/sdk/generated/HookEndError.java deleted file mode 100644 index 59646b3cc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/HookEndError.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; - -/** - * Error details when the hook failed - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record HookEndError( - /** Human-readable error message */ - @JsonProperty("message") String message, - /** Error stack trace, when available */ - @JsonProperty("stack") String stack -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java b/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java deleted file mode 100644 index 1b90f5fa9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/HookEndEvent.java +++ /dev/null @@ -1,50 +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; - -/** - * Session event "hook.end". Hook invocation completion details including output, success status, and error information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class HookEndEvent extends SessionEvent { - - @Override - public String getType() { return "hook.end"; } - - @JsonProperty("data") - private HookEndEventData data; - - public HookEndEventData getData() { return data; } - public void setData(HookEndEventData data) { this.data = data; } - - /** Data payload for {@link HookEndEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record HookEndEventData( - /** Identifier matching the corresponding hook.start event */ - @JsonProperty("hookInvocationId") String hookInvocationId, - /** Type of hook that was invoked (e.g., "preToolUse", "postToolUse", "sessionStart") */ - @JsonProperty("hookType") String hookType, - /** Output data produced by the hook */ - @JsonProperty("output") Object output, - /** Whether the hook completed successfully */ - @JsonProperty("success") Boolean success, - /** Error details when the hook failed */ - @JsonProperty("error") HookEndError error - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java deleted file mode 100644 index f4605ce25..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/HookStartEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "hook.start". Hook invocation start details including type and input data - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class HookStartEvent extends SessionEvent { - - @Override - public String getType() { return "hook.start"; } - - @JsonProperty("data") - private HookStartEventData data; - - public HookStartEventData getData() { return data; } - public void setData(HookStartEventData data) { this.data = data; } - - /** Data payload for {@link HookStartEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record HookStartEventData( - /** Unique identifier for this hook invocation */ - @JsonProperty("hookInvocationId") String hookInvocationId, - /** Type of hook being invoked (e.g., "preToolUse", "postToolUse", "sessionStart") */ - @JsonProperty("hookType") String hookType, - /** Input data passed to the hook */ - @JsonProperty("input") Object input - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java deleted file mode 100644 index f02c7d42a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/McpOauthCompletedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "mcp.oauth_completed". MCP OAuth request completion notification - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class McpOauthCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "mcp.oauth_completed"; } - - @JsonProperty("data") - private McpOauthCompletedEventData data; - - public McpOauthCompletedEventData getData() { return data; } - public void setData(McpOauthCompletedEventData data) { this.data = data; } - - /** Data payload for {@link McpOauthCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record McpOauthCompletedEventData( - /** Request ID of the resolved OAuth request */ - @JsonProperty("requestId") String requestId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java b/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java deleted file mode 100644 index c384afcf0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredEvent.java +++ /dev/null @@ -1,48 +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; - -/** - * Session event "mcp.oauth_required". OAuth authentication request for an MCP server - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class McpOauthRequiredEvent extends SessionEvent { - - @Override - public String getType() { return "mcp.oauth_required"; } - - @JsonProperty("data") - private McpOauthRequiredEventData data; - - public McpOauthRequiredEventData getData() { return data; } - public void setData(McpOauthRequiredEventData data) { this.data = data; } - - /** Data payload for {@link McpOauthRequiredEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record McpOauthRequiredEventData( - /** Unique identifier for this OAuth request; used to respond via session.respondToMcpOAuth() */ - @JsonProperty("requestId") String requestId, - /** Display name of the MCP server that requires OAuth */ - @JsonProperty("serverName") String serverName, - /** URL of the MCP server that requires OAuth */ - @JsonProperty("serverUrl") String serverUrl, - /** Static OAuth client configuration, if the server specifies one */ - @JsonProperty("staticClientConfig") McpOauthRequiredStaticClientConfig staticClientConfig - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java b/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java deleted file mode 100644 index 764f8b7fc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/McpOauthRequiredStaticClientConfig.java +++ /dev/null @@ -1,31 +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; - -/** - * Static OAuth client configuration, if the server specifies one - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpOauthRequiredStaticClientConfig( - /** OAuth client ID for the server */ - @JsonProperty("clientId") String clientId, - /** Whether this is a public OAuth client */ - @JsonProperty("publicClient") Boolean publicClient, - /** Optional non-default OAuth grant type. When set to 'client_credentials', the OAuth flow runs headlessly using the client_id + keychain-stored secret (no browser, no callback server). */ - @JsonProperty("grantType") String grantType -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java b/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java deleted file mode 100644 index 63514743a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServerSource.java +++ /dev/null @@ -1,39 +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; - -/** - * Configuration source: user, workspace, plugin, or builtin - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum McpServerSource { - /** 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; - McpServerSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpServerSource fromValue(String value) { - for (McpServerSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpServerSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java b/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.java deleted file mode 100644 index b5bb08093..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServerStatus.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 McpServerStatus { - /** 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; - McpServerStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpServerStatus fromValue(String value) { - for (McpServerStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpServerStatus value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java b/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java deleted file mode 100644 index aba91bdef..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/McpServersLoadedServer.java +++ /dev/null @@ -1,33 +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 `McpServersLoadedServer` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpServersLoadedServer( - /** Server name (config key) */ - @JsonProperty("name") String name, - /** Connection status: connected, failed, needs-auth, pending, disabled, or not_configured */ - @JsonProperty("status") McpServerStatus status, - /** Configuration source: user, workspace, plugin, or builtin */ - @JsonProperty("source") McpServerSource source, - /** Error message if the server failed to connect */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java deleted file mode 100644 index e4df71384..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureEvent.java +++ /dev/null @@ -1,56 +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; - -/** - * Session event "model.call_failure". Failed LLM API call metadata for telemetry - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ModelCallFailureEvent extends SessionEvent { - - @Override - public String getType() { return "model.call_failure"; } - - @JsonProperty("data") - private ModelCallFailureEventData data; - - public ModelCallFailureEventData getData() { return data; } - public void setData(ModelCallFailureEventData data) { this.data = data; } - - /** Data payload for {@link ModelCallFailureEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ModelCallFailureEventData( - /** Model identifier used for the failed API call */ - @JsonProperty("model") String model, - /** What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls */ - @JsonProperty("initiator") String initiator, - /** Completion ID from the model provider (e.g., chatcmpl-abc123) */ - @JsonProperty("apiCallId") String apiCallId, - /** GitHub request tracing ID (x-github-request-id header) for server-side log correlation */ - @JsonProperty("providerCallId") String providerCallId, - /** HTTP status code from the failed request */ - @JsonProperty("statusCode") Long statusCode, - /** Duration of the failed API call in milliseconds */ - @JsonProperty("durationMs") Long durationMs, - /** Where the failed model call originated */ - @JsonProperty("source") ModelCallFailureSource source, - /** Raw provider/runtime error message for restricted telemetry */ - @JsonProperty("errorMessage") String errorMessage - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java b/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.java deleted file mode 100644 index 747112c3d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ModelCallFailureSource.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; - -/** - * Where the failed model call originated - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ModelCallFailureSource { - /** The {@code top_level} variant. */ - TOP_LEVEL("top_level"), - /** The {@code subagent} variant. */ - SUBAGENT("subagent"), - /** The {@code mcp_sampling} variant. */ - MCP_SAMPLING("mcp_sampling"); - - private final String value; - ModelCallFailureSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ModelCallFailureSource fromValue(String value) { - for (ModelCallFailureSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ModelCallFailureSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java deleted file mode 100644 index 2b7fecee0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/PendingMessagesModifiedEvent.java +++ /dev/null @@ -1,39 +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; - -/** - * Session event "pending_messages.modified". Empty payload; the event signals that the pending message queue has changed - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PendingMessagesModifiedEvent extends SessionEvent { - - @Override - public String getType() { return "pending_messages.modified"; } - - @JsonProperty("data") - private PendingMessagesModifiedEventData data; - - public PendingMessagesModifiedEventData getData() { return data; } - public void setData(PendingMessagesModifiedEventData data) { this.data = data; } - - /** Data payload for {@link PendingMessagesModifiedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record PendingMessagesModifiedEventData() { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java deleted file mode 100644 index e389863d3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/PermissionCompletedEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "permission.completed". Permission request completion notification signaling UI dismissal - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "permission.completed"; } - - @JsonProperty("data") - private PermissionCompletedEventData data; - - public PermissionCompletedEventData getData() { return data; } - public void setData(PermissionCompletedEventData data) { this.data = data; } - - /** Data payload for {@link PermissionCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record PermissionCompletedEventData( - /** Request ID of the resolved permission request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId, - /** Optional tool call ID associated with this permission prompt; clients may use it to correlate UI created from tool-scoped prompts */ - @JsonProperty("toolCallId") String toolCallId, - /** The result of the permission request */ - @JsonProperty("result") Object result - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java deleted file mode 100644 index 2d7988062..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/PermissionRequestedEvent.java +++ /dev/null @@ -1,48 +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; - -/** - * Session event "permission.requested". Permission request notification requiring client approval with request details - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "permission.requested"; } - - @JsonProperty("data") - private PermissionRequestedEventData data; - - public PermissionRequestedEventData getData() { return data; } - public void setData(PermissionRequestedEventData data) { this.data = data; } - - /** Data payload for {@link PermissionRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record PermissionRequestedEventData( - /** Unique identifier for this permission request; used to respond via session.respondToPermission() */ - @JsonProperty("requestId") String requestId, - /** Details of the permission being requested */ - @JsonProperty("permissionRequest") Object permissionRequest, - /** Derived user-facing permission prompt details for UI consumers */ - @JsonProperty("promptRequest") Object promptRequest, - /** When true, this permission was already resolved by a permissionRequest hook and requires no client action */ - @JsonProperty("resolvedByHook") Boolean resolvedByHook - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java b/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.java deleted file mode 100644 index 35d4fece4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/PlanChangedOperation.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; - -/** - * The type of operation performed on the plan file - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PlanChangedOperation { - /** The {@code create} variant. */ - CREATE("create"), - /** The {@code update} variant. */ - UPDATE("update"), - /** The {@code delete} variant. */ - DELETE("delete"); - - private final String value; - PlanChangedOperation(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PlanChangedOperation fromValue(String value) { - for (PlanChangedOperation v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PlanChangedOperation value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java b/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.java deleted file mode 100644 index a2b6d3e02..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ReasoningSummary.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; - -/** - * Reasoning summary mode used for model calls, if applicable (e.g. "none", "concise", "detailed") - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ReasoningSummary { - /** The {@code none} variant. */ - NONE("none"), - /** The {@code concise} variant. */ - CONCISE("concise"), - /** The {@code detailed} variant. */ - DETAILED("detailed"); - - private final String value; - ReasoningSummary(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ReasoningSummary fromValue(String value) { - for (ReasoningSummary v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ReasoningSummary value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java deleted file mode 100644 index 0cf0e9daa..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SamplingCompletedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "sampling.completed". Sampling request completion notification signaling UI dismissal - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SamplingCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "sampling.completed"; } - - @JsonProperty("data") - private SamplingCompletedEventData data; - - public SamplingCompletedEventData getData() { return data; } - public void setData(SamplingCompletedEventData data) { this.data = data; } - - /** Data payload for {@link SamplingCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SamplingCompletedEventData( - /** Request ID of the resolved sampling request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java deleted file mode 100644 index 1982f552c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SamplingRequestedEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "sampling.requested". Sampling request from an MCP server; contains the server name and a requestId for correlation - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SamplingRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "sampling.requested"; } - - @JsonProperty("data") - private SamplingRequestedEventData data; - - public SamplingRequestedEventData getData() { return data; } - public void setData(SamplingRequestedEventData data) { this.data = data; } - - /** Data payload for {@link SamplingRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SamplingRequestedEventData( - /** Unique identifier for this sampling request; used to respond via session.respondToSampling() */ - @JsonProperty("requestId") String requestId, - /** Name of the MCP server that initiated the sampling request */ - @JsonProperty("serverName") String serverName, - /** The JSON-RPC request ID from the MCP protocol */ - @JsonProperty("mcpRequestId") Object mcpRequestId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java deleted file mode 100644 index 2a712ae49..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionBackgroundTasksChangedEvent.java +++ /dev/null @@ -1,39 +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; - -/** - * Session event "session.background_tasks_changed". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionBackgroundTasksChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.background_tasks_changed"; } - - @JsonProperty("data") - private SessionBackgroundTasksChangedEventData data; - - public SessionBackgroundTasksChangedEventData getData() { return data; } - public void setData(SessionBackgroundTasksChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionBackgroundTasksChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionBackgroundTasksChangedEventData() { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java deleted file mode 100644 index a1e418d9c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionCompleteEvent.java +++ /dev/null @@ -1,72 +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; - -/** - * Session event "session.compaction_complete". Conversation compaction results including success status, metrics, and optional error details - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionCompactionCompleteEvent extends SessionEvent { - - @Override - public String getType() { return "session.compaction_complete"; } - - @JsonProperty("data") - private SessionCompactionCompleteEventData data; - - public SessionCompactionCompleteEventData getData() { return data; } - public void setData(SessionCompactionCompleteEventData data) { this.data = data; } - - /** Data payload for {@link SessionCompactionCompleteEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionCompactionCompleteEventData( - /** Whether compaction completed successfully */ - @JsonProperty("success") Boolean success, - /** Error message if compaction failed */ - @JsonProperty("error") String error, - /** Total tokens in conversation before compaction */ - @JsonProperty("preCompactionTokens") Long preCompactionTokens, - /** Total tokens in conversation after compaction */ - @JsonProperty("postCompactionTokens") Long postCompactionTokens, - /** Number of messages before compaction */ - @JsonProperty("preCompactionMessagesLength") Long preCompactionMessagesLength, - /** Number of messages removed during compaction */ - @JsonProperty("messagesRemoved") Long messagesRemoved, - /** Number of tokens removed during compaction */ - @JsonProperty("tokensRemoved") Long tokensRemoved, - /** User-supplied focus instructions provided to a manual `/compact` invocation. Omitted for automatic compaction and for manual compaction with no focus text. */ - @JsonProperty("customInstructions") String customInstructions, - /** LLM-generated summary of the compacted conversation history */ - @JsonProperty("summaryContent") String summaryContent, - /** Checkpoint snapshot number created for recovery */ - @JsonProperty("checkpointNumber") Long checkpointNumber, - /** File path where the checkpoint was stored */ - @JsonProperty("checkpointPath") String checkpointPath, - /** Token usage breakdown for the compaction LLM call (aligned with assistant.usage format) */ - @JsonProperty("compactionTokensUsed") CompactionCompleteCompactionTokensUsed compactionTokensUsed, - /** GitHub request tracing ID (x-github-request-id header) for the compaction LLM call */ - @JsonProperty("requestId") String requestId, - /** Token count from system message(s) after compaction */ - @JsonProperty("systemTokens") Long systemTokens, - /** Token count from non-system messages (user, assistant, tool) after compaction */ - @JsonProperty("conversationTokens") Long conversationTokens, - /** Token count from tool definitions after compaction */ - @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java deleted file mode 100644 index 90fcd76b6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCompactionStartEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "session.compaction_start". Context window breakdown at the start of LLM-powered conversation compaction - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionCompactionStartEvent extends SessionEvent { - - @Override - public String getType() { return "session.compaction_start"; } - - @JsonProperty("data") - private SessionCompactionStartEventData data; - - public SessionCompactionStartEventData getData() { return data; } - public void setData(SessionCompactionStartEventData data) { this.data = data; } - - /** Data payload for {@link SessionCompactionStartEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionCompactionStartEventData( - /** Token count from system message(s) at compaction start */ - @JsonProperty("systemTokens") Long systemTokens, - /** Token count from non-system messages (user, assistant, tool) at compaction start */ - @JsonProperty("conversationTokens") Long conversationTokens, - /** Token count from tool definitions at compaction start */ - @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java deleted file mode 100644 index 1fc5ef0ea..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionContextChangedEvent.java +++ /dev/null @@ -1,56 +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; - -/** - * Session event "session.context_changed". Updated working directory and git context after the change - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionContextChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.context_changed"; } - - @JsonProperty("data") - private SessionContextChangedEventData data; - - public SessionContextChangedEventData getData() { return data; } - public void setData(SessionContextChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionContextChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionContextChangedEventData( - /** Current working directory path */ - @JsonProperty("cwd") String cwd, - /** Root directory of the git repository, resolved via git rev-parse */ - @JsonProperty("gitRoot") String gitRoot, - /** Repository identifier derived from the git remote URL ("owner/name" for GitHub, "org/project/repo" for Azure DevOps) */ - @JsonProperty("repository") String repository, - /** Hosting platform type of the repository (github or ado) */ - @JsonProperty("hostType") WorkingDirectoryContextHostType hostType, - /** Raw host string from the git remote URL (e.g. "github.com", "mycompany.ghe.com", "dev.azure.com") */ - @JsonProperty("repositoryHost") String repositoryHost, - /** Current git branch name */ - @JsonProperty("branch") String branch, - /** Head commit of current git branch at session start time */ - @JsonProperty("headCommit") String headCommit, - /** Base commit of current git branch at session start time */ - @JsonProperty("baseCommit") String baseCommit - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.java deleted file mode 100644 index 9ceed8c65..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomAgentsUpdatedEvent.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 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; - -/** - * Session event "session.custom_agents_updated". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionCustomAgentsUpdatedEvent extends SessionEvent { - - @Override - public String getType() { return "session.custom_agents_updated"; } - - @JsonProperty("data") - private SessionCustomAgentsUpdatedEventData data; - - public SessionCustomAgentsUpdatedEventData getData() { return data; } - public void setData(SessionCustomAgentsUpdatedEventData data) { this.data = data; } - - /** Data payload for {@link SessionCustomAgentsUpdatedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionCustomAgentsUpdatedEventData( - /** Array of loaded custom agent metadata */ - @JsonProperty("agents") List agents, - /** Non-fatal warnings from agent loading */ - @JsonProperty("warnings") List warnings, - /** Fatal errors from agent loading */ - @JsonProperty("errors") List errors - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java deleted file mode 100644 index 499d143d4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionCustomNotificationEvent.java +++ /dev/null @@ -1,51 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Session event "session.custom_notification". Opaque custom notification data. Consumers may branch on source and name, but payload semantics are source-defined. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionCustomNotificationEvent extends SessionEvent { - - @Override - public String getType() { return "session.custom_notification"; } - - @JsonProperty("data") - private SessionCustomNotificationEventData data; - - public SessionCustomNotificationEventData getData() { return data; } - public void setData(SessionCustomNotificationEventData data) { this.data = data; } - - /** Data payload for {@link SessionCustomNotificationEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionCustomNotificationEventData( - /** Namespace for the custom notification producer */ - @JsonProperty("source") String source, - /** Source-defined custom notification name */ - @JsonProperty("name") String name, - /** Optional source-defined payload schema version */ - @JsonProperty("version") Long version, - /** Optional source-defined string identifiers describing the payload subject */ - @JsonProperty("subject") Map subject, - /** Source-defined JSON payload for the custom notification */ - @JsonProperty("payload") Object payload - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java deleted file mode 100644 index c644adcef..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionErrorEvent.java +++ /dev/null @@ -1,56 +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; - -/** - * Session event "session.error". Error details for timeline display including message and optional diagnostic information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionErrorEvent extends SessionEvent { - - @Override - public String getType() { return "session.error"; } - - @JsonProperty("data") - private SessionErrorEventData data; - - public SessionErrorEventData getData() { return data; } - public void setData(SessionErrorEventData data) { this.data = data; } - - /** Data payload for {@link SessionErrorEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionErrorEventData( - /** Category of error (e.g., "authentication", "authorization", "quota", "rate_limit", "context_limit", "query") */ - @JsonProperty("errorType") String errorType, - /** Fine-grained error code from the upstream provider, when available. For `errorType: "rate_limit"`, this is one of the `RateLimitErrorCode` values (e.g., `"user_weekly_rate_limited"`, `"user_global_rate_limited"`, `"rate_limited"`, `"user_model_rate_limited"`, `"integration_rate_limited"`). For `errorType: "quota"`, this is the CAPI quota error code (e.g., `"quota_exceeded"`, `"session_quota_exceeded"`, `"billing_not_configured"`). */ - @JsonProperty("errorCode") String errorCode, - /** Only set on `errorType: "rate_limit"`. When `true`, the runtime will follow this error with an `auto_mode_switch.requested` event (or silently switch if `continueOnAutoMode` is enabled). UI clients can use this flag to suppress duplicate rendering of the rate-limit error when they show their own auto-mode-switch prompt. */ - @JsonProperty("eligibleForAutoSwitch") Boolean eligibleForAutoSwitch, - /** Human-readable error message */ - @JsonProperty("message") String message, - /** Error stack trace, when available */ - @JsonProperty("stack") String stack, - /** HTTP status code from the upstream request, if applicable */ - @JsonProperty("statusCode") Long statusCode, - /** GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs */ - @JsonProperty("providerCallId") String providerCallId, - /** Optional URL associated with this error that the user can open in a browser */ - @JsonProperty("url") String url - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java deleted file mode 100644 index e27096264..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java +++ /dev/null @@ -1,229 +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 com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.UUID; -import javax.annotation.processing.Generated; - -/** - * Base class for all generated session events. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true, defaultImpl = UnknownSessionEvent.class) -@JsonSubTypes({ - @JsonSubTypes.Type(value = SessionStartEvent.class, name = "session.start"), - @JsonSubTypes.Type(value = SessionResumeEvent.class, name = "session.resume"), - @JsonSubTypes.Type(value = SessionRemoteSteerableChangedEvent.class, name = "session.remote_steerable_changed"), - @JsonSubTypes.Type(value = SessionErrorEvent.class, name = "session.error"), - @JsonSubTypes.Type(value = SessionIdleEvent.class, name = "session.idle"), - @JsonSubTypes.Type(value = SessionTitleChangedEvent.class, name = "session.title_changed"), - @JsonSubTypes.Type(value = SessionScheduleCreatedEvent.class, name = "session.schedule_created"), - @JsonSubTypes.Type(value = SessionScheduleCancelledEvent.class, name = "session.schedule_cancelled"), - @JsonSubTypes.Type(value = SessionInfoEvent.class, name = "session.info"), - @JsonSubTypes.Type(value = SessionWarningEvent.class, name = "session.warning"), - @JsonSubTypes.Type(value = SessionModelChangeEvent.class, name = "session.model_change"), - @JsonSubTypes.Type(value = SessionModeChangedEvent.class, name = "session.mode_changed"), - @JsonSubTypes.Type(value = SessionPlanChangedEvent.class, name = "session.plan_changed"), - @JsonSubTypes.Type(value = SessionWorkspaceFileChangedEvent.class, name = "session.workspace_file_changed"), - @JsonSubTypes.Type(value = SessionHandoffEvent.class, name = "session.handoff"), - @JsonSubTypes.Type(value = SessionTruncationEvent.class, name = "session.truncation"), - @JsonSubTypes.Type(value = SessionSnapshotRewindEvent.class, name = "session.snapshot_rewind"), - @JsonSubTypes.Type(value = SessionShutdownEvent.class, name = "session.shutdown"), - @JsonSubTypes.Type(value = SessionContextChangedEvent.class, name = "session.context_changed"), - @JsonSubTypes.Type(value = SessionUsageInfoEvent.class, name = "session.usage_info"), - @JsonSubTypes.Type(value = SessionCompactionStartEvent.class, name = "session.compaction_start"), - @JsonSubTypes.Type(value = SessionCompactionCompleteEvent.class, name = "session.compaction_complete"), - @JsonSubTypes.Type(value = SessionTaskCompleteEvent.class, name = "session.task_complete"), - @JsonSubTypes.Type(value = UserMessageEvent.class, name = "user.message"), - @JsonSubTypes.Type(value = PendingMessagesModifiedEvent.class, name = "pending_messages.modified"), - @JsonSubTypes.Type(value = AssistantTurnStartEvent.class, name = "assistant.turn_start"), - @JsonSubTypes.Type(value = AssistantIntentEvent.class, name = "assistant.intent"), - @JsonSubTypes.Type(value = AssistantReasoningEvent.class, name = "assistant.reasoning"), - @JsonSubTypes.Type(value = AssistantReasoningDeltaEvent.class, name = "assistant.reasoning_delta"), - @JsonSubTypes.Type(value = AssistantStreamingDeltaEvent.class, name = "assistant.streaming_delta"), - @JsonSubTypes.Type(value = AssistantMessageEvent.class, name = "assistant.message"), - @JsonSubTypes.Type(value = AssistantMessageStartEvent.class, name = "assistant.message_start"), - @JsonSubTypes.Type(value = AssistantMessageDeltaEvent.class, name = "assistant.message_delta"), - @JsonSubTypes.Type(value = AssistantTurnEndEvent.class, name = "assistant.turn_end"), - @JsonSubTypes.Type(value = AssistantUsageEvent.class, name = "assistant.usage"), - @JsonSubTypes.Type(value = ModelCallFailureEvent.class, name = "model.call_failure"), - @JsonSubTypes.Type(value = AbortEvent.class, name = "abort"), - @JsonSubTypes.Type(value = ToolUserRequestedEvent.class, name = "tool.user_requested"), - @JsonSubTypes.Type(value = ToolExecutionStartEvent.class, name = "tool.execution_start"), - @JsonSubTypes.Type(value = ToolExecutionPartialResultEvent.class, name = "tool.execution_partial_result"), - @JsonSubTypes.Type(value = ToolExecutionProgressEvent.class, name = "tool.execution_progress"), - @JsonSubTypes.Type(value = ToolExecutionCompleteEvent.class, name = "tool.execution_complete"), - @JsonSubTypes.Type(value = SkillInvokedEvent.class, name = "skill.invoked"), - @JsonSubTypes.Type(value = SubagentStartedEvent.class, name = "subagent.started"), - @JsonSubTypes.Type(value = SubagentCompletedEvent.class, name = "subagent.completed"), - @JsonSubTypes.Type(value = SubagentFailedEvent.class, name = "subagent.failed"), - @JsonSubTypes.Type(value = SubagentSelectedEvent.class, name = "subagent.selected"), - @JsonSubTypes.Type(value = SubagentDeselectedEvent.class, name = "subagent.deselected"), - @JsonSubTypes.Type(value = HookStartEvent.class, name = "hook.start"), - @JsonSubTypes.Type(value = HookEndEvent.class, name = "hook.end"), - @JsonSubTypes.Type(value = SystemMessageEvent.class, name = "system.message"), - @JsonSubTypes.Type(value = SystemNotificationEvent.class, name = "system.notification"), - @JsonSubTypes.Type(value = PermissionRequestedEvent.class, name = "permission.requested"), - @JsonSubTypes.Type(value = PermissionCompletedEvent.class, name = "permission.completed"), - @JsonSubTypes.Type(value = UserInputRequestedEvent.class, name = "user_input.requested"), - @JsonSubTypes.Type(value = UserInputCompletedEvent.class, name = "user_input.completed"), - @JsonSubTypes.Type(value = ElicitationRequestedEvent.class, name = "elicitation.requested"), - @JsonSubTypes.Type(value = ElicitationCompletedEvent.class, name = "elicitation.completed"), - @JsonSubTypes.Type(value = SamplingRequestedEvent.class, name = "sampling.requested"), - @JsonSubTypes.Type(value = SamplingCompletedEvent.class, name = "sampling.completed"), - @JsonSubTypes.Type(value = McpOauthRequiredEvent.class, name = "mcp.oauth_required"), - @JsonSubTypes.Type(value = McpOauthCompletedEvent.class, name = "mcp.oauth_completed"), - @JsonSubTypes.Type(value = SessionCustomNotificationEvent.class, name = "session.custom_notification"), - @JsonSubTypes.Type(value = ExternalToolRequestedEvent.class, name = "external_tool.requested"), - @JsonSubTypes.Type(value = ExternalToolCompletedEvent.class, name = "external_tool.completed"), - @JsonSubTypes.Type(value = CommandQueuedEvent.class, name = "command.queued"), - @JsonSubTypes.Type(value = CommandExecuteEvent.class, name = "command.execute"), - @JsonSubTypes.Type(value = CommandCompletedEvent.class, name = "command.completed"), - @JsonSubTypes.Type(value = AutoModeSwitchRequestedEvent.class, name = "auto_mode_switch.requested"), - @JsonSubTypes.Type(value = AutoModeSwitchCompletedEvent.class, name = "auto_mode_switch.completed"), - @JsonSubTypes.Type(value = CommandsChangedEvent.class, name = "commands.changed"), - @JsonSubTypes.Type(value = CapabilitiesChangedEvent.class, name = "capabilities.changed"), - @JsonSubTypes.Type(value = ExitPlanModeRequestedEvent.class, name = "exit_plan_mode.requested"), - @JsonSubTypes.Type(value = ExitPlanModeCompletedEvent.class, name = "exit_plan_mode.completed"), - @JsonSubTypes.Type(value = SessionToolsUpdatedEvent.class, name = "session.tools_updated"), - @JsonSubTypes.Type(value = SessionBackgroundTasksChangedEvent.class, name = "session.background_tasks_changed"), - @JsonSubTypes.Type(value = SessionSkillsLoadedEvent.class, name = "session.skills_loaded"), - @JsonSubTypes.Type(value = SessionCustomAgentsUpdatedEvent.class, name = "session.custom_agents_updated"), - @JsonSubTypes.Type(value = SessionMcpServersLoadedEvent.class, name = "session.mcp_servers_loaded"), - @JsonSubTypes.Type(value = SessionMcpServerStatusChangedEvent.class, name = "session.mcp_server_status_changed"), - @JsonSubTypes.Type(value = SessionExtensionsLoadedEvent.class, name = "session.extensions_loaded") -}) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract sealed class SessionEvent permits - SessionStartEvent, - SessionResumeEvent, - SessionRemoteSteerableChangedEvent, - SessionErrorEvent, - SessionIdleEvent, - SessionTitleChangedEvent, - SessionScheduleCreatedEvent, - SessionScheduleCancelledEvent, - SessionInfoEvent, - SessionWarningEvent, - SessionModelChangeEvent, - SessionModeChangedEvent, - SessionPlanChangedEvent, - SessionWorkspaceFileChangedEvent, - SessionHandoffEvent, - SessionTruncationEvent, - SessionSnapshotRewindEvent, - SessionShutdownEvent, - SessionContextChangedEvent, - SessionUsageInfoEvent, - SessionCompactionStartEvent, - SessionCompactionCompleteEvent, - SessionTaskCompleteEvent, - UserMessageEvent, - PendingMessagesModifiedEvent, - AssistantTurnStartEvent, - AssistantIntentEvent, - AssistantReasoningEvent, - AssistantReasoningDeltaEvent, - AssistantStreamingDeltaEvent, - AssistantMessageEvent, - AssistantMessageStartEvent, - AssistantMessageDeltaEvent, - AssistantTurnEndEvent, - AssistantUsageEvent, - ModelCallFailureEvent, - AbortEvent, - ToolUserRequestedEvent, - ToolExecutionStartEvent, - ToolExecutionPartialResultEvent, - ToolExecutionProgressEvent, - ToolExecutionCompleteEvent, - SkillInvokedEvent, - SubagentStartedEvent, - SubagentCompletedEvent, - SubagentFailedEvent, - SubagentSelectedEvent, - SubagentDeselectedEvent, - HookStartEvent, - HookEndEvent, - SystemMessageEvent, - SystemNotificationEvent, - PermissionRequestedEvent, - PermissionCompletedEvent, - UserInputRequestedEvent, - UserInputCompletedEvent, - ElicitationRequestedEvent, - ElicitationCompletedEvent, - SamplingRequestedEvent, - SamplingCompletedEvent, - McpOauthRequiredEvent, - McpOauthCompletedEvent, - SessionCustomNotificationEvent, - ExternalToolRequestedEvent, - ExternalToolCompletedEvent, - CommandQueuedEvent, - CommandExecuteEvent, - CommandCompletedEvent, - AutoModeSwitchRequestedEvent, - AutoModeSwitchCompletedEvent, - CommandsChangedEvent, - CapabilitiesChangedEvent, - ExitPlanModeRequestedEvent, - ExitPlanModeCompletedEvent, - SessionToolsUpdatedEvent, - SessionBackgroundTasksChangedEvent, - SessionSkillsLoadedEvent, - SessionCustomAgentsUpdatedEvent, - SessionMcpServersLoadedEvent, - SessionMcpServerStatusChangedEvent, - SessionExtensionsLoadedEvent, - UnknownSessionEvent { - - /** Unique event identifier (UUID v4), generated when the event is emitted. */ - @JsonProperty("id") - private UUID id; - - /** ISO 8601 timestamp when the event was created. */ - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - /** ID of the chronologically preceding event in the session. Null for the first event. */ - @JsonProperty("parentId") - private UUID parentId; - - /** When true, the event is transient and not persisted to the session event log on disk. */ - @JsonProperty("ephemeral") - private Boolean ephemeral; - - /** - * Returns the event-type discriminator string (e.g., {@code "session.idle"}). - * - * @return the event type - */ - public abstract String getType(); - - public UUID getId() { return id; } - public void setId(UUID id) { this.id = id; } - - public OffsetDateTime getTimestamp() { return timestamp; } - public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; } - - public UUID getParentId() { return parentId; } - public void setParentId(UUID parentId) { this.parentId = parentId; } - - public Boolean getEphemeral() { return ephemeral; } - public void setEphemeral(Boolean ephemeral) { this.ephemeral = ephemeral; } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.java deleted file mode 100644 index 0165be5d2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionExtensionsLoadedEvent.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 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; - -/** - * Session event "session.extensions_loaded". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionExtensionsLoadedEvent extends SessionEvent { - - @Override - public String getType() { return "session.extensions_loaded"; } - - @JsonProperty("data") - private SessionExtensionsLoadedEventData data; - - public SessionExtensionsLoadedEventData getData() { return data; } - public void setData(SessionExtensionsLoadedEventData data) { this.data = data; } - - /** Data payload for {@link SessionExtensionsLoadedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionExtensionsLoadedEventData( - /** Array of discovered extensions and their status */ - @JsonProperty("extensions") List extensions - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java deleted file mode 100644 index 7edba44c0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionHandoffEvent.java +++ /dev/null @@ -1,55 +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.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Session event "session.handoff". Session handoff metadata including source, context, and repository information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionHandoffEvent extends SessionEvent { - - @Override - public String getType() { return "session.handoff"; } - - @JsonProperty("data") - private SessionHandoffEventData data; - - public SessionHandoffEventData getData() { return data; } - public void setData(SessionHandoffEventData data) { this.data = data; } - - /** Data payload for {@link SessionHandoffEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionHandoffEventData( - /** ISO 8601 timestamp when the handoff occurred */ - @JsonProperty("handoffTime") OffsetDateTime handoffTime, - /** Origin type of the session being handed off */ - @JsonProperty("sourceType") HandoffSourceType sourceType, - /** Repository context for the handed-off session */ - @JsonProperty("repository") HandoffRepository repository, - /** Additional context information for the handoff */ - @JsonProperty("context") String context, - /** Summary of the work done in the source session */ - @JsonProperty("summary") String summary, - /** Session ID of the remote session being handed off */ - @JsonProperty("remoteSessionId") String remoteSessionId, - /** GitHub host URL for the source session (e.g., https://github.com or https://tenant.ghe.com) */ - @JsonProperty("host") String host - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java deleted file mode 100644 index dc7136c20..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionIdleEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "session.idle". Payload indicating the session is idle with no background agents in flight - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionIdleEvent extends SessionEvent { - - @Override - public String getType() { return "session.idle"; } - - @JsonProperty("data") - private SessionIdleEventData data; - - public SessionIdleEventData getData() { return data; } - public void setData(SessionIdleEventData data) { this.data = data; } - - /** Data payload for {@link SessionIdleEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionIdleEventData( - /** True when the preceding agentic loop was cancelled via abort signal */ - @JsonProperty("aborted") Boolean aborted - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java deleted file mode 100644 index 2d9ac3690..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionInfoEvent.java +++ /dev/null @@ -1,48 +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; - -/** - * Session event "session.info". Informational message for timeline display with categorization - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionInfoEvent extends SessionEvent { - - @Override - public String getType() { return "session.info"; } - - @JsonProperty("data") - private SessionInfoEventData data; - - public SessionInfoEventData getData() { return data; } - public void setData(SessionInfoEventData data) { this.data = data; } - - /** Data payload for {@link SessionInfoEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionInfoEventData( - /** Category of informational message (e.g., "notification", "timing", "context_window", "mcp", "snapshot", "configuration", "authentication", "model") */ - @JsonProperty("infoType") String infoType, - /** Human-readable informational message for display in the timeline */ - @JsonProperty("message") String message, - /** Optional URL associated with this message that the user can open in a browser */ - @JsonProperty("url") String url, - /** Optional actionable tip displayed with this message */ - @JsonProperty("tip") String tip - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java deleted file mode 100644 index 345e9ab2e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServerStatusChangedEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "session.mcp_server_status_changed". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionMcpServerStatusChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.mcp_server_status_changed"; } - - @JsonProperty("data") - private SessionMcpServerStatusChangedEventData data; - - public SessionMcpServerStatusChangedEventData getData() { return data; } - public void setData(SessionMcpServerStatusChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionMcpServerStatusChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionMcpServerStatusChangedEventData( - /** Name of the MCP server whose status changed */ - @JsonProperty("serverName") String serverName, - /** Connection status: connected, failed, needs-auth, pending, disabled, or not_configured */ - @JsonProperty("status") McpServerStatus status - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.java deleted file mode 100644 index d97875513..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionMcpServersLoadedEvent.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 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; - -/** - * Session event "session.mcp_servers_loaded". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionMcpServersLoadedEvent extends SessionEvent { - - @Override - public String getType() { return "session.mcp_servers_loaded"; } - - @JsonProperty("data") - private SessionMcpServersLoadedEventData data; - - public SessionMcpServersLoadedEventData getData() { return data; } - public void setData(SessionMcpServersLoadedEventData data) { this.data = data; } - - /** Data payload for {@link SessionMcpServersLoadedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionMcpServersLoadedEventData( - /** Array of MCP server status summaries */ - @JsonProperty("servers") List servers - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java b/src/generated/java/com/github/copilot/sdk/generated/SessionMode.java deleted file mode 100644 index ba579b306..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionMode.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; - -/** - * The session mode the agent is operating in - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"); - - private final String value; - SessionMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionMode fromValue(String value) { - for (SessionMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java deleted file mode 100644 index 28fb3e9e4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionModeChangedEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "session.mode_changed". Agent mode change details including previous and new modes - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionModeChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.mode_changed"; } - - @JsonProperty("data") - private SessionModeChangedEventData data; - - public SessionModeChangedEventData getData() { return data; } - public void setData(SessionModeChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionModeChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionModeChangedEventData( - /** The session mode the agent is operating in */ - @JsonProperty("previousMode") SessionMode previousMode, - /** The session mode the agent is operating in */ - @JsonProperty("newMode") SessionMode newMode - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java deleted file mode 100644 index 0c408e0b3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionModelChangeEvent.java +++ /dev/null @@ -1,54 +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; - -/** - * Session event "session.model_change". Model change details including previous and new model identifiers - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionModelChangeEvent extends SessionEvent { - - @Override - public String getType() { return "session.model_change"; } - - @JsonProperty("data") - private SessionModelChangeEventData data; - - public SessionModelChangeEventData getData() { return data; } - public void setData(SessionModelChangeEventData data) { this.data = data; } - - /** Data payload for {@link SessionModelChangeEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionModelChangeEventData( - /** Model that was previously selected, if any */ - @JsonProperty("previousModel") String previousModel, - /** Newly selected model identifier */ - @JsonProperty("newModel") String newModel, - /** Reasoning effort level before the model change, if applicable */ - @JsonProperty("previousReasoningEffort") String previousReasoningEffort, - /** Reasoning effort level after the model change, if applicable */ - @JsonProperty("reasoningEffort") String reasoningEffort, - /** Reasoning summary mode before the model change, if applicable */ - @JsonProperty("previousReasoningSummary") ReasoningSummary previousReasoningSummary, - /** Reasoning summary mode after the model change, if applicable */ - @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, - /** Reason the change happened, when not user-initiated. Currently `"rate_limit_auto_switch"` for changes triggered by the auto-mode-switch rate-limit recovery path. UI clients can use this to render contextual copy. */ - @JsonProperty("cause") String cause - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java deleted file mode 100644 index cf9f4706d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionPlanChangedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "session.plan_changed". Plan file operation details indicating what changed - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPlanChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.plan_changed"; } - - @JsonProperty("data") - private SessionPlanChangedEventData data; - - public SessionPlanChangedEventData getData() { return data; } - public void setData(SessionPlanChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionPlanChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionPlanChangedEventData( - /** The type of operation performed on the plan file */ - @JsonProperty("operation") PlanChangedOperation operation - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java deleted file mode 100644 index adcc3aeb7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionRemoteSteerableChangedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "session.remote_steerable_changed". Notifies that the session's remote steering capability has changed - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionRemoteSteerableChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.remote_steerable_changed"; } - - @JsonProperty("data") - private SessionRemoteSteerableChangedEventData data; - - public SessionRemoteSteerableChangedEventData getData() { return data; } - public void setData(SessionRemoteSteerableChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionRemoteSteerableChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionRemoteSteerableChangedEventData( - /** Whether this session now supports remote steering via GitHub */ - @JsonProperty("remoteSteerable") Boolean remoteSteerable - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java deleted file mode 100644 index e27cc2045..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionResumeEvent.java +++ /dev/null @@ -1,61 +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.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Session event "session.resume". Session resume metadata including current context and event count - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionResumeEvent extends SessionEvent { - - @Override - public String getType() { return "session.resume"; } - - @JsonProperty("data") - private SessionResumeEventData data; - - public SessionResumeEventData getData() { return data; } - public void setData(SessionResumeEventData data) { this.data = data; } - - /** Data payload for {@link SessionResumeEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionResumeEventData( - /** ISO 8601 timestamp when the session was resumed */ - @JsonProperty("resumeTime") OffsetDateTime resumeTime, - /** Total number of persisted events in the session at the time of resume */ - @JsonProperty("eventCount") Long eventCount, - /** Model currently selected at resume time */ - @JsonProperty("selectedModel") String selectedModel, - /** Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max") */ - @JsonProperty("reasoningEffort") String reasoningEffort, - /** Reasoning summary mode used for model calls, if applicable (e.g. "none", "concise", "detailed") */ - @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, - /** Updated working directory and git context at resume time */ - @JsonProperty("context") WorkingDirectoryContext context, - /** Whether the session was already in use by another client at resume time */ - @JsonProperty("alreadyInUse") Boolean alreadyInUse, - /** True when this resume attached to a session that the runtime already had running in-memory (for example, an extension joining a session another client was actively driving). False (or omitted) for cold resumes — the runtime had to reconstitute the session from its persisted event log. */ - @JsonProperty("sessionWasActive") Boolean sessionWasActive, - /** Whether this session supports remote steering via GitHub */ - @JsonProperty("remoteSteerable") Boolean remoteSteerable, - /** When true, tool calls and permission requests left in flight by the previous session lifetime remain pending after resume and the agentic loop awaits their results. User sends are queued behind the pending work until all such requests reach a terminal state. When false (the default), any such tool calls and permission requests are immediately marked as interrupted on resume. */ - @JsonProperty("continuePendingWork") Boolean continuePendingWork - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java deleted file mode 100644 index 51aba5d4c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCancelledEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "session.schedule_cancelled". Scheduled prompt cancelled from the schedule manager dialog - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionScheduleCancelledEvent extends SessionEvent { - - @Override - public String getType() { return "session.schedule_cancelled"; } - - @JsonProperty("data") - private SessionScheduleCancelledEventData data; - - public SessionScheduleCancelledEventData getData() { return data; } - public void setData(SessionScheduleCancelledEventData data) { this.data = data; } - - /** Data payload for {@link SessionScheduleCancelledEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionScheduleCancelledEventData( - /** Id of the scheduled prompt that was cancelled */ - @JsonProperty("id") Long id - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java deleted file mode 100644 index 2a9cbdeb4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionScheduleCreatedEvent.java +++ /dev/null @@ -1,50 +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; - -/** - * Session event "session.schedule_created". Scheduled prompt registered via /every or /after - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionScheduleCreatedEvent extends SessionEvent { - - @Override - public String getType() { return "session.schedule_created"; } - - @JsonProperty("data") - private SessionScheduleCreatedEventData data; - - public SessionScheduleCreatedEventData getData() { return data; } - public void setData(SessionScheduleCreatedEventData data) { this.data = data; } - - /** Data payload for {@link SessionScheduleCreatedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionScheduleCreatedEventData( - /** Sequential id assigned to the scheduled prompt within the session */ - @JsonProperty("id") Long id, - /** Interval between ticks in milliseconds */ - @JsonProperty("intervalMs") Long intervalMs, - /** Prompt text that gets enqueued on every tick */ - @JsonProperty("prompt") String prompt, - /** Whether the schedule re-arms after each tick (`/every`) or fires once (`/after`) */ - @JsonProperty("recurring") Boolean recurring, - /** Optional user-facing label shown in the timeline instead of the actual prompt (e.g. `/skill-name args` when the prompt is a skill invocation expansion) */ - @JsonProperty("displayPrompt") String displayPrompt - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java deleted file mode 100644 index 03ad8e027..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionShutdownEvent.java +++ /dev/null @@ -1,69 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Session event "session.shutdown". Session termination metrics including usage statistics, code changes, and shutdown reason - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionShutdownEvent extends SessionEvent { - - @Override - public String getType() { return "session.shutdown"; } - - @JsonProperty("data") - private SessionShutdownEventData data; - - public SessionShutdownEventData getData() { return data; } - public void setData(SessionShutdownEventData data) { this.data = data; } - - /** Data payload for {@link SessionShutdownEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionShutdownEventData( - /** Whether the session ended normally ("routine") or due to a crash/fatal error ("error") */ - @JsonProperty("shutdownType") ShutdownType shutdownType, - /** Error description when shutdownType is "error" */ - @JsonProperty("errorReason") String errorReason, - /** Total number of premium API requests used during the session */ - @JsonProperty("totalPremiumRequests") Double totalPremiumRequests, - /** Session-wide accumulated nano-AI units cost */ - @JsonProperty("totalNanoAiu") Double totalNanoAiu, - /** Session-wide per-token-type accumulated token counts */ - @JsonProperty("tokenDetails") Map tokenDetails, - /** Cumulative time spent in API calls during the session, in milliseconds */ - @JsonProperty("totalApiDurationMs") Long totalApiDurationMs, - /** Unix timestamp (milliseconds) when the session started */ - @JsonProperty("sessionStartTime") Long sessionStartTime, - /** Aggregate code change metrics for the session */ - @JsonProperty("codeChanges") ShutdownCodeChanges codeChanges, - /** Per-model usage breakdown, keyed by model identifier */ - @JsonProperty("modelMetrics") Map modelMetrics, - /** Model that was selected at the time of shutdown */ - @JsonProperty("currentModel") String currentModel, - /** Total tokens in context window at shutdown */ - @JsonProperty("currentTokens") Long currentTokens, - /** System message token count at shutdown */ - @JsonProperty("systemTokens") Long systemTokens, - /** Non-system message token count at shutdown */ - @JsonProperty("conversationTokens") Long conversationTokens, - /** Tool definitions token count at shutdown */ - @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.java deleted file mode 100644 index f04118435..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionSkillsLoadedEvent.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 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; - -/** - * Session event "session.skills_loaded". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionSkillsLoadedEvent extends SessionEvent { - - @Override - public String getType() { return "session.skills_loaded"; } - - @JsonProperty("data") - private SessionSkillsLoadedEventData data; - - public SessionSkillsLoadedEventData getData() { return data; } - public void setData(SessionSkillsLoadedEventData data) { this.data = data; } - - /** Data payload for {@link SessionSkillsLoadedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionSkillsLoadedEventData( - /** Array of resolved skill metadata */ - @JsonProperty("skills") List skills - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java deleted file mode 100644 index 9c7e8765b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionSnapshotRewindEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "session.snapshot_rewind". Session rewind details including target event and count of removed events - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionSnapshotRewindEvent extends SessionEvent { - - @Override - public String getType() { return "session.snapshot_rewind"; } - - @JsonProperty("data") - private SessionSnapshotRewindEventData data; - - public SessionSnapshotRewindEventData getData() { return data; } - public void setData(SessionSnapshotRewindEventData data) { this.data = data; } - - /** Data payload for {@link SessionSnapshotRewindEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionSnapshotRewindEventData( - /** Event ID that was rewound to; this event and all after it were removed */ - @JsonProperty("upToEventId") String upToEventId, - /** Number of events that were removed by the rewind */ - @JsonProperty("eventsRemoved") Long eventsRemoved - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java deleted file mode 100644 index 0bb4b800f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionStartEvent.java +++ /dev/null @@ -1,65 +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.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Session event "session.start". Session initialization metadata including context and configuration - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionStartEvent extends SessionEvent { - - @Override - public String getType() { return "session.start"; } - - @JsonProperty("data") - private SessionStartEventData data; - - public SessionStartEventData getData() { return data; } - public void setData(SessionStartEventData data) { this.data = data; } - - /** Data payload for {@link SessionStartEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionStartEventData( - /** Unique identifier for the session */ - @JsonProperty("sessionId") String sessionId, - /** Schema version number for the session event format */ - @JsonProperty("version") Long version, - /** Identifier of the software producing the events (e.g., "copilot-agent") */ - @JsonProperty("producer") String producer, - /** Version string of the Copilot application */ - @JsonProperty("copilotVersion") String copilotVersion, - /** ISO 8601 timestamp when the session was created */ - @JsonProperty("startTime") OffsetDateTime startTime, - /** Model selected at session creation time, if any */ - @JsonProperty("selectedModel") String selectedModel, - /** Reasoning effort level used for model calls, if applicable (e.g. "none", "low", "medium", "high", "xhigh", "max") */ - @JsonProperty("reasoningEffort") String reasoningEffort, - /** Reasoning summary mode used for model calls, if applicable (e.g. "none", "concise", "detailed") */ - @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, - /** Working directory and git context at session start */ - @JsonProperty("context") WorkingDirectoryContext context, - /** Whether the session was already in use by another client at start time */ - @JsonProperty("alreadyInUse") Boolean alreadyInUse, - /** Whether this session supports remote steering via GitHub */ - @JsonProperty("remoteSteerable") Boolean remoteSteerable, - /** When set, identifies a parent session whose context this session continues — e.g., a detached headless rem-agent run launched on the parent's interactive shutdown. Telemetry from this session is reported under the parent's session_id. */ - @JsonProperty("detachedFromSpawningParentSessionId") String detachedFromSpawningParentSessionId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java deleted file mode 100644 index 097f59c97..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionTaskCompleteEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "session.task_complete". Task completion notification with summary from the agent - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionTaskCompleteEvent extends SessionEvent { - - @Override - public String getType() { return "session.task_complete"; } - - @JsonProperty("data") - private SessionTaskCompleteEventData data; - - public SessionTaskCompleteEventData getData() { return data; } - public void setData(SessionTaskCompleteEventData data) { this.data = data; } - - /** Data payload for {@link SessionTaskCompleteEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionTaskCompleteEventData( - /** Summary of the completed task, provided by the agent */ - @JsonProperty("summary") String summary, - /** Whether the tool call succeeded. False when validation failed (e.g., invalid arguments) */ - @JsonProperty("success") Boolean success - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java deleted file mode 100644 index e835e8ae5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionTitleChangedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "session.title_changed". Session title change payload containing the new display title - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionTitleChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.title_changed"; } - - @JsonProperty("data") - private SessionTitleChangedEventData data; - - public SessionTitleChangedEventData getData() { return data; } - public void setData(SessionTitleChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionTitleChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionTitleChangedEventData( - /** The new display title for the session */ - @JsonProperty("title") String title - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java deleted file mode 100644 index 1d80e5b60..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionToolsUpdatedEvent.java +++ /dev/null @@ -1,42 +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; - -/** - * Session event "session.tools_updated". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionToolsUpdatedEvent extends SessionEvent { - - @Override - public String getType() { return "session.tools_updated"; } - - @JsonProperty("data") - private SessionToolsUpdatedEventData data; - - public SessionToolsUpdatedEventData getData() { return data; } - public void setData(SessionToolsUpdatedEventData data) { this.data = data; } - - /** Data payload for {@link SessionToolsUpdatedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionToolsUpdatedEventData( - /** Identifier of the model the resolved tools apply to. */ - @JsonProperty("model") String model - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java deleted file mode 100644 index 0a96601b6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionTruncationEvent.java +++ /dev/null @@ -1,56 +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; - -/** - * Session event "session.truncation". Conversation truncation statistics including token counts and removed content metrics - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionTruncationEvent extends SessionEvent { - - @Override - public String getType() { return "session.truncation"; } - - @JsonProperty("data") - private SessionTruncationEventData data; - - public SessionTruncationEventData getData() { return data; } - public void setData(SessionTruncationEventData data) { this.data = data; } - - /** Data payload for {@link SessionTruncationEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionTruncationEventData( - /** Maximum token count for the model's context window */ - @JsonProperty("tokenLimit") Long tokenLimit, - /** Total tokens in conversation messages before truncation */ - @JsonProperty("preTruncationTokensInMessages") Long preTruncationTokensInMessages, - /** Number of conversation messages before truncation */ - @JsonProperty("preTruncationMessagesLength") Long preTruncationMessagesLength, - /** Total tokens in conversation messages after truncation */ - @JsonProperty("postTruncationTokensInMessages") Long postTruncationTokensInMessages, - /** Number of conversation messages after truncation */ - @JsonProperty("postTruncationMessagesLength") Long postTruncationMessagesLength, - /** Number of tokens removed by truncation */ - @JsonProperty("tokensRemovedDuringTruncation") Long tokensRemovedDuringTruncation, - /** Number of messages removed by truncation */ - @JsonProperty("messagesRemovedDuringTruncation") Long messagesRemovedDuringTruncation, - /** Identifier of the component that performed truncation (e.g., "BasicTruncator") */ - @JsonProperty("performedBy") String performedBy - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java deleted file mode 100644 index 70ecfe01a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionUsageInfoEvent.java +++ /dev/null @@ -1,54 +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; - -/** - * Session event "session.usage_info". Current context window usage statistics including token and message counts - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionUsageInfoEvent extends SessionEvent { - - @Override - public String getType() { return "session.usage_info"; } - - @JsonProperty("data") - private SessionUsageInfoEventData data; - - public SessionUsageInfoEventData getData() { return data; } - public void setData(SessionUsageInfoEventData data) { this.data = data; } - - /** Data payload for {@link SessionUsageInfoEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionUsageInfoEventData( - /** Maximum token count for the model's context window */ - @JsonProperty("tokenLimit") Long tokenLimit, - /** Current number of tokens in the context window */ - @JsonProperty("currentTokens") Long currentTokens, - /** Current number of messages in the conversation */ - @JsonProperty("messagesLength") Long messagesLength, - /** Token count from system message(s) */ - @JsonProperty("systemTokens") Long systemTokens, - /** Token count from non-system messages (user, assistant, tool) */ - @JsonProperty("conversationTokens") Long conversationTokens, - /** Token count from tool definitions */ - @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens, - /** Whether this is the first usage_info event emitted in this session */ - @JsonProperty("isInitial") Boolean isInitial - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java deleted file mode 100644 index 42b2eb8df..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionWarningEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "session.warning". Warning message for timeline display with categorization - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionWarningEvent extends SessionEvent { - - @Override - public String getType() { return "session.warning"; } - - @JsonProperty("data") - private SessionWarningEventData data; - - public SessionWarningEventData getData() { return data; } - public void setData(SessionWarningEventData data) { this.data = data; } - - /** Data payload for {@link SessionWarningEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionWarningEventData( - /** Category of warning (e.g., "subscription", "policy", "mcp") */ - @JsonProperty("warningType") String warningType, - /** Human-readable warning message for display in the timeline */ - @JsonProperty("message") String message, - /** Optional URL associated with this warning that the user can open in a browser */ - @JsonProperty("url") String url - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java deleted file mode 100644 index 85447d567..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SessionWorkspaceFileChangedEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "session.workspace_file_changed". Workspace file change details including path and operation type - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionWorkspaceFileChangedEvent extends SessionEvent { - - @Override - public String getType() { return "session.workspace_file_changed"; } - - @JsonProperty("data") - private SessionWorkspaceFileChangedEventData data; - - public SessionWorkspaceFileChangedEventData getData() { return data; } - public void setData(SessionWorkspaceFileChangedEventData data) { this.data = data; } - - /** Data payload for {@link SessionWorkspaceFileChangedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionWorkspaceFileChangedEventData( - /** Relative path within the session workspace files directory */ - @JsonProperty("path") String path, - /** Whether the file was newly created or updated */ - @JsonProperty("operation") WorkspaceFileChangedOperation operation - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java deleted file mode 100644 index 1ca80ad71..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownCodeChanges.java +++ /dev/null @@ -1,32 +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; - -/** - * Aggregate code change metrics for the session - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ShutdownCodeChanges( - /** Total number of lines added during the session */ - @JsonProperty("linesAdded") Long linesAdded, - /** Total number of lines removed during the session */ - @JsonProperty("linesRemoved") Long linesRemoved, - /** List of file paths that were modified during the session */ - @JsonProperty("filesModified") List filesModified -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.java deleted file mode 100644 index b7eb37fd9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetric.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.Map; -import javax.annotation.processing.Generated; - -/** - * Schema for the `ShutdownModelMetric` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ShutdownModelMetric( - /** Request count and cost metrics */ - @JsonProperty("requests") ShutdownModelMetricRequests requests, - /** Token usage breakdown */ - @JsonProperty("usage") ShutdownModelMetricUsage usage, - /** Accumulated nano-AI units cost for this model */ - @JsonProperty("totalNanoAiu") Double totalNanoAiu, - /** Token count details per type */ - @JsonProperty("tokenDetails") Map tokenDetails -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.java deleted file mode 100644 index ebc58271e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricRequests.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; - -/** - * Request count and cost metrics - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ShutdownModelMetricRequests( - /** Total number of API requests made to this model */ - @JsonProperty("count") Long count, - /** Cumulative cost multiplier for requests to this model */ - @JsonProperty("cost") Double cost -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.java deleted file mode 100644 index fe18de6c6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricTokenDetail.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 `ShutdownModelMetricTokenDetail` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ShutdownModelMetricTokenDetail( - /** Accumulated token count for this token type */ - @JsonProperty("tokenCount") Long tokenCount -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.java deleted file mode 100644 index 09a61920d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownModelMetricUsage.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 com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Token usage breakdown - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ShutdownModelMetricUsage( - /** Total input tokens consumed across all requests to this model */ - @JsonProperty("inputTokens") Long inputTokens, - /** Total output tokens produced across all requests to this model */ - @JsonProperty("outputTokens") Long outputTokens, - /** Total tokens read from prompt cache across all requests */ - @JsonProperty("cacheReadTokens") Long cacheReadTokens, - /** Total tokens written to prompt cache across all requests */ - @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, - /** Total reasoning tokens produced across all requests to this model */ - @JsonProperty("reasoningTokens") Long reasoningTokens -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.java deleted file mode 100644 index 75db095c5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownTokenDetail.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 `ShutdownTokenDetail` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ShutdownTokenDetail( - /** Accumulated token count for this token type */ - @JsonProperty("tokenCount") Long tokenCount -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java b/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.java deleted file mode 100644 index 288d0835f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ShutdownType.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 session ended normally ("routine") or due to a crash/fatal error ("error") - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ShutdownType { - /** The {@code routine} variant. */ - ROUTINE("routine"), - /** The {@code error} variant. */ - ERROR("error"); - - private final String value; - ShutdownType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ShutdownType fromValue(String value) { - for (ShutdownType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ShutdownType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java deleted file mode 100644 index 5be080a64..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SkillInvokedEvent.java +++ /dev/null @@ -1,55 +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; - -/** - * Session event "skill.invoked". Skill invocation details including content, allowed tools, and plugin metadata - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SkillInvokedEvent extends SessionEvent { - - @Override - public String getType() { return "skill.invoked"; } - - @JsonProperty("data") - private SkillInvokedEventData data; - - public SkillInvokedEventData getData() { return data; } - public void setData(SkillInvokedEventData data) { this.data = data; } - - /** Data payload for {@link SkillInvokedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SkillInvokedEventData( - /** Name of the invoked skill */ - @JsonProperty("name") String name, - /** File path to the SKILL.md definition */ - @JsonProperty("path") String path, - /** Full content of the skill file, injected into the conversation for the model */ - @JsonProperty("content") String content, - /** Tool names that should be auto-approved when this skill is active */ - @JsonProperty("allowedTools") List allowedTools, - /** Name of the plugin this skill originated from, when applicable */ - @JsonProperty("pluginName") String pluginName, - /** Version of the plugin this skill originated from, when applicable */ - @JsonProperty("pluginVersion") String pluginVersion, - /** Description of the skill from its SKILL.md frontmatter */ - @JsonProperty("description") String description - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java b/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java deleted file mode 100644 index b681faaae..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SkillSource.java +++ /dev/null @@ -1,45 +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; - -/** - * Source location type (e.g., project, personal-copilot, plugin, builtin) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SkillSource { - /** The {@code project} variant. */ - PROJECT("project"), - /** The {@code inherited} variant. */ - INHERITED("inherited"), - /** The {@code personal-copilot} variant. */ - PERSONAL_COPILOT("personal-copilot"), - /** The {@code personal-agents} variant. */ - PERSONAL_AGENTS("personal-agents"), - /** The {@code plugin} variant. */ - PLUGIN("plugin"), - /** The {@code custom} variant. */ - CUSTOM("custom"), - /** The {@code builtin} variant. */ - BUILTIN("builtin"); - - private final String value; - SkillSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SkillSource fromValue(String value) { - for (SkillSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SkillSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java b/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.java deleted file mode 100644 index 07ce97825..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SkillsLoadedSkill.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 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 `SkillsLoadedSkill` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SkillsLoadedSkill( - /** Unique identifier for the skill */ - @JsonProperty("name") String name, - /** Description of what the skill does */ - @JsonProperty("description") String description, - /** Source location type (e.g., project, personal-copilot, plugin, builtin) */ - @JsonProperty("source") SkillSource source, - /** Whether the skill can be invoked by the user as a slash command */ - @JsonProperty("userInvocable") Boolean userInvocable, - /** Whether the skill is currently enabled */ - @JsonProperty("enabled") Boolean enabled, - /** Absolute path to the skill file, if available */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java deleted file mode 100644 index 98924809f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentCompletedEvent.java +++ /dev/null @@ -1,54 +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; - -/** - * Session event "subagent.completed". Sub-agent completion details for successful execution - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SubagentCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "subagent.completed"; } - - @JsonProperty("data") - private SubagentCompletedEventData data; - - public SubagentCompletedEventData getData() { return data; } - public void setData(SubagentCompletedEventData data) { this.data = data; } - - /** Data payload for {@link SubagentCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SubagentCompletedEventData( - /** Tool call ID of the parent tool invocation that spawned this sub-agent */ - @JsonProperty("toolCallId") String toolCallId, - /** Internal name of the sub-agent */ - @JsonProperty("agentName") String agentName, - /** Human-readable display name of the sub-agent */ - @JsonProperty("agentDisplayName") String agentDisplayName, - /** Model used by the sub-agent */ - @JsonProperty("model") String model, - /** Total number of tool calls made by the sub-agent */ - @JsonProperty("totalToolCalls") Long totalToolCalls, - /** Total tokens (input + output) consumed by the sub-agent */ - @JsonProperty("totalTokens") Long totalTokens, - /** Wall-clock duration of the sub-agent execution in milliseconds */ - @JsonProperty("durationMs") Long durationMs - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java deleted file mode 100644 index 2274ba66e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentDeselectedEvent.java +++ /dev/null @@ -1,39 +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; - -/** - * Session event "subagent.deselected". Empty payload; the event signals that the custom agent was deselected, returning to the default agent - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SubagentDeselectedEvent extends SessionEvent { - - @Override - public String getType() { return "subagent.deselected"; } - - @JsonProperty("data") - private SubagentDeselectedEventData data; - - public SubagentDeselectedEventData getData() { return data; } - public void setData(SubagentDeselectedEventData data) { this.data = data; } - - /** Data payload for {@link SubagentDeselectedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SubagentDeselectedEventData() { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java deleted file mode 100644 index 9264b5b0e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentFailedEvent.java +++ /dev/null @@ -1,56 +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; - -/** - * Session event "subagent.failed". Sub-agent failure details including error message and agent information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SubagentFailedEvent extends SessionEvent { - - @Override - public String getType() { return "subagent.failed"; } - - @JsonProperty("data") - private SubagentFailedEventData data; - - public SubagentFailedEventData getData() { return data; } - public void setData(SubagentFailedEventData data) { this.data = data; } - - /** Data payload for {@link SubagentFailedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SubagentFailedEventData( - /** Tool call ID of the parent tool invocation that spawned this sub-agent */ - @JsonProperty("toolCallId") String toolCallId, - /** Internal name of the sub-agent */ - @JsonProperty("agentName") String agentName, - /** Human-readable display name of the sub-agent */ - @JsonProperty("agentDisplayName") String agentDisplayName, - /** Error message describing why the sub-agent failed */ - @JsonProperty("error") String error, - /** Model used by the sub-agent (if any model calls succeeded before failure) */ - @JsonProperty("model") String model, - /** Total number of tool calls made before the sub-agent failed */ - @JsonProperty("totalToolCalls") Long totalToolCalls, - /** Total tokens (input + output) consumed before the sub-agent failed */ - @JsonProperty("totalTokens") Long totalTokens, - /** Wall-clock duration of the sub-agent execution in milliseconds */ - @JsonProperty("durationMs") Long durationMs - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.java deleted file mode 100644 index 7eb82019b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentSelectedEvent.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 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; - -/** - * Session event "subagent.selected". Custom agent selection details including name and available tools - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SubagentSelectedEvent extends SessionEvent { - - @Override - public String getType() { return "subagent.selected"; } - - @JsonProperty("data") - private SubagentSelectedEventData data; - - public SubagentSelectedEventData getData() { return data; } - public void setData(SubagentSelectedEventData data) { this.data = data; } - - /** Data payload for {@link SubagentSelectedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SubagentSelectedEventData( - /** Internal name of the selected custom agent */ - @JsonProperty("agentName") String agentName, - /** Human-readable display name of the selected custom agent */ - @JsonProperty("agentDisplayName") String agentDisplayName, - /** List of tool names available to this agent, or null for all tools */ - @JsonProperty("tools") List tools - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java deleted file mode 100644 index 647bc824d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SubagentStartedEvent.java +++ /dev/null @@ -1,50 +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; - -/** - * Session event "subagent.started". Sub-agent startup details including parent tool call and agent information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SubagentStartedEvent extends SessionEvent { - - @Override - public String getType() { return "subagent.started"; } - - @JsonProperty("data") - private SubagentStartedEventData data; - - public SubagentStartedEventData getData() { return data; } - public void setData(SubagentStartedEventData data) { this.data = data; } - - /** Data payload for {@link SubagentStartedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SubagentStartedEventData( - /** Tool call ID of the parent tool invocation that spawned this sub-agent */ - @JsonProperty("toolCallId") String toolCallId, - /** Internal name of the sub-agent */ - @JsonProperty("agentName") String agentName, - /** Human-readable display name of the sub-agent */ - @JsonProperty("agentDisplayName") String agentDisplayName, - /** Description of what the sub-agent does */ - @JsonProperty("agentDescription") String agentDescription, - /** Model the sub-agent will run with, when known at start. Surfaced in the timeline for auto-selected sub-agents (e.g. rubber-duck). */ - @JsonProperty("model") String model - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java deleted file mode 100644 index 09d39a199..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageEvent.java +++ /dev/null @@ -1,48 +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; - -/** - * Session event "system.message". System/developer instruction content with role and optional template metadata - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemMessageEvent extends SessionEvent { - - @Override - public String getType() { return "system.message"; } - - @JsonProperty("data") - private SystemMessageEventData data; - - public SystemMessageEventData getData() { return data; } - public void setData(SystemMessageEventData data) { this.data = data; } - - /** Data payload for {@link SystemMessageEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SystemMessageEventData( - /** The system or developer prompt text sent as model input */ - @JsonProperty("content") String content, - /** Message role: "system" for system prompts, "developer" for developer-injected instructions */ - @JsonProperty("role") SystemMessageRole role, - /** Optional name identifier for the message source */ - @JsonProperty("name") String name, - /** Metadata about the prompt template and its construction */ - @JsonProperty("metadata") SystemMessageMetadata metadata - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java deleted file mode 100644 index f7f5fcbf2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageMetadata.java +++ /dev/null @@ -1,30 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Metadata about the prompt template and its construction - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SystemMessageMetadata( - /** Version identifier of the prompt template used */ - @JsonProperty("promptVersion") String promptVersion, - /** Template variables used when constructing the prompt */ - @JsonProperty("variables") Map variables -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java b/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.java deleted file mode 100644 index 3ccd8c31d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemMessageRole.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; - -/** - * Message role: "system" for system prompts, "developer" for developer-injected instructions - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SystemMessageRole { - /** The {@code system} variant. */ - SYSTEM("system"), - /** The {@code developer} variant. */ - DEVELOPER("developer"); - - private final String value; - SystemMessageRole(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SystemMessageRole fromValue(String value) { - for (SystemMessageRole v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SystemMessageRole value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java b/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java deleted file mode 100644 index 5a8a0fdfb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/SystemNotificationEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "system.notification". System-generated notification for runtime events like background task completion - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationEvent extends SessionEvent { - - @Override - public String getType() { return "system.notification"; } - - @JsonProperty("data") - private SystemNotificationEventData data; - - public SystemNotificationEventData getData() { return data; } - public void setData(SystemNotificationEventData data) { this.data = data; } - - /** Data payload for {@link SystemNotificationEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SystemNotificationEventData( - /** The notification text, typically wrapped in XML tags */ - @JsonProperty("content") String content, - /** Structured metadata identifying what triggered this notification */ - @JsonProperty("kind") Object kind - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.java deleted file mode 100644 index ac4c7d843..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteError.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; - -/** - * Error details when the tool execution failed - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ToolExecutionCompleteError( - /** Human-readable error message */ - @JsonProperty("message") String message, - /** Machine-readable error code */ - @JsonProperty("code") String code -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java deleted file mode 100644 index 36284b472..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteEvent.java +++ /dev/null @@ -1,63 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Session event "tool.execution_complete". Tool execution completion results including success status, detailed output, and error information - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteEvent extends SessionEvent { - - @Override - public String getType() { return "tool.execution_complete"; } - - @JsonProperty("data") - private ToolExecutionCompleteEventData data; - - public ToolExecutionCompleteEventData getData() { return data; } - public void setData(ToolExecutionCompleteEventData data) { this.data = data; } - - /** Data payload for {@link ToolExecutionCompleteEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ToolExecutionCompleteEventData( - /** Unique identifier for the completed tool call */ - @JsonProperty("toolCallId") String toolCallId, - /** Whether the tool execution completed successfully */ - @JsonProperty("success") Boolean success, - /** Model identifier that generated this tool call */ - @JsonProperty("model") String model, - /** CAPI interaction ID for correlating this tool execution with upstream telemetry */ - @JsonProperty("interactionId") String interactionId, - /** Whether this tool call was explicitly requested by the user rather than the assistant */ - @JsonProperty("isUserRequested") Boolean isUserRequested, - /** Tool execution result on success */ - @JsonProperty("result") ToolExecutionCompleteResult result, - /** Error details when the tool execution failed */ - @JsonProperty("error") ToolExecutionCompleteError error, - /** Tool-specific telemetry data (e.g., CodeQL check counts, grep match counts) */ - @JsonProperty("toolTelemetry") Map toolTelemetry, - /** Identifier for the agent loop turn this tool was invoked in, matching the corresponding assistant.turn_start event */ - @JsonProperty("turnId") String turnId, - /** Whether this tool execution ran inside a sandbox container */ - @JsonProperty("sandboxed") Boolean sandboxed, - /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ - @JsonProperty("parentToolCallId") String parentToolCallId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java deleted file mode 100644 index 4792ec8da..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionCompleteResult.java +++ /dev/null @@ -1,32 +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; - -/** - * Tool execution result on success - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ToolExecutionCompleteResult( - /** Concise tool result text sent to the LLM for chat completion, potentially truncated for token efficiency */ - @JsonProperty("content") String content, - /** Full detailed tool result for UI/timeline display, preserving complete content such as diffs. Falls back to content when absent. */ - @JsonProperty("detailedContent") String detailedContent, - /** Structured content blocks (text, images, audio, resources) returned by the tool in their native format */ - @JsonProperty("contents") List contents -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java deleted file mode 100644 index 9c43aa2ec..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionPartialResultEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "tool.execution_partial_result". Streaming tool execution output for incremental result display - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionPartialResultEvent extends SessionEvent { - - @Override - public String getType() { return "tool.execution_partial_result"; } - - @JsonProperty("data") - private ToolExecutionPartialResultEventData data; - - public ToolExecutionPartialResultEventData getData() { return data; } - public void setData(ToolExecutionPartialResultEventData data) { this.data = data; } - - /** Data payload for {@link ToolExecutionPartialResultEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ToolExecutionPartialResultEventData( - /** Tool call ID this partial result belongs to */ - @JsonProperty("toolCallId") String toolCallId, - /** Incremental output chunk from the running tool */ - @JsonProperty("partialOutput") String partialOutput - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java deleted file mode 100644 index f3a7c1158..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionProgressEvent.java +++ /dev/null @@ -1,44 +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; - -/** - * Session event "tool.execution_progress". Tool execution progress notification with status message - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionProgressEvent extends SessionEvent { - - @Override - public String getType() { return "tool.execution_progress"; } - - @JsonProperty("data") - private ToolExecutionProgressEventData data; - - public ToolExecutionProgressEventData getData() { return data; } - public void setData(ToolExecutionProgressEventData data) { this.data = data; } - - /** Data payload for {@link ToolExecutionProgressEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ToolExecutionProgressEventData( - /** Tool call ID this progress notification belongs to */ - @JsonProperty("toolCallId") String toolCallId, - /** Human-readable progress status message (e.g., from an MCP server) */ - @JsonProperty("progressMessage") String progressMessage - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java deleted file mode 100644 index 782f185f7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolExecutionStartEvent.java +++ /dev/null @@ -1,54 +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; - -/** - * Session event "tool.execution_start". Tool execution startup details including MCP server information when applicable - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionStartEvent extends SessionEvent { - - @Override - public String getType() { return "tool.execution_start"; } - - @JsonProperty("data") - private ToolExecutionStartEventData data; - - public ToolExecutionStartEventData getData() { return data; } - public void setData(ToolExecutionStartEventData data) { this.data = data; } - - /** Data payload for {@link ToolExecutionStartEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ToolExecutionStartEventData( - /** Unique identifier for this tool call */ - @JsonProperty("toolCallId") String toolCallId, - /** Name of the tool being executed */ - @JsonProperty("toolName") String toolName, - /** Arguments passed to the tool */ - @JsonProperty("arguments") Object arguments, - /** Name of the MCP server hosting this tool, when the tool is an MCP tool */ - @JsonProperty("mcpServerName") String mcpServerName, - /** Original tool name on the MCP server, when the tool is an MCP tool */ - @JsonProperty("mcpToolName") String mcpToolName, - /** Identifier for the agent loop turn this tool was invoked in, matching the corresponding assistant.turn_start event */ - @JsonProperty("turnId") String turnId, - /** Tool call ID of the parent tool invocation when this event originates from a sub-agent */ - @JsonProperty("parentToolCallId") String parentToolCallId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java deleted file mode 100644 index 1b4d519a9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/ToolUserRequestedEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "tool.user_requested". User-initiated tool invocation request with tool name and arguments - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolUserRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "tool.user_requested"; } - - @JsonProperty("data") - private ToolUserRequestedEventData data; - - public ToolUserRequestedEventData getData() { return data; } - public void setData(ToolUserRequestedEventData data) { this.data = data; } - - /** Data payload for {@link ToolUserRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record ToolUserRequestedEventData( - /** Unique identifier for this tool call */ - @JsonProperty("toolCallId") String toolCallId, - /** Name of the tool the user wants to invoke */ - @JsonProperty("toolName") String toolName, - /** Arguments for the tool invocation */ - @JsonProperty("arguments") Object arguments - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java deleted file mode 100644 index 8f1257cf9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java +++ /dev/null @@ -1,31 +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.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Fallback for event types not yet known to this SDK version. - *

    - * {@link #getType()} returns the original type string from the JSON payload, - * preserving forward compatibility with event types introduced by newer CLI versions. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UnknownSessionEvent extends SessionEvent { - - @JsonProperty("type") - private String type = "unknown"; - - @Override - public String getType() { return type; } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java deleted file mode 100644 index 7750c9e70..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/UserInputCompletedEvent.java +++ /dev/null @@ -1,46 +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; - -/** - * Session event "user_input.completed". User input request completion with the user's response - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserInputCompletedEvent extends SessionEvent { - - @Override - public String getType() { return "user_input.completed"; } - - @JsonProperty("data") - private UserInputCompletedEventData data; - - public UserInputCompletedEventData getData() { return data; } - public void setData(UserInputCompletedEventData data) { this.data = data; } - - /** Data payload for {@link UserInputCompletedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record UserInputCompletedEventData( - /** Request ID of the resolved user input request; clients should dismiss any UI for this request */ - @JsonProperty("requestId") String requestId, - /** The user's answer to the input request */ - @JsonProperty("answer") String answer, - /** Whether the answer was typed as free-form text rather than selected from choices */ - @JsonProperty("wasFreeform") Boolean wasFreeform - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java deleted file mode 100644 index e7ddb2859..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/UserInputRequestedEvent.java +++ /dev/null @@ -1,51 +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; - -/** - * Session event "user_input.requested". User input request notification with question and optional predefined choices - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserInputRequestedEvent extends SessionEvent { - - @Override - public String getType() { return "user_input.requested"; } - - @JsonProperty("data") - private UserInputRequestedEventData data; - - public UserInputRequestedEventData getData() { return data; } - public void setData(UserInputRequestedEventData data) { this.data = data; } - - /** Data payload for {@link UserInputRequestedEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record UserInputRequestedEventData( - /** Unique identifier for this input request; used to respond via session.respondToUserInput() */ - @JsonProperty("requestId") String requestId, - /** The question or prompt to present to the user */ - @JsonProperty("question") String question, - /** Predefined choices for the user to select from, if applicable */ - @JsonProperty("choices") List choices, - /** Whether the user can provide a free-form text response in addition to predefined choices */ - @JsonProperty("allowFreeform") Boolean allowFreeform, - /** The LLM-assigned tool call ID that triggered this request; used by remote UIs to correlate responses */ - @JsonProperty("toolCallId") String toolCallId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java b/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java deleted file mode 100644 index f6e7c60d7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/UserMessageAgentMode.java +++ /dev/null @@ -1,39 +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 agent mode that was active when this message was sent - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum UserMessageAgentMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"), - /** The {@code shell} variant. */ - SHELL("shell"); - - private final String value; - UserMessageAgentMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static UserMessageAgentMode fromValue(String value) { - for (UserMessageAgentMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown UserMessageAgentMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java b/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java deleted file mode 100644 index 3e8e7520f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/UserMessageEvent.java +++ /dev/null @@ -1,61 +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; - -/** - * Session event "user.message". - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserMessageEvent extends SessionEvent { - - @Override - public String getType() { return "user.message"; } - - @JsonProperty("data") - private UserMessageEventData data; - - public UserMessageEventData getData() { return data; } - public void setData(UserMessageEventData data) { this.data = data; } - - /** Data payload for {@link UserMessageEvent}. */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record UserMessageEventData( - /** The user's message text as displayed in the timeline */ - @JsonProperty("content") String content, - /** Transformed version of the message sent to the model, with XML wrapping, timestamps, and other augmentations for prompt caching */ - @JsonProperty("transformedContent") String transformedContent, - /** Files, selections, or GitHub references attached to the message */ - @JsonProperty("attachments") List attachments, - /** Normalized document MIME types that were sent natively instead of through tagged_files XML */ - @JsonProperty("supportedNativeDocumentMimeTypes") List supportedNativeDocumentMimeTypes, - /** Path-backed native document attachments that stayed on the tagged_files path flow because native upload could not read them or would exceed the request size limit */ - @JsonProperty("nativeDocumentPathFallbackPaths") List nativeDocumentPathFallbackPaths, - /** Origin of this message, used for timeline filtering (e.g., "skill-pdf" for skill-injected messages that should be hidden from the user) */ - @JsonProperty("source") String source, - /** The agent mode that was active when this message was sent */ - @JsonProperty("agentMode") UserMessageAgentMode agentMode, - /** True when this user message was auto-injected by autopilot's continuation loop rather than typed by the user; used to distinguish autopilot-driven turns in telemetry. */ - @JsonProperty("isAutopilotContinuation") Boolean isAutopilotContinuation, - /** CAPI interaction ID for correlating this user message with its turn */ - @JsonProperty("interactionId") String interactionId, - /** Parent agent task ID for background telemetry correlated to this user turn */ - @JsonProperty("parentAgentTaskId") String parentAgentTaskId - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java b/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java deleted file mode 100644 index 813cd5e02..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContext.java +++ /dev/null @@ -1,41 +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; - -/** - * Working directory and git context at session start - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record WorkingDirectoryContext( - /** Current working directory path */ - @JsonProperty("cwd") String cwd, - /** Root directory of the git repository, resolved via git rev-parse */ - @JsonProperty("gitRoot") String gitRoot, - /** Repository identifier derived from the git remote URL ("owner/name" for GitHub, "org/project/repo" for Azure DevOps) */ - @JsonProperty("repository") String repository, - /** Hosting platform type of the repository (github or ado) */ - @JsonProperty("hostType") WorkingDirectoryContextHostType hostType, - /** Raw host string from the git remote URL (e.g. "github.com", "mycompany.ghe.com", "dev.azure.com") */ - @JsonProperty("repositoryHost") String repositoryHost, - /** Current git branch name */ - @JsonProperty("branch") String branch, - /** Head commit of current git branch at session start time */ - @JsonProperty("headCommit") String headCommit, - /** Base commit of current git branch at session start time */ - @JsonProperty("baseCommit") String baseCommit -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.java deleted file mode 100644 index c87237a8d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/WorkingDirectoryContextHostType.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; - -/** - * Hosting platform type of the repository (github or ado) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum WorkingDirectoryContextHostType { - /** The {@code github} variant. */ - GITHUB("github"), - /** The {@code ado} variant. */ - ADO("ado"); - - private final String value; - WorkingDirectoryContextHostType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static WorkingDirectoryContextHostType fromValue(String value) { - for (WorkingDirectoryContextHostType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown WorkingDirectoryContextHostType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java b/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.java deleted file mode 100644 index a6347ed77..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/WorkspaceFileChangedOperation.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 file was newly created or updated - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum WorkspaceFileChangedOperation { - /** The {@code create} variant. */ - CREATE("create"), - /** The {@code update} variant. */ - UPDATE("update"); - - private final String value; - WorkspaceFileChangedOperation(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static WorkspaceFileChangedOperation fromValue(String value) { - for (WorkspaceFileChangedOperation v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown WorkspaceFileChangedOperation value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.java deleted file mode 100644 index a48640077..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AbortReason.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; - -/** - * Finite reason code describing why the current turn was aborted - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AbortReason { - /** The {@code user_initiated} variant. */ - USER_INITIATED("user_initiated"), - /** The {@code remote_command} variant. */ - REMOTE_COMMAND("remote_command"), - /** The {@code user_abort} variant. */ - USER_ABORT("user_abort"); - - private final String value; - AbortReason(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AbortReason fromValue(String value) { - for (AbortReason v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AbortReason value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.java deleted file mode 100644 index 257a08756..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountGetQuotaResult.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.Map; -import javax.annotation.processing.Generated; - -/** - * Quota usage snapshots for the resolved user, keyed by quota type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AccountGetQuotaResult( - /** Quota snapshots keyed by type (e.g., chat, completions, premium_interactions) */ - @JsonProperty("quotaSnapshots") Map quotaSnapshots -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.java deleted file mode 100644 index 88e7ba9c6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AccountQuotaSnapshot.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Schema for the `AccountQuotaSnapshot` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AccountQuotaSnapshot( - /** Whether the user has an unlimited usage entitlement */ - @JsonProperty("isUnlimitedEntitlement") Boolean isUnlimitedEntitlement, - /** Number of requests included in the entitlement, or -1 for unlimited entitlements */ - @JsonProperty("entitlementRequests") Long entitlementRequests, - /** Number of requests used so far this period */ - @JsonProperty("usedRequests") Long usedRequests, - /** Whether usage is still permitted after quota exhaustion */ - @JsonProperty("usageAllowedWithExhaustedQuota") Boolean usageAllowedWithExhaustedQuota, - /** Percentage of entitlement remaining */ - @JsonProperty("remainingPercentage") Double remainingPercentage, - /** Number of additional usage requests made this period */ - @JsonProperty("overage") Double overage, - /** Whether additional usage is allowed when quota is exhausted */ - @JsonProperty("overageAllowedWithExhaustedQuota") Boolean overageAllowedWithExhaustedQuota, - /** Date when the quota resets (ISO 8601 string) */ - @JsonProperty("resetDate") OffsetDateTime resetDate -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.java deleted file mode 100644 index ce8089373..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfo.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 java.util.List; -import java.util.Map; -import javax.annotation.processing.Generated; - -/** - * Schema for the `AgentInfo` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record AgentInfo( - /** Unique identifier of the custom agent */ - @JsonProperty("name") String name, - /** Human-readable display name */ - @JsonProperty("displayName") String displayName, - /** Description of the agent's purpose */ - @JsonProperty("description") String description, - /** Absolute local file path of the agent definition. Only set for file-based agents loaded from disk; remote agents do not have a path. */ - @JsonProperty("path") String path, - /** Stable identifier for selection. For most agents this is the same as `name`; for plugin/builtin agents it may differ. Always populated; defaults to `name` when no distinct id was assigned. */ - @JsonProperty("id") String id, - /** Where the agent definition was loaded from */ - @JsonProperty("source") AgentInfoSource source, - /** Whether the agent can be selected directly by the user. Agents marked `false` are subagent-only. */ - @JsonProperty("userInvocable") Boolean userInvocable, - /** Allowed tool names for this agent. Empty array means none; omitted means inherit defaults. */ - @JsonProperty("tools") List tools, - /** Preferred model id for this agent. When omitted, inherits the outer agent's model. */ - @JsonProperty("model") String model, - /** MCP server configurations attached to this agent, keyed by server name. Server config shape mirrors the MCP `mcpServers` schema. */ - @JsonProperty("mcpServers") Map mcpServers, - /** Skill names preloaded into this agent's context. Omitted means none. */ - @JsonProperty("skills") List skills -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.java deleted file mode 100644 index 6f8afe71e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AgentInfoSource.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.rpc; - -import javax.annotation.processing.Generated; - -/** - * Where the agent definition was loaded from - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AgentInfoSource { - /** The {@code user} variant. */ - USER("user"), - /** The {@code project} variant. */ - PROJECT("project"), - /** The {@code inherited} variant. */ - INHERITED("inherited"), - /** The {@code remote} variant. */ - REMOTE("remote"), - /** The {@code plugin} variant. */ - PLUGIN("plugin"), - /** The {@code builtin} variant. */ - BUILTIN("builtin"); - - private final String value; - AgentInfoSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AgentInfoSource fromValue(String value) { - for (AgentInfoSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AgentInfoSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.java deleted file mode 100644 index 1fb4b43ba..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/AuthInfoType.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 javax.annotation.processing.Generated; - -/** - * Authentication type - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum AuthInfoType { - /** The {@code hmac} variant. */ - HMAC("hmac"), - /** The {@code env} variant. */ - ENV("env"), - /** The {@code user} variant. */ - USER("user"), - /** The {@code gh-cli} variant. */ - GH_CLI("gh-cli"), - /** The {@code api-key} variant. */ - API_KEY("api-key"), - /** The {@code token} variant. */ - TOKEN("token"), - /** The {@code copilot-api-token} variant. */ - COPILOT_API_TOKEN("copilot-api-token"); - - private final String value; - AuthInfoType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static AuthInfoType fromValue(String value) { - for (AuthInfoType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown AuthInfoType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.java deleted file mode 100644 index 590dd0147..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectParams.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; - -/** - * Optional connection token presented by the SDK client during the handshake. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ConnectParams( - /** Connection token; required when the server was started with COPILOT_CONNECTION_TOKEN */ - @JsonProperty("token") String token -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.java deleted file mode 100644 index d24d120e1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectResult.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; - -/** - * Handshake result reporting the server's protocol version and package version on success. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ConnectResult( - /** Always true on success */ - @JsonProperty("ok") Boolean ok, - /** Server protocol version number */ - @JsonProperty("protocolVersion") Long protocolVersion, - /** Server package version */ - @JsonProperty("version") String version -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.java deleted file mode 100644 index 9e3a4a57f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadata.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Metadata for a connected remote session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ConnectedRemoteSessionMetadata( - /** SDK session ID for the connected remote session. */ - @JsonProperty("sessionId") String sessionId, - /** Optional friendly session name. */ - @JsonProperty("name") String name, - /** Optional session summary. */ - @JsonProperty("summary") String summary, - /** Session start time as an ISO 8601 string. */ - @JsonProperty("startTime") OffsetDateTime startTime, - /** Last session update time as an ISO 8601 string. */ - @JsonProperty("modifiedTime") OffsetDateTime modifiedTime, - /** Repository associated with the connected remote session. */ - @JsonProperty("repository") ConnectedRemoteSessionMetadataRepository repository, - /** Pull request number associated with the session. */ - @JsonProperty("pullRequestNumber") Long pullRequestNumber, - /** Original remote resource identifier. */ - @JsonProperty("resourceId") String resourceId, - /** Neutral SDK discriminator for the connected remote session kind. */ - @JsonProperty("kind") ConnectedRemoteSessionMetadataKind kind, - /** Remote session staleness deadline as an ISO 8601 string. */ - @JsonProperty("staleAt") OffsetDateTime staleAt, - /** Remote session state returned by the backing service. */ - @JsonProperty("state") String state -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.java deleted file mode 100644 index 8d22c1dd4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataKind.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; - -/** - * Neutral SDK discriminator for the connected remote session kind. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ConnectedRemoteSessionMetadataKind { - /** The {@code remote-session} variant. */ - REMOTE_SESSION("remote-session"), - /** The {@code coding-agent} variant. */ - CODING_AGENT("coding-agent"); - - private final String value; - ConnectedRemoteSessionMetadataKind(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ConnectedRemoteSessionMetadataKind fromValue(String value) { - for (ConnectedRemoteSessionMetadataKind v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ConnectedRemoteSessionMetadataKind value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.java deleted file mode 100644 index 7daa17bd1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ConnectedRemoteSessionMetadataRepository.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; - -/** - * Repository associated with the connected remote session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ConnectedRemoteSessionMetadataRepository( - /** Repository owner or organization login. */ - @JsonProperty("owner") String owner, - /** Repository name. */ - @JsonProperty("name") String name, - /** Branch associated with the remote session. */ - @JsonProperty("branch") String branch -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.java deleted file mode 100644 index 73095ef61..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServer.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; - -/** - * Schema for the `DiscoveredMcpServer` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record DiscoveredMcpServer( - /** Server name (config key) */ - @JsonProperty("name") String name, - /** Server transport type: stdio, http, sse, or memory */ - @JsonProperty("type") DiscoveredMcpServerType type, - /** Configuration source: user, workspace, plugin, or builtin */ - @JsonProperty("source") McpServerSource source, - /** Whether the server is enabled (not in the disabled list) */ - @JsonProperty("enabled") Boolean enabled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.java deleted file mode 100644 index 8e6c1417a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/DiscoveredMcpServerType.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; - -/** - * Server transport type: stdio, http, sse, or memory - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum DiscoveredMcpServerType { - /** The {@code stdio} variant. */ - STDIO("stdio"), - /** The {@code http} variant. */ - HTTP("http"), - /** The {@code sse} variant. */ - SSE("sse"), - /** The {@code memory} variant. */ - MEMORY("memory"); - - private final String value; - DiscoveredMcpServerType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static DiscoveredMcpServerType fromValue(String value) { - for (DiscoveredMcpServerType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown DiscoveredMcpServerType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.java deleted file mode 100644 index 5e85b1926..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsAgentScope.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; - -/** - * Agent-scope filter: 'primary' returns only main-agent events plus events whose type starts with 'subagent.' (matching the typed-subscription default behavior); 'all' returns events from all agents (matching wildcard-subscription behavior). Default is 'all' to preserve wildcard semantics for catch-up callers. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum EventsAgentScope { - /** The {@code primary} variant. */ - PRIMARY("primary"), - /** The {@code all} variant. */ - ALL("all"); - - private final String value; - EventsAgentScope(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static EventsAgentScope fromValue(String value) { - for (EventsAgentScope v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown EventsAgentScope value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.java deleted file mode 100644 index 31c1fcab0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/EventsCursorStatus.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; - -/** - * Cursor status: 'ok' means the cursor was applied successfully; 'expired' means the cursor referred to an event that no longer exists in history (e.g. truncated or compacted away) and the read started from the beginning of the remaining history. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum EventsCursorStatus { - /** The {@code ok} variant. */ - OK("ok"), - /** The {@code expired} variant. */ - EXPIRED("expired"); - - private final String value; - EventsCursorStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static EventsCursorStatus fromValue(String value) { - for (EventsCursorStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown EventsCursorStatus value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.java deleted file mode 100644 index 13bb851b4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Extension.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `Extension` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record Extension( - /** Source-qualified ID (e.g., 'project:my-ext', 'user:auth-helper') */ - @JsonProperty("id") String id, - /** Extension name (directory name) */ - @JsonProperty("name") String name, - /** Discovery source: project (.github/extensions/) or user (~/.copilot/extensions/) */ - @JsonProperty("source") ExtensionSource source, - /** Current status: running, disabled, failed, or starting */ - @JsonProperty("status") ExtensionStatus status, - /** Process ID if the extension is running */ - @JsonProperty("pid") Long pid -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.java deleted file mode 100644 index aeb7a144f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionSource.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; - -/** - * Discovery source: project (.github/extensions/) or user (~/.copilot/extensions/) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ExtensionSource { - /** The {@code project} variant. */ - PROJECT("project"), - /** The {@code user} variant. */ - USER("user"); - - private final String value; - ExtensionSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ExtensionSource fromValue(String value) { - for (ExtensionSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ExtensionSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.java deleted file mode 100644 index 34592663f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ExtensionStatus.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; - -/** - * Current status: running, disabled, failed, or starting - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ExtensionStatus { - /** The {@code running} variant. */ - RUNNING("running"), - /** The {@code disabled} variant. */ - DISABLED("disabled"), - /** The {@code failed} variant. */ - FAILED("failed"), - /** The {@code starting} variant. */ - STARTING("starting"); - - private final String value; - ExtensionStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ExtensionStatus fromValue(String value) { - for (ExtensionStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ExtensionStatus value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.java deleted file mode 100644 index 6c223f029..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/HistoryCompactContextWindow.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; - -/** - * Post-compaction context window usage breakdown - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record HistoryCompactContextWindow( - /** Maximum token count for the model's context window */ - @JsonProperty("tokenLimit") Long tokenLimit, - /** Current total tokens in the context window (system + conversation + tool definitions) */ - @JsonProperty("currentTokens") Long currentTokens, - /** Current number of messages in the conversation */ - @JsonProperty("messagesLength") Long messagesLength, - /** Token count from system message(s) */ - @JsonProperty("systemTokens") Long systemTokens, - /** Token count from non-system messages (user, assistant, tool) */ - @JsonProperty("conversationTokens") Long conversationTokens, - /** Token count from tool definitions */ - @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.java deleted file mode 100644 index c274dfb1a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstalledPlugin.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 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 `InstalledPlugin` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record InstalledPlugin( - /** Plugin name */ - @JsonProperty("name") String name, - /** Marketplace the plugin came from (empty string for direct repo installs) */ - @JsonProperty("marketplace") String marketplace, - /** Version installed (if available) */ - @JsonProperty("version") String version, - /** Installation timestamp */ - @JsonProperty("installed_at") String installedAt, - /** Whether the plugin is currently enabled */ - @JsonProperty("enabled") Boolean enabled, - /** Path where the plugin is cached locally */ - @JsonProperty("cache_path") String cachePath, - /** Source for direct repo installs (when marketplace is empty) */ - @JsonProperty("source") Object source -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.java deleted file mode 100644 index 9e6a458d4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSources.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `InstructionsSources` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record InstructionsSources( - /** Unique identifier for this source (used for toggling) */ - @JsonProperty("id") String id, - /** Human-readable label */ - @JsonProperty("label") String label, - /** File path relative to repo or absolute for home */ - @JsonProperty("sourcePath") String sourcePath, - /** Raw content of the instruction file */ - @JsonProperty("content") String content, - /** Category of instruction source — used for merge logic */ - @JsonProperty("type") InstructionsSourcesType type, - /** Where this source lives — used for UI grouping */ - @JsonProperty("location") InstructionsSourcesLocation location, - /** Glob pattern(s) from frontmatter — when set, this instruction applies only to matching files */ - @JsonProperty("applyTo") List applyTo, - /** Short description (body after frontmatter) for use in instruction tables */ - @JsonProperty("description") String description, - /** When true, this source starts disabled and must be toggled on by the user */ - @JsonProperty("defaultDisabled") Boolean defaultDisabled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.java deleted file mode 100644 index 23db5a367..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesLocation.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; - -/** - * Where this source lives — used for UI grouping - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum InstructionsSourcesLocation { - /** The {@code user} variant. */ - USER("user"), - /** The {@code repository} variant. */ - REPOSITORY("repository"), - /** The {@code working-directory} variant. */ - WORKING_DIRECTORY("working-directory"), - /** The {@code plugin} variant. */ - PLUGIN("plugin"); - - private final String value; - InstructionsSourcesLocation(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static InstructionsSourcesLocation fromValue(String value) { - for (InstructionsSourcesLocation v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown InstructionsSourcesLocation value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.java deleted file mode 100644 index 6fed6c4bf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/InstructionsSourcesType.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 javax.annotation.processing.Generated; - -/** - * Category of instruction source — used for merge logic - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum InstructionsSourcesType { - /** The {@code home} variant. */ - HOME("home"), - /** The {@code repo} variant. */ - REPO("repo"), - /** The {@code model} variant. */ - MODEL("model"), - /** The {@code vscode} variant. */ - VSCODE("vscode"), - /** The {@code nested-agents} variant. */ - NESTED_AGENTS("nested-agents"), - /** The {@code child-instructions} variant. */ - CHILD_INSTRUCTIONS("child-instructions"), - /** The {@code plugin} variant. */ - PLUGIN("plugin"); - - private final String value; - InstructionsSourcesType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static InstructionsSourcesType fromValue(String value) { - for (InstructionsSourcesType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown InstructionsSourcesType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.java deleted file mode 100644 index 64ffd3951..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigAddParams.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; - -/** - * MCP server name and configuration to add to user configuration. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpConfigAddParams( - /** Unique name for the MCP server */ - @JsonProperty("name") String name, - /** MCP server configuration (stdio process or remote HTTP/SSE) */ - @JsonProperty("config") Object config -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.java deleted file mode 100644 index e71c12f93..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigDisableParams.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; - -/** - * MCP server names to disable for new sessions. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpConfigDisableParams( - /** Names of MCP servers to disable. Each server is added to the persisted disabled list so new sessions skip it. Already-disabled names are ignored. Active sessions keep their current connections until they end. */ - @JsonProperty("names") List names -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.java deleted file mode 100644 index 952d6fb68..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigEnableParams.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; - -/** - * MCP server names to enable for new sessions. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpConfigEnableParams( - /** Names of MCP servers to enable. Each server is removed from the persisted disabled list so new sessions spawn it. Unknown or already-enabled names are ignored. */ - @JsonProperty("names") List names -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.java deleted file mode 100644 index 4d6644228..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigListResult.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.Map; -import javax.annotation.processing.Generated; - -/** - * User-configured MCP servers, keyed by server name. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpConfigListResult( - /** All MCP servers from user config, keyed by name */ - @JsonProperty("servers") Map servers -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.java deleted file mode 100644 index 840b72abf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigRemoveParams.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; - -/** - * MCP server name to remove from user configuration. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpConfigRemoveParams( - /** Name of the MCP server to remove */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.java deleted file mode 100644 index f2c2b0faa..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpConfigUpdateParams.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; - -/** - * MCP server name and replacement configuration to write to user configuration. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpConfigUpdateParams( - /** Name of the MCP server to update */ - @JsonProperty("name") String name, - /** MCP server configuration (stdio process or remote HTTP/SSE) */ - @JsonProperty("config") Object config -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.java deleted file mode 100644 index ed7b32bb7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverParams.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; - -/** - * Optional working directory used as context for MCP server discovery. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpDiscoverParams( - /** Working directory used as context for discovery (e.g., plugin resolution) */ - @JsonProperty("workingDirectory") String workingDirectory -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.java deleted file mode 100644 index b000b16ff..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpDiscoverResult.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; - -/** - * MCP servers discovered from user, workspace, plugin, and built-in sources. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpDiscoverResult( - /** MCP servers discovered from all sources */ - @JsonProperty("servers") List servers -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.java deleted file mode 100644 index 4fd862ebd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingRequest.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; - -/** - * Raw MCP CreateMessageRequest params, as received in the `sampling.requested` event. Treated as opaque at the schema layer; the runtime converts the embedded MCP messages into the OpenAI chat-completion shape internally. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpExecuteSamplingRequest() { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.java deleted file mode 100644 index 18a838d30..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpExecuteSamplingResult.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; - -/** - * MCP CreateMessageResult payload (with optional 'tools' extension), present when action='success'. Treated as opaque at the schema layer; consumers should construct/consume it per the MCP CreateMessageResult shape. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpExecuteSamplingResult() { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.java deleted file mode 100644 index d0a3802f7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSamplingExecutionAction.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; - -/** - * Outcome of the sampling inference. 'success' produced a response; 'failure' encountered an error (including agent-side rejection by content filter or criteria); 'cancelled' the caller cancelled this execution via cancelSamplingExecution. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum McpSamplingExecutionAction { - /** The {@code success} variant. */ - SUCCESS("success"), - /** The {@code failure} variant. */ - FAILURE("failure"), - /** The {@code cancelled} variant. */ - CANCELLED("cancelled"); - - private final String value; - McpSamplingExecutionAction(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpSamplingExecutionAction fromValue(String value) { - for (McpSamplingExecutionAction v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpSamplingExecutionAction value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.java deleted file mode 100644 index 7da05f659..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServer.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; - -/** - * Schema for the `McpServer` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record McpServer( - /** Server name (config key) */ - @JsonProperty("name") String name, - /** Connection status: connected, failed, needs-auth, pending, disabled, or not_configured */ - @JsonProperty("status") McpServerStatus status, - /** Configuration source: user, workspace, plugin, or builtin */ - @JsonProperty("source") McpServerSource source, - /** Error message if the server failed to connect */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.java deleted file mode 100644 index f709df96d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerSource.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: user, workspace, plugin, or builtin - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum McpServerSource { - /** 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; - McpServerSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpServerSource fromValue(String value) { - for (McpServerSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpServerSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.java deleted file mode 100644 index db463a737..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpServerStatus.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.rpc; - -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 McpServerStatus { - /** 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; - McpServerStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpServerStatus fromValue(String value) { - for (McpServerStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpServerStatus value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.java deleted file mode 100644 index dda0c02ca..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/McpSetEnvValueModeDetails.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; - -/** - * How environment-variable values supplied to MCP servers are resolved. "direct" passes literal string values; "indirect" treats values as references (e.g. names of environment variables on the host) that the runtime resolves before launch. Defaults to the runtime's startup mode; clients that intentionally launch MCP servers with literal values (e.g. CLI prompt mode and ACP) set this to "direct". - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum McpSetEnvValueModeDetails { - /** The {@code direct} variant. */ - DIRECT("direct"), - /** The {@code indirect} variant. */ - INDIRECT("indirect"); - - private final String value; - McpSetEnvValueModeDetails(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpSetEnvValueModeDetails fromValue(String value) { - for (McpSetEnvValueModeDetails v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpSetEnvValueModeDetails value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.java deleted file mode 100644 index 2d6c7eb57..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotCurrentMode.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; - -/** - * The current agent mode for this session (e.g., 'interactive', 'plan', 'autopilot') - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum MetadataSnapshotCurrentMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"); - - private final String value; - MetadataSnapshotCurrentMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static MetadataSnapshotCurrentMode fromValue(String value) { - for (MetadataSnapshotCurrentMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown MetadataSnapshotCurrentMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.java deleted file mode 100644 index 88b6dede3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadata.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; - -/** - * Remote-session-specific metadata. Populated only when `isRemote` is true. Fields are immutable for the lifetime of the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record MetadataSnapshotRemoteMetadata( - /** The original resource identifier (task ID or PR node ID), preserved across event-replay reconstructions. Falls back to `sessionId` when absent. */ - @JsonProperty("resourceId") String resourceId, - /** The repository the remote session targets. */ - @JsonProperty("repository") MetadataSnapshotRemoteMetadataRepository repository, - /** The pull request number the remote session is associated with, if any. */ - @JsonProperty("pullRequestNumber") Long pullRequestNumber, - /** Whether the remote task originated from Copilot Coding Agent (cca) or a CLI `--remote` invocation. */ - @JsonProperty("taskType") MetadataSnapshotRemoteMetadataTaskType taskType -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.java deleted file mode 100644 index cc0bb6532..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataRepository.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; - -/** - * The repository the remote session targets. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record MetadataSnapshotRemoteMetadataRepository( - /** The GitHub owner (user or organization) of the target repository. */ - @JsonProperty("owner") String owner, - /** The GitHub repository name (without owner). */ - @JsonProperty("name") String name, - /** The branch the remote session is operating on. */ - @JsonProperty("branch") String branch -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.java deleted file mode 100644 index da019b5f7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/MetadataSnapshotRemoteMetadataTaskType.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 remote task originated from Copilot Coding Agent (cca) or a CLI `--remote` invocation. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum MetadataSnapshotRemoteMetadataTaskType { - /** The {@code cca} variant. */ - CCA("cca"), - /** The {@code cli} variant. */ - CLI("cli"); - - private final String value; - MetadataSnapshotRemoteMetadataTaskType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static MetadataSnapshotRemoteMetadataTaskType fromValue(String value) { - for (MetadataSnapshotRemoteMetadataTaskType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown MetadataSnapshotRemoteMetadataTaskType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.java deleted file mode 100644 index 090451916..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Model.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `Model` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record Model( - /** Model identifier (e.g., "claude-sonnet-4.5") */ - @JsonProperty("id") String id, - /** Display name */ - @JsonProperty("name") String name, - /** Model capabilities and limits */ - @JsonProperty("capabilities") ModelCapabilities capabilities, - /** Policy state (if applicable) */ - @JsonProperty("policy") ModelPolicy policy, - /** Billing information */ - @JsonProperty("billing") ModelBilling billing, - /** Supported reasoning effort levels (only present if model supports reasoning effort) */ - @JsonProperty("supportedReasoningEfforts") List supportedReasoningEfforts, - /** Default reasoning effort level (only present if model supports reasoning effort) */ - @JsonProperty("defaultReasoningEffort") String defaultReasoningEffort, - /** Model capability category for grouping in the model picker */ - @JsonProperty("modelPickerCategory") ModelPickerCategory modelPickerCategory, - /** Relative cost tier for token-based billing users */ - @JsonProperty("modelPickerPriceCategory") ModelPickerPriceCategory modelPickerPriceCategory -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.java deleted file mode 100644 index 94a8188f1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBilling.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; - -/** - * Billing information - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelBilling( - /** Billing cost multiplier relative to the base rate */ - @JsonProperty("multiplier") Double multiplier, - /** Token-level pricing information for this model */ - @JsonProperty("tokenPrices") ModelBillingTokenPrices tokenPrices -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.java deleted file mode 100644 index 7477b8526..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelBillingTokenPrices.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; - -/** - * Token-level pricing information for this model - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelBillingTokenPrices( - /** Price per billing batch of input tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */ - @JsonProperty("inputPrice") Long inputPrice, - /** Price per billing batch of output tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */ - @JsonProperty("outputPrice") Long outputPrice, - /** Price per billing batch of cached tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */ - @JsonProperty("cachePrice") Long cachePrice, - /** Number of tokens per standard billing batch */ - @JsonProperty("batchSize") Long batchSize -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.java deleted file mode 100644 index 168a72099..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilities.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; - -/** - * Model capabilities and limits - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilities( - /** Feature flags indicating what the model supports */ - @JsonProperty("supports") ModelCapabilitiesSupports supports, - /** Token limits for prompts, outputs, and context window */ - @JsonProperty("limits") ModelCapabilitiesLimits limits -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.java deleted file mode 100644 index 694e2a2ea..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimits.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; - -/** - * Token limits for prompts, outputs, and context window - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesLimits( - /** Maximum number of prompt/input tokens */ - @JsonProperty("max_prompt_tokens") Long maxPromptTokens, - /** Maximum number of output/completion tokens */ - @JsonProperty("max_output_tokens") Long maxOutputTokens, - /** Maximum total context window size in tokens */ - @JsonProperty("max_context_window_tokens") Long maxContextWindowTokens, - /** Vision-specific limits */ - @JsonProperty("vision") ModelCapabilitiesLimitsVision vision -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java deleted file mode 100644 index d7f8e7154..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesLimitsVision.java +++ /dev/null @@ -1,32 +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; - -/** - * Vision-specific limits - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesLimitsVision( - /** MIME types the model accepts */ - @JsonProperty("supported_media_types") List supportedMediaTypes, - /** Maximum number of images per prompt */ - @JsonProperty("max_prompt_images") Long maxPromptImages, - /** Maximum image size in bytes */ - @JsonProperty("max_prompt_image_size") Long maxPromptImageSize -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.java deleted file mode 100644 index 1433a7b5e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverride.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; - -/** - * Override individual model capabilities resolved by the runtime - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesOverride( - /** Feature flags indicating what the model supports */ - @JsonProperty("supports") ModelCapabilitiesOverrideSupports supports, - /** Token limits for prompts, outputs, and context window */ - @JsonProperty("limits") ModelCapabilitiesOverrideLimits limits -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.java deleted file mode 100644 index c0de367f3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimits.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; - -/** - * Token limits for prompts, outputs, and context window - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesOverrideLimits( - /** Maximum number of prompt/input tokens */ - @JsonProperty("max_prompt_tokens") Long maxPromptTokens, - /** Maximum number of output/completion tokens */ - @JsonProperty("max_output_tokens") Long maxOutputTokens, - /** Maximum total context window size in tokens */ - @JsonProperty("max_context_window_tokens") Long maxContextWindowTokens, - /** Vision-specific limits */ - @JsonProperty("vision") ModelCapabilitiesOverrideLimitsVision vision -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java deleted file mode 100644 index 86339787d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideLimitsVision.java +++ /dev/null @@ -1,32 +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; - -/** - * Vision-specific limits - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesOverrideLimitsVision( - /** MIME types the model accepts */ - @JsonProperty("supported_media_types") List supportedMediaTypes, - /** Maximum number of images per prompt */ - @JsonProperty("max_prompt_images") Long maxPromptImages, - /** Maximum image size in bytes */ - @JsonProperty("max_prompt_image_size") Long maxPromptImageSize -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.java deleted file mode 100644 index ec1da750d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesOverrideSupports.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; - -/** - * Feature flags indicating what the model supports - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesOverrideSupports( - /** Whether this model supports vision/image input */ - @JsonProperty("vision") Boolean vision, - /** Whether this model supports reasoning effort configuration */ - @JsonProperty("reasoningEffort") Boolean reasoningEffort -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.java deleted file mode 100644 index 91a98b423..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelCapabilitiesSupports.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; - -/** - * Feature flags indicating what the model supports - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelCapabilitiesSupports( - /** Whether this model supports vision/image input */ - @JsonProperty("vision") Boolean vision, - /** Whether this model supports reasoning effort configuration */ - @JsonProperty("reasoningEffort") Boolean reasoningEffort -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.java deleted file mode 100644 index ab36abfd9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerCategory.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; - -/** - * Model capability category for grouping in the model picker - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ModelPickerCategory { - /** The {@code lightweight} variant. */ - LIGHTWEIGHT("lightweight"), - /** The {@code versatile} variant. */ - VERSATILE("versatile"), - /** The {@code powerful} variant. */ - POWERFUL("powerful"); - - private final String value; - ModelPickerCategory(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ModelPickerCategory fromValue(String value) { - for (ModelPickerCategory v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ModelPickerCategory value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.java deleted file mode 100644 index 8f7050395..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPickerPriceCategory.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; - -/** - * Relative cost tier for token-based billing users - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ModelPickerPriceCategory { - /** The {@code low} variant. */ - LOW("low"), - /** The {@code medium} variant. */ - MEDIUM("medium"), - /** The {@code high} variant. */ - HIGH("high"), - /** The {@code very_high} variant. */ - VERY_HIGH("very_high"); - - private final String value; - ModelPickerPriceCategory(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ModelPickerPriceCategory fromValue(String value) { - for (ModelPickerPriceCategory v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ModelPickerPriceCategory value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.java deleted file mode 100644 index f37fb85d0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicy.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; - -/** - * Policy state (if applicable) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelPolicy( - /** Current policy state for this model */ - @JsonProperty("state") ModelPolicyState state, - /** Usage terms or conditions for this model */ - @JsonProperty("terms") String terms -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.java deleted file mode 100644 index 525d57ca6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelPolicyState.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; - -/** - * Current policy state for this model - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ModelPolicyState { - /** The {@code enabled} variant. */ - ENABLED("enabled"), - /** The {@code disabled} variant. */ - DISABLED("disabled"), - /** The {@code unconfigured} variant. */ - UNCONFIGURED("unconfigured"); - - private final String value; - ModelPolicyState(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ModelPolicyState fromValue(String value) { - for (ModelPolicyState v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ModelPolicyState value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.java deleted file mode 100644 index 0ae1acfce..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ModelsListResult.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; - -/** - * List of Copilot models available to the resolved user, including capabilities and billing metadata. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ModelsListResult( - /** List of available models with full metadata */ - @JsonProperty("models") List models -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.java deleted file mode 100644 index 7be82f9d5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/OptionsUpdateEnvValueMode.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; - -/** - * How env values are passed to MCP servers (`direct` inlines literal values; `indirect` resolves at launch). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum OptionsUpdateEnvValueMode { - /** The {@code direct} variant. */ - DIRECT("direct"), - /** The {@code indirect} variant. */ - INDIRECT("indirect"); - - private final String value; - OptionsUpdateEnvValueMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static OptionsUpdateEnvValueMode fromValue(String value) { - for (OptionsUpdateEnvValueMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown OptionsUpdateEnvValueMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.java deleted file mode 100644 index de370ca5d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PendingPermissionRequest.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 `PendingPermissionRequest` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PendingPermissionRequest( - /** Unique identifier for the pending permission request */ - @JsonProperty("requestId") String requestId, - /** The user-facing permission prompt details (commands, write, read, mcp, url, memory, custom-tool, path, hook) */ - @JsonProperty("request") Object request -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.java deleted file mode 100644 index 1b00c5bf5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionLocationType.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 location is a git repo or directory - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionLocationType { - /** The {@code repo} variant. */ - REPO("repo"), - /** The {@code dir} variant. */ - DIR("dir"); - - private final String value; - PermissionLocationType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionLocationType fromValue(String value) { - for (PermissionLocationType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionLocationType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java deleted file mode 100644 index 29aef6c66..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionPathsConfig.java +++ /dev/null @@ -1,34 +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; - -/** - * If specified, replaces the session's path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session's working directory). Omit to leave the current path policy unchanged. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionPathsConfig( - /** If true, the runtime allows access to all paths without prompting. Equivalent to constructing an UnrestrictedPathManager. */ - @JsonProperty("unrestricted") Boolean unrestricted, - /** Additional directories to allow tool access to (in addition to the session's working directory). When `unrestricted` is true, these are still pre-populated on the UnrestrictedPathManager so they remain visible via getDirectories() (e.g. for @-mention completion). */ - @JsonProperty("additionalDirectories") List additionalDirectories, - /** Whether to include the system temp directory in the allowed list (defaults to true). Ignored when `unrestricted` is true. */ - @JsonProperty("includeTempDirectory") Boolean includeTempDirectory, - /** Workspace root path (special-cased to be allowed even before the directory exists). Ignored when `unrestricted` is true. */ - @JsonProperty("workspacePath") String workspacePath -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.java deleted file mode 100644 index 7980e0e83..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRule.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 `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/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.java deleted file mode 100644 index 7cc00563f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionRulesSet.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * If specified, replaces the session's approved/denied permission rules. Omit to leave the current rules unchanged. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionRulesSet( - /** Rules that auto-approve matching requests */ - @JsonProperty("approved") List approved, - /** Rules that auto-deny matching requests */ - @JsonProperty("denied") List denied -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.java deleted file mode 100644 index 728e7b40d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionUrlsConfig.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * If specified, replaces the session's URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionUrlsConfig( - /** If true, the runtime allows access to all URLs without prompting. Initial allow-list is ignored when this is true. */ - @JsonProperty("unrestricted") Boolean unrestricted, - /** Initial list of allowed URL/domain patterns. Patterns may include path components. Ignored when `unrestricted` is true. */ - @JsonProperty("initialAllowed") List initialAllowed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.java deleted file mode 100644 index 61108c16b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicy.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsConfigureAdditionalContentExclusionPolicy` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionsConfigureAdditionalContentExclusionPolicy( - @JsonProperty("rules") List rules, - @JsonProperty("last_updated_at") Object lastUpdatedAt, - /** Allowed values for the `PermissionsConfigureAdditionalContentExclusionPolicyScope` enumeration. */ - @JsonProperty("scope") PermissionsConfigureAdditionalContentExclusionPolicyScope scope -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.java deleted file mode 100644 index c6c7f649a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRule.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsConfigureAdditionalContentExclusionPolicyRule` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionsConfigureAdditionalContentExclusionPolicyRule( - @JsonProperty("paths") List paths, - @JsonProperty("ifAnyMatch") List ifAnyMatch, - @JsonProperty("ifNoneMatch") List ifNoneMatch, - /** Schema for the `PermissionsConfigureAdditionalContentExclusionPolicyRuleSource` type. */ - @JsonProperty("source") PermissionsConfigureAdditionalContentExclusionPolicyRuleSource source -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.java deleted file mode 100644 index a5d4a45f3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyRuleSource.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; - -/** - * Schema for the `PermissionsConfigureAdditionalContentExclusionPolicyRuleSource` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionsConfigureAdditionalContentExclusionPolicyRuleSource( - @JsonProperty("name") String name, - @JsonProperty("type") String type -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.java deleted file mode 100644 index f006888b7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsConfigureAdditionalContentExclusionPolicyScope.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; - -/** - * Allowed values for the `PermissionsConfigureAdditionalContentExclusionPolicyScope` enumeration. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionsConfigureAdditionalContentExclusionPolicyScope { - /** The {@code repo} variant. */ - REPO("repo"), - /** The {@code all} variant. */ - ALL("all"); - - private final String value; - PermissionsConfigureAdditionalContentExclusionPolicyScope(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionsConfigureAdditionalContentExclusionPolicyScope fromValue(String value) { - for (PermissionsConfigureAdditionalContentExclusionPolicyScope v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionsConfigureAdditionalContentExclusionPolicyScope value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.java deleted file mode 100644 index f574befcf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsModifyRulesScope.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 change applies to ephemeral session-scoped rules (cleared at session end) or to location-scoped rules persisted via the location-permissions config file. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionsModifyRulesScope { - /** The {@code session} variant. */ - SESSION("session"), - /** The {@code location} variant. */ - LOCATION("location"); - - private final String value; - PermissionsModifyRulesScope(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionsModifyRulesScope fromValue(String value) { - for (PermissionsModifyRulesScope v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionsModifyRulesScope value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.java deleted file mode 100644 index b86b09dfa..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PermissionsSetApproveAllSource.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; - -/** - * Optional source for allow-all telemetry. Defaults to `rpc` when omitted for SDK callers. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionsSetApproveAllSource { - /** The {@code cli_flag} variant. */ - CLI_FLAG("cli_flag"), - /** The {@code slash_command} variant. */ - SLASH_COMMAND("slash_command"), - /** The {@code autopilot_confirmation} variant. */ - AUTOPILOT_CONFIRMATION("autopilot_confirmation"), - /** The {@code rpc} variant. */ - RPC("rpc"); - - private final String value; - PermissionsSetApproveAllSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionsSetApproveAllSource fromValue(String value) { - for (PermissionsSetApproveAllSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionsSetApproveAllSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.java deleted file mode 100644 index 2e00e6cac..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingParams.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; - -/** - * Optional message to echo back to the caller. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PingParams( - /** Optional message to echo back */ - @JsonProperty("message") String message -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java deleted file mode 100644 index ded50ecbd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/PingResult.java +++ /dev/null @@ -1,32 +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; - -/** - * Server liveness response, including the echoed message, current server timestamp, and protocol version. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PingResult( - /** Echoed message (or default greeting) */ - @JsonProperty("message") String message, - /** ISO 8601 timestamp when the server handled the ping */ - @JsonProperty("timestamp") OffsetDateTime timestamp, - /** Server protocol version number */ - @JsonProperty("protocolVersion") Long protocolVersion -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.java deleted file mode 100644 index b10cd31cf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Plugin.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; - -/** - * Schema for the `Plugin` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record Plugin( - /** Plugin name */ - @JsonProperty("name") String name, - /** Marketplace the plugin came from */ - @JsonProperty("marketplace") String marketplace, - /** Installed version */ - @JsonProperty("version") String version, - /** Whether the plugin is currently enabled */ - @JsonProperty("enabled") Boolean enabled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.java deleted file mode 100644 index bfbc87f46..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItems.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 `QueuePendingItems` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record QueuePendingItems( - /** Whether this item is a queued user message or a queued slash command / model change */ - @JsonProperty("kind") QueuePendingItemsKind kind, - /** Human-readable text to display for this queue entry in the UI */ - @JsonProperty("displayText") String displayText -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.java deleted file mode 100644 index 7cf13a257..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/QueuePendingItemsKind.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 this item is a queued user message or a queued slash command / model change - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum QueuePendingItemsKind { - /** The {@code message} variant. */ - MESSAGE("message"), - /** The {@code command} variant. */ - COMMAND("command"); - - private final String value; - QueuePendingItemsKind(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static QueuePendingItemsKind fromValue(String value) { - for (QueuePendingItemsKind v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown QueuePendingItemsKind value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.java deleted file mode 100644 index 3b95a9e2b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ReasoningSummary.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; - -/** - * Reasoning summary mode to request for supported model clients - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ReasoningSummary { - /** The {@code none} variant. */ - NONE("none"), - /** The {@code concise} variant. */ - CONCISE("concise"), - /** The {@code detailed} variant. */ - DETAILED("detailed"); - - private final String value; - ReasoningSummary(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ReasoningSummary fromValue(String value) { - for (ReasoningSummary v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ReasoningSummary value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.java deleted file mode 100644 index 68c3e6617..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/RemoteSessionMode.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; - -/** - * Per-session remote mode. "off" disables remote, "export" exports session events to GitHub without enabling remote steering, "on" enables both export and remote steering. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum RemoteSessionMode { - /** The {@code off} variant. */ - OFF("off"), - /** The {@code export} variant. */ - EXPORT("export"), - /** The {@code on} variant. */ - ON("on"); - - private final String value; - RemoteSessionMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static RemoteSessionMode fromValue(String value) { - for (RemoteSessionMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown RemoteSessionMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.java deleted file mode 100644 index 67e7571a1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcCaller.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 java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * Interface for invoking JSON-RPC methods with typed responses. - *

    - * Implementations delegate to the underlying transport layer - * (e.g., a {@code JsonRpcClient} instance). A method reference is typically the clearest - * way to adapt a generic {@code invoke} method to this interface: - *

    {@code
    - * RpcCaller caller = jsonRpcClient::invoke;
    - * }
    - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public interface RpcCaller { - - /** - * Invokes a JSON-RPC method and returns a future for the typed response. - * - * @param the expected response type - * @param method the JSON-RPC method name - * @param params the request parameters (may be a {@code Map}, DTO record, or {@code JsonNode}) - * @param resultType the {@link Class} of the expected response type - * @return a {@link CompletableFuture} that completes with the deserialized result - */ - CompletableFuture invoke(String method, Object params, Class resultType); -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.java deleted file mode 100644 index 0d2a4e8b7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/RpcMapper.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 javax.annotation.processing.Generated; - -/** - * Package-private holder for the shared {@link com.fasterxml.jackson.databind.ObjectMapper} - * used by session API classes when merging {@code sessionId} into call parameters. - *

    - * {@link com.fasterxml.jackson.databind.ObjectMapper} is thread-safe and expensive to - * instantiate, so a single shared instance is used across all generated API classes. - * The configuration mirrors {@code JsonRpcClient}'s mapper (JavaTimeModule, lenient - * unknown-property handling, ISO date format, NON_NULL inclusion). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -final class RpcMapper { - - static final com.fasterxml.jackson.databind.ObjectMapper INSTANCE = createMapper(); - - private static com.fasterxml.jackson.databind.ObjectMapper createMapper() { - com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); - mapper.registerModule(new com.fasterxml.jackson.datatype.jsr310.JavaTimeModule()); - mapper.configure(com.fasterxml.jackson.databind.DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - mapper.configure(com.fasterxml.jackson.databind.SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); - mapper.setDefaultPropertyInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL); - return mapper; - } - - private RpcMapper() {} -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.java deleted file mode 100644 index fb41975bd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ScheduleEntry.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.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Schema for the `ScheduleEntry` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ScheduleEntry( - /** Sequential id assigned by the runtime within the session. Stable across resumes (rebuilt from the event log). */ - @JsonProperty("id") Long id, - /** Interval between scheduled ticks, in milliseconds. */ - @JsonProperty("intervalMs") Long intervalMs, - /** Prompt text that gets enqueued on every tick. */ - @JsonProperty("prompt") String prompt, - /** Whether the schedule re-arms after each tick (`/every`) or fires once (`/after`). */ - @JsonProperty("recurring") Boolean recurring, - /** Display-only label for the prompt as shown in the UI (e.g. `/skill-name` for a skill-invocation schedule). The actual enqueued prompt is `prompt`. */ - @JsonProperty("displayPrompt") String displayPrompt, - /** ISO 8601 timestamp when the next tick is scheduled to fire. */ - @JsonProperty("nextRunAt") OffsetDateTime nextRunAt -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.java deleted file mode 100644 index 364377311..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesParams.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; - -/** - * Secret values to add to the redaction filter. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SecretsAddFilterValuesParams( - /** Raw secret values to register for redaction */ - @JsonProperty("values") List values -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.java deleted file mode 100644 index f6261b638..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SecretsAddFilterValuesResult.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; - -/** - * Confirmation that the secret values were registered. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SecretsAddFilterValuesResult( - /** Whether the values were successfully registered */ - @JsonProperty("ok") Boolean ok -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.java deleted file mode 100644 index 641a1ac47..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendAgentMode.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; - -/** - * The UI mode the agent was in when this message was sent. Defaults to the session's current mode. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SendAgentMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"), - /** The {@code shell} variant. */ - SHELL("shell"); - - private final String value; - SendAgentMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SendAgentMode fromValue(String value) { - for (SendAgentMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SendAgentMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.java deleted file mode 100644 index 013f59597..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SendMode.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; - -/** - * How to deliver the message. `enqueue` (default) appends to the message queue. `immediate` interjects during an in-progress turn. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SendMode { - /** The {@code enqueue} variant. */ - ENQUEUE("enqueue"), - /** The {@code immediate} variant. */ - IMMEDIATE("immediate"); - - private final String value; - SendMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SendMode fromValue(String value) { - for (SendMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SendMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java deleted file mode 100644 index d3bd44460..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerAccountApi.java +++ /dev/null @@ -1,36 +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 account} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerAccountApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerAccountApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Optional GitHub token used to look up quota for a specific user instead of the global auth context. - * @since 1.0.0 - */ - public CompletableFuture getQuota() { - return caller.invoke("account.getQuota", java.util.Map.of(), AccountGetQuotaResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.java deleted file mode 100644 index 6ff26e80d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpApi.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 java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code mcp} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerMcpApi { - - private final RpcCaller caller; - - /** API methods for the {@code mcp.config} sub-namespace. */ - public final ServerMcpConfigApi config; - - /** @param caller the RPC transport function */ - ServerMcpApi(RpcCaller caller) { - this.caller = caller; - this.config = new ServerMcpConfigApi(caller); - } - - /** - * Optional working directory used as context for MCP server discovery. - * @since 1.0.0 - */ - public CompletableFuture discover(McpDiscoverParams params) { - return caller.invoke("mcp.discover", params, McpDiscoverResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java deleted file mode 100644 index 6f0a2105d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerMcpConfigApi.java +++ /dev/null @@ -1,76 +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 mcp.config} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerMcpConfigApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerMcpConfigApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * User-configured MCP servers, keyed by server name. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("mcp.config.list", java.util.Map.of(), McpConfigListResult.class); - } - - /** - * MCP server name and configuration to add to user configuration. - * @since 1.0.0 - */ - public CompletableFuture add(McpConfigAddParams params) { - return caller.invoke("mcp.config.add", params, Void.class); - } - - /** - * MCP server name and replacement configuration to write to user configuration. - * @since 1.0.0 - */ - public CompletableFuture update(McpConfigUpdateParams params) { - return caller.invoke("mcp.config.update", params, Void.class); - } - - /** - * MCP server name to remove from user configuration. - * @since 1.0.0 - */ - public CompletableFuture remove(McpConfigRemoveParams params) { - return caller.invoke("mcp.config.remove", params, Void.class); - } - - /** - * MCP server names to enable for new sessions. - * @since 1.0.0 - */ - public CompletableFuture enable(McpConfigEnableParams params) { - return caller.invoke("mcp.config.enable", params, Void.class); - } - - /** - * MCP server names to disable for new sessions. - * @since 1.0.0 - */ - public CompletableFuture disable(McpConfigDisableParams params) { - return caller.invoke("mcp.config.disable", params, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java deleted file mode 100644 index c0515a06f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerModelsApi.java +++ /dev/null @@ -1,36 +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 models} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerModelsApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerModelsApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Optional GitHub token used to list models for a specific user instead of the global auth context. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("models.list", java.util.Map.of(), ModelsListResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java deleted file mode 100644 index 707e998d0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerRpc.java +++ /dev/null @@ -1,77 +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; - -/** - * Typed client for server-level RPC methods. - *

    - * Provides strongly-typed access to all server-level API namespaces. - *

    - * Obtain an instance by calling {@code new ServerRpc(caller)}. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerRpc { - - private final RpcCaller caller; - - /** API methods for the {@code models} namespace. */ - public final ServerModelsApi models; - /** API methods for the {@code tools} namespace. */ - public final ServerToolsApi tools; - /** API methods for the {@code account} namespace. */ - public final ServerAccountApi account; - /** API methods for the {@code secrets} namespace. */ - public final ServerSecretsApi secrets; - /** API methods for the {@code mcp} namespace. */ - public final ServerMcpApi mcp; - /** API methods for the {@code skills} namespace. */ - public final ServerSkillsApi skills; - /** API methods for the {@code sessionFs} namespace. */ - public final ServerSessionFsApi sessionFs; - /** API methods for the {@code sessions} namespace. */ - public final ServerSessionsApi sessions; - - /** - * Creates a new server RPC client. - * - * @param caller the RPC transport function (e.g., {@code jsonRpcClient::invoke}) - */ - public ServerRpc(RpcCaller caller) { - this.caller = caller; - this.models = new ServerModelsApi(caller); - this.tools = new ServerToolsApi(caller); - this.account = new ServerAccountApi(caller); - this.secrets = new ServerSecretsApi(caller); - this.mcp = new ServerMcpApi(caller); - this.skills = new ServerSkillsApi(caller); - this.sessionFs = new ServerSessionFsApi(caller); - this.sessions = new ServerSessionsApi(caller); - } - - /** - * Optional message to echo back to the caller. - * @since 1.0.0 - */ - public CompletableFuture ping(PingParams params) { - return caller.invoke("ping", params, PingResult.class); - } - - /** - * Optional connection token presented by the SDK client during the handshake. - * @since 1.0.0 - */ - public CompletableFuture connect(ConnectParams params) { - return caller.invoke("connect", params, ConnectResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java deleted file mode 100644 index 800722c85..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSecretsApi.java +++ /dev/null @@ -1,36 +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 secrets} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerSecretsApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerSecretsApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Secret values to add to the redaction filter. - * @since 1.0.0 - */ - public CompletableFuture addFilterValues(SecretsAddFilterValuesParams params) { - return caller.invoke("secrets.addFilterValues", params, SecretsAddFilterValuesResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java deleted file mode 100644 index 93022becf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionFsApi.java +++ /dev/null @@ -1,36 +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 sessionFs} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerSessionFsApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerSessionFsApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider. - * @since 1.0.0 - */ - public CompletableFuture setProvider(SessionFsSetProviderParams params) { - return caller.invoke("sessionFs.setProvider", params, SessionFsSetProviderResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java deleted file mode 100644 index c4b25a649..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSessionsApi.java +++ /dev/null @@ -1,218 +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 sessions} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerSessionsApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerSessionsApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture fork(SessionsForkParams params) { - return caller.invoke("sessions.fork", params, SessionsForkResult.class); - } - - /** - * Remote session connection parameters. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture connect() { - return caller.invoke("sessions.connect", java.util.Map.of(), SessionsConnectResult.class); - } - - /** - * Optional metadata-load limit and context filter applied to the returned sessions. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("sessions.list", java.util.Map.of(), SessionsListResult.class); - } - - /** - * GitHub task ID to look up. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture findByTaskId(SessionsFindByTaskIdParams params) { - return caller.invoke("sessions.findByTaskId", params, SessionsFindByTaskIdResult.class); - } - - /** - * UUID prefix to resolve to a unique session ID. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture findByPrefix(SessionsFindByPrefixParams params) { - return caller.invoke("sessions.findByPrefix", params, SessionsFindByPrefixResult.class); - } - - /** - * Optional working-directory context used to score session relevance. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getLastForContext(SessionsGetLastForContextParams params) { - return caller.invoke("sessions.getLastForContext", params, SessionsGetLastForContextResult.class); - } - - /** - * Session ID whose event-log file path to compute. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getEventFilePath() { - return caller.invoke("sessions.getEventFilePath", java.util.Map.of(), SessionsGetEventFilePathResult.class); - } - - /** - * Map of sessionId -> on-disk size in bytes for each session's workspace directory. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getSizes() { - return caller.invoke("sessions.getSizes", java.util.Map.of(), SessionsGetSizesResult.class); - } - - /** - * Session IDs to test for live in-use locks. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture checkInUse(SessionsCheckInUseParams params) { - return caller.invoke("sessions.checkInUse", params, SessionsCheckInUseResult.class); - } - - /** - * Session ID to look up the persisted remote-steerable flag for. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getPersistedRemoteSteerable() { - return caller.invoke("sessions.getPersistedRemoteSteerable", java.util.Map.of(), SessionsGetPersistedRemoteSteerableResult.class); - } - - /** - * Session ID to close. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture close() { - return caller.invoke("sessions.close", java.util.Map.of(), Void.class); - } - - /** - * Session IDs to close, deactivate, and delete from disk. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture bulkDelete(SessionsBulkDeleteParams params) { - return caller.invoke("sessions.bulkDelete", params, SessionsBulkDeleteResult.class); - } - - /** - * Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true). - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture pruneOld(SessionsPruneOldParams params) { - return caller.invoke("sessions.pruneOld", params, SessionsPruneOldResult.class); - } - - /** - * Session ID whose pending events should be flushed to disk. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture save() { - return caller.invoke("sessions.save", java.util.Map.of(), Void.class); - } - - /** - * Session ID whose in-use lock should be released. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture releaseLock() { - return caller.invoke("sessions.releaseLock", java.util.Map.of(), Void.class); - } - - /** - * Session metadata records to enrich with summary and context information. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture enrichMetadata(SessionsEnrichMetadataParams params) { - return caller.invoke("sessions.enrichMetadata", params, SessionsEnrichMetadataResult.class); - } - - /** - * Active session ID and an optional flag for deferring repo-level hooks until folder trust. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture reloadPluginHooks(SessionsReloadPluginHooksParams params) { - return caller.invoke("sessions.reloadPluginHooks", params, Void.class); - } - - /** - * Active session ID whose deferred repo-level hooks should be loaded. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture loadDeferredRepoHooks() { - return caller.invoke("sessions.loadDeferredRepoHooks", java.util.Map.of(), SessionsLoadDeferredRepoHooksResult.class); - } - - /** - * Manager-wide additional plugins to register; replaces any previously-configured set. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setAdditionalPlugins(SessionsSetAdditionalPluginsParams params) { - return caller.invoke("sessions.setAdditionalPlugins", params, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.java deleted file mode 100644 index ba02ea28d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkill.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 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 `ServerSkill` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ServerSkill( - /** Unique identifier for the skill */ - @JsonProperty("name") String name, - /** Description of what the skill does */ - @JsonProperty("description") String description, - /** Source location type (e.g., project, personal-copilot, plugin, builtin) */ - @JsonProperty("source") SkillSource source, - /** Whether the skill can be invoked by the user as a slash command */ - @JsonProperty("userInvocable") Boolean userInvocable, - /** Whether the skill is currently enabled (based on global config) */ - @JsonProperty("enabled") Boolean enabled, - /** Absolute path to the skill file */ - @JsonProperty("path") String path, - /** The project path this skill belongs to (only for project/inherited skills) */ - @JsonProperty("projectPath") String projectPath -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.java deleted file mode 100644 index 6404ab6fd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsApi.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 java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code skills} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerSkillsApi { - - private final RpcCaller caller; - - /** API methods for the {@code skills.config} sub-namespace. */ - public final ServerSkillsConfigApi config; - - /** @param caller the RPC transport function */ - ServerSkillsApi(RpcCaller caller) { - this.caller = caller; - this.config = new ServerSkillsConfigApi(caller); - } - - /** - * Optional project paths and additional skill directories to include in discovery. - * @since 1.0.0 - */ - public CompletableFuture discover(SkillsDiscoverParams params) { - return caller.invoke("skills.discover", params, SkillsDiscoverResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java deleted file mode 100644 index e552227cc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerSkillsConfigApi.java +++ /dev/null @@ -1,36 +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 skills.config} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerSkillsConfigApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerSkillsConfigApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Skill names to mark as disabled in global configuration, replacing any previous list. - * @since 1.0.0 - */ - public CompletableFuture setDisabledSkills(SkillsConfigSetDisabledSkillsParams params) { - return caller.invoke("skills.config.setDisabledSkills", params, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java deleted file mode 100644 index 10e64747e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ServerToolsApi.java +++ /dev/null @@ -1,36 +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 tools} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ServerToolsApi { - - private final RpcCaller caller; - - /** @param caller the RPC transport function */ - ServerToolsApi(RpcCaller caller) { - this.caller = caller; - } - - /** - * Optional model identifier whose tool overrides should be applied to the listing. - * @since 1.0.0 - */ - public CompletableFuture list(ToolsListParams params) { - return caller.invoke("tools.list", params, ToolsListResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.java deleted file mode 100644 index 4738643b8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortParams.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; - -/** - * Parameters for aborting the current turn - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAbortParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Finite reason code describing why the current turn was aborted */ - @JsonProperty("reason") AbortReason reason -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.java deleted file mode 100644 index 9d75b5db5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAbortResult.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; - -/** - * Result of aborting the current turn - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAbortResult( - /** Whether the abort completed successfully */ - @JsonProperty("success") Boolean success, - /** Error message if the abort failed */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java deleted file mode 100644 index c992d36e3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentApi.java +++ /dev/null @@ -1,87 +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 agent} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionAgentApi { - - 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 */ - SessionAgentApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.agent.list", java.util.Map.of("sessionId", this.sessionId), SessionAgentListResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getCurrent() { - return caller.invoke("session.agent.getCurrent", java.util.Map.of("sessionId", this.sessionId), SessionAgentGetCurrentResult.class); - } - - /** - * Name of the custom agent to select for subsequent turns. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture select(SessionAgentSelectParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.agent.select", _p, SessionAgentSelectResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture deselect() { - return caller.invoke("session.agent.deselect", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture reload() { - return caller.invoke("session.agent.reload", java.util.Map.of("sessionId", this.sessionId), SessionAgentReloadResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java deleted file mode 100644 index 1b1094713..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentDeselectParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java deleted file mode 100644 index 59774974f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentGetCurrentParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java deleted file mode 100644 index d4dfe25b4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.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; - -/** - * The currently selected custom agent, or null when using the default agent. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentGetCurrentResult( - /** Currently selected custom agent, or null if using the default agent */ - @JsonProperty("agent") AgentInfo agent -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java deleted file mode 100644 index 9763eb5c3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java deleted file mode 100644 index d7cdd1127..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.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; - -/** - * Custom agents available to the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentListResult( - /** Available custom agents */ - @JsonProperty("agents") List agents -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java deleted file mode 100644 index c3467c5e9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentReloadParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java deleted file mode 100644 index 47eec9eae..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.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; - -/** - * Custom agents available to the session after reloading definitions from disk. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentReloadResult( - /** Reloaded custom agents */ - @JsonProperty("agents") List agents -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java deleted file mode 100644 index 372d1d1f6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.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; - -/** - * Name of the custom agent to select for subsequent turns. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentSelectParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the custom agent to select */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java deleted file mode 100644 index 927352e2d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.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; - -/** - * The newly selected custom agent. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentSelectResult( - /** The newly selected custom agent */ - @JsonProperty("agent") AgentInfo agent -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java deleted file mode 100644 index 0f5729fe5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java +++ /dev/null @@ -1,57 +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 auth} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionAuthApi { - - 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 */ - SessionAuthApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getStatus() { - return caller.invoke("session.auth.getStatus", java.util.Map.of("sessionId", this.sessionId), SessionAuthGetStatusResult.class); - } - - /** - * New auth credentials to install on the session. Omit to leave credentials unchanged. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setCredentials(SessionAuthSetCredentialsParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.auth.setCredentials", _p, SessionAuthSetCredentialsResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java deleted file mode 100644 index d57a3cccc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAuthGetStatusParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java deleted file mode 100644 index 3480257cc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.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; - -/** - * Authentication status and account metadata for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAuthGetStatusResult( - /** Whether the session has resolved authentication */ - @JsonProperty("isAuthenticated") Boolean isAuthenticated, - /** Authentication type */ - @JsonProperty("authType") AuthInfoType authType, - /** Authentication host URL */ - @JsonProperty("host") String host, - /** Authenticated login/username, if available */ - @JsonProperty("login") String login, - /** Human-readable authentication status description */ - @JsonProperty("statusMessage") String statusMessage, - /** Copilot plan tier (e.g., individual_pro, business) */ - @JsonProperty("copilotPlan") String copilotPlan -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java deleted file mode 100644 index 0b3b7aa9d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.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; - -/** - * New auth credentials to install on the session. Omit to leave credentials unchanged. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAuthSetCredentialsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** 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. */ - @JsonProperty("credentials") Object credentials -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java deleted file mode 100644 index ad53ee919..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.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; - -/** - * Indicates whether the credential update succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAuthSetCredentialsResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java deleted file mode 100644 index b0bc291e6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java +++ /dev/null @@ -1,117 +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 commands} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionCommandsApi { - - 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 */ - SessionCommandsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Optional filters controlling which command sources to include in the listing. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.commands.list", java.util.Map.of("sessionId", this.sessionId), SessionCommandsListResult.class); - } - - /** - * Slash command name and optional raw input string to invoke. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture invoke(SessionCommandsInvokeParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.commands.invoke", _p, Void.class); - } - - /** - * Pending command request ID and an optional error if the client handler failed. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingCommand(SessionCommandsHandlePendingCommandParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.commands.handlePendingCommand", _p, SessionCommandsHandlePendingCommandResult.class); - } - - /** - * Slash command name and argument string to execute synchronously. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture execute(SessionCommandsExecuteParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.commands.execute", _p, SessionCommandsExecuteResult.class); - } - - /** - * Slash-prefixed command string to enqueue for FIFO processing. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture enqueue(SessionCommandsEnqueueParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.commands.enqueue", _p, SessionCommandsEnqueueResult.class); - } - - /** - * Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands). - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture respondToQueuedCommand(SessionCommandsRespondToQueuedCommandParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.commands.respondToQueuedCommand", _p, SessionCommandsRespondToQueuedCommandResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java deleted file mode 100644 index f4ca14dfa..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.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; - -/** - * Slash-prefixed command string to enqueue for FIFO processing. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsEnqueueParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Slash-prefixed command string to enqueue, e.g. '/compact' or '/model gpt-4'. Queued FIFO with any in-flight items; if the session is idle, processing kicks off immediately. */ - @JsonProperty("command") String command -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java deleted file mode 100644 index 649f01ca4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.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; - -/** - * Indicates whether the command was accepted into the local execution queue. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsEnqueueResult( - /** True when the command was accepted into the local execution queue. False when the call targets a session that does not support local command queueing (e.g. remote sessions). */ - @JsonProperty("queued") Boolean queued -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java deleted file mode 100644 index f88ac4c03..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.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; - -/** - * Slash command name and argument string to execute synchronously. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsExecuteParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the slash command to invoke (without the leading '/'). */ - @JsonProperty("commandName") String commandName, - /** Argument string to pass to the command (empty string if none). */ - @JsonProperty("args") String args -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java deleted file mode 100644 index 1b1c44299..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.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; - -/** - * Error message produced while executing the command, if any. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsExecuteResult( - /** Error message produced while executing the command, if any. Omitted when the handler succeeded. */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java deleted file mode 100644 index 9b9c12514..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.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; - -/** - * Pending command request ID and an optional error if the client handler failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsHandlePendingCommandParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Request ID from the command invocation event */ - @JsonProperty("requestId") String requestId, - /** Error message if the command handler failed */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java deleted file mode 100644 index 9e3698702..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.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; - -/** - * Indicates whether the pending client-handled command was completed successfully. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsHandlePendingCommandResult( - /** Whether the command was handled successfully */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java deleted file mode 100644 index 21d92ebab..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.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; - -/** - * Slash command name and optional raw input string to invoke. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsInvokeParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Command name. Leading slashes are stripped and the name is matched case-insensitively. */ - @JsonProperty("name") String name, - /** Raw input after the command name */ - @JsonProperty("input") String input -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java deleted file mode 100644 index d60a147d8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.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; - -/** - * Optional filters controlling which command sources to include in the listing. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java deleted file mode 100644 index 8d532352a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.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; - -/** - * Slash commands available in the session, after applying any include/exclude filters. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsListResult( - /** Commands available in this session */ - @JsonProperty("commands") List commands -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java deleted file mode 100644 index 22b89f364..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.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; - -/** - * Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsRespondToQueuedCommandParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Request ID from the `command.queued` event the host is responding to. */ - @JsonProperty("requestId") String requestId, - /** Result of the queued command execution. */ - @JsonProperty("result") Object result -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java deleted file mode 100644 index 1cc396139..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.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; - -/** - * Indicates whether the queued-command response was matched to a pending request. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCommandsRespondToQueuedCommandResult( - /** Whether a pending queued command with the given request ID was found and resolved. False when the request was already resolved, cancelled, or unknown. */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java deleted file mode 100644 index 50376a0f0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SessionContext` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionContext( - /** Most recent working directory for this session */ - @JsonProperty("cwd") String cwd, - /** Git repository root, if the cwd was inside a git repo */ - @JsonProperty("gitRoot") String gitRoot, - /** Repository slug in `owner/name` form, when known */ - @JsonProperty("repository") String repository, - /** Repository host type */ - @JsonProperty("hostType") SessionContextHostType hostType, - /** Active git branch */ - @JsonProperty("branch") String branch -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java deleted file mode 100644 index 8eea0e719..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.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; - -/** - * Repository host type - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionContextHostType { - /** The {@code github} variant. */ - GITHUB("github"), - /** The {@code ado} variant. */ - ADO("ado"); - - private final String value; - SessionContextHostType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionContextHostType fromValue(String value) { - for (SessionContextHostType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionContextHostType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java deleted file mode 100644 index eac102aef..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java +++ /dev/null @@ -1,87 +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 eventLog} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionEventLogApi { - - 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 */ - SessionEventLogApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Cursor, batch size, and optional long-poll/filter parameters for reading session events. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture read(SessionEventLogReadParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.eventLog.read", _p, SessionEventLogReadResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture tail() { - return caller.invoke("session.eventLog.tail", java.util.Map.of("sessionId", this.sessionId), SessionEventLogTailResult.class); - } - - /** - * Event type to register consumer interest for, used by runtime gating logic. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture registerInterest(SessionEventLogRegisterInterestParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.eventLog.registerInterest", _p, SessionEventLogRegisterInterestResult.class); - } - - /** - * Opaque handle previously returned by `registerInterest` to release. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture releaseInterest(SessionEventLogReleaseInterestParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.eventLog.releaseInterest", _p, SessionEventLogReleaseInterestResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java deleted file mode 100644 index a77e8a871..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.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; - -/** - * Cursor, batch size, and optional long-poll/filter parameters for reading session events. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogReadParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Opaque cursor returned by a previous read. Omit on the first call to start from the beginning of the session's persisted history. */ - @JsonProperty("cursor") String cursor, - /** Maximum number of events to return in this batch (1–1000, default 200). */ - @JsonProperty("max") Long max, - /** Milliseconds to wait for new events when the cursor is at the tail of history. 0 (default) returns immediately even if no events are available. Capped at 30000ms. Ephemeral events that arrive during the wait are delivered in this batch but are NOT replayable on a subsequent read (use a non-zero waitMs in your next call to capture future ephemerals as they happen). */ - @JsonProperty("waitMs") Long waitMs, - /** Either '*' to receive all event types, or a non-empty list of event types to receive */ - @JsonProperty("types") Object types, - /** Agent-scope filter: 'primary' returns only main-agent events plus events whose type starts with 'subagent.' (matching the typed-subscription default behavior); 'all' returns events from all agents (matching wildcard-subscription behavior). Default is 'all' to preserve wildcard semantics for catch-up callers. */ - @JsonProperty("agentScope") EventsAgentScope agentScope -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java deleted file mode 100644 index dcd138e7b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java +++ /dev/null @@ -1,34 +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; - -/** - * Batch of session events returned by a read, with cursor and continuation metadata. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogReadResult( - /** Events are delivered in two batches per read: persisted events first (in append order), then ephemeral events (in seq order). When `waitMs > 0` and the catch-up batches were empty, post-wait events follow the same two-batch ordering. Persisted and ephemeral events do not interleave within a single read. */ - @JsonProperty("events") List events, - /** Opaque cursor for the next read. Pass back unchanged in the next read.cursor to continue from where this read left off. Always present, even when no events were returned. */ - @JsonProperty("cursor") String cursor, - /** True when the read returned `max` events and more events are available immediately. When false, the next read with a non-zero `waitMs` will block until a new event arrives or the wait expires. */ - @JsonProperty("hasMore") Boolean hasMore, - /** Cursor status: 'ok' means the cursor was applied successfully; 'expired' means the cursor referred to an event that no longer exists in history (e.g. truncated or compacted away) and the read started from the beginning of the remaining history. */ - @JsonProperty("cursorStatus") EventsCursorStatus cursorStatus -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.java deleted file mode 100644 index 94f68bdf7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestParams.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; - -/** - * Event type to register consumer interest for, used by runtime gating logic. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogRegisterInterestParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The event type the consumer wants the runtime to treat as 'observed' for behavior-switching gating. Some runtime code paths inspect whether any consumer is interested in a specific event type and choose a different implementation accordingly (e.g. `mcp.oauth_required`: when interest is registered the runtime delegates the full interactive OAuth flow to the consumer; when no interest is registered the runtime installs a browserless fallback that silently reuses cached tokens). SDK clients that long-poll events do NOT automatically appear as listeners to these gating checks — they must explicitly call `registerInterest` for each event type they want the runtime to count as having a consumer. Multiple registrations for the same event type from the same or different consumers are tracked independently and must each be released. See: `mcp.oauth_required`, `sampling.requested`, `auto_mode_switch.requested`, `user_input.requested`, `elicitation.requested`, `command.queued`, `exit_plan_mode.requested`. */ - @JsonProperty("eventType") String eventType -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.java deleted file mode 100644 index ac4da49d0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogRegisterInterestResult.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; - -/** - * Opaque handle representing an event-type interest registration. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogRegisterInterestResult( - /** Opaque handle for this registration. Pass to releaseInterest to release. Each call to registerInterest produces a fresh handle, even when the same eventType is registered multiple times. */ - @JsonProperty("handle") String handle -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.java deleted file mode 100644 index 1eea25f44..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestParams.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; - -/** - * Opaque handle previously returned by `registerInterest` to release. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogReleaseInterestParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Handle returned by a previous `registerInterest` call. Idempotent: releasing an unknown or already-released handle is a no-op (returns success). When the last outstanding handle for an event type is released, the runtime reverts to its 'no consumer' code path for that event type. */ - @JsonProperty("handle") String handle -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.java deleted file mode 100644 index 39cf07afa..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReleaseInterestResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogReleaseInterestResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.java deleted file mode 100644 index 3906d7e6e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogTailParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.java deleted file mode 100644 index 1b29827d3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogTailResult.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; - -/** - * Snapshot of the current tail cursor without returning any events. Use this when a consumer wants to subscribe to live events going forward without first paginating through the entire persisted history (which would happen if `read` were called without a cursor on a long-lived session). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionEventLogTailResult( - /** Opaque cursor pointing at the current tail of the session's persisted-events history. Pass back to `read` to receive only events that arrive AFTER this snapshot. When the session has no events, this returns the same sentinel as an unset cursor (i.e. equivalent to omitting the cursor on a first read). */ - @JsonProperty("cursor") String cursor -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java deleted file mode 100644 index 337ba15cc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsApi.java +++ /dev/null @@ -1,82 +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 extensions} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionExtensionsApi { - - 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 */ - SessionExtensionsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.extensions.list", java.util.Map.of("sessionId", this.sessionId), SessionExtensionsListResult.class); - } - - /** - * Source-qualified extension identifier to enable for the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture enable(SessionExtensionsEnableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.extensions.enable", _p, Void.class); - } - - /** - * Source-qualified extension identifier to disable for the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture disable(SessionExtensionsDisableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.extensions.disable", _p, Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture reload() { - return caller.invoke("session.extensions.reload", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.java deleted file mode 100644 index f4bf4d5b3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsDisableParams.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; - -/** - * Source-qualified extension identifier to disable for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsDisableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Source-qualified extension ID to disable */ - @JsonProperty("id") String id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.java deleted file mode 100644 index 5e00268af..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsEnableParams.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; - -/** - * Source-qualified extension identifier to enable for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsEnableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Source-qualified extension ID to enable */ - @JsonProperty("id") String id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.java deleted file mode 100644 index 52f9c08f9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.java deleted file mode 100644 index ba5ea94f1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsListResult.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; - -/** - * Extensions discovered for the session, with their current status. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsListResult( - /** Discovered extensions and their current status */ - @JsonProperty("extensions") List extensions -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.java deleted file mode 100644 index ceaa990f1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionExtensionsReloadParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsReloadParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java deleted file mode 100644 index 27023dc89..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetApi.java +++ /dev/null @@ -1,47 +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 fleet} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionFleetApi { - - 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 */ - SessionFleetApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Optional user prompt to combine with the fleet orchestration instructions. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture start(SessionFleetStartParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.fleet.start", _p, SessionFleetStartResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.java deleted file mode 100644 index 5d5e2c88c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartParams.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 user prompt to combine with the fleet orchestration instructions. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFleetStartParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Optional user prompt to combine with fleet instructions */ - @JsonProperty("prompt") String prompt -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.java deleted file mode 100644 index c89f377d7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFleetStartResult.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; - -/** - * Indicates whether fleet mode was successfully activated. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFleetStartResult( - /** Whether fleet mode was successfully activated */ - @JsonProperty("started") Boolean started -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.java deleted file mode 100644 index a3db24a0d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsAppendFileParams.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; - -/** - * File path, content to append, and optional mode for the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsAppendFileParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path, - /** Content to append */ - @JsonProperty("content") String content, - /** Optional POSIX-style mode for newly created files */ - @JsonProperty("mode") Long mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.java deleted file mode 100644 index 349114dfd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsError.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; - -/** - * Describes a filesystem error. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsError( - /** Error classification */ - @JsonProperty("code") SessionFsErrorCode code, - /** Free-form detail about the error, for logging/diagnostics */ - @JsonProperty("message") String message -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.java deleted file mode 100644 index 4098d43ab..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsErrorCode.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; - -/** - * Error classification - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionFsErrorCode { - /** The {@code ENOENT} variant. */ - ENOENT("ENOENT"), - /** The {@code UNKNOWN} variant. */ - UNKNOWN("UNKNOWN"); - - private final String value; - SessionFsErrorCode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionFsErrorCode fromValue(String value) { - for (SessionFsErrorCode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionFsErrorCode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.java deleted file mode 100644 index 29b510798..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsParams.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; - -/** - * Path to test for existence in the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsExistsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.java deleted file mode 100644 index 0068ae3a3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsExistsResult.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; - -/** - * Indicates whether the requested path exists in the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsExistsResult( - /** Whether the path exists */ - @JsonProperty("exists") Boolean exists -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.java deleted file mode 100644 index c1ed1aec7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsMkdirParams.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; - -/** - * Directory path to create in the client-provided session filesystem, with options for recursive creation and POSIX mode. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsMkdirParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path, - /** Create parent directories as needed */ - @JsonProperty("recursive") Boolean recursive, - /** Optional POSIX-style mode for newly created directories */ - @JsonProperty("mode") Long mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.java deleted file mode 100644 index d040129cc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileParams.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; - -/** - * Path of the file to read from the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReadFileParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.java deleted file mode 100644 index c71e1a514..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReadFileResult.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; - -/** - * File content as a UTF-8 string, or a filesystem error if the read failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReadFileResult( - /** File content as UTF-8 string */ - @JsonProperty("content") String content, - /** Describes a filesystem error. */ - @JsonProperty("error") SessionFsError error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.java deleted file mode 100644 index 00b865c33..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirParams.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; - -/** - * Directory path whose entries should be listed from the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReaddirParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.java deleted file mode 100644 index 745118beb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirResult.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Names of entries in the requested directory, or a filesystem error if the read failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReaddirResult( - /** Entry names in the directory */ - @JsonProperty("entries") List entries, - /** Describes a filesystem error. */ - @JsonProperty("error") SessionFsError error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.java deleted file mode 100644 index f4c755951..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntry.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 `SessionFsReaddirWithTypesEntry` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReaddirWithTypesEntry( - /** Entry name */ - @JsonProperty("name") String name, - /** Entry type */ - @JsonProperty("type") SessionFsReaddirWithTypesEntryType type -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.java deleted file mode 100644 index 67e62372e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesEntryType.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; - -/** - * Entry type - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionFsReaddirWithTypesEntryType { - /** The {@code file} variant. */ - FILE("file"), - /** The {@code directory} variant. */ - DIRECTORY("directory"); - - private final String value; - SessionFsReaddirWithTypesEntryType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionFsReaddirWithTypesEntryType fromValue(String value) { - for (SessionFsReaddirWithTypesEntryType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionFsReaddirWithTypesEntryType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.java deleted file mode 100644 index a6b80481d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesParams.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; - -/** - * Directory path whose entries (with type information) should be listed from the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReaddirWithTypesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.java deleted file mode 100644 index 3fb693c80..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsReaddirWithTypesResult.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Entries in the requested directory paired with file/directory type information, or a filesystem error if the read failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsReaddirWithTypesResult( - /** Directory entries with type information */ - @JsonProperty("entries") List entries, - /** Describes a filesystem error. */ - @JsonProperty("error") SessionFsError error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.java deleted file mode 100644 index 76dbc8cfb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRenameParams.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; - -/** - * Source and destination paths for renaming or moving an entry in the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsRenameParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Source path using SessionFs conventions */ - @JsonProperty("src") String src, - /** Destination path using SessionFs conventions */ - @JsonProperty("dest") String dest -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.java deleted file mode 100644 index ed50649a3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsRmParams.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; - -/** - * Path to remove from the client-provided session filesystem, with options for recursive removal and force. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsRmParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path, - /** Remove directories and their contents recursively */ - @JsonProperty("recursive") Boolean recursive, - /** Ignore errors if the path does not exist */ - @JsonProperty("force") Boolean force -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.java deleted file mode 100644 index 7d6c0adb3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderCapabilities.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; - -/** - * Optional capabilities declared by the provider - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSetProviderCapabilities( - /** Whether the provider supports SQLite query/exists operations */ - @JsonProperty("sqlite") Boolean sqlite -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.java deleted file mode 100644 index abac4795f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderConventions.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; - -/** - * Path conventions used by this filesystem - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionFsSetProviderConventions { - /** The {@code windows} variant. */ - WINDOWS("windows"), - /** The {@code posix} variant. */ - POSIX("posix"); - - private final String value; - SessionFsSetProviderConventions(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionFsSetProviderConventions fromValue(String value) { - for (SessionFsSetProviderConventions v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionFsSetProviderConventions value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.java deleted file mode 100644 index d99a14862..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderParams.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; - -/** - * Initial working directory, session-state path layout, and path conventions used to register the calling SDK client as the session filesystem provider. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSetProviderParams( - /** Initial working directory for sessions */ - @JsonProperty("initialCwd") String initialCwd, - /** Path within each session's SessionFs where the runtime stores files for that session */ - @JsonProperty("sessionStatePath") String sessionStatePath, - /** Path conventions used by this filesystem */ - @JsonProperty("conventions") SessionFsSetProviderConventions conventions, - /** Optional capabilities declared by the provider */ - @JsonProperty("capabilities") SessionFsSetProviderCapabilities capabilities -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.java deleted file mode 100644 index 6088729f5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSetProviderResult.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; - -/** - * Indicates whether the calling client was registered as the session filesystem provider. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSetProviderResult( - /** Whether the provider was set successfully */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.java deleted file mode 100644 index 1956f804b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSqliteExistsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.java deleted file mode 100644 index 6c1328e9e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteExistsResult.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; - -/** - * Indicates whether the per-session SQLite database already exists. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSqliteExistsResult( - /** Whether the session database already exists */ - @JsonProperty("exists") Boolean exists -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java deleted file mode 100644 index e489bb122..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryParams.java +++ /dev/null @@ -1,34 +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.Map; -import javax.annotation.processing.Generated; - -/** - * SQL query, query type, and optional bind parameters for executing a SQLite query against the per-session database. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSqliteQueryParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** SQL query to execute */ - @JsonProperty("query") String query, - /** How to execute the query: 'exec' for DDL/multi-statement (no results), 'query' for SELECT (returns rows), 'run' for INSERT/UPDATE/DELETE (returns rowsAffected) */ - @JsonProperty("queryType") SessionFsSqliteQueryType queryType, - /** Optional named bind parameters */ - @JsonProperty("params") Map params -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.java deleted file mode 100644 index ff14d3ec1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryResult.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 java.util.List; -import java.util.Map; -import javax.annotation.processing.Generated; - -/** - * Query results including rows, columns, and rows affected, or a filesystem error if execution failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsSqliteQueryResult( - /** For SELECT: array of row objects. For others: empty array. */ - @JsonProperty("rows") List> rows, - /** Column names from the result set */ - @JsonProperty("columns") List columns, - /** Number of rows affected (for INSERT/UPDATE/DELETE) */ - @JsonProperty("rowsAffected") Long rowsAffected, - /** SQLite last_insert_rowid() value for INSERT. */ - @JsonProperty("lastInsertRowid") Long lastInsertRowid, - /** Describes a filesystem error. */ - @JsonProperty("error") SessionFsError error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.java deleted file mode 100644 index a59bdd1f2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsSqliteQueryType.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; - -/** - * How to execute the query: 'exec' for DDL/multi-statement (no results), 'query' for SELECT (returns rows), 'run' for INSERT/UPDATE/DELETE (returns rowsAffected) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionFsSqliteQueryType { - /** The {@code exec} variant. */ - EXEC("exec"), - /** The {@code query} variant. */ - QUERY("query"), - /** The {@code run} variant. */ - RUN("run"); - - private final String value; - SessionFsSqliteQueryType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionFsSqliteQueryType fromValue(String value) { - for (SessionFsSqliteQueryType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionFsSqliteQueryType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.java deleted file mode 100644 index 2e6ccfdea..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatParams.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; - -/** - * Path whose metadata should be returned from the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsStatParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.java deleted file mode 100644 index 56d883d10..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsStatResult.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.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Filesystem metadata for the requested path, or a filesystem error if the stat failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsStatResult( - /** Whether the path is a file */ - @JsonProperty("isFile") Boolean isFile, - /** Whether the path is a directory */ - @JsonProperty("isDirectory") Boolean isDirectory, - /** File size in bytes */ - @JsonProperty("size") Long size, - /** ISO 8601 timestamp of last modification */ - @JsonProperty("mtime") OffsetDateTime mtime, - /** ISO 8601 timestamp of creation */ - @JsonProperty("birthtime") OffsetDateTime birthtime, - /** Describes a filesystem error. */ - @JsonProperty("error") SessionFsError error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.java deleted file mode 100644 index 4f4e02636..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionFsWriteFileParams.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; - -/** - * File path, content to write, and optional mode for the client-provided session filesystem. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionFsWriteFileParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path using SessionFs conventions */ - @JsonProperty("path") String path, - /** Content to write */ - @JsonProperty("content") String content, - /** Optional POSIX-style mode for newly created files */ - @JsonProperty("mode") Long mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.java deleted file mode 100644 index 04749d2b6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryAbortManualCompactionParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.java deleted file mode 100644 index 7767202d7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryAbortManualCompactionResult.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; - -/** - * Indicates whether an in-progress manual compaction was aborted. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryAbortManualCompactionResult( - /** Whether an in-progress manual compaction was aborted. False when no manual compaction was running, when its abort controller was already aborted, or when the session is remote. */ - @JsonProperty("aborted") Boolean aborted -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java deleted file mode 100644 index 91c7702f7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryApi.java +++ /dev/null @@ -1,87 +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 history} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionHistoryApi { - - 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 */ - SessionHistoryApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Optional compaction parameters. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture compact() { - return caller.invoke("session.history.compact", java.util.Map.of("sessionId", this.sessionId), SessionHistoryCompactResult.class); - } - - /** - * Identifier of the event to truncate to; this event and all later events are removed. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture truncate(SessionHistoryTruncateParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.history.truncate", _p, SessionHistoryTruncateResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture cancelBackgroundCompaction() { - return caller.invoke("session.history.cancelBackgroundCompaction", java.util.Map.of("sessionId", this.sessionId), SessionHistoryCancelBackgroundCompactionResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture abortManualCompaction() { - return caller.invoke("session.history.abortManualCompaction", java.util.Map.of("sessionId", this.sessionId), SessionHistoryAbortManualCompactionResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture summarizeForHandoff() { - return caller.invoke("session.history.summarizeForHandoff", java.util.Map.of("sessionId", this.sessionId), SessionHistorySummarizeForHandoffResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.java deleted file mode 100644 index 56adc34ae..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryCancelBackgroundCompactionParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.java deleted file mode 100644 index c22fdd092..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCancelBackgroundCompactionResult.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; - -/** - * Indicates whether an in-progress background compaction was cancelled. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryCancelBackgroundCompactionResult( - /** Whether an in-progress background compaction was cancelled. False when no compaction was running, when the session is remote, or when the underlying processor was unavailable. */ - @JsonProperty("cancelled") Boolean cancelled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.java deleted file mode 100644 index cbb23e96f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactParams.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; - -/** - * Optional compaction parameters. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryCompactParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.java deleted file mode 100644 index 46a52f425..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryCompactResult.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Compaction outcome with the number of tokens and messages removed, summary text, and the resulting context window breakdown. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryCompactResult( - /** Whether compaction completed successfully */ - @JsonProperty("success") Boolean success, - /** Number of tokens freed by compaction */ - @JsonProperty("tokensRemoved") Long tokensRemoved, - /** Number of messages removed during compaction */ - @JsonProperty("messagesRemoved") Long messagesRemoved, - /** Summary text produced by compaction. Omitted when compaction did not produce a summary (e.g. failure path). */ - @JsonProperty("summaryContent") String summaryContent, - /** Post-compaction context window usage breakdown */ - @JsonProperty("contextWindow") HistoryCompactContextWindow contextWindow -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.java deleted file mode 100644 index 816af2cd1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistorySummarizeForHandoffParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.java deleted file mode 100644 index 3723aae25..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistorySummarizeForHandoffResult.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; - -/** - * Markdown summary of the conversation context (empty when not available). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistorySummarizeForHandoffResult( - /** Markdown summary of the conversation context produced by an LLM. Empty string when there are no messages or when the session does not support local summarization. */ - @JsonProperty("summary") String summary -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.java deleted file mode 100644 index 70b1331e4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateParams.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; - -/** - * Identifier of the event to truncate to; this event and all later events are removed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryTruncateParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Event ID to truncate to. This event and all events after it are removed from the session. */ - @JsonProperty("eventId") String eventId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.java deleted file mode 100644 index 3c2a74ccb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionHistoryTruncateResult.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; - -/** - * Number of events that were removed by the truncation. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionHistoryTruncateResult( - /** Number of events that were removed */ - @JsonProperty("eventsRemoved") Long eventsRemoved -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.java deleted file mode 100644 index 5d1428558..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstalledPlugin.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 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 `SessionInstalledPlugin` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionInstalledPlugin( - /** Plugin name */ - @JsonProperty("name") String name, - /** Marketplace the plugin came from (empty string for direct repo installs) */ - @JsonProperty("marketplace") String marketplace, - /** Installed version, if known */ - @JsonProperty("version") String version, - /** Installation timestamp (ISO-8601) */ - @JsonProperty("installed_at") String installedAt, - /** Whether the plugin is currently enabled */ - @JsonProperty("enabled") Boolean enabled, - /** Path where the plugin is cached locally */ - @JsonProperty("cache_path") String cachePath, - /** Source descriptor for direct repo installs (when marketplace is empty) */ - @JsonProperty("source") Object source -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.java deleted file mode 100644 index 15f3fce68..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsApi.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 java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code instructions} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionInstructionsApi { - - private final RpcCaller caller; - private final String sessionId; - - /** @param caller the RPC transport function */ - SessionInstructionsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getSources() { - return caller.invoke("session.instructions.getSources", java.util.Map.of("sessionId", this.sessionId), SessionInstructionsGetSourcesResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.java deleted file mode 100644 index f9b683147..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionInstructionsGetSourcesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.java deleted file mode 100644 index 4d62780da..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionInstructionsGetSourcesResult.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; - -/** - * Instruction sources loaded for the session, in merge order. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionInstructionsGetSourcesResult( - /** Instruction sources for the session */ - @JsonProperty("sources") List sources -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.java deleted file mode 100644 index e9ca23da2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogLevel.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; - -/** - * Log severity level. Determines how the message is displayed in the timeline. Defaults to "info". - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionLogLevel { - /** The {@code info} variant. */ - INFO("info"), - /** The {@code warning} variant. */ - WARNING("warning"), - /** The {@code error} variant. */ - ERROR("error"); - - private final String value; - SessionLogLevel(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionLogLevel fromValue(String value) { - for (SessionLogLevel v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionLogLevel value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.java deleted file mode 100644 index edd160f82..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogParams.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 com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionLogParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Human-readable message */ - @JsonProperty("message") String message, - /** Log severity level. Determines how the message is displayed in the timeline. Defaults to "info". */ - @JsonProperty("level") SessionLogLevel level, - /** Domain category for this log entry (e.g., "mcp", "subscription", "policy", "model"). Maps to `infoType`/`warningType`/`errorType` on the emitted event. Defaults to "notification". */ - @JsonProperty("type") String type, - /** When true, the message is transient and not persisted to the session event log on disk */ - @JsonProperty("ephemeral") Boolean ephemeral, - /** Optional URL the user can open in their browser for more details */ - @JsonProperty("url") String url, - /** Optional actionable tip displayed alongside the message. Only honored on `level: "info"`. */ - @JsonProperty("tip") String tip -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.java deleted file mode 100644 index 7d9d79d71..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLogResult.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.UUID; -import javax.annotation.processing.Generated; - -/** - * Identifier of the session event that was emitted for the log message. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionLogResult( - /** The unique identifier of the emitted session event */ - @JsonProperty("eventId") UUID eventId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java deleted file mode 100644 index 76678266c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspApi.java +++ /dev/null @@ -1,47 +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 lsp} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionLspApi { - - 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 */ - SessionLspApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Parameters for (re)loading the merged LSP configuration set. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture initialize(SessionLspInitializeParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.lsp.initialize", _p, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.java deleted file mode 100644 index bd0387b88..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionLspInitializeParams.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; - -/** - * Parameters for (re)loading the merged LSP configuration set. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionLspInitializeParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Working directory used to load project-level LSP configs. Defaults to the session working directory when omitted. */ - @JsonProperty("workingDirectory") String workingDirectory, - /** Git root used as the boundary when traversing for project-level LSP configs (supports monorepos). */ - @JsonProperty("gitRoot") String gitRoot, - /** Force re-initialization even when LSP configs were already loaded for the working directory. */ - @JsonProperty("force") Boolean force -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java deleted file mode 100644 index 4282a2334..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpApi.java +++ /dev/null @@ -1,141 +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 mcp} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionMcpApi { - - private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; - - private final RpcCaller caller; - private final String sessionId; - - /** API methods for the {@code mcp.oauth} sub-namespace. */ - public final SessionMcpOauthApi oauth; - - /** @param caller the RPC transport function */ - SessionMcpApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - this.oauth = new SessionMcpOauthApi(caller, sessionId); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.mcp.list", java.util.Map.of("sessionId", this.sessionId), SessionMcpListResult.class); - } - - /** - * Name of the MCP server to enable for the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture enable(SessionMcpEnableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mcp.enable", _p, Void.class); - } - - /** - * Name of the MCP server to disable for the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture disable(SessionMcpDisableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mcp.disable", _p, Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture reload() { - return caller.invoke("session.mcp.reload", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture executeSampling(SessionMcpExecuteSamplingParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mcp.executeSampling", _p, SessionMcpExecuteSamplingResult.class); - } - - /** - * The requestId previously passed to executeSampling that should be cancelled. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture cancelSamplingExecution(SessionMcpCancelSamplingExecutionParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mcp.cancelSamplingExecution", _p, SessionMcpCancelSamplingExecutionResult.class); - } - - /** - * Mode controlling how MCP server env values are resolved (`direct` or `indirect`). - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setEnvValueMode(SessionMcpSetEnvValueModeParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mcp.setEnvValueMode", _p, SessionMcpSetEnvValueModeResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture removeGitHub() { - return caller.invoke("session.mcp.removeGitHub", java.util.Map.of("sessionId", this.sessionId), SessionMcpRemoveGitHubResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.java deleted file mode 100644 index c00459e4b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionParams.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; - -/** - * The requestId previously passed to executeSampling that should be cancelled. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpCancelSamplingExecutionParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The requestId previously passed to executeSampling that should be cancelled */ - @JsonProperty("requestId") String requestId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.java deleted file mode 100644 index 9495602f6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpCancelSamplingExecutionResult.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; - -/** - * Indicates whether an in-flight sampling execution with the given requestId was found and cancelled. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpCancelSamplingExecutionResult( - /** True if an in-flight execution with the given requestId was found and signalled to cancel. False when no such execution is in flight (already completed, never started, or cancelled by another caller). */ - @JsonProperty("cancelled") Boolean cancelled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.java deleted file mode 100644 index adee20ceb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpDisableParams.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; - -/** - * Name of the MCP server to disable for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpDisableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the MCP server to disable */ - @JsonProperty("serverName") String serverName -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.java deleted file mode 100644 index 53b23f9ee..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpEnableParams.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; - -/** - * Name of the MCP server to enable for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpEnableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the MCP server to enable */ - @JsonProperty("serverName") String serverName -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.java deleted file mode 100644 index b6f995971..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingParams.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpExecuteSamplingParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Caller-provided unique identifier for this sampling execution. Use this same ID with cancelSamplingExecution to cancel the in-flight call. Must be unique within the session for the lifetime of the call. */ - @JsonProperty("requestId") String requestId, - /** Name of the MCP server that initiated the sampling request */ - @JsonProperty("serverName") String serverName, - /** The original MCP JSON-RPC request ID (string or number). Used by the runtime to correlate the inference with the originating MCP request for telemetry; this is distinct from `requestId` (which is the schema-level cancellation handle). */ - @JsonProperty("mcpRequestId") Object mcpRequestId, - /** Raw MCP CreateMessageRequest params, as received in the `sampling.requested` event. Treated as opaque at the schema layer; the runtime converts the embedded MCP messages into the OpenAI chat-completion shape internally. */ - @JsonProperty("request") McpExecuteSamplingRequest request -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.java deleted file mode 100644 index 578cb10f2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpExecuteSamplingResult.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; - -/** - * Outcome of an MCP sampling execution: success result, failure error, or cancellation. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpExecuteSamplingResult( - /** Outcome of the sampling inference. 'success' produced a response; 'failure' encountered an error (including agent-side rejection by content filter or criteria); 'cancelled' the caller cancelled this execution via cancelSamplingExecution. */ - @JsonProperty("action") McpSamplingExecutionAction action, - /** MCP CreateMessageResult payload (with optional 'tools' extension), present when action='success'. Treated as opaque at the schema layer; consumers should construct/consume it per the MCP CreateMessageResult shape. */ - @JsonProperty("result") McpExecuteSamplingResult result, - /** Error description, present when action='failure'. */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.java deleted file mode 100644 index 4ae5d6a2c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.java deleted file mode 100644 index 220f663b6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpListResult.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; - -/** - * MCP servers configured for the session, with their connection status. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpListResult( - /** Configured MCP servers */ - @JsonProperty("servers") List servers -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java deleted file mode 100644 index 68535ebc4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthApi.java +++ /dev/null @@ -1,47 +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 mcp.oauth} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionMcpOauthApi { - - 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 */ - SessionMcpOauthApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture login(SessionMcpOauthLoginParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mcp.oauth.login", _p, SessionMcpOauthLoginResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.java deleted file mode 100644 index 4fcca6618..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginParams.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpOauthLoginParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the remote MCP server to authenticate */ - @JsonProperty("serverName") String serverName, - /** When true, clears any cached OAuth token for the server and runs a full new authorization. Use when the user explicitly wants to switch accounts or believes their session is stuck. */ - @JsonProperty("forceReauth") Boolean forceReauth, - /** Optional override for the OAuth client display name shown on the consent screen. Applies to newly registered dynamic clients only — existing registrations keep the name they were created with. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass their own surface-specific label so the consent screen matches the product the user sees. */ - @JsonProperty("clientName") String clientName, - /** Optional override for the body text shown on the OAuth loopback callback success page. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass surface-specific copy telling the user where to return. */ - @JsonProperty("callbackSuccessMessage") String callbackSuccessMessage -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.java deleted file mode 100644 index e3d9071f7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpOauthLoginResult.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; - -/** - * OAuth authorization URL the caller should open, or empty when cached tokens already authenticated the server. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpOauthLoginResult( - /** URL the caller should open in a browser to complete OAuth. Omitted when cached tokens were still valid and no browser interaction was needed — the server is already reconnected in that case. When present, the runtime starts the callback listener before returning and continues the flow in the background; completion is signaled via session.mcp_server_status_changed. */ - @JsonProperty("authorizationUrl") String authorizationUrl -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.java deleted file mode 100644 index 6df56c453..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpReloadParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpReloadParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.java deleted file mode 100644 index 0213c76f5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpRemoveGitHubParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.java deleted file mode 100644 index 1845649bc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpRemoveGitHubResult.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; - -/** - * Indicates whether the auto-managed `github` MCP server was removed (false when nothing to remove). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpRemoveGitHubResult( - /** True when the auto-managed `github` MCP server was removed; false when no removal happened (e.g. user has explicitly configured a `github` server, or the server was not registered). */ - @JsonProperty("removed") Boolean removed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.java deleted file mode 100644 index 5a524cfb0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeParams.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; - -/** - * Mode controlling how MCP server env values are resolved (`direct` or `indirect`). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpSetEnvValueModeParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** How environment-variable values supplied to MCP servers are resolved. "direct" passes literal string values; "indirect" treats values as references (e.g. names of environment variables on the host) that the runtime resolves before launch. Defaults to the runtime's startup mode; clients that intentionally launch MCP servers with literal values (e.g. CLI prompt mode and ACP) set this to "direct". */ - @JsonProperty("mode") McpSetEnvValueModeDetails mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.java deleted file mode 100644 index 300ef08e7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMcpSetEnvValueModeResult.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; - -/** - * Env-value mode recorded on the session after the update. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpSetEnvValueModeResult( - /** Mode recorded on the session after the update */ - @JsonProperty("mode") McpSetEnvValueModeDetails mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.java deleted file mode 100644 index c1d3e75eb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadata.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; - -/** - * 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, - /** True for remote (GitHub) sessions; false for local */ - @JsonProperty("isRemote") Boolean isRemote, - /** 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java deleted file mode 100644 index 7bd7e66bb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataApi.java +++ /dev/null @@ -1,112 +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 metadata} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionMetadataApi { - - 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 */ - SessionMetadataApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture snapshot() { - return caller.invoke("session.metadata.snapshot", java.util.Map.of("sessionId", this.sessionId), SessionMetadataSnapshotResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture isProcessing() { - return caller.invoke("session.metadata.isProcessing", java.util.Map.of("sessionId", this.sessionId), SessionMetadataIsProcessingResult.class); - } - - /** - * Model identifier and token limits used to compute the context-info breakdown. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture contextInfo(SessionMetadataContextInfoParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.metadata.contextInfo", _p, SessionMetadataContextInfoResult.class); - } - - /** - * Updated working-directory/git context to record on the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture recordContextChange(SessionMetadataRecordContextChangeParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.metadata.recordContextChange", _p, Void.class); - } - - /** - * Absolute path to set as the session's new working directory. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setWorkingDirectory(SessionMetadataSetWorkingDirectoryParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.metadata.setWorkingDirectory", _p, SessionMetadataSetWorkingDirectoryResult.class); - } - - /** - * Model identifier to use when re-tokenizing the session's existing messages. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture recomputeContextTokens(SessionMetadataRecomputeContextTokensParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.metadata.recomputeContextTokens", _p, SessionMetadataRecomputeContextTokensResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.java deleted file mode 100644 index 4b6bccf7e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoParams.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; - -/** - * Model identifier and token limits used to compute the context-info breakdown. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataContextInfoParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Maximum prompt tokens allowed by the target model. Pass 0 to use the runtime default. */ - @JsonProperty("promptTokenLimit") Long promptTokenLimit, - /** Maximum output tokens allowed by the target model. Pass 0 if unknown. */ - @JsonProperty("outputTokenLimit") Long outputTokenLimit, - /** Model identifier used for tokenization. Omit to use the session default. Used both for token counting and to compute display values. */ - @JsonProperty("selectedModel") String selectedModel -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.java deleted file mode 100644 index de9074e8c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataContextInfoResult.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 javax.annotation.processing.Generated; - -/** - * Token breakdown for the session's current context window, or null if uninitialized. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataContextInfoResult( - /** Token breakdown for the current context window, or null if the session has not yet been initialized (no system prompt or tool metadata cached). */ - @JsonProperty("contextInfo") SessionMetadataContextInfoResultContextInfo contextInfo -) { - - /** Token-usage breakdown for the session's current context window */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionMetadataContextInfoResultContextInfo( - /** The model used for token counting */ - @JsonProperty("modelName") String modelName, - /** Tokens consumed by the system prompt */ - @JsonProperty("systemTokens") Long systemTokens, - /** Tokens consumed by user/assistant/tool messages */ - @JsonProperty("conversationTokens") Long conversationTokens, - /** Tokens consumed by tool definitions sent to the model (excludes deferred tools) */ - @JsonProperty("toolDefinitionsTokens") Long toolDefinitionsTokens, - /** Sum of system, conversation and tool-definition tokens */ - @JsonProperty("totalTokens") Long totalTokens, - /** Maximum prompt tokens allowed by the model (or DEFAULT_TOKEN_LIMIT if unspecified) */ - @JsonProperty("promptTokenLimit") Long promptTokenLimit, - /** Token count at which background compaction starts (configurable percentage of promptTokenLimit) */ - @JsonProperty("compactionThreshold") Long compactionThreshold, - /** Total context limit for /context display. promptTokenLimit + min(32k or 64k, outputTokenLimit) depending on model. */ - @JsonProperty("limit") Long limit, - /** Output reserve plus tokens after the buffer-exhaustion blocking threshold (default 95%) */ - @JsonProperty("bufferTokens") Long bufferTokens - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.java deleted file mode 100644 index 329dbea10..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataIsProcessingParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.java deleted file mode 100644 index e496bb662..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataIsProcessingResult.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; - -/** - * Indicates whether the local session is currently processing a turn or background continuation. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataIsProcessingResult( - /** Whether the session is currently processing user/agent messages. False for non-local sessions (which don't run a local agentic loop). Reflects an in-flight turn or background continuation. */ - @JsonProperty("processing") Boolean processing -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.java deleted file mode 100644 index 979f8808d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensParams.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; - -/** - * Model identifier to use when re-tokenizing the session's existing messages. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataRecomputeContextTokensParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Model identifier used for tokenization. The runtime token-counts both chat-context and system-context messages against this model. */ - @JsonProperty("modelId") String modelId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.java deleted file mode 100644 index 4aab3841a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecomputeContextTokensResult.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; - -/** - * Re-tokenize the session's existing messages against `modelId` and return the token totals. Useful for hosts that want an initial estimate of context usage on session resume, before the next agent turn fires `session.context_info_changed` events. Returns zeros for an empty session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataRecomputeContextTokensResult( - /** Sum of tokens across chat-context and system-context messages currently held by the session. */ - @JsonProperty("totalTokens") Long totalTokens, - /** Tokens contributed by user/assistant/tool messages (excludes system/developer prompts). */ - @JsonProperty("messagesTokenCount") Long messagesTokenCount, - /** Tokens contributed by system/developer prompt snapshots. */ - @JsonProperty("systemTokenCount") Long systemTokenCount -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.java deleted file mode 100644 index 6b42c822c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeParams.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; - -/** - * Updated working-directory/git context to record on the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataRecordContextChangeParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Updated working directory and git context. Emitted as the new payload of `session.context_changed`. */ - @JsonProperty("context") SessionWorkingDirectoryContext context -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataRecordContextChangeResult.java deleted file mode 100644 index 41f252b20..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.java deleted file mode 100644 index 507b0a49f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryParams.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; - -/** - * Absolute path to set as the session's new working directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataSetWorkingDirectoryParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Absolute path to set as the session's working directory. The runtime updates the session's recorded cwd so subsequent operations (shell tools, file lookups, telemetry) anchor to it. */ - @JsonProperty("workingDirectory") String workingDirectory -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.java deleted file mode 100644 index 85ef81026..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSetWorkingDirectoryResult.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; - -/** - * Update the session's working directory. Used by the host when the user explicitly changes cwd (e.g., the `/cd` slash command). The host is responsible for `process.chdir` and any related side-effects (file index, etc.); this method only updates the session's own recorded path. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataSetWorkingDirectoryResult( - /** Working directory after the update */ - @JsonProperty("workingDirectory") String workingDirectory -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.java deleted file mode 100644 index d3e94df43..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataSnapshotParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java deleted file mode 100644 index ec905f078..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMetadataSnapshotResult.java +++ /dev/null @@ -1,77 +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; - -/** - * Point-in-time snapshot of slow-changing session identifier and state fields - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataSnapshotResult( - /** The unique identifier of the session */ - @JsonProperty("sessionId") String sessionId, - /** ISO 8601 timestamp of when the session started */ - @JsonProperty("startTime") OffsetDateTime startTime, - /** ISO 8601 timestamp of when the session's persisted state was last modified on disk. For new sessions, equals startTime. For resumed sessions, reflects the previous modification time at construction. */ - @JsonProperty("modifiedTime") OffsetDateTime modifiedTime, - /** Whether this is a remote session (i.e., one whose runtime executes elsewhere and is steered through this process) */ - @JsonProperty("isRemote") Boolean isRemote, - /** True when the session was detected to be in use by another process at construction time. Local consumers may surface a confirmation prompt before fully attaching. Always false for new sessions. */ - @JsonProperty("alreadyInUse") Boolean alreadyInUse, - /** Absolute path to the session's workspace directory on disk, or null if the session has no associated workspace */ - @JsonProperty("workspacePath") String workspacePath, - /** User-provided name supplied at session construction (via `--name`), if any. Immutable after construction. */ - @JsonProperty("initialName") String initialName, - /** Remote-session-specific metadata. Populated only when `isRemote` is true. Fields are immutable for the lifetime of the session. */ - @JsonProperty("remoteMetadata") MetadataSnapshotRemoteMetadata remoteMetadata, - /** Short human-readable summary of the session, if known. Omitted when no summary has been generated. */ - @JsonProperty("summary") String summary, - /** Absolute path to the session's current working directory */ - @JsonProperty("workingDirectory") String workingDirectory, - /** The current agent mode for this session (e.g., 'interactive', 'plan', 'autopilot') */ - @JsonProperty("currentMode") MetadataSnapshotCurrentMode currentMode, - /** Currently selected model identifier, if any */ - @JsonProperty("selectedModel") String selectedModel, - /** Public-facing workspace metadata for this session, or null if the session has no associated workspace. Excludes runtime-internal fields (GitHub IDs, summary count, internal flags). */ - @JsonProperty("workspace") SessionMetadataSnapshotResultWorkspace workspace -) { - - /** Public-facing projection of workspace metadata for SDK / TUI consumers */ - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionMetadataSnapshotResultWorkspace( - /** Workspace identifier (1:1 with sessionId) */ - @JsonProperty("id") String id, - /** Current working directory at session start */ - @JsonProperty("cwd") String cwd, - /** Resolved git root for cwd, if any */ - @JsonProperty("git_root") String gitRoot, - /** Repository identifier in 'owner/repo' or 'org/project/repo' format, if any */ - @JsonProperty("repository") String repository, - /** Repository host type, if known */ - @JsonProperty("host_type") WorkspaceSummaryHostType hostType, - /** Branch checked out at session start, if any */ - @JsonProperty("branch") String branch, - /** Display name for the session, if set */ - @JsonProperty("name") String name, - /** ISO 8601 timestamp when the workspace was created */ - @JsonProperty("created_at") OffsetDateTime createdAt, - /** ISO 8601 timestamp when the workspace was last updated */ - @JsonProperty("updated_at") OffsetDateTime updatedAt - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.java deleted file mode 100644 index e12db3624..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionMode.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; - -/** - * The session mode the agent is operating in - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"); - - private final String value; - SessionMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionMode fromValue(String value) { - for (SessionMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionMode value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java deleted file mode 100644 index e5201bd6a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeApi.java +++ /dev/null @@ -1,57 +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 mode} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionModeApi { - - 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 */ - SessionModeApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture get() { - return caller.invoke("session.mode.get", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * Agent interaction mode to apply to the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture set(SessionModeSetParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.mode.set", _p, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.java deleted file mode 100644 index c1a493621..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeGetParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModeGetParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.java deleted file mode 100644 index b12bea9ff..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModeSetParams.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; - -/** - * Agent interaction mode to apply to the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModeSetParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The session mode the agent is operating in */ - @JsonProperty("mode") SessionMode mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.java deleted file mode 100644 index eda751b3e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelApi.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.rpc; - -import java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code model} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionModelApi { - - 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 */ - SessionModelApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getCurrent() { - return caller.invoke("session.model.getCurrent", java.util.Map.of("sessionId", this.sessionId), SessionModelGetCurrentResult.class); - } - - /** - * Target model identifier and optional reasoning effort, summary, and capability overrides. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture switchTo(SessionModelSwitchToParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.model.switchTo", _p, SessionModelSwitchToResult.class); - } - - /** - * Reasoning effort level to apply to the currently selected model. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setReasoningEffort(SessionModelSetReasoningEffortParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.model.setReasoningEffort", _p, SessionModelSetReasoningEffortResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.java deleted file mode 100644 index abcf1c2ab..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModelGetCurrentParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.java deleted file mode 100644 index 7bb2f8496..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelGetCurrentResult.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; - -/** - * The currently selected model and reasoning effort for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModelGetCurrentResult( - /** Currently active model identifier */ - @JsonProperty("modelId") String modelId, - /** Reasoning effort level currently applied to the active model, when one is set. Reads `Session.getReasoningEffort()` synchronously after `getSelectedModel()` resolves so the two values are reported as a snapshot. */ - @JsonProperty("reasoningEffort") String reasoningEffort -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.java deleted file mode 100644 index 6135c2e0a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortParams.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; - -/** - * Reasoning effort level to apply to the currently selected model. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModelSetReasoningEffortParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Reasoning effort level to apply to the currently selected model. The host is responsible for validating the value against the model's supported levels before calling. */ - @JsonProperty("reasoningEffort") String reasoningEffort -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.java deleted file mode 100644 index 2d6cbd0a6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSetReasoningEffortResult.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; - -/** - * Update the session's reasoning effort without changing the selected model. Use `switchTo` instead when you also need to change the model. The runtime stores the effort on the session and applies it to subsequent turns. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModelSetReasoningEffortResult( - /** Reasoning effort level recorded on the session after the update */ - @JsonProperty("reasoningEffort") String reasoningEffort -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.java deleted file mode 100644 index c5c1cbbe0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToParams.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Target model identifier and optional reasoning effort, summary, and capability overrides. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModelSwitchToParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Model identifier to switch to */ - @JsonProperty("modelId") String modelId, - /** Reasoning effort level to use for the model. "none" disables reasoning. */ - @JsonProperty("reasoningEffort") String reasoningEffort, - /** Reasoning summary mode to request for supported model clients */ - @JsonProperty("reasoningSummary") ReasoningSummary reasoningSummary, - /** Override individual model capabilities resolved by the runtime */ - @JsonProperty("modelCapabilities") ModelCapabilitiesOverride modelCapabilities -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.java deleted file mode 100644 index 8bf6f2c8e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionModelSwitchToResult.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; - -/** - * The model identifier active on the session after the switch. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModelSwitchToResult( - /** Currently active model identifier after the switch */ - @JsonProperty("modelId") String modelId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.java deleted file mode 100644 index e7e1be58a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameApi.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.rpc; - -import java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code name} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionNameApi { - - 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 */ - SessionNameApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture get() { - return caller.invoke("session.name.get", java.util.Map.of("sessionId", this.sessionId), SessionNameGetResult.class); - } - - /** - * New friendly name to apply to the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture set(SessionNameSetParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.name.set", _p, Void.class); - } - - /** - * Auto-generated session summary to apply as the session's name when no user-set name exists. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setAuto(SessionNameSetAutoParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.name.setAuto", _p, SessionNameSetAutoResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.java deleted file mode 100644 index d3728d06d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionNameGetParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.java deleted file mode 100644 index b3e459967..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameGetResult.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; - -/** - * The session's friendly name, or null when not yet set. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionNameGetResult( - /** The session name (user-set or auto-generated), or null if not yet set */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.java deleted file mode 100644 index 8c69e0d5d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoParams.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; - -/** - * Auto-generated session summary to apply as the session's name when no user-set name exists. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionNameSetAutoParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Auto-generated session summary. Empty/whitespace-only values are ignored; values are trimmed before persisting. */ - @JsonProperty("summary") String summary -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.java deleted file mode 100644 index e84407d89..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetAutoResult.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; - -/** - * Indicates whether the auto-generated summary was applied as the session's name. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionNameSetAutoResult( - /** Whether the auto-generated summary was persisted. False if the session already has a user-set name, the summary normalized to empty, or the session does not have a workspace. */ - @JsonProperty("applied") Boolean applied -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.java deleted file mode 100644 index 7fd348c36..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionNameSetParams.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; - -/** - * New friendly name to apply to the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionNameSetParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** New session name (1–100 characters, trimmed of leading/trailing whitespace) */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java deleted file mode 100644 index 4e46d346a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsApi.java +++ /dev/null @@ -1,47 +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 options} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionOptionsApi { - - 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 */ - SessionOptionsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Patch of mutable session options to apply to the running session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture update(SessionOptionsUpdateParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.options.update", _p, SessionOptionsUpdateResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java deleted file mode 100644 index 081817f3a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateParams.java +++ /dev/null @@ -1,101 +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; - -/** - * Patch of mutable session options to apply to the running session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionOptionsUpdateParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The model ID to use for assistant turns. */ - @JsonProperty("model") String model, - /** Reasoning effort for the selected model (model-defined enum). */ - @JsonProperty("reasoningEffort") String reasoningEffort, - /** Identifier of the client driving the session. */ - @JsonProperty("clientName") String clientName, - /** Identifier sent to LSP-style integrations. */ - @JsonProperty("lspClientName") String lspClientName, - /** Stable integration identifier used for analytics and rate-limit attribution. */ - @JsonProperty("integrationId") String integrationId, - /** Map of feature-flag IDs to their boolean enabled state. */ - @JsonProperty("featureFlags") Map featureFlags, - /** Whether experimental capabilities are enabled. */ - @JsonProperty("isExperimentalMode") Boolean isExperimentalMode, - /** Custom model-provider configuration (BYOK). Opaque shape; see `ProviderConfig` in the runtime. */ - @JsonProperty("provider") Object provider, - /** Absolute working-directory path for shell tools. */ - @JsonProperty("workingDirectory") String workingDirectory, - /** Allowlist of tool names available to this session. */ - @JsonProperty("availableTools") List availableTools, - /** Denylist of tool names for this session. */ - @JsonProperty("excludedTools") List excludedTools, - /** Whether shell-script safety heuristics are enabled. */ - @JsonProperty("enableScriptSafety") Boolean enableScriptSafety, - /** Shell init profile (`None` or `NonInteractive`). */ - @JsonProperty("shellInitProfile") String shellInitProfile, - /** Per-shell process flags (e.g., `pwsh` arguments). */ - @JsonProperty("shellProcessFlags") List shellProcessFlags, - /** Sandbox configuration shape; opaque to SDK consumers. See `SandboxConfig` in the runtime. */ - @JsonProperty("sandboxConfig") Object sandboxConfig, - /** Whether interactive shell sessions are logged. */ - @JsonProperty("logInteractiveShells") Boolean logInteractiveShells, - /** How env values are passed to MCP servers (`direct` inlines literal values; `indirect` resolves at launch). */ - @JsonProperty("envValueMode") OptionsUpdateEnvValueMode envValueMode, - /** Additional directories to search for skills. */ - @JsonProperty("skillDirectories") List skillDirectories, - /** Skill IDs that should be excluded from this session. */ - @JsonProperty("disabledSkills") List disabledSkills, - /** Whether to discover custom instructions on demand after successful file views (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md surfacing). Combined with `skipCustomInstructions` and the runtime-side `ON_DEMAND_INSTRUCTIONS` feature flag. */ - @JsonProperty("enableOnDemandInstructionDiscovery") Boolean enableOnDemandInstructionDiscovery, - /** Full set of installed plugins for the session. Replaces the existing list; the runtime invalidates the skills cache only when the list materially changes. */ - @JsonProperty("installedPlugins") List installedPlugins, - /** Whether to default custom agents to local-only execution. */ - @JsonProperty("customAgentsLocalOnly") Boolean customAgentsLocalOnly, - /** Whether to skip loading custom instruction sources. */ - @JsonProperty("skipCustomInstructions") Boolean skipCustomInstructions, - /** Instruction source IDs to exclude from the system prompt. */ - @JsonProperty("disabledInstructionSources") List disabledInstructionSources, - /** Whether to include the `Co-authored-by` trailer in commit messages. */ - @JsonProperty("coauthorEnabled") Boolean coauthorEnabled, - /** Optional path for trajectory output. */ - @JsonProperty("trajectoryFile") String trajectoryFile, - /** Whether to stream model responses. */ - @JsonProperty("enableStreaming") Boolean enableStreaming, - /** Override URL for the Copilot API endpoint. */ - @JsonProperty("copilotUrl") String copilotUrl, - /** Whether to disable the `ask_user` tool (encourages autonomous behavior). */ - @JsonProperty("askUserDisabled") Boolean askUserDisabled, - /** Whether to allow auto-mode continuation across turns. */ - @JsonProperty("continueOnAutoMode") Boolean continueOnAutoMode, - /** Whether the session is running in an interactive UI. */ - @JsonProperty("runningInInteractiveMode") Boolean runningInInteractiveMode, - /** Whether to surface reasoning-summary events from the model. */ - @JsonProperty("enableReasoningSummaries") Boolean enableReasoningSummaries, - /** Runtime context discriminator (e.g., `cli`, `actions`). */ - @JsonProperty("agentContext") String agentContext, - /** Override directory for the session-events log. When unset, the runtime's default events log directory is used. */ - @JsonProperty("eventsLogDirectory") String eventsLogDirectory, - /** Additional content-exclusion policies to merge into the session's policy set. Opaque shape; see `ContentExclusionApiResponse` in the runtime. */ - @JsonProperty("additionalContentExclusionPolicies") List additionalContentExclusionPolicies, - /** Whether to expose the `manage_schedule` tool to the agent. The runtime always owns the per-session schedule registry; this flag only controls tool exposure (typically gated to staff users). */ - @JsonProperty("manageScheduleEnabled") Boolean manageScheduleEnabled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.java deleted file mode 100644 index 4e514944c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionOptionsUpdateResult.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; - -/** - * Indicates whether the session options patch was applied successfully. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionOptionsUpdateResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java deleted file mode 100644 index 42d947954..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsApi.java +++ /dev/null @@ -1,155 +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 permissions} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPermissionsApi { - - private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; - - private final RpcCaller caller; - private final String sessionId; - - /** API methods for the {@code permissions.paths} sub-namespace. */ - public final SessionPermissionsPathsApi paths; - /** API methods for the {@code permissions.locations} sub-namespace. */ - public final SessionPermissionsLocationsApi locations; - /** API methods for the {@code permissions.folderTrust} sub-namespace. */ - public final SessionPermissionsFolderTrustApi folderTrust; - /** API methods for the {@code permissions.urls} sub-namespace. */ - public final SessionPermissionsUrlsApi urls; - - /** @param caller the RPC transport function */ - SessionPermissionsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - this.paths = new SessionPermissionsPathsApi(caller, sessionId); - this.locations = new SessionPermissionsLocationsApi(caller, sessionId); - this.folderTrust = new SessionPermissionsFolderTrustApi(caller, sessionId); - this.urls = new SessionPermissionsUrlsApi(caller, sessionId); - } - - /** - * Patch of permission policy fields to apply (omit a field to leave it unchanged). - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture configure(SessionPermissionsConfigureParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.configure", _p, SessionPermissionsConfigureResult.class); - } - - /** - * Pending permission request ID and the decision to apply (approve/reject and scope). - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingPermissionRequest(SessionPermissionsHandlePendingPermissionRequestParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.handlePendingPermissionRequest", _p, SessionPermissionsHandlePendingPermissionRequestResult.class); - } - - /** - * No parameters; returns currently-pending permission requests for the session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture pendingRequests() { - return caller.invoke("session.permissions.pendingRequests", java.util.Map.of("sessionId", this.sessionId), SessionPermissionsPendingRequestsResult.class); - } - - /** - * Allow-all toggle for tool permission requests, with an optional telemetry source. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setApproveAll(SessionPermissionsSetApproveAllParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.setApproveAll", _p, SessionPermissionsSetApproveAllResult.class); - } - - /** - * Scope and add/remove instructions for modifying session- or location-scoped permission rules. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture modifyRules(SessionPermissionsModifyRulesParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.modifyRules", _p, SessionPermissionsModifyRulesResult.class); - } - - /** - * Toggles whether permission prompts should be bridged into session events for this client. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setRequired(SessionPermissionsSetRequiredParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.setRequired", _p, SessionPermissionsSetRequiredResult.class); - } - - /** - * No parameters; clears all session-scoped tool permission approvals. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture resetSessionApprovals() { - return caller.invoke("session.permissions.resetSessionApprovals", java.util.Map.of("sessionId", this.sessionId), SessionPermissionsResetSessionApprovalsResult.class); - } - - /** - * Notification payload describing the permission prompt that the client just rendered. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture notifyPromptShown(SessionPermissionsNotifyPromptShownParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.notifyPromptShown", _p, SessionPermissionsNotifyPromptShownResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.java deleted file mode 100644 index 0ae82cd21..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureParams.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Patch of permission policy fields to apply (omit a field to leave it unchanged). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsConfigureParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** If specified, sets whether tool permission requests are auto-approved without prompting. Omit to leave the current value unchanged. */ - @JsonProperty("approveAllToolPermissionRequests") Boolean approveAllToolPermissionRequests, - /** If specified, sets whether path/URL read permission requests are auto-approved. Omit to leave the current value unchanged. */ - @JsonProperty("approveAllReadPermissionRequests") Boolean approveAllReadPermissionRequests, - /** If specified, replaces the session's approved/denied permission rules. Omit to leave the current rules unchanged. */ - @JsonProperty("rules") PermissionRulesSet rules, - /** If specified, replaces the session's path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session's working directory). Omit to leave the current path policy unchanged. */ - @JsonProperty("paths") PermissionPathsConfig paths, - /** If specified, replaces the session's URL-permission policy. The runtime constructs a fresh DefaultUrlManager based on these inputs. Omit to leave the current URL policy unchanged. */ - @JsonProperty("urls") PermissionUrlsConfig urls, - /** If specified, replaces the host-supplied GitHub Content Exclusion policies on the session (combined with natively-discovered policies when evaluating tool/file access). Omit to leave the current policies unchanged. */ - @JsonProperty("additionalContentExclusionPolicies") List additionalContentExclusionPolicies -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.java deleted file mode 100644 index 267403f09..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsConfigureResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsConfigureResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.java deleted file mode 100644 index 27544af71..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedParams.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; - -/** - * Folder path to add to trusted folders. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsFolderTrustAddTrustedParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Folder path to mark as trusted */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.java deleted file mode 100644 index d7181cd86..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustAddTrustedResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsFolderTrustAddTrustedResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java deleted file mode 100644 index 00191e5c4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustApi.java +++ /dev/null @@ -1,62 +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 permissions.folderTrust} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPermissionsFolderTrustApi { - - 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 */ - SessionPermissionsFolderTrustApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Folder path to check for trust. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture isTrusted(SessionPermissionsFolderTrustIsTrustedParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.folderTrust.isTrusted", _p, SessionPermissionsFolderTrustIsTrustedResult.class); - } - - /** - * Folder path to add to trusted folders. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture addTrusted(SessionPermissionsFolderTrustAddTrustedParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.folderTrust.addTrusted", _p, SessionPermissionsFolderTrustAddTrustedResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.java deleted file mode 100644 index f8d666a88..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedParams.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; - -/** - * Folder path to check for trust. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsFolderTrustIsTrustedParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Folder path to check */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.java deleted file mode 100644 index c969d324b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsFolderTrustIsTrustedResult.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; - -/** - * Folder trust check result. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsFolderTrustIsTrustedResult( - /** Whether the folder is trusted */ - @JsonProperty("trusted") Boolean trusted -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.java deleted file mode 100644 index 2f061ed0c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestParams.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; - -/** - * Pending permission request ID and the decision to apply (approve/reject and scope). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsHandlePendingPermissionRequestParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Request ID of the pending permission request */ - @JsonProperty("requestId") String requestId, - /** The client's response to the pending permission prompt */ - @JsonProperty("result") Object result -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.java deleted file mode 100644 index 07bcc16e7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsHandlePendingPermissionRequestResult.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; - -/** - * Indicates whether the permission decision was applied; false when the request was already resolved. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsHandlePendingPermissionRequestResult( - /** Whether the permission request was handled successfully */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.java deleted file mode 100644 index bb99721ab..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalParams.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; - -/** - * Location-scoped tool approval to persist. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsLocationsAddToolApprovalParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Location key (git root or cwd) to persist the approval to */ - @JsonProperty("locationKey") String locationKey, - /** Tool approval to persist and apply */ - @JsonProperty("approval") Object approval -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.java deleted file mode 100644 index 044851720..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsAddToolApprovalResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsLocationsAddToolApprovalResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java deleted file mode 100644 index c40877b6b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApi.java +++ /dev/null @@ -1,77 +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 permissions.locations} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPermissionsLocationsApi { - - 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 */ - SessionPermissionsLocationsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Working directory to resolve into a location-permissions key. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture resolve(SessionPermissionsLocationsResolveParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.locations.resolve", _p, SessionPermissionsLocationsResolveResult.class); - } - - /** - * Working directory to load persisted location permissions for. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture apply(SessionPermissionsLocationsApplyParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.locations.apply", _p, SessionPermissionsLocationsApplyResult.class); - } - - /** - * Location-scoped tool approval to persist. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture addToolApproval(SessionPermissionsLocationsAddToolApprovalParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.locations.addToolApproval", _p, SessionPermissionsLocationsAddToolApprovalResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.java deleted file mode 100644 index aa40ddb2a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyParams.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; - -/** - * Working directory to load persisted location permissions for. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsLocationsApplyParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Working directory whose persisted location permissions should be applied */ - @JsonProperty("workingDirectory") String workingDirectory -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.java deleted file mode 100644 index 842226b32..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsApplyResult.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; - -/** - * Summary of persisted location permissions applied to the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsLocationsApplyResult( - /** Location key used in the location-permissions store */ - @JsonProperty("locationKey") String locationKey, - /** Whether the location is a git repo or directory */ - @JsonProperty("locationType") PermissionLocationType locationType, - /** Whether a different location was applied since the previous apply call */ - @JsonProperty("changed") Boolean changed, - /** Number of location-scoped rules added to the live permission service */ - @JsonProperty("appliedRuleCount") Long appliedRuleCount, - /** Number of persisted allowed directories added to the live path manager */ - @JsonProperty("appliedDirectoryCount") Long appliedDirectoryCount, - /** Location-scoped rules applied to the live permission service */ - @JsonProperty("appliedRules") List appliedRules -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.java deleted file mode 100644 index 2e4f5cf2f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveParams.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; - -/** - * Working directory to resolve into a location-permissions key. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsLocationsResolveParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Working directory whose permission location should be resolved */ - @JsonProperty("workingDirectory") String workingDirectory -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.java deleted file mode 100644 index ff22dcafe..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsLocationsResolveResult.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; - -/** - * Resolved location-permissions key and type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsLocationsResolveResult( - /** Location key used in the location-permissions store */ - @JsonProperty("locationKey") String locationKey, - /** Whether the location is a git repo or directory */ - @JsonProperty("locationType") PermissionLocationType locationType -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java deleted file mode 100644 index 3243aea8b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesParams.java +++ /dev/null @@ -1,36 +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; - -/** - * Scope and add/remove instructions for modifying session- or location-scoped permission rules. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsModifyRulesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Whether the change applies to ephemeral session-scoped rules (cleared at session end) or to location-scoped rules persisted via the location-permissions config file. */ - @JsonProperty("scope") PermissionsModifyRulesScope scope, - /** Rules to add to the scope. Applied before `remove`/`removeAll`. */ - @JsonProperty("add") List add, - /** Specific rules to remove from the scope. Ignored when `removeAll` is true. */ - @JsonProperty("remove") List remove, - /** When true, removes every rule currently in the scope (after any `add` is applied). Useful for clearing the location scope wholesale. */ - @JsonProperty("removeAll") Boolean removeAll -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.java deleted file mode 100644 index 6c5c83675..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsModifyRulesResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsModifyRulesResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.java deleted file mode 100644 index 8c4b25c72..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownParams.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; - -/** - * Notification payload describing the permission prompt that the client just rendered. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsNotifyPromptShownParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Human-readable description of the prompt the user is being asked to approve. Used by the runtime to fire the registered `permission_prompt` notification hook (e.g. terminal bell, desktop notification). */ - @JsonProperty("message") String message -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.java deleted file mode 100644 index 092d8abf8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsNotifyPromptShownResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsNotifyPromptShownResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.java deleted file mode 100644 index 272408cce..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddParams.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; - -/** - * Directory path to add to the session's allowed directories. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsAddParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Directory to add to the allow-list. The runtime resolves and validates the path before adding. */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.java deleted file mode 100644 index 182c39b6f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsAddResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsAddResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java deleted file mode 100644 index f4fc1a770..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsApi.java +++ /dev/null @@ -1,102 +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 permissions.paths} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPermissionsPathsApi { - - 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 */ - SessionPermissionsPathsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * No parameters; returns the session's allow-listed directories. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.permissions.paths.list", java.util.Map.of("sessionId", this.sessionId), SessionPermissionsPathsListResult.class); - } - - /** - * Directory path to add to the session's allowed directories. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture add(SessionPermissionsPathsAddParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.paths.add", _p, SessionPermissionsPathsAddResult.class); - } - - /** - * Directory path to set as the session's new primary working directory. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture updatePrimary(SessionPermissionsPathsUpdatePrimaryParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.paths.updatePrimary", _p, SessionPermissionsPathsUpdatePrimaryResult.class); - } - - /** - * Path to evaluate against the session's allowed directories. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture isPathWithinAllowedDirectories(SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.paths.isPathWithinAllowedDirectories", _p, SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.class); - } - - /** - * Path to evaluate against the session's workspace (primary) directory. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture isPathWithinWorkspace(SessionPermissionsPathsIsPathWithinWorkspaceParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.paths.isPathWithinWorkspace", _p, SessionPermissionsPathsIsPathWithinWorkspaceResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.java deleted file mode 100644 index c9d43aeb2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams.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; - -/** - * Path to evaluate against the session's allowed directories. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path to check against the session's allowed directories */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.java deleted file mode 100644 index 6e876bcca..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult.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; - -/** - * Indicates whether the supplied path is within the session's allowed directories. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult( - /** Whether the path is within the session's allowed directories */ - @JsonProperty("allowed") Boolean allowed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.java deleted file mode 100644 index c8fafd90c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceParams.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; - -/** - * Path to evaluate against the session's workspace (primary) directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsIsPathWithinWorkspaceParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Path to check against the session workspace directory */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.java deleted file mode 100644 index 3eaf87052..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsIsPathWithinWorkspaceResult.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; - -/** - * Indicates whether the supplied path is within the session's workspace directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsIsPathWithinWorkspaceResult( - /** Whether the path is within the session workspace directory */ - @JsonProperty("allowed") Boolean allowed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.java deleted file mode 100644 index 43ae1f040..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListParams.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; - -/** - * No parameters; returns the session's allow-listed directories. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.java deleted file mode 100644 index 78d86e370..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsListResult.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Snapshot of the session's allow-listed directories and primary working directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsListResult( - /** All directories currently allowed for tool access on this session. */ - @JsonProperty("directories") List directories, - /** The primary working directory for this session. */ - @JsonProperty("primary") String primary -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.java deleted file mode 100644 index 98a7ccfb2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryParams.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; - -/** - * Directory path to set as the session's new primary working directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsUpdatePrimaryParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Directory to set as the new primary working directory for the session's permission policy. */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.java deleted file mode 100644 index 7be298132..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPathsUpdatePrimaryResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPathsUpdatePrimaryResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.java deleted file mode 100644 index 4e3f24cb7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsParams.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; - -/** - * No parameters; returns currently-pending permission requests for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPendingRequestsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.java deleted file mode 100644 index 33769fa8b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsPendingRequestsResult.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; - -/** - * List of pending permission requests reconstructed from event history. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsPendingRequestsResult( - /** Pending permission prompts reconstructed from the session's event history. Equivalent to the set of `permission.requested` events that have not yet been followed by a matching `permission.completed` event. Used by clients (e.g. the CLI) to hydrate UI for prompts that were emitted before the client attached to the session. */ - @JsonProperty("items") List items -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.java deleted file mode 100644 index dd369bf43..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsParams.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; - -/** - * No parameters; clears all session-scoped tool permission approvals. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsResetSessionApprovalsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.java deleted file mode 100644 index 2097ed064..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsResetSessionApprovalsResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsResetSessionApprovalsResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.java deleted file mode 100644 index 0517a5d86..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllParams.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; - -/** - * Allow-all toggle for tool permission requests, with an optional telemetry source. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsSetApproveAllParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Whether to auto-approve all tool permission requests */ - @JsonProperty("enabled") Boolean enabled, - /** Optional source for allow-all telemetry. Defaults to `rpc` when omitted for SDK callers. */ - @JsonProperty("source") PermissionsSetApproveAllSource source -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.java deleted file mode 100644 index 7504cac18..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetApproveAllResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsSetApproveAllResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.java deleted file mode 100644 index e3c3e0e34..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredParams.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; - -/** - * Toggles whether permission prompts should be bridged into session events for this client. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsSetRequiredParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Whether the client wants `permission.requested` events bridged from the session-owned permission service. CLI clients that render prompt UI set this to `true` for as long as their listener is mounted; headless callers leave it unset (the default is `false`). */ - @JsonProperty("required") Boolean required -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.java deleted file mode 100644 index eaab9e378..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsSetRequiredResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsSetRequiredResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java deleted file mode 100644 index 71b97adff..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsApi.java +++ /dev/null @@ -1,47 +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 permissions.urls} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPermissionsUrlsApi { - - 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 */ - SessionPermissionsUrlsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Whether the URL-permission policy should run in unrestricted mode. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setUnrestrictedMode(SessionPermissionsUrlsSetUnrestrictedModeParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.permissions.urls.setUnrestrictedMode", _p, SessionPermissionsUrlsSetUnrestrictedModeResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.java deleted file mode 100644 index 6579489eb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeParams.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; - -/** - * Whether the URL-permission policy should run in unrestricted mode. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsUrlsSetUnrestrictedModeParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Whether to allow access to all URLs without prompting. Toggles the runtime's URL-permission policy in place. */ - @JsonProperty("enabled") Boolean enabled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.java deleted file mode 100644 index beef183a7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPermissionsUrlsSetUnrestrictedModeResult.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; - -/** - * Indicates whether the operation succeeded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPermissionsUrlsSetUnrestrictedModeResult( - /** Whether the operation succeeded */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java deleted file mode 100644 index 25ff6884f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanApi.java +++ /dev/null @@ -1,67 +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 plan} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPlanApi { - - 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 */ - SessionPlanApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture read() { - return caller.invoke("session.plan.read", java.util.Map.of("sessionId", this.sessionId), SessionPlanReadResult.class); - } - - /** - * Replacement contents to write to the session plan file. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture update(SessionPlanUpdateParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.plan.update", _p, Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture delete() { - return caller.invoke("session.plan.delete", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.java deleted file mode 100644 index d47bd774e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanDeleteParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPlanDeleteParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.java deleted file mode 100644 index 57949be2b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPlanReadParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.java deleted file mode 100644 index 65a1ba75f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanReadResult.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; - -/** - * Existence, contents, and resolved path of the session plan file. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPlanReadResult( - /** Whether the plan file exists in the workspace */ - @JsonProperty("exists") Boolean exists, - /** The content of the plan file, or null if it does not exist */ - @JsonProperty("content") String content, - /** Absolute file path of the plan file, or null if workspace is not enabled */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.java deleted file mode 100644 index 128a7b814..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPlanUpdateParams.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; - -/** - * Replacement contents to write to the session plan file. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPlanUpdateParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The new content for the plan file */ - @JsonProperty("content") String content -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.java deleted file mode 100644 index e59e2b398..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsApi.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 java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code plugins} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionPluginsApi { - - private final RpcCaller caller; - private final String sessionId; - - /** @param caller the RPC transport function */ - SessionPluginsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.plugins.list", java.util.Map.of("sessionId", this.sessionId), SessionPluginsListResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.java deleted file mode 100644 index 7229b23a0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPluginsListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.java deleted file mode 100644 index bdf3e6dd8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionPluginsListResult.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; - -/** - * Plugins installed for the session, with their enabled state and version metadata. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPluginsListResult( - /** Installed plugins */ - @JsonProperty("plugins") List plugins -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java deleted file mode 100644 index 9c4a13b55..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueApi.java +++ /dev/null @@ -1,60 +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 queue} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionQueueApi { - - private final RpcCaller caller; - private final String sessionId; - - /** @param caller the RPC transport function */ - SessionQueueApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture pendingItems() { - return caller.invoke("session.queue.pendingItems", java.util.Map.of("sessionId", this.sessionId), SessionQueuePendingItemsResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture removeMostRecent() { - return caller.invoke("session.queue.removeMostRecent", java.util.Map.of("sessionId", this.sessionId), SessionQueueRemoveMostRecentResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture clear() { - return caller.invoke("session.queue.clear", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.java deleted file mode 100644 index 38d4404c7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueClearParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionQueueClearParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.java deleted file mode 100644 index a4e2b10c2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionQueuePendingItemsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.java deleted file mode 100644 index 0a8e6540e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueuePendingItemsResult.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Snapshot of the session's pending queued items and immediate-steering messages. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionQueuePendingItemsResult( - /** Pending queued items in submission order. Includes user messages, queued slash commands, and queued model changes; omits internal system items. */ - @JsonProperty("items") List items, - /** Display text for messages currently in the immediate steering queue (interjections sent during a running turn). */ - @JsonProperty("steeringMessages") List steeringMessages -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.java deleted file mode 100644 index 26419bcea..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionQueueRemoveMostRecentParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.java deleted file mode 100644 index ecd428322..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionQueueRemoveMostRecentResult.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; - -/** - * Indicates whether a user-facing pending item was removed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionQueueRemoveMostRecentResult( - /** True if a user-facing pending item was removed (LIFO across both queues); false when no removable items remained. */ - @JsonProperty("removed") Boolean removed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.java deleted file mode 100644 index 3e4f2ce8c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteApi.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.rpc; - -import java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code remote} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionRemoteApi { - - 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 */ - SessionRemoteApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Optional remote session mode ("off", "export", or "on"); defaults to enabling both export and remote steering. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture enable(SessionRemoteEnableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.remote.enable", _p, SessionRemoteEnableResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture disable() { - return caller.invoke("session.remote.disable", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * New remote-steerability state to persist as a `session.remote_steerable_changed` event. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture notifySteerableChanged(SessionRemoteNotifySteerableChangedParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.remote.notifySteerableChanged", _p, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.java deleted file mode 100644 index a49197aa1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteDisableParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionRemoteDisableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.java deleted file mode 100644 index 20c3db98a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableParams.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 remote session mode ("off", "export", or "on"); defaults to enabling both export and remote steering. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionRemoteEnableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Per-session remote mode. "off" disables remote, "export" exports session events to GitHub without enabling remote steering, "on" enables both export and remote steering. */ - @JsonProperty("mode") RemoteSessionMode mode -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.java deleted file mode 100644 index 5b282f91b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteEnableResult.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; - -/** - * GitHub URL for the session and a flag indicating whether remote steering is enabled. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionRemoteEnableResult( - /** GitHub frontend URL for this session */ - @JsonProperty("url") String url, - /** Whether remote steering is enabled */ - @JsonProperty("remoteSteerable") Boolean remoteSteerable -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.java deleted file mode 100644 index 13df7f676..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedParams.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; - -/** - * New remote-steerability state to persist as a `session.remote_steerable_changed` event. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionRemoteNotifySteerableChangedParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Whether the session now supports remote steering via GitHub. The runtime persists this as a `session.remote_steerable_changed` event so resume/replay sees the up-to-date capability. */ - @JsonProperty("remoteSteerable") Boolean remoteSteerable -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRemoteNotifySteerableChangedResult.java deleted file mode 100644 index 4d48e604d..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java deleted file mode 100644 index ff66aeef3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionRpc.java +++ /dev/null @@ -1,200 +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; - -/** - * Typed client for session-scoped RPC methods. - *

    - * Provides strongly-typed access to all session-level API namespaces. - * The {@code sessionId} is injected automatically into every call. - *

    - * Obtain an instance by calling {@code new SessionRpc(caller, sessionId)}. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionRpc { - - private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; - - private final RpcCaller caller; - private final String sessionId; - - /** API methods for the {@code auth} namespace. */ - public final SessionAuthApi auth; - /** API methods for the {@code model} namespace. */ - public final SessionModelApi model; - /** API methods for the {@code mode} namespace. */ - public final SessionModeApi mode; - /** API methods for the {@code name} namespace. */ - public final SessionNameApi name; - /** API methods for the {@code plan} namespace. */ - public final SessionPlanApi plan; - /** API methods for the {@code workspaces} namespace. */ - public final SessionWorkspacesApi workspaces; - /** API methods for the {@code instructions} namespace. */ - public final SessionInstructionsApi instructions; - /** API methods for the {@code fleet} namespace. */ - public final SessionFleetApi fleet; - /** API methods for the {@code agent} namespace. */ - public final SessionAgentApi agent; - /** API methods for the {@code tasks} namespace. */ - public final SessionTasksApi tasks; - /** API methods for the {@code skills} namespace. */ - public final SessionSkillsApi skills; - /** API methods for the {@code mcp} namespace. */ - public final SessionMcpApi mcp; - /** API methods for the {@code plugins} namespace. */ - public final SessionPluginsApi plugins; - /** API methods for the {@code options} namespace. */ - public final SessionOptionsApi options; - /** API methods for the {@code lsp} namespace. */ - public final SessionLspApi lsp; - /** API methods for the {@code extensions} namespace. */ - public final SessionExtensionsApi extensions; - /** API methods for the {@code tools} namespace. */ - public final SessionToolsApi tools; - /** API methods for the {@code commands} namespace. */ - public final SessionCommandsApi commands; - /** API methods for the {@code telemetry} namespace. */ - public final SessionTelemetryApi telemetry; - /** API methods for the {@code ui} namespace. */ - public final SessionUiApi ui; - /** API methods for the {@code permissions} namespace. */ - public final SessionPermissionsApi permissions; - /** API methods for the {@code metadata} namespace. */ - public final SessionMetadataApi metadata; - /** API methods for the {@code shell} namespace. */ - public final SessionShellApi shell; - /** API methods for the {@code history} namespace. */ - public final SessionHistoryApi history; - /** API methods for the {@code queue} namespace. */ - public final SessionQueueApi queue; - /** API methods for the {@code eventLog} namespace. */ - public final SessionEventLogApi eventLog; - /** API methods for the {@code usage} namespace. */ - public final SessionUsageApi usage; - /** API methods for the {@code remote} namespace. */ - public final SessionRemoteApi remote; - /** API methods for the {@code schedule} namespace. */ - public final SessionScheduleApi schedule; - - /** - * Creates a new session RPC client. - * - * @param caller the RPC transport function (e.g., {@code jsonRpcClient::invoke}) - * @param sessionId the session ID to inject into every request - */ - public SessionRpc(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - this.auth = new SessionAuthApi(caller, sessionId); - this.model = new SessionModelApi(caller, sessionId); - this.mode = new SessionModeApi(caller, sessionId); - this.name = new SessionNameApi(caller, sessionId); - this.plan = new SessionPlanApi(caller, sessionId); - this.workspaces = new SessionWorkspacesApi(caller, sessionId); - this.instructions = new SessionInstructionsApi(caller, sessionId); - this.fleet = new SessionFleetApi(caller, sessionId); - this.agent = new SessionAgentApi(caller, sessionId); - this.tasks = new SessionTasksApi(caller, sessionId); - this.skills = new SessionSkillsApi(caller, sessionId); - this.mcp = new SessionMcpApi(caller, sessionId); - this.plugins = new SessionPluginsApi(caller, sessionId); - this.options = new SessionOptionsApi(caller, sessionId); - this.lsp = new SessionLspApi(caller, sessionId); - this.extensions = new SessionExtensionsApi(caller, sessionId); - this.tools = new SessionToolsApi(caller, sessionId); - this.commands = new SessionCommandsApi(caller, sessionId); - this.telemetry = new SessionTelemetryApi(caller, sessionId); - this.ui = new SessionUiApi(caller, sessionId); - this.permissions = new SessionPermissionsApi(caller, sessionId); - this.metadata = new SessionMetadataApi(caller, sessionId); - this.shell = new SessionShellApi(caller, sessionId); - this.history = new SessionHistoryApi(caller, sessionId); - this.queue = new SessionQueueApi(caller, sessionId); - this.eventLog = new SessionEventLogApi(caller, sessionId); - this.usage = new SessionUsageApi(caller, sessionId); - this.remote = new SessionRemoteApi(caller, sessionId); - this.schedule = new SessionScheduleApi(caller, sessionId); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture suspend() { - return caller.invoke("session.suspend", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * Parameters for sending a user message to the session - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture send(SessionSendParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.send", _p, SessionSendResult.class); - } - - /** - * Parameters for aborting the current turn - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture abort(SessionAbortParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.abort", _p, SessionAbortResult.class); - } - - /** - * Parameters for shutting down the session - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture shutdown(SessionShutdownParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.shutdown", _p, Void.class); - } - - /** - * Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture log(SessionLogParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.log", _p, SessionLogResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java deleted file mode 100644 index e35fb2197..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleApi.java +++ /dev/null @@ -1,57 +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 schedule} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionScheduleApi { - - 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 */ - SessionScheduleApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.schedule.list", java.util.Map.of("sessionId", this.sessionId), SessionScheduleListResult.class); - } - - /** - * Identifier of the scheduled prompt to remove. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture stop(SessionScheduleStopParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.schedule.stop", _p, SessionScheduleStopResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.java deleted file mode 100644 index 3dda01502..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionScheduleListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.java deleted file mode 100644 index 6a5ec101c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleListResult.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; - -/** - * Snapshot of the currently active recurring prompts for this session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionScheduleListResult( - /** Active scheduled prompts, ordered by id. */ - @JsonProperty("entries") List entries -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.java deleted file mode 100644 index 321599991..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopParams.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; - -/** - * Identifier of the scheduled prompt to remove. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionScheduleStopParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Id of the scheduled prompt to remove. */ - @JsonProperty("id") Long id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.java deleted file mode 100644 index b61b0bb9e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionScheduleStopResult.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; - -/** - * Remove a scheduled prompt by id. The result entry is omitted if the id was unknown. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionScheduleStopResult( - /** The removed entry, or omitted if no entry matched. */ - @JsonProperty("entry") ScheduleEntry entry -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java deleted file mode 100644 index 42177c82d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendParams.java +++ /dev/null @@ -1,55 +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; - -/** - * Parameters for sending a user message to the session - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSendParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The user message text */ - @JsonProperty("prompt") String prompt, - /** If provided, this is shown in the timeline instead of `prompt` */ - @JsonProperty("displayPrompt") String displayPrompt, - /** Optional attachments (files, directories, selections, blobs, GitHub references) to include with the message */ - @JsonProperty("attachments") List attachments, - /** How to deliver the message. `enqueue` (default) appends to the message queue. `immediate` interjects during an in-progress turn. */ - @JsonProperty("mode") SendMode mode, - /** If true, adds the message to the front of the queue instead of the end */ - @JsonProperty("prepend") Boolean prepend, - /** If false, this message will not trigger a Premium Request Unit charge. User messages default to billable. */ - @JsonProperty("billable") Boolean billable, - /** If set, the request will fail if the named tool is not available when this message is among the user messages at the start of the current exchange */ - @JsonProperty("requiredTool") String requiredTool, - /** Optional provenance tag copied to the resulting user.message event. Supported values are `system`, `command-*`, and `schedule-*`. */ - @JsonProperty("source") Object source, - /** The UI mode the agent was in when this message was sent. Defaults to the session's current mode. */ - @JsonProperty("agentMode") SendAgentMode agentMode, - /** Custom HTTP headers to include in outbound model requests for this turn. Merged with session-level provider headers; per-turn headers augment and overwrite session-level headers with the same key. */ - @JsonProperty("requestHeaders") Map requestHeaders, - /** W3C Trace Context traceparent header for distributed tracing of this agent turn */ - @JsonProperty("traceparent") String traceparent, - /** W3C Trace Context tracestate header for distributed tracing */ - @JsonProperty("tracestate") String tracestate, - /** If true, await completion of the agentic loop for this message before returning. Defaults to false (fire-and-forget). When true, the result still contains the same `messageId`; the caller can rely on the agent having processed the message before the call resolves. */ - @JsonProperty("wait") Boolean wait_ -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.java deleted file mode 100644 index 747435e18..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSendResult.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 of sending a user message - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSendResult( - /** Unique identifier assigned to the message */ - @JsonProperty("messageId") String messageId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java deleted file mode 100644 index 9abf8a626..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellApi.java +++ /dev/null @@ -1,62 +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 shell} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionShellApi { - - 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 */ - SessionShellApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Shell command to run, with optional working directory and timeout in milliseconds. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture exec(SessionShellExecParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.shell.exec", _p, SessionShellExecResult.class); - } - - /** - * Identifier of a process previously returned by "shell.exec" and the signal to send. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture kill(SessionShellKillParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.shell.kill", _p, SessionShellKillResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.java deleted file mode 100644 index 817adc93c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecParams.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; - -/** - * Shell command to run, with optional working directory and timeout in milliseconds. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionShellExecParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Shell command to execute */ - @JsonProperty("command") String command, - /** Working directory (defaults to session working directory) */ - @JsonProperty("cwd") String cwd, - /** Timeout in milliseconds (default: 30000) */ - @JsonProperty("timeout") Long timeout -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.java deleted file mode 100644 index 28a756535..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellExecResult.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; - -/** - * Identifier of the spawned process, used to correlate streamed output and exit notifications. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionShellExecResult( - /** Unique identifier for tracking streamed output */ - @JsonProperty("processId") String processId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.java deleted file mode 100644 index 1b26f1cb4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillParams.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; - -/** - * Identifier of a process previously returned by "shell.exec" and the signal to send. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionShellKillParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Process identifier returned by shell.exec */ - @JsonProperty("processId") String processId, - /** Signal to send (default: SIGTERM) */ - @JsonProperty("signal") ShellKillSignal signal -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.java deleted file mode 100644 index db3ff08cf..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShellKillResult.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; - -/** - * Indicates whether the signal was delivered; false if the process was unknown or already exited. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionShellKillResult( - /** Whether the signal was sent successfully */ - @JsonProperty("killed") Boolean killed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.java deleted file mode 100644 index c17bef956..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionShutdownParams.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; - -/** - * Parameters for shutting down the session - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionShutdownParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Why the session is being shut down. Defaults to "routine" when omitted. */ - @JsonProperty("type") ShutdownType type, - /** Optional human-readable reason. Typically the message of the error that triggered shutdown when type is 'error'. */ - @JsonProperty("reason") String reason -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java deleted file mode 100644 index 0d6a2fec3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsApi.java +++ /dev/null @@ -1,102 +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 skills} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionSkillsApi { - - 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 */ - SessionSkillsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.skills.list", java.util.Map.of("sessionId", this.sessionId), SessionSkillsListResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getInvoked() { - return caller.invoke("session.skills.getInvoked", java.util.Map.of("sessionId", this.sessionId), SessionSkillsGetInvokedResult.class); - } - - /** - * Name of the skill to enable for the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture enable(SessionSkillsEnableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.skills.enable", _p, Void.class); - } - - /** - * Name of the skill to disable for the session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture disable(SessionSkillsDisableParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.skills.disable", _p, Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture reload() { - return caller.invoke("session.skills.reload", java.util.Map.of("sessionId", this.sessionId), SessionSkillsReloadResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture ensureLoaded() { - return caller.invoke("session.skills.ensureLoaded", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.java deleted file mode 100644 index ba1df8ea2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsDisableParams.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; - -/** - * Name of the skill to disable for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsDisableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the skill to disable */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.java deleted file mode 100644 index 6e6a7fd62..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnableParams.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; - -/** - * Name of the skill to enable for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsEnableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Name of the skill to enable */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.java deleted file mode 100644 index 1d5a7f102..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsEnsureLoadedParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsEnsureLoadedParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.java deleted file mode 100644 index c17c00d07..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsGetInvokedParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.java deleted file mode 100644 index ed62e0fc7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsGetInvokedResult.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; - -/** - * Skills invoked during this session, ordered by invocation time (most recent last). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsGetInvokedResult( - /** Skills invoked during this session, ordered by invocation time (most recent last) */ - @JsonProperty("skills") List skills -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.java deleted file mode 100644 index 1d45d8fa9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.java deleted file mode 100644 index ded58a52f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsListResult.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; - -/** - * Skills available to the session, with their enabled state. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsListResult( - /** Available skills */ - @JsonProperty("skills") List skills -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.java deleted file mode 100644 index 3d580001c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsReloadParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.java deleted file mode 100644 index 38c426e5b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSkillsReloadResult.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Diagnostics from reloading skill definitions, with warnings and errors as separate lists. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsReloadResult( - /** Warnings emitted while loading skills (e.g. skills that loaded but had issues) */ - @JsonProperty("warnings") List warnings, - /** Errors emitted while loading skills (e.g. skills that failed to load entirely) */ - @JsonProperty("errors") List errors -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.java deleted file mode 100644 index 4ca1c33ab..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionSuspendParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSuspendParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java deleted file mode 100644 index f203c536c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksApi.java +++ /dev/null @@ -1,172 +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 tasks} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionTasksApi { - - 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 */ - SessionTasksApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Agent type, prompt, name, and optional description and model override for the new task. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture startAgent(SessionTasksStartAgentParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tasks.startAgent", _p, SessionTasksStartAgentResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture list() { - return caller.invoke("session.tasks.list", java.util.Map.of("sessionId", this.sessionId), SessionTasksListResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture refresh() { - return caller.invoke("session.tasks.refresh", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture waitForPending() { - return caller.invoke("session.tasks.waitForPending", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - - /** - * Identifier of the background task to fetch progress for. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getProgress(SessionTasksGetProgressParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tasks.getProgress", _p, SessionTasksGetProgressResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getCurrentPromotable() { - return caller.invoke("session.tasks.getCurrentPromotable", java.util.Map.of("sessionId", this.sessionId), SessionTasksGetCurrentPromotableResult.class); - } - - /** - * Identifier of the task to promote to background mode. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture promoteToBackground(SessionTasksPromoteToBackgroundParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tasks.promoteToBackground", _p, SessionTasksPromoteToBackgroundResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture promoteCurrentToBackground() { - return caller.invoke("session.tasks.promoteCurrentToBackground", java.util.Map.of("sessionId", this.sessionId), SessionTasksPromoteCurrentToBackgroundResult.class); - } - - /** - * Identifier of the background task to cancel. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture cancel(SessionTasksCancelParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tasks.cancel", _p, SessionTasksCancelResult.class); - } - - /** - * Identifier of the completed or cancelled task to remove from tracking. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture remove(SessionTasksRemoveParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tasks.remove", _p, SessionTasksRemoveResult.class); - } - - /** - * Identifier of the target agent task, message content, and optional sender agent ID. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture sendMessage(SessionTasksSendMessageParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tasks.sendMessage", _p, SessionTasksSendMessageResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.java deleted file mode 100644 index 56fab2d64..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelParams.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; - -/** - * Identifier of the background task to cancel. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksCancelParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Task identifier */ - @JsonProperty("id") String id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.java deleted file mode 100644 index ffb17a6f0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksCancelResult.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; - -/** - * Indicates whether the background task was successfully cancelled. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksCancelResult( - /** Whether the task was successfully cancelled */ - @JsonProperty("cancelled") Boolean cancelled -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.java deleted file mode 100644 index 25a78bbc7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksGetCurrentPromotableParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.java deleted file mode 100644 index 4ca2200ec..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetCurrentPromotableResult.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; - -/** - * The first sync-waiting task that can currently be promoted to background mode. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksGetCurrentPromotableResult( - /** The first sync-waiting task (agent first, then shell) that can currently be promoted to background mode. Omitted if no such task exists. The returned task is guaranteed to have executionMode='sync' and canPromoteToBackground=true at the time of the call. */ - @JsonProperty("task") Object task -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.java deleted file mode 100644 index 0081430c5..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressParams.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; - -/** - * Identifier of the background task to fetch progress for. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksGetProgressParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Task identifier (agent ID or shell ID) */ - @JsonProperty("id") String id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.java deleted file mode 100644 index 6f24e4bc9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksGetProgressResult.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; - -/** - * Progress information for the task, or null when no task with that ID is tracked. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksGetProgressResult( - /** Progress information for the task, discriminated by type. Returns null when no task with this ID is currently tracked. */ - @JsonProperty("progress") Object progress -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.java deleted file mode 100644 index d645ee348..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksListParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.java deleted file mode 100644 index ec52af751..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksListResult.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; - -/** - * Background tasks currently tracked by the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksListResult( - /** Currently tracked tasks */ - @JsonProperty("tasks") List tasks -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.java deleted file mode 100644 index b7ec7e39e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksPromoteCurrentToBackgroundParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.java deleted file mode 100644 index 702aa1c4e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteCurrentToBackgroundResult.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; - -/** - * The promoted task as it now exists in background mode, omitted if no promotable task was waiting. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksPromoteCurrentToBackgroundResult( - /** The promoted task as it now exists in background mode, omitted if no promotable task was waiting. Atomic operation: avoids the race window of getCurrentPromotable + promoteToBackground. */ - @JsonProperty("task") Object task -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.java deleted file mode 100644 index f75e97f39..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundParams.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; - -/** - * Identifier of the task to promote to background mode. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksPromoteToBackgroundParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Task identifier */ - @JsonProperty("id") String id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.java deleted file mode 100644 index 5ed332b17..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksPromoteToBackgroundResult.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; - -/** - * Indicates whether the task was successfully promoted to background mode. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksPromoteToBackgroundResult( - /** Whether the task was successfully promoted to background mode */ - @JsonProperty("promoted") Boolean promoted -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.java deleted file mode 100644 index da6e164df..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksRefreshParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRefreshResult.java deleted file mode 100644 index 497d41233..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.java deleted file mode 100644 index 66a730590..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveParams.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; - -/** - * Identifier of the completed or cancelled task to remove from tracking. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksRemoveParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Task identifier */ - @JsonProperty("id") String id -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.java deleted file mode 100644 index 0d4173cac..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksRemoveResult.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; - -/** - * Indicates whether the task was removed. False when the task does not exist or is still running/idle. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksRemoveResult( - /** Whether the task was removed. Returns false if the task does not exist or is still running/idle (cancel it first). */ - @JsonProperty("removed") Boolean removed -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.java deleted file mode 100644 index 841ad104a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageParams.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; - -/** - * Identifier of the target agent task, message content, and optional sender agent ID. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksSendMessageParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Agent task identifier */ - @JsonProperty("id") String id, - /** Message content to send to the agent */ - @JsonProperty("message") String message, - /** Agent ID of the sender, if sent on behalf of another agent */ - @JsonProperty("fromAgentId") String fromAgentId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.java deleted file mode 100644 index dee710d95..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksSendMessageResult.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; - -/** - * Indicates whether the message was delivered, with an error message when delivery failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksSendMessageResult( - /** Whether the message was successfully delivered or steered */ - @JsonProperty("sent") Boolean sent, - /** Error message if delivery failed */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.java deleted file mode 100644 index f146e6e91..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentParams.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; - -/** - * Agent type, prompt, name, and optional description and model override for the new task. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksStartAgentParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Type of agent to start (e.g., 'explore', 'task', 'general-purpose') */ - @JsonProperty("agentType") String agentType, - /** Task prompt for the agent */ - @JsonProperty("prompt") String prompt, - /** Short name for the agent, used to generate a human-readable ID */ - @JsonProperty("name") String name, - /** Short description of the task */ - @JsonProperty("description") String description, - /** Optional model override */ - @JsonProperty("model") String model -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.java deleted file mode 100644 index 24cd051ce..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksStartAgentResult.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; - -/** - * Identifier assigned to the newly started background agent task. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksStartAgentResult( - /** Generated agent ID for the background task */ - @JsonProperty("agentId") String agentId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.java deleted file mode 100644 index 916c9f424..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksWaitForPendingParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTasksWaitForPendingResult.java deleted file mode 100644 index b8ec86d12..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java deleted file mode 100644 index 92c24b4e8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetryApi.java +++ /dev/null @@ -1,47 +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 telemetry} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionTelemetryApi { - - 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 */ - SessionTelemetryApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Feature override key/value pairs to attach to subsequent telemetry events from this session. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture setFeatureOverrides(SessionTelemetrySetFeatureOverridesParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.telemetry.setFeatureOverrides", _p, Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.java deleted file mode 100644 index d0f364e23..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionTelemetrySetFeatureOverridesParams.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 java.util.Map; -import javax.annotation.processing.Generated; - -/** - * Feature override key/value pairs to attach to subsequent telemetry events from this session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTelemetrySetFeatureOverridesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Override key/value pairs to attach to subsequent telemetry events from this session. Replaces any previously-set overrides. */ - @JsonProperty("features") Map features -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java deleted file mode 100644 index 81c04f2ca..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsApi.java +++ /dev/null @@ -1,57 +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 tools} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionToolsApi { - - 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 */ - SessionToolsApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Pending external tool call request ID, with the tool result or an error describing why it failed. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingToolCall(SessionToolsHandlePendingToolCallParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.tools.handlePendingToolCall", _p, SessionToolsHandlePendingToolCallResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture initializeAndValidate() { - return caller.invoke("session.tools.initializeAndValidate", java.util.Map.of("sessionId", this.sessionId), Void.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.java deleted file mode 100644 index a5bfa4cca..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallParams.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; - -/** - * Pending external tool call request ID, with the tool result or an error describing why it failed. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionToolsHandlePendingToolCallParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Request ID of the pending tool call */ - @JsonProperty("requestId") String requestId, - /** Tool call result (string or expanded result object) */ - @JsonProperty("result") Object result, - /** Error message if the tool call failed */ - @JsonProperty("error") String error -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.java deleted file mode 100644 index fefaa652e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsHandlePendingToolCallResult.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; - -/** - * Indicates whether the external tool call result was handled successfully. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionToolsHandlePendingToolCallResult( - /** Whether the tool call result was handled successfully */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.java deleted file mode 100644 index f605cb817..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionToolsInitializeAndValidateParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionToolsInitializeAndValidateResult.java deleted file mode 100644 index b4126b390..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java deleted file mode 100644 index c3116fe58..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiApi.java +++ /dev/null @@ -1,147 +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 ui} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionUiApi { - - 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 */ - SessionUiApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Prompt message and JSON schema describing the form fields to elicit from the user. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture elicitation(SessionUiElicitationParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.elicitation", _p, SessionUiElicitationResult.class); - } - - /** - * Pending elicitation request ID and the user's response (accept/decline/cancel + form values). - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingElicitation(SessionUiHandlePendingElicitationParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.handlePendingElicitation", _p, SessionUiHandlePendingElicitationResult.class); - } - - /** - * Request ID of a pending `user_input.requested` event and the user's response. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingUserInput(SessionUiHandlePendingUserInputParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.handlePendingUserInput", _p, SessionUiHandlePendingUserInputResult.class); - } - - /** - * Request ID of a pending `sampling.requested` event and an optional sampling result payload (omit to reject). - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingSampling(SessionUiHandlePendingSamplingParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.handlePendingSampling", _p, SessionUiHandlePendingSamplingResult.class); - } - - /** - * Request ID of a pending `auto_mode_switch.requested` event and the user's response. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingAutoModeSwitch(SessionUiHandlePendingAutoModeSwitchParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.handlePendingAutoModeSwitch", _p, SessionUiHandlePendingAutoModeSwitchResult.class); - } - - /** - * Request ID of a pending `exit_plan_mode.requested` event and the user's response. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture handlePendingExitPlanMode(SessionUiHandlePendingExitPlanModeParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.handlePendingExitPlanMode", _p, SessionUiHandlePendingExitPlanModeResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture registerDirectAutoModeSwitchHandler() { - return caller.invoke("session.ui.registerDirectAutoModeSwitchHandler", java.util.Map.of("sessionId", this.sessionId), SessionUiRegisterDirectAutoModeSwitchHandlerResult.class); - } - - /** - * Opaque handle previously returned by `registerDirectAutoModeSwitchHandler` to release. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture unregisterDirectAutoModeSwitchHandler(SessionUiUnregisterDirectAutoModeSwitchHandlerParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.ui.unregisterDirectAutoModeSwitchHandler", _p, SessionUiUnregisterDirectAutoModeSwitchHandlerResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.java deleted file mode 100644 index d68416704..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationParams.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; - -/** - * Prompt message and JSON schema describing the form fields to elicit from the user. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiElicitationParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Message describing what information is needed from the user */ - @JsonProperty("message") String message, - /** JSON Schema describing the form fields to present to the user */ - @JsonProperty("requestedSchema") UIElicitationSchema requestedSchema -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.java deleted file mode 100644 index d08d7453e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiElicitationResult.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 java.util.Map; -import javax.annotation.processing.Generated; - -/** - * The elicitation response (accept with form values, decline, or cancel) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiElicitationResult( - /** The user's response: accept (submitted), decline (rejected), or cancel (dismissed) */ - @JsonProperty("action") UIElicitationResponseAction action, - /** The form values submitted by the user (present when action is 'accept') */ - @JsonProperty("content") Map content -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.java deleted file mode 100644 index 1afe7d5e7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchParams.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 ID of a pending `auto_mode_switch.requested` event and the user's response. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingAutoModeSwitchParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The unique request ID from the auto_mode_switch.requested event */ - @JsonProperty("requestId") String requestId, - /** User's choice for auto-mode switching: yes (allow this turn), yes_always (allow + persist as setting), or no (decline). */ - @JsonProperty("response") UIAutoModeSwitchResponse response -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.java deleted file mode 100644 index 335f5d894..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingAutoModeSwitchResult.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; - -/** - * Indicates whether the pending UI request was resolved by this call. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingAutoModeSwitchResult( - /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.java deleted file mode 100644 index 73d97220f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationParams.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; - -/** - * Pending elicitation request ID and the user's response (accept/decline/cancel + form values). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingElicitationParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The unique request ID from the elicitation.requested event */ - @JsonProperty("requestId") String requestId, - /** The elicitation response (accept with form values, decline, or cancel) */ - @JsonProperty("result") UIElicitationResponse result -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.java deleted file mode 100644 index bb2c91b6e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingElicitationResult.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; - -/** - * Indicates whether the elicitation response was accepted; false if it was already resolved by another client. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingElicitationResult( - /** Whether the response was accepted. False if the request was already resolved by another client. */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.java deleted file mode 100644 index 87c492bdb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeParams.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 ID of a pending `exit_plan_mode.requested` event and the user's response. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingExitPlanModeParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The unique request ID from the exit_plan_mode.requested event */ - @JsonProperty("requestId") String requestId, - /** Schema for the `UIExitPlanModeResponse` type. */ - @JsonProperty("response") UIExitPlanModeResponse response -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.java deleted file mode 100644 index 69fc6586d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingExitPlanModeResult.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; - -/** - * Indicates whether the pending UI request was resolved by this call. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingExitPlanModeResult( - /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.java deleted file mode 100644 index 8ce2ad2e1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingParams.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 ID of a pending `sampling.requested` event and an optional sampling result payload (omit to reject). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingSamplingParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The unique request ID from the sampling.requested event */ - @JsonProperty("requestId") String requestId, - /** Optional sampling result payload. Omit to reject/cancel the sampling request without providing a result. */ - @JsonProperty("response") UIHandlePendingSamplingResponse response -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.java deleted file mode 100644 index ced26ad66..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingSamplingResult.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; - -/** - * Indicates whether the pending UI request was resolved by this call. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingSamplingResult( - /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.java deleted file mode 100644 index 89034cbd2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputParams.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 ID of a pending `user_input.requested` event and the user's response. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingUserInputParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** The unique request ID from the user_input.requested event */ - @JsonProperty("requestId") String requestId, - /** Schema for the `UIUserInputResponse` type. */ - @JsonProperty("response") UIUserInputResponse response -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.java deleted file mode 100644 index ae6369ee0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiHandlePendingUserInputResult.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; - -/** - * Indicates whether the pending UI request was resolved by this call. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiHandlePendingUserInputResult( - /** True if the request was still pending and was resolved by this call. False if the request ID was unknown, already resolved by another client (e.g. GitHub), expired, or otherwise no longer pending. */ - @JsonProperty("success") Boolean success -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.java deleted file mode 100644 index f778d3164..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiRegisterDirectAutoModeSwitchHandlerParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.java deleted file mode 100644 index 991954a26..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiRegisterDirectAutoModeSwitchHandlerResult.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; - -/** - * Register an in-process handler for `auto_mode_switch.requested` events. The caller still attaches the actual listener via the standard event-subscription mechanism; this registration solely tells the server bridge to skip its own dispatch (so a remote client doesn't race the in-process handler for the same requestId). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiRegisterDirectAutoModeSwitchHandlerResult( - /** Opaque handle representing the registration. Pass this same handle to `unregisterDirectAutoModeSwitchHandler` when the in-process handler is no longer active. Multiple registrations are reference-counted; the server bridge will only dispatch auto-mode-switch requests when no handles are active. */ - @JsonProperty("handle") String handle -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.java deleted file mode 100644 index beab56aa2..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerParams.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; - -/** - * Opaque handle previously returned by `registerDirectAutoModeSwitchHandler` to release. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiUnregisterDirectAutoModeSwitchHandlerParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Handle previously returned by `registerDirectAutoModeSwitchHandler` */ - @JsonProperty("handle") String handle -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.java deleted file mode 100644 index 0836c5c16..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUiUnregisterDirectAutoModeSwitchHandlerResult.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; - -/** - * Indicates whether the handle was active and the registration count was decremented. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUiUnregisterDirectAutoModeSwitchHandlerResult( - /** True if the handle was active and decremented the counter; false if the handle was unknown. */ - @JsonProperty("unregistered") Boolean unregistered -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.java deleted file mode 100644 index b9a5a14a8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageApi.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 java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code usage} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionUsageApi { - - private final RpcCaller caller; - private final String sessionId; - - /** @param caller the RPC transport function */ - SessionUsageApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getMetrics() { - return caller.invoke("session.usage.getMetrics", java.util.Map.of("sessionId", this.sessionId), SessionUsageGetMetricsResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.java deleted file mode 100644 index 035bf6498..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUsageGetMetricsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.java deleted file mode 100644 index e51b9453f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionUsageGetMetricsResult.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 java.time.OffsetDateTime; -import java.util.Map; -import javax.annotation.processing.Generated; - -/** - * Accumulated session usage metrics, including premium request cost, token counts, model breakdown, and code-change totals. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionUsageGetMetricsResult( - /** Total user-initiated premium request cost across all models (may be fractional due to multipliers) */ - @JsonProperty("totalPremiumRequestCost") Double totalPremiumRequestCost, - /** Raw count of user-initiated API requests */ - @JsonProperty("totalUserRequests") Long totalUserRequests, - /** Session-wide accumulated nano-AI units cost */ - @JsonProperty("totalNanoAiu") Double totalNanoAiu, - /** Session-wide per-token-type accumulated token counts */ - @JsonProperty("tokenDetails") Map tokenDetails, - /** Total time spent in model API calls (milliseconds) */ - @JsonProperty("totalApiDurationMs") Long totalApiDurationMs, - /** ISO 8601 timestamp when the session started */ - @JsonProperty("sessionStartTime") OffsetDateTime sessionStartTime, - /** Aggregated code change metrics */ - @JsonProperty("codeChanges") UsageMetricsCodeChanges codeChanges, - /** Per-model token and request metrics, keyed by model identifier */ - @JsonProperty("modelMetrics") Map modelMetrics, - /** Currently active model identifier */ - @JsonProperty("currentModel") String currentModel, - /** Input tokens from the most recent main-agent API call */ - @JsonProperty("lastCallInputTokens") Long lastCallInputTokens, - /** Output tokens from the most recent main-agent API call */ - @JsonProperty("lastCallOutputTokens") Long lastCallOutputTokens -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.java deleted file mode 100644 index b16ef01e8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContext.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; - -/** - * Updated working directory and git context. Emitted as the new payload of `session.context_changed`. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkingDirectoryContext( - /** Current working directory path */ - @JsonProperty("cwd") String cwd, - /** Root directory of the git repository, resolved via git rev-parse */ - @JsonProperty("gitRoot") String gitRoot, - /** Repository identifier derived from the git remote URL ("owner/name" for GitHub, "org/project/repo" for Azure DevOps) */ - @JsonProperty("repository") String repository, - /** Hosting platform type of the repository */ - @JsonProperty("hostType") SessionWorkingDirectoryContextHostType hostType, - /** Raw host string from the git remote URL (e.g. "github.com", "dev.azure.com") */ - @JsonProperty("repositoryHost") String repositoryHost, - /** Current git branch name */ - @JsonProperty("branch") String branch, - /** Head commit of the current git branch */ - @JsonProperty("headCommit") String headCommit, - /** Merge-base commit SHA (fork point from the remote default branch) */ - @JsonProperty("baseCommit") String baseCommit -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.java deleted file mode 100644 index 1ed7e60d0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkingDirectoryContextHostType.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; - -/** - * Hosting platform type of the repository - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SessionWorkingDirectoryContextHostType { - /** The {@code github} variant. */ - GITHUB("github"), - /** The {@code ado} variant. */ - ADO("ado"); - - private final String value; - SessionWorkingDirectoryContextHostType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionWorkingDirectoryContextHostType fromValue(String value) { - for (SessionWorkingDirectoryContextHostType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionWorkingDirectoryContextHostType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java deleted file mode 100644 index df0e690a8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesApi.java +++ /dev/null @@ -1,122 +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 workspaces} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionWorkspacesApi { - - 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 */ - SessionWorkspacesApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture getWorkspace() { - return caller.invoke("session.workspaces.getWorkspace", java.util.Map.of("sessionId", this.sessionId), SessionWorkspacesGetWorkspaceResult.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture listFiles() { - return caller.invoke("session.workspaces.listFiles", java.util.Map.of("sessionId", this.sessionId), SessionWorkspacesListFilesResult.class); - } - - /** - * Relative path of the workspace file to read. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture readFile(SessionWorkspacesReadFileParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.workspaces.readFile", _p, SessionWorkspacesReadFileResult.class); - } - - /** - * Relative path and UTF-8 content for the workspace file to create or overwrite. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture createFile(SessionWorkspacesCreateFileParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.workspaces.createFile", _p, Void.class); - } - - /** - * Identifies the target session. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture listCheckpoints() { - return caller.invoke("session.workspaces.listCheckpoints", java.util.Map.of("sessionId", this.sessionId), SessionWorkspacesListCheckpointsResult.class); - } - - /** - * Checkpoint number to read. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture readCheckpoint(SessionWorkspacesReadCheckpointParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.workspaces.readCheckpoint", _p, SessionWorkspacesReadCheckpointResult.class); - } - - /** - * Pasted content to save as a UTF-8 file in the session workspace. - *

    - * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * - * @apiNote This method is experimental and may change in a future version. - * @since 1.0.0 - */ - public CompletableFuture saveLargePaste(SessionWorkspacesSaveLargePasteParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.workspaces.saveLargePaste", _p, SessionWorkspacesSaveLargePasteResult.class); - } - -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.java deleted file mode 100644 index 3d757f852..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesCreateFileParams.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; - -/** - * Relative path and UTF-8 content for the workspace file to create or overwrite. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesCreateFileParams( - /** 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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.java deleted file mode 100644 index 6a7482af7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesGetWorkspaceParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java deleted file mode 100644 index 6beb5d453..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesGetWorkspaceResult.java +++ /dev/null @@ -1,53 +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; - -/** - * Current workspace metadata for the session, including its absolute filesystem path when available. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesGetWorkspaceResult( - /** Current workspace metadata, or null if not available */ - @JsonProperty("workspace") SessionWorkspacesGetWorkspaceResultWorkspace workspace, - /** Absolute filesystem path to the workspace directory. Omitted when the session has no workspace (e.g. remote sessions). */ - @JsonProperty("path") String path -) { - - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionWorkspacesGetWorkspaceResultWorkspace( - @JsonProperty("id") String id, - @JsonProperty("cwd") String cwd, - @JsonProperty("git_root") String gitRoot, - @JsonProperty("repository") String repository, - /** Allowed values for the `WorkspacesWorkspaceDetailsHostType` enumeration. */ - @JsonProperty("host_type") WorkspacesWorkspaceDetailsHostType hostType, - @JsonProperty("branch") String branch, - @JsonProperty("name") String name, - @JsonProperty("user_named") Boolean userNamed, - @JsonProperty("summary_count") Long summaryCount, - @JsonProperty("created_at") OffsetDateTime createdAt, - @JsonProperty("updated_at") OffsetDateTime updatedAt, - @JsonProperty("remote_steerable") Boolean remoteSteerable, - @JsonProperty("mc_task_id") String mcTaskId, - @JsonProperty("mc_session_id") String mcSessionId, - @JsonProperty("mc_last_event_id") String mcLastEventId, - @JsonProperty("chronicle_sync_dismissed") Boolean chronicleSyncDismissed - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.java deleted file mode 100644 index 3d55cf43a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesListCheckpointsParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.java deleted file mode 100644 index b6f562c66..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListCheckpointsResult.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; - -/** - * Workspace checkpoints in chronological order; empty when the workspace is not enabled. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesListCheckpointsResult( - /** Workspace checkpoints in chronological order. Empty when workspace is not enabled. */ - @JsonProperty("checkpoints") List checkpoints -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.java deleted file mode 100644 index 7fd4771a1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesParams.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; - -/** - * Identifies the target session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesListFilesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.java deleted file mode 100644 index 90a7cf2ce..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesListFilesResult.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; - -/** - * Relative paths of files stored in the session workspace files directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesListFilesResult( - /** Relative file paths in the workspace files directory */ - @JsonProperty("files") List files -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.java deleted file mode 100644 index 8266acab4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointParams.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; - -/** - * Checkpoint number to read. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesReadCheckpointParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Checkpoint number to read */ - @JsonProperty("number") Long number -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.java deleted file mode 100644 index 1b4322994..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadCheckpointResult.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; - -/** - * Checkpoint content as a UTF-8 string, or null when the checkpoint or workspace is missing. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesReadCheckpointResult( - /** Checkpoint content as a UTF-8 string, or null when the checkpoint or workspace is missing */ - @JsonProperty("content") String content -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.java deleted file mode 100644 index 85f44b608..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileParams.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; - -/** - * Relative path of the workspace file to read. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesReadFileParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Relative path within the workspace files directory */ - @JsonProperty("path") String path -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.java deleted file mode 100644 index b85ce3f6e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesReadFileResult.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; - -/** - * Contents of the requested workspace file as a UTF-8 string. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesReadFileResult( - /** File content as a UTF-8 string */ - @JsonProperty("content") String content -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.java deleted file mode 100644 index 23def325c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteParams.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; - -/** - * Pasted content to save as a UTF-8 file in the session workspace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesSaveLargePasteParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Pasted content to save as a UTF-8 file */ - @JsonProperty("content") String content -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.java deleted file mode 100644 index 523b12488..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionWorkspacesSaveLargePasteResult.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 com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Descriptor for the saved paste file, or null when the workspace is unavailable. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspacesSaveLargePasteResult( - /** Saved-paste descriptor, or null when the workspace is unavailable (e.g. CCA runtime, non-infinite sessions, remote sessions) */ - @JsonProperty("saved") SessionWorkspacesSaveLargePasteResultSaved saved -) { - - @JsonIgnoreProperties(ignoreUnknown = true) - @JsonInclude(JsonInclude.Include.NON_NULL) - public record SessionWorkspacesSaveLargePasteResultSaved( - /** Absolute filesystem path to the saved paste file */ - @JsonProperty("filePath") String filePath, - /** Filename within the workspace files directory */ - @JsonProperty("filename") String filename, - /** Size of the saved file in bytes */ - @JsonProperty("sizeBytes") Long sizeBytes - ) { - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.java deleted file mode 100644 index e1aa50697..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteParams.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; - -/** - * Session IDs to close, deactivate, and delete from disk. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsBulkDeleteParams( - /** Session IDs to close, deactivate, and delete from disk */ - @JsonProperty("sessionIds") List sessionIds -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.java deleted file mode 100644 index 2447d409d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsBulkDeleteResult.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.Map; -import javax.annotation.processing.Generated; - -/** - * Map of sessionId -> bytes freed by removing the session's workspace directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsBulkDeleteResult( - /** Map of sessionId -> bytes freed by removing the session's workspace directory. Sessions whose deletion failed are omitted from this map (failures are logged on the server but not surfaced per-id; check the map for absent IDs to detect them). */ - @JsonProperty("freedBytes") Map freedBytes -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.java deleted file mode 100644 index 4be30632d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseParams.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; - -/** - * Session IDs to test for live in-use locks. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsCheckInUseParams( - /** Session IDs to test for live in-use locks */ - @JsonProperty("sessionIds") List sessionIds -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.java deleted file mode 100644 index 1ab7edab7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCheckInUseResult.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; - -/** - * Session IDs from the input set that are currently in use by another process. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsCheckInUseResult( - /** Session IDs from the input set that are currently held by another running process via an alive lock file */ - @JsonProperty("inUse") List inUse -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.java deleted file mode 100644 index 667e18a4c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseParams.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; - -/** - * Session ID to close. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsCloseParams( - /** Session ID to close */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsCloseResult.java deleted file mode 100644 index a63c44633..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.java deleted file mode 100644 index 5d0dfffeb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectParams.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; - -/** - * Remote session connection parameters. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsConnectParams( - /** Session ID to connect to. */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.java deleted file mode 100644 index 42c5d7e2e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsConnectResult.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; - -/** - * Remote session connection result. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsConnectResult( - /** SDK session ID for the connected remote session. */ - @JsonProperty("sessionId") String sessionId, - /** Metadata for a connected remote session. */ - @JsonProperty("metadata") ConnectedRemoteSessionMetadata metadata -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.java deleted file mode 100644 index 973c952e9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataParams.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; - -/** - * Session metadata records to enrich with summary and context information. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsEnrichMetadataParams( - /** Session metadata records to enrich. Records that already have summary and context are returned unchanged. */ - @JsonProperty("sessions") List sessions -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.java deleted file mode 100644 index 864eed23d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsEnrichMetadataResult.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; - -/** - * The same metadata records, with summary and context fields backfilled where available. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsEnrichMetadataResult( - /** Same records, with summary and context backfilled */ - @JsonProperty("sessions") List sessions -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.java deleted file mode 100644 index 285876be0..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixParams.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; - -/** - * UUID prefix to resolve to a unique session ID. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsFindByPrefixParams( - /** UUID prefix (>=7 hex chars, <36 chars). Returns the unique session ID, or undefined when there is no match or the prefix matches multiple sessions. */ - @JsonProperty("prefix") String prefix -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.java deleted file mode 100644 index 27ceb2950..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByPrefixResult.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; - -/** - * Session ID matching the prefix, omitted when no unique match exists. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsFindByPrefixResult( - /** Omitted when no unique session matches the prefix (no match or ambiguous) */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.java deleted file mode 100644 index cd643796c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdParams.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; - -/** - * GitHub task ID to look up. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsFindByTaskIdParams( - /** GitHub task ID to look up */ - @JsonProperty("taskId") String taskId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.java deleted file mode 100644 index d27634058..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsFindByTaskIdResult.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; - -/** - * ID of the local session bound to the given GitHub task, or omitted when none. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsFindByTaskIdResult( - /** Omitted when no local session is bound to that GitHub task */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.java deleted file mode 100644 index 33bfb3a81..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkParams.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; - -/** - * Source session identifier to fork from, optional event-ID boundary, and optional friendly name for the new session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsForkParams( - /** Source session ID to fork from */ - @JsonProperty("sessionId") String sessionId, - /** Optional event ID boundary. When provided, the fork includes only events before this ID (exclusive). When omitted, all events are included. */ - @JsonProperty("toEventId") String toEventId, - /** Optional friendly name to assign to the forked session. */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.java deleted file mode 100644 index 5e67f101e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsForkResult.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; - -/** - * Identifier and optional friendly name assigned to the newly forked session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsForkResult( - /** The new forked session's ID */ - @JsonProperty("sessionId") String sessionId, - /** Friendly name assigned to the forked session, if any. */ - @JsonProperty("name") String name -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.java deleted file mode 100644 index a0d19b5a4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathParams.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; - -/** - * Session ID whose event-log file path to compute. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetEventFilePathParams( - /** Session ID whose event-log file path to compute */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.java deleted file mode 100644 index 9d77f105f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetEventFilePathResult.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; - -/** - * Absolute path to the session's events.jsonl file on disk. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetEventFilePathResult( - /** Absolute path to the session's events.jsonl file */ - @JsonProperty("filePath") String filePath -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.java deleted file mode 100644 index 43a23a89b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextParams.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; - -/** - * Optional working-directory context used to score session relevance. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetLastForContextParams( - /** Optional working-directory context used to score session relevance. When omitted the most-recently-modified session wins. */ - @JsonProperty("context") SessionContext context -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.java deleted file mode 100644 index 018b96f71..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetLastForContextResult.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; - -/** - * Most-relevant session ID for the supplied context, or omitted when no sessions exist. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetLastForContextResult( - /** Most-relevant session ID for the supplied context, or omitted when no sessions exist */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.java deleted file mode 100644 index 21f26bfcd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableParams.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; - -/** - * Session ID to look up the persisted remote-steerable flag for. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetPersistedRemoteSteerableParams( - /** Session ID to look up the persisted remote-steerable flag for */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.java deleted file mode 100644 index 9dedef981..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetPersistedRemoteSteerableResult.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; - -/** - * The session's persisted remote-steerable flag, or omitted when no value has been persisted. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetPersistedRemoteSteerableResult( - /** The session's persisted remote-steerable flag if recorded; omitted when no value has been persisted */ - @JsonProperty("remoteSteerable") Boolean remoteSteerable -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.java deleted file mode 100644 index 958f6e242..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsGetSizesResult.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.Map; -import javax.annotation.processing.Generated; - -/** - * Map of sessionId -> on-disk size in bytes for each session's workspace directory. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsGetSizesResult( - /** Map of sessionId -> on-disk size in bytes for the session's workspace directory */ - @JsonProperty("sizes") Map sizes -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.java deleted file mode 100644 index 7608fe3f3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsListResult.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; - -/** - * Persisted sessions matching the filter, ordered most-recently-modified first. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsListResult( - /** Sessions ordered most-recently-modified first */ - @JsonProperty("sessions") List sessions -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.java deleted file mode 100644 index 347b7c7e7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksParams.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; - -/** - * Active session ID whose deferred repo-level hooks should be loaded. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsLoadDeferredRepoHooksParams( - /** Active session ID whose deferred repo-level hooks should be loaded */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.java deleted file mode 100644 index 194ce088d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsLoadDeferredRepoHooksResult.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Queued repo-level startup prompts and the total hook command count after loading. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsLoadDeferredRepoHooksResult( - /** Repo-level startup prompts queued from repo hook configs. Empty on resume, when no repo configs were pending, or when disableAllHooks is set. */ - @JsonProperty("startupPrompts") List startupPrompts, - /** Total hook command count (user + plugin + repo) loaded for the session by this call. Captured atomically with startupPrompts so callers don't need to read a separate counter. */ - @JsonProperty("hookCount") Long hookCount -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java deleted file mode 100644 index d85438730..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldParams.java +++ /dev/null @@ -1,34 +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; - -/** - * Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsPruneOldParams( - /** Delete sessions whose modifiedTime is at least this many days old */ - @JsonProperty("olderThanDays") Long olderThanDays, - /** When true, only report what would be deleted without performing any deletion */ - @JsonProperty("dryRun") Boolean dryRun, - /** When true, named sessions (set via /rename) are also eligible for pruning */ - @JsonProperty("includeNamed") Boolean includeNamed, - /** Session IDs that should never be considered for pruning */ - @JsonProperty("excludeSessionIds") List excludeSessionIds -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java deleted file mode 100644 index c04389b0c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsPruneOldResult.java +++ /dev/null @@ -1,36 +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; - -/** - * Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsPruneOldResult( - /** Session IDs that were deleted (always empty in dry-run mode) */ - @JsonProperty("deleted") List deleted, - /** Session IDs that would be deleted in dry-run mode (always empty otherwise) */ - @JsonProperty("candidates") List candidates, - /** Session IDs that were skipped (e.g., named sessions) */ - @JsonProperty("skipped") List skipped, - /** Total bytes freed (actual when not dry-run, projected when dry-run) */ - @JsonProperty("freedBytes") Long freedBytes, - /** True when no deletions were actually performed */ - @JsonProperty("dryRun") Boolean dryRun -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.java deleted file mode 100644 index 76add5bcb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockParams.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; - -/** - * Session ID whose in-use lock should be released. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsReleaseLockParams( - /** Session ID whose in-use lock should be released */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReleaseLockResult.java deleted file mode 100644 index dde0c445e..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.java deleted file mode 100644 index 82978334f..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksParams.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; - -/** - * Active session ID and an optional flag for deferring repo-level hooks until folder trust. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsReloadPluginHooksParams( - /** Active session ID to reload hooks for */ - @JsonProperty("sessionId") String sessionId, - /** When true, skip repo-level hooks. Use before folder trust is confirmed; loadDeferredRepoHooks loads them post-trust. */ - @JsonProperty("deferRepoHooks") Boolean deferRepoHooks -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsReloadPluginHooksResult.java deleted file mode 100644 index 835641e4d..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.java deleted file mode 100644 index 27f49addd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveParams.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; - -/** - * Session ID whose pending events should be flushed to disk. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsSaveParams( - /** Session ID whose pending events should be flushed to disk */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSaveResult.java deleted file mode 100644 index 758d11885..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.java deleted file mode 100644 index d03706e3a..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsParams.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; - -/** - * Manager-wide additional plugins to register; replaces any previously-configured set. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsSetAdditionalPluginsParams( - /** Manager-wide additional plugins to register. Replaces any previously-configured set. Pass an empty array to clear. */ - @JsonProperty("plugins") List plugins -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionsSetAdditionalPluginsResult.java deleted file mode 100644 index 848ff9e08..000000000 --- a/src/generated/java/com/github/copilot/sdk/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/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.java deleted file mode 100644 index 646fa2be8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShellKillSignal.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; - -/** - * Signal to send (default: SIGTERM) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ShellKillSignal { - /** The {@code SIGTERM} variant. */ - SIGTERM("SIGTERM"), - /** The {@code SIGKILL} variant. */ - SIGKILL("SIGKILL"), - /** The {@code SIGINT} variant. */ - SIGINT("SIGINT"); - - private final String value; - ShellKillSignal(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ShellKillSignal fromValue(String value) { - for (ShellKillSignal v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ShellKillSignal value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.java deleted file mode 100644 index 1b4e79dd4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ShutdownType.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; - -/** - * Why the session is being shut down. Defaults to "routine" when omitted. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ShutdownType { - /** The {@code routine} variant. */ - ROUTINE("routine"), - /** The {@code error} variant. */ - ERROR("error"); - - private final String value; - ShutdownType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ShutdownType fromValue(String value) { - for (ShutdownType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ShutdownType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.java deleted file mode 100644 index d64f01515..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Skill.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 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 `Skill` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record Skill( - /** Unique identifier for the skill */ - @JsonProperty("name") String name, - /** Description of what the skill does */ - @JsonProperty("description") String description, - /** Source location type (e.g., project, personal-copilot, plugin, builtin) */ - @JsonProperty("source") SkillSource source, - /** Whether the skill can be invoked by the user as a slash command */ - @JsonProperty("userInvocable") Boolean userInvocable, - /** Whether the skill is currently enabled */ - @JsonProperty("enabled") Boolean enabled, - /** Absolute path to the skill file */ - @JsonProperty("path") String path, - /** Name of the plugin that provides the skill, when source is 'plugin' */ - @JsonProperty("pluginName") String pluginName -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.java deleted file mode 100644 index 8d723548b..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillSource.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 javax.annotation.processing.Generated; - -/** - * Source location type (e.g., project, personal-copilot, plugin, builtin) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SkillSource { - /** The {@code project} variant. */ - PROJECT("project"), - /** The {@code inherited} variant. */ - INHERITED("inherited"), - /** The {@code personal-copilot} variant. */ - PERSONAL_COPILOT("personal-copilot"), - /** The {@code personal-agents} variant. */ - PERSONAL_AGENTS("personal-agents"), - /** The {@code plugin} variant. */ - PLUGIN("plugin"), - /** The {@code custom} variant. */ - CUSTOM("custom"), - /** The {@code builtin} variant. */ - BUILTIN("builtin"); - - private final String value; - SkillSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SkillSource fromValue(String value) { - for (SkillSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SkillSource value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.java deleted file mode 100644 index 200e88cd7..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsConfigSetDisabledSkillsParams.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; - -/** - * Skill names to mark as disabled in global configuration, replacing any previous list. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SkillsConfigSetDisabledSkillsParams( - /** List of skill names to disable */ - @JsonProperty("disabledSkills") List disabledSkills -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.java deleted file mode 100644 index 117680699..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverParams.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 java.util.List; -import javax.annotation.processing.Generated; - -/** - * Optional project paths and additional skill directories to include in discovery. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SkillsDiscoverParams( - /** Optional list of project directory paths to scan for project-scoped skills */ - @JsonProperty("projectPaths") List projectPaths, - /** Optional list of additional skill directory paths to include */ - @JsonProperty("skillDirectories") List skillDirectories -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.java deleted file mode 100644 index f56c814bc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsDiscoverResult.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; - -/** - * Skills discovered across global and project sources. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SkillsDiscoverResult( - /** All discovered skills across all sources */ - @JsonProperty("skills") List skills -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java deleted file mode 100644 index 697e18fa4..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SkillsInvokedSkill.java +++ /dev/null @@ -1,36 +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 `SkillsInvokedSkill` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SkillsInvokedSkill( - /** Unique identifier for the skill */ - @JsonProperty("name") String name, - /** Path to the SKILL.md file */ - @JsonProperty("path") String path, - /** Full content of the skill file */ - @JsonProperty("content") String content, - /** Tools that should be auto-approved when this skill is active, captured at invocation time */ - @JsonProperty("allowedTools") List allowedTools, - /** Turn number when the skill was invoked */ - @JsonProperty("invokedAtTurn") Long invokedAtTurn -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.java deleted file mode 100644 index 722274524..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInfo.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SlashCommandInfo` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SlashCommandInfo( - /** Canonical command name without a leading slash */ - @JsonProperty("name") String name, - /** Canonical aliases without leading slashes */ - @JsonProperty("aliases") List aliases, - /** Human-readable command description */ - @JsonProperty("description") String description, - /** Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command */ - @JsonProperty("kind") SlashCommandKind kind, - /** Optional unstructured input hint */ - @JsonProperty("input") SlashCommandInput input, - /** Whether the command may run while an agent turn is active */ - @JsonProperty("allowDuringAgentExecution") Boolean allowDuringAgentExecution, - /** Whether the command is experimental */ - @JsonProperty("experimental") Boolean experimental -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.java deleted file mode 100644 index dcfc2a36e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInput.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; - -/** - * Optional unstructured input hint - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SlashCommandInput( - /** Hint to display when command input has not been provided */ - @JsonProperty("hint") String hint, - /** When true, the command requires non-empty input; clients should render the input hint as required */ - @JsonProperty("required") Boolean required, - /** Optional completion hint for the input (e.g. 'directory' for filesystem path completion) */ - @JsonProperty("completion") SlashCommandInputCompletion completion, - /** When true, clients should pass the full text after the command name as a single argument rather than splitting on whitespace */ - @JsonProperty("preserveMultilineInput") Boolean preserveMultilineInput -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.java deleted file mode 100644 index bfd2e7787..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandInputCompletion.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 javax.annotation.processing.Generated; - -/** - * Optional completion hint for the input (e.g. 'directory' for filesystem path completion) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SlashCommandInputCompletion { - /** The {@code directory} variant. */ - DIRECTORY("directory"); - - private final String value; - SlashCommandInputCompletion(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SlashCommandInputCompletion fromValue(String value) { - for (SlashCommandInputCompletion v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SlashCommandInputCompletion value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.java deleted file mode 100644 index 1f05c4773..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SlashCommandKind.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; - -/** - * Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SlashCommandKind { - /** The {@code builtin} variant. */ - BUILTIN("builtin"), - /** The {@code skill} variant. */ - SKILL("skill"), - /** The {@code client} variant. */ - CLIENT("client"); - - private final String value; - SlashCommandKind(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SlashCommandKind fromValue(String value) { - for (SlashCommandKind v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SlashCommandKind value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java deleted file mode 100644 index e4b1361c8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/Tool.java +++ /dev/null @@ -1,36 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Schema for the `Tool` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record Tool( - /** Tool identifier (e.g., "bash", "grep", "str_replace_editor") */ - @JsonProperty("name") String name, - /** Optional namespaced name for declarative filtering (e.g., "playwright/navigate" for MCP tools) */ - @JsonProperty("namespacedName") String namespacedName, - /** Description of what the tool does */ - @JsonProperty("description") String description, - /** JSON Schema for the tool's input parameters */ - @JsonProperty("parameters") Map parameters, - /** Optional instructions for how to use this tool effectively */ - @JsonProperty("instructions") String instructions -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.java deleted file mode 100644 index 6523f4bdc..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListParams.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; - -/** - * Optional model identifier whose tool overrides should be applied to the listing. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ToolsListParams( - /** Optional model ID — when provided, the returned tool list reflects model-specific overrides */ - @JsonProperty("model") String model -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.java deleted file mode 100644 index 5127277fb..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/ToolsListResult.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; - -/** - * Built-in tools available for the requested model, with their parameters and instructions. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ToolsListResult( - /** List of available built-in tools with metadata */ - @JsonProperty("tools") List tools -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.java deleted file mode 100644 index f6a3534d8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIAutoModeSwitchResponse.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; - -/** - * User's choice for auto-mode switching: yes (allow this turn), yes_always (allow + persist as setting), or no (decline). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum UIAutoModeSwitchResponse { - /** The {@code yes} variant. */ - YES("yes"), - /** The {@code yes_always} variant. */ - YES_ALWAYS("yes_always"), - /** The {@code no} variant. */ - NO("no"); - - private final String value; - UIAutoModeSwitchResponse(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static UIAutoModeSwitchResponse fromValue(String value) { - for (UIAutoModeSwitchResponse v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown UIAutoModeSwitchResponse value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.java deleted file mode 100644 index e157ee727..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponse.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 java.util.Map; -import javax.annotation.processing.Generated; - -/** - * The elicitation response (accept with form values, decline, or cancel) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UIElicitationResponse( - /** The user's response: accept (submitted), decline (rejected), or cancel (dismissed) */ - @JsonProperty("action") UIElicitationResponseAction action, - /** The form values submitted by the user (present when action is 'accept') */ - @JsonProperty("content") Map content -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.java deleted file mode 100644 index 4ce8d95cd..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationResponseAction.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; - -/** - * The user's response: accept (submitted), decline (rejected), or cancel (dismissed) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum UIElicitationResponseAction { - /** The {@code accept} variant. */ - ACCEPT("accept"), - /** The {@code decline} variant. */ - DECLINE("decline"), - /** The {@code cancel} variant. */ - CANCEL("cancel"); - - private final String value; - UIElicitationResponseAction(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static UIElicitationResponseAction fromValue(String value) { - for (UIElicitationResponseAction v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown UIElicitationResponseAction value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.java deleted file mode 100644 index d4f0a2684..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIElicitationSchema.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 java.util.List; -import java.util.Map; -import javax.annotation.processing.Generated; - -/** - * JSON Schema describing the form fields to present to the user - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UIElicitationSchema( - /** Schema type indicator (always 'object') */ - @JsonProperty("type") String type, - /** Form field definitions, keyed by field name */ - @JsonProperty("properties") Map properties, - /** List of required field names */ - @JsonProperty("required") List required -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.java deleted file mode 100644 index 1670701e1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeAction.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; - -/** - * The action the user selected. Defaults to 'autopilot' when autoApproveEdits is true, otherwise 'interactive'. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum UIExitPlanModeAction { - /** The {@code exit_only} variant. */ - EXIT_ONLY("exit_only"), - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"), - /** The {@code autopilot_fleet} variant. */ - AUTOPILOT_FLEET("autopilot_fleet"); - - private final String value; - UIExitPlanModeAction(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static UIExitPlanModeAction fromValue(String value) { - for (UIExitPlanModeAction v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown UIExitPlanModeAction value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.java deleted file mode 100644 index 50e201142..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIExitPlanModeResponse.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; - -/** - * Schema for the `UIExitPlanModeResponse` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UIExitPlanModeResponse( - /** Whether the plan was approved. */ - @JsonProperty("approved") Boolean approved, - /** The action the user selected. Defaults to 'autopilot' when autoApproveEdits is true, otherwise 'interactive'. */ - @JsonProperty("selectedAction") UIExitPlanModeAction selectedAction, - /** Whether subsequent edits should be auto-approved without confirmation. */ - @JsonProperty("autoApproveEdits") Boolean autoApproveEdits, - /** Feedback from the user when they declined the plan or requested changes. */ - @JsonProperty("feedback") String feedback -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.java deleted file mode 100644 index 590061f4c..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIHandlePendingSamplingResponse.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; - -/** - * Optional sampling result payload. Omit to reject/cancel the sampling request without providing a result. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UIHandlePendingSamplingResponse() { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.java deleted file mode 100644 index d4ce9899d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UIUserInputResponse.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 `UIUserInputResponse` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UIUserInputResponse( - /** The user's answer text */ - @JsonProperty("answer") String answer, - /** True if the user typed a freeform response, false if they selected a presented choice. Used by telemetry to differentiate between free text input and choice selection. */ - @JsonProperty("wasFreeform") Boolean wasFreeform -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java deleted file mode 100644 index 4c445efe1..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsCodeChanges.java +++ /dev/null @@ -1,34 +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; - -/** - * Aggregated code change metrics - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UsageMetricsCodeChanges( - /** Total lines of code added */ - @JsonProperty("linesAdded") Long linesAdded, - /** Total lines of code removed */ - @JsonProperty("linesRemoved") Long linesRemoved, - /** Number of distinct files modified */ - @JsonProperty("filesModifiedCount") Long filesModifiedCount, - /** Distinct file paths modified during the session */ - @JsonProperty("filesModified") List filesModified -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java deleted file mode 100644 index 7e34f43b3..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetric.java +++ /dev/null @@ -1,34 +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.Map; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UsageMetricsModelMetric` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UsageMetricsModelMetric( - /** Request count and cost metrics for this model */ - @JsonProperty("requests") UsageMetricsModelMetricRequests requests, - /** Token usage metrics for this model */ - @JsonProperty("usage") UsageMetricsModelMetricUsage usage, - /** Accumulated nano-AI units cost for this model */ - @JsonProperty("totalNanoAiu") Double totalNanoAiu, - /** Token count details per type */ - @JsonProperty("tokenDetails") Map tokenDetails -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.java deleted file mode 100644 index ef9fbe47d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricRequests.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 count and cost metrics for this model - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UsageMetricsModelMetricRequests( - /** Number of API requests made with this model */ - @JsonProperty("count") Long count, - /** User-initiated premium request cost (with multiplier applied) */ - @JsonProperty("cost") Double cost -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.java deleted file mode 100644 index e47a45fde..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricTokenDetail.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; - -/** - * Schema for the `UsageMetricsModelMetricTokenDetail` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UsageMetricsModelMetricTokenDetail( - /** Accumulated token count for this token type */ - @JsonProperty("tokenCount") Long tokenCount -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.java deleted file mode 100644 index 112c2c06d..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsModelMetricUsage.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.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Token usage metrics for this model - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UsageMetricsModelMetricUsage( - /** Total input tokens consumed */ - @JsonProperty("inputTokens") Long inputTokens, - /** Total output tokens produced */ - @JsonProperty("outputTokens") Long outputTokens, - /** Total tokens read from prompt cache */ - @JsonProperty("cacheReadTokens") Long cacheReadTokens, - /** Total tokens written to prompt cache */ - @JsonProperty("cacheWriteTokens") Long cacheWriteTokens, - /** Total output tokens used for reasoning */ - @JsonProperty("reasoningTokens") Long reasoningTokens -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.java deleted file mode 100644 index 55d0b81c8..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/UsageMetricsTokenDetail.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; - -/** - * Schema for the `UsageMetricsTokenDetail` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UsageMetricsTokenDetail( - /** Accumulated token count for this token type */ - @JsonProperty("tokenCount") Long tokenCount -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.java deleted file mode 100644 index 71ce8e4b6..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspaceSummaryHostType.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; - -/** - * Repository host type, if known - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum WorkspaceSummaryHostType { - /** The {@code github} variant. */ - GITHUB("github"), - /** The {@code ado} variant. */ - ADO("ado"); - - private final String value; - WorkspaceSummaryHostType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static WorkspaceSummaryHostType fromValue(String value) { - for (WorkspaceSummaryHostType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown WorkspaceSummaryHostType value: " + value); - } -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.java deleted file mode 100644 index 07de034a9..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesCheckpoints.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 `WorkspacesCheckpoints` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record WorkspacesCheckpoints( - /** Checkpoint number assigned by the workspace manager */ - @JsonProperty("number") Long number, - /** Human-readable checkpoint title */ - @JsonProperty("title") String title, - /** Filename of the checkpoint within the workspace checkpoints directory */ - @JsonProperty("filename") String filename -) { -} diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.java deleted file mode 100644 index aca85030e..000000000 --- a/src/generated/java/com/github/copilot/sdk/generated/rpc/WorkspacesWorkspaceDetailsHostType.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; - -/** - * Allowed values for the `WorkspacesWorkspaceDetailsHostType` enumeration. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum WorkspacesWorkspaceDetailsHostType { - /** The {@code github} variant. */ - GITHUB("github"), - /** The {@code ado} variant. */ - ADO("ado"); - - private final String value; - WorkspacesWorkspaceDetailsHostType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static WorkspacesWorkspaceDetailsHostType fromValue(String value) { - for (WorkspacesWorkspaceDetailsHostType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown WorkspacesWorkspaceDetailsHostType value: " + value); - } -} diff --git a/src/site/markdown/advanced.md b/src/site/markdown/advanced.md index c78b40cf4..5a2cafda3 100644 --- a/src/site/markdown/advanced.md +++ b/src/site/markdown/advanced.md @@ -90,7 +90,7 @@ var session = client.createSession( ).get(); ``` -See [ToolDefinition](apidocs/com/github/copilot/sdk/json/ToolDefinition.html) Javadoc for schema details. +See [ToolDefinition](apidocs/com/github/copilot/rpc/ToolDefinition.html) Javadoc for schema details. ### Overriding Built-in Tools @@ -149,7 +149,7 @@ var safeLookup = ToolDefinition.createSkipPermission( The CLI bypasses the permission request for this tool invocation, so no `PermissionRequestedEvent` is emitted and the `onPermissionRequest` handler is not called. -See [ToolDefinition](apidocs/com/github/copilot/sdk/json/ToolDefinition.html) Javadoc for details. +See [ToolDefinition](apidocs/com/github/copilot/rpc/ToolDefinition.html) Javadoc for details. --- @@ -177,10 +177,10 @@ session.sendAndWait(new MessageOptions().setPrompt("Continue with the new model" The `reasoningEffort` parameter accepts `"low"`, `"medium"`, `"high"`, or `"xhigh"` for models that support reasoning. Pass `null` (or use the single-argument overload) to use the default. -The session emits a [`SessionModelChangeEvent`](apidocs/com/github/copilot/sdk/generated/SessionModelChangeEvent.html) +The session emits a [`SessionModelChangeEvent`](apidocs/com/github/copilot/generated/SessionModelChangeEvent.html) when the switch completes, which you can observe with `session.on(SessionModelChangeEvent.class, event -> ...)`. -See [CopilotSession.setModel()](apidocs/com/github/copilot/sdk/CopilotSession.html#setModel(java.lang.String)) Javadoc for details. +See [CopilotSession.setModel()](apidocs/com/github/copilot/CopilotSession.html#setModel(java.lang.String)) Javadoc for details. --- @@ -265,9 +265,9 @@ var session = client.createSession( ).get(); ``` -See [SystemMessageConfig](apidocs/com/github/copilot/sdk/json/SystemMessageConfig.html), -[SectionOverride](apidocs/com/github/copilot/sdk/json/SectionOverride.html), and -[SystemPromptSections](apidocs/com/github/copilot/sdk/json/SystemPromptSections.html) Javadoc for details. +See [SystemMessageConfig](apidocs/com/github/copilot/rpc/SystemMessageConfig.html), +[SectionOverride](apidocs/com/github/copilot/rpc/SectionOverride.html), and +[SystemPromptSections](apidocs/com/github/copilot/rpc/SystemPromptSections.html) Javadoc for details. --- @@ -323,7 +323,7 @@ session.send(new MessageOptions() ).get(); ``` -See [BlobAttachment](apidocs/com/github/copilot/sdk/json/BlobAttachment.html) Javadoc for details. +See [BlobAttachment](apidocs/com/github/copilot/rpc/BlobAttachment.html) Javadoc for details. Both `Attachment` and `BlobAttachment` implement the sealed `MessageAttachment` interface. For a mixed list with both types, use an explicit type hint: @@ -590,7 +590,7 @@ var session = client.createSession( ).get(); ``` -See [CustomAgentConfig](apidocs/com/github/copilot/sdk/json/CustomAgentConfig.html) Javadoc for full details. +See [CustomAgentConfig](apidocs/com/github/copilot/rpc/CustomAgentConfig.html) Javadoc for full details. ### Programmatic Agent Selection @@ -717,7 +717,7 @@ Use cases: - Sending status updates to the session log - Debugging session behavior with contextual messages -See [CopilotSession.log()](apidocs/com/github/copilot/sdk/CopilotSession.html#log(java.lang.String)) Javadoc for details. +See [CopilotSession.log()](apidocs/com/github/copilot/CopilotSession.html#log(java.lang.String)) Javadoc for details. --- @@ -783,7 +783,7 @@ The `UserInputResponse` should include: - `setAnswer(String)` - The user's answer - `setWasFreeform(boolean)` - `true` if the answer was freeform text, `false` if it was from the provided choices -See [UserInputHandler](apidocs/com/github/copilot/sdk/json/UserInputHandler.html) Javadoc for more details. +See [UserInputHandler](apidocs/com/github/copilot/rpc/UserInputHandler.html) Javadoc for more details. --- @@ -812,7 +812,7 @@ The `PermissionRequestResultKind` class provides well-known constants for common | `PermissionRequestResultKind.NO_RESULT` | `"no-result"` | No permission decision was made (protocol v3 only) | You can also pass a raw string to `setKind(String)` for custom or extension values. Use -[`PermissionHandler.APPROVE_ALL`](apidocs/com/github/copilot/sdk/json/PermissionHandler.html) to approve all +[`PermissionHandler.APPROVE_ALL`](apidocs/com/github/copilot/rpc/PermissionHandler.html) to approve all requests without writing a handler. --- @@ -1118,7 +1118,7 @@ session.setEventErrorPolicy(EventErrorPolicy.PROPAGATE_AND_LOG_ERRORS); session.setEventErrorPolicy(EventErrorPolicy.SUPPRESS_AND_LOG_ERRORS); ``` -See [EventErrorPolicy](apidocs/com/github/copilot/sdk/EventErrorPolicy.html) and [EventErrorHandler](apidocs/com/github/copilot/sdk/EventErrorHandler.html) Javadoc for details. +See [EventErrorPolicy](apidocs/com/github/copilot/EventErrorPolicy.html) and [EventErrorHandler](apidocs/com/github/copilot/EventErrorHandler.html) Javadoc for details. --- @@ -1155,7 +1155,7 @@ var options = new CopilotClientOptions() | `sourceName` | `COPILOT_OTEL_SOURCE_NAME` | Source name for telemetry spans | | `captureContent` | `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` | Whether to capture message content | -See [TelemetryConfig](apidocs/com/github/copilot/sdk/json/TelemetryConfig.html) Javadoc for details. +See [TelemetryConfig](apidocs/com/github/copilot/rpc/TelemetryConfig.html) Javadoc for details. --- @@ -1405,7 +1405,7 @@ var session = client.createSession( ).get(); ``` -See [CloudSessionOptions](apidocs/com/github/copilot/sdk/json/CloudSessionOptions.html) and [CloudSessionRepository](apidocs/com/github/copilot/sdk/json/CloudSessionRepository.html) Javadoc for details. +See [CloudSessionOptions](apidocs/com/github/copilot/rpc/CloudSessionOptions.html) and [CloudSessionRepository](apidocs/com/github/copilot/rpc/CloudSessionRepository.html) Javadoc for details. --- diff --git a/src/site/markdown/documentation.md b/src/site/markdown/documentation.md index 415c111b8..5812e83fd 100644 --- a/src/site/markdown/documentation.md +++ b/src/site/markdown/documentation.md @@ -266,7 +266,7 @@ The SDK supports event types organized by category. All events extend `SessionEv | `ExitPlanModeRequestedEvent` | `exit_plan_mode.requested` | Exit from plan mode was requested | | `ExitPlanModeCompletedEvent` | `exit_plan_mode.completed` | Exit from plan mode completed | -See the [generated package Javadoc](apidocs/com/github/copilot/sdk/generated/package-summary.html) for detailed event data structures. +See the [generated package Javadoc](apidocs/com/github/copilot/generated/package-summary.html) for detailed event data structures. --- @@ -563,7 +563,7 @@ var pong = client.ping("hello").get(); System.out.println("Server responded, protocol version: " + pong.protocolVersion()); ``` -See [ConnectionState](apidocs/com/github/copilot/sdk/ConnectionState.html), [GetStatusResponse](apidocs/com/github/copilot/sdk/json/GetStatusResponse.html), and [GetAuthStatusResponse](apidocs/com/github/copilot/sdk/json/GetAuthStatusResponse.html) Javadoc for details. +See [ConnectionState](apidocs/com/github/copilot/ConnectionState.html), [GetStatusResponse](apidocs/com/github/copilot/rpc/GetStatusResponse.html), and [GetAuthStatusResponse](apidocs/com/github/copilot/rpc/GetAuthStatusResponse.html) Javadoc for details. --- @@ -662,7 +662,7 @@ var config = new ResumeSessionConfig().setOnPermissionRequest(PermissionHandler. var session = client.resumeSession("user-123-task-456", config).get(); ``` -See [ResumeSessionConfig](apidocs/com/github/copilot/sdk/json/ResumeSessionConfig.html) Javadoc for complete options. +See [ResumeSessionConfig](apidocs/com/github/copilot/rpc/ResumeSessionConfig.html) Javadoc for complete options. ### Clean Up Sessions @@ -725,7 +725,7 @@ var derived = base.clone() `clone()` creates a shallow copy. Collection fields are copied into new collection instances, while nested objects/handlers are shared references. -See [SessionConfig](apidocs/com/github/copilot/sdk/json/SessionConfig.html) Javadoc for full details. +See [SessionConfig](apidocs/com/github/copilot/rpc/SessionConfig.html) Javadoc for full details. --- diff --git a/src/site/markdown/hooks.md b/src/site/markdown/hooks.md index 8db63b978..3bed031df 100644 --- a/src/site/markdown/hooks.md +++ b/src/site/markdown/hooks.md @@ -459,11 +459,11 @@ To handle errors gracefully in your hooks: ## See Also -- [SessionHooks Javadoc](apidocs/com/github/copilot/sdk/json/SessionHooks.html) -- [PreToolUseHookInput Javadoc](apidocs/com/github/copilot/sdk/json/PreToolUseHookInput.html) -- [PreToolUseHookOutput Javadoc](apidocs/com/github/copilot/sdk/json/PreToolUseHookOutput.html) -- [PostToolUseHookInput Javadoc](apidocs/com/github/copilot/sdk/json/PostToolUseHookInput.html) -- [PostToolUseHookOutput Javadoc](apidocs/com/github/copilot/sdk/json/PostToolUseHookOutput.html) +- [SessionHooks Javadoc](apidocs/com/github/copilot/rpc/SessionHooks.html) +- [PreToolUseHookInput Javadoc](apidocs/com/github/copilot/rpc/PreToolUseHookInput.html) +- [PreToolUseHookOutput Javadoc](apidocs/com/github/copilot/rpc/PreToolUseHookOutput.html) +- [PostToolUseHookInput Javadoc](apidocs/com/github/copilot/rpc/PostToolUseHookInput.html) +- [PostToolUseHookOutput Javadoc](apidocs/com/github/copilot/rpc/PostToolUseHookOutput.html) ---