UNPKG

@dfinity/oisy-wallet-signer

Version:

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

50 lines (49 loc) 1.8 kB
import * as z from 'zod'; declare const RelyingPartyMessageEventDataSchema: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["ICRC-21", "ICRC-25", "ICRC-27", "ICRC-29", "ICRC-49"]>; url: z.ZodEffects<z.ZodString, string, string>; }, "strict", z.ZodTypeAny, { url: string; name: "ICRC-21" | "ICRC-25" | "ICRC-27" | "ICRC-29" | "ICRC-49"; }, { url: string; name: "ICRC-21" | "ICRC-25" | "ICRC-27" | "ICRC-29" | "ICRC-49"; }>, "many">, z.ZodObject<{ scopes: z.ZodArray<z.ZodObject<{ scope: z.ZodObject<{ method: z.ZodEnum<["icrc27_accounts", "icrc49_call_canister"]>; }, "strip", z.ZodTypeAny, { method: "icrc27_accounts" | "icrc49_call_canister"; }, { method: "icrc27_accounts" | "icrc49_call_canister"; }>; state: z.ZodEnum<["granted", "denied", "ask_on_use"]>; }, "strict", z.ZodTypeAny, { state: "denied" | "granted" | "ask_on_use"; scope: { method: "icrc27_accounts" | "icrc49_call_canister"; }; }, { state: "denied" | "granted" | "ask_on_use"; scope: { method: "icrc27_accounts" | "icrc49_call_canister"; }; }>, "many">; }, "strict", z.ZodTypeAny, { scopes: { state: "denied" | "granted" | "ask_on_use"; scope: { method: "icrc27_accounts" | "icrc49_call_canister"; }; }[]; }, { scopes: { state: "denied" | "granted" | "ask_on_use"; scope: { method: "icrc27_accounts" | "icrc49_call_canister"; }; }[]; }>]>>; export type RelyingPartyMessageEventData = z.infer<typeof RelyingPartyMessageEventDataSchema>; export type RelyingPartyMessageEvent = MessageEvent<RelyingPartyMessageEventData | never>; export {};