# SelectionDataSet

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:14](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L14)

Dataset with piece-presence information used for provider selection.

Picks the fields that selectProviders() and findMatchingDataSets()
need, plus whether the data set contains at least one active piece.

A PdpDataSet satisfies this shape, so the PdpDataSet[] returned by
getPdpDataSets() can be passed as-is. fetchProviderSelectionInput()
does this, and the SDK uses that function for provider selection.

## Properties

### clientDataSetId

> **clientDataSetId**: `bigint`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:18](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L18)

Client-scoped data set ID, required when signing AddPieces for this data set

***

### dataSetId

> **dataSetId**: `bigint`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:16](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L16)

PDP Verifier data set ID

***

### hasActivePieces

> **hasActivePieces**: `boolean`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:24](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L24)

Whether the data set contains at least one active piece

***

### live

> **live**: `boolean`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:28](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L28)

Whether the data set is live in the PDP Verifier

***

### managed

> **managed**: `boolean`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:30](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L30)

Whether the data set is managed by the current Warm Storage contract

***

### metadata

> **metadata**: [`MetadataObject`](/reference/filoz/synapse-core/utils/type-aliases/metadataobject/)

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:22](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L22)

Data set metadata (key-value pairs)

***

### pdpEndEpoch

> **pdpEndEpoch**: `bigint`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:26](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L26)

End epoch for PDP service (0 = active)

***

### providerId

> **providerId**: `bigint`

Defined in: [packages/synapse-core/src/warm-storage/location-types.ts:20](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/warm-storage/location-types.ts#L20)

Provider that owns this data set