Skip to content

Commit c555118

Browse files
Regenerate Java codegen output
Auto-committed by java-codegen-check workflow.
1 parent f1d886a commit c555118

8 files changed

Lines changed: 75 additions & 33 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: api.schema.json
7+
8+
package com.github.copilot.generated.rpc;
9+
10+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
11+
import com.fasterxml.jackson.annotation.JsonInclude;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import javax.annotation.processing.Generated;
14+
15+
/**
16+
* Identity of the integrating host, declared once on the `server.connect` handshake so telemetry from this connection is attributed to a single, consistent surface. All fields are optional; omit them to keep the default attribution.
17+
*
18+
* @since 1.0.0
19+
*/
20+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
21+
@JsonInclude(JsonInclude.Include.NON_NULL)
22+
@JsonIgnoreProperties(ignoreUnknown = true)
23+
public record ConnectClientInfo(
24+
/** Name of the host editor, e.g. `"vscode"`. */
25+
@JsonProperty("editorName") String editorName,
26+
/** Version of the host editor, e.g. `"1.124.2"`. Ignored unless it looks like a version string. */
27+
@JsonProperty("editorVersion") String editorVersion,
28+
/** Name of the Copilot extension within the host, e.g. `"copilot-chat"`. */
29+
@JsonProperty("extensionName") String extensionName,
30+
/** Version of the Copilot extension within the host, e.g. `"0.54.0"`. Ignored unless it looks like a version string. */
31+
@JsonProperty("extensionVersion") String extensionVersion
32+
) {
33+
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/ConnectParams.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
public record ConnectParams(
2727
/** Opt this connection in to GitHub telemetry forwarding for its lifetime. When set, the runtime forwards every internal telemetry event it emits — across all sessions, plus sessionless events — to this connection over the `gitHubTelemetry.event` notification. Regular events are also written to the runtime's normal GitHub/CTS path (dual-write); host-only compatibility events are forward-only and intentionally skip that path. Intended for first-party hosts that re-emit the events into their own telemetry stores. Both unrestricted and restricted events are forwarded, each tagged with a `restricted` discriminator; a backstop drops restricted events when restricted telemetry is disabled — using the process-global gate for ordinary events and an explicit session-scoped decision for host-only events. */
2828
@JsonProperty("enableGitHubTelemetryForwarding") Boolean enableGitHubTelemetryForwarding,
29+
/** Identity of the integrating host. Optional; omit it to keep the default attribution. */
30+
@JsonProperty("clientInfo") ConnectClientInfo clientInfo,
2931
/** Connection token; required when the server was started with COPILOT_CONNECTION_TOKEN */
3032
@JsonProperty("token") String token
3133
) {

java/sdk/src/generated/java/com/github/copilot/generated/rpc/DisableBypassPermissionsMode.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

java/sdk/src/generated/java/com/github/copilot/generated/rpc/Model.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public record Model(
4141
/** Model capability category for grouping in the model picker */
4242
@JsonProperty("modelPickerCategory") ModelPickerCategory modelPickerCategory,
4343
/** Relative cost tier for token-based billing users */
44-
@JsonProperty("modelPickerPriceCategory") ModelPickerPriceCategory modelPickerPriceCategory
44+
@JsonProperty("modelPickerPriceCategory") ModelPickerPriceCategory modelPickerPriceCategory,
45+
/** Informational notices the service published for this model, such as an upcoming change or a recommended alternative. Present only when the service published at least one notice. Hosts should surface these without implying anything is wrong with the model. */
46+
@JsonProperty("infoMessages") List<ModelMessage> infoMessages,
47+
/** Warnings the service published for this model, such as a deprecated client version. Present only when the service published at least one warning. The model remains usable; hosts should surface these as advisory rather than blocking. */
48+
@JsonProperty("warningMessages") List<ModelMessage> warningMessages
4549
) {
4650
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: api.schema.json
7+
8+
package com.github.copilot.generated.rpc;
9+
10+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
11+
import com.fasterxml.jackson.annotation.JsonInclude;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import javax.annotation.processing.Generated;
14+
15+
/**
16+
* A service-published message about a model, carrying a stable machine-readable code alongside human-readable text.
17+
*
18+
* @since 1.0.0
19+
*/
20+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
21+
@JsonInclude(JsonInclude.Include.NON_NULL)
22+
@JsonIgnoreProperties(ignoreUnknown = true)
23+
public record ModelMessage(
24+
/** Stable machine-readable identifier for the message, such as `client_version_deprecated`. Hosts can key custom presentation off this; unrecognized codes should fall back to displaying `message`. */
25+
@JsonProperty("code") String code,
26+
/** Human-readable message text intended for display to the user. */
27+
@JsonProperty("message") String message
28+
) {
29+
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SandboxConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public record SandboxConfig(
2929
@JsonProperty("addCurrentWorkingDirectory") Boolean addCurrentWorkingDirectory,
3030
/** Credential-injection capability flags. */
3131
@JsonProperty("auth") SandboxConfigAuth auth,
32-
/** Whether to auto-grant read access to the tool directories discovered on PATH and in toolchain environment variables (GOROOT, CARGO_HOME, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and, on Unix, up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Set to false to disable every grant listed above: user-installed toolchains (rustup, nvm, pyenv, conda, pipx) then need explicit userPolicy.filesystem entries — readonlyPaths to read them, plus readwriteFiles for a relocated CARGO_HOME's .package-cache and .global-cache, which Cargo locks on every build. Only these developer-tool grants are affected: the working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted, so commands still run. Default: true (enabled by default; set to false to opt out). */
32+
/** Whether to auto-grant read access to the tool directories discovered on PATH and in toolchain environment variables (GOROOT, CARGO_HOME, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Set to false to disable every grant listed above: user-installed toolchains (rustup, nvm, pyenv, conda, pipx) then need explicit userPolicy.filesystem entries — readonlyPaths to read them, plus readwriteFiles for a relocated CARGO_HOME's .package-cache and .global-cache, which Cargo locks on every build. Only these developer-tool grants are affected: the working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted, so commands still run. Default: true (enabled by default; set to false to opt out). */
3333
@JsonProperty("allowDevToolAccess") Boolean allowDevToolAccess
3434
) {
3535
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionManagedPermissions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
@JsonInclude(JsonInclude.Include.NON_NULL)
2323
@JsonIgnoreProperties(ignoreUnknown = true)
2424
public record SessionManagedPermissions(
25-
/** When set to `disable`, prevents bypass/allow-all permission modes. */
26-
@JsonProperty("disableBypassPermissionsMode") DisableBypassPermissionsMode disableBypassPermissionsMode,
25+
/** When set to `disable`, prevents bypass/allow-all permission modes. `allow-auto-only` blocks full allow-all but permits advisory auto-approval. Any other value is accepted rather than failing the session, but is enforced as `disable`: the key is only present to restrict something, so a mode this runtime cannot interpret fails closed to the most restrictive one it knows. Omit the key entirely to impose no restriction. */
26+
@JsonProperty("disableBypassPermissionsMode") String disableBypassPermissionsMode,
2727
/** Permission rules that block matching operations. Deny has highest precedence. */
2828
@JsonProperty("deny") List<String> deny,
2929
/** Permission rules that require explicit human approval. */

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsResult.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public record SessionQueuePendingItemsResult(
2828
/** Pending queued items in submission order. Includes user messages, queued slash commands, and queued model changes; omits internal system items. */
2929
@JsonProperty("items") List<QueuePendingItems> items,
3030
/** Display text for messages currently in the immediate steering queue (interjections sent during a running turn). */
31-
@JsonProperty("steeringMessages") List<String> steeringMessages
31+
@JsonProperty("steeringMessages") List<String> steeringMessages,
32+
/** How many leading entries of `steeringMessages` have already been folded into the running turn (and so have an emitted `user.message`), as opposed to still waiting for one. Absent for hosts that do not distinguish the two. */
33+
@JsonProperty("inFlightSteeringCount") Long inFlightSteeringCount
3234
) {
3335
}

0 commit comments

Comments
 (0)