@thirdweb-dev/service-utils 0.4.10 → 0.4.11-nightly-1a5627f7-20231220184759
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 +1 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +1 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +1 -1
- package/dist/declarations/src/cf-worker/usage.d.ts +2 -2
- package/dist/declarations/src/core/services.d.ts +17 -1
- package/dist/declarations/src/core/services.d.ts.map +1 -1
- package/dist/{services-04997839.cjs.prod.js → services-3471abb9.cjs.prod.js} +7 -0
- package/dist/{services-bc12a5f6.esm.js → services-b6961253.esm.js} +7 -0
- package/dist/{services-79b4664f.cjs.dev.js → services-bc56e93d.cjs.dev.js} +7 -0
- 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 +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.cjs.prod.js +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.esm.js +1 -1
- package/package.json +1 -1
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var index = require('../../dist/index-c9486214.cjs.dev.js');
|
6
6
|
var aws4fetch = require('aws4fetch');
|
7
7
|
var zod = require('zod');
|
8
|
-
var services = require('../../dist/services-
|
8
|
+
var services = require('../../dist/services-bc56e93d.cjs.dev.js');
|
9
9
|
|
10
10
|
// Initialize a singleton for aws usage.
|
11
11
|
let _aws;
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
var index = require('../../dist/index-208ce992.cjs.prod.js');
|
6
6
|
var aws4fetch = require('aws4fetch');
|
7
7
|
var zod = require('zod');
|
8
|
-
var services = require('../../dist/services-
|
8
|
+
var services = require('../../dist/services-3471abb9.cjs.prod.js');
|
9
9
|
|
10
10
|
// Initialize a singleton for aws usage.
|
11
11
|
let _aws;
|
@@ -2,7 +2,7 @@ import { a as authorize } from '../../dist/index-b6ba32b4.esm.js';
|
|
2
2
|
export { r as rateLimit, u as usageLimit } from '../../dist/index-b6ba32b4.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-
|
5
|
+
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-b6961253.esm.js';
|
6
6
|
|
7
7
|
// Initialize a singleton for aws usage.
|
8
8
|
let _aws;
|
@@ -31,7 +31,7 @@ declare const usageEventSchema: z.ZodObject<{
|
|
31
31
|
sdkPlatform: z.ZodOptional<z.ZodString>;
|
32
32
|
productName: z.ZodOptional<z.ZodString>;
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
34
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "
|
34
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet";
|
35
35
|
action: string;
|
36
36
|
accountId?: string | undefined;
|
37
37
|
isClientEvent?: boolean | undefined;
|
@@ -56,7 +56,7 @@ declare const usageEventSchema: z.ZodObject<{
|
|
56
56
|
sdkPlatform?: string | undefined;
|
57
57
|
productName?: string | undefined;
|
58
58
|
}, {
|
59
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "
|
59
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet";
|
60
60
|
action: string;
|
61
61
|
accountId?: string | undefined;
|
62
62
|
isClientEvent?: boolean | undefined;
|
@@ -37,8 +37,14 @@ 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 payments: {
|
41
|
+
readonly name: "checkout";
|
42
|
+
readonly title: "Checkouts";
|
43
|
+
readonly description: "Payments for easy web3 onboarding";
|
44
|
+
readonly actions: readonly [];
|
45
|
+
};
|
40
46
|
};
|
41
|
-
export declare const SERVICE_NAMES: ("storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets")[];
|
47
|
+
export declare const SERVICE_NAMES: ("storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "payments")[];
|
42
48
|
export declare const SERVICES: ({
|
43
49
|
readonly name: "storage";
|
44
50
|
readonly title: "Storage";
|
@@ -72,6 +78,11 @@ export declare const SERVICES: ({
|
|
72
78
|
readonly title: "Embedded Wallets";
|
73
79
|
readonly description: "E-mail and social login wallets for easy web3 onboarding";
|
74
80
|
readonly actions: readonly [];
|
81
|
+
} | {
|
82
|
+
readonly name: "checkout";
|
83
|
+
readonly title: "Checkouts";
|
84
|
+
readonly description: "Payments for easy web3 onboarding";
|
85
|
+
readonly actions: readonly [];
|
75
86
|
})[];
|
76
87
|
export type ServiceName = (typeof SERVICE_NAMES)[number];
|
77
88
|
export type ServiceAction = {
|
@@ -113,5 +124,10 @@ export declare function getServiceByName(name: ServiceName): {
|
|
113
124
|
readonly title: "Embedded Wallets";
|
114
125
|
readonly description: "E-mail and social login wallets for easy web3 onboarding";
|
115
126
|
readonly actions: readonly [];
|
127
|
+
} | {
|
128
|
+
readonly name: "checkout";
|
129
|
+
readonly title: "Checkouts";
|
130
|
+
readonly description: "Payments for easy web3 onboarding";
|
131
|
+
readonly actions: readonly [];
|
116
132
|
};
|
117
133
|
//# 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
|
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,gFAEe,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"}
|
@@ -42,6 +42,13 @@ const SERVICE_DEFINITIONS = {
|
|
42
42
|
description: "E-mail and social login wallets for easy web3 onboarding",
|
43
43
|
// all actions allowed
|
44
44
|
actions: []
|
45
|
+
},
|
46
|
+
payments: {
|
47
|
+
name: "checkout",
|
48
|
+
title: "Checkouts",
|
49
|
+
description: "Payments for easy web3 onboarding",
|
50
|
+
// all actions allowed
|
51
|
+
actions: []
|
45
52
|
}
|
46
53
|
};
|
47
54
|
const SERVICE_NAMES = Object.keys(SERVICE_DEFINITIONS);
|
@@ -40,6 +40,13 @@ const SERVICE_DEFINITIONS = {
|
|
40
40
|
description: "E-mail and social login wallets for easy web3 onboarding",
|
41
41
|
// all actions allowed
|
42
42
|
actions: []
|
43
|
+
},
|
44
|
+
payments: {
|
45
|
+
name: "checkout",
|
46
|
+
title: "Checkouts",
|
47
|
+
description: "Payments for easy web3 onboarding",
|
48
|
+
// all actions allowed
|
49
|
+
actions: []
|
43
50
|
}
|
44
51
|
};
|
45
52
|
const SERVICE_NAMES = Object.keys(SERVICE_DEFINITIONS);
|
@@ -42,6 +42,13 @@ const SERVICE_DEFINITIONS = {
|
|
42
42
|
description: "E-mail and social login wallets for easy web3 onboarding",
|
43
43
|
// all actions allowed
|
44
44
|
actions: []
|
45
|
+
},
|
46
|
+
payments: {
|
47
|
+
name: "checkout",
|
48
|
+
title: "Checkouts",
|
49
|
+
description: "Payments for easy web3 onboarding",
|
50
|
+
// all actions allowed
|
51
|
+
actions: []
|
45
52
|
}
|
46
53
|
};
|
47
54
|
const SERVICE_NAMES = Object.keys(SERVICE_DEFINITIONS);
|
@@ -1 +1 @@
|
|
1
|
-
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from './services-
|
1
|
+
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from './services-b6961253.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-c9486214.cjs.dev.js');
|
7
|
-
var services = require('../../dist/services-
|
7
|
+
var services = require('../../dist/services-bc56e93d.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-208ce992.cjs.prod.js');
|
7
|
-
var services = require('../../dist/services-
|
7
|
+
var services = require('../../dist/services-3471abb9.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-b6ba32b4.esm.js';
|
3
3
|
export { r as rateLimit, u as usageLimit } from '../../dist/index-b6ba32b4.esm.js';
|
4
|
-
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-
|
4
|
+
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-b6961253.esm.js';
|
5
5
|
|
6
6
|
/**
|
7
7
|
*
|
package/package.json
CHANGED