permissions namespace.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionAPI methods for thepermissions.folderTrustsub-namespace.API methods for thepermissions.locationssub-namespace.API methods for thepermissions.pathssub-namespace.API methods for thepermissions.urlssub-namespace. -
Method Summary
Modifier and TypeMethodDescriptionPatch of permission policy fields to apply (omit a field to leave it unchanged).No parameters.Pending permission request ID and the decision to apply (approve/reject and scope).Scope and add/remove instructions for modifying session- or location-scoped permission rules.Notification payload describing the permission prompt that the client just rendered.No parameters; returns currently-pending permission requests for the session.No parameters; clears all session-scoped tool permission approvals.Whether to enable full allow-all permissions for the session.Allow-all toggle for tool permission requests, with an optional telemetry source.Toggles whether permission prompts should be bridged into session events for this client.
-
Field Details
-
paths
API methods for thepermissions.pathssub-namespace. -
locations
API methods for thepermissions.locationssub-namespace. -
folderTrust
API methods for thepermissions.folderTrustsub-namespace. -
urls
API methods for thepermissions.urlssub-namespace.
-
-
Method Details
-
configure
public CompletableFuture<SessionPermissionsConfigureResult> configure(SessionPermissionsConfigureParams params) Patch of permission policy fields to apply (omit a field to leave it unchanged).Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
handlePendingPermissionRequest
public CompletableFuture<SessionPermissionsHandlePendingPermissionRequestResult> handlePendingPermissionRequest(SessionPermissionsHandlePendingPermissionRequestParams params) Pending permission request ID and the decision to apply (approve/reject and scope).Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
pendingRequests
No parameters; returns currently-pending permission requests for the session.- Since:
- 1.0.0
-
setApproveAll
public CompletableFuture<SessionPermissionsSetApproveAllResult> setApproveAll(SessionPermissionsSetApproveAllParams params) Allow-all toggle for tool permission requests, with an optional telemetry source.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
setAllowAll
public CompletableFuture<SessionPermissionsSetAllowAllResult> setAllowAll(SessionPermissionsSetAllowAllParams params) Whether to enable full allow-all permissions for the session.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
getAllowAll
No parameters.- Since:
- 1.0.0
-
modifyRules
public CompletableFuture<SessionPermissionsModifyRulesResult> modifyRules(SessionPermissionsModifyRulesParams params) Scope and add/remove instructions for modifying session- or location-scoped permission rules.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
setRequired
public CompletableFuture<SessionPermissionsSetRequiredResult> setRequired(SessionPermissionsSetRequiredParams params) Toggles whether permission prompts should be bridged into session events for this client.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
resetSessionApprovals
No parameters; clears all session-scoped tool permission approvals.- Since:
- 1.0.0
-
notifyPromptShown
public CompletableFuture<SessionPermissionsNotifyPromptShownResult> notifyPromptShown(SessionPermissionsNotifyPromptShownParams params) Notification payload describing the permission prompt that the client just rendered.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-