@haven_ai/sdk 0.0.0-dev.202610072011.b5e9906 → 0.0.0-dev.202610081237.5ad1a37
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/dist/{base64-Ez4HygB8.d.ts → base64-8SsBArYI.d.ts} +1 -1
- package/dist/{base64-D2n36Trd.d.cts → base64-CtaRz-Wu.d.cts} +1 -1
- package/dist/{chunk-GQN32HD6.js → chunk-4YAHICNL.js} +3 -3
- package/dist/{chunk-GQN32HD6.js.map → chunk-4YAHICNL.js.map} +1 -1
- package/dist/{chunk-GABPEVWW.cjs → chunk-DART3SSC.cjs} +3 -3
- package/dist/{chunk-GABPEVWW.cjs.map → chunk-DART3SSC.cjs.map} +1 -1
- package/dist/edge.cjs +51 -51
- package/dist/edge.d.cts +2 -2
- package/dist/edge.d.ts +2 -2
- package/dist/edge.js +2 -2
- package/dist/index.cjs +221 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +89 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/edge.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDART3SSC_cjs = require('./chunk-DART3SSC.cjs');
|
|
4
4
|
var chunkC3R4GLKO_cjs = require('./chunk-C3R4GLKO.cjs');
|
|
5
5
|
|
|
6
6
|
// src/sub-budget-guards.ts
|
|
@@ -31,10 +31,10 @@ function findCaveat(caveats, enforcer) {
|
|
|
31
31
|
return caveats.find((c) => same(c.enforcer, enforcer));
|
|
32
32
|
}
|
|
33
33
|
function hashSubBudgetDelegation(delegation) {
|
|
34
|
-
return
|
|
34
|
+
return chunkDART3SSC_cjs.hashDelegation(delegation);
|
|
35
35
|
}
|
|
36
36
|
function refuseSubBudgetChild(what, detail) {
|
|
37
|
-
throw new
|
|
37
|
+
throw new chunkDART3SSC_cjs.HavenTypedDataRefusedError(
|
|
38
38
|
`Refusing to sign the sub-budget child: ${what}. ${detail} This signature opens a slice of the delegating agent budget for another agent, so it is verified locally against the expectation Haven declared, rather than trusted.`
|
|
39
39
|
);
|
|
40
40
|
}
|
|
@@ -62,10 +62,10 @@ function assertOwnSubBudgetChild(typedData, expected, delegateAddress, now = Dat
|
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
const domainChain = Number(td.domain?.chainId);
|
|
65
|
-
if (!Number.isFinite(domainChain) || !
|
|
65
|
+
if (!Number.isFinite(domainChain) || !chunkDART3SSC_cjs.DIRECT_PAYMENT_CHAIN_IDS.has(domainChain)) {
|
|
66
66
|
refuseSubBudgetChild(
|
|
67
67
|
"it is scoped to a chain the delegation rail has no pinned contracts for",
|
|
68
|
-
`Chains with pinned contracts: ${[...
|
|
68
|
+
`Chains with pinned contracts: ${[...chunkDART3SSC_cjs.DIRECT_PAYMENT_CHAIN_IDS].join(", ")}; the child says ${String(td.domain?.chainId)}.`
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
if (domainChain !== expected.chainId) {
|
|
@@ -199,188 +199,188 @@ function assertOwnSubBudgetChild(typedData, expected, delegateAddress, now = Dat
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
function assertOwnSubBudgetCloseUserOp(typedData, expected, delegateAddress) {
|
|
202
|
-
|
|
202
|
+
chunkDART3SSC_cjs.assertOwnTaskBudgetCloseUserOp(typedData, expected, delegateAddress);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
Object.defineProperty(exports, "CAVEAT_TYPEHASH", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkDART3SSC_cjs.CAVEAT_TYPEHASH; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "DELEGATION_TYPEHASH", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkDART3SSC_cjs.DELEGATION_TYPEHASH; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "DIRECT_PAYMENT_CHAIN_IDS", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkDART3SSC_cjs.DIRECT_PAYMENT_CHAIN_IDS; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "EXECUTE_ABI", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkDART3SSC_cjs.EXECUTE_ABI; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "HAVEN_CLIENT_HEADER", {
|
|
222
222
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkDART3SSC_cjs.HAVEN_CLIENT_HEADER; }
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "HAVEN_MINIMUM_NODE_VERSION", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkDART3SSC_cjs.HAVEN_MINIMUM_NODE_VERSION; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "HavenTypedDataRefusedError", {
|
|
230
230
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkDART3SSC_cjs.HavenTypedDataRefusedError; }
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "MAX_TASK_BUDGET_TTL_SECONDS", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkDART3SSC_cjs.MAX_TASK_BUDGET_TTL_SECONDS; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "TAX_DECLARATION_DOMAIN", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkDART3SSC_cjs.TAX_DECLARATION_DOMAIN; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "TAX_DECLARATION_PRIMARY_TYPE", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkDART3SSC_cjs.TAX_DECLARATION_PRIMARY_TYPE; }
|
|
244
244
|
});
|
|
245
245
|
Object.defineProperty(exports, "TAX_DECLARATION_TYPES", {
|
|
246
246
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkDART3SSC_cjs.TAX_DECLARATION_TYPES; }
|
|
248
248
|
});
|
|
249
249
|
Object.defineProperty(exports, "TYPED_DATA_NOT_ALLOWED", {
|
|
250
250
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkDART3SSC_cjs.TYPED_DATA_NOT_ALLOWED; }
|
|
252
252
|
});
|
|
253
253
|
Object.defineProperty(exports, "TaxDeclarationRefusedError", {
|
|
254
254
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkDART3SSC_cjs.TaxDeclarationRefusedError; }
|
|
256
256
|
});
|
|
257
257
|
Object.defineProperty(exports, "X_TAX_DECLARATION_HEADER", {
|
|
258
258
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkDART3SSC_cjs.X_TAX_DECLARATION_HEADER; }
|
|
260
260
|
});
|
|
261
261
|
Object.defineProperty(exports, "addressFromKey", {
|
|
262
262
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkDART3SSC_cjs.addressFromKey; }
|
|
264
264
|
});
|
|
265
265
|
Object.defineProperty(exports, "assertBoundDirectPaymentUserOp", {
|
|
266
266
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkDART3SSC_cjs.assertBoundDirectPaymentUserOp; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "assertFundingLegPaysDelegate", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkDART3SSC_cjs.assertFundingLegPaysDelegate; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "assertOwnSettlementChild", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkDART3SSC_cjs.assertOwnSettlementChild; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "assertOwnTaskBudgetCloseUserOp", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkDART3SSC_cjs.assertOwnTaskBudgetCloseUserOp; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "assertOwnTaskChild", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkDART3SSC_cjs.assertOwnTaskChild; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "buildSignedTaxDeclaration", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkDART3SSC_cjs.buildSignedTaxDeclaration; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "buildSweepAuthorizationMessage", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkDART3SSC_cjs.buildSweepAuthorizationMessage; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "buildSweepTypedData", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkDART3SSC_cjs.buildSweepTypedData; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "buildX402ExpectedMessage", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkDART3SSC_cjs.buildX402ExpectedMessage; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "createNextStepBuilder", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkDART3SSC_cjs.createNextStepBuilder; }
|
|
304
304
|
});
|
|
305
305
|
Object.defineProperty(exports, "decodeBase64Json", {
|
|
306
306
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkDART3SSC_cjs.decodeBase64Json; }
|
|
308
308
|
});
|
|
309
309
|
Object.defineProperty(exports, "encodeBase64Json", {
|
|
310
310
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkDART3SSC_cjs.encodeBase64Json; }
|
|
312
312
|
});
|
|
313
313
|
Object.defineProperty(exports, "encodeTaxDeclarationHeader", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkDART3SSC_cjs.encodeTaxDeclarationHeader; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "hashDelegation", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkDART3SSC_cjs.hashDelegation; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "havenClientIdentity", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkDART3SSC_cjs.havenClientIdentity; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "isSupportedNodeVersion", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkDART3SSC_cjs.isSupportedNodeVersion; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "isTaskChildTypedData", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunkDART3SSC_cjs.isTaskChildTypedData; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "principalAttributionHash", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunkDART3SSC_cjs.principalAttributionHash; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "readClientUpdate", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunkDART3SSC_cjs.readClientUpdate; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "selectStandardPaymentOption", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunkDART3SSC_cjs.selectStandardPaymentOption; }
|
|
344
344
|
});
|
|
345
345
|
Object.defineProperty(exports, "signHash", {
|
|
346
346
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunkDART3SSC_cjs.signHash; }
|
|
348
348
|
});
|
|
349
349
|
Object.defineProperty(exports, "taxPrincipalId", {
|
|
350
350
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunkDART3SSC_cjs.taxPrincipalId; }
|
|
352
352
|
});
|
|
353
353
|
Object.defineProperty(exports, "toStandardPaymentRequirements", {
|
|
354
354
|
enumerable: true,
|
|
355
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkDART3SSC_cjs.toStandardPaymentRequirements; }
|
|
356
356
|
});
|
|
357
357
|
Object.defineProperty(exports, "unsupportedNodeVersionMessage", {
|
|
358
358
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkDART3SSC_cjs.unsupportedNodeVersionMessage; }
|
|
360
360
|
});
|
|
361
361
|
Object.defineProperty(exports, "verifySignature", {
|
|
362
362
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkDART3SSC_cjs.verifySignature; }
|
|
364
364
|
});
|
|
365
365
|
Object.defineProperty(exports, "verifyTaxDeclarationSignature", {
|
|
366
366
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkDART3SSC_cjs.verifyTaxDeclarationSignature; }
|
|
368
368
|
});
|
|
369
369
|
Object.defineProperty(exports, "x402AuthorizationAmount", {
|
|
370
370
|
enumerable: true,
|
|
371
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunkDART3SSC_cjs.x402AuthorizationAmount; }
|
|
372
372
|
});
|
|
373
373
|
Object.defineProperty(exports, "x402PaymentHeaderNamesFor", {
|
|
374
374
|
enumerable: true,
|
|
375
|
-
get: function () { return
|
|
375
|
+
get: function () { return chunkDART3SSC_cjs.x402PaymentHeaderNamesFor; }
|
|
376
376
|
});
|
|
377
377
|
Object.defineProperty(exports, "x402RetryHeadersFor", {
|
|
378
378
|
enumerable: true,
|
|
379
|
-
get: function () { return
|
|
379
|
+
get: function () { return chunkDART3SSC_cjs.x402RetryHeadersFor; }
|
|
380
380
|
});
|
|
381
381
|
Object.defineProperty(exports, "x402V2PaymentEnvelope", {
|
|
382
382
|
enumerable: true,
|
|
383
|
-
get: function () { return
|
|
383
|
+
get: function () { return chunkDART3SSC_cjs.x402V2PaymentEnvelope; }
|
|
384
384
|
});
|
|
385
385
|
Object.defineProperty(exports, "AgentPaymentFailureCode", {
|
|
386
386
|
enumerable: true,
|
package/dist/edge.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { am as HavenSigningError } from './types-DD7yIbGh.cjs';
|
|
2
2
|
export { V as AgentPaymentFailureCode, Z as AgentPaymentNextAction, ai as HavenApiError, I as HavenError, ao as HavenUnsupportedSignerVersionError, aD as SIGNER_UPDATE_FALLBACK, aE as SignerRefusalCode, aJ as X402ExpectedAuth, aL as X402PaymentOption, X as X402PaymentRequired } from './types-DD7yIbGh.cjs';
|
|
3
|
-
import { aU as DelegationForHashing } from './base64-
|
|
4
|
-
export { aV as CAVEAT_ENFORCERS, aW as CAVEAT_TYPEHASH, aX as DELEGATION_MANAGER, aY as DELEGATION_TYPEHASH, aZ as DIRECT_PAYMENT_CHAIN_IDS, c as DIRECT_SIGN_CONTEXT_VERSION, E as ENTRY_POINT_V07, a_ as EXECUTE_ABI, e as HAVEN_CLIENT_HEADER, f as HAVEN_CONNECTOR_CHANNEL, g as HAVEN_MINIMUM_NODE_VERSION, a$ as HYBRID_DELEGATOR_IMPLEMENTATION, H as HavenClientUpdate, j as HavenTypedDataRefusedError, k as HavenUserOpBindingError, b0 as MAX_SETTLEMENT_WINDOW_SECONDS, M as MAX_TASK_BUDGET_TTL_SECONDS, m as NextStep, o as NextStepHandoff, q as NextStepTarget, R as ROOT_AUTHORITY, b1 as SIMPLE_FACTORY_ADDRESS, z as SettlementChildExpectation, b2 as SettlementChildTypedData, a as SweepAuthorization, B as SweepExpectedAuth, T as TASK_SIGN_CONTEXT_VERSION, K as TYPED_DATA_NOT_ALLOWED, L as TaskBudgetCloseExpectation, O as TaskChildExpectation, Q as TaskChildTypedData, a3 as assertBoundDirectPaymentUserOp, b3 as assertFundingLegPaysDelegate, b4 as assertOwnSettlementChild, a4 as assertOwnTaskBudgetCloseUserOp, a5 as assertOwnTaskChild, a6 as assertUserOpTypedDataBinding, a7 as buildSweepAuthorizationMessage, a8 as buildSweepTypedData, a9 as buildX402ExpectedMessage, b5 as chainIdForNetwork, ab as connectorRerunCommand, ad as connectorUpgradeCommand, ae as createNextStepBuilder, af as decodeBase64Json, ai as deriveDelegateAccountAddress, aj as encodeBase64Json, am as hashDelegation, an as havenClientIdentity, aq as isPackedUserOperationTypedData, b6 as isSettlementChildTypedData, ar as isSupportedNodeVersion, at as isTaskChildTypedData, av as packedUserOperationHash, az as readClientUpdate, aG as selectStandardPaymentOption, aK as toStandardPaymentRequirements, aL as unsupportedNodeVersionMessage, aN as verifySettlementChild, aP as x402AuthorizationAmount, aR as x402PaymentHeaderNamesFor, aS as x402RetryHeadersFor, aT as x402V2PaymentEnvelope } from './base64-
|
|
3
|
+
import { aU as DelegationForHashing } from './base64-CtaRz-Wu.cjs';
|
|
4
|
+
export { aV as CAVEAT_ENFORCERS, aW as CAVEAT_TYPEHASH, aX as DELEGATION_MANAGER, aY as DELEGATION_TYPEHASH, aZ as DIRECT_PAYMENT_CHAIN_IDS, c as DIRECT_SIGN_CONTEXT_VERSION, E as ENTRY_POINT_V07, a_ as EXECUTE_ABI, e as HAVEN_CLIENT_HEADER, f as HAVEN_CONNECTOR_CHANNEL, g as HAVEN_MINIMUM_NODE_VERSION, a$ as HYBRID_DELEGATOR_IMPLEMENTATION, H as HavenClientUpdate, j as HavenTypedDataRefusedError, k as HavenUserOpBindingError, b0 as MAX_SETTLEMENT_WINDOW_SECONDS, M as MAX_TASK_BUDGET_TTL_SECONDS, m as NextStep, o as NextStepHandoff, q as NextStepTarget, R as ROOT_AUTHORITY, b1 as SIMPLE_FACTORY_ADDRESS, z as SettlementChildExpectation, b2 as SettlementChildTypedData, a as SweepAuthorization, B as SweepExpectedAuth, T as TASK_SIGN_CONTEXT_VERSION, K as TYPED_DATA_NOT_ALLOWED, L as TaskBudgetCloseExpectation, O as TaskChildExpectation, Q as TaskChildTypedData, a3 as assertBoundDirectPaymentUserOp, b3 as assertFundingLegPaysDelegate, b4 as assertOwnSettlementChild, a4 as assertOwnTaskBudgetCloseUserOp, a5 as assertOwnTaskChild, a6 as assertUserOpTypedDataBinding, a7 as buildSweepAuthorizationMessage, a8 as buildSweepTypedData, a9 as buildX402ExpectedMessage, b5 as chainIdForNetwork, ab as connectorRerunCommand, ad as connectorUpgradeCommand, ae as createNextStepBuilder, af as decodeBase64Json, ai as deriveDelegateAccountAddress, aj as encodeBase64Json, am as hashDelegation, an as havenClientIdentity, aq as isPackedUserOperationTypedData, b6 as isSettlementChildTypedData, ar as isSupportedNodeVersion, at as isTaskChildTypedData, av as packedUserOperationHash, az as readClientUpdate, aG as selectStandardPaymentOption, aK as toStandardPaymentRequirements, aL as unsupportedNodeVersionMessage, aN as verifySettlementChild, aP as x402AuthorizationAmount, aR as x402PaymentHeaderNamesFor, aS as x402RetryHeadersFor, aT as x402V2PaymentEnvelope } from './base64-CtaRz-Wu.cjs';
|
|
5
5
|
import { Hex, Address } from 'viem';
|
|
6
6
|
import 'x402/types';
|
|
7
7
|
|
package/dist/edge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { am as HavenSigningError } from './types-DD7yIbGh.js';
|
|
2
2
|
export { V as AgentPaymentFailureCode, Z as AgentPaymentNextAction, ai as HavenApiError, I as HavenError, ao as HavenUnsupportedSignerVersionError, aD as SIGNER_UPDATE_FALLBACK, aE as SignerRefusalCode, aJ as X402ExpectedAuth, aL as X402PaymentOption, X as X402PaymentRequired } from './types-DD7yIbGh.js';
|
|
3
|
-
import { aU as DelegationForHashing } from './base64-
|
|
4
|
-
export { aV as CAVEAT_ENFORCERS, aW as CAVEAT_TYPEHASH, aX as DELEGATION_MANAGER, aY as DELEGATION_TYPEHASH, aZ as DIRECT_PAYMENT_CHAIN_IDS, c as DIRECT_SIGN_CONTEXT_VERSION, E as ENTRY_POINT_V07, a_ as EXECUTE_ABI, e as HAVEN_CLIENT_HEADER, f as HAVEN_CONNECTOR_CHANNEL, g as HAVEN_MINIMUM_NODE_VERSION, a$ as HYBRID_DELEGATOR_IMPLEMENTATION, H as HavenClientUpdate, j as HavenTypedDataRefusedError, k as HavenUserOpBindingError, b0 as MAX_SETTLEMENT_WINDOW_SECONDS, M as MAX_TASK_BUDGET_TTL_SECONDS, m as NextStep, o as NextStepHandoff, q as NextStepTarget, R as ROOT_AUTHORITY, b1 as SIMPLE_FACTORY_ADDRESS, z as SettlementChildExpectation, b2 as SettlementChildTypedData, a as SweepAuthorization, B as SweepExpectedAuth, T as TASK_SIGN_CONTEXT_VERSION, K as TYPED_DATA_NOT_ALLOWED, L as TaskBudgetCloseExpectation, O as TaskChildExpectation, Q as TaskChildTypedData, a3 as assertBoundDirectPaymentUserOp, b3 as assertFundingLegPaysDelegate, b4 as assertOwnSettlementChild, a4 as assertOwnTaskBudgetCloseUserOp, a5 as assertOwnTaskChild, a6 as assertUserOpTypedDataBinding, a7 as buildSweepAuthorizationMessage, a8 as buildSweepTypedData, a9 as buildX402ExpectedMessage, b5 as chainIdForNetwork, ab as connectorRerunCommand, ad as connectorUpgradeCommand, ae as createNextStepBuilder, af as decodeBase64Json, ai as deriveDelegateAccountAddress, aj as encodeBase64Json, am as hashDelegation, an as havenClientIdentity, aq as isPackedUserOperationTypedData, b6 as isSettlementChildTypedData, ar as isSupportedNodeVersion, at as isTaskChildTypedData, av as packedUserOperationHash, az as readClientUpdate, aG as selectStandardPaymentOption, aK as toStandardPaymentRequirements, aL as unsupportedNodeVersionMessage, aN as verifySettlementChild, aP as x402AuthorizationAmount, aR as x402PaymentHeaderNamesFor, aS as x402RetryHeadersFor, aT as x402V2PaymentEnvelope } from './base64-
|
|
3
|
+
import { aU as DelegationForHashing } from './base64-8SsBArYI.js';
|
|
4
|
+
export { aV as CAVEAT_ENFORCERS, aW as CAVEAT_TYPEHASH, aX as DELEGATION_MANAGER, aY as DELEGATION_TYPEHASH, aZ as DIRECT_PAYMENT_CHAIN_IDS, c as DIRECT_SIGN_CONTEXT_VERSION, E as ENTRY_POINT_V07, a_ as EXECUTE_ABI, e as HAVEN_CLIENT_HEADER, f as HAVEN_CONNECTOR_CHANNEL, g as HAVEN_MINIMUM_NODE_VERSION, a$ as HYBRID_DELEGATOR_IMPLEMENTATION, H as HavenClientUpdate, j as HavenTypedDataRefusedError, k as HavenUserOpBindingError, b0 as MAX_SETTLEMENT_WINDOW_SECONDS, M as MAX_TASK_BUDGET_TTL_SECONDS, m as NextStep, o as NextStepHandoff, q as NextStepTarget, R as ROOT_AUTHORITY, b1 as SIMPLE_FACTORY_ADDRESS, z as SettlementChildExpectation, b2 as SettlementChildTypedData, a as SweepAuthorization, B as SweepExpectedAuth, T as TASK_SIGN_CONTEXT_VERSION, K as TYPED_DATA_NOT_ALLOWED, L as TaskBudgetCloseExpectation, O as TaskChildExpectation, Q as TaskChildTypedData, a3 as assertBoundDirectPaymentUserOp, b3 as assertFundingLegPaysDelegate, b4 as assertOwnSettlementChild, a4 as assertOwnTaskBudgetCloseUserOp, a5 as assertOwnTaskChild, a6 as assertUserOpTypedDataBinding, a7 as buildSweepAuthorizationMessage, a8 as buildSweepTypedData, a9 as buildX402ExpectedMessage, b5 as chainIdForNetwork, ab as connectorRerunCommand, ad as connectorUpgradeCommand, ae as createNextStepBuilder, af as decodeBase64Json, ai as deriveDelegateAccountAddress, aj as encodeBase64Json, am as hashDelegation, an as havenClientIdentity, aq as isPackedUserOperationTypedData, b6 as isSettlementChildTypedData, ar as isSupportedNodeVersion, at as isTaskChildTypedData, av as packedUserOperationHash, az as readClientUpdate, aG as selectStandardPaymentOption, aK as toStandardPaymentRequirements, aL as unsupportedNodeVersionMessage, aN as verifySettlementChild, aP as x402AuthorizationAmount, aR as x402PaymentHeaderNamesFor, aS as x402RetryHeadersFor, aT as x402V2PaymentEnvelope } from './base64-8SsBArYI.js';
|
|
5
5
|
import { Hex, Address } from 'viem';
|
|
6
6
|
import 'x402/types';
|
|
7
7
|
|
package/dist/edge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hashDelegation, DIRECT_PAYMENT_CHAIN_IDS, assertOwnTaskBudgetCloseUserOp, HavenTypedDataRefusedError } from './chunk-
|
|
2
|
-
export { CAVEAT_TYPEHASH, DELEGATION_TYPEHASH, DIRECT_PAYMENT_CHAIN_IDS, EXECUTE_ABI, HAVEN_CLIENT_HEADER, HAVEN_MINIMUM_NODE_VERSION, HavenTypedDataRefusedError, MAX_TASK_BUDGET_TTL_SECONDS, TAX_DECLARATION_DOMAIN, TAX_DECLARATION_PRIMARY_TYPE, TAX_DECLARATION_TYPES, TYPED_DATA_NOT_ALLOWED, TaxDeclarationRefusedError, X_TAX_DECLARATION_HEADER, addressFromKey, assertBoundDirectPaymentUserOp, assertFundingLegPaysDelegate, assertOwnSettlementChild, assertOwnTaskBudgetCloseUserOp, assertOwnTaskChild, buildSignedTaxDeclaration, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, createNextStepBuilder, decodeBase64Json, encodeBase64Json, encodeTaxDeclarationHeader, hashDelegation, havenClientIdentity, isSupportedNodeVersion, isTaskChildTypedData, principalAttributionHash, readClientUpdate, selectStandardPaymentOption, signHash, taxPrincipalId, toStandardPaymentRequirements, unsupportedNodeVersionMessage, verifySignature, verifyTaxDeclarationSignature, x402AuthorizationAmount, x402PaymentHeaderNamesFor, x402RetryHeadersFor, x402V2PaymentEnvelope } from './chunk-
|
|
1
|
+
import { hashDelegation, DIRECT_PAYMENT_CHAIN_IDS, assertOwnTaskBudgetCloseUserOp, HavenTypedDataRefusedError } from './chunk-4YAHICNL.js';
|
|
2
|
+
export { CAVEAT_TYPEHASH, DELEGATION_TYPEHASH, DIRECT_PAYMENT_CHAIN_IDS, EXECUTE_ABI, HAVEN_CLIENT_HEADER, HAVEN_MINIMUM_NODE_VERSION, HavenTypedDataRefusedError, MAX_TASK_BUDGET_TTL_SECONDS, TAX_DECLARATION_DOMAIN, TAX_DECLARATION_PRIMARY_TYPE, TAX_DECLARATION_TYPES, TYPED_DATA_NOT_ALLOWED, TaxDeclarationRefusedError, X_TAX_DECLARATION_HEADER, addressFromKey, assertBoundDirectPaymentUserOp, assertFundingLegPaysDelegate, assertOwnSettlementChild, assertOwnTaskBudgetCloseUserOp, assertOwnTaskChild, buildSignedTaxDeclaration, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, createNextStepBuilder, decodeBase64Json, encodeBase64Json, encodeTaxDeclarationHeader, hashDelegation, havenClientIdentity, isSupportedNodeVersion, isTaskChildTypedData, principalAttributionHash, readClientUpdate, selectStandardPaymentOption, signHash, taxPrincipalId, toStandardPaymentRequirements, unsupportedNodeVersionMessage, verifySignature, verifyTaxDeclarationSignature, x402AuthorizationAmount, x402PaymentHeaderNamesFor, x402RetryHeadersFor, x402V2PaymentEnvelope } from './chunk-4YAHICNL.js';
|
|
3
3
|
import { DELEGATION_MANAGER, deriveDelegateAccountAddress, ROOT_AUTHORITY, CAVEAT_ENFORCERS } from './chunk-X6EMWLPN.js';
|
|
4
4
|
export { AgentPaymentFailureCode, AgentPaymentNextAction, CAVEAT_ENFORCERS, DELEGATION_MANAGER, DELEGATION_TUPLE_COMPONENTS, DIRECT_SIGN_CONTEXT_VERSION, ENTRY_POINT_V07, HAVEN_CONNECTOR_CHANNEL, HYBRID_DELEGATOR_IMPLEMENTATION, HavenApiError, HavenError, HavenSigningError, HavenUnsupportedSignerVersionError, HavenUserOpBindingError, MAX_SETTLEMENT_WINDOW_SECONDS, REDEEM_DELEGATIONS_ABI, ROOT_AUTHORITY, SIGNER_UPDATE_FALLBACK, SIMPLE_FACTORY_ADDRESS, SINGLE_DEFAULT_MODE, SignerRefusalCode, TASK_SIGN_CONTEXT_VERSION, assertRedeemsOwnBudgetDelegation, assertUserOpTypedDataBinding, chainIdForNetwork, connectorRerunCommand, connectorUpgradeCommand, deriveDelegateAccountAddress, isPackedUserOperationTypedData, isSettlementChildTypedData, packedUserOperationHash, verifySettlementChild } from './chunk-X6EMWLPN.js';
|
|
5
5
|
|