ContextCreateContextsOptions
Defined in: packages/synapse-sdk/src/types.ts:281
Options for creating multiple storage contexts via createContexts()
Extends BaseContextOptions with plural provider/dataset selection and count for multi-provider redundancy.
Extends
Section titled “Extends”Properties
Section titled “Properties”callbacks?
Section titled “callbacks?”
optionalcallbacks:StorageContextCallbacks
Defined in: packages/synapse-sdk/src/types.ts:257
Callbacks for creation process
Inherited from
Section titled “Inherited from”CreateContextsOptions.callbacks
count?
Section titled “count?”
optionalcount:number
Defined in: packages/synapse-sdk/src/types.ts:268
Number of contexts to create (optional, defaults to 2)
Inherited from
Section titled “Inherited from”dataSetIds?
Section titled “dataSetIds?”
optionaldataSetIds:bigint[]
Defined in: packages/synapse-sdk/src/types.ts:272
Specific data set IDs to use (mutually exclusive with providerIds)
Inherited from
Section titled “Inherited from”CreateContextsOptions.dataSetIds
excludeProviderIds?
Section titled “excludeProviderIds?”
optionalexcludeProviderIds:bigint[]
Defined in: packages/synapse-sdk/src/types.ts:278
Do not select any of these providers
Inherited from
Section titled “Inherited from”CreateContextsOptions.excludeProviderIds
metadata?
Section titled “metadata?”
optionalmetadata: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.
Inherited from
Section titled “Inherited from”CreateContextsOptions.metadata
providerIds?
Section titled “providerIds?”
optionalproviderIds:bigint[]
Defined in: packages/synapse-sdk/src/types.ts:276
Specific provider IDs to use (mutually exclusive with dataSetIds)
Inherited from
Section titled “Inherited from”CreateContextsOptions.providerIds
synapse
Section titled “synapse”synapse:
Synapse
Defined in: packages/synapse-sdk/src/types.ts:283
The Synapse instance
warmStorageService
Section titled “warmStorageService”warmStorageService:
WarmStorageService
Defined in: packages/synapse-sdk/src/types.ts:285
The WarmStorageService instance
withCDN?
Section titled “withCDN?”
optionalwithCDN:boolean
Defined in: packages/synapse-sdk/src/types.ts:248
Whether to enable CDN services