accounts 0.16.2 → 0.17.0
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/CHANGELOG.md +33 -0
- package/README.md +3 -4
- package/dist/cli/Provider.d.ts +1 -1
- package/dist/cli/Provider.d.ts.map +1 -1
- package/dist/cli/Provider.js +3 -3
- package/dist/cli/Provider.js.map +1 -1
- package/dist/cli/adapter.d.ts +13 -8
- package/dist/cli/adapter.d.ts.map +1 -1
- package/dist/cli/adapter.js +92 -303
- package/dist/cli/adapter.js.map +1 -1
- package/dist/core/adapters/deviceCode/deviceCode.d.ts +59 -0
- package/dist/core/adapters/deviceCode/deviceCode.d.ts.map +1 -0
- package/dist/core/adapters/deviceCode/deviceCode.js +93 -0
- package/dist/core/adapters/deviceCode/deviceCode.js.map +1 -0
- package/dist/core/adapters/deviceCode/index.d.ts +3 -0
- package/dist/core/adapters/deviceCode/index.d.ts.map +1 -0
- package/dist/core/adapters/deviceCode/index.js +3 -0
- package/dist/core/adapters/deviceCode/index.js.map +1 -0
- package/dist/core/adapters/deviceCode/tempoWallet.d.ts +9 -0
- package/dist/core/adapters/deviceCode/tempoWallet.d.ts.map +1 -0
- package/dist/core/adapters/deviceCode/tempoWallet.js +11 -0
- package/dist/core/adapters/deviceCode/tempoWallet.js.map +1 -0
- package/dist/core/adapters/internal/fromRequest.d.ts +10 -0
- package/dist/core/adapters/internal/fromRequest.d.ts.map +1 -1
- package/dist/core/adapters/internal/fromRequest.js +4 -2
- package/dist/core/adapters/internal/fromRequest.js.map +1 -1
- package/dist/server/CliAuth.d.ts +69 -1
- package/dist/server/CliAuth.d.ts.map +1 -1
- package/dist/server/CliAuth.js +6 -1
- package/dist/server/CliAuth.js.map +1 -1
- package/dist/server/Handler.d.ts +2 -1
- package/dist/server/Handler.d.ts.map +1 -1
- package/dist/server/Handler.js +2 -1
- package/dist/server/Handler.js.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/internal/handlers/codeAuth.d.ts +1 -0
- package/dist/server/internal/handlers/codeAuth.d.ts.map +1 -1
- package/dist/server/internal/handlers/codeAuth.js +1 -0
- package/dist/server/internal/handlers/codeAuth.js.map +1 -1
- package/dist/server/internal/handlers/deviceCode.d.ts +60 -0
- package/dist/server/internal/handlers/deviceCode.d.ts.map +1 -0
- package/dist/server/internal/handlers/deviceCode.js +218 -0
- package/dist/server/internal/handlers/deviceCode.js.map +1 -0
- package/package.json +7 -1
- package/src/cli/Provider.localnet.test.ts +414 -470
- package/src/cli/Provider.test-d.ts +4 -3
- package/src/cli/Provider.ts +6 -6
- package/src/cli/adapter.ts +111 -380
- package/src/core/adapters/deviceCode/deviceCode.localnet.test.ts +226 -0
- package/src/core/adapters/deviceCode/deviceCode.test-d.ts +19 -0
- package/src/core/adapters/deviceCode/deviceCode.ts +157 -0
- package/src/core/adapters/deviceCode/index.ts +2 -0
- package/src/core/adapters/deviceCode/tempoWallet.ts +17 -0
- package/src/core/adapters/internal/fromRequest.ts +115 -88
- package/src/server/CliAuth.test.ts +29 -18
- package/src/server/CliAuth.ts +10 -2
- package/src/server/Handler.test-d.ts +19 -33
- package/src/server/Handler.ts +2 -1
- package/src/server/index.ts +1 -0
- package/src/server/internal/handlers/codeAuth.ts +1 -0
- package/src/server/internal/handlers/deviceCode.test.ts +140 -0
- package/src/server/internal/handlers/deviceCode.ts +323 -0
package/dist/server/CliAuth.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const keyAuthorization: z.ZodMiniObject<{
|
|
|
16
16
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
17
17
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
18
18
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
19
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
19
20
|
}, z.core.$strip>>>>;
|
|
20
21
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
21
22
|
}, z.core.$strip>;
|
|
@@ -30,6 +31,7 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
30
31
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
31
32
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
32
33
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
34
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
33
35
|
}, z.core.$strip>>>>;
|
|
34
36
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
35
37
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -53,12 +55,14 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
53
55
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
54
56
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
55
57
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
58
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
56
59
|
}, z.core.$strip>>>>;
|
|
57
60
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
58
61
|
}, z.core.$strip>>;
|
|
59
62
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
60
63
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
61
64
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
65
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
62
66
|
}, z.core.$strip>>>;
|
|
63
67
|
}, z.core.$strip>]>, "_zod"> & {
|
|
64
68
|
_zod: Omit<z.core.$ZodUnionInternals<readonly [z.ZodMiniObject<{
|
|
@@ -71,6 +75,7 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
71
75
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
72
76
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
73
77
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
78
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
74
79
|
}, z.core.$strip>>>>;
|
|
75
80
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
76
81
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -94,12 +99,14 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
94
99
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
95
100
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
96
101
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
102
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
97
103
|
}, z.core.$strip>>>>;
|
|
98
104
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
99
105
|
}, z.core.$strip>>;
|
|
100
106
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
101
107
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
102
108
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
109
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
103
110
|
}, z.core.$strip>>>;
|
|
104
111
|
}, z.core.$strip>]>, "output"> & {
|
|
105
112
|
output: {
|
|
@@ -113,6 +120,7 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
113
120
|
limits?: readonly {
|
|
114
121
|
token: `0x${string}`;
|
|
115
122
|
limit: bigint;
|
|
123
|
+
period?: number | undefined;
|
|
116
124
|
}[] | undefined;
|
|
117
125
|
showDeposit?: boolean | {
|
|
118
126
|
amount?: string | undefined;
|
|
@@ -130,6 +138,7 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
130
138
|
limits: readonly {
|
|
131
139
|
token: `0x${string}`;
|
|
132
140
|
limit: bigint;
|
|
141
|
+
period?: number | undefined;
|
|
133
142
|
}[];
|
|
134
143
|
chainId?: bigint | undefined;
|
|
135
144
|
keyAuthorization?: {
|
|
@@ -142,6 +151,7 @@ export declare const createRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObjec
|
|
|
142
151
|
limits?: readonly {
|
|
143
152
|
token: `0x${string}`;
|
|
144
153
|
limit: bigint;
|
|
154
|
+
period?: number | undefined;
|
|
145
155
|
}[] | undefined;
|
|
146
156
|
} | undefined;
|
|
147
157
|
expiry?: undefined;
|
|
@@ -174,6 +184,7 @@ export declare const pollResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject
|
|
|
174
184
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
175
185
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
176
186
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
187
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
177
188
|
}, z.core.$strip>>>>;
|
|
178
189
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
179
190
|
}, z.core.$strip>;
|
|
@@ -188,6 +199,7 @@ export declare const pollResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject
|
|
|
188
199
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
189
200
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
190
201
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
202
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
191
203
|
}, z.core.$strip>>>>;
|
|
192
204
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
193
205
|
}, z.core.$strip>>;
|
|
@@ -209,6 +221,7 @@ export declare const pollResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject
|
|
|
209
221
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
210
222
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
211
223
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
224
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
212
225
|
}, z.core.$strip>>>>;
|
|
213
226
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
214
227
|
}, z.core.$strip>;
|
|
@@ -223,6 +236,7 @@ export declare const pollResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject
|
|
|
223
236
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
224
237
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
225
238
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
239
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
226
240
|
}, z.core.$strip>>>>;
|
|
227
241
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
228
242
|
}, z.core.$strip>>;
|
|
@@ -248,6 +262,7 @@ export declare const pollResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject
|
|
|
248
262
|
limits?: readonly {
|
|
249
263
|
token: `0x${string}`;
|
|
250
264
|
limit: bigint;
|
|
265
|
+
period?: number | undefined;
|
|
251
266
|
}[] | undefined;
|
|
252
267
|
};
|
|
253
268
|
action?: undefined;
|
|
@@ -264,6 +279,7 @@ export declare const pollResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject
|
|
|
264
279
|
limits?: readonly {
|
|
265
280
|
token: `0x${string}`;
|
|
266
281
|
limit: bigint;
|
|
282
|
+
period?: number | undefined;
|
|
267
283
|
}[] | undefined;
|
|
268
284
|
} | undefined;
|
|
269
285
|
accountAddress?: undefined;
|
|
@@ -287,6 +303,7 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
287
303
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
288
304
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
289
305
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
306
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
290
307
|
}, z.core.$strip>>>>;
|
|
291
308
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
292
309
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -311,12 +328,14 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
311
328
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
312
329
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
313
330
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
331
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
314
332
|
}, z.core.$strip>>>>;
|
|
315
333
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
316
334
|
}, z.core.$strip>>;
|
|
317
335
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
318
336
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
319
337
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
338
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
320
339
|
}, z.core.$strip>>>;
|
|
321
340
|
status: z.ZodMiniLiteral<"pending">;
|
|
322
341
|
}, z.core.$strip>]>, "_zod"> & {
|
|
@@ -331,6 +350,7 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
331
350
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
332
351
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
333
352
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
353
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
334
354
|
}, z.core.$strip>>>>;
|
|
335
355
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
336
356
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -355,12 +375,14 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
355
375
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
356
376
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
357
377
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
378
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
358
379
|
}, z.core.$strip>>>>;
|
|
359
380
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
360
381
|
}, z.core.$strip>>;
|
|
361
382
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
362
383
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
363
384
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
385
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
364
386
|
}, z.core.$strip>>>;
|
|
365
387
|
status: z.ZodMiniLiteral<"pending">;
|
|
366
388
|
}, z.core.$strip>]>, "output"> & {
|
|
@@ -377,6 +399,7 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
377
399
|
limits?: readonly {
|
|
378
400
|
token: `0x${string}`;
|
|
379
401
|
limit: bigint;
|
|
402
|
+
period?: number | undefined;
|
|
380
403
|
}[] | undefined;
|
|
381
404
|
showDeposit?: boolean | {
|
|
382
405
|
amount?: string | undefined;
|
|
@@ -394,6 +417,7 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
394
417
|
limits: readonly {
|
|
395
418
|
token: `0x${string}`;
|
|
396
419
|
limit: bigint;
|
|
420
|
+
period?: number | undefined;
|
|
397
421
|
}[];
|
|
398
422
|
status: "pending";
|
|
399
423
|
keyAuthorization?: {
|
|
@@ -406,6 +430,7 @@ export declare const pendingResponse: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObj
|
|
|
406
430
|
limits?: readonly {
|
|
407
431
|
token: `0x${string}`;
|
|
408
432
|
limit: bigint;
|
|
433
|
+
period?: number | undefined;
|
|
409
434
|
}[] | undefined;
|
|
410
435
|
} | undefined;
|
|
411
436
|
expiry?: undefined;
|
|
@@ -429,6 +454,7 @@ export declare const authorizeRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
429
454
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
430
455
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
431
456
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
457
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
432
458
|
}, z.core.$strip>>>>;
|
|
433
459
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
434
460
|
}, z.core.$strip>;
|
|
@@ -446,6 +472,7 @@ export declare const authorizeRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
446
472
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
447
473
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
448
474
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
475
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
449
476
|
}, z.core.$strip>>>>;
|
|
450
477
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
451
478
|
}, z.core.$strip>>;
|
|
@@ -463,6 +490,7 @@ export declare const authorizeRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
463
490
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
464
491
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
465
492
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
493
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
466
494
|
}, z.core.$strip>>>>;
|
|
467
495
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
468
496
|
}, z.core.$strip>;
|
|
@@ -480,6 +508,7 @@ export declare const authorizeRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
480
508
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
481
509
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
482
510
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
511
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
483
512
|
}, z.core.$strip>>>>;
|
|
484
513
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
485
514
|
}, z.core.$strip>>;
|
|
@@ -497,6 +526,7 @@ export declare const authorizeRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
497
526
|
limits?: readonly {
|
|
498
527
|
token: `0x${string}`;
|
|
499
528
|
limit: bigint;
|
|
529
|
+
period?: number | undefined;
|
|
500
530
|
}[] | undefined;
|
|
501
531
|
};
|
|
502
532
|
action?: "authorizeAccessKey" | undefined;
|
|
@@ -516,6 +546,7 @@ export declare const authorizeRequest: Omit<z.ZodMiniUnion<readonly [z.ZodMiniOb
|
|
|
516
546
|
limits?: readonly {
|
|
517
547
|
token: `0x${string}`;
|
|
518
548
|
limit: bigint;
|
|
549
|
+
period?: number | undefined;
|
|
519
550
|
}[] | undefined;
|
|
520
551
|
} | undefined;
|
|
521
552
|
};
|
|
@@ -539,6 +570,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
539
570
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
540
571
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
541
572
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
573
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
542
574
|
}, z.core.$strip>>>>;
|
|
543
575
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
544
576
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -568,6 +600,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
568
600
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
569
601
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
570
602
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
603
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
571
604
|
}, z.core.$strip>>>>;
|
|
572
605
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
573
606
|
}, z.core.$strip>;
|
|
@@ -575,6 +608,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
575
608
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
576
609
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
577
610
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
611
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
578
612
|
}, z.core.$strip>>>>;
|
|
579
613
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
580
614
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -605,6 +639,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
605
639
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
606
640
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
607
641
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
642
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
608
643
|
}, z.core.$strip>>>>;
|
|
609
644
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
610
645
|
}, z.core.$strip>;
|
|
@@ -612,6 +647,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
612
647
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
613
648
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
614
649
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
650
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
615
651
|
}, z.core.$strip>>>>;
|
|
616
652
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
617
653
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -639,12 +675,14 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
639
675
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
640
676
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
641
677
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
678
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
642
679
|
}, z.core.$strip>>>>;
|
|
643
680
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
644
681
|
}, z.core.$strip>>;
|
|
645
682
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
646
683
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
647
684
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
685
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
648
686
|
}, z.core.$strip>>>;
|
|
649
687
|
status: z.ZodMiniLiteral<"pending">;
|
|
650
688
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -667,12 +705,14 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
667
705
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
668
706
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
669
707
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
708
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
670
709
|
}, z.core.$strip>>>>;
|
|
671
710
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
672
711
|
}, z.core.$strip>>;
|
|
673
712
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
674
713
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
675
714
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
715
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
676
716
|
}, z.core.$strip>>>;
|
|
677
717
|
status: z.ZodMiniLiteral<"authorized">;
|
|
678
718
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -696,12 +736,14 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
696
736
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
697
737
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
698
738
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
739
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
699
740
|
}, z.core.$strip>>>>;
|
|
700
741
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
701
742
|
}, z.core.$strip>>;
|
|
702
743
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
703
744
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
704
745
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
746
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
705
747
|
}, z.core.$strip>>>;
|
|
706
748
|
status: z.ZodMiniLiteral<"consumed">;
|
|
707
749
|
}, z.core.$strip>]>, "_zod"> & {
|
|
@@ -718,6 +760,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
718
760
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
719
761
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
720
762
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
763
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
721
764
|
}, z.core.$strip>>>>;
|
|
722
765
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
723
766
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -747,6 +790,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
747
790
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
748
791
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
749
792
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
793
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
750
794
|
}, z.core.$strip>>>>;
|
|
751
795
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
752
796
|
}, z.core.$strip>;
|
|
@@ -754,6 +798,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
754
798
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
755
799
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
756
800
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
801
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
757
802
|
}, z.core.$strip>>>>;
|
|
758
803
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
759
804
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -784,6 +829,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
784
829
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
785
830
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
786
831
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
832
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
787
833
|
}, z.core.$strip>>>>;
|
|
788
834
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
789
835
|
}, z.core.$strip>;
|
|
@@ -791,6 +837,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
791
837
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
792
838
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
793
839
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
840
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
794
841
|
}, z.core.$strip>>>>;
|
|
795
842
|
pubKey: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
796
843
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
@@ -818,12 +865,14 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
818
865
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
819
866
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
820
867
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
868
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
821
869
|
}, z.core.$strip>>>>;
|
|
822
870
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
823
871
|
}, z.core.$strip>>;
|
|
824
872
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
825
873
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
826
874
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
875
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
827
876
|
}, z.core.$strip>>>;
|
|
828
877
|
status: z.ZodMiniLiteral<"pending">;
|
|
829
878
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -846,12 +895,14 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
846
895
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
847
896
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
848
897
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
898
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
849
899
|
}, z.core.$strip>>>>;
|
|
850
900
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
851
901
|
}, z.core.$strip>>;
|
|
852
902
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
853
903
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
854
904
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
905
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
855
906
|
}, z.core.$strip>>>;
|
|
856
907
|
status: z.ZodMiniLiteral<"authorized">;
|
|
857
908
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -875,12 +926,14 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
875
926
|
limits: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
876
927
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
877
928
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
929
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
878
930
|
}, z.core.$strip>>>>;
|
|
879
931
|
signature: z.ZodMiniCustom<SignatureEnvelope.SignatureEnvelopeRpc, SignatureEnvelope.SignatureEnvelopeRpc>;
|
|
880
932
|
}, z.core.$strip>>;
|
|
881
933
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
882
934
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
883
935
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
936
|
+
period: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
884
937
|
}, z.core.$strip>>>;
|
|
885
938
|
status: z.ZodMiniLiteral<"consumed">;
|
|
886
939
|
}, z.core.$strip>]>, "output"> & {
|
|
@@ -899,6 +952,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
899
952
|
limits?: readonly {
|
|
900
953
|
token: `0x${string}`;
|
|
901
954
|
limit: bigint;
|
|
955
|
+
period?: number | undefined;
|
|
902
956
|
}[] | undefined;
|
|
903
957
|
showDeposit?: boolean | {
|
|
904
958
|
amount?: string | undefined;
|
|
@@ -930,6 +984,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
930
984
|
limits?: readonly {
|
|
931
985
|
token: `0x${string}`;
|
|
932
986
|
limit: bigint;
|
|
987
|
+
period?: number | undefined;
|
|
933
988
|
}[] | undefined;
|
|
934
989
|
};
|
|
935
990
|
keyType: "secp256k1" | "p256" | "webAuthn";
|
|
@@ -940,6 +995,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
940
995
|
limits?: readonly {
|
|
941
996
|
token: `0x${string}`;
|
|
942
997
|
limit: bigint;
|
|
998
|
+
period?: number | undefined;
|
|
943
999
|
}[] | undefined;
|
|
944
1000
|
showDeposit?: boolean | {
|
|
945
1001
|
amount?: string | undefined;
|
|
@@ -969,6 +1025,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
969
1025
|
limits?: readonly {
|
|
970
1026
|
token: `0x${string}`;
|
|
971
1027
|
limit: bigint;
|
|
1028
|
+
period?: number | undefined;
|
|
972
1029
|
}[] | undefined;
|
|
973
1030
|
};
|
|
974
1031
|
keyType: "secp256k1" | "p256" | "webAuthn";
|
|
@@ -979,6 +1036,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
979
1036
|
limits?: readonly {
|
|
980
1037
|
token: `0x${string}`;
|
|
981
1038
|
limit: bigint;
|
|
1039
|
+
period?: number | undefined;
|
|
982
1040
|
}[] | undefined;
|
|
983
1041
|
showDeposit?: boolean | {
|
|
984
1042
|
amount?: string | undefined;
|
|
@@ -999,6 +1057,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
999
1057
|
limits: readonly {
|
|
1000
1058
|
token: `0x${string}`;
|
|
1001
1059
|
limit: bigint;
|
|
1060
|
+
period?: number | undefined;
|
|
1002
1061
|
}[];
|
|
1003
1062
|
status: "pending";
|
|
1004
1063
|
keyAuthorization?: {
|
|
@@ -1011,6 +1070,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
1011
1070
|
limits?: readonly {
|
|
1012
1071
|
token: `0x${string}`;
|
|
1013
1072
|
limit: bigint;
|
|
1073
|
+
period?: number | undefined;
|
|
1014
1074
|
}[] | undefined;
|
|
1015
1075
|
} | undefined;
|
|
1016
1076
|
expiry?: undefined;
|
|
@@ -1034,6 +1094,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
1034
1094
|
limits: readonly {
|
|
1035
1095
|
token: `0x${string}`;
|
|
1036
1096
|
limit: bigint;
|
|
1097
|
+
period?: number | undefined;
|
|
1037
1098
|
}[];
|
|
1038
1099
|
status: "authorized";
|
|
1039
1100
|
keyAuthorization?: {
|
|
@@ -1046,6 +1107,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
1046
1107
|
limits?: readonly {
|
|
1047
1108
|
token: `0x${string}`;
|
|
1048
1109
|
limit: bigint;
|
|
1110
|
+
period?: number | undefined;
|
|
1049
1111
|
}[] | undefined;
|
|
1050
1112
|
} | undefined;
|
|
1051
1113
|
expiry?: undefined;
|
|
@@ -1068,6 +1130,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
1068
1130
|
limits: readonly {
|
|
1069
1131
|
token: `0x${string}`;
|
|
1070
1132
|
limit: bigint;
|
|
1133
|
+
period?: number | undefined;
|
|
1071
1134
|
}[];
|
|
1072
1135
|
status: "consumed";
|
|
1073
1136
|
keyAuthorization?: {
|
|
@@ -1080,6 +1143,7 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
1080
1143
|
limits?: readonly {
|
|
1081
1144
|
token: `0x${string}`;
|
|
1082
1145
|
limit: bigint;
|
|
1146
|
+
period?: number | undefined;
|
|
1083
1147
|
}[] | undefined;
|
|
1084
1148
|
} | undefined;
|
|
1085
1149
|
expiry?: undefined;
|
|
@@ -1089,7 +1153,10 @@ export declare const entry: Omit<z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
1089
1153
|
};
|
|
1090
1154
|
};
|
|
1091
1155
|
};
|
|
1092
|
-
/**
|
|
1156
|
+
/**
|
|
1157
|
+
* Shared CLI auth helper with pre-bound defaults and cached clients.
|
|
1158
|
+
* @deprecated Use `Handler.deviceCode` with the Wata device-code transport.
|
|
1159
|
+
*/
|
|
1093
1160
|
export type CliAuth = {
|
|
1094
1161
|
/** Creates and stores a new device code. */
|
|
1095
1162
|
createDeviceCode: (options: createDeviceCode.Parameters) => Promise<createDeviceCode.ReturnType>;
|
|
@@ -1304,6 +1371,7 @@ export declare const RateLimit: {
|
|
|
1304
1371
|
* Instantiates a CLI auth helper with shared defaults and cached clients.
|
|
1305
1372
|
*
|
|
1306
1373
|
*
|
|
1374
|
+
* @deprecated Use `Handler.deviceCode` with the Wata device-code transport.
|
|
1307
1375
|
* @param {from.Options} options - Shared CLI auth defaults.
|
|
1308
1376
|
* @returns {CliAuth} CLI auth helper.
|
|
1309
1377
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CliAuth.d.ts","sourceRoot":"","sources":["../../src/server/CliAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,GAAG,EAAa,MAAM,IAAI,CAAA;AAC3D,OAAO,EAA6C,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACvF,OAAO,EAAsB,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAA;AAIlF,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"CliAuth.d.ts","sourceRoot":"","sources":["../../src/server/CliAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,GAAG,EAAa,MAAM,IAAI,CAAA;AAC3D,OAAO,EAA6C,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACvF,OAAO,EAAsB,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAA;AAIlF,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAuBjC,oDAAoD;AACpD,eAAO,MAAM,OAAO,kHAA8E,CAAA;AAElG,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;iBAQ3B,CAAA;AAwBF,kDAAkD;AAClD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA;AAEF,sDAAsD;AACt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AAY,CAAC,CAAA;CACvD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAMzF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,wDAAwD;IACxD,KAAY,UAAU,GAAG;QACvB,0DAA0D;QAC1D,MAAM,CAAC,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC,GAAG,SAAS,CAAA;QACzD,8BAA8B;QAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA;KAC3C,CAAA;IAED,8DAA8D;IAC9D,KAAY,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,UAAU,CAAA;IAE/C,mCAAmC;IACnC,KAAY,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;CAC5D"}
|
package/dist/server/CliAuth.js
CHANGED
|
@@ -8,7 +8,11 @@ import * as z from 'zod/mini';
|
|
|
8
8
|
import * as AccessKey from '../core/AccessKey.js';
|
|
9
9
|
import * as u from '../core/zod/utils.js';
|
|
10
10
|
const maxLimits = 10;
|
|
11
|
-
const limit = z.object({
|
|
11
|
+
const limit = z.object({
|
|
12
|
+
token: u.address(),
|
|
13
|
+
limit: u.bigint(),
|
|
14
|
+
period: z.optional(u.number()),
|
|
15
|
+
});
|
|
12
16
|
const limits = z.readonly(z.array(limit).check(z.maxLength(maxLimits)));
|
|
13
17
|
const showDeposit = z.optional(z.union([
|
|
14
18
|
z.boolean(),
|
|
@@ -426,6 +430,7 @@ export const RateLimit = {
|
|
|
426
430
|
* Instantiates a CLI auth helper with shared defaults and cached clients.
|
|
427
431
|
*
|
|
428
432
|
*
|
|
433
|
+
* @deprecated Use `Handler.deviceCode` with the Wata device-code transport.
|
|
429
434
|
* @param {from.Options} options - Shared CLI auth defaults.
|
|
430
435
|
* @returns {CliAuth} CLI auth helper.
|
|
431
436
|
*
|