diff --git a/java/scripts/codegen/package-lock.json b/java/scripts/codegen/package-lock.json index 9a7b832c7e..835b57e47f 100644 --- a/java/scripts/codegen/package-lock.json +++ b/java/scripts/codegen/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "copilot-sdk-java-codegen", "dependencies": { - "@github/copilot": "^1.0.64-3", + "@github/copilot": "^1.0.64", "json-schema": "^0.4.0", "tsx": "^4.22.4" } @@ -428,9 +428,9 @@ } }, "node_modules/@github/copilot": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot/-/copilot-1.0.64-3.tgz", - "integrity": "sha512-Q9nBMYEHX1bJLXzzJocQx2nZvORJ0E9gvK6ly/FCtmtA7ad96BWZvf4EHzkCNDsn56aI3zNaUSfKHUKcmIAzSg==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot/-/copilot-1.0.64.tgz", + "integrity": "sha512-Dch34NNBWjWlkEUxrC4CkDFunQs5cRmkEEO/PR6Lqj23zzwDwzJUxWA/6K28EokfoPhc9hLyPsCbS9rQ9v2TFA==", "license": "SEE LICENSE IN LICENSE.md", "dependencies": { "detect-libc": "^2.1.2" @@ -439,20 +439,20 @@ "copilot": "npm-loader.js" }, "optionalDependencies": { - "@github/copilot-darwin-arm64": "1.0.64-3", - "@github/copilot-darwin-x64": "1.0.64-3", - "@github/copilot-linux-arm64": "1.0.64-3", - "@github/copilot-linux-x64": "1.0.64-3", - "@github/copilot-linuxmusl-arm64": "1.0.64-3", - "@github/copilot-linuxmusl-x64": "1.0.64-3", - "@github/copilot-win32-arm64": "1.0.64-3", - "@github/copilot-win32-x64": "1.0.64-3" + "@github/copilot-darwin-arm64": "1.0.64", + "@github/copilot-darwin-x64": "1.0.64", + "@github/copilot-linux-arm64": "1.0.64", + "@github/copilot-linux-x64": "1.0.64", + "@github/copilot-linuxmusl-arm64": "1.0.64", + "@github/copilot-linuxmusl-x64": "1.0.64", + "@github/copilot-win32-arm64": "1.0.64", + "@github/copilot-win32-x64": "1.0.64" } }, "node_modules/@github/copilot-darwin-arm64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-darwin-arm64/-/copilot-darwin-arm64-1.0.64-3.tgz", - "integrity": "sha512-wlV6mRoAd/wG2V08TG+BOJ0nyOjroya24FSyA5A49z7PnUUuQXYRpa/GljvI5j3PM8aUl0DyBkXuB/DcFU818g==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-darwin-arm64/-/copilot-darwin-arm64-1.0.64.tgz", + "integrity": "sha512-2+ma5M0kwfSytB1Js8vl16ffZ4oCntgs0hFqeZ/zyV3ZQ4cNmDokxa/VLYGyOIQD0oeTZyZdcDJiGrlsYhoYgw==", "cpu": [ "arm64" ], @@ -466,9 +466,9 @@ } }, "node_modules/@github/copilot-darwin-x64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-darwin-x64/-/copilot-darwin-x64-1.0.64-3.tgz", - "integrity": "sha512-mk48PIESL2keeemX7tLRmWRDxKwl0q3cFI1ORD2QcrieNK7pSqI3eVbfoB7MqoUUI27yzIkl67xqgl8Qq28IUQ==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-darwin-x64/-/copilot-darwin-x64-1.0.64.tgz", + "integrity": "sha512-mwjZ0/HZ7loXnahkqhy7LXvNVzq12eghoawd+M2d7kiHMR5yAHK6XA++6kKFj3vZnDanjau+wyvTx0z++mQ3LA==", "cpu": [ "x64" ], @@ -482,12 +482,15 @@ } }, "node_modules/@github/copilot-linux-arm64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-linux-arm64/-/copilot-linux-arm64-1.0.64-3.tgz", - "integrity": "sha512-rCgtK3/rofQW5StSbeU0TwDUlOl2bvS2HGKyapVxow1Nvz3Q/TDB+eFRQc5ocBdv5tNSor+Caw2JGkRx5v508w==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-linux-arm64/-/copilot-linux-arm64-1.0.64.tgz", + "integrity": "sha512-Krg/3ZWxXB7Dw4VOLZEZrYmqc39Yvz9M1K9SPOfjpEy2SFnF/KVLaFt/6E1uYdjgvJ7BmocfVcFYp0hUmy5Axw==", "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "SEE LICENSE IN LICENSE.md", "optional": true, "os": [ @@ -498,12 +501,15 @@ } }, "node_modules/@github/copilot-linux-x64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-linux-x64/-/copilot-linux-x64-1.0.64-3.tgz", - "integrity": "sha512-FAiBMw1h07mURSBLi3ztj5yzbP+uTbo9mhxOym1Xysut5LDpO2kYUzTYk2DlIyLGZhmH/HDOZE+b6U7lOUQy0g==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-linux-x64/-/copilot-linux-x64-1.0.64.tgz", + "integrity": "sha512-2k9FGppYnxHLwVH+TVCf13JfjSlvS15wsZM5xYxEFlqL/CIBvTK7yn5p7M+P1dWoTUpCmavKG3601BtHPenrRg==", "cpu": [ "x64" ], + "libc": [ + "glibc" + ], "license": "SEE LICENSE IN LICENSE.md", "optional": true, "os": [ @@ -514,12 +520,15 @@ } }, "node_modules/@github/copilot-linuxmusl-arm64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-linuxmusl-arm64/-/copilot-linuxmusl-arm64-1.0.64-3.tgz", - "integrity": "sha512-vn8P6grPf0y2mNskkdVbAz0i46b1sP9uSXv7z6kgycjprl0CdIYPDf3WEkG60vpyopfQna+iCqCLMWRnNyCk3g==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-linuxmusl-arm64/-/copilot-linuxmusl-arm64-1.0.64.tgz", + "integrity": "sha512-C+EYoMvmlUxR0YYxLkD3nwn940y0zId8z+pPl9rFO6f9heMGXYCwCZL2i2c3GW6CvGgZF6Wbzw1Kk0Gvw46F2w==", "cpu": [ "arm64" ], + "libc": [ + "musl" + ], "license": "SEE LICENSE IN LICENSE.md", "optional": true, "os": [ @@ -530,12 +539,15 @@ } }, "node_modules/@github/copilot-linuxmusl-x64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-linuxmusl-x64/-/copilot-linuxmusl-x64-1.0.64-3.tgz", - "integrity": "sha512-atdHimNd6nzRRwHybXUY6/84bYzXeKbDOeYN/N/DsX23+AQOPSu5BD8MD8166I/5kNHui0XOmeTSydVNBUwcJw==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-linuxmusl-x64/-/copilot-linuxmusl-x64-1.0.64.tgz", + "integrity": "sha512-VSTGl7dGQDhH2ACeyYq1hYhAsMUbumpqeVe+CGo/u7fKOMrTNMTR5SB3s+zsHCskKZkJkZ2gsUWROCiDBsThEg==", "cpu": [ "x64" ], + "libc": [ + "musl" + ], "license": "SEE LICENSE IN LICENSE.md", "optional": true, "os": [ @@ -546,9 +558,9 @@ } }, "node_modules/@github/copilot-win32-arm64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-win32-arm64/-/copilot-win32-arm64-1.0.64-3.tgz", - "integrity": "sha512-jUTS9meoHEXQR8nMDOjwC0baqV273lYtLxY46W7TiOFszhsqhbhWxQMkNQBfT3GEfPp+40igzMPq3reaUTuvag==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-win32-arm64/-/copilot-win32-arm64-1.0.64.tgz", + "integrity": "sha512-16gb2T0rQ3QI/rs7mJa3xSks0/ZFrFKoMro3tvgM/c89J/5PTpykpLIuD2Zhl1cC3FqaFzcSYzdupxu82Aj2tQ==", "cpu": [ "arm64" ], @@ -562,9 +574,9 @@ } }, "node_modules/@github/copilot-win32-x64": { - "version": "1.0.64-3", - "resolved": "https://registry.npmjs.org/@github/copilot-win32-x64/-/copilot-win32-x64-1.0.64-3.tgz", - "integrity": "sha512-gHUhS500Q91hjtH9fqKDblaIs0mO09G4ifpZ1woDPXbkdKe/W29uwB7g2fn0+KczNRyPxFSWlqjnOon4Fe8svA==", + "version": "1.0.64", + "resolved": "https://registry.npmjs.org/@github/copilot-win32-x64/-/copilot-win32-x64-1.0.64.tgz", + "integrity": "sha512-Ki+St5eggcATHdPLc58RGrOuCX+igblD3/TmlQ8WTHmZxcyuKJl9RNzui3ioVi7ntLmKWriW5r/VH/DTHVKT8g==", "cpu": [ "x64" ], diff --git a/java/scripts/codegen/package.json b/java/scripts/codegen/package.json index 5a6e0b7772..9c68cf4fcb 100644 --- a/java/scripts/codegen/package.json +++ b/java/scripts/codegen/package.json @@ -7,7 +7,7 @@ "generate:java": "tsx java.ts" }, "dependencies": { - "@github/copilot": "^1.0.64-3", + "@github/copilot": "^1.0.64", "json-schema": "^0.4.0", "tsx": "^4.22.4" } diff --git a/java/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java b/java/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java index 167f420408..974a7f272c 100644 --- a/java/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java +++ b/java/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java @@ -37,6 +37,12 @@ public record AssistantUsageQuotaSnapshot( /** Percentage of quota remaining (0 to 100) */ @JsonProperty("remainingPercentage") Double remainingPercentage, /** Date when the quota resets */ - @JsonProperty("resetDate") OffsetDateTime resetDate + @JsonProperty("resetDate") OffsetDateTime resetDate, + /** Whether the user currently has quota available for use */ + @JsonProperty("hasQuota") Boolean hasQuota, + /** Whether this snapshot uses token-based billing (AI-credits allocation) */ + @JsonProperty("tokenBasedBilling") Boolean tokenBasedBilling, + /** Pay-as-you-go additional-usage budget cap in AI credits (1 credit = $0.01); present only when CAPI emits a finite value */ + @JsonProperty("overageEntitlement") Double overageEntitlement ) { } diff --git a/java/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java b/java/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java index 067203ac31..8797477d51 100644 --- a/java/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java +++ b/java/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java @@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; import javax.annotation.processing.Generated; /** @@ -58,6 +59,8 @@ public record ModelCallFailureEventData( @JsonProperty("errorCode") String errorCode, /** For HTTP 400 failures only: the `type` from the CAPI error envelope (e.g. 'websocket_error'), a coarser companion to errorCode for envelopes that carry no code. Raw server-controlled string, emitted only through restricted telemetry. Absent for bodyless or non-400 failures. */ @JsonProperty("errorType") String errorType, + /** Per-quota usage snapshots parsed from the failed response's quota headers, keyed by quota identifier. Present when the error response carried quota headers (e.g. a 402 once the additional spend limit is reached) so the UI can refresh the quota display on failure. */ + @JsonProperty("quotaSnapshots") Map quotaSnapshots, /** Content-free structural summary of the failing request. Contains only counts and shape flags (no prompt content), so it is safe for unrestricted telemetry. Populated only for client-error (4xx) failures. */ @JsonProperty("requestFingerprint") ModelCallFailureRequestFingerprint requestFingerprint ) { diff --git a/java/src/generated/java/com/github/copilot/generated/SessionEvent.java b/java/src/generated/java/com/github/copilot/generated/SessionEvent.java index b25a27353e..3b900034fc 100644 --- a/java/src/generated/java/com/github/copilot/generated/SessionEvent.java +++ b/java/src/generated/java/com/github/copilot/generated/SessionEvent.java @@ -33,6 +33,7 @@ @JsonSubTypes.Type(value = SessionTitleChangedEvent.class, name = "session.title_changed"), @JsonSubTypes.Type(value = SessionScheduleCreatedEvent.class, name = "session.schedule_created"), @JsonSubTypes.Type(value = SessionScheduleCancelledEvent.class, name = "session.schedule_cancelled"), + @JsonSubTypes.Type(value = SessionScheduleRearmedEvent.class, name = "session.schedule_rearmed"), @JsonSubTypes.Type(value = SessionAutopilotObjectiveChangedEvent.class, name = "session.autopilot_objective_changed"), @JsonSubTypes.Type(value = SessionInfoEvent.class, name = "session.info"), @JsonSubTypes.Type(value = SessionWarningEvent.class, name = "session.warning"), @@ -127,6 +128,7 @@ public abstract sealed class SessionEvent permits SessionTitleChangedEvent, SessionScheduleCreatedEvent, SessionScheduleCancelledEvent, + SessionScheduleRearmedEvent, SessionAutopilotObjectiveChangedEvent, SessionInfoEvent, SessionWarningEvent, diff --git a/java/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java b/java/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java index a7a934949c..435a8501e8 100644 --- a/java/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java +++ b/java/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java @@ -48,6 +48,8 @@ public record SessionScheduleCreatedEventData( @JsonProperty("prompt") String prompt, /** Whether the schedule re-arms after each tick (`/every`) or fires once (`/after`) */ @JsonProperty("recurring") Boolean recurring, + /** True for a self-paced (`dynamic`) schedule: no fixed cadence; the model arms each next run via the `manage_schedule` `wakeup` action. `nextRunAt` is model-controlled rather than auto-computed. */ + @JsonProperty("selfPaced") Boolean selfPaced, /** Optional user-facing label shown in the timeline instead of the actual prompt (e.g. `/skill-name args` when the prompt is a skill invocation expansion) */ @JsonProperty("displayPrompt") String displayPrompt ) { diff --git a/java/src/generated/java/com/github/copilot/generated/SessionScheduleRearmedEvent.java b/java/src/generated/java/com/github/copilot/generated/SessionScheduleRearmedEvent.java new file mode 100644 index 0000000000..271edd7ae5 --- /dev/null +++ b/java/src/generated/java/com/github/copilot/generated/SessionScheduleRearmedEvent.java @@ -0,0 +1,43 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + *--------------------------------------------------------------------------------------------*/ + +// AUTO-GENERATED FILE - DO NOT EDIT +// Generated from: session-events.schema.json + +package com.github.copilot.generated; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import javax.annotation.processing.Generated; + +/** + * Session event "session.schedule_rearmed". Self-paced schedule re-armed for its next run + * @since 1.0.0 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +@JsonInclude(JsonInclude.Include.NON_NULL) +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public final class SessionScheduleRearmedEvent extends SessionEvent { + + @Override + public String getType() { return "session.schedule_rearmed"; } + + @JsonProperty("data") + private SessionScheduleRearmedEventData data; + + public SessionScheduleRearmedEventData getData() { return data; } + public void setData(SessionScheduleRearmedEventData data) { this.data = data; } + + /** Data payload for {@link SessionScheduleRearmedEvent}. */ + @JsonIgnoreProperties(ignoreUnknown = true) + @JsonInclude(JsonInclude.Include.NON_NULL) + public record SessionScheduleRearmedEventData( + /** Id of the self-paced schedule that was re-armed */ + @JsonProperty("id") Long id, + /** Absolute time (epoch milliseconds) the model armed the next run to fire */ + @JsonProperty("nextRunAt") Long nextRunAt + ) { + } +} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CapiSessionOptions.java b/java/src/generated/java/com/github/copilot/generated/rpc/CapiSessionOptions.java new file mode 100644 index 0000000000..27fd29128d --- /dev/null +++ b/java/src/generated/java/com/github/copilot/generated/rpc/CapiSessionOptions.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; + +/** + * Options scoped to the built-in CAPI (Copilot API) provider. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +public record CapiSessionOptions( + /** Whether to use WebSocket transport for the CAPI Responses API. Enabled by default when the model advertises `ws:/responses` support; set to `false` to force the HTTP Responses transport in environments where WebSockets are blocked (e.g. behind a proxy). Setting this to `false` is equivalent to the `COPILOT_CLI_DISABLE_WEBSOCKET_RESPONSES` environment variable. */ + @JsonProperty("enableWebSocketResponses") Boolean enableWebSocketResponses +) { +} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/McpOauthLoginGrantType.java b/java/src/generated/java/com/github/copilot/generated/rpc/McpOauthLoginGrantType.java new file mode 100644 index 0000000000..4c835d293a --- /dev/null +++ b/java/src/generated/java/com/github/copilot/generated/rpc/McpOauthLoginGrantType.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 javax.annotation.processing.Generated; + +/** + * OAuth grant type override for this login. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum McpOauthLoginGrantType { + /** The {@code authorization_code} variant. */ + AUTHORIZATION_CODE("authorization_code"), + /** The {@code client_credentials} variant. */ + CLIENT_CREDENTIALS("client_credentials"); + + private final String value; + McpOauthLoginGrantType(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static McpOauthLoginGrantType fromValue(String value) { + for (McpOauthLoginGrantType v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown McpOauthLoginGrantType value: " + value); + } +} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/NamedProviderConfig.java b/java/src/generated/java/com/github/copilot/generated/rpc/NamedProviderConfig.java index 2d5bddaf8a..b90eef6af0 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/NamedProviderConfig.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/NamedProviderConfig.java @@ -28,6 +28,8 @@ public record NamedProviderConfig( @JsonProperty("type") ProviderConfigType type, /** Wire API format (openai/azure only). Defaults to "completions". */ @JsonProperty("wireApi") ProviderConfigWireApi wireApi, + /** Provider transport. Defaults to "http". */ + @JsonProperty("transport") ProviderConfigTransport transport, /** API endpoint URL. */ @JsonProperty("baseUrl") String baseUrl, /** API key. Optional for local providers like Ollama. */ diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfig.java b/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfig.java index f9edc99838..8d3aaf6c6d 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfig.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfig.java @@ -26,6 +26,8 @@ public record ProviderConfig( @JsonProperty("type") ProviderConfigType type, /** Wire API format (openai/azure only). Defaults to "completions". */ @JsonProperty("wireApi") ProviderConfigWireApi wireApi, + /** Provider transport. Defaults to "http". */ + @JsonProperty("transport") ProviderConfigTransport transport, /** API endpoint URL. */ @JsonProperty("baseUrl") String baseUrl, /** API key. Optional for local providers like Ollama. */ diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfigTransport.java b/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfigTransport.java new file mode 100644 index 0000000000..f0f32c0787 --- /dev/null +++ b/java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfigTransport.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 javax.annotation.processing.Generated; + +/** + * Provider transport. Defaults to "http". + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ProviderConfigTransport { + /** The {@code http} variant. */ + HTTP("http"), + /** The {@code websockets} variant. */ + WEBSOCKETS("websockets"); + + private final String value; + ProviderConfigTransport(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderConfigTransport fromValue(String value) { + for (ProviderConfigTransport v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ProviderConfigTransport value: " + value); + } +} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/ProviderEndpointTransport.java b/java/src/generated/java/com/github/copilot/generated/rpc/ProviderEndpointTransport.java new file mode 100644 index 0000000000..ef0e20348e --- /dev/null +++ b/java/src/generated/java/com/github/copilot/generated/rpc/ProviderEndpointTransport.java @@ -0,0 +1,35 @@ +/*--------------------------------------------------------------------------------------------- + * 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 javax.annotation.processing.Generated; + +/** + * Transport to be used for provider requests. + * + * @since 1.0.0 + */ +@javax.annotation.processing.Generated("copilot-sdk-codegen") +public enum ProviderEndpointTransport { + /** The {@code http} variant. */ + HTTP("http"), + /** The {@code websockets} variant. */ + WEBSOCKETS("websockets"); + + private final String value; + ProviderEndpointTransport(String value) { this.value = value; } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { return value; } + @com.fasterxml.jackson.annotation.JsonCreator + public static ProviderEndpointTransport fromValue(String value) { + for (ProviderEndpointTransport v : values()) { + if (v.value.equals(value)) return v; + } + throw new IllegalArgumentException("Unknown ProviderEndpointTransport value: " + value); + } +} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java b/java/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java index f8d58ad770..5ffd0a7cdd 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java @@ -36,6 +36,8 @@ public record ScheduleEntry( @JsonProperty("prompt") String prompt, /** Whether the schedule re-arms after each tick (`/every`) or fires once (`/after`). */ @JsonProperty("recurring") Boolean recurring, + /** True for a self-paced (`dynamic`) schedule: no fixed cadence; the model arms each next run via the `manage_schedule` `wakeup` action. `nextRunAt` is model-controlled. */ + @JsonProperty("selfPaced") Boolean selfPaced, /** Display-only label for the prompt as shown in the UI (e.g. `/skill-name` for a skill-invocation schedule). The actual enqueued prompt is `prompt`. */ @JsonProperty("displayPrompt") String displayPrompt, /** ISO 8601 timestamp when the next tick is scheduled to fire. */ diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java index 95a0812065..7b5e93c416 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java @@ -63,7 +63,7 @@ public CompletableFuture handlePendin } /** - * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy. + * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection. *

* Note: the {@code sessionId} field in the params record is overridden * by the session-scoped wrapper; any value provided is ignored. diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java index 5fc47505cf..d9234d5587 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java @@ -14,7 +14,7 @@ import javax.annotation.processing.Generated; /** - * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, and the callback success-page copy. + * Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection. * * @apiNote This method is experimental and may change in a future version. * @since 1.0.0 @@ -33,6 +33,14 @@ public record SessionMcpOauthLoginParams( /** Optional override for the OAuth client display name shown on the consent screen. Applies to newly registered dynamic clients only — existing registrations keep the name they were created with. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass their own surface-specific label so the consent screen matches the product the user sees. */ @JsonProperty("clientName") String clientName, /** Optional override for the body text shown on the OAuth loopback callback success page. When omitted, the runtime applies a neutral fallback; callers driving interactive auth should pass surface-specific copy telling the user where to return. */ - @JsonProperty("callbackSuccessMessage") String callbackSuccessMessage + @JsonProperty("callbackSuccessMessage") String callbackSuccessMessage, + /** Optional OAuth client ID override for this login. When set, the runtime uses this pre-registered static client instead of dynamic client registration. */ + @JsonProperty("clientId") String clientId, + /** Optional OAuth client secret override for this login. The runtime treats this as an ephemeral host-owned secret, uses it for this authentication attempt and does not persist it. */ + @JsonProperty("clientSecret") String clientSecret, + /** Optional override indicating whether the static OAuth client is public. When false, the runtime treats it as confidential and uses the per-login clientSecret if provided, otherwise retrieving the client secret from the MCP OAuth secret store. */ + @JsonProperty("publicClient") Boolean publicClient, + /** Optional OAuth grant type override for this login. Defaults to the server configuration, or authorization_code when no grant type is specified. */ + @JsonProperty("grantType") McpOauthLoginGrantType grantType ) { } diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java index bedee90810..4479a3175a 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java @@ -48,6 +48,8 @@ public record SessionOptionsUpdateParams( @JsonProperty("isExperimentalMode") Boolean isExperimentalMode, /** Custom model-provider configuration (BYOK). */ @JsonProperty("provider") ProviderConfig provider, + /** Options scoped to the built-in CAPI (Copilot API) provider. */ + @JsonProperty("capi") CapiSessionOptions capi, /** Absolute working-directory path for shell tools. */ @JsonProperty("workingDirectory") String workingDirectory, /** Allowlist of tool names available to this session. */ diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionProviderGetEndpointResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionProviderGetEndpointResult.java index 344af3a824..59ca8bca87 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionProviderGetEndpointResult.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/SessionProviderGetEndpointResult.java @@ -29,6 +29,8 @@ public record SessionProviderGetEndpointResult( @JsonProperty("type") ProviderEndpointType type, /** Wire API to be used, when required for the provider type. */ @JsonProperty("wireApi") ProviderEndpointWireApi wireApi, + /** Transport to be used for provider requests. */ + @JsonProperty("transport") ProviderEndpointTransport transport, /** Base URL to pass to the LLM client library. */ @JsonProperty("baseUrl") String baseUrl, /** A credential the caller should use with this endpoint. Omitted only when the endpoint accepts unauthenticated requests. */ diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/WorkspaceDiffMode.java b/java/src/generated/java/com/github/copilot/generated/rpc/WorkspaceDiffMode.java index a2762954b2..7cc33e3c51 100644 --- a/java/src/generated/java/com/github/copilot/generated/rpc/WorkspaceDiffMode.java +++ b/java/src/generated/java/com/github/copilot/generated/rpc/WorkspaceDiffMode.java @@ -19,7 +19,9 @@ public enum WorkspaceDiffMode { /** The {@code unstaged} variant. */ UNSTAGED("unstaged"), /** The {@code branch} variant. */ - BRANCH("branch"); + BRANCH("branch"), + /** The {@code session} variant. */ + SESSION("session"); private final String value; WorkspaceDiffMode(String value) { this.value = value; }