Skip to content

Commit a51f681

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

10 files changed

Lines changed: 11 additions & 41 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public record DiscoveredMcpServer(
2424
/** Server name (config key) */
2525
@JsonProperty("name") String name,
26-
/** Server transport type: stdio, http, sse (deprecated), or memory */
26+
/** Server transport type: stdio, http, sse, or memory */
2727
@JsonProperty("type") DiscoveredMcpServerType type,
2828
/** Configuration source: user, workspace, plugin, or builtin */
2929
@JsonProperty("source") McpServerSource source,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import javax.annotation.processing.Generated;
1111

1212
/**
13-
* Server transport type: stdio, http, sse (deprecated), or memory
13+
* Server transport type: stdio, http, sse, or memory
1414
*
1515
* @since 1.0.0
1616
*/

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@
2121
@JsonInclude(JsonInclude.Include.NON_NULL)
2222
@JsonIgnoreProperties(ignoreUnknown = true)
2323
public record ModelBillingTokenPrices(
24-
/** AI Credits cost per billing batch of input tokens */
25-
@JsonProperty("inputPrice") Double inputPrice,
26-
/** AI Credits cost per billing batch of output tokens */
27-
@JsonProperty("outputPrice") Double outputPrice,
28-
/** AI Credits cost per billing batch of cached tokens */
29-
@JsonProperty("cachePrice") Double cachePrice,
24+
/** Price per billing batch of input tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */
25+
@JsonProperty("inputPrice") Long inputPrice,
26+
/** Price per billing batch of output tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */
27+
@JsonProperty("outputPrice") Long outputPrice,
28+
/** Price per billing batch of cached tokens in nano-AIUs (1 nano-AIU = 0.000000001 AIU, 1 AIU = $0.01 USD) */
29+
@JsonProperty("cachePrice") Long cachePrice,
3030
/** Number of tokens per standard billing batch */
31-
@JsonProperty("batchSize") Long batchSize,
32-
/** Maximum context window tokens for the default tier */
33-
@JsonProperty("contextMax") Long contextMax,
34-
/** Long context tier pricing (available for models with extended context windows) */
35-
@JsonProperty("longContext") ModelBillingTokenPricesLongContext longContext
31+
@JsonProperty("batchSize") Long batchSize
3632
) {
3733
}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@ public final class SessionMcpApi {
2525

2626
/** API methods for the {@code mcp.oauth} sub-namespace. */
2727
public final SessionMcpOauthApi oauth;
28-
/** API methods for the {@code mcp.apps} sub-namespace. */
29-
public final SessionMcpAppsApi apps;
3028

3129
/** @param caller the RPC transport function */
3230
SessionMcpApi(RpcCaller caller, String sessionId) {
3331
this.caller = caller;
3432
this.sessionId = sessionId;
3533
this.oauth = new SessionMcpOauthApi(caller, sessionId);
36-
this.apps = new SessionMcpAppsApi(caller, sessionId);
3734
}
3835

3936
/**

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public record SessionMetadata(
3131
@JsonProperty("summary") String summary,
3232
/** Optional human-friendly name set via /rename */
3333
@JsonProperty("name") String name,
34-
/** Runtime client name that created/last resumed this session */
35-
@JsonProperty("clientName") String clientName,
3634
/** True for remote (GitHub) sessions; false for local */
3735
@JsonProperty("isRemote") Boolean isRemote,
3836
/** Schema for the `SessionContext` type. */

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public record SessionMetadataSnapshotResult(
3636
@JsonProperty("workspacePath") String workspacePath,
3737
/** User-provided name supplied at session construction (via `--name`), if any. Immutable after construction. */
3838
@JsonProperty("initialName") String initialName,
39-
/** Runtime client name associated with the session (telemetry identifier). */
40-
@JsonProperty("clientName") String clientName,
4139
/** Remote-session-specific metadata. Populated only when `isRemote` is true. Fields are immutable for the lifetime of the session. */
4240
@JsonProperty("remoteMetadata") MetadataSnapshotRemoteMetadata remoteMetadata,
4341
/** Short human-readable summary of the session, if known. Omitted when no summary has been generated. */

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public final class SessionRpc {
3030

3131
/** API methods for the {@code auth} namespace. */
3232
public final SessionAuthApi auth;
33-
/** API methods for the {@code canvas} namespace. */
34-
public final SessionCanvasApi canvas;
3533
/** API methods for the {@code model} namespace. */
3634
public final SessionModelApi model;
3735
/** API methods for the {@code mode} namespace. */
@@ -99,7 +97,6 @@ public SessionRpc(RpcCaller caller, String sessionId) {
9997
this.caller = caller;
10098
this.sessionId = sessionId;
10199
this.auth = new SessionAuthApi(caller, sessionId);
102-
this.canvas = new SessionCanvasApi(caller, sessionId);
103100
this.model = new SessionModelApi(caller, sessionId);
104101
this.mode = new SessionModeApi(caller, sessionId);
105102
this.name = new SessionNameApi(caller, sessionId);

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,4 @@ public CompletableFuture<SessionWorkspacesSaveLargePasteResult> saveLargePaste(S
119119
return caller.invoke("session.workspaces.saveLargePaste", _p, SessionWorkspacesSaveLargePasteResult.class);
120120
}
121121

122-
/**
123-
* Parameters for computing a workspace diff.
124-
* <p>
125-
* Note: the {@code sessionId} field in the params record is overridden
126-
* by the session-scoped wrapper; any value provided is ignored.
127-
*
128-
* @apiNote This method is experimental and may change in a future version.
129-
* @since 1.0.0
130-
*/
131-
public CompletableFuture<SessionWorkspacesDiffResult> diff(SessionWorkspacesDiffParams params) {
132-
com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
133-
_p.put("sessionId", this.sessionId);
134-
return caller.invoke("session.workspaces.diff", _p, SessionWorkspacesDiffResult.class);
135-
}
136-
137122
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public record SessionWorkspacesGetWorkspaceResultWorkspace(
3939
@JsonProperty("host_type") WorkspacesWorkspaceDetailsHostType hostType,
4040
@JsonProperty("branch") String branch,
4141
@JsonProperty("name") String name,
42-
@JsonProperty("client_name") String clientName,
4342
@JsonProperty("user_named") Boolean userNamed,
4443
@JsonProperty("summary_count") Long summaryCount,
4544
@JsonProperty("created_at") OffsetDateTime createdAt,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
import javax.annotation.processing.Generated;
1515

1616
/**
17-
* The enriched metadata records, with summary and context fields backfilled where available. Sessions confirmed empty and unnamed are omitted.
17+
* The same metadata records, with summary and context fields backfilled where available.
1818
*
1919
* @since 1.0.0
2020
*/
2121
@javax.annotation.processing.Generated("copilot-sdk-codegen")
2222
@JsonInclude(JsonInclude.Include.NON_NULL)
2323
@JsonIgnoreProperties(ignoreUnknown = true)
2424
public record SessionsEnrichMetadataResult(
25-
/** Enriched records, with summary and context backfilled. Sessions confirmed empty and unnamed may be omitted. */
25+
/** Same records, with summary and context backfilled */
2626
@JsonProperty("sessions") List<SessionMetadata> sessions
2727
) {
2828
}

0 commit comments

Comments
 (0)