@dscvr-one/canvas-interface
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -185,2 +185,34 @@ import * as zod from 'zod'; | ||
}>; | ||
declare const InitialInteractionRequestMessageSchema: zod.ZodObject<{ | ||
type: zod.ZodLiteral<"user:initial-interaction-request">; | ||
}, zod.UnknownKeysParam, zod.ZodTypeAny, { | ||
type: "user:initial-interaction-request"; | ||
}, { | ||
type: "user:initial-interaction-request"; | ||
}>; | ||
declare const ResizeRequestMessageSchema: zod.ZodObject<{ | ||
type: zod.ZodLiteral<"user:resize-request">; | ||
payload: zod.ZodObject<{ | ||
width: zod.ZodNumber; | ||
height: zod.ZodNumber; | ||
}, "strip", zod.ZodTypeAny, { | ||
width: number; | ||
height: number; | ||
}, { | ||
width: number; | ||
height: number; | ||
}>; | ||
}, zod.UnknownKeysParam, zod.ZodTypeAny, { | ||
type: "user:resize-request"; | ||
payload: { | ||
width: number; | ||
height: number; | ||
}; | ||
}, { | ||
type: "user:resize-request"; | ||
payload: { | ||
width: number; | ||
height: number; | ||
}; | ||
}>; | ||
declare const ConnectWalletResponseMessageSchema: zod.ZodObject<{ | ||
@@ -359,2 +391,6 @@ type: zod.ZodLiteral<"user:connect-wallet-response">; | ||
}>; | ||
interface InitialInteractionRequestMessage extends zod.infer<typeof InitialInteractionRequestMessageSchema> { | ||
} | ||
interface ResizeRequestMessage extends zod.infer<typeof ResizeRequestMessageSchema> { | ||
} | ||
interface ConnectWalletRequestMessage extends zod.infer<typeof ConnectWalletRequestMessageSchema> { | ||
@@ -376,4 +412,8 @@ } | ||
declare const user_ConnectWalletResponseMessageSchema: typeof ConnectWalletResponseMessageSchema; | ||
type user_InitialInteractionRequestMessage = InitialInteractionRequestMessage; | ||
declare const user_InitialInteractionRequestMessageSchema: typeof InitialInteractionRequestMessageSchema; | ||
type user_OpenLnkRequestMessage = OpenLnkRequestMessage; | ||
declare const user_OpenLnkRequestMessageSchema: typeof OpenLnkRequestMessageSchema; | ||
type user_ResizeRequestMessage = ResizeRequestMessage; | ||
declare const user_ResizeRequestMessageSchema: typeof ResizeRequestMessageSchema; | ||
type user_SignAndSendTransactionRequestMessage = SignAndSendTransactionRequestMessage; | ||
@@ -386,3 +426,3 @@ declare const user_SignAndSendTransactionRequestMessageSchema: typeof SignAndSendTransactionRequestMessageSchema; | ||
declare namespace user { | ||
export { type user_ConnectWalletRequestMessage as ConnectWalletRequestMessage, user_ConnectWalletRequestMessageSchema as ConnectWalletRequestMessageSchema, type user_ConnectWalletResponseMessage as ConnectWalletResponseMessage, user_ConnectWalletResponseMessageSchema as ConnectWalletResponseMessageSchema, type user_OpenLnkRequestMessage as OpenLnkRequestMessage, user_OpenLnkRequestMessageSchema as OpenLnkRequestMessageSchema, type user_SignAndSendTransactionRequestMessage as SignAndSendTransactionRequestMessage, user_SignAndSendTransactionRequestMessageSchema as SignAndSendTransactionRequestMessageSchema, type user_SignAndSendTransactionResponseMessage as SignAndSendTransactionResponseMessage, user_SignAndSendTransactionResponseMessageSchema as SignAndSendTransactionResponseMessageSchema, type user_UnsignedTransaction as UnsignedTransaction, user_UnsignedTransactionSchema as UnsignedTransactionSchema }; | ||
export { type user_ConnectWalletRequestMessage as ConnectWalletRequestMessage, user_ConnectWalletRequestMessageSchema as ConnectWalletRequestMessageSchema, type user_ConnectWalletResponseMessage as ConnectWalletResponseMessage, user_ConnectWalletResponseMessageSchema as ConnectWalletResponseMessageSchema, type user_InitialInteractionRequestMessage as InitialInteractionRequestMessage, user_InitialInteractionRequestMessageSchema as InitialInteractionRequestMessageSchema, type user_OpenLnkRequestMessage as OpenLnkRequestMessage, user_OpenLnkRequestMessageSchema as OpenLnkRequestMessageSchema, type user_ResizeRequestMessage as ResizeRequestMessage, user_ResizeRequestMessageSchema as ResizeRequestMessageSchema, type user_SignAndSendTransactionRequestMessage as SignAndSendTransactionRequestMessage, user_SignAndSendTransactionRequestMessageSchema as SignAndSendTransactionRequestMessageSchema, type user_SignAndSendTransactionResponseMessage as SignAndSendTransactionResponseMessage, user_SignAndSendTransactionResponseMessageSchema as SignAndSendTransactionResponseMessageSchema, type user_UnsignedTransaction as UnsignedTransaction, user_UnsignedTransactionSchema as UnsignedTransactionSchema }; | ||
} | ||
@@ -410,2 +450,32 @@ | ||
}>, zod.ZodObject<{ | ||
type: zod.ZodLiteral<"user:initial-interaction-request">; | ||
}, zod.UnknownKeysParam, zod.ZodTypeAny, { | ||
type: "user:initial-interaction-request"; | ||
}, { | ||
type: "user:initial-interaction-request"; | ||
}>, zod.ZodObject<{ | ||
type: zod.ZodLiteral<"user:resize-request">; | ||
payload: zod.ZodObject<{ | ||
width: zod.ZodNumber; | ||
height: zod.ZodNumber; | ||
}, "strip", zod.ZodTypeAny, { | ||
width: number; | ||
height: number; | ||
}, { | ||
width: number; | ||
height: number; | ||
}>; | ||
}, zod.UnknownKeysParam, zod.ZodTypeAny, { | ||
type: "user:resize-request"; | ||
payload: { | ||
width: number; | ||
height: number; | ||
}; | ||
}, { | ||
type: "user:resize-request"; | ||
payload: { | ||
width: number; | ||
height: number; | ||
}; | ||
}>, zod.ZodObject<{ | ||
type: zod.ZodLiteral<"user:connect-wallet-request">; | ||
@@ -673,3 +743,3 @@ payload: zod.ZodObject<{ | ||
}>]>; | ||
declare const ClientMessageTypeSchema: zod.ZodEnum<["lifecycle:init-request" | "user:connect-wallet-request" | "user:sign-send-transaction-request" | "user:open-link-request", ...("lifecycle:init-request" | "user:connect-wallet-request" | "user:sign-send-transaction-request" | "user:open-link-request")[]]>; | ||
declare const ClientMessageTypeSchema: zod.ZodEnum<["lifecycle:init-request" | "user:connect-wallet-request" | "user:initial-interaction-request" | "user:resize-request" | "user:sign-send-transaction-request" | "user:open-link-request", ...("lifecycle:init-request" | "user:connect-wallet-request" | "user:initial-interaction-request" | "user:resize-request" | "user:sign-send-transaction-request" | "user:open-link-request")[]]>; | ||
declare const HostMessageTypeSchema: zod.ZodEnum<["lifecycle:init-response" | "lifecycle:close" | "user:connect-wallet-response" | "user:sign-send-transaction-response", ...("lifecycle:init-response" | "lifecycle:close" | "user:connect-wallet-response" | "user:sign-send-transaction-response")[]]>; | ||
@@ -676,0 +746,0 @@ type ClientMessage = zod.infer<typeof ClientMessageSchema>; |
@@ -76,3 +76,5 @@ var __defProp = Object.defineProperty; | ||
ConnectWalletResponseMessageSchema: () => ConnectWalletResponseMessageSchema, | ||
InitialInteractionRequestMessageSchema: () => InitialInteractionRequestMessageSchema, | ||
OpenLnkRequestMessageSchema: () => OpenLnkRequestMessageSchema, | ||
ResizeRequestMessageSchema: () => ResizeRequestMessageSchema, | ||
SignAndSendTransactionRequestMessageSchema: () => SignAndSendTransactionRequestMessageSchema, | ||
@@ -89,2 +91,12 @@ SignAndSendTransactionResponseMessageSchema: () => SignAndSendTransactionResponseMessageSchema, | ||
); | ||
var InitialInteractionRequestMessageSchema = createClientMessageSchema( | ||
"user:initial-interaction-request" | ||
); | ||
var ResizeRequestMessageSchema = createClientMessageSchema( | ||
"user:resize-request", | ||
zod3.object({ | ||
width: zod3.number(), | ||
height: zod3.number() | ||
}) | ||
); | ||
var ConnectWalletResponseMessageSchema = createHostMessageSchema( | ||
@@ -141,2 +153,4 @@ "user:connect-wallet-response", | ||
InitRequestMessageSchema, | ||
InitialInteractionRequestMessageSchema, | ||
ResizeRequestMessageSchema, | ||
ConnectWalletRequestMessageSchema, | ||
@@ -143,0 +157,0 @@ SignAndSendTransactionRequestMessageSchema, |
{ | ||
"name": "@dscvr-one/canvas-interface", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Types for iframes to interact with dscvr", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91383
1204