@specify-sh/sdk
Version:
JS SDK for Specify Publishers
32 lines • 758 B
TypeScript
export interface SpecifyInitConfig {
publisherKey: string;
}
export declare enum ImageFormat {
LANDSCAPE = "LANDSCAPE",
SQUARE = "SQUARE",
LONG_BANNER = "LONG_BANNER",
SHORT_BANNER = "SHORT_BANNER",
NO_IMAGE = "NO_IMAGE"
}
export interface SpecifyAd {
walletAddress: string;
campaignId: string;
adId: string;
headline: string;
content: string;
ctaUrl: string;
ctaLabel: string;
imageUrl: string;
communityName: string;
communityLogo: string;
imageFormat: keyof typeof ImageFormat;
}
export interface APIErrorResponse {
error: string;
details?: Array<{
field: string;
message: string;
}>;
}
export type Address = `0x${string}`;
//# sourceMappingURL=types.d.ts.map