uvd-x402-sdk 2.48.0 → 2.50.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/dist/backend/index.d.mts +66 -4
- package/dist/backend/index.d.ts +66 -4
- package/dist/backend/index.js +2 -0
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/index.mjs +2 -0
- package/dist/backend/index.mjs.map +1 -1
- package/dist/erc8128/index.d.mts +876 -0
- package/dist/erc8128/index.d.ts +876 -0
- package/dist/erc8128/index.js +1213 -0
- package/dist/erc8128/index.js.map +1 -0
- package/dist/erc8128/index.mjs +1169 -0
- package/dist/erc8128/index.mjs.map +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -1
- package/src/backend/index.ts +71 -4
- package/src/erc8128/conformance.ts +391 -0
- package/src/erc8128/core.ts +603 -0
- package/src/erc8128/erc8128.f3-1.json +147 -0
- package/src/erc8128/erc8128.f3-3.json +914 -0
- package/src/erc8128/errors.ts +144 -0
- package/src/erc8128/index.ts +161 -0
- package/src/erc8128/nonce.ts +79 -0
- package/src/erc8128/presets.ts +159 -0
- package/src/erc8128/signer.ts +365 -0
- package/src/erc8128/vectors.generated.ts +33 -0
- package/src/erc8128/vectors.ts +92 -0
- package/src/erc8128/verifier.ts +573 -0
- package/src/erc8128.vectors.json +147 -0
- package/src/escrow-preauth.vectors.json +127 -0
package/dist/backend/index.d.mts
CHANGED
|
@@ -1490,6 +1490,16 @@ interface FeedbackParams {
|
|
|
1490
1490
|
feedbackUri?: string;
|
|
1491
1491
|
/** Keccak256 hash of feedback content (for integrity) */
|
|
1492
1492
|
feedbackHash?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Quality score 0-100.
|
|
1495
|
+
*
|
|
1496
|
+
* Solana only, and effectively required there: the ATOM Engine ignores an
|
|
1497
|
+
* unscored feedback. It is written to the agent but contributes nothing to
|
|
1498
|
+
* reputation, and the program reports `had_impact=false`. This is not
|
|
1499
|
+
* retroactive — reputation stays at zero however much unscored feedback
|
|
1500
|
+
* accumulates.
|
|
1501
|
+
*/
|
|
1502
|
+
score?: number;
|
|
1493
1503
|
/** Proof of payment (required for authorized feedback) */
|
|
1494
1504
|
proof?: ProofOfPayment;
|
|
1495
1505
|
}
|
|
@@ -1522,10 +1532,48 @@ interface FeedbackResponse {
|
|
|
1522
1532
|
/**
|
|
1523
1533
|
* Reputation query response
|
|
1524
1534
|
*/
|
|
1535
|
+
/**
|
|
1536
|
+
* ATOM Engine reputation analytics (Solana only).
|
|
1537
|
+
*
|
|
1538
|
+
* Present only when the agent's `atom_stats` account has been initialized. The
|
|
1539
|
+
* facilitator does that during `registerAgent`; agents registered elsewhere may
|
|
1540
|
+
* never have it, in which case their feedback is never scored.
|
|
1541
|
+
*
|
|
1542
|
+
* The engine measures quality through EMA scores, so there are no
|
|
1543
|
+
* positive/negative tallies.
|
|
1544
|
+
*/
|
|
1545
|
+
interface AtomStats {
|
|
1546
|
+
/** Trust tier 0-4 */
|
|
1547
|
+
trustTier: number;
|
|
1548
|
+
/** Human-readable trust tier */
|
|
1549
|
+
trustTierName: string;
|
|
1550
|
+
/** Cached quality score */
|
|
1551
|
+
qualityScore: number;
|
|
1552
|
+
/** Cached loyalty score */
|
|
1553
|
+
loyaltyScore: number;
|
|
1554
|
+
/** Statistical confidence */
|
|
1555
|
+
confidence: number;
|
|
1556
|
+
/** Risk assessment (lower is better) */
|
|
1557
|
+
riskScore: number;
|
|
1558
|
+
/** Client diversity from HyperLogLog */
|
|
1559
|
+
diversityRatio: number;
|
|
1560
|
+
/** Lowest score ever recorded */
|
|
1561
|
+
minScore: number;
|
|
1562
|
+
/** Highest score ever recorded */
|
|
1563
|
+
maxScore: number;
|
|
1564
|
+
/** Most recent score recorded */
|
|
1565
|
+
lastScore: number;
|
|
1566
|
+
/** Total feedback counted by the engine */
|
|
1567
|
+
feedbackCount: number;
|
|
1568
|
+
/** Slot of the most recent feedback */
|
|
1569
|
+
lastFeedbackSlot: number;
|
|
1570
|
+
}
|
|
1525
1571
|
interface ReputationResponse {
|
|
1526
1572
|
agentId: AgentId;
|
|
1527
1573
|
summary: ReputationSummary;
|
|
1528
1574
|
feedback?: FeedbackEntry[];
|
|
1575
|
+
/** ATOM Engine analytics; absent when the agent has no initialized stats */
|
|
1576
|
+
atomStats?: AtomStats | null;
|
|
1529
1577
|
network: Erc8004Network;
|
|
1530
1578
|
}
|
|
1531
1579
|
/**
|
|
@@ -1594,19 +1642,32 @@ interface IdentityMetadataResponse {
|
|
|
1594
1642
|
agentId: AgentId;
|
|
1595
1643
|
/** Metadata key */
|
|
1596
1644
|
key: string;
|
|
1597
|
-
/**
|
|
1598
|
-
|
|
1645
|
+
/**
|
|
1646
|
+
* Raw hex-encoded value. The facilitator sends this as `value`; this field
|
|
1647
|
+
* used to be declared as `valueHex`, which no response ever carried, so it
|
|
1648
|
+
* was always undefined at runtime.
|
|
1649
|
+
*/
|
|
1650
|
+
value: string;
|
|
1599
1651
|
/** UTF-8 decoded value (if decodable) */
|
|
1600
1652
|
valueUtf8?: string;
|
|
1653
|
+
/** Whether the entry can still be changed */
|
|
1654
|
+
immutable?: boolean;
|
|
1601
1655
|
/** Network */
|
|
1602
1656
|
network: string;
|
|
1603
1657
|
}
|
|
1604
1658
|
/**
|
|
1605
1659
|
* Response from GET /identity/{network}/total-supply
|
|
1660
|
+
*
|
|
1661
|
+
* On Solana the counts come from the Metaplex Core collection, not the registry,
|
|
1662
|
+
* which keeps no counter of its own.
|
|
1606
1663
|
*/
|
|
1607
1664
|
interface IdentityTotalSupplyResponse {
|
|
1608
|
-
/**
|
|
1665
|
+
/** Registered agents, net of burns */
|
|
1609
1666
|
totalSupply: number;
|
|
1667
|
+
/** All-time mint count (Solana) */
|
|
1668
|
+
numMinted?: number;
|
|
1669
|
+
/** Metaplex Core collection backing the count (Solana) */
|
|
1670
|
+
collection?: string;
|
|
1610
1671
|
/** Network */
|
|
1611
1672
|
network: string;
|
|
1612
1673
|
}
|
|
@@ -1751,6 +1812,7 @@ declare class Erc8004Client {
|
|
|
1751
1812
|
*/
|
|
1752
1813
|
revokeFeedback(network: Erc8004Network, agentId: AgentId, feedbackIndex: number, options?: {
|
|
1753
1814
|
sealHash?: string;
|
|
1815
|
+
originalFeedback?: Omit<FeedbackParams, 'agentId' | 'proof'>;
|
|
1754
1816
|
}): Promise<FeedbackResponse>;
|
|
1755
1817
|
/**
|
|
1756
1818
|
* Get ERC-8004 contract addresses for a network
|
|
@@ -2328,4 +2390,4 @@ declare class AdvancedEscrowClient {
|
|
|
2328
2390
|
private sendViaAdapter;
|
|
2329
2391
|
}
|
|
2330
2392
|
|
|
2331
|
-
export { type AdvancedAuthorizationResult, AdvancedEscrowClient, type AdvancedEscrowClientOptions, type AdvancedEscrowContracts, type AdvancedEscrowTaskTier, type AdvancedPaymentInfo, type AdvancedTransactionResult, type AgentId, type AgentIdentity, type AgentRegistration, type AgentRegistrationFile, type AgentService, BASE_MAINNET_CONTRACTS, BazaarClient, type BazaarClientOptions, type BazaarDiscoverOptions, type BazaarDiscoverResponse, type BazaarRegisterOptions, type BazaarResource, type CreateEscrowOptions, DEPOSIT_LIMIT_USDC, type DiscoveryAccepts, type DiscoveryCuration, type DiscoveryHealth, type DiscoveryHealthStatus, type DiscoveryListOptions, type DiscoveryPagination, type DiscoveryRegisterOptions, type DiscoveryResource, type DiscoveryResponse, type DiscoverySource, type DiscoveryStats, type DiscoveryTier, type Dispute, type DisputeOutcome, ERC8004_CONTRACTS, ERC8004_EXTENSION_ID, ESCROW_CONTRACTS, ESCROW_TIMEOUT_MS, Erc8004Client, type Erc8004ClientOptions, type Erc8004Network, EscrowClient, type EscrowClientOptions, type EscrowPayment, type EscrowStateResponse, type EscrowStatus, FacilitatorClient, type FacilitatorClientOptions, type FeedbackEntry, type FeedbackParams, type FeedbackRequest, type FeedbackResponse, HEALTH_FILTERS, type HonoMiddlewareOptions, type IdentityByOwnerResponse, type IdentityMetadataResponse, type IdentityTotalSupplyResponse, MAX_SEARCH_LEN, type MetadataEntryParam, OPERATOR_ABI, OPERATOR_ABI_CREATE3, PAYMENT_INFO_TYPEHASH, type PaymentAcceptance, type PaymentMiddlewareOptions, type PaymentPayloadV2, type PaymentRequirementResolver, type PaymentRequirements, type PaymentRequirementsOptions, type PaymentRequirementsV2, type ProofOfPayment, type RefundRequest, type RefundStatus, type RegisterAgentRequest, type RegisterAgentResponse, type ReputationResponse, type ReputationSummary, type RequestRefundOptions, type ResourceInfoV2, type SettleRequest, type SettleRequestV2, type SettleResponse, type SettleResponseWithProof, TIER_FILTERS, TIER_TIMINGS, USDC_DOMAIN_NAME, type VerifiedPaymentState, type VerifyRequest, type VerifyRequestV2, type VerifyResponse, X402_CORS_HEADERS, X402_HEADER_NAMES, ZERO_ADDRESS, buildErc8004PaymentRequirements, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, canRefundEscrow, canReleaseEscrow, create402Response, createHonoMiddleware, createPaymentMiddleware, epochToDate, escrowTimeRemaining, extractPaymentFromHeaders, getCorsHeaders, getEscrowContractsByChainId, getEscrowSupportedChainIds, isAlive, isEscrowExpired, isEscrowSupportedOnChain, parsePaymentHeader };
|
|
2393
|
+
export { type AdvancedAuthorizationResult, AdvancedEscrowClient, type AdvancedEscrowClientOptions, type AdvancedEscrowContracts, type AdvancedEscrowTaskTier, type AdvancedPaymentInfo, type AdvancedTransactionResult, type AgentId, type AgentIdentity, type AgentRegistration, type AgentRegistrationFile, type AgentService, type AtomStats, BASE_MAINNET_CONTRACTS, BazaarClient, type BazaarClientOptions, type BazaarDiscoverOptions, type BazaarDiscoverResponse, type BazaarRegisterOptions, type BazaarResource, type CreateEscrowOptions, DEPOSIT_LIMIT_USDC, type DiscoveryAccepts, type DiscoveryCuration, type DiscoveryHealth, type DiscoveryHealthStatus, type DiscoveryListOptions, type DiscoveryPagination, type DiscoveryRegisterOptions, type DiscoveryResource, type DiscoveryResponse, type DiscoverySource, type DiscoveryStats, type DiscoveryTier, type Dispute, type DisputeOutcome, ERC8004_CONTRACTS, ERC8004_EXTENSION_ID, ESCROW_CONTRACTS, ESCROW_TIMEOUT_MS, Erc8004Client, type Erc8004ClientOptions, type Erc8004Network, EscrowClient, type EscrowClientOptions, type EscrowPayment, type EscrowStateResponse, type EscrowStatus, FacilitatorClient, type FacilitatorClientOptions, type FeedbackEntry, type FeedbackParams, type FeedbackRequest, type FeedbackResponse, HEALTH_FILTERS, type HonoMiddlewareOptions, type IdentityByOwnerResponse, type IdentityMetadataResponse, type IdentityTotalSupplyResponse, MAX_SEARCH_LEN, type MetadataEntryParam, OPERATOR_ABI, OPERATOR_ABI_CREATE3, PAYMENT_INFO_TYPEHASH, type PaymentAcceptance, type PaymentMiddlewareOptions, type PaymentPayloadV2, type PaymentRequirementResolver, type PaymentRequirements, type PaymentRequirementsOptions, type PaymentRequirementsV2, type ProofOfPayment, type RefundRequest, type RefundStatus, type RegisterAgentRequest, type RegisterAgentResponse, type ReputationResponse, type ReputationSummary, type RequestRefundOptions, type ResourceInfoV2, type SettleRequest, type SettleRequestV2, type SettleResponse, type SettleResponseWithProof, TIER_FILTERS, TIER_TIMINGS, USDC_DOMAIN_NAME, type VerifiedPaymentState, type VerifyRequest, type VerifyRequestV2, type VerifyResponse, X402_CORS_HEADERS, X402_HEADER_NAMES, ZERO_ADDRESS, buildErc8004PaymentRequirements, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, canRefundEscrow, canReleaseEscrow, create402Response, createHonoMiddleware, createPaymentMiddleware, epochToDate, escrowTimeRemaining, extractPaymentFromHeaders, getCorsHeaders, getEscrowContractsByChainId, getEscrowSupportedChainIds, isAlive, isEscrowExpired, isEscrowSupportedOnChain, parsePaymentHeader };
|
package/dist/backend/index.d.ts
CHANGED
|
@@ -1490,6 +1490,16 @@ interface FeedbackParams {
|
|
|
1490
1490
|
feedbackUri?: string;
|
|
1491
1491
|
/** Keccak256 hash of feedback content (for integrity) */
|
|
1492
1492
|
feedbackHash?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Quality score 0-100.
|
|
1495
|
+
*
|
|
1496
|
+
* Solana only, and effectively required there: the ATOM Engine ignores an
|
|
1497
|
+
* unscored feedback. It is written to the agent but contributes nothing to
|
|
1498
|
+
* reputation, and the program reports `had_impact=false`. This is not
|
|
1499
|
+
* retroactive — reputation stays at zero however much unscored feedback
|
|
1500
|
+
* accumulates.
|
|
1501
|
+
*/
|
|
1502
|
+
score?: number;
|
|
1493
1503
|
/** Proof of payment (required for authorized feedback) */
|
|
1494
1504
|
proof?: ProofOfPayment;
|
|
1495
1505
|
}
|
|
@@ -1522,10 +1532,48 @@ interface FeedbackResponse {
|
|
|
1522
1532
|
/**
|
|
1523
1533
|
* Reputation query response
|
|
1524
1534
|
*/
|
|
1535
|
+
/**
|
|
1536
|
+
* ATOM Engine reputation analytics (Solana only).
|
|
1537
|
+
*
|
|
1538
|
+
* Present only when the agent's `atom_stats` account has been initialized. The
|
|
1539
|
+
* facilitator does that during `registerAgent`; agents registered elsewhere may
|
|
1540
|
+
* never have it, in which case their feedback is never scored.
|
|
1541
|
+
*
|
|
1542
|
+
* The engine measures quality through EMA scores, so there are no
|
|
1543
|
+
* positive/negative tallies.
|
|
1544
|
+
*/
|
|
1545
|
+
interface AtomStats {
|
|
1546
|
+
/** Trust tier 0-4 */
|
|
1547
|
+
trustTier: number;
|
|
1548
|
+
/** Human-readable trust tier */
|
|
1549
|
+
trustTierName: string;
|
|
1550
|
+
/** Cached quality score */
|
|
1551
|
+
qualityScore: number;
|
|
1552
|
+
/** Cached loyalty score */
|
|
1553
|
+
loyaltyScore: number;
|
|
1554
|
+
/** Statistical confidence */
|
|
1555
|
+
confidence: number;
|
|
1556
|
+
/** Risk assessment (lower is better) */
|
|
1557
|
+
riskScore: number;
|
|
1558
|
+
/** Client diversity from HyperLogLog */
|
|
1559
|
+
diversityRatio: number;
|
|
1560
|
+
/** Lowest score ever recorded */
|
|
1561
|
+
minScore: number;
|
|
1562
|
+
/** Highest score ever recorded */
|
|
1563
|
+
maxScore: number;
|
|
1564
|
+
/** Most recent score recorded */
|
|
1565
|
+
lastScore: number;
|
|
1566
|
+
/** Total feedback counted by the engine */
|
|
1567
|
+
feedbackCount: number;
|
|
1568
|
+
/** Slot of the most recent feedback */
|
|
1569
|
+
lastFeedbackSlot: number;
|
|
1570
|
+
}
|
|
1525
1571
|
interface ReputationResponse {
|
|
1526
1572
|
agentId: AgentId;
|
|
1527
1573
|
summary: ReputationSummary;
|
|
1528
1574
|
feedback?: FeedbackEntry[];
|
|
1575
|
+
/** ATOM Engine analytics; absent when the agent has no initialized stats */
|
|
1576
|
+
atomStats?: AtomStats | null;
|
|
1529
1577
|
network: Erc8004Network;
|
|
1530
1578
|
}
|
|
1531
1579
|
/**
|
|
@@ -1594,19 +1642,32 @@ interface IdentityMetadataResponse {
|
|
|
1594
1642
|
agentId: AgentId;
|
|
1595
1643
|
/** Metadata key */
|
|
1596
1644
|
key: string;
|
|
1597
|
-
/**
|
|
1598
|
-
|
|
1645
|
+
/**
|
|
1646
|
+
* Raw hex-encoded value. The facilitator sends this as `value`; this field
|
|
1647
|
+
* used to be declared as `valueHex`, which no response ever carried, so it
|
|
1648
|
+
* was always undefined at runtime.
|
|
1649
|
+
*/
|
|
1650
|
+
value: string;
|
|
1599
1651
|
/** UTF-8 decoded value (if decodable) */
|
|
1600
1652
|
valueUtf8?: string;
|
|
1653
|
+
/** Whether the entry can still be changed */
|
|
1654
|
+
immutable?: boolean;
|
|
1601
1655
|
/** Network */
|
|
1602
1656
|
network: string;
|
|
1603
1657
|
}
|
|
1604
1658
|
/**
|
|
1605
1659
|
* Response from GET /identity/{network}/total-supply
|
|
1660
|
+
*
|
|
1661
|
+
* On Solana the counts come from the Metaplex Core collection, not the registry,
|
|
1662
|
+
* which keeps no counter of its own.
|
|
1606
1663
|
*/
|
|
1607
1664
|
interface IdentityTotalSupplyResponse {
|
|
1608
|
-
/**
|
|
1665
|
+
/** Registered agents, net of burns */
|
|
1609
1666
|
totalSupply: number;
|
|
1667
|
+
/** All-time mint count (Solana) */
|
|
1668
|
+
numMinted?: number;
|
|
1669
|
+
/** Metaplex Core collection backing the count (Solana) */
|
|
1670
|
+
collection?: string;
|
|
1610
1671
|
/** Network */
|
|
1611
1672
|
network: string;
|
|
1612
1673
|
}
|
|
@@ -1751,6 +1812,7 @@ declare class Erc8004Client {
|
|
|
1751
1812
|
*/
|
|
1752
1813
|
revokeFeedback(network: Erc8004Network, agentId: AgentId, feedbackIndex: number, options?: {
|
|
1753
1814
|
sealHash?: string;
|
|
1815
|
+
originalFeedback?: Omit<FeedbackParams, 'agentId' | 'proof'>;
|
|
1754
1816
|
}): Promise<FeedbackResponse>;
|
|
1755
1817
|
/**
|
|
1756
1818
|
* Get ERC-8004 contract addresses for a network
|
|
@@ -2328,4 +2390,4 @@ declare class AdvancedEscrowClient {
|
|
|
2328
2390
|
private sendViaAdapter;
|
|
2329
2391
|
}
|
|
2330
2392
|
|
|
2331
|
-
export { type AdvancedAuthorizationResult, AdvancedEscrowClient, type AdvancedEscrowClientOptions, type AdvancedEscrowContracts, type AdvancedEscrowTaskTier, type AdvancedPaymentInfo, type AdvancedTransactionResult, type AgentId, type AgentIdentity, type AgentRegistration, type AgentRegistrationFile, type AgentService, BASE_MAINNET_CONTRACTS, BazaarClient, type BazaarClientOptions, type BazaarDiscoverOptions, type BazaarDiscoverResponse, type BazaarRegisterOptions, type BazaarResource, type CreateEscrowOptions, DEPOSIT_LIMIT_USDC, type DiscoveryAccepts, type DiscoveryCuration, type DiscoveryHealth, type DiscoveryHealthStatus, type DiscoveryListOptions, type DiscoveryPagination, type DiscoveryRegisterOptions, type DiscoveryResource, type DiscoveryResponse, type DiscoverySource, type DiscoveryStats, type DiscoveryTier, type Dispute, type DisputeOutcome, ERC8004_CONTRACTS, ERC8004_EXTENSION_ID, ESCROW_CONTRACTS, ESCROW_TIMEOUT_MS, Erc8004Client, type Erc8004ClientOptions, type Erc8004Network, EscrowClient, type EscrowClientOptions, type EscrowPayment, type EscrowStateResponse, type EscrowStatus, FacilitatorClient, type FacilitatorClientOptions, type FeedbackEntry, type FeedbackParams, type FeedbackRequest, type FeedbackResponse, HEALTH_FILTERS, type HonoMiddlewareOptions, type IdentityByOwnerResponse, type IdentityMetadataResponse, type IdentityTotalSupplyResponse, MAX_SEARCH_LEN, type MetadataEntryParam, OPERATOR_ABI, OPERATOR_ABI_CREATE3, PAYMENT_INFO_TYPEHASH, type PaymentAcceptance, type PaymentMiddlewareOptions, type PaymentPayloadV2, type PaymentRequirementResolver, type PaymentRequirements, type PaymentRequirementsOptions, type PaymentRequirementsV2, type ProofOfPayment, type RefundRequest, type RefundStatus, type RegisterAgentRequest, type RegisterAgentResponse, type ReputationResponse, type ReputationSummary, type RequestRefundOptions, type ResourceInfoV2, type SettleRequest, type SettleRequestV2, type SettleResponse, type SettleResponseWithProof, TIER_FILTERS, TIER_TIMINGS, USDC_DOMAIN_NAME, type VerifiedPaymentState, type VerifyRequest, type VerifyRequestV2, type VerifyResponse, X402_CORS_HEADERS, X402_HEADER_NAMES, ZERO_ADDRESS, buildErc8004PaymentRequirements, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, canRefundEscrow, canReleaseEscrow, create402Response, createHonoMiddleware, createPaymentMiddleware, epochToDate, escrowTimeRemaining, extractPaymentFromHeaders, getCorsHeaders, getEscrowContractsByChainId, getEscrowSupportedChainIds, isAlive, isEscrowExpired, isEscrowSupportedOnChain, parsePaymentHeader };
|
|
2393
|
+
export { type AdvancedAuthorizationResult, AdvancedEscrowClient, type AdvancedEscrowClientOptions, type AdvancedEscrowContracts, type AdvancedEscrowTaskTier, type AdvancedPaymentInfo, type AdvancedTransactionResult, type AgentId, type AgentIdentity, type AgentRegistration, type AgentRegistrationFile, type AgentService, type AtomStats, BASE_MAINNET_CONTRACTS, BazaarClient, type BazaarClientOptions, type BazaarDiscoverOptions, type BazaarDiscoverResponse, type BazaarRegisterOptions, type BazaarResource, type CreateEscrowOptions, DEPOSIT_LIMIT_USDC, type DiscoveryAccepts, type DiscoveryCuration, type DiscoveryHealth, type DiscoveryHealthStatus, type DiscoveryListOptions, type DiscoveryPagination, type DiscoveryRegisterOptions, type DiscoveryResource, type DiscoveryResponse, type DiscoverySource, type DiscoveryStats, type DiscoveryTier, type Dispute, type DisputeOutcome, ERC8004_CONTRACTS, ERC8004_EXTENSION_ID, ESCROW_CONTRACTS, ESCROW_TIMEOUT_MS, Erc8004Client, type Erc8004ClientOptions, type Erc8004Network, EscrowClient, type EscrowClientOptions, type EscrowPayment, type EscrowStateResponse, type EscrowStatus, FacilitatorClient, type FacilitatorClientOptions, type FeedbackEntry, type FeedbackParams, type FeedbackRequest, type FeedbackResponse, HEALTH_FILTERS, type HonoMiddlewareOptions, type IdentityByOwnerResponse, type IdentityMetadataResponse, type IdentityTotalSupplyResponse, MAX_SEARCH_LEN, type MetadataEntryParam, OPERATOR_ABI, OPERATOR_ABI_CREATE3, PAYMENT_INFO_TYPEHASH, type PaymentAcceptance, type PaymentMiddlewareOptions, type PaymentPayloadV2, type PaymentRequirementResolver, type PaymentRequirements, type PaymentRequirementsOptions, type PaymentRequirementsV2, type ProofOfPayment, type RefundRequest, type RefundStatus, type RegisterAgentRequest, type RegisterAgentResponse, type ReputationResponse, type ReputationSummary, type RequestRefundOptions, type ResourceInfoV2, type SettleRequest, type SettleRequestV2, type SettleResponse, type SettleResponseWithProof, TIER_FILTERS, TIER_TIMINGS, USDC_DOMAIN_NAME, type VerifiedPaymentState, type VerifyRequest, type VerifyRequestV2, type VerifyResponse, X402_CORS_HEADERS, X402_HEADER_NAMES, ZERO_ADDRESS, buildErc8004PaymentRequirements, buildPaymentRequirements, buildSettleRequest, buildSettleRequestV2, buildVerifyRequest, buildVerifyRequestV2, canRefundEscrow, canReleaseEscrow, create402Response, createHonoMiddleware, createPaymentMiddleware, epochToDate, escrowTimeRemaining, extractPaymentFromHeaders, getCorsHeaders, getEscrowContractsByChainId, getEscrowSupportedChainIds, isAlive, isEscrowExpired, isEscrowSupportedOnChain, parsePaymentHeader };
|
package/dist/backend/index.js
CHANGED
|
@@ -2776,6 +2776,8 @@ var Erc8004Client = class {
|
|
|
2776
2776
|
};
|
|
2777
2777
|
if (options?.sealHash) {
|
|
2778
2778
|
payload.sealHash = options.sealHash;
|
|
2779
|
+
} else if (options?.originalFeedback) {
|
|
2780
|
+
payload.originalFeedback = options.originalFeedback;
|
|
2779
2781
|
}
|
|
2780
2782
|
try {
|
|
2781
2783
|
const response = await fetch(url, {
|