import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { StorageStatus, StorageStatus$Outbound } from "./storagestatus.js"; /** * Video Metadata EIP-712 primaryType */ export declare enum PrimaryType { VideoAttestation = "VideoAttestation" } export declare enum Name { VerifiableVideo = "Verifiable Video" } export declare enum Version { One = "1" } /** * Video Metadata EIP-712 domain */ export type Domain = { name: Name; version: Version; }; export type Attestations = { role: string; address: string; }; /** * Video Metadata EIP-712 message content */ export type Message = { video: string; attestations: Array; signer: string; timestamp: number; }; export declare enum SignatureType { Eip712 = "eip712", Flow = "flow" } export type AttestationIpfs = { dollarRef?: any | undefined; /** * Timestamp (in milliseconds) at which IPFS export task was updated * * @remarks */ updatedAt?: number | undefined; }; export type AttestationStorage = { ipfs?: AttestationIpfs | undefined; status?: StorageStatus | undefined; }; export type Attestation = { id?: string | undefined; /** * Video Metadata EIP-712 primaryType */ primaryType: PrimaryType; /** * Video Metadata EIP-712 domain */ domain: Domain; /** * Video Metadata EIP-712 message content */ message: Message; /** * Video Metadata EIP-712 message signature */ signature: string; /** * Timestamp (in milliseconds) at which the object was created */ createdAt?: number | undefined; signatureType?: SignatureType | undefined; storage?: AttestationStorage | undefined; }; /** @internal */ export declare const PrimaryType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PrimaryType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PrimaryType$ { /** @deprecated use `PrimaryType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `PrimaryType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const Name$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Name$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Name$ { /** @deprecated use `Name$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `Name$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const Version$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Version$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Version$ { /** @deprecated use `Version$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `Version$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const Domain$inboundSchema: z.ZodType; /** @internal */ export type Domain$Outbound = { name: string; version: string; }; /** @internal */ export declare const Domain$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Domain$ { /** @deprecated use `Domain$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Domain$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Domain$Outbound` instead. */ type Outbound = Domain$Outbound; } export declare function domainToJSON(domain: Domain): string; export declare function domainFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Attestations$inboundSchema: z.ZodType; /** @internal */ export type Attestations$Outbound = { role: string; address: string; }; /** @internal */ export declare const Attestations$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Attestations$ { /** @deprecated use `Attestations$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Attestations$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Attestations$Outbound` instead. */ type Outbound = Attestations$Outbound; } export declare function attestationsToJSON(attestations: Attestations): string; export declare function attestationsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Message$inboundSchema: z.ZodType; /** @internal */ export type Message$Outbound = { video: string; attestations: Array; signer: string; timestamp: number; }; /** @internal */ export declare const Message$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Message$ { /** @deprecated use `Message$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Message$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Message$Outbound` instead. */ type Outbound = Message$Outbound; } export declare function messageToJSON(message: Message): string; export declare function messageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SignatureType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SignatureType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SignatureType$ { /** @deprecated use `SignatureType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `SignatureType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const AttestationIpfs$inboundSchema: z.ZodType; /** @internal */ export type AttestationIpfs$Outbound = { $ref?: any | undefined; updatedAt?: number | undefined; }; /** @internal */ export declare const AttestationIpfs$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AttestationIpfs$ { /** @deprecated use `AttestationIpfs$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AttestationIpfs$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AttestationIpfs$Outbound` instead. */ type Outbound = AttestationIpfs$Outbound; } export declare function attestationIpfsToJSON(attestationIpfs: AttestationIpfs): string; export declare function attestationIpfsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AttestationStorage$inboundSchema: z.ZodType; /** @internal */ export type AttestationStorage$Outbound = { ipfs?: AttestationIpfs$Outbound | undefined; status?: StorageStatus$Outbound | undefined; }; /** @internal */ export declare const AttestationStorage$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AttestationStorage$ { /** @deprecated use `AttestationStorage$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AttestationStorage$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AttestationStorage$Outbound` instead. */ type Outbound = AttestationStorage$Outbound; } export declare function attestationStorageToJSON(attestationStorage: AttestationStorage): string; export declare function attestationStorageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Attestation$inboundSchema: z.ZodType; /** @internal */ export type Attestation$Outbound = { id?: string | undefined; primaryType: string; domain: Domain$Outbound; message: Message$Outbound; signature: string; createdAt?: number | undefined; signatureType?: string | undefined; storage?: AttestationStorage$Outbound | undefined; }; /** @internal */ export declare const Attestation$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Attestation$ { /** @deprecated use `Attestation$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Attestation$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Attestation$Outbound` instead. */ type Outbound = Attestation$Outbound; } export declare function attestationToJSON(attestation: Attestation): string; export declare function attestationFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=attestation.d.ts.map