> ## Documentation Index
> Fetch the complete documentation index at: https://opentouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DataCollection - TypeScript SDK

> DataCollection type definition

<Warning>
  The TypeScript SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/typescript-sdk/issues).
</Warning>

Data collection setting. If no available model provider meets the requirement, your request will return an error.

* allow: (default) allow providers which store user data non-transiently and may train on it

* deny: use only providers which do not collect user data.

## Example Usage

```typescript lines theme={null}
import { DataCollection } from "@openrouter/sdk/models";

let value: DataCollection = "allow";

// Open enum: unrecognized values are captured as Unrecognized<string>
```

## Values

```typescript lines theme={null}
"deny" | "allow" | Unrecognized<string>
```
