UNPKG

@dfinity/oisy-wallet-signer

Version:

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

129 lines (128 loc) 4.27 kB
import * as z from 'zod'; declare const SignerMessageEventDataSchema: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; }>, { method: z.ZodString; params: z.ZodOptional<z.ZodAny>; }>, "method" | "params">, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc29_status">; }>, "strict", z.ZodTypeAny, { id: string | number | null; method: "icrc29_status"; jsonrpc: "2.0"; }, { id: string | number | null; method: "icrc29_status"; jsonrpc: "2.0"; }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; }>, { method: z.ZodString; params: z.ZodOptional<z.ZodAny>; }>, "method">, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc25_request_permissions">; }>, { params: z.ZodObject<{ scopes: z.ZodArray<z.ZodObject<{ method: z.ZodString; }, "strip", z.ZodTypeAny, { method: string; }, { method: string; }>, "many">; }, "strip", z.ZodTypeAny, { scopes: { method: string; }[]; }, { scopes: { method: string; }[]; }>; }>, "strip", z.ZodTypeAny, { id: string | number | null; method: "icrc25_request_permissions"; params: { scopes: { method: string; }[]; }; jsonrpc: "2.0"; }, { id: string | number | null; method: "icrc25_request_permissions"; params: { scopes: { method: string; }[]; }; jsonrpc: "2.0"; }>, z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; }>, { method: z.ZodString; params: z.ZodOptional<z.ZodAny>; }>, "method" | "params">, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc25_permissions">; }>, "strict", z.ZodTypeAny, { id: string | number | null; method: "icrc25_permissions"; jsonrpc: "2.0"; }, { id: string | number | null; method: "icrc25_permissions"; jsonrpc: "2.0"; }>, z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; }>, { method: z.ZodString; params: z.ZodOptional<z.ZodAny>; }>, "method" | "params">, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc25_supported_standards">; }>, "strict", z.ZodTypeAny, { id: string | number | null; method: "icrc25_supported_standards"; jsonrpc: "2.0"; }, { id: string | number | null; method: "icrc25_supported_standards"; jsonrpc: "2.0"; }>, z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<z.objectUtil.extendShape<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; }>, { method: z.ZodString; params: z.ZodOptional<z.ZodAny>; }>, "method" | "params">, { id: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>; method: z.ZodLiteral<"icrc27_accounts">; }>, "strict", z.ZodTypeAny, { id: string | number | null; method: "icrc27_accounts"; jsonrpc: "2.0"; }, { id: string | number | null; method: "icrc27_accounts"; jsonrpc: "2.0"; }>]>>; export type SignerMessageEventData = z.infer<typeof SignerMessageEventDataSchema>; export type SignerMessageEvent = MessageEvent<SignerMessageEventData | never>; export {};