UNPKG

@dfinity/oisy-wallet-signer

Version:

A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.

31 lines (30 loc) 1.36 kB
import * as z from 'zod'; declare const SignerMessageEventDataSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc29_status">; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc25_request_permissions">; params: z.ZodObject<{ scopes: z.ZodArray<z.ZodObject<{ method: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc25_permissions">; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc25_supported_standards">; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc27_accounts">; }, z.core.$strict>]>>; export type SignerMessageEventData = z.infer<typeof SignerMessageEventDataSchema>; export type SignerMessageEvent = MessageEvent<SignerMessageEventData | never>; export {};