@settlemint/dalp-sdk 2.1.7-main.25737310867 → 2.1.7-main.25739769313

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 +354 -317
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27738,7 +27738,7 @@ var tokenV2MutationsContract = {
27738
27738
  };
27739
27739
 
27740
27740
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
27741
- import { z as z409 } from "zod";
27741
+ import { z as z410 } from "zod";
27742
27742
 
27743
27743
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
27744
27744
  import { z as z398 } from "zod";
@@ -28553,6 +28553,35 @@ var TokenFeeAccrualEventV2ItemSchema = z407.object({
28553
28553
  });
28554
28554
  var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
28555
28555
 
28556
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
28557
+ import { z as z408 } from "zod";
28558
+ var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
28559
+ var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
28560
+ collectedAt: dateField(),
28561
+ blockNumber: bigintField(),
28562
+ operationType: enumField(EXTERNAL_OPERATION_TYPE_OPTIONS, { sortable: false, facetable: true }),
28563
+ payer: addressField({ defaultOperator: "iLike" }),
28564
+ feeToken: addressField({ defaultOperator: "iLike" }),
28565
+ feeAmount: bigintField()
28566
+ };
28567
+ var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS, {
28568
+ defaultSort: "-collectedAt",
28569
+ globalSearch: false
28570
+ });
28571
+ var TokenExternalFeeCollectionEventV2ItemSchema = z408.object({
28572
+ id: z408.uuid(),
28573
+ payer: ethereumAddress,
28574
+ feeToken: ethereumAddress,
28575
+ operationType: z408.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
28576
+ feeAmount: bigDecimal(),
28577
+ feeAmountExact: apiBigInt,
28578
+ blockNumber: apiBigInt,
28579
+ blockTimestamp: timestamp(),
28580
+ txHash: ethereumHash,
28581
+ logIndex: z408.number().int().nonnegative()
28582
+ });
28583
+ var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
28584
+
28556
28585
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transfer-approvals.schema.ts
28557
28586
  var TRANSFER_APPROVAL_COLLECTION_FIELDS = {
28558
28587
  status: enumField(["pending", "consumed", "revoked"]),
@@ -28566,7 +28595,7 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
28566
28595
  var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
28567
28596
 
28568
28597
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
28569
- import { z as z408 } from "zod";
28598
+ import { z as z409 } from "zod";
28570
28599
  var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
28571
28600
  account: addressField({ defaultOperator: "iLike" }),
28572
28601
  delegate: addressField({ defaultOperator: "iLike" }),
@@ -28580,20 +28609,20 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
28580
28609
  defaultSort: "-delegatedAt",
28581
28610
  globalSearch: false
28582
28611
  });
28583
- var VotingDelegationV2ItemSchema = z408.object({
28584
- id: z408.string().uuid(),
28612
+ var VotingDelegationV2ItemSchema = z409.object({
28613
+ id: z409.string().uuid(),
28585
28614
  delegator: ethereumAddress,
28586
28615
  fromDelegate: ethereumAddress.nullable(),
28587
28616
  toDelegate: ethereumAddress,
28588
28617
  delegatedAt: timestamp(),
28589
28618
  delegatedBlockNumber: apiBigInt,
28590
28619
  delegatedTxHash: ethereumHash,
28591
- delegatedLogIndex: z408.number().int().nonnegative(),
28620
+ delegatedLogIndex: z409.number().int().nonnegative(),
28592
28621
  undelegatedAt: timestamp().nullable(),
28593
28622
  undelegatedBlockNumber: apiBigInt.nullable(),
28594
28623
  undelegatedTxHash: ethereumHash.nullable(),
28595
- undelegatedLogIndex: z408.number().int().nonnegative().nullable(),
28596
- isActive: z408.boolean()
28624
+ undelegatedLogIndex: z409.number().int().nonnegative().nullable(),
28625
+ isActive: z409.boolean()
28597
28626
  });
28598
28627
  var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
28599
28628
 
@@ -28611,21 +28640,21 @@ var allowance = v2Contract.route({
28611
28640
  description: "Get token allowance for a specific owner/spender pair.",
28612
28641
  successDescription: "Token allowance details retrieved successfully.",
28613
28642
  tags: [V2_TAG.token]
28614
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z409.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
28643
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z410.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
28615
28644
  var holder = v2Contract.route({
28616
28645
  method: "GET",
28617
28646
  path: "/tokens/{tokenAddress}/holder-balances",
28618
28647
  description: "Get a specific token holder's balance information.",
28619
28648
  successDescription: "Token holder balance details retrieved successfully.",
28620
28649
  tags: [V2_TAG.token]
28621
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z409.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
28650
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z410.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
28622
28651
  var holders = v2Contract.route({
28623
28652
  method: "GET",
28624
28653
  path: "/tokens/{tokenAddress}/holders",
28625
28654
  description: "Get token holders and their balances.",
28626
28655
  successDescription: "List of token holders with balance information.",
28627
28656
  tags: [V2_TAG.token]
28628
- }).input(v2Input.paramsQuery(z409.object({
28657
+ }).input(v2Input.paramsQuery(z410.object({
28629
28658
  tokenAddress: ethereumAddress.meta({
28630
28659
  description: "The token contract address",
28631
28660
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28637,7 +28666,7 @@ var actions = v2Contract.route({
28637
28666
  description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28638
28667
  successDescription: "Paginated list of actions targeting the specified token.",
28639
28668
  tags: [V2_TAG.token]
28640
- }).input(v2Input.paramsQuery(z409.object({
28669
+ }).input(v2Input.paramsQuery(z410.object({
28641
28670
  tokenAddress: ethereumAddress.meta({
28642
28671
  description: "The token contract address to filter actions by",
28643
28672
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28649,7 +28678,7 @@ var events2 = v2Contract.route({
28649
28678
  description: "List token events with pagination, filtering, sorting, and faceted counts.",
28650
28679
  successDescription: "Paginated list of token events with metadata and pagination links.",
28651
28680
  tags: [V2_TAG.token]
28652
- }).input(v2Input.paramsQuery(z409.object({
28681
+ }).input(v2Input.paramsQuery(z410.object({
28653
28682
  tokenAddress: ethereumAddress.meta({
28654
28683
  description: "The token contract address",
28655
28684
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28661,7 +28690,7 @@ var denominationAssets = v2Contract.route({
28661
28690
  description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28662
28691
  successDescription: "Paginated list of denomination assets used by the specified bond.",
28663
28692
  tags: [V2_TAG.token]
28664
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
28693
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
28665
28694
  var compliance = v2Contract.route({
28666
28695
  method: "GET",
28667
28696
  path: "/tokens/{tokenAddress}/compliance-modules",
@@ -28696,7 +28725,7 @@ var transferApprovals = v2Contract.route({
28696
28725
  description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
28697
28726
  successDescription: "List of transfer approvals with their current status.",
28698
28727
  tags: [V2_TAG.compliance]
28699
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
28728
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
28700
28729
  var price = v2Contract.route({
28701
28730
  method: "GET",
28702
28731
  path: "/tokens/{tokenAddress}/price",
@@ -28710,35 +28739,42 @@ var conversionTriggers = v2Contract.route({
28710
28739
  description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28711
28740
  successDescription: "Paginated list of conversion triggers with effective pricing.",
28712
28741
  tags: [V2_TAG.token]
28713
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
28742
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
28714
28743
  var votingDelegations = v2Contract.route({
28715
28744
  method: "GET",
28716
28745
  path: "/tokens/{tokenAddress}/voting-delegations",
28717
28746
  description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
28718
28747
  successDescription: "Paginated list of voting delegation lifecycle rows.",
28719
28748
  tags: [V2_TAG.token]
28720
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
28749
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
28721
28750
  var historicalBalances = v2Contract.route({
28722
28751
  method: "GET",
28723
28752
  path: "/tokens/{tokenAddress}/historical-balances",
28724
28753
  description: "List historical balance checkpoints for a token's historical-balances feature. Account rows are returned by default; total-supply rows are reachable through filter[kind]=totalSupply or filter[account]=0x0000000000000000000000000000000000000000.",
28725
28754
  successDescription: "Paginated list of historical balance checkpoints.",
28726
28755
  tags: [V2_TAG.token]
28727
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
28756
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
28728
28757
  var transactionFeeCollections = v2Contract.route({
28729
28758
  method: "GET",
28730
28759
  path: "/tokens/{tokenAddress}/transaction-fee/collections",
28731
28760
  description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
28732
28761
  successDescription: "Paginated list of transaction-fee collections.",
28733
28762
  tags: [V2_TAG.token]
28734
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
28763
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
28735
28764
  var feeAccrualEvents = v2Contract.route({
28736
28765
  method: "GET",
28737
28766
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
28738
28767
  description: "List fee-accrual events for a token's transaction-fee-accounting feature. Each row captures the full FeeAccrued payload (payer, from, to, fee type, operation amount, fee bps, fee amount). Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
28739
28768
  successDescription: "Paginated list of fee-accrual events.",
28740
28769
  tags: [V2_TAG.token]
28741
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
28770
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
28771
+ var externalFeeCollectionEvents = v2Contract.route({
28772
+ method: "GET",
28773
+ path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
28774
+ description: "List external-fee collection events for a token's external-transaction-fee feature. Each row captures the full ExternalFeeCollected payload (payer, fee token, operation type, fee amount). Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
28775
+ successDescription: "Paginated list of external-fee collection events.",
28776
+ tags: [V2_TAG.token]
28777
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
28742
28778
  var tokenV2ReadsContract = {
28743
28779
  read: read27,
28744
28780
  allowance,
@@ -28757,11 +28793,12 @@ var tokenV2ReadsContract = {
28757
28793
  historicalBalances,
28758
28794
  transactionFeeCollections,
28759
28795
  feeAccrualEvents,
28796
+ externalFeeCollectionEvents,
28760
28797
  price
28761
28798
  };
28762
28799
 
28763
28800
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
28764
- import { z as z410 } from "zod";
28801
+ import { z as z411 } from "zod";
28765
28802
  var statsBondStatus = v2Contract.route({
28766
28803
  method: "GET",
28767
28804
  path: "/tokens/{tokenAddress}/stats/bond-status",
@@ -28782,25 +28819,25 @@ var statsTotalSupply = v2Contract.route({
28782
28819
  description: "Get total supply history statistics for a specific token.",
28783
28820
  successDescription: "Token total supply history statistics.",
28784
28821
  tags: [V2_TAG.tokenStats]
28785
- }).input(v2Input.paramsQuery(z410.object({
28822
+ }).input(v2Input.paramsQuery(z411.object({
28786
28823
  tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
28787
- }), z410.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
28824
+ }), z411.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
28788
28825
  var statsSupplyChanges = v2Contract.route({
28789
28826
  method: "GET",
28790
28827
  path: "/tokens/{tokenAddress}/stats/supply-changes",
28791
28828
  description: "Get supply changes history (minted/burned) statistics for a specific token.",
28792
28829
  successDescription: "Token supply changes history statistics.",
28793
28830
  tags: [V2_TAG.tokenStats]
28794
- }).input(v2Input.paramsQuery(z410.object({
28831
+ }).input(v2Input.paramsQuery(z411.object({
28795
28832
  tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
28796
- }), z410.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
28833
+ }), z411.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
28797
28834
  var statsVolume = v2Contract.route({
28798
28835
  method: "GET",
28799
28836
  path: "/tokens/{tokenAddress}/stats/volume",
28800
28837
  description: "Get total volume history statistics for a specific token.",
28801
28838
  successDescription: "Token total volume history statistics.",
28802
28839
  tags: [V2_TAG.tokenStats]
28803
- }).input(v2Input.paramsQuery(z410.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z410.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
28840
+ }).input(v2Input.paramsQuery(z411.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z411.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
28804
28841
  var statsWalletDistribution = v2Contract.route({
28805
28842
  method: "GET",
28806
28843
  path: "/tokens/{tokenAddress}/stats/wallet-distribution",
@@ -28850,7 +28887,7 @@ var tokenV2Contract = {
28850
28887
  };
28851
28888
 
28852
28889
  // ../../packages/core/validation/src/transaction-request-state.ts
28853
- import { z as z411 } from "zod";
28890
+ import { z as z412 } from "zod";
28854
28891
  var transactionRequestStates = [
28855
28892
  "RECEIVED",
28856
28893
  "QUEUED",
@@ -28865,7 +28902,7 @@ var transactionRequestStates = [
28865
28902
  "CANCELLED"
28866
28903
  ];
28867
28904
  var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
28868
- var TransactionRequestStateSchema = z411.enum(transactionRequestStates).meta({
28905
+ var TransactionRequestStateSchema = z412.enum(transactionRequestStates).meta({
28869
28906
  description: "Current state in the transaction request lifecycle",
28870
28907
  examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
28871
28908
  });
@@ -28906,96 +28943,96 @@ var transactionSubStatuses = [
28906
28943
  "WORKFLOW_BATCH_COMPLETED",
28907
28944
  "WORKFLOW_BATCH_FAILED"
28908
28945
  ];
28909
- var TransactionSubStatusSchema = z411.enum(transactionSubStatuses).meta({
28946
+ var TransactionSubStatusSchema = z412.enum(transactionSubStatuses).meta({
28910
28947
  description: "Detailed sub-status for transaction failures",
28911
28948
  examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
28912
28949
  });
28913
28950
 
28914
28951
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
28915
- import { z as z412 } from "zod";
28916
- var TransactionForceRetryInputSchema = z412.object({
28917
- transactionId: z412.uuid().meta({
28952
+ import { z as z413 } from "zod";
28953
+ var TransactionForceRetryInputSchema = z413.object({
28954
+ transactionId: z413.uuid().meta({
28918
28955
  description: "Queue transaction identifier (UUIDv7) to retry",
28919
28956
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28920
28957
  })
28921
28958
  });
28922
- var TransactionForceRetryBodySchema = z412.object({
28923
- gasPrice: z412.string().optional().meta({
28959
+ var TransactionForceRetryBodySchema = z413.object({
28960
+ gasPrice: z413.string().optional().meta({
28924
28961
  description: "Override gas price in wei (decimal string)",
28925
28962
  examples: ["20000000000"]
28926
28963
  }),
28927
- nonce: z412.number().int().nonnegative().optional().meta({
28964
+ nonce: z413.number().int().nonnegative().optional().meta({
28928
28965
  description: "Override nonce for the retried transaction",
28929
28966
  examples: [42]
28930
28967
  })
28931
28968
  }).default({});
28932
- var TransactionForceRetryResultSchema = z412.object({
28933
- transactionId: z412.uuid().meta({ description: "The requeued transaction ID" }),
28969
+ var TransactionForceRetryResultSchema = z413.object({
28970
+ transactionId: z413.uuid().meta({ description: "The requeued transaction ID" }),
28934
28971
  previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
28935
28972
  status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
28936
28973
  });
28937
28974
  var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
28938
- var TransactionForceFailInputSchema = z412.object({
28939
- transactionId: z412.uuid().meta({
28975
+ var TransactionForceFailInputSchema = z413.object({
28976
+ transactionId: z413.uuid().meta({
28940
28977
  description: "Queue transaction identifier (UUIDv7) to force-fail",
28941
28978
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28942
28979
  })
28943
28980
  });
28944
- var TransactionForceFailBodySchema = z412.object({
28945
- reason: z412.string().min(1).max(1000).meta({
28981
+ var TransactionForceFailBodySchema = z413.object({
28982
+ reason: z413.string().min(1).max(1000).meta({
28946
28983
  description: "Human-readable reason for forcing this transaction to failed state",
28947
28984
  examples: ["Manual intervention: stuck transaction after nonce conflict"]
28948
28985
  })
28949
28986
  });
28950
- var TransactionForceFailResultSchema = z412.object({
28951
- transactionId: z412.uuid().meta({ description: "The force-failed transaction ID" }),
28987
+ var TransactionForceFailResultSchema = z413.object({
28988
+ transactionId: z413.uuid().meta({ description: "The force-failed transaction ID" }),
28952
28989
  previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
28953
28990
  status: transactionRequestState().meta({ description: "New state (FAILED)" }),
28954
- reason: z412.string().meta({ description: "The reason provided for the force-fail" })
28991
+ reason: z413.string().meta({ description: "The reason provided for the force-fail" })
28955
28992
  });
28956
28993
  var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
28957
- var TransactionForceNonceInputSchema = z412.object({
28958
- transactionId: z412.uuid().meta({
28994
+ var TransactionForceNonceInputSchema = z413.object({
28995
+ transactionId: z413.uuid().meta({
28959
28996
  description: "Queue transaction identifier — the nonce is forced on its sender wallet",
28960
28997
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28961
28998
  })
28962
28999
  });
28963
- var TransactionForceNonceBodySchema = z412.object({
28964
- nonce: z412.number().int().nonnegative().meta({
29000
+ var TransactionForceNonceBodySchema = z413.object({
29001
+ nonce: z413.number().int().nonnegative().meta({
28965
29002
  description: "Nonce value to force-set on the sender's nonce tracker",
28966
29003
  examples: [42]
28967
29004
  })
28968
29005
  });
28969
- var TransactionForceNonceResultSchema = z412.object({
28970
- previous: z412.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
28971
- new: z412.number().meta({ description: "New nonce value after force-set" })
29006
+ var TransactionForceNonceResultSchema = z413.object({
29007
+ previous: z413.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
29008
+ new: z413.number().meta({ description: "New nonce value after force-set" })
28972
29009
  });
28973
29010
  var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
28974
29011
 
28975
29012
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
28976
- import { z as z413 } from "zod";
28977
- var TransactionV2CancelInputSchema = z413.object({
28978
- transactionId: z413.uuid().meta({
29013
+ import { z as z414 } from "zod";
29014
+ var TransactionV2CancelInputSchema = z414.object({
29015
+ transactionId: z414.uuid().meta({
28979
29016
  description: "Queue transaction identifier (UUIDv7) to cancel",
28980
29017
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28981
29018
  })
28982
29019
  });
28983
- var TransactionCancelResultSchema = z413.object({
28984
- status: z413.enum(["cancelled", "cancellation_pending", "error"]).meta({
29020
+ var TransactionCancelResultSchema = z414.object({
29021
+ status: z414.enum(["cancelled", "cancellation_pending", "error"]).meta({
28985
29022
  description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
28986
29023
  examples: ["cancelled", "cancellation_pending"]
28987
29024
  }),
28988
- cancelTransactionId: z413.string().optional().meta({
29025
+ cancelTransactionId: z414.string().optional().meta({
28989
29026
  description: "RBF replacement transaction ID when cancellation is pending on-chain"
28990
29027
  }),
28991
- message: z413.string().optional().meta({
29028
+ message: z414.string().optional().meta({
28992
29029
  description: "Human-readable error or status message"
28993
29030
  })
28994
29031
  });
28995
29032
  var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
28996
29033
 
28997
29034
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
28998
- import { z as z414 } from "zod";
29035
+ import { z as z415 } from "zod";
28999
29036
  var TRANSACTION_COLLECTION_FIELDS = {
29000
29037
  status: enumField([...transactionRequestStates]),
29001
29038
  operationType: textField(),
@@ -29008,12 +29045,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
29008
29045
  defaultSort: "createdAt",
29009
29046
  globalSearch: true
29010
29047
  });
29011
- var TransactionListItemSchema = z414.object({
29012
- transactionId: z414.uuid().meta({
29048
+ var TransactionListItemSchema = z415.object({
29049
+ transactionId: z415.uuid().meta({
29013
29050
  description: "Queue transaction identifier (UUIDv7)",
29014
29051
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
29015
29052
  }),
29016
- kind: z414.string().meta({
29053
+ kind: z415.string().meta({
29017
29054
  description: "Mutation kind submitted to the queue",
29018
29055
  examples: ["token.create", "token.mint"]
29019
29056
  }),
@@ -29021,19 +29058,19 @@ var TransactionListItemSchema = z414.object({
29021
29058
  description: "Current transaction queue state",
29022
29059
  examples: ["QUEUED", "COMPLETED", "FAILED"]
29023
29060
  }),
29024
- subStatus: z414.string().nullable().meta({
29061
+ subStatus: z415.string().nullable().meta({
29025
29062
  description: "Optional queue sub-status with finer-grained detail",
29026
29063
  examples: ["TIMEOUT", null]
29027
29064
  }),
29028
- fromAddress: z414.string().meta({
29065
+ fromAddress: z415.string().meta({
29029
29066
  description: "Sender wallet address",
29030
29067
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
29031
29068
  }),
29032
- chainId: z414.number().int().meta({
29069
+ chainId: z415.number().int().meta({
29033
29070
  description: "Target chain ID",
29034
29071
  examples: [1]
29035
29072
  }),
29036
- transactionHash: z414.string().nullable().meta({
29073
+ transactionHash: z415.string().nullable().meta({
29037
29074
  description: "Primary transaction hash once broadcast",
29038
29075
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
29039
29076
  }),
@@ -29053,19 +29090,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
29053
29090
  var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
29054
29091
 
29055
29092
  // ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
29056
- import { z as z415 } from "zod";
29057
- var TransactionStatusInputSchema = z415.object({
29058
- transactionId: z415.uuid().meta({
29093
+ import { z as z416 } from "zod";
29094
+ var TransactionStatusInputSchema = z416.object({
29095
+ transactionId: z416.uuid().meta({
29059
29096
  description: "Queue transaction identifier (UUIDv7)",
29060
29097
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
29061
29098
  })
29062
29099
  });
29063
- var TransactionStatusOutputSchema = z415.object({
29064
- transactionId: z415.uuid().meta({
29100
+ var TransactionStatusOutputSchema = z416.object({
29101
+ transactionId: z416.uuid().meta({
29065
29102
  description: "Queue transaction identifier (UUIDv7)",
29066
29103
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
29067
29104
  }),
29068
- kind: z415.string().meta({
29105
+ kind: z416.string().meta({
29069
29106
  description: "Mutation kind submitted to the queue",
29070
29107
  examples: ["token.create", "token.mint"]
29071
29108
  }),
@@ -29073,23 +29110,23 @@ var TransactionStatusOutputSchema = z415.object({
29073
29110
  description: "Current transaction queue state",
29074
29111
  examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
29075
29112
  }),
29076
- subStatus: z415.string().nullable().meta({
29113
+ subStatus: z416.string().nullable().meta({
29077
29114
  description: "Optional queue sub-status with finer-grained progress or failure detail",
29078
29115
  examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
29079
29116
  }),
29080
- transactionHash: z415.string().nullable().meta({
29117
+ transactionHash: z416.string().nullable().meta({
29081
29118
  description: "Primary transaction hash once broadcast",
29082
29119
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
29083
29120
  }),
29084
- transactionHashes: z415.array(z415.string()).optional().meta({
29121
+ transactionHashes: z416.array(z416.string()).optional().meta({
29085
29122
  description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
29086
29123
  examples: [["0xabc...", "0xdef..."]]
29087
29124
  }),
29088
- blockNumber: z415.string().nullable().meta({
29125
+ blockNumber: z416.string().nullable().meta({
29089
29126
  description: "Confirmed block number when available",
29090
29127
  examples: ["12345678", null]
29091
29128
  }),
29092
- errorMessage: z415.string().nullable().meta({
29129
+ errorMessage: z416.string().nullable().meta({
29093
29130
  description: "Human-readable error or timeout detail when available",
29094
29131
  examples: ["Execution reverted", "Receipt not found after repeated checks", null]
29095
29132
  }),
@@ -29168,12 +29205,12 @@ var transactionV2Contract = {
29168
29205
  };
29169
29206
 
29170
29207
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
29171
- import { z as z421 } from "zod";
29208
+ import { z as z422 } from "zod";
29172
29209
 
29173
29210
  // ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
29174
- import { z as z416 } from "zod";
29175
- var UserReadByNationalIdInputSchema = z416.object({
29176
- nationalId: z416.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
29211
+ import { z as z417 } from "zod";
29212
+ var UserReadByNationalIdInputSchema = z417.object({
29213
+ nationalId: z417.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
29177
29214
  });
29178
29215
 
29179
29216
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
@@ -29191,13 +29228,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
29191
29228
  var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
29192
29229
 
29193
29230
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
29194
- import { z as z417 } from "zod";
29195
- var TokenAssetV2Schema = z417.object({
29231
+ import { z as z418 } from "zod";
29232
+ var TokenAssetV2Schema = z418.object({
29196
29233
  id: ethereumAddress.meta({
29197
29234
  description: "The token contract address",
29198
29235
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
29199
29236
  }),
29200
- name: z417.string().meta({
29237
+ name: z418.string().meta({
29201
29238
  description: "The token name",
29202
29239
  examples: ["Bond Token", "Equity Share"]
29203
29240
  }),
@@ -29217,19 +29254,19 @@ var TokenAssetV2Schema = z417.object({
29217
29254
  description: "The total supply of the token (raw on-chain uint256)",
29218
29255
  examples: ["1000000000000000000000", "101000000000000000000000000"]
29219
29256
  }),
29220
- bond: z417.object({
29221
- isMatured: z417.boolean().meta({
29257
+ bond: z418.object({
29258
+ isMatured: z418.boolean().meta({
29222
29259
  description: "Whether the bond is matured",
29223
29260
  examples: [true, false]
29224
29261
  })
29225
29262
  }).optional().nullable().meta({ description: "The bond details", examples: [] }),
29226
- yield: z417.object({
29227
- schedule: z417.object({
29263
+ yield: z418.object({
29264
+ schedule: z418.object({
29228
29265
  id: ethereumAddress.meta({
29229
29266
  description: "The yield schedule contract address",
29230
29267
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
29231
29268
  }),
29232
- denominationAsset: z417.object({
29269
+ denominationAsset: z418.object({
29233
29270
  id: ethereumAddress.meta({
29234
29271
  description: "The denomination asset contract address",
29235
29272
  examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
@@ -29249,8 +29286,8 @@ var TokenAssetV2Schema = z417.object({
29249
29286
  }).nullable().meta({ description: "The yield schedule details", examples: [] })
29250
29287
  }).nullable().meta({ description: "The yield details", examples: [] })
29251
29288
  });
29252
- var UserAssetBalanceV2ItemSchema = z417.object({
29253
- id: z417.uuid().meta({
29289
+ var UserAssetBalanceV2ItemSchema = z418.object({
29290
+ id: z418.uuid().meta({
29254
29291
  description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
29255
29292
  examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
29256
29293
  }),
@@ -29270,7 +29307,7 @@ var UserAssetBalanceV2ItemSchema = z417.object({
29270
29307
  description: "Balance multiplied by the token's resolved price, expressed in the organization's base currency. Null when no FX/price path is available for the token.",
29271
29308
  examples: ["5.00", null]
29272
29309
  }),
29273
- priceInBaseCurrencyReliable: z417.boolean().meta({
29310
+ priceInBaseCurrencyReliable: z418.boolean().meta({
29274
29311
  description: "Whether the FX chain used to populate the token's resolved base-currency price was fully reliable (all hops via active feeds). False when no price is available or when any hop fell back to a stale/backfilled rate.",
29275
29312
  examples: [true, false]
29276
29313
  }),
@@ -29322,10 +29359,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
29322
29359
  var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
29323
29360
 
29324
29361
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
29325
- import { z as z420 } from "zod";
29362
+ import { z as z421 } from "zod";
29326
29363
 
29327
29364
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
29328
- import { z as z418 } from "zod";
29365
+ import { z as z419 } from "zod";
29329
29366
  var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
29330
29367
  fileName: textField(),
29331
29368
  documentType: enumField(kycDocumentTypes, { facetable: true }),
@@ -29336,19 +29373,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
29336
29373
  var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
29337
29374
  defaultSort: "uploadedAt"
29338
29375
  });
29339
- var KycProfileVersionDocumentsV2ListItemSchema = z418.object({
29340
- id: z418.string(),
29376
+ var KycProfileVersionDocumentsV2ListItemSchema = z419.object({
29377
+ id: z419.string(),
29341
29378
  documentType: kycDocumentType(),
29342
- fileName: z418.string(),
29343
- fileSize: z418.number(),
29344
- mimeType: z418.string(),
29379
+ fileName: z419.string(),
29380
+ fileSize: z419.number(),
29381
+ mimeType: z419.string(),
29345
29382
  uploadedAt: timestamp(),
29346
- uploadedBy: z418.string().nullable()
29383
+ uploadedBy: z419.string().nullable()
29347
29384
  });
29348
29385
  var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
29349
29386
 
29350
29387
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
29351
- import { z as z419 } from "zod";
29388
+ import { z as z420 } from "zod";
29352
29389
  var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
29353
29390
  var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
29354
29391
  var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
@@ -29361,21 +29398,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
29361
29398
  var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
29362
29399
  defaultSort: "versionNumber"
29363
29400
  });
29364
- var KycProfileVersionsV2ListItemSchema = z419.object({
29365
- id: z419.string(),
29366
- versionNumber: z419.number(),
29401
+ var KycProfileVersionsV2ListItemSchema = z420.object({
29402
+ id: z420.string(),
29403
+ versionNumber: z420.number(),
29367
29404
  status: kycVersionStatus(),
29368
29405
  createdAt: timestamp(),
29369
- createdBy: z419.string().nullable(),
29406
+ createdBy: z420.string().nullable(),
29370
29407
  submittedAt: timestamp().nullable(),
29371
- submittedBy: z419.string().nullable(),
29408
+ submittedBy: z420.string().nullable(),
29372
29409
  reviewedAt: timestamp().nullable(),
29373
- reviewedBy: z419.string().nullable(),
29374
- reviewOutcome: z419.enum(KYC_REVIEW_OUTCOMES).nullable(),
29375
- isDraft: z419.boolean(),
29376
- isUnderReview: z419.boolean(),
29377
- isApproved: z419.boolean(),
29378
- isCurrent: z419.boolean()
29410
+ reviewedBy: z420.string().nullable(),
29411
+ reviewOutcome: z420.enum(KYC_REVIEW_OUTCOMES).nullable(),
29412
+ isDraft: z420.boolean(),
29413
+ isUnderReview: z420.boolean(),
29414
+ isApproved: z420.boolean(),
29415
+ isCurrent: z420.boolean()
29379
29416
  });
29380
29417
  var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
29381
29418
 
@@ -29393,14 +29430,14 @@ var versionsList = v2Contract.route({
29393
29430
  description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
29394
29431
  successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
29395
29432
  tags: [V2_TAG.userKyc]
29396
- }).input(v2Input.paramsQuery(z420.object({ userId: z420.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
29433
+ }).input(v2Input.paramsQuery(z421.object({ userId: z421.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
29397
29434
  var versionsCreate = v2Contract.route({
29398
29435
  method: "POST",
29399
29436
  path: "/kyc-profiles/{userId}/versions",
29400
29437
  description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
29401
29438
  successDescription: "KYC profile version created successfully.",
29402
29439
  tags: [V2_TAG.userKyc]
29403
- }).input(v2Input.paramsBody(z420.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
29440
+ }).input(v2Input.paramsBody(z421.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
29404
29441
  var versionRead = v2Contract.route({
29405
29442
  method: "GET",
29406
29443
  path: "/kyc-profile-versions/{versionId}",
@@ -29414,7 +29451,7 @@ var versionUpdate = v2Contract.route({
29414
29451
  description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
29415
29452
  successDescription: "KYC profile version updated successfully.",
29416
29453
  tags: [V2_TAG.userKyc]
29417
- }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
29454
+ }).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
29418
29455
  var versionSubmit = v2Contract.route({
29419
29456
  method: "POST",
29420
29457
  path: "/kyc-profile-versions/{versionId}/submissions",
@@ -29428,28 +29465,28 @@ var versionApprove = v2Contract.route({
29428
29465
  description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
29429
29466
  successDescription: "KYC profile version approved.",
29430
29467
  tags: [V2_TAG.userKyc]
29431
- }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
29468
+ }).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
29432
29469
  var versionReject = v2Contract.route({
29433
29470
  method: "POST",
29434
29471
  path: "/kyc-profile-versions/{versionId}/rejections",
29435
29472
  description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
29436
29473
  successDescription: "KYC profile version rejected.",
29437
29474
  tags: [V2_TAG.userKyc]
29438
- }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
29475
+ }).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
29439
29476
  var versionRequestUpdate = v2Contract.route({
29440
29477
  method: "POST",
29441
29478
  path: "/kyc-profile-versions/{versionId}/update-requests",
29442
29479
  description: "Request changes on a KYC version under review. Creates an action request for the user.",
29443
29480
  successDescription: "Update request created successfully.",
29444
29481
  tags: [V2_TAG.userKyc]
29445
- }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
29482
+ }).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
29446
29483
  var documentsList = v2Contract.route({
29447
29484
  method: "GET",
29448
29485
  path: "/kyc-profile-versions/{versionId}/documents",
29449
29486
  description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
29450
29487
  successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
29451
29488
  tags: [V2_TAG.userKyc]
29452
- }).input(v2Input.paramsQuery(z420.object({ versionId: z420.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
29489
+ }).input(v2Input.paramsQuery(z421.object({ versionId: z421.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
29453
29490
  var documentsDelete = v2Contract.route({
29454
29491
  method: "DELETE",
29455
29492
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
@@ -29463,14 +29500,14 @@ var documentsGetUploadUrl = v2Contract.route({
29463
29500
  description: "Generate a presigned URL for uploading a KYC document directly to storage.",
29464
29501
  successDescription: "Upload URL generated successfully.",
29465
29502
  tags: [V2_TAG.userKyc]
29466
- }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
29503
+ }).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
29467
29504
  var documentsConfirmUpload = v2Contract.route({
29468
29505
  method: "POST",
29469
29506
  path: "/kyc-profile-versions/{versionId}/documents",
29470
29507
  description: "Confirm a document upload after successfully uploading to the presigned URL.",
29471
29508
  successDescription: "Document upload confirmed.",
29472
29509
  tags: [V2_TAG.userKyc]
29473
- }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
29510
+ }).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
29474
29511
  var documentsGetDownloadUrl = v2Contract.route({
29475
29512
  method: "POST",
29476
29513
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
@@ -29548,14 +29585,14 @@ var readByUserId2 = v2Contract.route({
29548
29585
  description: "Read a single user by their internal database ID.",
29549
29586
  successDescription: "User retrieved successfully.",
29550
29587
  tags: [V2_TAG.user]
29551
- }).input(v2Input.params(z421.object({ userId: z421.string() }))).output(createSingleResponse(UserReadOutputSchema));
29588
+ }).input(v2Input.params(z422.object({ userId: z422.string() }))).output(createSingleResponse(UserReadOutputSchema));
29552
29589
  var readByWallet3 = v2Contract.route({
29553
29590
  method: "GET",
29554
29591
  path: "/wallets/{wallet}/user",
29555
29592
  description: "Read a single user by their Ethereum wallet address.",
29556
29593
  successDescription: "User retrieved successfully.",
29557
29594
  tags: [V2_TAG.user]
29558
- }).input(v2Input.params(z421.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
29595
+ }).input(v2Input.params(z422.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
29559
29596
  var readByNationalId = v2Contract.route({
29560
29597
  method: "GET",
29561
29598
  path: "/national-ids/{nationalId}/user",
@@ -29664,30 +29701,30 @@ var userV2Contract = {
29664
29701
  };
29665
29702
 
29666
29703
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
29667
- import { z as z422 } from "zod";
29668
- var WebhooksV2ChainOfCustodyInputSchema = z422.object({
29669
- evtId: z422.string().trim().min(1)
29670
- });
29671
- var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z422.object({
29672
- evtId: z422.string(),
29673
- hops: z422.array(z422.object({
29674
- stage: z422.string(),
29675
- contentHash: z422.string(),
29676
- signedBy: z422.string().optional(),
29677
- recordedAt: z422.coerce.date()
29704
+ import { z as z423 } from "zod";
29705
+ var WebhooksV2ChainOfCustodyInputSchema = z423.object({
29706
+ evtId: z423.string().trim().min(1)
29707
+ });
29708
+ var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z423.object({
29709
+ evtId: z423.string(),
29710
+ hops: z423.array(z423.object({
29711
+ stage: z423.string(),
29712
+ contentHash: z423.string(),
29713
+ signedBy: z423.string().optional(),
29714
+ recordedAt: z423.coerce.date()
29678
29715
  })),
29679
- merkleRoot: z422.string(),
29680
- platformSignature: z422.string()
29716
+ merkleRoot: z423.string(),
29717
+ platformSignature: z423.string()
29681
29718
  }));
29682
29719
 
29683
29720
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
29684
- import { z as z424 } from "zod";
29721
+ import { z as z425 } from "zod";
29685
29722
 
29686
29723
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
29687
- import { z as z423 } from "zod";
29688
- var WebhookPayloadShapeSchema = z423.enum(["thin", "fat"]);
29689
- var WebhookBreakerStateSchema = z423.enum(["closed", "half_open", "open"]);
29690
- var WebhookDeliveryFailureClassSchema = z423.enum([
29724
+ import { z as z424 } from "zod";
29725
+ var WebhookPayloadShapeSchema = z424.enum(["thin", "fat"]);
29726
+ var WebhookBreakerStateSchema = z424.enum(["closed", "half_open", "open"]);
29727
+ var WebhookDeliveryFailureClassSchema = z424.enum([
29691
29728
  "DNS_FAIL",
29692
29729
  "TLS_FAIL",
29693
29730
  "CONNECT_TIMEOUT",
@@ -29699,35 +29736,35 @@ var WebhookDeliveryFailureClassSchema = z423.enum([
29699
29736
  "RECEIPT_INVALID_SIG",
29700
29737
  "RECEIPT_HASH_MISMATCH"
29701
29738
  ]);
29702
- var WebhookFinalityStateSchema = z423.enum(["pending", "provisional", "final", "retracted", "recalled"]);
29703
- var WebhookSigningSecretStatusSchema = z423.enum(["active", "previous", "revoked"]);
29704
- var WebhookFatEventsAcknowledgmentSchema = z423.object({
29705
- acknowledgedAt: z423.coerce.date(),
29706
- acknowledgedByUserId: z423.string(),
29707
- fieldsAcknowledged: z423.array(z423.string())
29708
- });
29709
- var WebhookEndpointSchema = z423.object({
29710
- id: z423.uuid(),
29711
- tenantId: z423.string(),
29712
- systemId: z423.string(),
29713
- url: z423.url(),
29714
- displayName: z423.string().nullable(),
29715
- subscriptions: z423.array(z423.string()),
29739
+ var WebhookFinalityStateSchema = z424.enum(["pending", "provisional", "final", "retracted", "recalled"]);
29740
+ var WebhookSigningSecretStatusSchema = z424.enum(["active", "previous", "revoked"]);
29741
+ var WebhookFatEventsAcknowledgmentSchema = z424.object({
29742
+ acknowledgedAt: z424.coerce.date(),
29743
+ acknowledgedByUserId: z424.string(),
29744
+ fieldsAcknowledged: z424.array(z424.string())
29745
+ });
29746
+ var WebhookEndpointSchema = z424.object({
29747
+ id: z424.uuid(),
29748
+ tenantId: z424.string(),
29749
+ systemId: z424.string(),
29750
+ url: z424.url(),
29751
+ displayName: z424.string().nullable(),
29752
+ subscriptions: z424.array(z424.string()),
29716
29753
  defaultPayloadShape: WebhookPayloadShapeSchema,
29717
- counterSignedReceipts: z423.boolean(),
29754
+ counterSignedReceipts: z424.boolean(),
29718
29755
  breakerState: WebhookBreakerStateSchema,
29719
- disabledAt: z423.coerce.date().nullable(),
29720
- disabledReason: z423.string().nullable(),
29756
+ disabledAt: z424.coerce.date().nullable(),
29757
+ disabledReason: z424.string().nullable(),
29721
29758
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
29722
- secret: z423.object({
29723
- activeVersion: z423.number().int().positive().nullable(),
29724
- previousVersion: z423.number().int().positive().nullable(),
29725
- previousRevokesAt: z423.coerce.date().nullable(),
29726
- lastUsedAt: z423.coerce.date().nullable()
29759
+ secret: z424.object({
29760
+ activeVersion: z424.number().int().positive().nullable(),
29761
+ previousVersion: z424.number().int().positive().nullable(),
29762
+ previousRevokesAt: z424.coerce.date().nullable(),
29763
+ lastUsedAt: z424.coerce.date().nullable()
29727
29764
  }),
29728
- createdAt: z423.coerce.date(),
29729
- updatedAt: z423.coerce.date(),
29730
- createdByUserId: z423.string().nullable()
29765
+ createdAt: z424.coerce.date(),
29766
+ updatedAt: z424.coerce.date(),
29767
+ createdByUserId: z424.string().nullable()
29731
29768
  });
29732
29769
  var WEBHOOKS_COLLECTION_FIELDS = {
29733
29770
  displayName: textField(),
@@ -29746,44 +29783,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
29746
29783
  var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
29747
29784
 
29748
29785
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
29749
- var WebhooksV2CreateInputSchema = z424.object({
29750
- url: z424.url(),
29751
- displayName: z424.string().trim().min(1).max(200).optional(),
29752
- subscriptions: z424.array(z424.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
29786
+ var WebhooksV2CreateInputSchema = z425.object({
29787
+ url: z425.url(),
29788
+ displayName: z425.string().trim().min(1).max(200).optional(),
29789
+ subscriptions: z425.array(z425.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
29753
29790
  defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
29754
- counterSignedReceipts: z424.boolean().default(false)
29791
+ counterSignedReceipts: z425.boolean().default(false)
29755
29792
  });
29756
29793
  var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
29757
- signingSecret: z424.string().nullable()
29794
+ signingSecret: z425.string().nullable()
29758
29795
  });
29759
29796
  var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
29760
29797
 
29761
29798
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
29762
- import { z as z425 } from "zod";
29763
- var WebhooksV2DeleteInputSchema = z425.object({
29764
- id: z425.uuid()
29799
+ import { z as z426 } from "zod";
29800
+ var WebhooksV2DeleteInputSchema = z426.object({
29801
+ id: z426.uuid()
29765
29802
  });
29766
29803
  var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
29767
29804
 
29768
29805
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
29769
- import { z as z426 } from "zod";
29770
- var WebhookDeliveryStatusSchema = z426.enum(["pending", "delivered", "failed"]);
29771
- var WebhookDeliverySchema = z426.object({
29772
- id: z426.uuid(),
29773
- eventOutboxId: z426.uuid(),
29774
- endpointId: z426.uuid(),
29775
- tenantId: z426.string(),
29776
- evtId: z426.string(),
29777
- eventType: z426.string(),
29778
- attemptN: z426.number().int().nonnegative(),
29779
- attemptedAt: z426.coerce.date(),
29780
- responseStatus: z426.number().int().nullable(),
29806
+ import { z as z427 } from "zod";
29807
+ var WebhookDeliveryStatusSchema = z427.enum(["pending", "delivered", "failed"]);
29808
+ var WebhookDeliverySchema = z427.object({
29809
+ id: z427.uuid(),
29810
+ eventOutboxId: z427.uuid(),
29811
+ endpointId: z427.uuid(),
29812
+ tenantId: z427.string(),
29813
+ evtId: z427.string(),
29814
+ eventType: z427.string(),
29815
+ attemptN: z427.number().int().nonnegative(),
29816
+ attemptedAt: z427.coerce.date(),
29817
+ responseStatus: z427.number().int().nullable(),
29781
29818
  failureClass: WebhookDeliveryFailureClassSchema.nullable(),
29782
29819
  status: WebhookDeliveryStatusSchema,
29783
- deliveredAt: z426.coerce.date().nullable(),
29784
- isReplay: z426.boolean(),
29785
- isTest: z426.boolean(),
29786
- traceId: z426.string().nullable()
29820
+ deliveredAt: z427.coerce.date().nullable(),
29821
+ isReplay: z427.boolean(),
29822
+ isTest: z427.boolean(),
29823
+ traceId: z427.string().nullable()
29787
29824
  });
29788
29825
  var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
29789
29826
  status: enumField(["pending", "delivered", "failed"]),
@@ -29809,167 +29846,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
29809
29846
  defaultSort: "attemptedAt",
29810
29847
  globalSearch: false
29811
29848
  });
29812
- var WebhooksV2DeliveriesListParamsSchema = z426.object({
29813
- id: z426.uuid()
29849
+ var WebhooksV2DeliveriesListParamsSchema = z427.object({
29850
+ id: z427.uuid()
29814
29851
  });
29815
29852
  var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
29816
29853
 
29817
29854
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
29818
- import { z as z427 } from "zod";
29819
- var WebhooksV2DeliveriesReadInputSchema = z427.object({
29820
- id: z427.uuid(),
29821
- deliveryId: z427.uuid()
29855
+ import { z as z428 } from "zod";
29856
+ var WebhooksV2DeliveriesReadInputSchema = z428.object({
29857
+ id: z428.uuid(),
29858
+ deliveryId: z428.uuid()
29822
29859
  });
29823
29860
  var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
29824
- request: z427.object({
29825
- payload: z427.record(z427.string(), z427.json()),
29826
- signedHeaders: z427.record(z427.string(), z427.union([z427.string(), z427.array(z427.string())])),
29827
- signedStringPreview: z427.string()
29861
+ request: z428.object({
29862
+ payload: z428.record(z428.string(), z428.json()),
29863
+ signedHeaders: z428.record(z428.string(), z428.union([z428.string(), z428.array(z428.string())])),
29864
+ signedStringPreview: z428.string()
29828
29865
  }),
29829
- response: z427.object({
29830
- headers: z427.record(z427.string(), z427.union([z427.string(), z427.array(z427.string())])).nullable(),
29831
- body: z427.string().nullable(),
29832
- timings: z427.object({
29833
- dnsMs: z427.number().int().nullable(),
29834
- tlsMs: z427.number().int().nullable(),
29835
- connectMs: z427.number().int().nullable(),
29836
- ttfbMs: z427.number().int().nullable()
29866
+ response: z428.object({
29867
+ headers: z428.record(z428.string(), z428.union([z428.string(), z428.array(z428.string())])).nullable(),
29868
+ body: z428.string().nullable(),
29869
+ timings: z428.object({
29870
+ dnsMs: z428.number().int().nullable(),
29871
+ tlsMs: z428.number().int().nullable(),
29872
+ connectMs: z428.number().int().nullable(),
29873
+ ttfbMs: z428.number().int().nullable()
29837
29874
  })
29838
29875
  })
29839
29876
  });
29840
29877
  var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
29841
29878
 
29842
29879
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
29843
- import { z as z428 } from "zod";
29844
- var WebhooksV2DeliveriesRetryInputSchema = z428.object({
29845
- id: z428.uuid(),
29846
- deliveryId: z428.uuid()
29880
+ import { z as z429 } from "zod";
29881
+ var WebhooksV2DeliveriesRetryInputSchema = z429.object({
29882
+ id: z429.uuid(),
29883
+ deliveryId: z429.uuid()
29847
29884
  });
29848
- var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z428.object({
29849
- deliveryId: z428.uuid(),
29850
- scheduled: z428.boolean()
29885
+ var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z429.object({
29886
+ deliveryId: z429.uuid(),
29887
+ scheduled: z429.boolean()
29851
29888
  }));
29852
29889
 
29853
29890
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
29854
- import { z as z429 } from "zod";
29855
- var WebhooksV2ReadInputSchema = z429.object({
29856
- id: z429.uuid()
29891
+ import { z as z430 } from "zod";
29892
+ var WebhooksV2ReadInputSchema = z430.object({
29893
+ id: z430.uuid()
29857
29894
  });
29858
29895
  var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
29859
29896
 
29860
29897
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
29861
- import { z as z430 } from "zod";
29862
- var WebhooksV2RecallsParamsSchema = z430.object({
29863
- evtId: z430.string().trim().min(1)
29864
- });
29865
- var WebhooksV2RecallsBodySchema = z430.object({
29866
- reason: z430.string().trim().min(1).max(2000)
29867
- });
29868
- var WebhooksV2RecallsOutputSchema = createSingleResponse(z430.object({
29869
- evtId: z430.string(),
29870
- recalledEvtId: z430.string(),
29871
- supersedes: z430.string(),
29872
- reason: z430.string(),
29873
- recalledByUserId: z430.string()
29874
- }));
29875
-
29876
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
29877
29898
  import { z as z431 } from "zod";
29878
- var WebhooksV2ReplayByRangeSchema = z431.object({
29879
- fromBlock: z431.coerce.bigint(),
29880
- toBlock: z431.coerce.bigint().optional(),
29881
- chainId: z431.coerce.number().int().positive(),
29882
- confirmLargeRange: z431.boolean().default(false)
29883
- });
29884
- var WebhooksV2ReplayByEventSchema = z431.object({
29885
- evtId: z431.string().trim().min(1),
29886
- chainId: z431.coerce.number().int().positive().optional()
29887
- });
29888
- var WebhooksV2ReplaysParamsSchema = z431.object({
29889
- id: z431.uuid()
29890
- });
29891
- var WebhooksV2ReplaysBodySchema = z431.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
29892
- var WebhooksV2ReplaysOutputSchema = createSingleResponse(z431.object({
29893
- replayId: z431.uuid(),
29894
- endpointId: z431.uuid(),
29895
- eventsEnqueued: z431.number().int().nonnegative(),
29896
- snapshotToBlock: z431.string().nullable()
29899
+ var WebhooksV2RecallsParamsSchema = z431.object({
29900
+ evtId: z431.string().trim().min(1)
29901
+ });
29902
+ var WebhooksV2RecallsBodySchema = z431.object({
29903
+ reason: z431.string().trim().min(1).max(2000)
29904
+ });
29905
+ var WebhooksV2RecallsOutputSchema = createSingleResponse(z431.object({
29906
+ evtId: z431.string(),
29907
+ recalledEvtId: z431.string(),
29908
+ supersedes: z431.string(),
29909
+ reason: z431.string(),
29910
+ recalledByUserId: z431.string()
29897
29911
  }));
29898
29912
 
29899
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
29913
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
29900
29914
  import { z as z432 } from "zod";
29901
- var WebhooksV2RevokeSecretInputSchema = z432.object({
29915
+ var WebhooksV2ReplayByRangeSchema = z432.object({
29916
+ fromBlock: z432.coerce.bigint(),
29917
+ toBlock: z432.coerce.bigint().optional(),
29918
+ chainId: z432.coerce.number().int().positive(),
29919
+ confirmLargeRange: z432.boolean().default(false)
29920
+ });
29921
+ var WebhooksV2ReplayByEventSchema = z432.object({
29922
+ evtId: z432.string().trim().min(1),
29923
+ chainId: z432.coerce.number().int().positive().optional()
29924
+ });
29925
+ var WebhooksV2ReplaysParamsSchema = z432.object({
29902
29926
  id: z432.uuid()
29903
29927
  });
29904
- var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z432.object({
29928
+ var WebhooksV2ReplaysBodySchema = z432.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
29929
+ var WebhooksV2ReplaysOutputSchema = createSingleResponse(z432.object({
29930
+ replayId: z432.uuid(),
29905
29931
  endpointId: z432.uuid(),
29906
- activeVersion: z432.number().int().positive(),
29907
- previousVersion: z432.number().int().positive().nullable(),
29908
- revokedVersion: z432.number().int().positive()
29932
+ eventsEnqueued: z432.number().int().nonnegative(),
29933
+ snapshotToBlock: z432.string().nullable()
29909
29934
  }));
29910
29935
 
29911
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
29936
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
29912
29937
  import { z as z433 } from "zod";
29913
- var WebhooksV2RotateSecretInputSchema = z433.object({
29938
+ var WebhooksV2RevokeSecretInputSchema = z433.object({
29914
29939
  id: z433.uuid()
29915
29940
  });
29916
- var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z433.object({
29941
+ var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z433.object({
29917
29942
  endpointId: z433.uuid(),
29918
29943
  activeVersion: z433.number().int().positive(),
29919
29944
  previousVersion: z433.number().int().positive().nullable(),
29920
- previousRevokesAt: z433.coerce.date().nullable(),
29921
- signingSecret: z433.string().nullable()
29945
+ revokedVersion: z433.number().int().positive()
29922
29946
  }));
29923
29947
 
29924
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
29948
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
29925
29949
  import { z as z434 } from "zod";
29926
- var WebhooksV2StatsInputSchema = z434.object({
29927
- endpointId: z434.uuid().optional()
29950
+ var WebhooksV2RotateSecretInputSchema = z434.object({
29951
+ id: z434.uuid()
29952
+ });
29953
+ var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z434.object({
29954
+ endpointId: z434.uuid(),
29955
+ activeVersion: z434.number().int().positive(),
29956
+ previousVersion: z434.number().int().positive().nullable(),
29957
+ previousRevokesAt: z434.coerce.date().nullable(),
29958
+ signingSecret: z434.string().nullable()
29959
+ }));
29960
+
29961
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
29962
+ import { z as z435 } from "zod";
29963
+ var WebhooksV2StatsInputSchema = z435.object({
29964
+ endpointId: z435.uuid().optional()
29928
29965
  });
29929
- var WebhooksV2StatsOutputDataSchema = z434.object({
29930
- totalDeliveries: z434.number().int().min(0),
29931
- delivered: z434.number().int().min(0),
29932
- failed: z434.number().int().min(0),
29933
- hourlyBuckets: z434.array(z434.number().int().min(0)).length(24)
29966
+ var WebhooksV2StatsOutputDataSchema = z435.object({
29967
+ totalDeliveries: z435.number().int().min(0),
29968
+ delivered: z435.number().int().min(0),
29969
+ failed: z435.number().int().min(0),
29970
+ hourlyBuckets: z435.array(z435.number().int().min(0)).length(24)
29934
29971
  });
29935
29972
  var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
29936
29973
 
29937
29974
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
29938
- import { z as z435 } from "zod";
29939
- var WebhooksV2TestEventParamsSchema = z435.object({
29940
- id: z435.uuid()
29975
+ import { z as z436 } from "zod";
29976
+ var WebhooksV2TestEventParamsSchema = z436.object({
29977
+ id: z436.uuid()
29941
29978
  });
29942
- var WebhooksV2TestEventBodySchema = z435.object({
29943
- eventType: z435.string().trim().min(1).default("webhook.test.final")
29979
+ var WebhooksV2TestEventBodySchema = z436.object({
29980
+ eventType: z436.string().trim().min(1).default("webhook.test.final")
29944
29981
  });
29945
- var WebhooksV2TestEventOutputSchema = createSingleResponse(z435.object({
29946
- evtId: z435.string(),
29947
- deliveryId: z435.uuid().nullable(),
29948
- isTest: z435.literal(true)
29982
+ var WebhooksV2TestEventOutputSchema = createSingleResponse(z436.object({
29983
+ evtId: z436.string(),
29984
+ deliveryId: z436.uuid().nullable(),
29985
+ isTest: z436.literal(true)
29949
29986
  }));
29950
29987
 
29951
29988
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
29952
- import { z as z436 } from "zod";
29953
- var WebhooksV2UpdateParamsSchema = z436.object({
29954
- id: z436.uuid()
29989
+ import { z as z437 } from "zod";
29990
+ var WebhooksV2UpdateParamsSchema = z437.object({
29991
+ id: z437.uuid()
29955
29992
  });
29956
- var WebhooksV2UpdateBodySchema = z436.object({
29957
- url: z436.url().optional(),
29958
- displayName: z436.string().trim().min(1).max(200).nullable().optional(),
29959
- subscriptions: z436.array(z436.string().trim().min(1)).min(1).optional(),
29993
+ var WebhooksV2UpdateBodySchema = z437.object({
29994
+ url: z437.url().optional(),
29995
+ displayName: z437.string().trim().min(1).max(200).nullable().optional(),
29996
+ subscriptions: z437.array(z437.string().trim().min(1)).min(1).optional(),
29960
29997
  defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
29961
- counterSignedReceipts: z436.boolean().optional(),
29962
- disabled: z436.boolean().optional(),
29963
- disabledReason: z436.string().trim().min(1).max(500).nullable().optional(),
29998
+ counterSignedReceipts: z437.boolean().optional(),
29999
+ disabled: z437.boolean().optional(),
30000
+ disabledReason: z437.string().trim().min(1).max(500).nullable().optional(),
29964
30001
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
29965
30002
  acknowledgedAt: true,
29966
30003
  acknowledgedByUserId: true
29967
30004
  }).optional()
29968
30005
  });
29969
- var WebhooksV2UpdateQuerySchema = z436.object({
29970
- acknowledgePending: z436.union([z436.literal("true"), z436.literal(true)]).transform(() => true).optional()
30006
+ var WebhooksV2UpdateQuerySchema = z437.object({
30007
+ acknowledgePending: z437.union([z437.literal("true"), z437.literal(true)]).transform(() => true).optional()
29971
30008
  }).optional();
29972
- var WebhooksV2UpdateInputSchema = z436.object({
30009
+ var WebhooksV2UpdateInputSchema = z437.object({
29973
30010
  params: WebhooksV2UpdateParamsSchema,
29974
30011
  body: WebhooksV2UpdateBodySchema,
29975
30012
  query: WebhooksV2UpdateQuerySchema
@@ -30104,21 +30141,21 @@ var webhooksV2Contract = {
30104
30141
  };
30105
30142
 
30106
30143
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
30107
- import { z as z438 } from "zod";
30144
+ import { z as z439 } from "zod";
30108
30145
 
30109
30146
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
30110
- import { z as z437 } from "zod";
30111
- var WebhookReceiptVerificationFailureClassSchema = z437.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
30112
- var WebhookReceiptSchema = z437.object({
30113
- id: z437.uuid(),
30114
- deliveryId: z437.uuid(),
30115
- evtId: z437.string(),
30116
- tenantId: z437.string(),
30117
- endpointId: z437.uuid(),
30118
- consumerSignature: z437.string(),
30119
- innerEventHash: z437.string(),
30120
- receivedAt: z437.coerce.date(),
30121
- verifiedAt: z437.coerce.date().nullable(),
30147
+ import { z as z438 } from "zod";
30148
+ var WebhookReceiptVerificationFailureClassSchema = z438.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
30149
+ var WebhookReceiptSchema = z438.object({
30150
+ id: z438.uuid(),
30151
+ deliveryId: z438.uuid(),
30152
+ evtId: z438.string(),
30153
+ tenantId: z438.string(),
30154
+ endpointId: z438.uuid(),
30155
+ consumerSignature: z438.string(),
30156
+ innerEventHash: z438.string(),
30157
+ receivedAt: z438.coerce.date(),
30158
+ verifiedAt: z438.coerce.date().nullable(),
30122
30159
  verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
30123
30160
  });
30124
30161
  var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
@@ -30135,19 +30172,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
30135
30172
  var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
30136
30173
 
30137
30174
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
30138
- var WebhookReceiptsV2CreateInputSchema = z438.object({
30139
- deliveryId: z438.uuid(),
30140
- evtId: z438.string().trim().min(1),
30141
- endpointId: z438.uuid(),
30142
- consumerSignature: z438.string().trim().min(1),
30143
- innerEventHash: z438.string().trim().min(1)
30175
+ var WebhookReceiptsV2CreateInputSchema = z439.object({
30176
+ deliveryId: z439.uuid(),
30177
+ evtId: z439.string().trim().min(1),
30178
+ endpointId: z439.uuid(),
30179
+ consumerSignature: z439.string().trim().min(1),
30180
+ innerEventHash: z439.string().trim().min(1)
30144
30181
  });
30145
30182
  var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
30146
30183
 
30147
30184
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
30148
- import { z as z439 } from "zod";
30149
- var WebhookReceiptsV2ReadInputSchema = z439.object({
30150
- id: z439.uuid()
30185
+ import { z as z440 } from "zod";
30186
+ var WebhookReceiptsV2ReadInputSchema = z440.object({
30187
+ id: z440.uuid()
30151
30188
  });
30152
30189
  var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
30153
30190
 
@@ -30426,7 +30463,7 @@ function normalizeDalpBaseUrl(url) {
30426
30463
  // package.json
30427
30464
  var package_default = {
30428
30465
  name: "@settlemint/dalp-sdk",
30429
- version: "2.1.7-main.25737310867",
30466
+ version: "2.1.7-main.25739769313",
30430
30467
  private: false,
30431
30468
  description: "Fully typed SDK for the DALP tokenization platform API",
30432
30469
  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.25737310867",
3
+ "version": "2.1.7-main.25739769313",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",