@thirdweb-dev/service-utils 0.4.5-nightly-9d553746-20230920173637 → 0.4.5-nightly-e2e6bdd4-20230921102654

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.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var index = require('../../dist/index-807f6a60.cjs.dev.js');
6
6
  var aws4fetch = require('aws4fetch');
7
7
  var zod = require('zod');
8
- var services = require('../../dist/services-a3f36057.cjs.dev.js');
8
+ var services = require('../../dist/services-79b4664f.cjs.dev.js');
9
9
 
10
10
  // Initialize a singleton for aws usage.
11
11
  let _aws;
@@ -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.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var index = require('../../dist/index-cfc8027b.cjs.prod.js');
6
6
  var aws4fetch = require('aws4fetch');
7
7
  var zod = require('zod');
8
- var services = require('../../dist/services-9e185105.cjs.prod.js');
8
+ var services = require('../../dist/services-04997839.cjs.prod.js');
9
9
 
10
10
  // Initialize a singleton for aws usage.
11
11
  let _aws;
@@ -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.
@@ -2,7 +2,7 @@ import { a as authorize, r as rateLimit } from '../../dist/index-bcf68113.esm.js
2
2
  export { r as rateLimit, u as usageLimit } from '../../dist/index-bcf68113.esm.js';
3
3
  import { AwsClient } from 'aws4fetch';
4
4
  import { z } from 'zod';
5
- export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-86283509.esm.js';
5
+ export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-bc12a5f6.esm.js';
6
6
 
7
7
  // Initialize a singleton for aws usage.
8
8
  let _aws;
@@ -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"}
@@ -31,8 +31,14 @@ export declare const SERVICE_DEFINITIONS: {
31
31
  readonly description: "Enable gasless transactions";
32
32
  readonly actions: readonly [];
33
33
  };
34
+ readonly embeddedWallets: {
35
+ readonly name: "embeddedWallets";
36
+ readonly title: "Embedded Wallets";
37
+ readonly description: "E-mail and social login wallets for easy web3 onboarding";
38
+ readonly actions: readonly [];
39
+ };
34
40
  };
35
- export declare const SERVICE_NAMES: ("storage" | "rpc" | "bundler" | "relayer")[];
41
+ export declare const SERVICE_NAMES: ("storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets")[];
36
42
  export declare const SERVICES: ({
37
43
  readonly name: "storage";
38
44
  readonly title: "Storage";
@@ -61,6 +67,11 @@ export declare const SERVICES: ({
61
67
  readonly title: "Gasless Relayer";
62
68
  readonly description: "Enable gasless transactions";
63
69
  readonly actions: readonly [];
70
+ } | {
71
+ readonly name: "embeddedWallets";
72
+ readonly title: "Embedded Wallets";
73
+ readonly description: "E-mail and social login wallets for easy web3 onboarding";
74
+ readonly actions: readonly [];
64
75
  })[];
65
76
  export type ServiceName = (typeof SERVICE_NAMES)[number];
66
77
  export type ServiceAction = {
@@ -97,5 +108,10 @@ export declare function getServiceByName(name: ServiceName): {
97
108
  readonly title: "Gasless Relayer";
98
109
  readonly description: "Enable gasless transactions";
99
110
  readonly actions: readonly [];
111
+ } | {
112
+ readonly name: "embeddedWallets";
113
+ readonly title: "Embedded Wallets";
114
+ readonly description: "E-mail and social login wallets for easy web3 onboarding";
115
+ readonly actions: readonly [];
100
116
  };
101
117
  //# sourceMappingURL=services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"../../../../src/core","sources":["services.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCtB,CAAC;AAEX,eAAO,MAAM,aAAa,+CAEe,CAAC;AAE1C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAqC,CAAC;AAE3D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GACjB,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjD"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"../../../../src/core","sources":["services.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CtB,CAAC;AAEX,eAAO,MAAM,aAAa,mEAEe,CAAC;AAE1C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAqC,CAAC;AAE3D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GACjB,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjD"}
@@ -35,6 +35,13 @@ const SERVICE_DEFINITIONS = {
35
35
  description: "Enable gasless transactions",
36
36
  // all actions allowed
37
37
  actions: []
38
+ },
39
+ embeddedWallets: {
40
+ name: "embeddedWallets",
41
+ title: "Embedded Wallets",
42
+ description: "E-mail and social login wallets for easy web3 onboarding",
43
+ // all actions allowed
44
+ actions: []
38
45
  }
39
46
  };
40
47
  const SERVICE_NAMES = Object.keys(SERVICE_DEFINITIONS);
@@ -35,6 +35,13 @@ const SERVICE_DEFINITIONS = {
35
35
  description: "Enable gasless transactions",
36
36
  // all actions allowed
37
37
  actions: []
38
+ },
39
+ embeddedWallets: {
40
+ name: "embeddedWallets",
41
+ title: "Embedded Wallets",
42
+ description: "E-mail and social login wallets for easy web3 onboarding",
43
+ // all actions allowed
44
+ actions: []
38
45
  }
39
46
  };
40
47
  const SERVICE_NAMES = Object.keys(SERVICE_DEFINITIONS);
@@ -33,6 +33,13 @@ const SERVICE_DEFINITIONS = {
33
33
  description: "Enable gasless transactions",
34
34
  // all actions allowed
35
35
  actions: []
36
+ },
37
+ embeddedWallets: {
38
+ name: "embeddedWallets",
39
+ title: "Embedded Wallets",
40
+ description: "E-mail and social login wallets for easy web3 onboarding",
41
+ // all actions allowed
42
+ actions: []
36
43
  }
37
44
  };
38
45
  const SERVICE_NAMES = Object.keys(SERVICE_DEFINITIONS);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var services = require('./services-a3f36057.cjs.dev.js');
5
+ var services = require('./services-79b4664f.cjs.dev.js');
6
6
 
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var services = require('./services-9e185105.cjs.prod.js');
5
+ var services = require('./services-04997839.cjs.prod.js');
6
6
 
7
7
 
8
8
 
@@ -1 +1 @@
1
- export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from './services-86283509.esm.js';
1
+ export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from './services-bc12a5f6.esm.js';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var node_crypto = require('node:crypto');
6
6
  var index = require('../../dist/index-807f6a60.cjs.dev.js');
7
- var services = require('../../dist/services-a3f36057.cjs.dev.js');
7
+ var services = require('../../dist/services-79b4664f.cjs.dev.js');
8
8
 
9
9
  /**
10
10
  *
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var node_crypto = require('node:crypto');
6
6
  var index = require('../../dist/index-cfc8027b.cjs.prod.js');
7
- var services = require('../../dist/services-9e185105.cjs.prod.js');
7
+ var services = require('../../dist/services-04997839.cjs.prod.js');
8
8
 
9
9
  /**
10
10
  *
@@ -1,7 +1,7 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { a as authorize } from '../../dist/index-bcf68113.esm.js';
3
3
  export { r as rateLimit, u as usageLimit } from '../../dist/index-bcf68113.esm.js';
4
- export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-86283509.esm.js';
4
+ export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-bc12a5f6.esm.js';
5
5
 
6
6
  /**
7
7
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdweb-dev/service-utils",
3
- "version": "0.4.5-nightly-9d553746-20230920173637",
3
+ "version": "0.4.5-nightly-e2e6bdd4-20230921102654",
4
4
  "main": "dist/thirdweb-dev-service-utils.cjs.js",
5
5
  "module": "dist/thirdweb-dev-service-utils.esm.js",
6
6
  "exports": {