> ## Documentation Index
> Fetch the complete documentation index at: https://trust-link-tsn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# authorization/device-permissions API

> Source-derived exports, parameter and result types, public methods and source links.

This reference is generated from the checked-out TypeScript exports. Types and signatures describe the package contract; source presence does not establish deployment or service availability. Error expressions below are direct throws, not an exhaustive list of failures from dependencies.

[Source module](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/authorization/device-permissions.ts). See the [reference index](https://trust-link-tsn.mintlify.site/sdk/api-reference.md) for package import boundaries and verification scope.

## TSN\_DEVICE\_PERMISSION\_SCOPES

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/authorization`. [Implementation, line 1](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/authorization/device-permissions.ts#L1).

```ts theme={null}
readonly ["private-session:create", "private-receipt:read", "private-history:read", "private-balance:read", "private-settlement:read", "private-history:recover", "recovery:approve", "device:revoke"]
```

## TsnDevicePermission

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/authorization`. [Implementation, line 12](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/authorization/device-permissions.ts#L12).

```ts theme={null}
export type TsnDevicePermission =
  (typeof TSN_DEVICE_PERMISSION_SCOPES)[number];
```

## validateTsnDevicePermissions

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/authorization`. [Implementation, line 15](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/authorization/device-permissions.ts#L15).

```ts theme={null}
validateTsnDevicePermissions(permissions: readonly string[]): TsnDevicePermission[]
```

Direct failure expressions:

```text theme={null}
new Error("Device authorization contains an unsupported TSN permission scope")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.