@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
21 lines (20 loc) • 850 B
TypeScript
import { z } from "zod";
export declare const DataFileEnvelopeSchema: z.ZodObject<{
$schema: z.ZodOptional<z.ZodString>;
version: z.ZodLiteral<"1.0">;
scope: z.ZodString;
schemaId: z.ZodOptional<z.ZodString>;
collectedAt: z.ZodString;
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
}, z.core.$strip>;
export type DataFileEnvelope = z.infer<typeof DataFileEnvelopeSchema>;
export declare function createDataFileEnvelope(scope: string, collectedAt: string, data: Record<string, unknown>, schemaUrl?: string, schemaId?: string): DataFileEnvelope;
export declare const IngestResponseSchema: z.ZodObject<{
scope: z.ZodString;
collectedAt: z.ZodString;
status: z.ZodEnum<{
stored: "stored";
syncing: "syncing";
}>;
}, z.core.$strip>;
export type IngestResponse = z.infer<typeof IngestResponseSchema>;