@nexeraprotocol/nexera-id-schemas
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -143,26 +143,8 @@ import { z } from "zod"; | ||
}>; | ||
export declare const MetatxMessageSchema: z.ZodUnion<[z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
export declare const MetatxMessageSchema: z.ZodObject<{ | ||
userNonce: z.ZodOptional<z.ZodString>; | ||
userDeadline: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}, { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}>, z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
@@ -173,5 +155,10 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
nonce: z.ZodOptional<z.ZodNumber>; | ||
data: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
from?: string | undefined; | ||
@@ -184,3 +171,7 @@ to?: string | undefined; | ||
data: string; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
chainId?: unknown; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
from?: string | undefined; | ||
@@ -191,3 +182,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
}>]>; | ||
}>; | ||
export declare const MetatxBodySchema: z.ZodObject<{ | ||
@@ -269,26 +260,8 @@ domain: z.ZodObject<{ | ||
primaryType: z.ZodOptional<z.ZodEnum<["EIP712Domain", "SponsoredCallERC2771", "ForwardRequest"]>>; | ||
message: z.ZodUnion<[z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
message: z.ZodObject<{ | ||
userNonce: z.ZodOptional<z.ZodString>; | ||
userDeadline: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}, { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}>, z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
@@ -299,5 +272,10 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
nonce: z.ZodOptional<z.ZodNumber>; | ||
data: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
from?: string | undefined; | ||
@@ -310,20 +288,7 @@ to?: string | undefined; | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}>]>; | ||
}, "strip", z.ZodTypeAny, { | ||
message: ({ | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
chainId?: unknown; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -334,3 +299,5 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
message: { | ||
data: string; | ||
@@ -342,5 +309,2 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -351,3 +315,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
domain: { | ||
@@ -375,27 +339,9 @@ name: string; | ||
}, { | ||
message: ({ | ||
message: { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
@@ -406,3 +352,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
domain: { | ||
@@ -543,26 +489,8 @@ name: string; | ||
primaryType: z.ZodOptional<z.ZodEnum<["EIP712Domain", "SponsoredCallERC2771", "ForwardRequest"]>>; | ||
message: z.ZodUnion<[z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
message: z.ZodObject<{ | ||
userNonce: z.ZodOptional<z.ZodString>; | ||
userDeadline: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}, { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}>, z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
@@ -573,5 +501,10 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
nonce: z.ZodOptional<z.ZodNumber>; | ||
data: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
from?: string | undefined; | ||
@@ -584,20 +517,7 @@ to?: string | undefined; | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}>]>; | ||
}, "strip", z.ZodTypeAny, { | ||
message: ({ | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
chainId?: unknown; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -608,3 +528,5 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
message: { | ||
data: string; | ||
@@ -616,5 +538,2 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -625,3 +544,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
domain: { | ||
@@ -649,27 +568,9 @@ name: string; | ||
}, { | ||
message: ({ | ||
message: { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
@@ -680,3 +581,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
domain: { | ||
@@ -743,3 +644,3 @@ name: string; | ||
metatx: { | ||
message: ({ | ||
message: { | ||
data: string; | ||
@@ -751,5 +652,2 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -760,18 +658,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
domain: { | ||
@@ -812,27 +695,9 @@ name: string; | ||
metatx: { | ||
message: ({ | ||
message: { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
@@ -843,3 +708,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
domain: { | ||
@@ -880,26 +745,8 @@ name: string; | ||
export declare const MetatxSignedSchema: z.ZodObject<{ | ||
message: z.ZodUnion<[z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
message: z.ZodObject<{ | ||
userNonce: z.ZodOptional<z.ZodString>; | ||
userDeadline: z.ZodOptional<z.ZodString>; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}, { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
}>, z.ZodObject<{ | ||
data: z.ZodString; | ||
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>; | ||
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
@@ -910,5 +757,10 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; | ||
nonce: z.ZodOptional<z.ZodNumber>; | ||
data: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
from?: string | undefined; | ||
@@ -921,21 +773,7 @@ to?: string | undefined; | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}>]>; | ||
signature: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
message: ({ | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
chainId?: unknown; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -946,3 +784,6 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
}>; | ||
signature: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
message: { | ||
data: string; | ||
@@ -954,5 +795,2 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI; | ||
from?: string | undefined; | ||
@@ -963,30 +801,12 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
signature: string; | ||
}, { | ||
message: ({ | ||
message: { | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
to?: string | undefined; | ||
value?: number | undefined; | ||
gas?: number | undefined; | ||
nonce?: number | undefined; | ||
}) & ({ | ||
data: string; | ||
chainId?: unknown; | ||
userNonce?: string | undefined; | ||
userDeadline?: string | undefined; | ||
target?: string | undefined; | ||
user?: string | undefined; | ||
} | { | ||
data: string; | ||
chainId?: unknown; | ||
from?: string | undefined; | ||
@@ -997,3 +817,3 @@ to?: string | undefined; | ||
nonce?: number | undefined; | ||
} | undefined); | ||
}; | ||
signature: string; | ||
@@ -1000,0 +820,0 @@ }>; |
{ | ||
"name": "@nexeraprotocol/nexera-id-schemas", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js", |
@@ -44,3 +44,17 @@ 'use strict'; | ||
}); | ||
var MetatxMessageSchema = zod.z.union([SponsoredMetatxMessageSchema, ForwardMetatxMessageSchema]); | ||
var MetatxMessageSchema = zod.z.object({ | ||
// SponsoredCallERC2771 | ||
userNonce: zod.z.string().optional(), | ||
userDeadline: zod.z.string().optional(), | ||
chainId: dist_nexeraprotocolNexeraIdSchemas.ChainIdSchema, | ||
target: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
user: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
// ForwardRequest | ||
from: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
to: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
value: zod.z.number().optional(), | ||
gas: zod.z.number().optional(), | ||
nonce: zod.z.number().optional(), | ||
data: zod.z.string() | ||
}); | ||
var MetatxBodySchema = zod.z.object({ | ||
@@ -47,0 +61,0 @@ domain: MetatxDomainSchema, |
@@ -44,3 +44,17 @@ 'use strict'; | ||
}); | ||
var MetatxMessageSchema = zod.z.union([SponsoredMetatxMessageSchema, ForwardMetatxMessageSchema]); | ||
var MetatxMessageSchema = zod.z.object({ | ||
// SponsoredCallERC2771 | ||
userNonce: zod.z.string().optional(), | ||
userDeadline: zod.z.string().optional(), | ||
chainId: dist_nexeraprotocolNexeraIdSchemas.ChainIdSchema, | ||
target: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
user: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
// ForwardRequest | ||
from: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
to: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(), | ||
value: zod.z.number().optional(), | ||
gas: zod.z.number().optional(), | ||
nonce: zod.z.number().optional(), | ||
data: zod.z.string() | ||
}); | ||
var MetatxBodySchema = zod.z.object({ | ||
@@ -47,0 +61,0 @@ domain: MetatxDomainSchema, |
@@ -40,3 +40,17 @@ import { z } from 'zod'; | ||
}); | ||
var MetatxMessageSchema = z.union([SponsoredMetatxMessageSchema, ForwardMetatxMessageSchema]); | ||
var MetatxMessageSchema = z.object({ | ||
// SponsoredCallERC2771 | ||
userNonce: z.string().optional(), | ||
userDeadline: z.string().optional(), | ||
chainId: ChainIdSchema, | ||
target: AddressSchema.optional(), | ||
user: AddressSchema.optional(), | ||
// ForwardRequest | ||
from: AddressSchema.optional(), | ||
to: AddressSchema.optional(), | ||
value: z.number().optional(), | ||
gas: z.number().optional(), | ||
nonce: z.number().optional(), | ||
data: z.string() | ||
}); | ||
var MetatxBodySchema = z.object({ | ||
@@ -43,0 +57,0 @@ domain: MetatxDomainSchema, |
{ | ||
"name": "@nexeraprotocol/nexera-id-schemas", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js", |
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
1273036
26103