@thirdweb-dev/service-utils 0.4.16 → 0.4.17-nightly-77400fcf-20240208014205
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 +3 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +3 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +3 -1
- package/dist/declarations/src/cf-worker/usage.d.ts +6 -0
- package/dist/declarations/src/cf-worker/usage.d.ts.map +1 -1
- package/package.json +1 -1
@@ -56,7 +56,9 @@ const usageEventSchema = zod.z.object({
|
|
56
56
|
functionName: zod.z.string().optional(),
|
57
57
|
extension: zod.z.string().optional(),
|
58
58
|
retryCount: zod.z.number().int().nonnegative().optional(),
|
59
|
-
policyId: zod.z.string().optional()
|
59
|
+
policyId: zod.z.string().optional(),
|
60
|
+
msSinceQueue: zod.z.number().nonnegative().optional(),
|
61
|
+
msSinceSend: zod.z.number().nonnegative().optional()
|
60
62
|
});
|
61
63
|
/**
|
62
64
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -56,7 +56,9 @@ const usageEventSchema = zod.z.object({
|
|
56
56
|
functionName: zod.z.string().optional(),
|
57
57
|
extension: zod.z.string().optional(),
|
58
58
|
retryCount: zod.z.number().int().nonnegative().optional(),
|
59
|
-
policyId: zod.z.string().optional()
|
59
|
+
policyId: zod.z.string().optional(),
|
60
|
+
msSinceQueue: zod.z.number().nonnegative().optional(),
|
61
|
+
msSinceSend: zod.z.number().nonnegative().optional()
|
60
62
|
});
|
61
63
|
/**
|
62
64
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -53,7 +53,9 @@ const usageEventSchema = z.object({
|
|
53
53
|
functionName: z.string().optional(),
|
54
54
|
extension: z.string().optional(),
|
55
55
|
retryCount: z.number().int().nonnegative().optional(),
|
56
|
-
policyId: z.string().optional()
|
56
|
+
policyId: z.string().optional(),
|
57
|
+
msSinceQueue: z.number().nonnegative().optional(),
|
58
|
+
msSinceSend: z.number().nonnegative().optional()
|
57
59
|
});
|
58
60
|
/**
|
59
61
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -39,6 +39,8 @@ declare const usageEventSchema: z.ZodObject<{
|
|
39
39
|
extension: z.ZodOptional<z.ZodString>;
|
40
40
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
41
41
|
policyId: z.ZodOptional<z.ZodString>;
|
42
|
+
msSinceQueue: z.ZodOptional<z.ZodNumber>;
|
43
|
+
msSinceSend: z.ZodOptional<z.ZodNumber>;
|
42
44
|
}, "strip", z.ZodTypeAny, {
|
43
45
|
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet" | "engine";
|
44
46
|
action: string;
|
@@ -73,6 +75,8 @@ declare const usageEventSchema: z.ZodObject<{
|
|
73
75
|
extension?: string | undefined;
|
74
76
|
retryCount?: number | undefined;
|
75
77
|
policyId?: string | undefined;
|
78
|
+
msSinceQueue?: number | undefined;
|
79
|
+
msSinceSend?: number | undefined;
|
76
80
|
}, {
|
77
81
|
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet" | "engine";
|
78
82
|
action: string;
|
@@ -107,6 +111,8 @@ declare const usageEventSchema: z.ZodObject<{
|
|
107
111
|
extension?: string | undefined;
|
108
112
|
retryCount?: number | undefined;
|
109
113
|
policyId?: string | undefined;
|
114
|
+
msSinceQueue?: number | undefined;
|
115
|
+
msSinceSend?: number | undefined;
|
110
116
|
}>;
|
111
117
|
export type UsageEvent = z.infer<typeof usageEventSchema>;
|
112
118
|
/**
|
@@ -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;;;IAcpB;;OAEG
|
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;;;IAcpB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCH,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