@settlemint/dalp-sdk 2.1.7-main.22940587248 → 2.1.7-main.22941761255

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.
Files changed (2) hide show
  1. package/dist/index.js +101 -88
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2424,6 +2424,7 @@ var oo = {
2424
2424
 
2425
2425
  // ../../packages/dalp/dapi/contract/src/errors.ts
2426
2426
  import { z as z8 } from "zod";
2427
+ var COMMON_CONTRACT_ERRORS = ["DALP-4001", "DALP-4003"];
2427
2428
  var CUSTOM_ERRORS = {
2428
2429
  BAD_REQUEST: {
2429
2430
  status: 400,
@@ -2528,7 +2529,7 @@ var CUSTOM_ERRORS = {
2528
2529
  }
2529
2530
  };
2530
2531
  var CURRENT_API_VERSION = 1;
2531
- var baseContract = oc.errors(CUSTOM_ERRORS);
2532
+ var baseContract = oc.$meta({}).errors(CUSTOM_ERRORS);
2532
2533
  var v1Contract = baseContract.$route({ deprecated: CURRENT_API_VERSION > 1 });
2533
2534
  var v2Contract = baseContract.$route({ deprecated: CURRENT_API_VERSION > 2, inputStructure: "detailed" });
2534
2535
 
@@ -12109,28 +12110,28 @@ var create6 = v2Contract.route({
12109
12110
  description: "Create a new fixed yield schedule contract",
12110
12111
  successDescription: "Fixed yield schedule created",
12111
12112
  tags: [...TAGS19]
12112
- }).input(v2Input.body(FixedYieldScheduleCreateInputSchema)).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleSchema2));
12113
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4225", "DALP-4261"] }).input(v2Input.body(FixedYieldScheduleCreateInputSchema)).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleSchema2));
12113
12114
  var topUp = v2Contract.route({
12114
12115
  method: "POST",
12115
12116
  path: "/addons/fixed-yield/{scheduleAddress}/top-up",
12116
12117
  description: "Top up the denomination asset in a fixed yield schedule",
12117
12118
  successDescription: "Fixed yield schedule topped up",
12118
12119
  tags: [...TAGS19]
12119
- }).input(v2Input.paramsBody(z273.object({ scheduleAddress: FixedYieldScheduleTopUpInputSchema.shape.scheduleAddress }), FixedYieldScheduleTopUpInputSchema.omit({ scheduleAddress: true }))).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleTopUpOutputSchema));
12120
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4324"] }).input(v2Input.paramsBody(z273.object({ scheduleAddress: FixedYieldScheduleTopUpInputSchema.shape.scheduleAddress }), FixedYieldScheduleTopUpInputSchema.omit({ scheduleAddress: true }))).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleTopUpOutputSchema));
12120
12121
  var withdraw = v2Contract.route({
12121
12122
  method: "POST",
12122
12123
  path: "/addons/fixed-yield/{scheduleAddress}/withdraw",
12123
12124
  description: "Withdraw the denomination asset from a fixed yield schedule",
12124
12125
  successDescription: "Fixed yield schedule withdrawal completed",
12125
12126
  tags: [...TAGS19]
12126
- }).input(v2Input.paramsBody(z273.object({ scheduleAddress: FixedYieldScheduleWithdrawInputSchema.shape.scheduleAddress }), FixedYieldScheduleWithdrawInputSchema.omit({ scheduleAddress: true }))).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleWithdrawOutputSchema));
12127
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4325"] }).input(v2Input.paramsBody(z273.object({ scheduleAddress: FixedYieldScheduleWithdrawInputSchema.shape.scheduleAddress }), FixedYieldScheduleWithdrawInputSchema.omit({ scheduleAddress: true }))).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleWithdrawOutputSchema));
12127
12128
  var claim = v2Contract.route({
12128
12129
  method: "POST",
12129
12130
  path: "/addons/fixed-yield/{scheduleAddress}/claim",
12130
12131
  description: "Claim yield from a fixed yield schedule contract",
12131
12132
  successDescription: "Fixed yield schedule claim completed",
12132
12133
  tags: [...TAGS19]
12133
- }).input(v2Input.paramsBody(z273.object({ scheduleAddress: FixedYieldScheduleClaimInputSchema.shape.scheduleAddress }), FixedYieldScheduleClaimInputSchema.omit({ scheduleAddress: true }))).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleClaimOutputSchema));
12134
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4320", "DALP-4322"] }).input(v2Input.paramsBody(z273.object({ scheduleAddress: FixedYieldScheduleClaimInputSchema.shape.scheduleAddress }), FixedYieldScheduleClaimInputSchema.omit({ scheduleAddress: true }))).output(createAsyncBlockchainMutationResponse(FixedYieldScheduleClaimOutputSchema));
12134
12135
  var fixedYieldV2Contract = {
12135
12136
  read: read9,
12136
12137
  create: create6,
@@ -12601,140 +12602,140 @@ var create7 = v2Contract.route({
12601
12602
  description: "Create a new token sale via the system factory",
12602
12603
  successDescription: "Token sale created on-chain",
12603
12604
  tags: [...TAGS20]
12604
- }).input(v2Input.body(TokenSaleCreateSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleCreateOutputSchema));
12605
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4222", "DALP-4238"] }).input(v2Input.body(TokenSaleCreateSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleCreateOutputSchema));
12605
12606
  var activate = v2Contract.route({
12606
12607
  method: "PUT",
12607
12608
  path: "/addons/token-sale/activate",
12608
12609
  description: "Activate a token sale",
12609
12610
  successDescription: "Token sale activated on-chain",
12610
12611
  tags: [...TAGS20]
12611
- }).input(v2Input.body(TokenSaleActivateInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleActivateOutputSchema));
12612
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4250", "DALP-4251"] }).input(v2Input.body(TokenSaleActivateInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleActivateOutputSchema));
12612
12613
  var buy = v2Contract.route({
12613
12614
  method: "POST",
12614
12615
  path: "/addons/token-sale/buy",
12615
12616
  description: "Purchase tokens from a token sale",
12616
12617
  successDescription: "Tokens purchased on-chain",
12617
12618
  tags: [...TAGS20]
12618
- }).input(v2Input.body(TokenSaleBuyInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleBuyOutputSchema));
12619
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4252", "DALP-4253", "DALP-4254", "DALP-4255"] }).input(v2Input.body(TokenSaleBuyInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleBuyOutputSchema));
12619
12620
  var configureVesting = v2Contract.route({
12620
12621
  method: "PUT",
12621
12622
  path: "/addons/token-sale/configure-vesting",
12622
12623
  description: "Configure vesting for a token sale",
12623
12624
  successDescription: "Vesting configured on-chain",
12624
12625
  tags: [...TAGS20]
12625
- }).input(v2Input.body(TokenSaleConfigureVestingInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleConfigureVestingOutputSchema));
12626
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4257"] }).input(v2Input.body(TokenSaleConfigureVestingInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleConfigureVestingOutputSchema));
12626
12627
  var end = v2Contract.route({
12627
12628
  method: "PUT",
12628
12629
  path: "/addons/token-sale/end",
12629
12630
  description: "End a token sale",
12630
12631
  successDescription: "Token sale ended on-chain",
12631
12632
  tags: [...TAGS20]
12632
- }).input(v2Input.body(TokenSaleEndInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleEndOutputSchema));
12633
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4250", "DALP-4251"] }).input(v2Input.body(TokenSaleEndInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleEndOutputSchema));
12633
12634
  var finalize = v2Contract.route({
12634
12635
  method: "PUT",
12635
12636
  path: "/addons/token-sale/finalize",
12636
12637
  description: "Finalize a token sale",
12637
12638
  successDescription: "Token sale finalized on-chain",
12638
12639
  tags: [...TAGS20]
12639
- }).input(v2Input.body(TokenSaleFinalizeInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleFinalizeOutputSchema));
12640
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleFinalizeInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleFinalizeOutputSchema));
12640
12641
  var withdrawFunds = v2Contract.route({
12641
12642
  method: "PUT",
12642
12643
  path: "/addons/token-sale/withdraw-funds",
12643
12644
  description: "Withdraw funds from a token sale",
12644
12645
  successDescription: "Funds withdrawn on-chain",
12645
12646
  tags: [...TAGS20]
12646
- }).input(v2Input.body(TokenSaleWithdrawFundsInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleWithdrawFundsOutputSchema));
12647
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleWithdrawFundsInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleWithdrawFundsOutputSchema));
12647
12648
  var withdrawTokens = v2Contract.route({
12648
12649
  method: "PUT",
12649
12650
  path: "/addons/token-sale/withdraw-tokens",
12650
12651
  description: "Withdraw unsold tokens from a token sale",
12651
12652
  successDescription: "Unsold tokens withdrawn on-chain",
12652
12653
  tags: [...TAGS20]
12653
- }).input(v2Input.body(TokenSaleWithdrawTokensInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleWithdrawTokensOutputSchema));
12654
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleWithdrawTokensInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleWithdrawTokensOutputSchema));
12654
12655
  var withdrawUnsoldTokens = v2Contract.route({
12655
12656
  method: "PUT",
12656
12657
  path: "/addons/token-sale/withdraw-unsold-tokens",
12657
12658
  description: "Withdraw unsold tokens from a completed token sale",
12658
12659
  successDescription: "Unsold tokens withdrawn on-chain",
12659
12660
  tags: [...TAGS20]
12660
- }).input(v2Input.body(TokenSaleWithdrawUnsoldTokensInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleWithdrawUnsoldTokensOutputSchema));
12661
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleWithdrawUnsoldTokensInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleWithdrawUnsoldTokensOutputSchema));
12661
12662
  var pauseSale = v2Contract.route({
12662
12663
  method: "PUT",
12663
12664
  path: "/addons/token-sale/pause-sale",
12664
12665
  description: "Pause a token sale",
12665
12666
  successDescription: "Token sale paused on-chain",
12666
12667
  tags: [...TAGS20]
12667
- }).input(v2Input.body(TokenSalePauseSaleInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSalePauseSaleOutputSchema));
12668
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSalePauseSaleInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSalePauseSaleOutputSchema));
12668
12669
  var unpauseSale = v2Contract.route({
12669
12670
  method: "PUT",
12670
12671
  path: "/addons/token-sale/unpause-sale",
12671
12672
  description: "Unpause a token sale",
12672
12673
  successDescription: "Token sale unpaused on-chain",
12673
12674
  tags: [...TAGS20]
12674
- }).input(v2Input.body(TokenSaleUnpauseSaleInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleUnpauseSaleOutputSchema));
12675
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleUnpauseSaleInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleUnpauseSaleOutputSchema));
12675
12676
  var acknowledgeTerms = v2Contract.route({
12676
12677
  method: "PUT",
12677
12678
  path: "/addons/token-sale/acknowledge-terms",
12678
12679
  description: "Acknowledge terms and conditions for a token sale",
12679
12680
  successDescription: "Terms acknowledged on-chain",
12680
12681
  tags: [...TAGS20]
12681
- }).input(v2Input.body(TokenSaleAcknowledgeTermsInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleAcknowledgeTermsOutputSchema));
12682
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4258"] }).input(v2Input.body(TokenSaleAcknowledgeTermsInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleAcknowledgeTermsOutputSchema));
12682
12683
  var claimRefund = v2Contract.route({
12683
12684
  method: "PUT",
12684
12685
  path: "/addons/token-sale/claim-refund",
12685
12686
  description: "Claim refund from a failed token sale",
12686
12687
  successDescription: "Refund claimed on-chain",
12687
12688
  tags: [...TAGS20]
12688
- }).input(v2Input.body(TokenSaleClaimRefundInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleClaimRefundOutputSchema));
12689
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4256"] }).input(v2Input.body(TokenSaleClaimRefundInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleClaimRefundOutputSchema));
12689
12690
  var addToPresaleWhitelist = v2Contract.route({
12690
12691
  method: "PUT",
12691
12692
  path: "/addons/token-sale/add-to-presale-whitelist",
12692
12693
  description: "Add addresses to presale whitelist",
12693
12694
  successDescription: "Addresses added to presale whitelist on-chain",
12694
12695
  tags: [...TAGS20]
12695
- }).input(v2Input.body(TokenSaleAddToPresaleWhitelistInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleAddToPresaleWhitelistOutputSchema));
12696
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleAddToPresaleWhitelistInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleAddToPresaleWhitelistOutputSchema));
12696
12697
  var removeFromPresaleWhitelist = v2Contract.route({
12697
12698
  method: "PUT",
12698
12699
  path: "/addons/token-sale/remove-from-presale-whitelist",
12699
12700
  description: "Remove addresses from presale whitelist",
12700
12701
  successDescription: "Addresses removed from presale whitelist on-chain",
12701
12702
  tags: [...TAGS20]
12702
- }).input(v2Input.body(TokenSaleRemoveFromPresaleWhitelistInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleRemoveFromPresaleWhitelistOutputSchema));
12703
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleRemoveFromPresaleWhitelistInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleRemoveFromPresaleWhitelistOutputSchema));
12703
12704
  var addPaymentCurrency = v2Contract.route({
12704
12705
  method: "PUT",
12705
12706
  path: "/addons/token-sale/add-payment-currency",
12706
12707
  description: "Add a payment currency to a token sale",
12707
12708
  successDescription: "Payment currency added on-chain",
12708
12709
  tags: [...TAGS20]
12709
- }).input(v2Input.body(TokenSaleAddPaymentCurrencyInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleAddPaymentCurrencyOutputSchema));
12710
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleAddPaymentCurrencyInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleAddPaymentCurrencyOutputSchema));
12710
12711
  var removePaymentCurrency = v2Contract.route({
12711
12712
  method: "PUT",
12712
12713
  path: "/addons/token-sale/remove-payment-currency",
12713
12714
  description: "Remove a payment currency from a token sale",
12714
12715
  successDescription: "Payment currency removed on-chain",
12715
12716
  tags: [...TAGS20]
12716
- }).input(v2Input.body(TokenSaleRemovePaymentCurrencyInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleRemovePaymentCurrencyOutputSchema));
12717
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleRemovePaymentCurrencyInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleRemovePaymentCurrencyOutputSchema));
12717
12718
  var setSoftCap = v2Contract.route({
12718
12719
  method: "PUT",
12719
12720
  path: "/addons/token-sale/set-soft-cap",
12720
12721
  description: "Set the soft cap for a token sale",
12721
12722
  successDescription: "Soft cap set on-chain",
12722
12723
  tags: [...TAGS20]
12723
- }).input(v2Input.body(TokenSaleSetSoftCapInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleSetSoftCapOutputSchema));
12724
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleSetSoftCapInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleSetSoftCapOutputSchema));
12724
12725
  var setPurchaseLimits = v2Contract.route({
12725
12726
  method: "PUT",
12726
12727
  path: "/addons/token-sale/set-purchase-limits",
12727
12728
  description: "Set minimum and maximum purchase limits for a token sale",
12728
12729
  successDescription: "Purchase limits set on-chain",
12729
12730
  tags: [...TAGS20]
12730
- }).input(v2Input.body(TokenSaleSetPurchaseLimitsInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleSetPurchaseLimitsOutputSchema));
12731
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleSetPurchaseLimitsInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleSetPurchaseLimitsOutputSchema));
12731
12732
  var setTermsHash = v2Contract.route({
12732
12733
  method: "PUT",
12733
12734
  path: "/addons/token-sale/set-terms-hash",
12734
12735
  description: "Set the terms and conditions hash for a token sale",
12735
12736
  successDescription: "Terms hash set on-chain",
12736
12737
  tags: [...TAGS20]
12737
- }).input(v2Input.body(TokenSaleSetTermsHashInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleSetTermsHashOutputSchema));
12738
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(TokenSaleSetTermsHashInputSchema)).output(createAsyncBlockchainMutationResponse(TokenSaleSetTermsHashOutputSchema));
12738
12739
  var tokenSaleV2Contract = {
12739
12740
  list: list13,
12740
12741
  read: read10,
@@ -12771,6 +12772,7 @@ var XvpV2ListOutputSchema = createPaginatedResponse(XvpSettlementListItemSchema)
12771
12772
 
12772
12773
  // ../../packages/dalp/dapi/contract/src/routes/v2/addons/xvp/xvp.v2.contract.ts
12773
12774
  var TAGS21 = ["v2-xvp"];
12775
+ var XVP_COMMON = ["DALP-4001"];
12774
12776
  var list14 = v2Contract.route({
12775
12777
  method: "GET",
12776
12778
  path: "/addons/xvp",
@@ -12798,56 +12800,56 @@ var create8 = v2Contract.route({
12798
12800
  description: "Create a new XvP settlement via the system factory",
12799
12801
  successDescription: "Settlement created on-chain and encrypted secret stored securely",
12800
12802
  tags: TAGS21
12801
- }).input(v2Input.body(XvpCreateSchema)).output(createAsyncBlockchainMutationResponse(XvpCreateOutputSchema));
12803
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-4003", "DALP-2001", "DALP-2003"] }).input(v2Input.body(XvpCreateSchema)).output(createAsyncBlockchainMutationResponse(XvpCreateOutputSchema));
12802
12804
  var approve2 = v2Contract.route({
12803
12805
  method: "PUT",
12804
12806
  path: "/addons/xvp/approve",
12805
12807
  description: "Approve an XvP settlement",
12806
12808
  successDescription: "Settlement approved on-chain",
12807
12809
  tags: TAGS21
12808
- }).input(v2Input.body(XvpApproveInputSchema)).output(createAsyncBlockchainMutationResponse(XvpApproveOutputSchema));
12810
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2004", "DALP-2005", "DALP-4032"] }).input(v2Input.body(XvpApproveInputSchema)).output(createAsyncBlockchainMutationResponse(XvpApproveOutputSchema));
12809
12811
  var revokeApproval2 = v2Contract.route({
12810
12812
  method: "PUT",
12811
12813
  path: "/addons/xvp/revoke-approval",
12812
12814
  description: "Revoke an XvP settlement approval",
12813
12815
  successDescription: "Approval revoked and escrowed assets refunded",
12814
12816
  tags: TAGS21
12815
- }).input(v2Input.body(XvpRevokeApprovalInputSchema)).output(createAsyncBlockchainMutationResponse(XvpRevokeApprovalOutputSchema));
12817
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2004", "DALP-2006"] }).input(v2Input.body(XvpRevokeApprovalInputSchema)).output(createAsyncBlockchainMutationResponse(XvpRevokeApprovalOutputSchema));
12816
12818
  var execute3 = v2Contract.route({
12817
12819
  method: "PUT",
12818
12820
  path: "/addons/xvp/execute",
12819
12821
  description: "Execute an XvP settlement",
12820
12822
  successDescription: "Settlement executed on-chain",
12821
12823
  tags: TAGS21
12822
- }).input(v2Input.body(XvpExecuteInputSchema)).output(createAsyncBlockchainMutationResponse(XvpExecuteOutputSchema));
12824
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2007", "DALP-2008", "DALP-2009", "DALP-4033"] }).input(v2Input.body(XvpExecuteInputSchema)).output(createAsyncBlockchainMutationResponse(XvpExecuteOutputSchema));
12823
12825
  var cancel2 = v2Contract.route({
12824
12826
  method: "PUT",
12825
12827
  path: "/addons/xvp/cancel",
12826
12828
  description: "Cancel an XvP settlement",
12827
12829
  successDescription: "Settlement cancellation proposed on-chain",
12828
12830
  tags: TAGS21
12829
- }).input(v2Input.body(XvpCancelInputSchema)).output(createAsyncBlockchainMutationResponse(XvpCancelOutputSchema));
12831
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2004", "DALP-4034"] }).input(v2Input.body(XvpCancelInputSchema)).output(createAsyncBlockchainMutationResponse(XvpCancelOutputSchema));
12830
12832
  var withdrawCancel2 = v2Contract.route({
12831
12833
  method: "PUT",
12832
12834
  path: "/addons/xvp/withdraw-cancel",
12833
12835
  description: "Withdraw a cancel proposal for an XvP settlement",
12834
12836
  successDescription: "Cancel proposal withdrawn on-chain",
12835
12837
  tags: TAGS21
12836
- }).input(v2Input.body(XvpWithdrawCancelInputSchema)).output(createAsyncBlockchainMutationResponse(XvpWithdrawCancelOutputSchema));
12838
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2004", "DALP-4035"] }).input(v2Input.body(XvpWithdrawCancelInputSchema)).output(createAsyncBlockchainMutationResponse(XvpWithdrawCancelOutputSchema));
12837
12839
  var withdrawExpired2 = v2Contract.route({
12838
12840
  method: "PUT",
12839
12841
  path: "/addons/xvp/withdraw-expired",
12840
12842
  description: "Return escrowed assets after a settlement expires",
12841
12843
  successDescription: "Expired settlement escrow refunded",
12842
12844
  tags: TAGS21
12843
- }).input(v2Input.body(XvpWithdrawExpiredInputSchema)).output(createAsyncBlockchainMutationResponse(XvpWithdrawExpiredOutputSchema));
12845
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2004", "DALP-4136"] }).input(v2Input.body(XvpWithdrawExpiredInputSchema)).output(createAsyncBlockchainMutationResponse(XvpWithdrawExpiredOutputSchema));
12844
12846
  var revealSecret2 = v2Contract.route({
12845
12847
  method: "POST",
12846
12848
  path: "/addons/xvp/reveal-secret",
12847
12849
  description: "Reveal the secret for an XvP settlement",
12848
12850
  successDescription: "Secret revealed on-chain, enabling settlement execution",
12849
12851
  tags: TAGS21
12850
- }).input(v2Input.body(XvpRevealSecretInputSchema)).output(createAsyncBlockchainMutationResponse(XvpRevealSecretOutputSchema));
12852
+ }).meta({ contractErrors: [...XVP_COMMON, "DALP-2004"] }).input(v2Input.body(XvpRevealSecretInputSchema)).output(createAsyncBlockchainMutationResponse(XvpRevealSecretOutputSchema));
12851
12853
  var xvpV2Contract = {
12852
12854
  list: list14,
12853
12855
  read: read11,
@@ -14049,6 +14051,7 @@ var settingsV2Contract = {
14049
14051
 
14050
14052
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/access-manager/access-manager.v2.contract.ts
14051
14053
  import { z as z338 } from "zod";
14054
+ var ACCESS_ERRORS = ["DALP-4001", "DALP-4008", "DALP-4009"];
14052
14055
  var rolesList = v2Contract.route({
14053
14056
  method: "GET",
14054
14057
  path: "/system/roles",
@@ -14069,14 +14072,14 @@ var grantRole = v2Contract.route({
14069
14072
  description: "Grant a role to multiple accounts.",
14070
14073
  successDescription: "Roles granted successfully.",
14071
14074
  tags: ["v2-access-manager"]
14072
- }).input(v2Input.paramsBody(z338.object({ address: GrantRoleInputSchema.shape.account }), GrantRoleInputSchema.omit({ account: true }))).output(createBlockchainMutationResponse(GrantRoleOutputSchema));
14075
+ }).meta({ contractErrors: [...ACCESS_ERRORS] }).input(v2Input.paramsBody(z338.object({ address: GrantRoleInputSchema.shape.account }), GrantRoleInputSchema.omit({ account: true }))).output(createBlockchainMutationResponse(GrantRoleOutputSchema));
14073
14076
  var revokeRole = v2Contract.route({
14074
14077
  method: "DELETE",
14075
14078
  path: "/system/roles/{address}/revoke",
14076
14079
  description: "Revoke a role from multiple accounts.",
14077
14080
  successDescription: "Roles revoked successfully.",
14078
14081
  tags: ["v2-access-manager"]
14079
- }).input(v2Input.paramsBody(z338.object({ address: RevokeRoleInputSchema.shape.account }), RevokeRoleInputSchema.omit({ account: true }))).output(createBlockchainMutationResponse(RevokeRoleOutputSchema));
14082
+ }).meta({ contractErrors: [...ACCESS_ERRORS] }).input(v2Input.paramsBody(z338.object({ address: RevokeRoleInputSchema.shape.account }), RevokeRoleInputSchema.omit({ account: true }))).output(createBlockchainMutationResponse(RevokeRoleOutputSchema));
14080
14083
  var accessManagerV2Contract = {
14081
14084
  rolesList,
14082
14085
  rolesRead,
@@ -14108,6 +14111,7 @@ var activityV2Contract = {
14108
14111
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/addon-factory/addon-factory.v2.contract.ts
14109
14112
  import { z as z340 } from "zod";
14110
14113
  var TAGS22 = ["v2-addon-factory"];
14114
+ var FACTORY_ERRORS = ["DALP-4001", "DALP-4003", "DALP-4018"];
14111
14115
  var list23 = v2Contract.route({
14112
14116
  method: "GET",
14113
14117
  path: "/system/addon-factories",
@@ -14121,7 +14125,7 @@ var create12 = v2Contract.route({
14121
14125
  description: "Register system addon factory to extend SMART system functionality",
14122
14126
  successDescription: "System addon factory registered successfully",
14123
14127
  tags: [...TAGS22]
14124
- }).input(v2Input.body(SystemAddonCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
14128
+ }).meta({ contractErrors: [...FACTORY_ERRORS] }).input(v2Input.body(SystemAddonCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
14125
14129
  var read18 = v2Contract.route({
14126
14130
  method: "GET",
14127
14131
  path: "/system/addon-factories/{factoryAddress}",
@@ -14146,6 +14150,7 @@ var ClaimTopicsV2ListInputSchema = DataTableInputSchema.extend({
14146
14150
  var ClaimTopicsV2ListOutputSchema = createPaginatedResponse(TopicSchemeSchema);
14147
14151
 
14148
14152
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/claim-topics/claim-topics.v2.contract.ts
14153
+ var CLAIM_TOPIC_ERRORS = ["DALP-4001", "DALP-4003", "DALP-3003", "DALP-3004"];
14149
14154
  var list24 = v2Contract.route({
14150
14155
  method: "GET",
14151
14156
  path: "/system/claim-topics",
@@ -14159,7 +14164,7 @@ var create13 = v2Contract.route({
14159
14164
  description: "Register a new topic scheme for identity claims.",
14160
14165
  successDescription: "Topic scheme registered successfully.",
14161
14166
  tags: ["v2-claim-topics"]
14162
- }).input(v2Input.body(TopicCreateInputSchema)).output(createAsyncBlockchainMutationResponse(TopicCreateOutputSchema));
14167
+ }).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.body(TopicCreateInputSchema)).output(createAsyncBlockchainMutationResponse(TopicCreateOutputSchema));
14163
14168
  var read19 = v2Contract.route({
14164
14169
  method: "GET",
14165
14170
  path: "/system/claim-topics/{name}",
@@ -14173,14 +14178,14 @@ var update9 = v2Contract.route({
14173
14178
  description: "Update the signature of an existing topic scheme.",
14174
14179
  successDescription: "Topic scheme signature updated successfully.",
14175
14180
  tags: ["v2-claim-topics"]
14176
- }).input(v2Input.paramsBody(z342.object({ name: TopicUpdateInputSchema.shape.name }), TopicUpdateInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicUpdateOutputSchema));
14181
+ }).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(z342.object({ name: TopicUpdateInputSchema.shape.name }), TopicUpdateInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicUpdateOutputSchema));
14177
14182
  var del11 = v2Contract.route({
14178
14183
  method: "DELETE",
14179
14184
  path: "/system/claim-topics/{name}",
14180
14185
  description: "Remove a topic scheme from the registry.",
14181
14186
  successDescription: "Topic scheme removed successfully.",
14182
14187
  tags: ["v2-claim-topics"]
14183
- }).input(v2Input.paramsBody(z342.object({ name: TopicDeleteInputSchema.shape.name }), TopicDeleteInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicDeleteOutputSchema));
14188
+ }).meta({ contractErrors: [...CLAIM_TOPIC_ERRORS] }).input(v2Input.paramsBody(z342.object({ name: TopicDeleteInputSchema.shape.name }), TopicDeleteInputSchema.omit({ name: true }))).output(createAsyncBlockchainMutationResponse(TopicDeleteOutputSchema));
14184
14189
  var claimTopicsV2Contract = {
14185
14190
  list: list24,
14186
14191
  create: create13,
@@ -14190,6 +14195,7 @@ var claimTopicsV2Contract = {
14190
14195
  };
14191
14196
 
14192
14197
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/compliance-module/compliance-module.v2.contract.ts
14198
+ var COMPLIANCE_MODULE_ERRORS = ["DALP-4001", "DALP-4003", "DALP-1029", "DALP-1032"];
14193
14199
  var list25 = v2Contract.route({
14194
14200
  method: "GET",
14195
14201
  path: "/system/compliance-modules",
@@ -14203,14 +14209,14 @@ var create14 = v2Contract.route({
14203
14209
  description: "Register system compliance modules",
14204
14210
  successDescription: "System compliance modules registered successfully",
14205
14211
  tags: ["v2-compliance"]
14206
- }).input(v2Input.body(SystemComplianceModuleCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
14212
+ }).meta({ contractErrors: [...COMPLIANCE_MODULE_ERRORS] }).input(v2Input.body(SystemComplianceModuleCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
14207
14213
  var removeGlobal = v2Contract.route({
14208
14214
  method: "DELETE",
14209
14215
  path: "/system/compliance-modules",
14210
14216
  description: "Remove a global compliance module from the system",
14211
14217
  successDescription: "Global compliance module removed successfully",
14212
14218
  tags: ["v2-compliance"]
14213
- }).input(v2Input.body(ComplianceModuleRemoveGlobalSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
14219
+ }).meta({ contractErrors: [...COMPLIANCE_MODULE_ERRORS] }).input(v2Input.body(ComplianceModuleRemoveGlobalSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
14214
14220
  var complianceModuleV2Contract = {
14215
14221
  list: list25,
14216
14222
  create: create14,
@@ -14232,7 +14238,7 @@ var create15 = v2Contract.route({
14232
14238
  description: "Deploy a new SMART system with identity registry, compliance engine, and token factory registry contracts",
14233
14239
  successDescription: "SMART system deployed successfully with all registry contracts and configuration",
14234
14240
  tags: ["v2-system"]
14235
- }).input(v2Input.body(SystemCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemCreateOutputSchema));
14241
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(SystemCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemCreateOutputSchema));
14236
14242
  var read20 = v2Contract.route({
14237
14243
  method: "GET",
14238
14244
  path: "/system/{systemAddress}",
@@ -14248,7 +14254,7 @@ var resume2 = v2Contract.route({
14248
14254
  description: "Resume a stalled system deployment that got stuck during bootstrap",
14249
14255
  successDescription: "System deployment resumed successfully",
14250
14256
  tags: ["v2-system"]
14251
- }).input(v2Input.body(SystemResumeInputSchema)).output(createBlockchainMutationResponse(SystemResumeOutputSchema));
14257
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.body(SystemResumeInputSchema)).output(createBlockchainMutationResponse(SystemResumeOutputSchema));
14252
14258
  var coreV2Contract = {
14253
14259
  list: list26,
14254
14260
  create: create15,
@@ -14439,6 +14445,7 @@ var feedsV2Contract = {
14439
14445
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/identity/identity.v2.contract.ts
14440
14446
  import { z as z346 } from "zod";
14441
14447
  var TAGS24 = ["v2-identity"];
14448
+ var IDENTITY_ERRORS = ["DALP-4001", "DALP-4003", "DALP-1027", "DALP-1028"];
14442
14449
  var identityMutationOutput = createAsyncBlockchainMutationResponse(IdentitySchema);
14443
14450
  var create16 = v2Contract.route({
14444
14451
  method: "POST",
@@ -14446,21 +14453,21 @@ var create16 = v2Contract.route({
14446
14453
  description: "Create a new blockchain identity contract for the authenticated user.",
14447
14454
  successDescription: "Identity created successfully.",
14448
14455
  tags: TAGS24
14449
- }).input(v2Input.body(IdentityCreateSchema)).output(identityMutationOutput);
14456
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityCreateSchema)).output(identityMutationOutput);
14450
14457
  var register2 = v2Contract.route({
14451
14458
  method: "PUT",
14452
14459
  path: "/system/identity",
14453
14460
  description: "Register identity claims for the current user and current system.",
14454
14461
  successDescription: "Identity claims registered successfully.",
14455
14462
  tags: TAGS24
14456
- }).input(v2Input.body(IdentityRegisterSchema)).output(identityMutationOutput);
14463
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityRegisterSchema)).output(identityMutationOutput);
14457
14464
  var registerPending = v2Contract.route({
14458
14465
  method: "POST",
14459
14466
  path: "/system/identity/register-pending",
14460
14467
  description: "Register an existing identity contract in the current system as PENDING.",
14461
14468
  successDescription: "Identity registered as PENDING.",
14462
14469
  tags: TAGS24
14463
- }).input(v2Input.body(IdentityRegisterPendingSchema)).output(identityMutationOutput);
14470
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityRegisterPendingSchema)).output(identityMutationOutput);
14464
14471
  var readByWallet2 = v2Contract.route({
14465
14472
  method: "GET",
14466
14473
  path: "/system/identity/by-wallet/{wallet}",
@@ -14501,7 +14508,7 @@ var search5 = v2Contract.route({
14501
14508
  description: "Search for basic identity information by account or contract address.",
14502
14509
  successDescription: "Identity search completed successfully.",
14503
14510
  tags: TAGS24
14504
- }).input(v2Input.body(IdentitySearchSchema)).output(createSingleResponse(IdentitySearchResultSchema));
14511
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentitySearchSchema)).output(createSingleResponse(IdentitySearchResultSchema));
14505
14512
  var me2 = v2Contract.route({
14506
14513
  method: "GET",
14507
14514
  path: "/system/identity/me",
@@ -14522,14 +14529,14 @@ var identityDelete2 = v2Contract.route({
14522
14529
  description: "Delete an identity from the system's identity registry.",
14523
14530
  successDescription: "Identity deleted successfully.",
14524
14531
  tags: TAGS24
14525
- }).input(v2Input.paramsBody(z346.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
14532
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(z346.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
14526
14533
  var updateCountry = v2Contract.route({
14527
14534
  method: "PUT",
14528
14535
  path: "/system/identity/country",
14529
14536
  description: "Update the country for a registered identity.",
14530
14537
  successDescription: "Identity country updated successfully.",
14531
14538
  tags: TAGS24
14532
- }).input(v2Input.body(IdentityUpdateCountrySchema)).output(identityMutationOutput);
14539
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(IdentityUpdateCountrySchema)).output(identityMutationOutput);
14533
14540
  var registrationStatus = v2Contract.route({
14534
14541
  method: "GET",
14535
14542
  path: "/system/identity/registration-status",
@@ -14550,14 +14557,14 @@ var claimIssue = v2Contract.route({
14550
14557
  description: "Issue a new claim to a user's on-chain identity.",
14551
14558
  successDescription: "Claim issued successfully.",
14552
14559
  tags: TAGS24
14553
- }).input(v2Input.body(ClaimsIssueInputSchema)).output(createAsyncBlockchainMutationResponse(ClaimsIssueOutputSchema));
14560
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(ClaimsIssueInputSchema)).output(createAsyncBlockchainMutationResponse(ClaimsIssueOutputSchema));
14554
14561
  var claimRevoke = v2Contract.route({
14555
14562
  method: "POST",
14556
14563
  path: "/system/identity/claim/revoke",
14557
14564
  description: "Revoke an existing claim from a user's on-chain identity.",
14558
14565
  successDescription: "Claim revoked successfully.",
14559
14566
  tags: TAGS24
14560
- }).input(v2Input.body(ClaimsRevokeInputSchema)).output(createAsyncBlockchainMutationResponse(ClaimsRevokeOutputSchema));
14567
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.body(ClaimsRevokeInputSchema)).output(createAsyncBlockchainMutationResponse(ClaimsRevokeOutputSchema));
14561
14568
  var identityV2Contract = {
14562
14569
  create: create16,
14563
14570
  register: register2,
@@ -14848,6 +14855,7 @@ var statsV2Contract = {
14848
14855
 
14849
14856
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/token-factory/token-factory.v2.contract.ts
14850
14857
  var TAGS25 = ["v2-token-factory"];
14858
+ var FACTORY_ERRORS2 = ["DALP-4001", "DALP-4003", "DALP-4013", "DALP-4014"];
14851
14859
  var list30 = v2Contract.route({
14852
14860
  method: "GET",
14853
14861
  path: "/system/factories",
@@ -14861,7 +14869,7 @@ var create17 = v2Contract.route({
14861
14869
  description: "Deploy one or more token factory contracts for creating specific token types",
14862
14870
  successDescription: "Token factory deployed successfully",
14863
14871
  tags: [...TAGS25]
14864
- }).input(v2Input.body(FactoryCreateSchema)).output(createBlockchainMutationResponse(SystemSchema));
14872
+ }).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(FactoryCreateSchema)).output(createBlockchainMutationResponse(SystemSchema));
14865
14873
  var read23 = v2Contract.route({
14866
14874
  method: "GET",
14867
14875
  path: "/system/factories/{factoryAddress}",
@@ -14882,7 +14890,7 @@ var predictAddress = v2Contract.route({
14882
14890
  description: "Predict the address of a token before deployment",
14883
14891
  successDescription: "Predicted token address",
14884
14892
  tags: [...TAGS25]
14885
- }).input(v2Input.body(PredictAddressInputSchema)).output(createSingleResponse(PredictAddressOutputSchema));
14893
+ }).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(PredictAddressInputSchema)).output(createSingleResponse(PredictAddressOutputSchema));
14886
14894
  var tokenFactoryV2Contract = {
14887
14895
  list: list30,
14888
14896
  create: create17,
@@ -14902,6 +14910,7 @@ var TrustedIssuersV2ListInputSchema = DataTableInputSchema.extend({
14902
14910
  var TrustedIssuersV2ListOutputSchema = createPaginatedResponse(TrustedIssuerSchema2);
14903
14911
 
14904
14912
  // ../../packages/dalp/dapi/contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.contract.ts
14913
+ var TRUSTED_ISSUER_ERRORS = ["DALP-4001", "DALP-4003"];
14905
14914
  var list31 = v2Contract.route({
14906
14915
  method: "GET",
14907
14916
  path: "/system/trusted-issuers",
@@ -14922,28 +14931,28 @@ var create18 = v2Contract.route({
14922
14931
  description: "Create a new trusted issuer in the registry.",
14923
14932
  successDescription: "Trusted issuer created successfully.",
14924
14933
  tags: ["v2-trusted-issuers"]
14925
- }).input(v2Input.body(TrustedIssuerCreateInputSchema)).output(createAsyncBlockchainMutationResponse(TrustedIssuerCreateOutputSchema));
14934
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.body(TrustedIssuerCreateInputSchema)).output(createAsyncBlockchainMutationResponse(TrustedIssuerCreateOutputSchema));
14926
14935
  var update10 = v2Contract.route({
14927
14936
  method: "PUT",
14928
14937
  path: "/system/trusted-issuers/{issuerAddress}",
14929
14938
  description: "Update the claim topics for a trusted issuer.",
14930
14939
  successDescription: "Trusted issuer topics updated successfully.",
14931
14940
  tags: ["v2-trusted-issuers"]
14932
- }).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
14941
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
14933
14942
  var upsert5 = v2Contract.route({
14934
14943
  method: "PUT",
14935
14944
  path: "/system/trusted-issuers/{issuerAddress}/upsert",
14936
14945
  description: "Create or update a trusted issuer in the registry.",
14937
14946
  successDescription: "Trusted issuer upserted successfully.",
14938
14947
  tags: ["v2-trusted-issuers"]
14939
- }).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
14948
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
14940
14949
  var del12 = v2Contract.route({
14941
14950
  method: "DELETE",
14942
14951
  path: "/system/trusted-issuers/{issuerAddress}",
14943
14952
  description: "Delete a trusted issuer from the registry.",
14944
14953
  successDescription: "Trusted issuer deleted successfully.",
14945
14954
  tags: ["v2-trusted-issuers"]
14946
- }).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
14955
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
14947
14956
  var topics = v2Contract.route({
14948
14957
  method: "GET",
14949
14958
  path: "/system/trusted-issuers/{issuerAddress}/topics",
@@ -15083,6 +15092,10 @@ var TokenRemoveMetadataInputSchema = TokenMutationInputSchema.extend({
15083
15092
  });
15084
15093
 
15085
15094
  // ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.mutations.contract.ts
15095
+ var COMPLIANCE = ["DALP-1001", "DALP-1005", "DALP-1006", "DALP-1027", "DALP-1055"];
15096
+ var FREEZE = ["DALP-1019", "DALP-1020", "DALP-1024", "DALP-1025", "DALP-1043"];
15097
+ var RECOVERY = ["DALP-1076", "DALP-1079", "DALP-4051"];
15098
+ var ROLES = ["DALP-4008", "DALP-4009"];
15086
15099
  var mutationOutput = createAsyncBlockchainMutationResponse(TokenSchema);
15087
15100
  var create19 = v2Contract.route({
15088
15101
  method: "POST",
@@ -15090,161 +15103,161 @@ var create19 = v2Contract.route({
15090
15103
  description: "Create a new token (deposit, bond, equity, fund, or stablecoin) and deploy it to the blockchain.",
15091
15104
  successDescription: "Token created successfully with all contract details and user permissions.",
15092
15105
  tags: ["v2-token-factory"]
15093
- }).input(v2Input.body(TokenCreateSchema)).output(mutationOutput);
15106
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-4013", "DALP-4014", "DALP-4015", "DALP-4016"] }).input(v2Input.body(TokenCreateSchema)).output(mutationOutput);
15094
15107
  var mint = v2Contract.route({
15095
15108
  method: "POST",
15096
15109
  path: "/token/{tokenAddress}/mint",
15097
15110
  description: "Mint new tokens to one or more addresses.",
15098
15111
  successDescription: "Tokens minted successfully.",
15099
15112
  tags: ["v2-token"]
15100
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15113
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15101
15114
  var burn = v2Contract.route({
15102
15115
  method: "POST",
15103
15116
  path: "/token/{tokenAddress}/burn",
15104
15117
  description: "Burn tokens from one or more addresses.",
15105
15118
  successDescription: "Tokens burned successfully.",
15106
15119
  tags: ["v2-token"]
15107
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15120
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15108
15121
  var transfer = v2Contract.route({
15109
15122
  method: "POST",
15110
15123
  path: "/token/{tokenAddress}/transfer",
15111
15124
  description: "Transfer tokens using the holder's balance or via allowance (transferFrom).",
15112
15125
  successDescription: "Tokens transferred successfully.",
15113
15126
  tags: ["v2-token"]
15114
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15127
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1056"] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15115
15128
  var forcedTransfer = v2Contract.route({
15116
15129
  method: "POST",
15117
15130
  path: "/token/{tokenAddress}/forced-transfer",
15118
15131
  description: "Force transfer tokens from specific holders as a custodian (single or batch).",
15119
15132
  successDescription: "Forced transfer executed successfully.",
15120
15133
  tags: ["v2-token"]
15121
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15134
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15122
15135
  var approve3 = v2Contract.route({
15123
15136
  method: "POST",
15124
15137
  path: "/token/{tokenAddress}/approve",
15125
15138
  description: "Approve an address to spend tokens on behalf of the owner.",
15126
15139
  successDescription: "Token allowance approved successfully.",
15127
15140
  tags: ["v2-token"]
15128
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenApproveInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15141
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenApproveInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15129
15142
  var redeem = v2Contract.route({
15130
15143
  method: "POST",
15131
15144
  path: "/token/{tokenAddress}/redeem",
15132
15145
  description: "Redeem tokens from one or more addresses.",
15133
15146
  successDescription: "Tokens redeemed successfully.",
15134
15147
  tags: ["v2-token"]
15135
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15148
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
15136
15149
  var mature = v2Contract.route({
15137
15150
  method: "POST",
15138
15151
  path: "/token/{tokenAddress}/mature",
15139
15152
  description: "Mature a bond token.",
15140
15153
  successDescription: "Bond matured successfully.",
15141
15154
  tags: ["v2-token"]
15142
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenMatureInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15155
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenMatureInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15143
15156
  var pause = v2Contract.route({
15144
15157
  method: "POST",
15145
15158
  path: "/token/{tokenAddress}/pause",
15146
15159
  description: "Pause token transfers.",
15147
15160
  successDescription: "Token paused successfully.",
15148
15161
  tags: ["v2-token"]
15149
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenPauseInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15162
+ }).meta({ contractErrors: ["DALP-4001", "DALP-4003"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenPauseInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15150
15163
  var unpause = v2Contract.route({
15151
15164
  method: "POST",
15152
15165
  path: "/token/{tokenAddress}/unpause",
15153
15166
  description: "Unpause token transfers.",
15154
15167
  successDescription: "Token unpaused successfully.",
15155
15168
  tags: ["v2-token"]
15156
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenUnpauseInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15169
+ }).meta({ contractErrors: ["DALP-4001", "DALP-1081"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenUnpauseInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15157
15170
  var freezeAddress = v2Contract.route({
15158
15171
  method: "POST",
15159
15172
  path: "/token/{tokenAddress}/freeze-address",
15160
15173
  description: "Freeze or unfreeze an address from token transfers.",
15161
15174
  successDescription: "Address freeze status updated successfully.",
15162
15175
  tags: ["v2-token"]
15163
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFreezeAddressInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15176
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...FREEZE] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFreezeAddressInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15164
15177
  var freezePartial = v2Contract.route({
15165
15178
  method: "POST",
15166
15179
  path: "/token/{tokenAddress}/freeze-partial",
15167
15180
  description: "Freeze a specific amount of tokens for an address.",
15168
15181
  successDescription: "Tokens frozen successfully.",
15169
15182
  tags: ["v2-token"]
15170
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFreezePartialInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15183
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...FREEZE, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFreezePartialInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15171
15184
  var unfreezePartial = v2Contract.route({
15172
15185
  method: "POST",
15173
15186
  path: "/token/{tokenAddress}/unfreeze-partial",
15174
15187
  description: "Unfreeze previously frozen tokens.",
15175
15188
  successDescription: "Tokens unfrozen successfully.",
15176
15189
  tags: ["v2-token"]
15177
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenUnfreezePartialInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15190
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...FREEZE] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenUnfreezePartialInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15178
15191
  var recoverTokens = v2Contract.route({
15179
15192
  method: "POST",
15180
15193
  path: "/token/{tokenAddress}/recover-tokens",
15181
15194
  description: "Recover tokens from a lost wallet to the caller's wallet.",
15182
15195
  successDescription: "Tokens recovered successfully.",
15183
15196
  tags: ["v2-token"]
15184
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRecoverTokensInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15197
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...RECOVERY] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRecoverTokensInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15185
15198
  var forcedRecover = v2Contract.route({
15186
15199
  method: "POST",
15187
15200
  path: "/token/{tokenAddress}/forced-recover",
15188
15201
  description: "Force recover tokens from a specified address to the recipient.",
15189
15202
  successDescription: "Tokens force recovered successfully.",
15190
15203
  tags: ["v2-token"]
15191
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenForcedRecoverInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15204
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...RECOVERY] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenForcedRecoverInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15192
15205
  var recoverERC20 = v2Contract.route({
15193
15206
  method: "POST",
15194
15207
  path: "/token/{tokenAddress}/recover-erc20",
15195
15208
  description: "Recover mistakenly sent ERC20 tokens from the contract.",
15196
15209
  successDescription: "ERC20 tokens recovered successfully.",
15197
15210
  tags: ["v2-token"]
15198
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRecoverERC20InputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15211
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRecoverERC20InputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15199
15212
  var setCap = v2Contract.route({
15200
15213
  method: "POST",
15201
15214
  path: "/token/{tokenAddress}/set-cap",
15202
15215
  description: "Set the maximum supply cap for a capped token.",
15203
15216
  successDescription: "Token cap updated successfully.",
15204
15217
  tags: ["v2-token"]
15205
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetCapInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15218
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1016", "DALP-4076"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetCapInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15206
15219
  var updateCollateral = v2Contract.route({
15207
15220
  method: "POST",
15208
15221
  path: "/token/{tokenAddress}/update-collateral",
15209
15222
  description: "Update collateral claim for token supply backing.",
15210
15223
  successDescription: "Collateral updated successfully.",
15211
15224
  tags: ["v2-token"]
15212
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenUpdateCollateralInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15225
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenUpdateCollateralInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15213
15226
  var setYieldSchedule = v2Contract.route({
15214
15227
  method: "POST",
15215
15228
  path: "/token/{tokenAddress}/set-yield-schedule",
15216
15229
  description: "Set the yield schedule for a yield-bearing token.",
15217
15230
  successDescription: "Yield schedule updated successfully.",
15218
15231
  tags: ["v2-token"]
15219
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetYieldScheduleInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15232
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetYieldScheduleInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15220
15233
  var addComplianceModule = v2Contract.route({
15221
15234
  method: "POST",
15222
15235
  path: "/token/{tokenAddress}/add-compliance-module",
15223
15236
  description: "Add a compliance module to the token.",
15224
15237
  successDescription: "Compliance module added successfully.",
15225
15238
  tags: ["v2-token"]
15226
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenAddComplianceModuleInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15239
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1029", "DALP-1032"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenAddComplianceModuleInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15227
15240
  var removeComplianceModule = v2Contract.route({
15228
15241
  method: "POST",
15229
15242
  path: "/token/{tokenAddress}/remove-compliance-module",
15230
15243
  description: "Remove a compliance module from the token.",
15231
15244
  successDescription: "Compliance module removed successfully.",
15232
15245
  tags: ["v2-token"]
15233
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRemoveComplianceModuleInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15246
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1029"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRemoveComplianceModuleInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15234
15247
  var setComplianceModuleParams = v2Contract.route({
15235
15248
  method: "POST",
15236
15249
  path: "/token/{tokenAddress}/set-compliance-module-params",
15237
15250
  description: "Update parameters for a compliance module on the token.",
15238
15251
  successDescription: "Compliance module parameters updated successfully.",
15239
15252
  tags: ["v2-token"]
15240
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetComplianceParamsInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15253
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1029"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetComplianceParamsInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15241
15254
  var grantRole2 = v2Contract.route({
15242
15255
  method: "POST",
15243
15256
  path: "/token/{tokenAddress}/grant-role",
15244
15257
  description: "Grant a role to multiple accounts on a token.",
15245
15258
  successDescription: "Role granted successfully to accounts.",
15246
15259
  tags: ["v2-token"]
15247
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
15260
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
15248
15261
  z352.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
15249
15262
  z352.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
15250
15263
  ]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleOutputSchema));
@@ -15254,7 +15267,7 @@ var revokeRole2 = v2Contract.route({
15254
15267
  description: "Revoke role(s) from account(s) on a token.",
15255
15268
  successDescription: "Roles revoked successfully from the specified accounts.",
15256
15269
  tags: ["v2-token"]
15257
- }).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
15270
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
15258
15271
  z352.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
15259
15272
  z352.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
15260
15273
  ]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
@@ -15264,42 +15277,42 @@ var claimIssue2 = v2Contract.route({
15264
15277
  description: "Issue a claim to the token's identity contract using the governance role.",
15265
15278
  successDescription: "Claim issued successfully to token identity.",
15266
15279
  tags: ["v2-token"]
15267
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimIssueInputSchema.omit({ tokenAddress: true }))).output(createAsyncBlockchainMutationResponse(TokenClaimIssueOutputSchema));
15280
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES, "DALP-3003", "DALP-3004"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimIssueInputSchema.omit({ tokenAddress: true }))).output(createAsyncBlockchainMutationResponse(TokenClaimIssueOutputSchema));
15268
15281
  var claimRevoke2 = v2Contract.route({
15269
15282
  method: "POST",
15270
15283
  path: "/token/{tokenAddress}/claim-revoke",
15271
15284
  description: "Revoke a claim from the token's identity contract using the governance role.",
15272
15285
  successDescription: "Claim revoked successfully from token identity.",
15273
15286
  tags: ["v2-token"]
15274
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimRevokeInputSchema.omit({ tokenAddress: true }))).output(createAsyncBlockchainMutationResponse(TokenClaimRevokeOutputSchema));
15287
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES, "DALP-3003"] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenClaimRevokeInputSchema.omit({ tokenAddress: true }))).output(createAsyncBlockchainMutationResponse(TokenClaimRevokeOutputSchema));
15275
15288
  var setMetadata = v2Contract.route({
15276
15289
  method: "POST",
15277
15290
  path: "/token/{tokenAddress}/set-metadata",
15278
15291
  description: "Set metadata entries on a token.",
15279
15292
  successDescription: "Token metadata updated successfully.",
15280
15293
  tags: ["v2-token"]
15281
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetMetadataInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15294
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetMetadataInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15282
15295
  var removeMetadata = v2Contract.route({
15283
15296
  method: "POST",
15284
15297
  path: "/token/{tokenAddress}/remove-metadata",
15285
15298
  description: "Remove a metadata entry from a token.",
15286
15299
  successDescription: "Token metadata entry removed successfully.",
15287
15300
  tags: ["v2-token"]
15288
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRemoveMetadataInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15301
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenRemoveMetadataInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15289
15302
  var setAumFeeBps = v2Contract.route({
15290
15303
  method: "POST",
15291
15304
  path: "/token/{tokenAddress}/set-aum-fee-bps",
15292
15305
  description: "Update the AUM fee rate for a token feature.",
15293
15306
  successDescription: "AUM fee rate updated successfully.",
15294
15307
  tags: ["v2-token"]
15295
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetAumFeeBpsInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15308
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetAumFeeBpsInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15296
15309
  var setAumFeeRecipient = v2Contract.route({
15297
15310
  method: "POST",
15298
15311
  path: "/token/{tokenAddress}/set-aum-fee-recipient",
15299
15312
  description: "Update the AUM fee recipient for a token feature.",
15300
15313
  successDescription: "AUM fee recipient updated successfully.",
15301
15314
  tags: ["v2-token"]
15302
- }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetAumFeeRecipientInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15315
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetAumFeeRecipientInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
15303
15316
  var tokenV2MutationsContract = {
15304
15317
  create: create19,
15305
15318
  mint,
@@ -20979,7 +20992,7 @@ var dalpSerializers = [
20979
20992
  // package.json
20980
20993
  var package_default = {
20981
20994
  name: "@settlemint/dalp-sdk",
20982
- version: "2.1.7-main.22940587248",
20995
+ version: "2.1.7-main.22941761255",
20983
20996
  private: false,
20984
20997
  description: "Fully typed SDK for the DALP tokenization platform API",
20985
20998
  homepage: "https://settlemint.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "2.1.7-main.22940587248",
3
+ "version": "2.1.7-main.22941761255",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",