Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Class SessionPermissionsPathsApi
java.lang.Object
com.github.copilot.generated.rpc.SessionPermissionsPathsApi
API methods for the
permissions.paths namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionadd(SessionPermissionsPathsAddParams params) Directory path to add to the session's allowed directories.Path to evaluate against the session's allowed directories.Path to evaluate against the session's workspace (primary) directory.list()No parameters; returns the session's allow-listed directories.Directory path to set as the session's new primary working directory.
-
Method Details
-
list
No parameters; returns the session's allow-listed directories.- Since:
- 1.0.0
-
add
public CompletableFuture<SessionPermissionsPathsAddResult> add(SessionPermissionsPathsAddParams params) Directory path to add to the session's allowed directories.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
updatePrimary
public CompletableFuture<SessionPermissionsPathsUpdatePrimaryResult> updatePrimary(SessionPermissionsPathsUpdatePrimaryParams params) Directory path to set as the session's new primary working directory.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
isPathWithinAllowedDirectories
public CompletableFuture<SessionPermissionsPathsIsPathWithinAllowedDirectoriesResult> isPathWithinAllowedDirectories(SessionPermissionsPathsIsPathWithinAllowedDirectoriesParams params) Path to evaluate against the session's allowed directories.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
isPathWithinWorkspace
public CompletableFuture<SessionPermissionsPathsIsPathWithinWorkspaceResult> isPathWithinWorkspace(SessionPermissionsPathsIsPathWithinWorkspaceParams params) Path to evaluate against the session's workspace (primary) directory.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-