@thirdweb-dev/service-utils 0.4.35 → 0.4.36-nightly-aadbd33e9d696bd7dd77561fa3f3a0a0fa7747f5-20240716082511
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 +6 -4
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +6 -4
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +7 -5
- package/dist/{client-8a85ab05.esm.js → client-69520ed5.esm.js} +0 -7
- package/dist/{client-43ffd386.cjs.prod.js → client-7f06a92d.cjs.prod.js} +0 -7
- package/dist/{client-e805236b.cjs.dev.js → client-d41a342d.cjs.dev.js} +0 -7
- package/dist/declarations/src/cf-worker/usage.d.ts +9 -3
- package/dist/declarations/src/cf-worker/usage.d.ts.map +1 -1
- package/dist/declarations/src/core/services.d.ts +0 -16
- package/dist/declarations/src/core/services.d.ts.map +1 -1
- package/dist/{index-fecf7702.cjs.prod.js → index-80e7f1e8.cjs.prod.js} +1 -1
- package/dist/{index-8cff5ac3.esm.js → index-a59ead84.esm.js} +1 -1
- package/dist/{index-0d9dbeb2.cjs.dev.js → index-e8bc6c3b.cjs.dev.js} +1 -1
- package/dist/thirdweb-dev-service-utils.cjs.dev.js +1 -1
- package/dist/thirdweb-dev-service-utils.cjs.prod.js +1 -1
- package/dist/thirdweb-dev-service-utils.esm.js +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.cjs.dev.js +2 -2
- package/node/dist/thirdweb-dev-service-utils-node.cjs.prod.js +2 -2
- package/node/dist/thirdweb-dev-service-utils-node.esm.js +3 -3
- package/package.json +1 -1
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var index = require('../../dist/index-
|
5
|
+
var index = require('../../dist/index-e8bc6c3b.cjs.dev.js');
|
6
6
|
var aws4fetch = require('aws4fetch');
|
7
7
|
var zod = require('zod');
|
8
|
-
var client = require('../../dist/client-
|
8
|
+
var client = require('../../dist/client-d41a342d.cjs.dev.js');
|
9
9
|
|
10
10
|
// Initialize a singleton for AWS usage.
|
11
11
|
let _aws;
|
@@ -20,7 +20,7 @@ function getAws(options) {
|
|
20
20
|
* Types
|
21
21
|
*/
|
22
22
|
const usageEventSchema = zod.z.object({
|
23
|
-
source: zod.z.enum(["ecosystemWallets", "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", "rpcV2"]),
|
24
24
|
action: zod.z.string(),
|
25
25
|
/**
|
26
26
|
* The following fields are optional.
|
@@ -78,7 +78,9 @@ const usageEventSchema = zod.z.object({
|
|
78
78
|
msLatency: zod.z.number().optional(),
|
79
79
|
toAmountUSDCents: zod.z.number().optional(),
|
80
80
|
secondaryProvider: zod.z.string().optional(),
|
81
|
-
onRampId: zod.z.string().optional()
|
81
|
+
onRampId: zod.z.string().optional(),
|
82
|
+
evmRequestParams: zod.z.string().optional(),
|
83
|
+
providerIp: zod.z.string().optional()
|
82
84
|
});
|
83
85
|
/**
|
84
86
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var index = require('../../dist/index-
|
5
|
+
var index = require('../../dist/index-80e7f1e8.cjs.prod.js');
|
6
6
|
var aws4fetch = require('aws4fetch');
|
7
7
|
var zod = require('zod');
|
8
|
-
var client = require('../../dist/client-
|
8
|
+
var client = require('../../dist/client-7f06a92d.cjs.prod.js');
|
9
9
|
|
10
10
|
// Initialize a singleton for AWS usage.
|
11
11
|
let _aws;
|
@@ -20,7 +20,7 @@ function getAws(options) {
|
|
20
20
|
* Types
|
21
21
|
*/
|
22
22
|
const usageEventSchema = zod.z.object({
|
23
|
-
source: zod.z.enum(["ecosystemWallets", "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", "rpcV2"]),
|
24
24
|
action: zod.z.string(),
|
25
25
|
/**
|
26
26
|
* The following fields are optional.
|
@@ -78,7 +78,9 @@ const usageEventSchema = zod.z.object({
|
|
78
78
|
msLatency: zod.z.number().optional(),
|
79
79
|
toAmountUSDCents: zod.z.number().optional(),
|
80
80
|
secondaryProvider: zod.z.string().optional(),
|
81
|
-
onRampId: zod.z.string().optional()
|
81
|
+
onRampId: zod.z.string().optional(),
|
82
|
+
evmRequestParams: zod.z.string().optional(),
|
83
|
+
providerIp: zod.z.string().optional()
|
82
84
|
});
|
83
85
|
/**
|
84
86
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { a as authorize } from '../../dist/index-
|
2
|
-
export { r as rateLimit, u as usageLimit } from '../../dist/index-
|
1
|
+
import { a as authorize } from '../../dist/index-a59ead84.esm.js';
|
2
|
+
export { r as rateLimit, u as usageLimit } from '../../dist/index-a59ead84.esm.js';
|
3
3
|
import { AwsClient } from 'aws4fetch';
|
4
4
|
import { z } from 'zod';
|
5
|
-
export { d as SERVICES, S as SERVICE_DEFINITIONS, c as SERVICE_NAMES, g as getServiceByName } from '../../dist/client-
|
5
|
+
export { d as SERVICES, S as SERVICE_DEFINITIONS, c as SERVICE_NAMES, g as getServiceByName } from '../../dist/client-69520ed5.esm.js';
|
6
6
|
|
7
7
|
// Initialize a singleton for AWS usage.
|
8
8
|
let _aws;
|
@@ -17,7 +17,7 @@ function getAws(options) {
|
|
17
17
|
* Types
|
18
18
|
*/
|
19
19
|
const usageEventSchema = z.object({
|
20
|
-
source: z.enum(["ecosystemWallets", "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", "rpcV2"]),
|
21
21
|
action: z.string(),
|
22
22
|
/**
|
23
23
|
* The following fields are optional.
|
@@ -75,7 +75,9 @@ const usageEventSchema = z.object({
|
|
75
75
|
msLatency: z.number().optional(),
|
76
76
|
toAmountUSDCents: z.number().optional(),
|
77
77
|
secondaryProvider: z.string().optional(),
|
78
|
-
onRampId: z.string().optional()
|
78
|
+
onRampId: z.string().optional(),
|
79
|
+
evmRequestParams: z.string().optional(),
|
80
|
+
providerIp: z.string().optional()
|
79
81
|
});
|
80
82
|
/**
|
81
83
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -41,13 +41,6 @@ const SERVICE_DEFINITIONS = {
|
|
41
41
|
// all actions allowed
|
42
42
|
actions: []
|
43
43
|
},
|
44
|
-
checkout: {
|
45
|
-
name: "checkout",
|
46
|
-
title: "Checkouts",
|
47
|
-
description: "NFT Checkouts for easy web3 onboarding",
|
48
|
-
// all actions allowed
|
49
|
-
actions: []
|
50
|
-
},
|
51
44
|
pay: {
|
52
45
|
name: "pay",
|
53
46
|
title: "Pay",
|
@@ -43,13 +43,6 @@ const SERVICE_DEFINITIONS = {
|
|
43
43
|
// all actions allowed
|
44
44
|
actions: []
|
45
45
|
},
|
46
|
-
checkout: {
|
47
|
-
name: "checkout",
|
48
|
-
title: "Checkouts",
|
49
|
-
description: "NFT Checkouts for easy web3 onboarding",
|
50
|
-
// all actions allowed
|
51
|
-
actions: []
|
52
|
-
},
|
53
46
|
pay: {
|
54
47
|
name: "pay",
|
55
48
|
title: "Pay",
|
@@ -43,13 +43,6 @@ const SERVICE_DEFINITIONS = {
|
|
43
43
|
// all actions allowed
|
44
44
|
actions: []
|
45
45
|
},
|
46
|
-
checkout: {
|
47
|
-
name: "checkout",
|
48
|
-
title: "Checkouts",
|
49
|
-
description: "NFT Checkouts for easy web3 onboarding",
|
50
|
-
// all actions allowed
|
51
|
-
actions: []
|
52
|
-
},
|
53
46
|
pay: {
|
54
47
|
name: "pay",
|
55
48
|
title: "Pay",
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
3
3
|
* Types
|
4
4
|
*/
|
5
5
|
declare const usageEventSchema: z.ZodObject<{
|
6
|
-
source: z.ZodEnum<["ecosystemWallets", "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", "rpcV2"]>;
|
7
7
|
action: z.ZodString;
|
8
8
|
/**
|
9
9
|
* The following fields are optional.
|
@@ -60,8 +60,10 @@ declare const usageEventSchema: z.ZodObject<{
|
|
60
60
|
toAmountUSDCents: z.ZodOptional<z.ZodNumber>;
|
61
61
|
secondaryProvider: z.ZodOptional<z.ZodString>;
|
62
62
|
onRampId: z.ZodOptional<z.ZodString>;
|
63
|
+
evmRequestParams: z.ZodOptional<z.ZodString>;
|
64
|
+
providerIp: z.ZodOptional<z.ZodString>;
|
63
65
|
}, "strip", z.ZodTypeAny, {
|
64
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "
|
66
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "pay" | "ecosystemWallets" | "paymaster" | "connectWallet" | "checkout" | "engine" | "rpcV2";
|
65
67
|
action: string;
|
66
68
|
errorCode?: string | undefined;
|
67
69
|
clientId?: string | undefined;
|
@@ -115,8 +117,10 @@ declare const usageEventSchema: z.ZodObject<{
|
|
115
117
|
toAmountUSDCents?: number | undefined;
|
116
118
|
secondaryProvider?: string | undefined;
|
117
119
|
onRampId?: string | undefined;
|
120
|
+
evmRequestParams?: string | undefined;
|
121
|
+
providerIp?: string | undefined;
|
118
122
|
}, {
|
119
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "
|
123
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "pay" | "ecosystemWallets" | "paymaster" | "connectWallet" | "checkout" | "engine" | "rpcV2";
|
120
124
|
action: string;
|
121
125
|
errorCode?: string | undefined;
|
122
126
|
clientId?: string | undefined;
|
@@ -170,6 +174,8 @@ declare const usageEventSchema: z.ZodObject<{
|
|
170
174
|
toAmountUSDCents?: number | undefined;
|
171
175
|
secondaryProvider?: string | undefined;
|
172
176
|
onRampId?: string | undefined;
|
177
|
+
evmRequestParams?: string | undefined;
|
178
|
+
providerIp?: string | undefined;
|
173
179
|
}>;
|
174
180
|
export type UsageEvent = z.infer<typeof usageEventSchema>;
|
175
181
|
/**
|
@@ -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;;;IAiBpB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEH,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"}
|
@@ -37,12 +37,6 @@ export declare const SERVICE_DEFINITIONS: {
|
|
37
37
|
readonly description: "E-mail and social login wallets for easy web3 onboarding";
|
38
38
|
readonly actions: readonly [];
|
39
39
|
};
|
40
|
-
readonly checkout: {
|
41
|
-
readonly name: "checkout";
|
42
|
-
readonly title: "Checkouts";
|
43
|
-
readonly description: "NFT Checkouts for easy web3 onboarding";
|
44
|
-
readonly actions: readonly [];
|
45
|
-
};
|
46
40
|
readonly pay: {
|
47
41
|
readonly name: "pay";
|
48
42
|
readonly title: "Pay";
|
@@ -84,11 +78,6 @@ export declare const SERVICES: ({
|
|
84
78
|
readonly title: "In-App Wallets";
|
85
79
|
readonly description: "E-mail and social login wallets for easy web3 onboarding";
|
86
80
|
readonly actions: readonly [];
|
87
|
-
} | {
|
88
|
-
readonly name: "checkout";
|
89
|
-
readonly title: "Checkouts";
|
90
|
-
readonly description: "NFT Checkouts for easy web3 onboarding";
|
91
|
-
readonly actions: readonly [];
|
92
81
|
} | {
|
93
82
|
readonly name: "pay";
|
94
83
|
readonly title: "Pay";
|
@@ -135,11 +124,6 @@ export declare function getServiceByName(name: ServiceName): {
|
|
135
124
|
readonly title: "In-App Wallets";
|
136
125
|
readonly description: "E-mail and social login wallets for easy web3 onboarding";
|
137
126
|
readonly actions: readonly [];
|
138
|
-
} | {
|
139
|
-
readonly name: "checkout";
|
140
|
-
readonly title: "Checkouts";
|
141
|
-
readonly description: "NFT Checkouts for easy web3 onboarding";
|
142
|
-
readonly actions: readonly [];
|
143
127
|
} | {
|
144
128
|
readonly name: "pay";
|
145
129
|
readonly title: "Pay";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"../../../../src/core","sources":["services.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"../../../../src/core","sources":["services.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDtB,CAAC;AAEX,eAAO,MAAM,aAAa,EAErB,CAAC,MAAM,OAAO,mBAAmB,CAAC,EAAE,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 +1 @@
|
|
1
|
-
export { d as SERVICES, S as SERVICE_DEFINITIONS, c as SERVICE_NAMES, a as authorizeBundleId, b as authorizeDomain, g as getServiceByName } from './client-
|
1
|
+
export { d as SERVICES, S as SERVICE_DEFINITIONS, c as SERVICE_NAMES, a as authorizeBundleId, b as authorizeDomain, g as getServiceByName } from './client-69520ed5.esm.js';
|
@@ -3,8 +3,8 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var node_crypto = require('node:crypto');
|
6
|
-
var index = require('../../dist/index-
|
7
|
-
var client = require('../../dist/client-
|
6
|
+
var index = require('../../dist/index-e8bc6c3b.cjs.dev.js');
|
7
|
+
var client = require('../../dist/client-d41a342d.cjs.dev.js');
|
8
8
|
|
9
9
|
/**
|
10
10
|
*
|
@@ -3,8 +3,8 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var node_crypto = require('node:crypto');
|
6
|
-
var index = require('../../dist/index-
|
7
|
-
var client = require('../../dist/client-
|
6
|
+
var index = require('../../dist/index-80e7f1e8.cjs.prod.js');
|
7
|
+
var client = require('../../dist/client-7f06a92d.cjs.prod.js');
|
8
8
|
|
9
9
|
/**
|
10
10
|
*
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createHash } from 'node:crypto';
|
2
|
-
import { a as authorize } from '../../dist/index-
|
3
|
-
export { r as rateLimit, u as usageLimit } from '../../dist/index-
|
4
|
-
export { d as SERVICES, S as SERVICE_DEFINITIONS, c as SERVICE_NAMES, g as getServiceByName } from '../../dist/client-
|
2
|
+
import { a as authorize } from '../../dist/index-a59ead84.esm.js';
|
3
|
+
export { r as rateLimit, u as usageLimit } from '../../dist/index-a59ead84.esm.js';
|
4
|
+
export { d as SERVICES, S as SERVICE_DEFINITIONS, c as SERVICE_NAMES, g as getServiceByName } from '../../dist/client-69520ed5.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.
|
3
|
+
"version": "0.4.36-nightly-aadbd33e9d696bd7dd77561fa3f3a0a0fa7747f5-20240716082511",
|
4
4
|
"main": "dist/thirdweb-dev-service-utils.cjs.js",
|
5
5
|
"module": "dist/thirdweb-dev-service-utils.esm.js",
|
6
6
|
"exports": {
|