> ## 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.

# receipts/types 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/receipts/types.ts). See the [reference index](https://trust-link-tsn.mintlify.site/sdk/api-reference.md) for package import boundaries and verification scope.

## EncryptedReceiptRecord

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/receipts`. [Implementation, line 17](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L17).

### EncryptedReceiptRecord.receiptId

[Source, line 18](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L18).

```ts theme={null}
receiptId: string
```

### EncryptedReceiptRecord.operationId

[Source, line 19](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L19).

```ts theme={null}
operationId: string
```

### EncryptedReceiptRecord.tinCommitment

[Source, line 20](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L20).

```ts theme={null}
tinCommitment: string
```

### EncryptedReceiptRecord.protocolVersion

[Source, line 21](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L21).

```ts theme={null}
protocolVersion: "tsn-private-receipt-v1"
```

### EncryptedReceiptRecord.ciphertext

[Source, line 22](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L22).

```ts theme={null}
ciphertext: string
```

### EncryptedReceiptRecord.nonce

[Source, line 23](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L23).

```ts theme={null}
nonce: string
```

### EncryptedReceiptRecord.authenticationTag

[Source, line 24](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L24).

```ts theme={null}
authenticationTag: string
```

### EncryptedReceiptRecord.encryptionVersion

[Source, line 25](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L25).

```ts theme={null}
encryptionVersion: "aes-256-gcm+x25519-hkdf-sha256-v1"
```

### EncryptedReceiptRecord.aadCommitment

[Source, line 26](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L26).

```ts theme={null}
aadCommitment: string
```

### EncryptedReceiptRecord.integrityCommitment

[Source, line 27](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L27).

```ts theme={null}
integrityCommitment: string
```

### EncryptedReceiptRecord.keyEnvelopes

[Source, line 28](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L28).

```ts theme={null}
keyEnvelopes: ReceiptKeyEnvelope[]
```

### EncryptedReceiptRecord.createdAt

[Source, line 29](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L29).

```ts theme={null}
createdAt: string
```

## PrivateReceiptAad

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/receipts`. [Implementation, line 38](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L38).

### PrivateReceiptAad.protocolVersion

[Source, line 39](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L39).

```ts theme={null}
protocolVersion: "tsn-private-receipt-v1"
```

### PrivateReceiptAad.receiptId

[Source, line 40](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L40).

```ts theme={null}
receiptId: string
```

### PrivateReceiptAad.operationId

[Source, line 41](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L41).

```ts theme={null}
operationId: string
```

### PrivateReceiptAad.tinCommitment

[Source, line 42](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L42).

```ts theme={null}
tinCommitment: string
```

### PrivateReceiptAad.encryptionVersion

[Source, line 43](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L43).

```ts theme={null}
encryptionVersion: "aes-256-gcm+x25519-hkdf-sha256-v1"
```

## ReceiptEncryptionRecipient

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/receipts`. [Implementation, line 32](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L32).

### ReceiptEncryptionRecipient.recipientKeyId

[Source, line 33](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L33).

```ts theme={null}
recipientKeyId: string
```

### ReceiptEncryptionRecipient.recipientType

[Source, line 34](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L34).

```ts theme={null}
recipientType: ReceiptKeyRecipientType
```

### ReceiptEncryptionRecipient.encryptionPublicKey

[Source, line 35](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L35).

```ts theme={null}
encryptionPublicKey: JsonWebKey
```

## ReceiptKeyEnvelope

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/receipts`. [Implementation, line 6](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L6).

### ReceiptKeyEnvelope.recipientKeyId

[Source, line 7](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L7).

```ts theme={null}
recipientKeyId: string
```

### ReceiptKeyEnvelope.recipientType

[Source, line 8](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L8).

```ts theme={null}
recipientType: ReceiptKeyRecipientType
```

### ReceiptKeyEnvelope.wrappedDek

[Source, line 9](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L9).

```ts theme={null}
wrappedDek: string
```

### ReceiptKeyEnvelope.algorithm

[Source, line 10](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L10).

```ts theme={null}
algorithm: "x25519-hkdf-sha256-aes-256-gcm-v1"
```

### ReceiptKeyEnvelope.ephemeralPublicKey

[Source, line 11](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L11).

```ts theme={null}
ephemeralPublicKey: JsonWebKey
```

### ReceiptKeyEnvelope.nonce

[Source, line 12](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L12).

```ts theme={null}
nonce: string
```

### ReceiptKeyEnvelope.createdAt

[Source, line 13](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L13).

```ts theme={null}
createdAt: string
```

### ReceiptKeyEnvelope.revokedAt

[Source, line 14](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L14).

```ts theme={null}
revokedAt: string | undefined
```

## ReceiptKeyRecipientType

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/receipts`. [Implementation, line 4](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L4).

```ts theme={null}
export type ReceiptKeyRecipientType = "device" | "recovery";
```

## TSN\_PRIVATE\_RECEIPT\_ENCRYPTION\_VERSION

Import from `@trustlink/tsn-sdk` or `@trustlink/tsn-sdk/receipts`. [Implementation, line 2](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/sdks/tsn-sdk/src/receipts/types.ts#L2).

```ts theme={null}
"aes-256-gcm+x25519-hkdf-sha256-v1"
```

## TSN\_PRIVATE\_RECEIPT\_PROTOCOL\_VERSION

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

```ts theme={null}
"tsn-private-receipt-v1"
```


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