UNPKG

ox

Version:

Ethereum Standard Library

207 lines 10.9 kB
import * as z from 'zod/mini'; /** Zone RPC authentication version schema. */ export declare const Version: z.ZodMiniLiteral<0>; /** 29-byte fixed Zone RPC authentication field suffix schema. */ export declare const Fields: z.ZodMiniTemplateLiteral<`0x${string}`>; /** Hex-encoded serialized Zone RPC authentication token schema. */ export declare const Serialized: z.ZodMiniTemplateLiteral<`0x${string}`>; /** Unsigned Zone RPC authentication token schema. */ export declare const Unsigned: z.ZodMiniObject<{ chainId: z.ZodMiniNumber<number>; expiresAt: z.ZodMiniNumber<number>; issuedAt: z.ZodMiniNumber<number>; signature: z.ZodMiniOptional<z.ZodMiniUndefined>; version: z.ZodMiniLiteral<0>; zoneId: z.ZodMiniNumber<number>; }, z.core.$strip>; /** Signed Zone RPC authentication token schema. */ export declare const Signed: z.ZodMiniObject<{ chainId: z.ZodMiniNumber<number>; expiresAt: z.ZodMiniNumber<number>; issuedAt: z.ZodMiniNumber<number>; signature: z.ZodMiniUnion<readonly [z.ZodMiniObject<{ signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniNumber<number>; }, z.core.$strip>; type: z.ZodMiniLiteral<"secp256k1">; }, z.core.$strip>, z.ZodMiniObject<{ prehash: z.ZodMiniBoolean<boolean>; publicKey: z.ZodMiniObject<{ prefix: z.ZodMiniNumber<number>; x: z.ZodMiniTemplateLiteral<`0x${string}`>; y: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; type: z.ZodMiniLiteral<"p256">; }, z.core.$strip>, z.ZodMiniObject<{ metadata: z.ZodMiniObject<{ authenticatorData: z.ZodMiniTemplateLiteral<`0x${string}`>; clientDataJSON: z.ZodMiniString<string>; }, z.core.$strip>; publicKey: z.ZodMiniObject<{ prefix: z.ZodMiniNumber<number>; x: z.ZodMiniTemplateLiteral<`0x${string}`>; y: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; type: z.ZodMiniLiteral<"webAuthn">; }, z.core.$strip>, z.ZodMiniObject<{ inner: z.ZodMiniLazy<z.ZodMiniType<import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>, unknown, z.core.$ZodTypeInternals<import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>, unknown>>>; keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; type: z.ZodMiniLiteral<"keychain">; userAddress: z.ZodMiniTemplateLiteral<`0x${string}`>; version: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"v1">, z.ZodMiniLiteral<"v2">]>>; }, z.core.$strip>, z.ZodMiniObject<{ account: z.ZodMiniTemplateLiteral<`0x${string}`>; init: z.ZodMiniOptional<z.ZodMiniObject<{ salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; threshold: z.ZodMiniNumber<number>; owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ owner: z.ZodMiniTemplateLiteral<`0x${string}`>; weight: z.ZodMiniNumber<number>; }, z.core.$strip>>>; }, z.core.$strip>>; signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>; type: z.ZodMiniLiteral<"multisig">; }, z.core.$strip>]>; version: z.ZodMiniLiteral<0>; zoneId: z.ZodMiniNumber<number>; }, z.core.$strip>; /** Zone RPC authentication token schema. */ export declare const ZoneRpcAuthentication: z.ZodMiniUnion<readonly [z.ZodMiniObject<{ chainId: z.ZodMiniNumber<number>; expiresAt: z.ZodMiniNumber<number>; issuedAt: z.ZodMiniNumber<number>; signature: z.ZodMiniUnion<readonly [z.ZodMiniObject<{ signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniNumber<number>; }, z.core.$strip>; type: z.ZodMiniLiteral<"secp256k1">; }, z.core.$strip>, z.ZodMiniObject<{ prehash: z.ZodMiniBoolean<boolean>; publicKey: z.ZodMiniObject<{ prefix: z.ZodMiniNumber<number>; x: z.ZodMiniTemplateLiteral<`0x${string}`>; y: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; type: z.ZodMiniLiteral<"p256">; }, z.core.$strip>, z.ZodMiniObject<{ metadata: z.ZodMiniObject<{ authenticatorData: z.ZodMiniTemplateLiteral<`0x${string}`>; clientDataJSON: z.ZodMiniString<string>; }, z.core.$strip>; publicKey: z.ZodMiniObject<{ prefix: z.ZodMiniNumber<number>; x: z.ZodMiniTemplateLiteral<`0x${string}`>; y: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; type: z.ZodMiniLiteral<"webAuthn">; }, z.core.$strip>, z.ZodMiniObject<{ inner: z.ZodMiniLazy<z.ZodMiniType<import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>, unknown, z.core.$ZodTypeInternals<import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>, unknown>>>; keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; type: z.ZodMiniLiteral<"keychain">; userAddress: z.ZodMiniTemplateLiteral<`0x${string}`>; version: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"v1">, z.ZodMiniLiteral<"v2">]>>; }, z.core.$strip>, z.ZodMiniObject<{ account: z.ZodMiniTemplateLiteral<`0x${string}`>; init: z.ZodMiniOptional<z.ZodMiniObject<{ salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; threshold: z.ZodMiniNumber<number>; owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ owner: z.ZodMiniTemplateLiteral<`0x${string}`>; weight: z.ZodMiniNumber<number>; }, z.core.$strip>>>; }, z.core.$strip>>; signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>; type: z.ZodMiniLiteral<"multisig">; }, z.core.$strip>]>; version: z.ZodMiniLiteral<0>; zoneId: z.ZodMiniNumber<number>; }, z.core.$strip>, z.ZodMiniObject<{ chainId: z.ZodMiniNumber<number>; expiresAt: z.ZodMiniNumber<number>; issuedAt: z.ZodMiniNumber<number>; signature: z.ZodMiniOptional<z.ZodMiniUndefined>; version: z.ZodMiniLiteral<0>; zoneId: z.ZodMiniNumber<number>; }, z.core.$strip>]>; /** Codec decoding a serialized token into a signed Zone RPC authentication token. */ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniObject<{ chainId: z.ZodMiniNumber<number>; expiresAt: z.ZodMiniNumber<number>; issuedAt: z.ZodMiniNumber<number>; signature: z.ZodMiniUnion<readonly [z.ZodMiniObject<{ signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; yParity: z.ZodMiniNumber<number>; }, z.core.$strip>; type: z.ZodMiniLiteral<"secp256k1">; }, z.core.$strip>, z.ZodMiniObject<{ prehash: z.ZodMiniBoolean<boolean>; publicKey: z.ZodMiniObject<{ prefix: z.ZodMiniNumber<number>; x: z.ZodMiniTemplateLiteral<`0x${string}`>; y: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; type: z.ZodMiniLiteral<"p256">; }, z.core.$strip>, z.ZodMiniObject<{ metadata: z.ZodMiniObject<{ authenticatorData: z.ZodMiniTemplateLiteral<`0x${string}`>; clientDataJSON: z.ZodMiniString<string>; }, z.core.$strip>; publicKey: z.ZodMiniObject<{ prefix: z.ZodMiniNumber<number>; x: z.ZodMiniTemplateLiteral<`0x${string}`>; y: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; signature: z.ZodMiniObject<{ r: z.ZodMiniTemplateLiteral<`0x${string}`>; s: z.ZodMiniTemplateLiteral<`0x${string}`>; }, z.core.$strip>; type: z.ZodMiniLiteral<"webAuthn">; }, z.core.$strip>, z.ZodMiniObject<{ inner: z.ZodMiniLazy<z.ZodMiniType<import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>, unknown, z.core.$ZodTypeInternals<import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>, unknown>>>; keyId: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; type: z.ZodMiniLiteral<"keychain">; userAddress: z.ZodMiniTemplateLiteral<`0x${string}`>; version: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"v1">, z.ZodMiniLiteral<"v2">]>>; }, z.core.$strip>, z.ZodMiniObject<{ account: z.ZodMiniTemplateLiteral<`0x${string}`>; init: z.ZodMiniOptional<z.ZodMiniObject<{ salt: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>; threshold: z.ZodMiniNumber<number>; owners: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{ owner: z.ZodMiniTemplateLiteral<`0x${string}`>; weight: z.ZodMiniNumber<number>; }, z.core.$strip>>>; }, z.core.$strip>>; signatures: z.ZodMiniLazy<z.ZodMiniType<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown, z.core.$ZodTypeInternals<readonly import("../../tempo/SignatureEnvelope.js").SignatureEnvelope<number>[], unknown>>>; type: z.ZodMiniLiteral<"multisig">; }, z.core.$strip>]>; version: z.ZodMiniLiteral<0>; zoneId: z.ZodMiniNumber<number>; }, z.core.$strip>>; //# sourceMappingURL=ZoneRpcAuthentication.d.ts.map