UNPKG

@dfinity/oisy-wallet-signer

Version:

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

59 lines (58 loc) 2.76 kB
import * as z from 'zod'; export declare const RelyingPartyRequestOptionsTimeoutSchema: z.ZodObject<{ /** * Specifies the maximum duration in milliseconds for attempting to request an interaction with the relying party. * If the relying party does not answer within this duration, the process will time out. * Must be a positive number. */ timeoutInMilliseconds: z.ZodNumber; }, "strip", z.ZodTypeAny, { timeoutInMilliseconds: number; }, { timeoutInMilliseconds: number; }>; export declare const RelyingPartyRequestOptionsSchema: z.ZodObject<z.objectUtil.extendShape<{ /** * A custom identifier for the request, used to correlate responses with their corresponding requests. * * The relying party is expected to include this ID in its response, ensuring that the response can be accurately matched to the original request. * * If not provided, the library will generate a unique identifier automatically. */ requestId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { timeoutInMilliseconds: z.ZodOptional<z.ZodNumber>; }>, "strip", z.ZodTypeAny, { timeoutInMilliseconds?: number | undefined; requestId?: string | number | null | undefined; }, { timeoutInMilliseconds?: number | undefined; requestId?: string | number | null | undefined; }>; export type RelyingPartyRequestOptions = z.infer<typeof RelyingPartyRequestOptionsSchema>; export declare const RelyingPartyRequestOptionsWithTimeoutSchema: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{ /** * A custom identifier for the request, used to correlate responses with their corresponding requests. * * The relying party is expected to include this ID in its response, ensuring that the response can be accurately matched to the original request. * * If not provided, the library will generate a unique identifier automatically. */ requestId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>; }, { timeoutInMilliseconds: z.ZodOptional<z.ZodNumber>; }>, "timeoutInMilliseconds">, { /** * Specifies the maximum duration in milliseconds for attempting to request an interaction with the relying party. * If the relying party does not answer within this duration, the process will time out. * Must be a positive number. */ timeoutInMilliseconds: z.ZodNumber; }>, "strip", z.ZodTypeAny, { timeoutInMilliseconds: number; requestId?: string | number | null | undefined; }, { timeoutInMilliseconds: number; requestId?: string | number | null | undefined; }>; export type RelyingPartyRequestOptionsWithTimeout = z.infer<typeof RelyingPartyRequestOptionsWithTimeoutSchema>;