|
| 1 | +import type { getDataSetPieces, getDetailedDataSet, listDataSets } from './core/data-set/index.js' |
| 2 | +import type { getPaymentStatus, validatePaymentCapacity } from './core/payments/index.js' |
| 3 | +import type { cleanupSynapseService, setupSynapse } from './core/synapse/index.js' |
| 4 | +import type { createCarFromFile, createCarFromFiles } from './core/unixfs/browser-car-builder.js' |
| 5 | +import type { createCarFromPath } from './core/unixfs/car-builder.js' |
| 6 | +import type { checkUploadReadiness, executeUpload } from './core/upload/index.js' |
| 7 | + |
| 8 | +export interface FilecoinPinAPI { |
| 9 | + getDataSetPieces: typeof getDataSetPieces |
| 10 | + getDetailedDataSet: typeof getDetailedDataSet |
| 11 | + listDataSets: typeof listDataSets |
| 12 | + getPaymentStatus: typeof getPaymentStatus |
| 13 | + validatePaymentCapacity: typeof validatePaymentCapacity |
| 14 | + cleanupSynapseService: typeof cleanupSynapseService |
| 15 | + setupSynapse: typeof setupSynapse |
| 16 | + createCarFromFile: typeof createCarFromFile |
| 17 | + createCarFromFiles: typeof createCarFromFiles |
| 18 | + createCarFromPath: typeof createCarFromPath |
| 19 | + checkUploadReadiness: typeof checkUploadReadiness |
| 20 | + executeUpload: typeof executeUpload |
| 21 | +} |
| 22 | + |
| 23 | +export type { ProviderInfo } from '@filoz/synapse-sdk' |
| 24 | +export type { |
| 25 | + DataSetPiecesResult, |
| 26 | + DataSetSummary, |
| 27 | + GetDataSetPiecesOptions, |
| 28 | + ListDataSetsOptions, |
| 29 | + PieceInfo, |
| 30 | + Warning as DataSetWarning, |
| 31 | +} from './core/data-set/index.js' |
| 32 | +export type { PaymentCapacityCheck, PaymentStatus } from './core/payments/index.js' |
| 33 | +export type { |
| 34 | + CreateStorageContextOptions, |
| 35 | + DatasetOptions, |
| 36 | + SynapseService, |
| 37 | + SynapseSetupConfig, |
| 38 | +} from './core/synapse/index.js' |
| 39 | +export type { CreateCarOptions, CreateCarResult } from './core/unixfs/car-builder.js' |
| 40 | +export type { |
| 41 | + SynapseUploadOptions, |
| 42 | + SynapseUploadResult, |
| 43 | + UploadExecutionOptions, |
| 44 | + UploadExecutionResult, |
| 45 | + UploadProgressEvents, |
| 46 | + UploadReadinessOptions, |
| 47 | + UploadReadinessResult, |
| 48 | +} from './core/upload/index.js' |
0 commit comments