delete(SessionsDeleteParams params) {
+ return caller.invoke("sessions.delete", params, Void.class);
+ }
+
/**
* Age threshold and optional flags controlling which old sessions are pruned (or simulated when dryRun is true).
*
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCancelAllBackgroundAgentsParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCancelAllBackgroundAgentsParams.java
new file mode 100644
index 0000000000..0851f331ee
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCancelAllBackgroundAgentsParams.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 com.github.copilot.CopilotExperimental;
+import javax.annotation.processing.Generated;
+
+/**
+ * Identifies the target session.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+@CopilotExperimental
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCancelAllBackgroundAgentsParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId
+) {
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionApi.java
new file mode 100644
index 0000000000..eb621e6b49
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionApi.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.github.copilot.CopilotExperimental;
+import java.util.concurrent.CompletableFuture;
+import javax.annotation.processing.Generated;
+
+/**
+ * API methods for the {@code contentExclusion} namespace.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+public final class SessionContentExclusionApi {
+
+ 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 */
+ SessionContentExclusionApi(RpcCaller caller, String sessionId) {
+ this.caller = caller;
+ this.sessionId = sessionId;
+ }
+
+ /**
+ * Local file system absolute paths within the session working directory to check against its content-exclusion policy.
+ *
+ * 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
+ */
+ @CopilotExperimental
+ public CompletableFuture checkPaths(SessionContentExclusionCheckPathsParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.contentExclusion.checkPaths", _p, SessionContentExclusionCheckPathsResult.class);
+ }
+
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionCheckPathsParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionCheckPathsParams.java
new file mode 100644
index 0000000000..0c61f6c910
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionCheckPathsParams.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 com.github.copilot.CopilotExperimental;
+import java.util.List;
+import javax.annotation.processing.Generated;
+
+/**
+ * Local file system absolute paths within the session working directory to check against its content-exclusion policy.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+@CopilotExperimental
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionContentExclusionCheckPathsParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Local file system absolute paths within the session working directory to check. Results are returned in the same order, including duplicates. */
+ @JsonProperty("paths") List paths
+) {
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionCheckPathsResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionCheckPathsResult.java
new file mode 100644
index 0000000000..956ffc44d3
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionContentExclusionCheckPathsResult.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 com.github.copilot.CopilotExperimental;
+import java.util.List;
+import javax.annotation.processing.Generated;
+
+/**
+ * Batch content-exclusion result. Callers must fail closed when policy evaluation is unavailable.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+@CopilotExperimental
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionContentExclusionCheckPathsResult(
+ /** Whether the session's policy service was available for the complete batch. When false, checks is empty and callers must treat every requested path as excluded. */
+ @JsonProperty("available") Boolean available,
+ /** Per-path decisions in request order. Empty when available is false. */
+ @JsonProperty("checks") List checks
+) {
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryAgentParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryAgentParams.java
index 7f31066fc4..6ab02c27eb 100644
--- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryAgentParams.java
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryAgentParams.java
@@ -28,6 +28,8 @@ public record SessionFactoryAgentParams(
@JsonProperty("sessionId") String sessionId,
/** Factory run identifier that owns the subagent. */
@JsonProperty("factoryRunId") String factoryRunId,
+ /** Opaque token identifying the current factory execution attempt. */
+ @JsonProperty("executionToken") String executionToken,
/** Prompt to send to the subagent. */
@JsonProperty("prompt") String prompt,
/** Subagent execution options. */
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryApi.java
index 703a2e711e..6d15ac17c3 100644
--- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryApi.java
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryApi.java
@@ -50,6 +50,22 @@ public CompletableFuture run(SessionFactoryRunParams pa
return caller.invoke("session.factory.run", _p, SessionFactoryRunResult.class);
}
+ /**
+ * Parameters for resuming a factory run from its persisted identity.
+ *
+ * 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
+ */
+ @CopilotExperimental
+ public CompletableFuture resume(SessionFactoryResumeParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.factory.resume", _p, SessionFactoryResumeResult.class);
+ }
+
/**
* Parameters for retrieving a factory run.
*
@@ -66,6 +82,49 @@ public CompletableFuture getRun(SessionFactoryGetRun
return caller.invoke("session.factory.getRun", _p, SessionFactoryGetRunResult.class);
}
+ /**
+ * Empty parameters for listing factory runs.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ @CopilotExperimental
+ public CompletableFuture listRuns() {
+ return caller.invoke("session.factory.listRuns", java.util.Map.of("sessionId", this.sessionId), SessionFactoryListRunsResult.class);
+ }
+
+ /**
+ * Parameters for retrieving a factory run.
+ *