reload() {
+ return caller.invoke("user.settings.reload", java.util.Map.of(), Void.class);
+ }
+
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionApi.java
new file mode 100644
index 000000000..2b892b5a6
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionApi.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 canvas.action} namespace.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+public final class SessionCanvasActionApi {
+
+ 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 */
+ SessionCanvasActionApi(RpcCaller caller, String sessionId) {
+ this.caller = caller;
+ this.sessionId = sessionId;
+ }
+
+ /**
+ * Canvas action invocation parameters.
+ *
+ * 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(SessionCanvasActionInvokeParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.canvas.action.invoke", _p, SessionCanvasActionInvokeResult.class);
+ }
+
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionInvokeParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionInvokeParams.java
new file mode 100644
index 000000000..1461d2b83
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionInvokeParams.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;
+
+/**
+ * Canvas action invocation parameters.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCanvasActionInvokeParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Open canvas instance identifier */
+ @JsonProperty("instanceId") String instanceId,
+ /** Action name to invoke */
+ @JsonProperty("actionName") String actionName,
+ /** Action input */
+ @JsonProperty("input") Object input
+) {
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionInvokeResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionInvokeResult.java
new file mode 100644
index 000000000..71d03cf5e
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasActionInvokeResult.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;
+
+/**
+ * Canvas action invocation result.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCanvasActionInvokeResult(
+ /** Provider-supplied action result */
+ @JsonProperty("result") Object result
+) {
+}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasApi.java
index 8388c82a2..8bcce72f4 100644
--- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasApi.java
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasApi.java
@@ -23,10 +23,14 @@ public final class SessionCanvasApi {
private final RpcCaller caller;
private final String sessionId;
+ /** API methods for the {@code canvas.action} sub-namespace. */
+ public final SessionCanvasActionApi action;
+
/** @param caller the RPC transport function */
SessionCanvasApi(RpcCaller caller, String sessionId) {
this.caller = caller;
this.sessionId = sessionId;
+ this.action = new SessionCanvasActionApi(caller, sessionId);
}
/**
@@ -79,19 +83,4 @@ public CompletableFuture close(SessionCanvasCloseParams params) {
return caller.invoke("session.canvas.close", _p, Void.class);
}
- /**
- * Canvas action invocation parameters.
- *
- * 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 invokeAction(SessionCanvasInvokeActionParams params) {
- com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
- _p.put("sessionId", this.sessionId);
- return caller.invoke("session.canvas.invokeAction", _p, SessionCanvasInvokeActionResult.class);
- }
-
}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java
index 337ba15cc..12741d8c7 100644
--- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsApi.java
@@ -79,4 +79,19 @@ public CompletableFuture reload() {
return caller.invoke("session.extensions.reload", java.util.Map.of("sessionId", this.sessionId), Void.class);
}
+ /**
+ * Parameters for session.extensions.sendAttachmentsToMessage.
+ *
+ * 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 sendAttachmentsToMessage(SessionExtensionsSendAttachmentsToMessageParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.extensions.sendAttachmentsToMessage", _p, Void.class);
+ }
+
}
diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsSendAttachmentsToMessageParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsSendAttachmentsToMessageParams.java
new file mode 100644
index 000000000..b1353901f
--- /dev/null
+++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsSendAttachmentsToMessageParams.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;
+
+/**
+ * Parameters for session.extensions.sendAttachmentsToMessage.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionExtensionsSendAttachmentsToMessageParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Optional canvas instance binding the push for provenance. When supplied, the runtime resolves the canvas, verifies it is owned by the calling extension, and stamps canvasId/instanceId onto each extension_context entry. When omitted, no resolution runs and those fields stay unset on the attachment. */
+ @JsonProperty("instanceId") String instanceId,
+ /** Attachments to push into the next user-message turn. extension_context entries take the slim shape; standard variants take their full AttachmentSchema shape. */
+ @JsonProperty("attachments") List