@thirdweb-dev/service-utils 0.4.5-nightly-57af96c2-20230920150201 → 0.4.5-nightly-d66ff413-20230921033200

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.
@@ -37,7 +37,11 @@ const usageEventSchema = zod.z.object({
37
37
  userOpHash: zod.z.string().optional(),
38
38
  gasLimit: zod.z.number().nonnegative().optional(),
39
39
  gasPricePerUnit: zod.z.string().optional(),
40
- transactionHash: zod.z.string().optional()
40
+ transactionHash: zod.z.string().optional(),
41
+ sdkName: zod.z.string().optional(),
42
+ sdkVersion: zod.z.string().optional(),
43
+ sdkPlatform: zod.z.string().optional(),
44
+ productName: zod.z.string().optional()
41
45
  });
42
46
  /**
43
47
  * Publish usage events. Provide the relevant fields for your application.
@@ -37,7 +37,11 @@ const usageEventSchema = zod.z.object({
37
37
  userOpHash: zod.z.string().optional(),
38
38
  gasLimit: zod.z.number().nonnegative().optional(),
39
39
  gasPricePerUnit: zod.z.string().optional(),
40
- transactionHash: zod.z.string().optional()
40
+ transactionHash: zod.z.string().optional(),
41
+ sdkName: zod.z.string().optional(),
42
+ sdkVersion: zod.z.string().optional(),
43
+ sdkPlatform: zod.z.string().optional(),
44
+ productName: zod.z.string().optional()
41
45
  });
42
46
  /**
43
47
  * Publish usage events. Provide the relevant fields for your application.
@@ -34,7 +34,11 @@ const usageEventSchema = z.object({
34
34
  userOpHash: z.string().optional(),
35
35
  gasLimit: z.number().nonnegative().optional(),
36
36
  gasPricePerUnit: z.string().optional(),
37
- transactionHash: z.string().optional()
37
+ transactionHash: z.string().optional(),
38
+ sdkName: z.string().optional(),
39
+ sdkVersion: z.string().optional(),
40
+ sdkPlatform: z.string().optional(),
41
+ productName: z.string().optional()
38
42
  });
39
43
  /**
40
44
  * Publish usage events. Provide the relevant fields for your application.
@@ -20,6 +20,10 @@ declare const usageEventSchema: z.ZodObject<{
20
20
  gasLimit: z.ZodOptional<z.ZodNumber>;
21
21
  gasPricePerUnit: z.ZodOptional<z.ZodString>;
22
22
  transactionHash: z.ZodOptional<z.ZodString>;
23
+ sdkName: z.ZodOptional<z.ZodString>;
24
+ sdkVersion: z.ZodOptional<z.ZodString>;
25
+ sdkPlatform: z.ZodOptional<z.ZodString>;
26
+ productName: z.ZodOptional<z.ZodString>;
23
27
  }, "strip", z.ZodTypeAny, {
24
28
  source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "paymaster";
25
29
  accountId: string;
@@ -38,6 +42,10 @@ declare const usageEventSchema: z.ZodObject<{
38
42
  gasLimit?: number | undefined;
39
43
  gasPricePerUnit?: string | undefined;
40
44
  transactionHash?: string | undefined;
45
+ sdkName?: string | undefined;
46
+ sdkVersion?: string | undefined;
47
+ sdkPlatform?: string | undefined;
48
+ productName?: string | undefined;
41
49
  }, {
42
50
  source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "paymaster";
43
51
  accountId: string;
@@ -56,6 +64,10 @@ declare const usageEventSchema: z.ZodObject<{
56
64
  gasLimit?: number | undefined;
57
65
  gasPricePerUnit?: string | undefined;
58
66
  transactionHash?: string | undefined;
67
+ sdkName?: string | undefined;
68
+ sdkVersion?: string | undefined;
69
+ sdkPlatform?: string | undefined;
70
+ productName?: string | undefined;
59
71
  }>;
60
72
  export type UsageEvent = z.infer<typeof usageEventSchema>;
61
73
  /**
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BpB,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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BpB,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.5-nightly-57af96c2-20230920150201",
3
+ "version": "0.4.5-nightly-d66ff413-20230921033200",
4
4
  "main": "dist/thirdweb-dev-service-utils.cjs.js",
5
5
  "module": "dist/thirdweb-dev-service-utils.esm.js",
6
6
  "exports": {