# sp

Service Provider HTTP Operations

## Example

```ts
import * as SP from '@filoz/synapse-core/sp'
```

## Namespaces

| Namespace | Description |
| ------ | ------ |
| [addPieces](/reference/filoz/synapse-core/sp/namespaces/addpieces/toc/) | - |
| [createDataSet](/reference/filoz/synapse-core/sp/namespaces/createdataset/toc/) | - |
| [createDataSetAndAddPieces](/reference/filoz/synapse-core/sp/namespaces/createdatasetandaddpieces/toc/) | - |
| [deletePiece](/reference/filoz/synapse-core/sp/namespaces/deletepiece/toc/) | - |
| [downloadPiece](/reference/filoz/synapse-core/sp/namespaces/downloadpiece/toc/) | - |
| [findPiece](/reference/filoz/synapse-core/sp/namespaces/findpiece/toc/) | - |
| [getDataSet](/reference/filoz/synapse-core/sp/namespaces/getdataset/toc/) | - |
| [getPiecesForDataSet](/reference/filoz/synapse-core/sp/namespaces/getpiecesfordataset/toc/) | - |
| [uploadPiece](/reference/filoz/synapse-core/sp/namespaces/uploadpiece/toc/) | - |
| [waitForAddPiecesStatus](/reference/filoz/synapse-core/sp/namespaces/waitforaddpiecesstatus/toc/) | - |
| [waitForDataSetCreationStatus](/reference/filoz/synapse-core/sp/namespaces/waitfordatasetcreationstatus/toc/) | - |

## Classes

| Class | Description |
| ------ | ------ |
| [AbortError](/reference/filoz/synapse-core/sp/classes/aborterror/) | - |
| [NetworkError](/reference/filoz/synapse-core/sp/classes/networkerror/) | - |
| [TimeoutError](/reference/filoz/synapse-core/sp/classes/timeouterror/) | - |

## Type Aliases

| Type Alias | Description |
| ------ | ------ |
| [AddPiecesResponse](/reference/filoz/synapse-core/sp/type-aliases/addpiecesresponse/) | - |
| [AddPiecesSuccess](/reference/filoz/synapse-core/sp/type-aliases/addpiecessuccess/) | - |
| [DataSetCreatedResponse](/reference/filoz/synapse-core/sp/type-aliases/datasetcreatedresponse/) | - |
| [DataSetCreateSuccess](/reference/filoz/synapse-core/sp/type-aliases/datasetcreatesuccess/) | - |
| [SPPiece](/reference/filoz/synapse-core/sp/type-aliases/sppiece/) | - |
| [SPPieceWithUrl](/reference/filoz/synapse-core/sp/type-aliases/sppiecewithurl/) | - |
| [UploadPieceResponse](/reference/filoz/synapse-core/sp/type-aliases/uploadpieceresponse/) | - |
| [UploadPieceStreamingOptions](/reference/filoz/synapse-core/sp/type-aliases/uploadpiecestreamingoptions/) | - |

## Functions

| Function | Description |
| ------ | ------ |
| [addPieces](/reference/filoz/synapse-core/sp/functions/addpieces/) | Add pieces to a data set on the PDP API. |
| [createDataSet](/reference/filoz/synapse-core/sp/functions/createdataset/) | Create a data set on PDP API |
| [createDataSetAndAddPieces](/reference/filoz/synapse-core/sp/functions/createdatasetandaddpieces/) | Create a data set and add pieces to it on PDP API |
| [deletePiece](/reference/filoz/synapse-core/sp/functions/deletepiece/) | Delete a piece from a data set on the PDP API. |
| [downloadPiece](/reference/filoz/synapse-core/sp/functions/downloadpiece/) | Download a piece and verify from the PDP API. |
| [findPiece](/reference/filoz/synapse-core/sp/functions/findpiece/) | Find a piece on the PDP API. |
| [getDataSet](/reference/filoz/synapse-core/sp/functions/getdataset/) | Get a data set from the PDP API. |
| [getPiecesForDataSet](/reference/filoz/synapse-core/sp/functions/getpiecesfordataset/) | Get the pieces for a data set from the PDP API. |
| [ping](/reference/filoz/synapse-core/sp/functions/ping/) | Ping the PDP API. |
| [resetDelayTime](/reference/filoz/synapse-core/sp/functions/resetdelaytime/) | - |
| [resetTimeout](/reference/filoz/synapse-core/sp/functions/resettimeout/) | - |
| [setDelayTime](/reference/filoz/synapse-core/sp/functions/setdelaytime/) | - |
| [setTimeout](/reference/filoz/synapse-core/sp/functions/settimeout/) | - |
| [uploadPiece](/reference/filoz/synapse-core/sp/functions/uploadpiece/) | Upload a piece to the PDP API. |
| [uploadPieceStreaming](/reference/filoz/synapse-core/sp/functions/uploadpiecestreaming/) | Upload piece data using the 3-step CommP-last streaming protocol. |
| [waitForAddPiecesStatus](/reference/filoz/synapse-core/sp/functions/waitforaddpiecesstatus/) | Wait for the add pieces status. |
| [waitForDataSetCreationStatus](/reference/filoz/synapse-core/sp/functions/waitfordatasetcreationstatus/) | Wait for the data set creation status. |