Skip to main content
This page documents all TypeScript types exported by the nono SDK.

AccessMode

Enum representing the level of filesystem access to grant.

Values

Usage


FsCapabilityInfo

Information about a filesystem capability.

Properties

string
required
The path as originally specified when adding the capability.
string
required
The canonicalized absolute path after symlink resolution.
string
required
Access level string: "read", "write", or "read+write".
boolean
required
true if this is a single-file capability, false for directories.
string
required
How the capability was added (e.g., "api", "config").

Example


SupportInfoResult

Information about sandbox support on the current platform.

Properties

boolean
required
Whether sandboxing is available on this platform.
string
required
Platform identifier. One of:
  • "linux" — Linux with Landlock support
  • "macos" — macOS with Seatbelt support
  • "unsupported" — Platform not supported
string
required
Human-readable description of the sandbox backend, version, and any limitations.

Example


QueryResultInfo

Result of a permission query.

Properties

string
required
Result status: "allowed" or "denied".
string
required
Reason for the result:Allowed reasons:
  • "granted_path" — A filesystem capability grants access
  • "network_allowed" — Network access is not blocked
Denied reasons:
  • "path_not_granted" — No capability covers the path
  • "insufficient_access" — Path covered but with lower access level
  • "network_blocked" — Network has been blocked
string | undefined
For granted_path results, the path of the granting capability.
string | undefined
For granted_path results, the access level granted.
string | undefined
For insufficient_access results, the access level that was granted.
string | undefined
For insufficient_access results, the access level that was requested.

Example


Complete Type Definitions

For reference, here are all the type definitions in a single block: