@dfinity/oisy-wallet-signer
Version:
A library designed to facilitate communication between a dApp and the OISY Wallet on the Internet Computer.
42 lines (41 loc) • 1.37 kB
TypeScript
import * as z from 'zod';
export declare const SessionTimestampsSchema: z.ZodObject<{
createdAt: z.ZodNumber;
updatedAt: z.ZodNumber;
}, z.core.$strip>;
export declare const SessionIcrcScopeSchema: z.ZodObject<{
scope: z.ZodObject<{
method: z.ZodEnum<{
icrc27_accounts: "icrc27_accounts";
icrc49_call_canister: "icrc49_call_canister";
}>;
}, z.core.$strip>;
state: z.ZodEnum<{
denied: "denied";
granted: "granted";
ask_on_use: "ask_on_use";
}>;
createdAt: z.ZodNumber;
updatedAt: z.ZodNumber;
}, z.core.$strip>;
export type SessionIcrcScope = z.infer<typeof SessionIcrcScopeSchema>;
export declare const SessionPermissionsSchema: z.ZodObject<{
scopes: z.ZodArray<z.ZodObject<{
scope: z.ZodObject<{
method: z.ZodEnum<{
icrc27_accounts: "icrc27_accounts";
icrc49_call_canister: "icrc49_call_canister";
}>;
}, z.core.$strip>;
state: z.ZodEnum<{
denied: "denied";
granted: "granted";
ask_on_use: "ask_on_use";
}>;
createdAt: z.ZodNumber;
updatedAt: z.ZodNumber;
}, z.core.$strip>>;
createdAt: z.ZodNumber;
updatedAt: z.ZodNumber;
}, z.core.$strip>;
export type SessionPermissions = z.infer<typeof SessionPermissionsSchema>;