@haven_ai/sdk 0.0.0-dev.202609302323.7ff7df0 → 0.0.0-dev.202610011057.1c1da3f
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-BXtuto0G.d.cts → base64-xQSrAgWq.d.cts} +77 -2
- package/dist/{base64-BXtuto0G.d.ts → base64-xQSrAgWq.d.ts} +77 -2
- package/dist/{chunk-CCGIQYYW.js → chunk-4EE4ESOI.js} +4 -4
- package/dist/{chunk-CCGIQYYW.js.map → chunk-4EE4ESOI.js.map} +1 -1
- package/dist/{chunk-PTIGFW65.cjs → chunk-AUFAHNQU.cjs} +35 -35
- package/dist/{chunk-PTIGFW65.cjs.map → chunk-AUFAHNQU.cjs.map} +1 -1
- package/dist/{chunk-OSGNL57N.cjs → chunk-OYVHR3IT.cjs} +2 -2
- package/dist/chunk-OYVHR3IT.cjs.map +1 -0
- package/dist/{chunk-AD26YHAN.js → chunk-PUAJJDMB.js} +2 -2
- package/dist/chunk-PUAJJDMB.js.map +1 -0
- package/dist/edge.cjs +89 -89
- package/dist/edge.d.cts +2 -2
- package/dist/edge.d.ts +2 -2
- package/dist/edge.js +4 -4
- package/dist/index.cjs +424 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -4
- package/dist/index.d.ts +38 -4
- package/dist/index.js +123 -10
- package/dist/index.js.map +1 -1
- package/dist/test-support.cjs +18 -18
- package/dist/test-support.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AD26YHAN.js.map +0 -1
- package/dist/chunk-OSGNL57N.cjs.map +0 -1
|
@@ -794,6 +794,81 @@ interface HavenAgentSummary extends HavenAgent {
|
|
|
794
794
|
* budgets", not a fetch failure).
|
|
795
795
|
*/
|
|
796
796
|
taskBudgets: HavenTaskBudgetSummary[];
|
|
797
|
+
/**
|
|
798
|
+
* #3506: the sub-budget rows THIS agent must still sign as the DELEGATING
|
|
799
|
+
* agent — the owner issued a sub-budget (a parent-child row for this agent
|
|
800
|
+
* plus a grant to the sub-agent), and each row is `pending` until this
|
|
801
|
+
* agent's delegate key signs it (or `closing` until it signs the close).
|
|
802
|
+
* A derived VIEW, populated from `GET /sub-budgets?status=awaiting_signature`;
|
|
803
|
+
* empty (never throws) against a backend that predates the filter.
|
|
804
|
+
*/
|
|
805
|
+
pendingSubBudgetSignatures: HavenPendingSubBudgetSignature[];
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* #3506: one sub-budget row awaiting THIS agent's signature — what
|
|
809
|
+
* `haven_get_agent` carries per row so the agent can call
|
|
810
|
+
* `haven_sign { sub_budget_id }` then `haven_submit { sub_budget_id, signature }`.
|
|
811
|
+
*/
|
|
812
|
+
interface HavenPendingSubBudgetSignature {
|
|
813
|
+
subBudgetId: string;
|
|
814
|
+
/** The parent-child row a grant hangs under; null on the parent-child row itself (they share a tree). */
|
|
815
|
+
parentSubBudgetId: string | null;
|
|
816
|
+
/** `open`: sign the child delegation (row is pending). `close`: sign the revocation (row is closing). */
|
|
817
|
+
purpose: 'open' | 'close';
|
|
818
|
+
/** `parent-child`: this agent's own narrowing of its budget. `grant`: the slice delegated to the sub-agent. */
|
|
819
|
+
what: 'parent-child' | 'grant';
|
|
820
|
+
/** The sub-agent that holds the grant; null on this agent's own parent-child row. */
|
|
821
|
+
subAgentId: string | null;
|
|
822
|
+
tokenAddress: string;
|
|
823
|
+
recipientAddress: string | null;
|
|
824
|
+
periodAmountAtomic: string;
|
|
825
|
+
expiresAt: number;
|
|
826
|
+
isExpired: boolean;
|
|
827
|
+
}
|
|
828
|
+
/** #3506: sub-budget lifecycle status, as the wire names it. */
|
|
829
|
+
type HavenSubBudgetStatus = 'pending' | 'open' | 'closing' | 'closed';
|
|
830
|
+
/** #3506: `RawSubBudget`, camelCased — what the SDK sub-budget methods return. */
|
|
831
|
+
interface HavenSubBudget {
|
|
832
|
+
id: string;
|
|
833
|
+
agentId: string;
|
|
834
|
+
parentAgentId: string;
|
|
835
|
+
parentSubBudgetId: string | null;
|
|
836
|
+
chainId: number;
|
|
837
|
+
tokenAddress: string;
|
|
838
|
+
recipientAddress: string | null;
|
|
839
|
+
parentDelegationHash: string;
|
|
840
|
+
delegationHash: string;
|
|
841
|
+
label: string | null;
|
|
842
|
+
periodAmountAtomic: string;
|
|
843
|
+
status: HavenSubBudgetStatus;
|
|
844
|
+
expiresAt: number;
|
|
845
|
+
isExpired: boolean;
|
|
846
|
+
createdAt: string;
|
|
847
|
+
openedAt: string | null;
|
|
848
|
+
closedAt: string | null;
|
|
849
|
+
closeTxHash: string | null;
|
|
850
|
+
}
|
|
851
|
+
/** #3506: `POST /sub-budgets/:id/submit` — opened (from pending) or closed (from closing). */
|
|
852
|
+
interface SubmitSubBudgetResult {
|
|
853
|
+
subBudget: HavenSubBudget;
|
|
854
|
+
status: 'open' | 'closed';
|
|
855
|
+
/** Present only once the close UserOp lands (`status === 'closed'` from `closing`). */
|
|
856
|
+
closeTxHash?: string;
|
|
857
|
+
}
|
|
858
|
+
/** #3506: the sign data a live-child close returns (the revocation UserOp's typed data). */
|
|
859
|
+
interface HavenSubBudgetCloseSignData {
|
|
860
|
+
signature_scheme: 'eip712_userop';
|
|
861
|
+
typed_data: Record<string, unknown>;
|
|
862
|
+
user_op_hash: string;
|
|
863
|
+
}
|
|
864
|
+
/** #3506: `POST /sub-budgets/:id/close`. */
|
|
865
|
+
interface CloseSubBudgetResult {
|
|
866
|
+
subBudget: HavenSubBudget;
|
|
867
|
+
/** `closed` on a trivial close (never signed, or already expired); absent when a close signature is pending. */
|
|
868
|
+
status?: 'closed';
|
|
869
|
+
/** Present only when the close needed a signature (a live child). */
|
|
870
|
+
signData?: HavenSubBudgetCloseSignData;
|
|
871
|
+
nextAction?: string;
|
|
797
872
|
}
|
|
798
873
|
/** #3329: task-budget lifecycle status, as the wire names it. */
|
|
799
874
|
type HavenTaskBudgetStatus = 'pending' | 'open' | 'closing' | 'closed';
|
|
@@ -2137,7 +2212,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
|
|
|
2137
2212
|
* This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
|
|
2138
2213
|
* it with the package version on every release — never hand-edit it.
|
|
2139
2214
|
*/
|
|
2140
|
-
declare const SDK_VERSION = "0.0.0-dev.
|
|
2215
|
+
declare const SDK_VERSION = "0.0.0-dev.202610011057.1c1da3f";
|
|
2141
2216
|
/** The request header every published Haven client sends. */
|
|
2142
2217
|
declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
|
|
2143
2218
|
/** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
|
|
@@ -3239,4 +3314,4 @@ declare function encodeBase64Json(value: unknown): string;
|
|
|
3239
3314
|
*/
|
|
3240
3315
|
declare function decodeBase64Json<T>(value: string, label?: string): T;
|
|
3241
3316
|
|
|
3242
|
-
export {
|
|
3317
|
+
export { AgentPaymentNextAction as $, type AgentPaymentWarning as A, type X402Erc7710Settlement as B, type CloseTaskBudgetResult as C, type X402McpCallContext as D, type SignData as E, type ResumeAuthorizedX402Input as F, type ResumeX402PaymentInput as G, type HavenClientConfig as H, type X402ResumeState as I, type X402McpTransport as J, type X402MerchantCallContext as K, HavenError as L, AGENT_PAYMENT_FAILURE_CODE_VALUES as M, AGENT_PAYMENT_NEXT_ACTION_VALUES as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, AGENT_PAYMENT_PHASE_VALUES as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AGENT_PAYMENT_RAIL_VALUES as U, type AgentNextStep as V, type AgentPaymentEnumSchema as W, type X402PaymentRequired as X, AgentPaymentFailureCode as Y, AgentPaymentFailureCodeDescriptions as Z, AgentPaymentFailureCodeSchema as _, type HavenClientUpdate as a, type SweepConfirmation as a$, AgentPaymentNextActionDescriptions as a0, AgentPaymentNextActionSchema as a1, AgentPaymentPhase as a2, AgentPaymentPhaseDescriptions as a3, AgentPaymentPhaseSchema as a4, AgentPaymentRail as a5, AgentPaymentRailDescriptions as a6, AgentPaymentRailSchema as a7, type AgentPaymentSummary as a8, AgentPaymentWarningCode as a9, MAX_TASK_BUDGET_TTL_SECONDS as aA, type MachinePaymentRail as aB, MerchantTimeoutError as aC, NEXT_TOOL_SERVER_NAMES as aD, NEXT_TOOL_SERVER_ROLES as aE, type NextStep as aF, type NextStepArguments as aG, type NextStepHandoff as aH, type NextStepInput as aI, type NextStepTarget as aJ, type NextStepTargets as aK, type NextToolServerRole as aL, PACKED_USER_OPERATION_FIELDS as aM, type PaymentFee as aN, type PaymentNextAction as aO, type PaymentPhase as aP, type PaymentStatus as aQ, ROOT_AUTHORITY as aR, SDK_CLIENT_IDENTITY as aS, SDK_VERSION as aT, SIGNER_UPDATE_FALLBACK as aU, SWEEP_BASE_CHAIN_ID as aV, SWEEP_BASE_SEPOLIA_CHAIN_ID as aW, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aX, SWEEP_BASE_USDC_ADDRESS as aY, type SettlementChildExpectation as aZ, SignerRefusalCode as a_, type AgentPurchaseSummary as aa, CONNECTOR_PACKAGE_NAME as ab, type CatalogSubmissionAccepted as ac, DEFAULT_CONFIRMATION_TIMEOUT_MS as ad, DEFAULT_NEXT_TOOL_BY_ACTION as ae, DIRECT_SIGN_CONTEXT_VERSION as af, ENTRY_POINT_V07 as ag, ERC7710_ASSET_TRANSFER_METHOD as ah, HAVEN_CLIENT_HEADER as ai, HAVEN_CONNECTOR_CHANNEL as aj, HAVEN_MINIMUM_NODE_VERSION as ak, HYBRID_DELEGATOR_DOMAIN_NAME as al, HYBRID_DELEGATOR_DOMAIN_VERSION as am, type HavenAgentAllowanceSummary as an, type HavenAgentReadiness as ao, type HavenAllowance as ap, HavenApiError as aq, type HavenCatalogMerchant as ar, type HavenListScope as as, HavenPaymentStateError as at, HavenSigningError as au, HavenTimeoutError as av, HavenTypedDataRefusedError as aw, HavenUnsupportedSignerVersionError as ax, HavenUserOpBindingError as ay, HavenZeroSettlementHashError as az, type PaymentResult as b, readClientUpdate as b$, type SweepEip712Domain as b0, type SweepEntry as b1, type SweepExpectedAuth as b2, type SweepPreparation as b3, type SweepSubmitResult as b4, type SweepTypedData as b5, TASK_SIGN_CONTEXT_VERSION as b6, TRANSFER_WITH_AUTHORIZATION_TYPES as b7, TYPED_DATA_NOT_ALLOWED as b8, type TaskBudgetCloseExpectation as b9, buildSweepTypedData as bA, buildX402ExpectedMessage as bB, compareNodeVersions as bC, connectorRerunCommand as bD, connectorSpec as bE, connectorUpgradeCommand as bF, createNextStepBuilder as bG, decodeBase64Json as bH, decodeBase64Utf8 as bI, defaultNextToolFor as bJ, deriveDelegateAccountAddress as bK, encodeBase64Json as bL, encodeBase64Utf8 as bM, encodePaymentProof as bN, hashDelegation as bO, havenClientIdentity as bP, isConnectorChannel as bQ, isErc7710Option as bR, isPackedUserOperationTypedData as bS, isSupportedNodeVersion as bT, isSweepableChain as bU, isTaskChildTypedData as bV, normalizePaymentRequired as bW, packedUserOperationHash as bX, parseNextTool as bY, parsePaymentRequired as bZ, parsePaymentRequiredResponse as b_, type TaskChildExpectation as ba, type TaskChildTypedData as bb, type UnsupportedNodeVersionMessageOptions as bc, X402AlreadySettledError as bd, X402Erc7710AlreadySettledError as be, type X402ExpectedAuth as bf, type X402ExpectedContext as bg, type X402PaymentHeaderContext as bh, X402PaymentHeaderValidationError as bi, type X402PaymentOption as bj, type X402RequestSnapshot as bk, type X402SchemeSelection as bl, X402TaskBudgetMismatchError as bm, X402UnexpectedStatusError as bn, X402_LEGACY_PAYMENT_HEADER_NAME as bo, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bp, X402_PAYMENT_HEADER_NAME as bq, X402_PAYMENT_HEADER_NAMES_SENT as br, X402_PAYMENT_REQUIRED_HEADER_NAME as bs, X402_PAYMENT_RESPONSE_HEADER_NAME as bt, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bu, assertBoundDirectPaymentUserOp as bv, assertOwnTaskBudgetCloseUserOp as bw, assertOwnTaskChild as bx, assertUserOpTypedDataBinding as by, buildSweepAuthorizationMessage as bz, type PaymentIntent as c, renderNextTool as c0, resolveConnectorChannel as c1, resolveTokenBySymbol as c2, resolveTokenFromAddress as c3, selectErc7710PaymentOption as c4, selectPaymentOption as c5, selectStandardPaymentOption as c6, selectX402SettlementScheme as c7, signerUpdateFallback as c8, sweepUsdcAddress as c9, sweepUsdcDomain as ca, toStandardPaymentRequirements as cb, unsupportedNodeVersionMessage as cc, validateStandardX402PaymentHeader as cd, verifySettlementChild as ce, x402AssetTransferMethod as cf, x402AuthorizationAmount as cg, x402FacilitatorAddresses as ch, x402V2PaymentEnvelope as ci, type DelegationForHashing as cj, CAVEAT_ENFORCERS as ck, CAVEAT_TYPEHASH as cl, DELEGATION_MANAGER as cm, DELEGATION_TYPEHASH as cn, DIRECT_PAYMENT_CHAIN_IDS as co, EXECUTE_ABI as cp, HYBRID_DELEGATOR_IMPLEMENTATION as cq, MAX_SETTLEMENT_WINDOW_SECONDS as cr, SIMPLE_FACTORY_ADDRESS as cs, type SettlementChildTypedData as ct, assertFundingLegPaysDelegate as cu, assertOwnSettlementChild as cv, chainIdForNetwork as cw, isSettlementChildTypedData as cx, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type SubmitSubBudgetResult as u, type HavenPendingSubBudgetSignature as v, type CloseSubBudgetResult as w, type PaymentResumeState as x, type X402Receipt as y, type X402Quote as z };
|
|
@@ -794,6 +794,81 @@ interface HavenAgentSummary extends HavenAgent {
|
|
|
794
794
|
* budgets", not a fetch failure).
|
|
795
795
|
*/
|
|
796
796
|
taskBudgets: HavenTaskBudgetSummary[];
|
|
797
|
+
/**
|
|
798
|
+
* #3506: the sub-budget rows THIS agent must still sign as the DELEGATING
|
|
799
|
+
* agent — the owner issued a sub-budget (a parent-child row for this agent
|
|
800
|
+
* plus a grant to the sub-agent), and each row is `pending` until this
|
|
801
|
+
* agent's delegate key signs it (or `closing` until it signs the close).
|
|
802
|
+
* A derived VIEW, populated from `GET /sub-budgets?status=awaiting_signature`;
|
|
803
|
+
* empty (never throws) against a backend that predates the filter.
|
|
804
|
+
*/
|
|
805
|
+
pendingSubBudgetSignatures: HavenPendingSubBudgetSignature[];
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* #3506: one sub-budget row awaiting THIS agent's signature — what
|
|
809
|
+
* `haven_get_agent` carries per row so the agent can call
|
|
810
|
+
* `haven_sign { sub_budget_id }` then `haven_submit { sub_budget_id, signature }`.
|
|
811
|
+
*/
|
|
812
|
+
interface HavenPendingSubBudgetSignature {
|
|
813
|
+
subBudgetId: string;
|
|
814
|
+
/** The parent-child row a grant hangs under; null on the parent-child row itself (they share a tree). */
|
|
815
|
+
parentSubBudgetId: string | null;
|
|
816
|
+
/** `open`: sign the child delegation (row is pending). `close`: sign the revocation (row is closing). */
|
|
817
|
+
purpose: 'open' | 'close';
|
|
818
|
+
/** `parent-child`: this agent's own narrowing of its budget. `grant`: the slice delegated to the sub-agent. */
|
|
819
|
+
what: 'parent-child' | 'grant';
|
|
820
|
+
/** The sub-agent that holds the grant; null on this agent's own parent-child row. */
|
|
821
|
+
subAgentId: string | null;
|
|
822
|
+
tokenAddress: string;
|
|
823
|
+
recipientAddress: string | null;
|
|
824
|
+
periodAmountAtomic: string;
|
|
825
|
+
expiresAt: number;
|
|
826
|
+
isExpired: boolean;
|
|
827
|
+
}
|
|
828
|
+
/** #3506: sub-budget lifecycle status, as the wire names it. */
|
|
829
|
+
type HavenSubBudgetStatus = 'pending' | 'open' | 'closing' | 'closed';
|
|
830
|
+
/** #3506: `RawSubBudget`, camelCased — what the SDK sub-budget methods return. */
|
|
831
|
+
interface HavenSubBudget {
|
|
832
|
+
id: string;
|
|
833
|
+
agentId: string;
|
|
834
|
+
parentAgentId: string;
|
|
835
|
+
parentSubBudgetId: string | null;
|
|
836
|
+
chainId: number;
|
|
837
|
+
tokenAddress: string;
|
|
838
|
+
recipientAddress: string | null;
|
|
839
|
+
parentDelegationHash: string;
|
|
840
|
+
delegationHash: string;
|
|
841
|
+
label: string | null;
|
|
842
|
+
periodAmountAtomic: string;
|
|
843
|
+
status: HavenSubBudgetStatus;
|
|
844
|
+
expiresAt: number;
|
|
845
|
+
isExpired: boolean;
|
|
846
|
+
createdAt: string;
|
|
847
|
+
openedAt: string | null;
|
|
848
|
+
closedAt: string | null;
|
|
849
|
+
closeTxHash: string | null;
|
|
850
|
+
}
|
|
851
|
+
/** #3506: `POST /sub-budgets/:id/submit` — opened (from pending) or closed (from closing). */
|
|
852
|
+
interface SubmitSubBudgetResult {
|
|
853
|
+
subBudget: HavenSubBudget;
|
|
854
|
+
status: 'open' | 'closed';
|
|
855
|
+
/** Present only once the close UserOp lands (`status === 'closed'` from `closing`). */
|
|
856
|
+
closeTxHash?: string;
|
|
857
|
+
}
|
|
858
|
+
/** #3506: the sign data a live-child close returns (the revocation UserOp's typed data). */
|
|
859
|
+
interface HavenSubBudgetCloseSignData {
|
|
860
|
+
signature_scheme: 'eip712_userop';
|
|
861
|
+
typed_data: Record<string, unknown>;
|
|
862
|
+
user_op_hash: string;
|
|
863
|
+
}
|
|
864
|
+
/** #3506: `POST /sub-budgets/:id/close`. */
|
|
865
|
+
interface CloseSubBudgetResult {
|
|
866
|
+
subBudget: HavenSubBudget;
|
|
867
|
+
/** `closed` on a trivial close (never signed, or already expired); absent when a close signature is pending. */
|
|
868
|
+
status?: 'closed';
|
|
869
|
+
/** Present only when the close needed a signature (a live child). */
|
|
870
|
+
signData?: HavenSubBudgetCloseSignData;
|
|
871
|
+
nextAction?: string;
|
|
797
872
|
}
|
|
798
873
|
/** #3329: task-budget lifecycle status, as the wire names it. */
|
|
799
874
|
type HavenTaskBudgetStatus = 'pending' | 'open' | 'closing' | 'closed';
|
|
@@ -2137,7 +2212,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
|
|
|
2137
2212
|
* This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
|
|
2138
2213
|
* it with the package version on every release — never hand-edit it.
|
|
2139
2214
|
*/
|
|
2140
|
-
declare const SDK_VERSION = "0.0.0-dev.
|
|
2215
|
+
declare const SDK_VERSION = "0.0.0-dev.202610011057.1c1da3f";
|
|
2141
2216
|
/** The request header every published Haven client sends. */
|
|
2142
2217
|
declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
|
|
2143
2218
|
/** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
|
|
@@ -3239,4 +3314,4 @@ declare function encodeBase64Json(value: unknown): string;
|
|
|
3239
3314
|
*/
|
|
3240
3315
|
declare function decodeBase64Json<T>(value: string, label?: string): T;
|
|
3241
3316
|
|
|
3242
|
-
export {
|
|
3317
|
+
export { AgentPaymentNextAction as $, type AgentPaymentWarning as A, type X402Erc7710Settlement as B, type CloseTaskBudgetResult as C, type X402McpCallContext as D, type SignData as E, type ResumeAuthorizedX402Input as F, type ResumeX402PaymentInput as G, type HavenClientConfig as H, type X402ResumeState as I, type X402McpTransport as J, type X402MerchantCallContext as K, HavenError as L, AGENT_PAYMENT_FAILURE_CODE_VALUES as M, AGENT_PAYMENT_NEXT_ACTION_VALUES as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, AGENT_PAYMENT_PHASE_VALUES as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AGENT_PAYMENT_RAIL_VALUES as U, type AgentNextStep as V, type AgentPaymentEnumSchema as W, type X402PaymentRequired as X, AgentPaymentFailureCode as Y, AgentPaymentFailureCodeDescriptions as Z, AgentPaymentFailureCodeSchema as _, type HavenClientUpdate as a, type SweepConfirmation as a$, AgentPaymentNextActionDescriptions as a0, AgentPaymentNextActionSchema as a1, AgentPaymentPhase as a2, AgentPaymentPhaseDescriptions as a3, AgentPaymentPhaseSchema as a4, AgentPaymentRail as a5, AgentPaymentRailDescriptions as a6, AgentPaymentRailSchema as a7, type AgentPaymentSummary as a8, AgentPaymentWarningCode as a9, MAX_TASK_BUDGET_TTL_SECONDS as aA, type MachinePaymentRail as aB, MerchantTimeoutError as aC, NEXT_TOOL_SERVER_NAMES as aD, NEXT_TOOL_SERVER_ROLES as aE, type NextStep as aF, type NextStepArguments as aG, type NextStepHandoff as aH, type NextStepInput as aI, type NextStepTarget as aJ, type NextStepTargets as aK, type NextToolServerRole as aL, PACKED_USER_OPERATION_FIELDS as aM, type PaymentFee as aN, type PaymentNextAction as aO, type PaymentPhase as aP, type PaymentStatus as aQ, ROOT_AUTHORITY as aR, SDK_CLIENT_IDENTITY as aS, SDK_VERSION as aT, SIGNER_UPDATE_FALLBACK as aU, SWEEP_BASE_CHAIN_ID as aV, SWEEP_BASE_SEPOLIA_CHAIN_ID as aW, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aX, SWEEP_BASE_USDC_ADDRESS as aY, type SettlementChildExpectation as aZ, SignerRefusalCode as a_, type AgentPurchaseSummary as aa, CONNECTOR_PACKAGE_NAME as ab, type CatalogSubmissionAccepted as ac, DEFAULT_CONFIRMATION_TIMEOUT_MS as ad, DEFAULT_NEXT_TOOL_BY_ACTION as ae, DIRECT_SIGN_CONTEXT_VERSION as af, ENTRY_POINT_V07 as ag, ERC7710_ASSET_TRANSFER_METHOD as ah, HAVEN_CLIENT_HEADER as ai, HAVEN_CONNECTOR_CHANNEL as aj, HAVEN_MINIMUM_NODE_VERSION as ak, HYBRID_DELEGATOR_DOMAIN_NAME as al, HYBRID_DELEGATOR_DOMAIN_VERSION as am, type HavenAgentAllowanceSummary as an, type HavenAgentReadiness as ao, type HavenAllowance as ap, HavenApiError as aq, type HavenCatalogMerchant as ar, type HavenListScope as as, HavenPaymentStateError as at, HavenSigningError as au, HavenTimeoutError as av, HavenTypedDataRefusedError as aw, HavenUnsupportedSignerVersionError as ax, HavenUserOpBindingError as ay, HavenZeroSettlementHashError as az, type PaymentResult as b, readClientUpdate as b$, type SweepEip712Domain as b0, type SweepEntry as b1, type SweepExpectedAuth as b2, type SweepPreparation as b3, type SweepSubmitResult as b4, type SweepTypedData as b5, TASK_SIGN_CONTEXT_VERSION as b6, TRANSFER_WITH_AUTHORIZATION_TYPES as b7, TYPED_DATA_NOT_ALLOWED as b8, type TaskBudgetCloseExpectation as b9, buildSweepTypedData as bA, buildX402ExpectedMessage as bB, compareNodeVersions as bC, connectorRerunCommand as bD, connectorSpec as bE, connectorUpgradeCommand as bF, createNextStepBuilder as bG, decodeBase64Json as bH, decodeBase64Utf8 as bI, defaultNextToolFor as bJ, deriveDelegateAccountAddress as bK, encodeBase64Json as bL, encodeBase64Utf8 as bM, encodePaymentProof as bN, hashDelegation as bO, havenClientIdentity as bP, isConnectorChannel as bQ, isErc7710Option as bR, isPackedUserOperationTypedData as bS, isSupportedNodeVersion as bT, isSweepableChain as bU, isTaskChildTypedData as bV, normalizePaymentRequired as bW, packedUserOperationHash as bX, parseNextTool as bY, parsePaymentRequired as bZ, parsePaymentRequiredResponse as b_, type TaskChildExpectation as ba, type TaskChildTypedData as bb, type UnsupportedNodeVersionMessageOptions as bc, X402AlreadySettledError as bd, X402Erc7710AlreadySettledError as be, type X402ExpectedAuth as bf, type X402ExpectedContext as bg, type X402PaymentHeaderContext as bh, X402PaymentHeaderValidationError as bi, type X402PaymentOption as bj, type X402RequestSnapshot as bk, type X402SchemeSelection as bl, X402TaskBudgetMismatchError as bm, X402UnexpectedStatusError as bn, X402_LEGACY_PAYMENT_HEADER_NAME as bo, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bp, X402_PAYMENT_HEADER_NAME as bq, X402_PAYMENT_HEADER_NAMES_SENT as br, X402_PAYMENT_REQUIRED_HEADER_NAME as bs, X402_PAYMENT_RESPONSE_HEADER_NAME as bt, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bu, assertBoundDirectPaymentUserOp as bv, assertOwnTaskBudgetCloseUserOp as bw, assertOwnTaskChild as bx, assertUserOpTypedDataBinding as by, buildSweepAuthorizationMessage as bz, type PaymentIntent as c, renderNextTool as c0, resolveConnectorChannel as c1, resolveTokenBySymbol as c2, resolveTokenFromAddress as c3, selectErc7710PaymentOption as c4, selectPaymentOption as c5, selectStandardPaymentOption as c6, selectX402SettlementScheme as c7, signerUpdateFallback as c8, sweepUsdcAddress as c9, sweepUsdcDomain as ca, toStandardPaymentRequirements as cb, unsupportedNodeVersionMessage as cc, validateStandardX402PaymentHeader as cd, verifySettlementChild as ce, x402AssetTransferMethod as cf, x402AuthorizationAmount as cg, x402FacilitatorAddresses as ch, x402V2PaymentEnvelope as ci, type DelegationForHashing as cj, CAVEAT_ENFORCERS as ck, CAVEAT_TYPEHASH as cl, DELEGATION_MANAGER as cm, DELEGATION_TYPEHASH as cn, DIRECT_PAYMENT_CHAIN_IDS as co, EXECUTE_ABI as cp, HYBRID_DELEGATOR_IMPLEMENTATION as cq, MAX_SETTLEMENT_WINDOW_SECONDS as cr, SIMPLE_FACTORY_ADDRESS as cs, type SettlementChildTypedData as ct, assertFundingLegPaysDelegate as cu, assertOwnSettlementChild as cv, chainIdForNetwork as cw, isSettlementChildTypedData as cx, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type SubmitSubBudgetResult as u, type HavenPendingSubBudgetSignature as v, type CloseSubBudgetResult as w, type PaymentResumeState as x, type X402Receipt as y, type X402Quote as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HavenSigningError, deriveDelegateAccountAddress, DELEGATION_MANAGER, assertRedeemsOwnBudgetDelegation, verifySettlementChild, REDEEM_DELEGATIONS_ABI, chainIdForNetwork, ROOT_AUTHORITY, CAVEAT_ENFORCERS, DELEGATION_TUPLE_COMPONENTS } from './chunk-
|
|
1
|
+
import { HavenSigningError, deriveDelegateAccountAddress, DELEGATION_MANAGER, assertRedeemsOwnBudgetDelegation, verifySettlementChild, REDEEM_DELEGATIONS_ABI, chainIdForNetwork, ROOT_AUTHORITY, CAVEAT_ENFORCERS, DELEGATION_TUPLE_COMPONENTS } from './chunk-PUAJJDMB.js';
|
|
2
2
|
import { decodeFunctionData, encodeFunctionData, encodePacked, recoverTypedDataAddress, serializeSignature, hashTypedData, encodeAbiParameters, keccak256 } from 'viem';
|
|
3
3
|
import { createHash } from 'crypto';
|
|
4
4
|
import { secp256k1 } from '@noble/curves/secp256k1';
|
|
@@ -785,7 +785,7 @@ function stableStringify2(value) {
|
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
// src/client-identity.ts
|
|
788
|
-
var SDK_VERSION = "0.0.0-dev.
|
|
788
|
+
var SDK_VERSION = "0.0.0-dev.202610011057.1c1da3f";
|
|
789
789
|
var HAVEN_CLIENT_HEADER = "X-Haven-Client";
|
|
790
790
|
function havenClientIdentity(pkg, version) {
|
|
791
791
|
return `${pkg}/${version}`;
|
|
@@ -1386,5 +1386,5 @@ function hashDelegation(delegation) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
1388
|
export { CAVEAT_TYPEHASH, DEFAULT_NEXT_TOOL_BY_ACTION, DELEGATION_TYPEHASH, DIRECT_PAYMENT_CHAIN_IDS, ERC7710_ASSET_TRANSFER_METHOD, EXECUTE_ABI, HAVEN_CLIENT_HEADER, HAVEN_MINIMUM_NODE_VERSION, HavenTypedDataRefusedError, MAX_TASK_BUDGET_TTL_SECONDS, NEXT_TOOL_SERVER_NAMES, NEXT_TOOL_SERVER_ROLES, SDK_CLIENT_IDENTITY, SDK_VERSION, SWEEP_BASE_CHAIN_ID, SWEEP_BASE_SEPOLIA_CHAIN_ID, SWEEP_BASE_SEPOLIA_USDC_ADDRESS, SWEEP_BASE_USDC_ADDRESS, TAX_DECLARATION_DOMAIN, TAX_DECLARATION_PRIMARY_TYPE, TAX_DECLARATION_TYPES, TRANSFER_WITH_AUTHORIZATION_TYPES, TYPED_DATA_NOT_ALLOWED, TaxDeclarationRefusedError, X402PaymentHeaderValidationError, X402_LEGACY_PAYMENT_HEADER_NAME, X402_MAX_AUTHORIZATION_WINDOW_SECONDS, X402_PAYMENT_HEADER_NAME, X402_PAYMENT_HEADER_NAMES, X402_PAYMENT_HEADER_NAMES_SENT, X402_PAYMENT_REQUIRED_HEADER_NAME, X402_PAYMENT_RESPONSE_HEADER_NAME, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS, X_TAX_DECLARATION_HEADER, addressFromKey, assertBoundDirectPaymentUserOp, assertFundingLegPaysDelegate, assertOwnSettlementChild, assertOwnTaskBudgetCloseUserOp, assertOwnTaskChild, buildSignedTaxDeclaration, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, buildX402IdempotencyKey, compareNodeVersions, createNextStepBuilder, decodeBase64Json, decodeBase64Utf8, defaultNextToolFor, encodeBase64Json, encodeBase64Utf8, encodePaymentProof, encodeTaxDeclarationHeader, hashDelegation, havenClientIdentity, isErc7710Option, isSupportedNodeVersion, isSweepableChain, isTaskChildTypedData, normalizePaymentRequired, parseNextTool, parsePaymentRequired, parsePaymentRequiredResponse, principalAttributionHash, readClientUpdate, renderNextTool, resolveTokenBySymbol, resolveTokenFromAddress, selectErc7710PaymentOption, selectPaymentOption, selectStandardPaymentOption, selectX402SettlementScheme, signHash, sweepUsdcAddress, sweepUsdcDomain, taxPrincipalId, toStandardPaymentRequirements, unsupportedNodeVersionMessage, validateStandardX402PaymentHeader, verifySignature, verifyTaxDeclarationSignature, x402AssetTransferMethod, x402AuthorizationAmount, x402FacilitatorAddresses, x402PaymentHeaderNamesFor, x402PaymentHeaderNamesSent, x402V2PaymentEnvelope };
|
|
1389
|
-
//# sourceMappingURL=chunk-
|
|
1390
|
-
//# sourceMappingURL=chunk-
|
|
1389
|
+
//# sourceMappingURL=chunk-4EE4ESOI.js.map
|
|
1390
|
+
//# sourceMappingURL=chunk-4EE4ESOI.js.map
|