Conversation
Regenerate rust/src/generated/{api_types.rs,rpc.rs} via the real codegen
pipeline (npm run generate:rust) against the pinned CLI schema, patched
with the account.getManagedSettings RPC and its request/result types to
match runtime PR github/copilot-agent-runtime#12606 and the shape vendored
in github/github-app#8854:
- rpc_methods::ACCOUNT_GETMANAGEDSETTINGS constant
- AccountGetManagedSettingsRequest (optional gitHubToken)
- AccountGetManagedSettingsResult (account, resolved: ManagedSettingsResolvedData)
- ClientRpcAccount::get_managed_settings / get_managed_settings_with_params
ManagedSettingsResolvedData is unchanged (already richer on main than the
older #12606 schema snapshot); the new result type references the existing
definition. Surface is marked @experimental, following the get_quota /
get_quota_with_params pattern.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
account.getManagedSettingsRPC surface to the Rust SDK, matching runtime PR github/copilot-agent-runtime#12606 and the shape vendored ahead-of-sync in github/github-app#8854.What changed
Regenerated
rust/src/generated/{api_types.rs,rpc.rs}via the real codegen pipeline (npm run generate:rust), using a schema patched with the new RPC method/types on top of the pinned CLI schema already used by this repo:rpc_methods::ACCOUNT_GETMANAGEDSETTINGSconstant ("account.getManagedSettings")AccountGetManagedSettingsRequest { git_hub_token: Option<String> }AccountGetManagedSettingsResult { account: Option<String>, resolved: ManagedSettingsResolvedData }ClientRpcAccount::get_managed_settings()/get_managed_settings_with_params(...)ManagedSettingsResolvedDatais unchanged — this repo'smainalready carries a richer schema for that type than #12606's snapshot (client_managed,policy_helper_managed,sandbox_enabled_by_undetermined_policy,permissions_allow_intersected), so the new result type references the existing, more current definition rather than regressing it.Surface is marked
@experimental, following the existingget_quota/get_quota_with_paramspattern exactly.Validation
cargo build --all-features— passescargo check --all-features— passescargo +nightly-2026-04-14 fmt --all -- --config-path .rustfmt.nightly.toml --check— cleancargo clippy --all-targets --features test-support -- --no-deps -D warnings -D clippy::unwrap_used -D clippy::disallowed_macros -D clippy::await_holding_invalid_type— cleancargo test --features test-support --test api_types_test— 29/29 passing (no regressions)No other generated files changed.
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com