@thirdweb-dev/service-utils 0.4.31-nightly-84e07fa9d5d2c71a3e9db899df054b7b802b2abb-20240612034518 → 0.4.32-nightly-901427c33c5daf330887b501ec8f9f42aa20ff85-20240612162901
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.dev.js +5 -2
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +5 -2
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +5 -2
- package/dist/declarations/src/cf-worker/usage.d.ts +9 -3
- package/dist/declarations/src/cf-worker/usage.d.ts.map +1 -1
- package/package.json +1 -1
@@ -20,7 +20,7 @@ function getAws(options) {
|
|
20
20
|
* Types
|
21
21
|
*/
|
22
22
|
const usageEventSchema = zod.z.object({
|
23
|
-
source: zod.z.enum(["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]),
|
23
|
+
source: zod.z.enum(["ecosystemWallets", "embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]),
|
24
24
|
action: zod.z.string(),
|
25
25
|
/**
|
26
26
|
* The following fields are optional.
|
@@ -65,7 +65,10 @@ const usageEventSchema = zod.z.object({
|
|
65
65
|
tokenAddress: zod.z.string().optional(),
|
66
66
|
amountWei: zod.z.string().optional(),
|
67
67
|
amountUSDCents: zod.z.number().nonnegative().optional(),
|
68
|
-
httpMethod: zod.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]).optional()
|
68
|
+
httpMethod: zod.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]).optional(),
|
69
|
+
// Used to identify the ecosystem that the an ecosystem wallet belongs too
|
70
|
+
ecosystemId: zod.z.string().optional(),
|
71
|
+
ecosystemPartnerId: zod.z.string().optional()
|
69
72
|
});
|
70
73
|
/**
|
71
74
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -20,7 +20,7 @@ function getAws(options) {
|
|
20
20
|
* Types
|
21
21
|
*/
|
22
22
|
const usageEventSchema = zod.z.object({
|
23
|
-
source: zod.z.enum(["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]),
|
23
|
+
source: zod.z.enum(["ecosystemWallets", "embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]),
|
24
24
|
action: zod.z.string(),
|
25
25
|
/**
|
26
26
|
* The following fields are optional.
|
@@ -65,7 +65,10 @@ const usageEventSchema = zod.z.object({
|
|
65
65
|
tokenAddress: zod.z.string().optional(),
|
66
66
|
amountWei: zod.z.string().optional(),
|
67
67
|
amountUSDCents: zod.z.number().nonnegative().optional(),
|
68
|
-
httpMethod: zod.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]).optional()
|
68
|
+
httpMethod: zod.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]).optional(),
|
69
|
+
// Used to identify the ecosystem that the an ecosystem wallet belongs too
|
70
|
+
ecosystemId: zod.z.string().optional(),
|
71
|
+
ecosystemPartnerId: zod.z.string().optional()
|
69
72
|
});
|
70
73
|
/**
|
71
74
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -17,7 +17,7 @@ function getAws(options) {
|
|
17
17
|
* Types
|
18
18
|
*/
|
19
19
|
const usageEventSchema = z.object({
|
20
|
-
source: z.enum(["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]),
|
20
|
+
source: z.enum(["ecosystemWallets", "embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]),
|
21
21
|
action: z.string(),
|
22
22
|
/**
|
23
23
|
* The following fields are optional.
|
@@ -62,7 +62,10 @@ const usageEventSchema = z.object({
|
|
62
62
|
tokenAddress: z.string().optional(),
|
63
63
|
amountWei: z.string().optional(),
|
64
64
|
amountUSDCents: z.number().nonnegative().optional(),
|
65
|
-
httpMethod: z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]).optional()
|
65
|
+
httpMethod: z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]).optional(),
|
66
|
+
// Used to identify the ecosystem that the an ecosystem wallet belongs too
|
67
|
+
ecosystemId: z.string().optional(),
|
68
|
+
ecosystemPartnerId: z.string().optional()
|
66
69
|
});
|
67
70
|
/**
|
68
71
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
3
3
|
* Types
|
4
4
|
*/
|
5
5
|
declare const usageEventSchema: z.ZodObject<{
|
6
|
-
source: z.ZodEnum<["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]>;
|
6
|
+
source: z.ZodEnum<["ecosystemWallets", "embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine", "pay"]>;
|
7
7
|
action: z.ZodString;
|
8
8
|
/**
|
9
9
|
* The following fields are optional.
|
@@ -48,8 +48,10 @@ declare const usageEventSchema: z.ZodObject<{
|
|
48
48
|
amountWei: z.ZodOptional<z.ZodString>;
|
49
49
|
amountUSDCents: z.ZodOptional<z.ZodNumber>;
|
50
50
|
httpMethod: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "CONNECT", "OPTIONS", "TRACE"]>>;
|
51
|
+
ecosystemId: z.ZodOptional<z.ZodString>;
|
52
|
+
ecosystemPartnerId: z.ZodOptional<z.ZodString>;
|
51
53
|
}, "strip", z.ZodTypeAny, {
|
52
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "pay" | "paymaster" | "connectWallet" | "engine";
|
54
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "pay" | "ecosystemWallets" | "paymaster" | "connectWallet" | "engine";
|
53
55
|
action: string;
|
54
56
|
accountId?: string | undefined;
|
55
57
|
isClientEvent?: boolean | undefined;
|
@@ -91,8 +93,10 @@ declare const usageEventSchema: z.ZodObject<{
|
|
91
93
|
amountWei?: string | undefined;
|
92
94
|
amountUSDCents?: number | undefined;
|
93
95
|
httpMethod?: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "CONNECT" | "OPTIONS" | "TRACE" | undefined;
|
96
|
+
ecosystemId?: string | undefined;
|
97
|
+
ecosystemPartnerId?: string | undefined;
|
94
98
|
}, {
|
95
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "pay" | "paymaster" | "connectWallet" | "engine";
|
99
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "pay" | "ecosystemWallets" | "paymaster" | "connectWallet" | "engine";
|
96
100
|
action: string;
|
97
101
|
accountId?: string | undefined;
|
98
102
|
isClientEvent?: boolean | undefined;
|
@@ -134,6 +138,8 @@ declare const usageEventSchema: z.ZodObject<{
|
|
134
138
|
amountWei?: string | undefined;
|
135
139
|
amountUSDCents?: number | undefined;
|
136
140
|
httpMethod?: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "CONNECT" | "OPTIONS" | "TRACE" | undefined;
|
141
|
+
ecosystemId?: string | undefined;
|
142
|
+
ecosystemPartnerId?: string | undefined;
|
137
143
|
}>;
|
138
144
|
export type UsageEvent = z.infer<typeof usageEventSchema>;
|
139
145
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["usage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,QAAA,MAAM,gBAAgB;;;
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["usage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,QAAA,MAAM,gBAAgB;;;IAgBpB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDH,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,UAAU,EAAE,EACzB,MAAM,EAAE;IACN,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACA,OAAO,CAAC,IAAI,CAAC,CAiCf"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@thirdweb-dev/service-utils",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.32-nightly-901427c33c5daf330887b501ec8f9f42aa20ff85-20240612162901",
|
4
4
|
"main": "dist/thirdweb-dev-service-utils.cjs.js",
|
5
5
|
"module": "dist/thirdweb-dev-service-utils.esm.js",
|
6
6
|
"exports": {
|