Skip to content

ContextType

ContextType = object

Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:57

One storage context affected by the planned upload.

dataSet: UploadDataSetState | null

Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:63

Existing state, or null when the upload creates a new data set.


pieceSizes: readonly bigint[]

Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:59

Exact raw payload size of every piece planned for this context, in bytes.


withCDN: boolean

Defined in: packages/synapse-core/src/utils/calculate-upload-costs.ts:61

Whether CDN is enabled for this context’s data set.