Skip to content

StorageContextCreateOptions

Defined in: packages/synapse-sdk/src/types.ts:302

Options for creating or selecting a single storage context via createContext()

Extends BaseContextOptions with singular provider/dataset selection.

optional callbacks: StorageContextCallbacks

Defined in: packages/synapse-sdk/src/types.ts:257

Callbacks for creation process

StorageServiceOptions.callbacks


optional dataSetId: bigint

Defined in: packages/synapse-sdk/src/types.ts:299

Specific data set ID to use (optional)

StorageServiceOptions.dataSetId


optional excludeProviderIds: bigint[]

Defined in: packages/synapse-sdk/src/types.ts:297

Do not select any of these providers

StorageServiceOptions.excludeProviderIds


optional metadata: Record<string, string>

Defined in: packages/synapse-sdk/src/types.ts:254

Custom metadata for data sets (key-value pairs). Used to match existing data sets during provider selection.

StorageServiceOptions.metadata


optional providerId: bigint

Defined in: packages/synapse-sdk/src/types.ts:295

Specific provider ID to use (optional)

StorageServiceOptions.providerId


synapse: Synapse

Defined in: packages/synapse-sdk/src/types.ts:304

The Synapse instance


warmStorageService: WarmStorageService

Defined in: packages/synapse-sdk/src/types.ts:306

The WarmStorageService instance


optional withCDN: boolean

Defined in: packages/synapse-sdk/src/types.ts:248

Whether to enable CDN services

StorageServiceOptions.withCDN