@ecp.eth/sdk / indexer/webhooks / MetadataSetOperationSchema
Variable: MetadataSetOperationSchema
const MetadataSetOperationSchema: ZodDiscriminatedUnion<"type", [ZodObject<{
key: ZodType<`0x${string}`, ZodTypeDef, `0x${string}`>;
type: ZodLiteral<"delete">;
}, "strip", ZodTypeAny, {
key: `0x${string}`;
type: "delete";
}, {
key: `0x${string}`;
type: "delete";
}>, ZodObject<{
key: ZodType<`0x${string}`, ZodTypeDef, `0x${string}`>;
type: ZodLiteral<"create">;
value: ZodType<`0x${string}`, ZodTypeDef, `0x${string}`>;
}, "strip", ZodTypeAny, {
key: `0x${string}`;
type: "create";
value: `0x${string}`;
}, {
key: `0x${string}`;
type: "create";
value: `0x${string}`;
}>, ZodObject<{
key: ZodType<`0x${string}`, ZodTypeDef, `0x${string}`>;
type: ZodLiteral<"update">;
value: ZodType<`0x${string}`, ZodTypeDef, `0x${string}`>;
}, "strip", ZodTypeAny, {
key: `0x${string}`;
type: "update";
value: `0x${string}`;
}, {
key: `0x${string}`;
type: "update";
value: `0x${string}`;
}>]>;
Defined in: packages/sdk/src/indexer/webhooks/schemas/shared.ts:80
Common schema for all metadata set operations.