@ceramicnetwork/common
Version:
Ceramic common types and utilities
32 lines • 756 B
TypeScript
import type { DID } from 'dids';
import type { CeramicSigner } from './ceramic-signer.js';
export interface PinningOpts {
pin?: boolean;
}
export declare enum SyncOptions {
PREFER_CACHE = 0,
SYNC_ALWAYS = 1,
NEVER_SYNC = 2,
SYNC_ON_ERROR = 3
}
interface SyncOpts {
sync?: SyncOptions;
syncTimeoutSeconds?: number;
}
export interface LoadOpts extends SyncOpts {
atTime?: number;
}
export interface PublishOpts {
publish?: boolean;
}
export interface AnchorOpts {
anchor?: boolean;
}
export interface UpdateOpts extends PublishOpts, AnchorOpts {
asDID?: DID;
signer?: CeramicSigner;
}
export interface CreateOpts extends UpdateOpts, SyncOpts, PinningOpts {
}
export {};
//# sourceMappingURL=streamopts.d.ts.map