@thirdweb-dev/service-utils 0.5.0-nightly-f5aed34d-20230829001006 → 0.5.0-nightly-6cf298a29-20240308012322
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 +59 -27
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +59 -27
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +58 -27
- package/dist/declarations/src/cf-worker/index.d.ts +6 -3
- package/dist/declarations/src/cf-worker/index.d.ts.map +1 -1
- package/dist/declarations/src/cf-worker/usage.d.ts +75 -12
- package/dist/declarations/src/cf-worker/usage.d.ts.map +1 -1
- package/dist/declarations/src/core/api.d.ts +37 -1
- package/dist/declarations/src/core/api.d.ts.map +1 -1
- package/dist/declarations/src/core/authorize/client.d.ts.map +1 -1
- package/dist/declarations/src/core/authorize/index.d.ts.map +1 -1
- package/dist/declarations/src/core/authorize/service.d.ts.map +1 -1
- package/dist/declarations/src/core/rateLimit/index.d.ts +20 -0
- package/dist/declarations/src/core/rateLimit/index.d.ts.map +1 -0
- package/dist/declarations/src/core/rateLimit/types.d.ts +13 -0
- package/dist/declarations/src/core/rateLimit/types.d.ts.map +1 -0
- package/dist/declarations/src/core/services.d.ts +49 -1
- package/dist/declarations/src/core/services.d.ts.map +1 -1
- package/dist/declarations/src/core/usageLimit/index.d.ts +5 -0
- package/dist/declarations/src/core/usageLimit/index.d.ts.map +1 -0
- package/dist/declarations/src/core/usageLimit/types.d.ts +9 -0
- package/dist/declarations/src/core/usageLimit/types.d.ts.map +1 -0
- package/dist/declarations/src/node/index.d.ts +23 -3
- package/dist/declarations/src/node/index.d.ts.map +1 -1
- package/dist/{index-ffddf746.esm.js → index-3b9a0743.esm.js} +170 -20
- package/dist/{index-6e0ecc5f.cjs.prod.js → index-62b88cac.cjs.dev.js} +171 -19
- package/dist/{index-cd4f96ef.cjs.dev.js → index-aa324361.cjs.prod.js} +171 -19
- package/dist/{services-86283509.esm.js → services-2aecbda8.esm.js} +21 -0
- package/dist/{services-9e185105.cjs.prod.js → services-508322f3.cjs.dev.js} +21 -0
- package/dist/{services-a3f36057.cjs.dev.js → services-5c4d6977.cjs.prod.js} +21 -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 +50 -24
- package/node/dist/thirdweb-dev-service-utils-node.cjs.prod.js +50 -24
- package/node/dist/thirdweb-dev-service-utils-node.esm.js +49 -24
- package/package.json +9 -8
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var index = require('../../dist/index-
|
6
|
-
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
5
|
+
var index = require('../../dist/index-62b88cac.cjs.dev.js');
|
7
6
|
var aws4fetch = require('aws4fetch');
|
8
7
|
var zod = require('zod');
|
8
|
+
var services = require('../../dist/services-508322f3.cjs.dev.js');
|
9
9
|
|
10
10
|
// Initialize a singleton for aws usage.
|
11
11
|
let _aws;
|
@@ -20,23 +20,46 @@ function getAws(options) {
|
|
20
20
|
* Types
|
21
21
|
*/
|
22
22
|
const usageEventSchema = zod.z.object({
|
23
|
-
source: zod.z.enum(["
|
23
|
+
source: zod.z.enum(["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine"]),
|
24
24
|
action: zod.z.string(),
|
25
|
-
|
26
|
-
|
25
|
+
/**
|
26
|
+
* The following fields are optional.
|
27
|
+
*/
|
28
|
+
|
29
|
+
accountId: zod.z.string().optional(),
|
30
|
+
isClientEvent: zod.z.boolean().optional(),
|
27
31
|
apiKeyId: zod.z.string().optional(),
|
28
32
|
creatorWalletAddress: zod.z.string().optional(),
|
29
33
|
clientId: zod.z.string().optional(),
|
30
34
|
walletAddress: zod.z.string().optional(),
|
35
|
+
walletType: zod.z.string().optional(),
|
31
36
|
chainId: zod.z.number().int().positive().optional(),
|
32
37
|
provider: zod.z.string().optional(),
|
33
38
|
mimeType: zod.z.string().optional(),
|
34
39
|
fileSize: zod.z.number().int().nonnegative().optional(),
|
35
40
|
fileCid: zod.z.string().optional(),
|
36
|
-
|
41
|
+
evmMethod: zod.z.string().optional(),
|
42
|
+
userOpHash: zod.z.string().optional(),
|
37
43
|
gasLimit: zod.z.number().nonnegative().optional(),
|
38
44
|
gasPricePerUnit: zod.z.string().optional(),
|
39
|
-
|
45
|
+
transactionFeeUsd: zod.z.number().optional(),
|
46
|
+
transactionHash: zod.z.string().optional(),
|
47
|
+
sdkName: zod.z.string().optional(),
|
48
|
+
sdkVersion: zod.z.string().optional(),
|
49
|
+
sdkPlatform: zod.z.string().optional(),
|
50
|
+
productName: zod.z.string().optional(),
|
51
|
+
transactionValue: zod.z.string().optional(),
|
52
|
+
pathname: zod.z.string().optional(),
|
53
|
+
contractAddress: zod.z.string().optional(),
|
54
|
+
errorCode: zod.z.string().optional(),
|
55
|
+
httpStatusCode: zod.z.number().int().nonnegative().optional(),
|
56
|
+
functionName: zod.z.string().optional(),
|
57
|
+
extension: zod.z.string().optional(),
|
58
|
+
retryCount: zod.z.number().int().nonnegative().optional(),
|
59
|
+
policyId: zod.z.string().optional(),
|
60
|
+
msSinceQueue: zod.z.number().nonnegative().optional(),
|
61
|
+
msSinceSend: zod.z.number().nonnegative().optional(),
|
62
|
+
msTotalDuration: zod.z.number().nonnegative().optional()
|
40
63
|
});
|
41
64
|
/**
|
42
65
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -205,29 +228,38 @@ async function logHttpRequest(_ref) {
|
|
205
228
|
req,
|
206
229
|
res,
|
207
230
|
isAuthed,
|
208
|
-
statusMessage
|
231
|
+
statusMessage,
|
232
|
+
latencyMs
|
209
233
|
} = _ref;
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
234
|
+
try {
|
235
|
+
const authorizationData = await extractAuthorizationData({
|
236
|
+
req,
|
237
|
+
clientId
|
238
|
+
});
|
239
|
+
const headers = req.headers;
|
240
|
+
console.log(JSON.stringify({
|
241
|
+
source,
|
242
|
+
pathname: req.url,
|
243
|
+
hasSecretKey: !!authorizationData.secretKey,
|
244
|
+
hasClientId: !!authorizationData.clientId,
|
245
|
+
hasJwt: !!authorizationData.jwt,
|
246
|
+
clientId: authorizationData.clientId,
|
247
|
+
isAuthed: !!isAuthed ?? null,
|
248
|
+
status: res.status,
|
249
|
+
sdkName: headers.get("x-sdk-name") ?? "unknown",
|
250
|
+
sdkVersion: headers.get("x-sdk-version") ?? "unknown",
|
251
|
+
platform: headers.get("x-sdk-platform") ?? "unknown",
|
252
|
+
os: headers.get("x-sdk-os") ?? "unknown",
|
253
|
+
latencyMs: latencyMs ?? null
|
254
|
+
}));
|
255
|
+
console.log(`statusMessage=${statusMessage ?? res.statusText}`);
|
256
|
+
} catch (err) {
|
257
|
+
console.error("Failed to log HTTP request:", err);
|
258
|
+
}
|
229
259
|
}
|
230
260
|
|
261
|
+
exports.rateLimit = index.rateLimit;
|
262
|
+
exports.usageLimit = index.usageLimit;
|
231
263
|
exports.SERVICES = services.SERVICES;
|
232
264
|
exports.SERVICE_DEFINITIONS = services.SERVICE_DEFINITIONS;
|
233
265
|
exports.SERVICE_NAMES = services.SERVICE_NAMES;
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var index = require('../../dist/index-
|
6
|
-
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
5
|
+
var index = require('../../dist/index-aa324361.cjs.prod.js');
|
7
6
|
var aws4fetch = require('aws4fetch');
|
8
7
|
var zod = require('zod');
|
8
|
+
var services = require('../../dist/services-5c4d6977.cjs.prod.js');
|
9
9
|
|
10
10
|
// Initialize a singleton for aws usage.
|
11
11
|
let _aws;
|
@@ -20,23 +20,46 @@ function getAws(options) {
|
|
20
20
|
* Types
|
21
21
|
*/
|
22
22
|
const usageEventSchema = zod.z.object({
|
23
|
-
source: zod.z.enum(["
|
23
|
+
source: zod.z.enum(["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine"]),
|
24
24
|
action: zod.z.string(),
|
25
|
-
|
26
|
-
|
25
|
+
/**
|
26
|
+
* The following fields are optional.
|
27
|
+
*/
|
28
|
+
|
29
|
+
accountId: zod.z.string().optional(),
|
30
|
+
isClientEvent: zod.z.boolean().optional(),
|
27
31
|
apiKeyId: zod.z.string().optional(),
|
28
32
|
creatorWalletAddress: zod.z.string().optional(),
|
29
33
|
clientId: zod.z.string().optional(),
|
30
34
|
walletAddress: zod.z.string().optional(),
|
35
|
+
walletType: zod.z.string().optional(),
|
31
36
|
chainId: zod.z.number().int().positive().optional(),
|
32
37
|
provider: zod.z.string().optional(),
|
33
38
|
mimeType: zod.z.string().optional(),
|
34
39
|
fileSize: zod.z.number().int().nonnegative().optional(),
|
35
40
|
fileCid: zod.z.string().optional(),
|
36
|
-
|
41
|
+
evmMethod: zod.z.string().optional(),
|
42
|
+
userOpHash: zod.z.string().optional(),
|
37
43
|
gasLimit: zod.z.number().nonnegative().optional(),
|
38
44
|
gasPricePerUnit: zod.z.string().optional(),
|
39
|
-
|
45
|
+
transactionFeeUsd: zod.z.number().optional(),
|
46
|
+
transactionHash: zod.z.string().optional(),
|
47
|
+
sdkName: zod.z.string().optional(),
|
48
|
+
sdkVersion: zod.z.string().optional(),
|
49
|
+
sdkPlatform: zod.z.string().optional(),
|
50
|
+
productName: zod.z.string().optional(),
|
51
|
+
transactionValue: zod.z.string().optional(),
|
52
|
+
pathname: zod.z.string().optional(),
|
53
|
+
contractAddress: zod.z.string().optional(),
|
54
|
+
errorCode: zod.z.string().optional(),
|
55
|
+
httpStatusCode: zod.z.number().int().nonnegative().optional(),
|
56
|
+
functionName: zod.z.string().optional(),
|
57
|
+
extension: zod.z.string().optional(),
|
58
|
+
retryCount: zod.z.number().int().nonnegative().optional(),
|
59
|
+
policyId: zod.z.string().optional(),
|
60
|
+
msSinceQueue: zod.z.number().nonnegative().optional(),
|
61
|
+
msSinceSend: zod.z.number().nonnegative().optional(),
|
62
|
+
msTotalDuration: zod.z.number().nonnegative().optional()
|
40
63
|
});
|
41
64
|
/**
|
42
65
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -205,29 +228,38 @@ async function logHttpRequest(_ref) {
|
|
205
228
|
req,
|
206
229
|
res,
|
207
230
|
isAuthed,
|
208
|
-
statusMessage
|
231
|
+
statusMessage,
|
232
|
+
latencyMs
|
209
233
|
} = _ref;
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
234
|
+
try {
|
235
|
+
const authorizationData = await extractAuthorizationData({
|
236
|
+
req,
|
237
|
+
clientId
|
238
|
+
});
|
239
|
+
const headers = req.headers;
|
240
|
+
console.log(JSON.stringify({
|
241
|
+
source,
|
242
|
+
pathname: req.url,
|
243
|
+
hasSecretKey: !!authorizationData.secretKey,
|
244
|
+
hasClientId: !!authorizationData.clientId,
|
245
|
+
hasJwt: !!authorizationData.jwt,
|
246
|
+
clientId: authorizationData.clientId,
|
247
|
+
isAuthed: !!isAuthed ?? null,
|
248
|
+
status: res.status,
|
249
|
+
sdkName: headers.get("x-sdk-name") ?? "unknown",
|
250
|
+
sdkVersion: headers.get("x-sdk-version") ?? "unknown",
|
251
|
+
platform: headers.get("x-sdk-platform") ?? "unknown",
|
252
|
+
os: headers.get("x-sdk-os") ?? "unknown",
|
253
|
+
latencyMs: latencyMs ?? null
|
254
|
+
}));
|
255
|
+
console.log(`statusMessage=${statusMessage ?? res.statusText}`);
|
256
|
+
} catch (err) {
|
257
|
+
console.error("Failed to log HTTP request:", err);
|
258
|
+
}
|
229
259
|
}
|
230
260
|
|
261
|
+
exports.rateLimit = index.rateLimit;
|
262
|
+
exports.usageLimit = index.usageLimit;
|
231
263
|
exports.SERVICES = services.SERVICES;
|
232
264
|
exports.SERVICE_DEFINITIONS = services.SERVICE_DEFINITIONS;
|
233
265
|
exports.SERVICE_NAMES = services.SERVICE_NAMES;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { a as authorize } from '../../dist/index-
|
2
|
-
export {
|
1
|
+
import { a as authorize } from '../../dist/index-3b9a0743.esm.js';
|
2
|
+
export { r as rateLimit, u as usageLimit } from '../../dist/index-3b9a0743.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-2aecbda8.esm.js';
|
5
6
|
|
6
7
|
// Initialize a singleton for aws usage.
|
7
8
|
let _aws;
|
@@ -16,23 +17,46 @@ function getAws(options) {
|
|
16
17
|
* Types
|
17
18
|
*/
|
18
19
|
const usageEventSchema = z.object({
|
19
|
-
source: z.enum(["
|
20
|
+
source: z.enum(["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine"]),
|
20
21
|
action: z.string(),
|
21
|
-
|
22
|
-
|
22
|
+
/**
|
23
|
+
* The following fields are optional.
|
24
|
+
*/
|
25
|
+
|
26
|
+
accountId: z.string().optional(),
|
27
|
+
isClientEvent: z.boolean().optional(),
|
23
28
|
apiKeyId: z.string().optional(),
|
24
29
|
creatorWalletAddress: z.string().optional(),
|
25
30
|
clientId: z.string().optional(),
|
26
31
|
walletAddress: z.string().optional(),
|
32
|
+
walletType: z.string().optional(),
|
27
33
|
chainId: z.number().int().positive().optional(),
|
28
34
|
provider: z.string().optional(),
|
29
35
|
mimeType: z.string().optional(),
|
30
36
|
fileSize: z.number().int().nonnegative().optional(),
|
31
37
|
fileCid: z.string().optional(),
|
32
|
-
|
38
|
+
evmMethod: z.string().optional(),
|
39
|
+
userOpHash: z.string().optional(),
|
33
40
|
gasLimit: z.number().nonnegative().optional(),
|
34
41
|
gasPricePerUnit: z.string().optional(),
|
35
|
-
|
42
|
+
transactionFeeUsd: z.number().optional(),
|
43
|
+
transactionHash: z.string().optional(),
|
44
|
+
sdkName: z.string().optional(),
|
45
|
+
sdkVersion: z.string().optional(),
|
46
|
+
sdkPlatform: z.string().optional(),
|
47
|
+
productName: z.string().optional(),
|
48
|
+
transactionValue: z.string().optional(),
|
49
|
+
pathname: z.string().optional(),
|
50
|
+
contractAddress: z.string().optional(),
|
51
|
+
errorCode: z.string().optional(),
|
52
|
+
httpStatusCode: z.number().int().nonnegative().optional(),
|
53
|
+
functionName: z.string().optional(),
|
54
|
+
extension: z.string().optional(),
|
55
|
+
retryCount: z.number().int().nonnegative().optional(),
|
56
|
+
policyId: z.string().optional(),
|
57
|
+
msSinceQueue: z.number().nonnegative().optional(),
|
58
|
+
msSinceSend: z.number().nonnegative().optional(),
|
59
|
+
msTotalDuration: z.number().nonnegative().optional()
|
36
60
|
});
|
37
61
|
/**
|
38
62
|
* Publish usage events. Provide the relevant fields for your application.
|
@@ -201,27 +225,34 @@ async function logHttpRequest(_ref) {
|
|
201
225
|
req,
|
202
226
|
res,
|
203
227
|
isAuthed,
|
204
|
-
statusMessage
|
228
|
+
statusMessage,
|
229
|
+
latencyMs
|
205
230
|
} = _ref;
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
231
|
+
try {
|
232
|
+
const authorizationData = await extractAuthorizationData({
|
233
|
+
req,
|
234
|
+
clientId
|
235
|
+
});
|
236
|
+
const headers = req.headers;
|
237
|
+
console.log(JSON.stringify({
|
238
|
+
source,
|
239
|
+
pathname: req.url,
|
240
|
+
hasSecretKey: !!authorizationData.secretKey,
|
241
|
+
hasClientId: !!authorizationData.clientId,
|
242
|
+
hasJwt: !!authorizationData.jwt,
|
243
|
+
clientId: authorizationData.clientId,
|
244
|
+
isAuthed: !!isAuthed ?? null,
|
245
|
+
status: res.status,
|
246
|
+
sdkName: headers.get("x-sdk-name") ?? "unknown",
|
247
|
+
sdkVersion: headers.get("x-sdk-version") ?? "unknown",
|
248
|
+
platform: headers.get("x-sdk-platform") ?? "unknown",
|
249
|
+
os: headers.get("x-sdk-os") ?? "unknown",
|
250
|
+
latencyMs: latencyMs ?? null
|
251
|
+
}));
|
252
|
+
console.log(`statusMessage=${statusMessage ?? res.statusText}`);
|
253
|
+
} catch (err) {
|
254
|
+
console.error("Failed to log HTTP request:", err);
|
255
|
+
}
|
225
256
|
}
|
226
257
|
|
227
258
|
export { authorizeWorker, deriveClientIdFromSecretKeyHash, extractAuthorizationData, hashSecretKey, logHttpRequest, publishUsageEvents };
|
@@ -4,9 +4,11 @@ import type { Request } from "@cloudflare/workers-types";
|
|
4
4
|
import type { AuthorizationInput } from "../core/authorize";
|
5
5
|
import type { AuthorizationResult } from "../core/authorize/types";
|
6
6
|
import type { CoreAuthInput } from "../core/types";
|
7
|
-
export * from "../core/services";
|
8
7
|
export * from "./usage";
|
9
|
-
|
8
|
+
export * from "../core/services";
|
9
|
+
export * from "../core/rateLimit";
|
10
|
+
export * from "../core/usageLimit";
|
11
|
+
export type WorkerServiceConfig = CoreServiceConfig & {
|
10
12
|
kvStore: KVNamespace;
|
11
13
|
ctx: ExecutionContext;
|
12
14
|
cacheTtlSeconds?: number;
|
@@ -18,10 +20,11 @@ export declare function authorizeWorker(authInput: AuthInput, serviceConfig: Wor
|
|
18
20
|
export declare function extractAuthorizationData(authInput: AuthInput): Promise<AuthorizationInput>;
|
19
21
|
export declare function hashSecretKey(secretKey: string): Promise<string>;
|
20
22
|
export declare function deriveClientIdFromSecretKeyHash(secretKeyHash: string): string;
|
21
|
-
export declare function logHttpRequest({ source, clientId, req, res, isAuthed, statusMessage, }: AuthInput & {
|
23
|
+
export declare function logHttpRequest({ source, clientId, req, res, isAuthed, statusMessage, latencyMs, }: AuthInput & {
|
22
24
|
source: string;
|
23
25
|
res: Response;
|
24
26
|
isAuthed?: boolean;
|
25
27
|
statusMessage?: Error | string;
|
28
|
+
latencyMs?: number;
|
26
29
|
}): Promise<void>;
|
27
30
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK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* Types
|
4
4
|
*/
|
5
5
|
declare const usageEventSchema: z.ZodObject<{
|
6
|
-
source: z.ZodEnum<["
|
6
|
+
source: z.ZodEnum<["embeddedWallets", "rpc", "storage", "bundler", "paymaster", "relayer", "connectWallet", "checkout", "engine"]>;
|
7
7
|
action: z.ZodString;
|
8
|
-
|
8
|
+
/**
|
9
|
+
* The following fields are optional.
|
10
|
+
*/
|
11
|
+
accountId: z.ZodOptional<z.ZodString>;
|
12
|
+
isClientEvent: z.ZodOptional<z.ZodBoolean>;
|
9
13
|
apiKeyId: z.ZodOptional<z.ZodString>;
|
10
14
|
creatorWalletAddress: z.ZodOptional<z.ZodString>;
|
11
15
|
clientId: z.ZodOptional<z.ZodString>;
|
12
16
|
walletAddress: z.ZodOptional<z.ZodString>;
|
17
|
+
walletType: z.ZodOptional<z.ZodString>;
|
13
18
|
chainId: z.ZodOptional<z.ZodNumber>;
|
14
19
|
provider: z.ZodOptional<z.ZodString>;
|
15
20
|
mimeType: z.ZodOptional<z.ZodString>;
|
16
21
|
fileSize: z.ZodOptional<z.ZodNumber>;
|
17
22
|
fileCid: z.ZodOptional<z.ZodString>;
|
18
|
-
|
23
|
+
evmMethod: z.ZodOptional<z.ZodString>;
|
24
|
+
userOpHash: z.ZodOptional<z.ZodString>;
|
19
25
|
gasLimit: z.ZodOptional<z.ZodNumber>;
|
20
26
|
gasPricePerUnit: z.ZodOptional<z.ZodString>;
|
21
|
-
|
27
|
+
transactionFeeUsd: z.ZodOptional<z.ZodNumber>;
|
28
|
+
transactionHash: z.ZodOptional<z.ZodString>;
|
29
|
+
sdkName: z.ZodOptional<z.ZodString>;
|
30
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
31
|
+
sdkPlatform: z.ZodOptional<z.ZodString>;
|
32
|
+
productName: z.ZodOptional<z.ZodString>;
|
33
|
+
transactionValue: z.ZodOptional<z.ZodString>;
|
34
|
+
pathname: z.ZodOptional<z.ZodString>;
|
35
|
+
contractAddress: z.ZodOptional<z.ZodString>;
|
36
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
37
|
+
httpStatusCode: z.ZodOptional<z.ZodNumber>;
|
38
|
+
functionName: z.ZodOptional<z.ZodString>;
|
39
|
+
extension: z.ZodOptional<z.ZodString>;
|
40
|
+
retryCount: z.ZodOptional<z.ZodNumber>;
|
41
|
+
policyId: z.ZodOptional<z.ZodString>;
|
42
|
+
msSinceQueue: z.ZodOptional<z.ZodNumber>;
|
43
|
+
msSinceSend: z.ZodOptional<z.ZodNumber>;
|
44
|
+
msTotalDuration: z.ZodOptional<z.ZodNumber>;
|
22
45
|
}, "strip", z.ZodTypeAny, {
|
23
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "
|
46
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet" | "engine";
|
24
47
|
action: string;
|
25
|
-
accountId
|
48
|
+
accountId?: string | undefined;
|
49
|
+
isClientEvent?: boolean | undefined;
|
26
50
|
apiKeyId?: string | undefined;
|
27
51
|
creatorWalletAddress?: string | undefined;
|
28
52
|
clientId?: string | undefined;
|
29
53
|
walletAddress?: string | undefined;
|
54
|
+
walletType?: string | undefined;
|
30
55
|
chainId?: number | undefined;
|
31
56
|
provider?: string | undefined;
|
32
57
|
mimeType?: string | undefined;
|
33
58
|
fileSize?: number | undefined;
|
34
59
|
fileCid?: string | undefined;
|
35
|
-
|
60
|
+
evmMethod?: string | undefined;
|
61
|
+
userOpHash?: string | undefined;
|
36
62
|
gasLimit?: number | undefined;
|
37
63
|
gasPricePerUnit?: string | undefined;
|
38
|
-
|
64
|
+
transactionFeeUsd?: number | undefined;
|
65
|
+
transactionHash?: string | undefined;
|
66
|
+
sdkName?: string | undefined;
|
67
|
+
sdkVersion?: string | undefined;
|
68
|
+
sdkPlatform?: string | undefined;
|
69
|
+
productName?: string | undefined;
|
70
|
+
transactionValue?: string | undefined;
|
71
|
+
pathname?: string | undefined;
|
72
|
+
contractAddress?: string | undefined;
|
73
|
+
errorCode?: string | undefined;
|
74
|
+
httpStatusCode?: number | undefined;
|
75
|
+
functionName?: string | undefined;
|
76
|
+
extension?: string | undefined;
|
77
|
+
retryCount?: number | undefined;
|
78
|
+
policyId?: string | undefined;
|
79
|
+
msSinceQueue?: number | undefined;
|
80
|
+
msSinceSend?: number | undefined;
|
81
|
+
msTotalDuration?: number | undefined;
|
39
82
|
}, {
|
40
|
-
source: "storage" | "rpc" | "bundler" | "relayer" | "
|
83
|
+
source: "storage" | "rpc" | "bundler" | "relayer" | "embeddedWallets" | "checkout" | "paymaster" | "connectWallet" | "engine";
|
41
84
|
action: string;
|
42
|
-
accountId
|
85
|
+
accountId?: string | undefined;
|
86
|
+
isClientEvent?: boolean | undefined;
|
43
87
|
apiKeyId?: string | undefined;
|
44
88
|
creatorWalletAddress?: string | undefined;
|
45
89
|
clientId?: string | undefined;
|
46
90
|
walletAddress?: string | undefined;
|
91
|
+
walletType?: string | undefined;
|
47
92
|
chainId?: number | undefined;
|
48
93
|
provider?: string | undefined;
|
49
94
|
mimeType?: string | undefined;
|
50
95
|
fileSize?: number | undefined;
|
51
96
|
fileCid?: string | undefined;
|
52
|
-
|
97
|
+
evmMethod?: string | undefined;
|
98
|
+
userOpHash?: string | undefined;
|
53
99
|
gasLimit?: number | undefined;
|
54
100
|
gasPricePerUnit?: string | undefined;
|
55
|
-
|
101
|
+
transactionFeeUsd?: number | undefined;
|
102
|
+
transactionHash?: string | undefined;
|
103
|
+
sdkName?: string | undefined;
|
104
|
+
sdkVersion?: string | undefined;
|
105
|
+
sdkPlatform?: string | undefined;
|
106
|
+
productName?: string | undefined;
|
107
|
+
transactionValue?: string | undefined;
|
108
|
+
pathname?: string | undefined;
|
109
|
+
contractAddress?: string | undefined;
|
110
|
+
errorCode?: string | undefined;
|
111
|
+
httpStatusCode?: number | undefined;
|
112
|
+
functionName?: string | undefined;
|
113
|
+
extension?: string | undefined;
|
114
|
+
retryCount?: number | undefined;
|
115
|
+
policyId?: string | undefined;
|
116
|
+
msSinceQueue?: number | undefined;
|
117
|
+
msSinceSend?: number | undefined;
|
118
|
+
msTotalDuration?: number | undefined;
|
56
119
|
}>;
|
57
120
|
export type UsageEvent = z.infer<typeof usageEventSchema>;
|
58
121
|
/**
|
@@ -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;;;IAcpB;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCH,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,31 +1,65 @@
|
|
1
1
|
import type { ServiceName } from "./services";
|
2
|
+
export type UserOpData = {
|
3
|
+
sender: string;
|
4
|
+
targets: string[];
|
5
|
+
gasLimit: string;
|
6
|
+
gasPrice: string;
|
7
|
+
};
|
8
|
+
export type PolicyResult = {
|
9
|
+
policyId: string | null;
|
10
|
+
isAllowed: boolean;
|
11
|
+
reason: string;
|
12
|
+
};
|
2
13
|
export type CoreServiceConfig = {
|
3
|
-
enforceAuth
|
14
|
+
enforceAuth?: boolean;
|
4
15
|
apiUrl: string;
|
5
16
|
serviceScope: ServiceName;
|
6
17
|
serviceApiKey: string;
|
7
18
|
serviceAction?: string;
|
8
19
|
useWalletAuth?: boolean;
|
20
|
+
checkPolicy?: boolean;
|
21
|
+
policyMetadata?: {
|
22
|
+
chainId: number;
|
23
|
+
userOp: UserOpData;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
type Usage = {
|
27
|
+
storage?: {
|
28
|
+
sumFileSizeBytes: number;
|
29
|
+
};
|
30
|
+
embeddedWallets?: {
|
31
|
+
countWalletAddresses: number;
|
32
|
+
};
|
9
33
|
};
|
10
34
|
export type ApiKeyMetadata = {
|
11
35
|
id: string;
|
12
36
|
key: string;
|
13
37
|
accountId: string;
|
38
|
+
accountStatus: "noCustomer" | "noPayment" | "validPayment" | "invalidPayment";
|
39
|
+
accountPlan: "free" | "growth" | "pro" | "enterprise";
|
14
40
|
creatorWalletAddress: string;
|
15
41
|
secretHash: string;
|
16
42
|
walletAddresses: string[];
|
17
43
|
domains: string[];
|
18
44
|
bundleIds: string[];
|
45
|
+
redirectUrls: string[];
|
19
46
|
services: {
|
20
47
|
name: string;
|
21
48
|
targetAddresses: string[];
|
22
49
|
actions: string[];
|
23
50
|
}[];
|
51
|
+
usage?: Usage;
|
52
|
+
limits: Partial<Record<ServiceName, number>>;
|
53
|
+
rateLimits: Partial<Record<ServiceName, number>>;
|
54
|
+
policyResult?: PolicyResult;
|
24
55
|
};
|
25
56
|
export type AccountMetadata = {
|
26
57
|
id: string;
|
27
58
|
name: string;
|
28
59
|
creatorWalletAddress: string;
|
60
|
+
usage?: Usage;
|
61
|
+
limits: Partial<Record<ServiceName, number>>;
|
62
|
+
rateLimits: Partial<Record<ServiceName, number>>;
|
29
63
|
};
|
30
64
|
export type ApiResponse = {
|
31
65
|
data: ApiKeyMetadata | null;
|
@@ -45,4 +79,6 @@ export type ApiAccountResponse = {
|
|
45
79
|
};
|
46
80
|
export declare function fetchKeyMetadataFromApi(clientId: string, config: CoreServiceConfig): Promise<ApiResponse>;
|
47
81
|
export declare function fetchAccountFromApi(jwt: string, config: CoreServiceConfig, useWalletAuth: boolean): Promise<ApiAccountResponse>;
|
82
|
+
export declare function updateRateLimitedAt(apiKeyId: string, config: CoreServiceConfig): Promise<void>;
|
83
|
+
export {};
|
48
84
|
//# sourceMappingURL=api.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"../../../../src/core","sources":["api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"../../../../src/core","sources":["api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW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nD,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,eAAe,CAC7B,WAAW,EAAE,0BAA0B,EACvC,UAAU,EAAE,cAAc,GACzB,mBAAmB,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,eAAe,CAC7B,WAAW,EAAE,0BAA0B,EACvC,UAAU,EAAE,cAAc,GACzB,mBAAmB,CA2GrB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,EAGlB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,GAAG,EAAE,MAAM,GAAG,IAA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AC;CAC/B,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClD,GAAG,EAAE,CACH,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,cAAc,GAAG,eAAe,KACnC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAgBF,wBAAsB,SAAS,CAC7B,QAAQ,EAAE,kBAAkB,EAC5B,aAAa,EAAE,iBAAiB,EAChC,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAsN9B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,2BAA2B,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAC;AAEhF,wBAAgB,gBAAgB,CAC9B,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,iBAAiB,EAChC,oBAAoB,CAAC,EAAE,2BAA2B,GACjD,mBAAmB,
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,2BAA2B,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAC;AAEhF,wBAAgB,gBAAgB,CAC9B,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,iBAAiB,EAChC,oBAAoB,CAAC,EAAE,2BAA2B,GACjD,mBAAmB,CAgErB"}
|