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/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java b/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java
new file mode 100644
index 000000000..5e5e6b502
--- /dev/null
+++ b/java/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.sdk.generated.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/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java b/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java
new file mode 100644
index 000000000..5aef213a4
--- /dev/null
+++ b/java/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.sdk.generated.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/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java b/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java
index df5e6d9f2..7a142ecf9 100644
--- a/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java
+++ b/java/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java
@@ -31,6 +31,8 @@ public final class SessionCommandsApi {
/**
* 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() {
@@ -42,6 +44,8 @@ public CompletableFuture list() {
*
* 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) {
@@ -55,6 +59,8 @@ public CompletableFuture invoke(SessionCommandsInvokeParams params) {
*
* 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) {
@@ -64,10 +70,42 @@ public CompletableFuture handlePendin
}
/**
- * Queued command request ID and the result indicating whether the client handled it.
+ * 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