uvd-x402-sdk 2.111.0 → 2.112.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/README.md CHANGED
@@ -10,6 +10,8 @@ Users sign a message or transaction, and the Ultravioleta facilitator handles on
10
10
 
11
11
  ## Features
12
12
 
13
+ **NEAR ERC-8004 (v2.112.0):** separate identity NFTs and reputation registries, payment-backed Arras feedback, config-bound wallet transactions and strict offline outcome parsing on mainnet and testnet. [Execution Market integration guide](docs/near-erc8004.md).
14
+
13
15
  **Arras NEAR escrow (v2.110.0):** offline local-key NEP-366 authorization, canonical Rust payment IDs and pull lifecycle helpers through `uvd-x402-sdk/near`. [Guide and agent example](docs/near-escrow.md). As of 2026-11-03 the production facilitator relays NEAR escrow only on testnet. Since 2.110.0 the registry allows mainnet escrow signing only for `v1.arras-escrow.near`; testnet keeps `arras-v1b-1101.testnet`.
14
16
 
15
17
  - **31 Networks**: EVM (19 including HashKey Chain, Arc, Scroll, SKALE Base, Robinhood Chain), Solana, Fogo, Stellar, NEAR, Algorand, Sui, XRP Ledger, Hedera (mainnet + testnet)
@@ -480,6 +480,584 @@ declare function safeLink(uri: string): string | null;
480
480
  /** Plain text only; remove Unicode control/format characters (including bidi and zero width). Not HTML escaping. */
481
481
  declare function displayText(s: string): string;
482
482
 
483
+ type NearErc8004Network = NearEscrowNetwork;
484
+ type NearErc8004Contract = 'identity' | 'reputation' | 'verifier';
485
+ declare const NEAR_ERC8004_CONTRACTS: Readonly<{
486
+ 'near:mainnet': Readonly<{
487
+ identity: "identity-registry.erc-8004.near";
488
+ reputation: "reputation-registry.erc-8004.near";
489
+ verifier: "erc8004-verifier.arras-escrow.near";
490
+ escrow: "v1.arras-escrow.near";
491
+ agentRegistry: "near:mainnet:identity-registry.erc-8004.near";
492
+ }>;
493
+ 'near:testnet': Readonly<{
494
+ identity: "identity-registry.erc-8004.testnet";
495
+ reputation: "reputation-registry.erc-8004.testnet";
496
+ verifier: "erc8004-verifier.arras-dev.testnet";
497
+ escrow: "arras-v1b-1101.testnet";
498
+ agentRegistry: "near:testnet:identity-registry.erc-8004.testnet";
499
+ }>;
500
+ }>;
501
+ /** Five percent above the recorded worst-case storage quotes; never a substitute for get_config. */
502
+ declare const NEAR_ERC8004_DEPOSIT_CAPS: Readonly<{
503
+ register: string;
504
+ feedback: string;
505
+ feedbackProof: string;
506
+ storageByte: string;
507
+ uri: string;
508
+ metadata: string;
509
+ approval: string;
510
+ response: string;
511
+ }>;
512
+ interface NearErc8004IdentityConfig {
513
+ contract: 'erc8004-identity';
514
+ erc8004_version: '2.0.0';
515
+ events_standard: 'erc8004';
516
+ events_version: '1.0.0';
517
+ total_agents: string;
518
+ register_deposit: string;
519
+ token_reserve_bytes: number;
520
+ storage_byte_cost: string;
521
+ min_gas_nft_transfer_call: string;
522
+ limits: {
523
+ max_agent_uri_len: number;
524
+ max_metadata_key_len: number;
525
+ max_metadata_value_len: number;
526
+ max_register_metadata: number;
527
+ max_approvals: number;
528
+ max_memo_len: number;
529
+ max_deadline_delay_ns: string;
530
+ max_list_limit: number;
531
+ };
532
+ }
533
+ interface NearErc8004ReputationConfig {
534
+ contract: 'erc8004-reputation';
535
+ erc8004_version: '2.0.0';
536
+ events_standard: 'erc8004';
537
+ events_version: '1.0.0';
538
+ identity_registry: string;
539
+ feedback_deposit: string;
540
+ min_gas_give_feedback: string;
541
+ feedback_proof_deposit: string;
542
+ min_gas_give_feedback_with_proof: string;
543
+ max_endpoint_len: number;
544
+ max_feedback_uri_len: number;
545
+ max_response_uri_len: number;
546
+ max_tag_len: number;
547
+ max_list_limit: number;
548
+ }
549
+ interface NearErc8004VerifierConfig {
550
+ contract: 'erc8004-arras-verifier';
551
+ escrow: string;
552
+ min_gas_verify: string;
553
+ gas_get_payment: string;
554
+ gas_on_payment: string;
555
+ }
556
+ interface NearErc8004Config {
557
+ network: NearErc8004Network;
558
+ identity: NearErc8004IdentityConfig;
559
+ reputation: NearErc8004ReputationConfig;
560
+ verifier: NearErc8004VerifierConfig;
561
+ }
562
+ interface NearErc8004Metadata {
563
+ metadata_key: string;
564
+ metadata_value: string;
565
+ }
566
+ interface NearErc8004FeedbackArgs {
567
+ agent_id: string;
568
+ value: string;
569
+ value_decimals: number;
570
+ tag1?: string | null;
571
+ tag2?: string | null;
572
+ endpoint?: string | null;
573
+ feedback_uri?: string | null;
574
+ feedback_hash?: string | null;
575
+ }
576
+ interface NearErc8004TransferArgs {
577
+ receiver_id: string;
578
+ token_id: string;
579
+ approval_id?: number | null;
580
+ memo?: string | null;
581
+ }
582
+ interface NearErc8004MethodArgs {
583
+ register: {
584
+ agent_uri?: string | null;
585
+ metadata?: NearErc8004Metadata[] | null;
586
+ };
587
+ set_agent_uri: {
588
+ agent_id: string;
589
+ new_uri: string;
590
+ };
591
+ set_metadata: {
592
+ agent_id: string;
593
+ metadata_key: string;
594
+ metadata_value: string;
595
+ };
596
+ set_agent_wallet: {
597
+ agent_id: string;
598
+ new_wallet: string;
599
+ deadline: string;
600
+ };
601
+ accept_agent_wallet: {
602
+ agent_id: string;
603
+ };
604
+ unset_agent_wallet: {
605
+ agent_id: string;
606
+ };
607
+ nft_transfer: NearErc8004TransferArgs;
608
+ nft_transfer_call: NearErc8004TransferArgs & {
609
+ msg: string;
610
+ };
611
+ nft_approve: {
612
+ token_id: string;
613
+ account_id: string;
614
+ msg?: string | null;
615
+ };
616
+ nft_revoke: {
617
+ token_id: string;
618
+ account_id: string;
619
+ };
620
+ nft_revoke_all: {
621
+ token_id: string;
622
+ };
623
+ give_feedback: NearErc8004FeedbackArgs;
624
+ give_feedback_with_proof: NearErc8004FeedbackArgs & {
625
+ verifier: string;
626
+ proof: string;
627
+ };
628
+ revoke_feedback: {
629
+ agent_id: string;
630
+ feedback_index: string;
631
+ };
632
+ append_response: {
633
+ agent_id: string;
634
+ client_address: string;
635
+ feedback_index: string;
636
+ response_uri: string;
637
+ response_hash?: string | null;
638
+ };
639
+ verify_feedback_proof: {
640
+ client: string;
641
+ proof: string;
642
+ };
643
+ }
644
+ type NearErc8004Method = keyof NearErc8004MethodArgs;
645
+ interface NearErc8004BuildOptions {
646
+ network: NearErc8004Network;
647
+ signerId: string;
648
+ config: NearErc8004Config;
649
+ deposit?: string;
650
+ gas?: string;
651
+ /** Clock in nanoseconds. Defaults to Date.now() * 1e6; rechecked when signing. */
652
+ nowNs?: string;
653
+ }
654
+ interface NearErc8004Transaction {
655
+ signerId: string;
656
+ receiverId: string;
657
+ actions: [{
658
+ type: 'FunctionCall';
659
+ params: {
660
+ methodName: NearErc8004Method;
661
+ args: Record<string, unknown>;
662
+ gas: string;
663
+ deposit: string;
664
+ };
665
+ }];
666
+ }
667
+ /** Explicit URI encoding helper; builders themselves preserve valid URI bytes and reject invalid input. */
668
+ declare function normalizeNearErc8004Uri(uri: string): string;
669
+ declare function buildNearErc8004Transaction<M extends NearErc8004Method>(method: M, options: NearErc8004BuildOptions, input: NearErc8004MethodArgs[M]): NearErc8004Transaction;
670
+ declare const buildNearErc8004Register: (options: NearErc8004BuildOptions & {
671
+ agent_uri?: string | null;
672
+ metadata?: NearErc8004Metadata[] | null;
673
+ }) => NearErc8004Transaction;
674
+ declare const buildNearErc8004SetAgentUri: (options: NearErc8004BuildOptions & {
675
+ agent_id: string;
676
+ new_uri: string;
677
+ }) => NearErc8004Transaction;
678
+ declare const buildNearErc8004SetMetadata: (options: NearErc8004BuildOptions & {
679
+ agent_id: string;
680
+ metadata_key: string;
681
+ metadata_value: string;
682
+ }) => NearErc8004Transaction;
683
+ declare const buildNearErc8004SetAgentWallet: (options: NearErc8004BuildOptions & {
684
+ agent_id: string;
685
+ new_wallet: string;
686
+ deadline: string;
687
+ }) => NearErc8004Transaction;
688
+ declare const buildNearErc8004AcceptAgentWallet: (options: NearErc8004BuildOptions & {
689
+ agent_id: string;
690
+ }) => NearErc8004Transaction;
691
+ declare const buildNearErc8004UnsetAgentWallet: (options: NearErc8004BuildOptions & {
692
+ agent_id: string;
693
+ }) => NearErc8004Transaction;
694
+ declare const buildNearErc8004NftTransfer: (options: NearErc8004BuildOptions & NearErc8004TransferArgs) => NearErc8004Transaction;
695
+ declare const buildNearErc8004NftTransferCall: (options: NearErc8004BuildOptions & NearErc8004TransferArgs & {
696
+ msg: string;
697
+ }) => NearErc8004Transaction;
698
+ declare const buildNearErc8004NftApprove: (options: NearErc8004BuildOptions & {
699
+ token_id: string;
700
+ account_id: string;
701
+ msg?: string | null;
702
+ }) => NearErc8004Transaction;
703
+ declare const buildNearErc8004NftRevoke: (options: NearErc8004BuildOptions & {
704
+ token_id: string;
705
+ account_id: string;
706
+ }) => NearErc8004Transaction;
707
+ declare const buildNearErc8004NftRevokeAll: (options: NearErc8004BuildOptions & {
708
+ token_id: string;
709
+ }) => NearErc8004Transaction;
710
+ declare const buildNearErc8004GiveFeedback: (options: NearErc8004BuildOptions & NearErc8004FeedbackArgs) => NearErc8004Transaction;
711
+ declare const buildNearErc8004GiveFeedbackWithProof: (options: NearErc8004BuildOptions & NearErc8004FeedbackArgs & {
712
+ verifier: string;
713
+ proof: string;
714
+ }) => NearErc8004Transaction;
715
+ declare const buildNearErc8004RevokeFeedback: (options: NearErc8004BuildOptions & {
716
+ agent_id: string;
717
+ feedback_index: string;
718
+ }) => NearErc8004Transaction;
719
+ declare const buildNearErc8004AppendResponse: (options: NearErc8004BuildOptions & {
720
+ agent_id: string;
721
+ client_address: string;
722
+ feedback_index: string;
723
+ response_uri: string;
724
+ response_hash?: string | null;
725
+ }) => NearErc8004Transaction;
726
+ /** Async cross-contract call: costs gas, attaches zero deposit; it is not a query view. */
727
+ declare const buildNearErc8004VerifyFeedbackProof: (options: NearErc8004BuildOptions & {
728
+ client: string;
729
+ proof: string;
730
+ }) => NearErc8004Transaction;
731
+ /** FullAccess key, next nonce and recent block hash are caller responsibilities. Does not broadcast. */
732
+ declare function signNearErc8004Transaction(descriptor: NearErc8004Transaction, signer: NearLocalSigner, options: {
733
+ network: NearErc8004Network;
734
+ config: NearErc8004Config;
735
+ nonce: NearUnsigned;
736
+ blockHash: string;
737
+ nowNs?: string;
738
+ }): Promise<string>;
739
+ interface NearErc8004Feedback {
740
+ value: string;
741
+ value_decimals: number;
742
+ tag1: string;
743
+ tag2: string;
744
+ is_revoked: boolean;
745
+ }
746
+ interface NearErc8004Proof {
747
+ verifier: string;
748
+ proof: string;
749
+ counterparty: string;
750
+ role: string;
751
+ context: string;
752
+ weight: string;
753
+ }
754
+ interface NearErc8004FeedbackRef {
755
+ agent_id: string;
756
+ client_address: string;
757
+ feedback_index: string;
758
+ }
759
+ interface NearErc8004Summary {
760
+ count: string;
761
+ summary_value: string;
762
+ summary_value_decimals: number;
763
+ }
764
+ interface NearErc8004VerifiedSummary extends NearErc8004Summary {
765
+ weight_sum: string;
766
+ }
767
+ interface NearErc8004TokenMetadata {
768
+ title: string | null;
769
+ description: string | null;
770
+ media: string | null;
771
+ media_hash: string | null;
772
+ copies: number | null;
773
+ issued_at: string | null;
774
+ expires_at: string | null;
775
+ starts_at: string | null;
776
+ updated_at: string | null;
777
+ extra: string | null;
778
+ reference: string | null;
779
+ reference_hash: string | null;
780
+ }
781
+ interface NearErc8004Token {
782
+ token_id: string;
783
+ owner_id: string;
784
+ metadata: NearErc8004TokenMetadata;
785
+ approved_account_ids: Record<string, number>;
786
+ }
787
+ interface NearErc8004NftMetadata {
788
+ spec: string;
789
+ name: string;
790
+ symbol: string;
791
+ icon: string | null;
792
+ base_uri: string | null;
793
+ reference: string | null;
794
+ reference_hash: string | null;
795
+ }
796
+ interface NearErc8004AllFeedback {
797
+ clients: string[];
798
+ feedback_indexes: string[];
799
+ values: string[];
800
+ value_decimals: number[];
801
+ tag1s: string[];
802
+ tag2s: string[];
803
+ revoked_statuses: boolean[];
804
+ }
805
+ interface NearErc8004Page {
806
+ from_index?: number;
807
+ limit?: number;
808
+ }
809
+ interface NearErc8004NftPage {
810
+ from_index?: string;
811
+ limit?: number;
812
+ }
813
+ interface NearErc8004Filters {
814
+ client_addresses?: string[];
815
+ tag1?: string;
816
+ tag2?: string;
817
+ }
818
+ interface NearErc8004ProofKey {
819
+ verifier: string;
820
+ proof: string;
821
+ client_address: string;
822
+ }
823
+ interface NearErc8004ViewArgs {
824
+ identity_config: Record<string, never>;
825
+ reputation_config: Record<string, never>;
826
+ verifier_config: Record<string, never>;
827
+ identity_version: Record<string, never>;
828
+ reputation_version: Record<string, never>;
829
+ nft_token: {
830
+ token_id: string;
831
+ };
832
+ nft_tokens: NearErc8004NftPage;
833
+ nft_supply_for_owner: {
834
+ account_id: string;
835
+ };
836
+ nft_tokens_for_owner: {
837
+ account_id: string;
838
+ } & NearErc8004NftPage;
839
+ nft_total_supply: Record<string, never>;
840
+ nft_metadata: Record<string, never>;
841
+ nft_is_approved: {
842
+ token_id: string;
843
+ approved_account_id: string;
844
+ approval_id?: number;
845
+ };
846
+ token_uri: {
847
+ agent_id: string;
848
+ };
849
+ get_metadata: {
850
+ agent_id: string;
851
+ metadata_key: string;
852
+ };
853
+ get_agent_wallet: {
854
+ agent_id: string;
855
+ };
856
+ get_pending_agent_wallet: {
857
+ agent_id: string;
858
+ };
859
+ is_authorized_or_owner: {
860
+ spender: string;
861
+ agent_id: string;
862
+ };
863
+ check_agent: {
864
+ agent_id: string;
865
+ account_id: string;
866
+ };
867
+ get_summary: {
868
+ agent_id: string;
869
+ client_addresses: string[];
870
+ tag1?: string;
871
+ tag2?: string;
872
+ };
873
+ read_feedback: NearErc8004FeedbackRef;
874
+ read_feedback_proof: NearErc8004FeedbackRef;
875
+ read_all_feedback: {
876
+ agent_id: string;
877
+ include_revoked?: boolean;
878
+ } & NearErc8004Filters;
879
+ get_response_count: {
880
+ agent_id: string;
881
+ client_address?: string;
882
+ feedback_index?: string;
883
+ responders?: string[];
884
+ };
885
+ get_clients: {
886
+ agent_id: string;
887
+ } & NearErc8004Page;
888
+ get_last_index: {
889
+ agent_id: string;
890
+ client_address: string;
891
+ };
892
+ get_identity_registry: Record<string, never>;
893
+ get_proof_feedback: NearErc8004ProofKey;
894
+ is_proof_pending: NearErc8004ProofKey;
895
+ list_verified_feedback: {
896
+ agent_id: string;
897
+ verifier: string;
898
+ } & NearErc8004Page;
899
+ get_verified_summary: {
900
+ agent_id: string;
901
+ verifier: string;
902
+ context?: string;
903
+ } & NearErc8004Filters;
904
+ }
905
+ interface NearErc8004ViewResults {
906
+ identity_config: NearErc8004IdentityConfig;
907
+ reputation_config: NearErc8004ReputationConfig;
908
+ verifier_config: NearErc8004VerifierConfig;
909
+ identity_version: '2.0.0';
910
+ reputation_version: '2.0.0';
911
+ nft_token: NearErc8004Token | null;
912
+ nft_tokens: NearErc8004Token[];
913
+ nft_supply_for_owner: string;
914
+ nft_tokens_for_owner: NearErc8004Token[];
915
+ nft_total_supply: string;
916
+ nft_metadata: NearErc8004NftMetadata;
917
+ nft_is_approved: boolean;
918
+ token_uri: string | null;
919
+ get_metadata: string | null;
920
+ get_agent_wallet: string | null;
921
+ get_pending_agent_wallet: {
922
+ wallet: string;
923
+ deadline: string;
924
+ } | null;
925
+ is_authorized_or_owner: boolean;
926
+ check_agent: {
927
+ owner_id: string;
928
+ agent_wallet: string | null;
929
+ authorized: boolean;
930
+ } | null;
931
+ get_summary: NearErc8004Summary;
932
+ read_feedback: NearErc8004Feedback | null;
933
+ read_feedback_proof: NearErc8004Proof | null;
934
+ read_all_feedback: NearErc8004AllFeedback;
935
+ get_response_count: string;
936
+ get_clients: string[];
937
+ get_last_index: string;
938
+ get_identity_registry: string;
939
+ get_proof_feedback: NearErc8004FeedbackRef | null;
940
+ is_proof_pending: boolean;
941
+ list_verified_feedback: NearErc8004FeedbackRef[];
942
+ get_verified_summary: NearErc8004VerifiedSummary;
943
+ }
944
+ type ViewMethod = keyof NearErc8004ViewArgs;
945
+ /** Return the JSON-RPC result, not the outer envelope. Honor signal when possible. */
946
+ type NearErc8004Rpc = (method: string, params: Record<string, unknown>, signal?: AbortSignal) => Promise<unknown>;
947
+ interface NearErc8004ClientOptions {
948
+ network: NearErc8004Network;
949
+ rpc?: NearErc8004Rpc;
950
+ timeoutMs?: number;
951
+ }
952
+ declare class NearErc8004Client {
953
+ readonly network: NearErc8004Network;
954
+ private readonly rpc;
955
+ private readonly timeoutMs;
956
+ constructor(options: NearErc8004ClientOptions);
957
+ view<M extends ViewMethod>(method: M, input: NearErc8004ViewArgs[M]): Promise<NearErc8004ViewResults[M]>;
958
+ getConfig(): Promise<NearErc8004Config>;
959
+ getIdentityConfig(): Promise<NearErc8004IdentityConfig>;
960
+ getReputationConfig(): Promise<NearErc8004ReputationConfig>;
961
+ getVerifierConfig(): Promise<NearErc8004VerifierConfig>;
962
+ getVersion(contract?: 'identity' | 'reputation'): Promise<"2.0.0">;
963
+ getAgent(agent_id: string): Promise<NearErc8004Token | null>;
964
+ getAgentUri(agent_id: string): Promise<string | null>;
965
+ getMetadata(agent_id: string, metadata_key: string): Promise<string | null>;
966
+ getAgentWallet(agent_id: string): Promise<string | null>;
967
+ getPendingAgentWallet(agent_id: string): Promise<{
968
+ wallet: string;
969
+ deadline: string;
970
+ } | null>;
971
+ readFeedback(args: NearErc8004FeedbackRef): Promise<NearErc8004Feedback | null>;
972
+ readFeedbackProof(args: NearErc8004FeedbackRef): Promise<NearErc8004Proof | null>;
973
+ getSummary(args: NearErc8004ViewArgs['get_summary']): Promise<NearErc8004Summary>;
974
+ getVerifiedSummary(args: NearErc8004ViewArgs['get_verified_summary']): Promise<NearErc8004VerifiedSummary>;
975
+ listVerifiedFeedback(args: NearErc8004ViewArgs['list_verified_feedback']): Promise<NearErc8004FeedbackRef[]>;
976
+ }
977
+ declare enum NearErc8004RejectionCode {
978
+ IdentityViewFailed = "E20_VISTA_DE_IDENTIDAD_FALLO",
979
+ InvalidIdentityResponse = "E21_RESPUESTA_DE_IDENTIDAD_INVALIDA",
980
+ AgentNotFound = "E22_AGENTE_INEXISTENTE",
981
+ SelfFeedback = "E23_AUTO_CALIFICACION",
982
+ ProofAlreadyUsed = "E42_PRUEBA_YA_USADA",
983
+ Replaced = "E44_REEMPLAZADO",
984
+ VerifierFailed = "E45_VERIFICADOR_FALLO",
985
+ InvalidVerifierResponse = "E46_RESPUESTA_DEL_VERIFICADOR_INVALIDA",
986
+ CounterpartyMismatch = "E47_NO_ES_EL_AGENTE",
987
+ AgentWalletFeedback = "E48_AGENT_WALLET_CALIFICA"
988
+ }
989
+ interface NearErc8004EventData {
990
+ registered: {
991
+ agent_id: string;
992
+ agent_uri: string;
993
+ owner: string;
994
+ };
995
+ metadata_set: {
996
+ agent_id: string;
997
+ metadata_key: string;
998
+ metadata_value: string;
999
+ };
1000
+ uri_updated: {
1001
+ agent_id: string;
1002
+ new_uri: string;
1003
+ updated_by: string;
1004
+ };
1005
+ agent_wallet_pending: {
1006
+ agent_id: string;
1007
+ wallet: string | null;
1008
+ deadline: string;
1009
+ };
1010
+ nft_mint: {
1011
+ owner_id: string;
1012
+ token_ids: string[];
1013
+ memo?: string | null;
1014
+ };
1015
+ nft_transfer: {
1016
+ old_owner_id: string;
1017
+ new_owner_id: string;
1018
+ token_ids: string[];
1019
+ authorized_id?: string | null;
1020
+ memo?: string | null;
1021
+ };
1022
+ new_feedback: NearErc8004FeedbackRef & Omit<NearErc8004Feedback, 'is_revoked'> & {
1023
+ endpoint: string;
1024
+ feedback_uri: string;
1025
+ feedback_hash: string | null;
1026
+ proof: NearErc8004Proof | null;
1027
+ };
1028
+ feedback_revoked: NearErc8004FeedbackRef;
1029
+ response_appended: NearErc8004FeedbackRef & {
1030
+ responder: string;
1031
+ response_uri: string;
1032
+ response_hash: string | null;
1033
+ };
1034
+ }
1035
+ type NearErc8004Event = {
1036
+ [K in keyof NearErc8004EventData]: {
1037
+ standard: K extends 'nft_mint' | 'nft_transfer' ? 'nep171' : 'erc8004';
1038
+ version: '1.0.0';
1039
+ event: K;
1040
+ data: [NearErc8004EventData[K]];
1041
+ };
1042
+ }[keyof NearErc8004EventData];
1043
+ /** Receipt-only indexer API. Supply receipts from a finalized successful transaction. */
1044
+ declare function parseNearErc8004ReceiptEvents(receipts: unknown, network: NearErc8004Network): NearErc8004Event[];
1045
+ /** Preferred transaction API: also requires final SuccessValue, never a pending receipt id. */
1046
+ declare function parseNearErc8004Events(outcome: unknown, network: NearErc8004Network): NearErc8004Event[];
1047
+ declare function parseNearErc8004RegisterOutcome(outcome: unknown, network: NearErc8004Network): string;
1048
+ type NearErc8004FeedbackOutcome = {
1049
+ status: 'accepted';
1050
+ feedbackIndex: string;
1051
+ } | {
1052
+ status: 'rejected';
1053
+ code: NearErc8004RejectionCode;
1054
+ } | {
1055
+ status: 'failed';
1056
+ code: string | null;
1057
+ message: string;
1058
+ };
1059
+ declare function parseNearErc8004GiveFeedbackOutcome(outcome: unknown, network: NearErc8004Network): NearErc8004FeedbackOutcome;
1060
+
483
1061
  /**
484
1062
  * uvd-x402-sdk - NEAR Provider
485
1063
  *
@@ -618,4 +1196,4 @@ declare class NEARProvider implements WalletAdapter {
618
1196
  private base58Encode;
619
1197
  }
620
1198
 
621
- export { type AgentView, type ArrasAuthorizedData, type ArrasCapsSetData, type ArrasCompactedData, type ArrasEvent, type ArrasEventData, type ArrasOperatorData, type ArrasPauseData, type ArrasPaymentAmountData, type ArrasReleasedData, type ArrasStorageOptions, type ArrasWithdrawnData, type AuthorizeFromBudget, type EscrowAuthorizationOptions, type EscrowMsgParams, FEEDBACK_DEPOSIT, type FeedbackSummary, type FeedbackView, GIVE_FEEDBACK_GAS, type GiveFeedbackArgs, type GiveFeedbackOutcome, MIN_GIVE_FEEDBACK_GAS, NEARProvider, NEAR_ARRAS_STORAGE_DEPOSIT, NEAR_ESCROW_CONTRACTS, NEAR_ESCROW_MAX_GAS, NEAR_ESCROW_MIN_GAS, NEAR_ESCROW_TOKENS, NEAR_REGISTRY_CONTRACTS, NEAR_REGISTRY_ESCROWS, NEAR_USDC_STORAGE_DEPOSIT, type NearEscrowDelegate, type NearEscrowDelegateOptions, type NearEscrowFunctionCall, type NearEscrowLifecycleMethod, type NearEscrowNetwork, type NearEscrowPayment, type NearExactDelegateOptions, type NearExactPayment, type NearLocalSigner, type NearStorageOptions, type NearStorageTransaction, type NearUnsigned, type Nep413Message, type Nep413SignedMessage, type PaymentIdParams, REGISTER_DEPOSIT, REGISTRY_GAS, type RegistryBuildOptions, type RegistryConfigView, RegistryErrorCode, type RegistryEvent, type RegistryEventData, type RegistryIdentityArgs, type RegistryMethod, type RegistryPage, type RegistryPaymentArgs, type RegistryRpc, type RegistryTarget, type RegistryTransaction, RegistryValidationError, type RegistryViewOptions, type RoleSummaryView, type SignNep413Options, type SummaryView, type WalletSelectorOptions, buildArrasStorageDeposit, buildEscrowAuthorizationDelegate, buildEscrowMsg, buildGiveFeedback, buildRegistryRegister, buildRegistryUpdate, buildRevokeFeedback, buildUsdcStorageDeposit, computePaymentId, createNearLocalSigner, NEARProvider as default, displayText, getAgent, getConfig, getFeedback, getFeedbackForPayment, getSummary, getSummaryByOperator, isFeedbackPending, listAgents, listFeedback, nep413Preimage, parseArrasEvents, parseGiveFeedbackOutcome, parseRegistryEvents, parseRegistryReceiptEvents, paymentIdPreimage, reclaim, refund, release, safeLink, signEscrowAuthorization, signEscrowLifecycle, signExactNearDelegate, signNep413, signRegistryTransaction, summarizeFeedback, validateEscrowAuthorizationDelegate, withdraw, withdrawFor };
1199
+ export { type AgentView, type ArrasAuthorizedData, type ArrasCapsSetData, type ArrasCompactedData, type ArrasEvent, type ArrasEventData, type ArrasOperatorData, type ArrasPauseData, type ArrasPaymentAmountData, type ArrasReleasedData, type ArrasStorageOptions, type ArrasWithdrawnData, type AuthorizeFromBudget, type EscrowAuthorizationOptions, type EscrowMsgParams, FEEDBACK_DEPOSIT, type FeedbackSummary, type FeedbackView, GIVE_FEEDBACK_GAS, type GiveFeedbackArgs, type GiveFeedbackOutcome, MIN_GIVE_FEEDBACK_GAS, NEARProvider, NEAR_ARRAS_STORAGE_DEPOSIT, NEAR_ERC8004_CONTRACTS, NEAR_ERC8004_DEPOSIT_CAPS, NEAR_ESCROW_CONTRACTS, NEAR_ESCROW_MAX_GAS, NEAR_ESCROW_MIN_GAS, NEAR_ESCROW_TOKENS, NEAR_REGISTRY_CONTRACTS, NEAR_REGISTRY_ESCROWS, NEAR_USDC_STORAGE_DEPOSIT, type NearErc8004AllFeedback, type NearErc8004BuildOptions, NearErc8004Client, type NearErc8004ClientOptions, type NearErc8004Config, type NearErc8004Contract, type NearErc8004Event, type NearErc8004EventData, type NearErc8004Feedback, type NearErc8004FeedbackArgs, type NearErc8004FeedbackOutcome, type NearErc8004FeedbackRef, type NearErc8004Filters, type NearErc8004IdentityConfig, type NearErc8004Metadata, type NearErc8004Method, type NearErc8004MethodArgs, type NearErc8004Network, type NearErc8004NftMetadata, type NearErc8004NftPage, type NearErc8004Page, type NearErc8004Proof, type NearErc8004ProofKey, NearErc8004RejectionCode, type NearErc8004ReputationConfig, type NearErc8004Rpc, type NearErc8004Summary, type NearErc8004Token, type NearErc8004TokenMetadata, type NearErc8004Transaction, type NearErc8004TransferArgs, type NearErc8004VerifiedSummary, type NearErc8004VerifierConfig, type NearErc8004ViewArgs, type NearErc8004ViewResults, type NearEscrowDelegate, type NearEscrowDelegateOptions, type NearEscrowFunctionCall, type NearEscrowLifecycleMethod, type NearEscrowNetwork, type NearEscrowPayment, type NearExactDelegateOptions, type NearExactPayment, type NearLocalSigner, type NearStorageOptions, type NearStorageTransaction, type NearUnsigned, type Nep413Message, type Nep413SignedMessage, type PaymentIdParams, REGISTER_DEPOSIT, REGISTRY_GAS, type RegistryBuildOptions, type RegistryConfigView, RegistryErrorCode, type RegistryEvent, type RegistryEventData, type RegistryIdentityArgs, type RegistryMethod, type RegistryPage, type RegistryPaymentArgs, type RegistryRpc, type RegistryTarget, type RegistryTransaction, RegistryValidationError, type RegistryViewOptions, type RoleSummaryView, type SignNep413Options, type SummaryView, type WalletSelectorOptions, buildArrasStorageDeposit, buildEscrowAuthorizationDelegate, buildEscrowMsg, buildGiveFeedback, buildNearErc8004AcceptAgentWallet, buildNearErc8004AppendResponse, buildNearErc8004GiveFeedback, buildNearErc8004GiveFeedbackWithProof, buildNearErc8004NftApprove, buildNearErc8004NftRevoke, buildNearErc8004NftRevokeAll, buildNearErc8004NftTransfer, buildNearErc8004NftTransferCall, buildNearErc8004Register, buildNearErc8004RevokeFeedback, buildNearErc8004SetAgentUri, buildNearErc8004SetAgentWallet, buildNearErc8004SetMetadata, buildNearErc8004Transaction, buildNearErc8004UnsetAgentWallet, buildNearErc8004VerifyFeedbackProof, buildRegistryRegister, buildRegistryUpdate, buildRevokeFeedback, buildUsdcStorageDeposit, computePaymentId, createNearLocalSigner, NEARProvider as default, displayText, getAgent, getConfig, getFeedback, getFeedbackForPayment, getSummary, getSummaryByOperator, isFeedbackPending, listAgents, listFeedback, nep413Preimage, normalizeNearErc8004Uri, parseArrasEvents, parseGiveFeedbackOutcome, parseNearErc8004Events, parseNearErc8004GiveFeedbackOutcome, parseNearErc8004ReceiptEvents, parseNearErc8004RegisterOutcome, parseRegistryEvents, parseRegistryReceiptEvents, paymentIdPreimage, reclaim, refund, release, safeLink, signEscrowAuthorization, signEscrowLifecycle, signExactNearDelegate, signNearErc8004Transaction, signNep413, signRegistryTransaction, summarizeFeedback, validateEscrowAuthorizationDelegate, withdraw, withdrawFor };