Skip to content

Commit 012f3de

Browse files
committed
Update service-utils event publishing to accept any source (#5162)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `usageEventSchema` in `packages/service-utils/src/core/usage.ts` by changing the type of the `source` field from an enumeration to a string, allowing for more flexibility in the values that can be assigned to `source`. ### Detailed summary - Changed the `source` field in `usageEventSchema` from `z.enum` to `z.string()`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 8e43e34 commit 012f3de

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

packages/service-utils/src/core/usage.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
import { z } from "zod";
22

33
export const usageEventSchema = z.object({
4-
source: z.enum([
5-
"ecosystemWallets",
6-
"embeddedWallets",
7-
"rpc",
8-
"storage",
9-
"bundler",
10-
"paymaster",
11-
"relayer",
12-
"connectWallet",
13-
"checkout",
14-
"engine",
15-
"pay",
16-
"rpcV2",
17-
]),
4+
source: z.string(),
185
action: z.string(),
196

207
/**

0 commit comments

Comments
 (0)