@settlemint/dalp-sdk 2.1.7-main.25731786234 → 2.1.7-main.25732471874

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 +360 -316
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27638,7 +27638,7 @@ var tokenV2MutationsContract = {
27638
27638
  };
27639
27639
 
27640
27640
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
27641
- import { z as z405 } from "zod";
27641
+ import { z as z406 } from "zod";
27642
27642
 
27643
27643
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
27644
27644
  import { z as z396 } from "zod";
@@ -28391,6 +28391,42 @@ var TokenTransactionFeeCollectionV2ItemSchema = z403.object({
28391
28391
  });
28392
28392
  var TokenTransactionFeeCollectionsV2OutputSchema = createPaginatedResponse(TokenTransactionFeeCollectionV2ItemSchema);
28393
28393
 
28394
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-events.list.schema.ts
28395
+ import { z as z404 } from "zod";
28396
+ var FEE_ACCRUAL_OPERATION_TYPE_OPTIONS = [...OPERATION_TYPE_OPTIONS, "unknown"];
28397
+ var TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS = {
28398
+ accruedAt: dateField(),
28399
+ blockNumber: bigintField(),
28400
+ operationType: enumField(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS, { sortable: false, facetable: true }),
28401
+ payer: addressField({ defaultOperator: "iLike" }),
28402
+ fromAddress: addressField({ defaultOperator: "iLike" }),
28403
+ toAddress: addressField({ defaultOperator: "iLike" }),
28404
+ feeAmount: bigintField(),
28405
+ operationAmount: bigintField()
28406
+ };
28407
+ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS, {
28408
+ defaultSort: "-accruedAt",
28409
+ globalSearch: false
28410
+ });
28411
+ var TokenFeeAccrualEventV2ItemSchema = z404.object({
28412
+ id: z404.uuid(),
28413
+ payer: ethereumAddress,
28414
+ fromAddress: ethereumAddress,
28415
+ toAddress: ethereumAddress,
28416
+ operationType: z404.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
28417
+ operationAmount: bigDecimal(),
28418
+ operationAmountExact: apiBigInt,
28419
+ feeBps: z404.number().int().nonnegative(),
28420
+ feeAmount: bigDecimal(),
28421
+ feeAmountExact: apiBigInt,
28422
+ blockNumber: apiBigInt,
28423
+ blockTimestamp: timestamp(),
28424
+ eventTimestamp: timestamp(),
28425
+ txHash: ethereumHash,
28426
+ logIndex: z404.number().int().nonnegative()
28427
+ });
28428
+ var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
28429
+
28394
28430
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transfer-approvals.schema.ts
28395
28431
  var TRANSFER_APPROVAL_COLLECTION_FIELDS = {
28396
28432
  status: enumField(["pending", "consumed", "revoked"]),
@@ -28404,7 +28440,7 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
28404
28440
  var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
28405
28441
 
28406
28442
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
28407
- import { z as z404 } from "zod";
28443
+ import { z as z405 } from "zod";
28408
28444
  var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
28409
28445
  account: addressField({ defaultOperator: "iLike" }),
28410
28446
  delegate: addressField({ defaultOperator: "iLike" }),
@@ -28418,20 +28454,20 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
28418
28454
  defaultSort: "-delegatedAt",
28419
28455
  globalSearch: false
28420
28456
  });
28421
- var VotingDelegationV2ItemSchema = z404.object({
28422
- id: z404.string().uuid(),
28457
+ var VotingDelegationV2ItemSchema = z405.object({
28458
+ id: z405.string().uuid(),
28423
28459
  delegator: ethereumAddress,
28424
28460
  fromDelegate: ethereumAddress.nullable(),
28425
28461
  toDelegate: ethereumAddress,
28426
28462
  delegatedAt: timestamp(),
28427
28463
  delegatedBlockNumber: apiBigInt,
28428
28464
  delegatedTxHash: ethereumHash,
28429
- delegatedLogIndex: z404.number().int().nonnegative(),
28465
+ delegatedLogIndex: z405.number().int().nonnegative(),
28430
28466
  undelegatedAt: timestamp().nullable(),
28431
28467
  undelegatedBlockNumber: apiBigInt.nullable(),
28432
28468
  undelegatedTxHash: ethereumHash.nullable(),
28433
- undelegatedLogIndex: z404.number().int().nonnegative().nullable(),
28434
- isActive: z404.boolean()
28469
+ undelegatedLogIndex: z405.number().int().nonnegative().nullable(),
28470
+ isActive: z405.boolean()
28435
28471
  });
28436
28472
  var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
28437
28473
 
@@ -28449,21 +28485,21 @@ var allowance = v2Contract.route({
28449
28485
  description: "Get token allowance for a specific owner/spender pair.",
28450
28486
  successDescription: "Token allowance details retrieved successfully.",
28451
28487
  tags: [V2_TAG.token]
28452
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z405.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
28488
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z406.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
28453
28489
  var holder = v2Contract.route({
28454
28490
  method: "GET",
28455
28491
  path: "/tokens/{tokenAddress}/holder-balances",
28456
28492
  description: "Get a specific token holder's balance information.",
28457
28493
  successDescription: "Token holder balance details retrieved successfully.",
28458
28494
  tags: [V2_TAG.token]
28459
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z405.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
28495
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z406.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
28460
28496
  var holders = v2Contract.route({
28461
28497
  method: "GET",
28462
28498
  path: "/tokens/{tokenAddress}/holders",
28463
28499
  description: "Get token holders and their balances.",
28464
28500
  successDescription: "List of token holders with balance information.",
28465
28501
  tags: [V2_TAG.token]
28466
- }).input(v2Input.paramsQuery(z405.object({
28502
+ }).input(v2Input.paramsQuery(z406.object({
28467
28503
  tokenAddress: ethereumAddress.meta({
28468
28504
  description: "The token contract address",
28469
28505
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28475,7 +28511,7 @@ var actions = v2Contract.route({
28475
28511
  description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28476
28512
  successDescription: "Paginated list of actions targeting the specified token.",
28477
28513
  tags: [V2_TAG.token]
28478
- }).input(v2Input.paramsQuery(z405.object({
28514
+ }).input(v2Input.paramsQuery(z406.object({
28479
28515
  tokenAddress: ethereumAddress.meta({
28480
28516
  description: "The token contract address to filter actions by",
28481
28517
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28487,7 +28523,7 @@ var events2 = v2Contract.route({
28487
28523
  description: "List token events with pagination, filtering, sorting, and faceted counts.",
28488
28524
  successDescription: "Paginated list of token events with metadata and pagination links.",
28489
28525
  tags: [V2_TAG.token]
28490
- }).input(v2Input.paramsQuery(z405.object({
28526
+ }).input(v2Input.paramsQuery(z406.object({
28491
28527
  tokenAddress: ethereumAddress.meta({
28492
28528
  description: "The token contract address",
28493
28529
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28499,7 +28535,7 @@ var denominationAssets = v2Contract.route({
28499
28535
  description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28500
28536
  successDescription: "Paginated list of denomination assets used by the specified bond.",
28501
28537
  tags: [V2_TAG.token]
28502
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
28538
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
28503
28539
  var compliance = v2Contract.route({
28504
28540
  method: "GET",
28505
28541
  path: "/tokens/{tokenAddress}/compliance-modules",
@@ -28527,7 +28563,7 @@ var transferApprovals = v2Contract.route({
28527
28563
  description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
28528
28564
  successDescription: "List of transfer approvals with their current status.",
28529
28565
  tags: [V2_TAG.compliance]
28530
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
28566
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
28531
28567
  var price = v2Contract.route({
28532
28568
  method: "GET",
28533
28569
  path: "/tokens/{tokenAddress}/price",
@@ -28541,28 +28577,35 @@ var conversionTriggers = v2Contract.route({
28541
28577
  description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28542
28578
  successDescription: "Paginated list of conversion triggers with effective pricing.",
28543
28579
  tags: [V2_TAG.token]
28544
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
28580
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
28545
28581
  var votingDelegations = v2Contract.route({
28546
28582
  method: "GET",
28547
28583
  path: "/tokens/{tokenAddress}/voting-delegations",
28548
28584
  description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
28549
28585
  successDescription: "Paginated list of voting delegation lifecycle rows.",
28550
28586
  tags: [V2_TAG.token]
28551
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
28587
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
28552
28588
  var historicalBalances = v2Contract.route({
28553
28589
  method: "GET",
28554
28590
  path: "/tokens/{tokenAddress}/historical-balances",
28555
28591
  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.",
28556
28592
  successDescription: "Paginated list of historical balance checkpoints.",
28557
28593
  tags: [V2_TAG.token]
28558
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
28594
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
28559
28595
  var transactionFeeCollections = v2Contract.route({
28560
28596
  method: "GET",
28561
28597
  path: "/tokens/{tokenAddress}/transaction-fee/collections",
28562
28598
  description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
28563
28599
  successDescription: "Paginated list of transaction-fee collections.",
28564
28600
  tags: [V2_TAG.token]
28565
- }).input(v2Input.paramsQuery(z405.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
28601
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
28602
+ var feeAccrualEvents = v2Contract.route({
28603
+ method: "GET",
28604
+ path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
28605
+ 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.",
28606
+ successDescription: "Paginated list of fee-accrual events.",
28607
+ tags: [V2_TAG.token]
28608
+ }).input(v2Input.paramsQuery(z406.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
28566
28609
  var tokenV2ReadsContract = {
28567
28610
  read: read27,
28568
28611
  allowance,
@@ -28579,11 +28622,12 @@ var tokenV2ReadsContract = {
28579
28622
  votingDelegations,
28580
28623
  historicalBalances,
28581
28624
  transactionFeeCollections,
28625
+ feeAccrualEvents,
28582
28626
  price
28583
28627
  };
28584
28628
 
28585
28629
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
28586
- import { z as z406 } from "zod";
28630
+ import { z as z407 } from "zod";
28587
28631
  var statsBondStatus = v2Contract.route({
28588
28632
  method: "GET",
28589
28633
  path: "/tokens/{tokenAddress}/stats/bond-status",
@@ -28604,25 +28648,25 @@ var statsTotalSupply = v2Contract.route({
28604
28648
  description: "Get total supply history statistics for a specific token.",
28605
28649
  successDescription: "Token total supply history statistics.",
28606
28650
  tags: [V2_TAG.tokenStats]
28607
- }).input(v2Input.paramsQuery(z406.object({
28651
+ }).input(v2Input.paramsQuery(z407.object({
28608
28652
  tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
28609
- }), z406.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
28653
+ }), z407.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
28610
28654
  var statsSupplyChanges = v2Contract.route({
28611
28655
  method: "GET",
28612
28656
  path: "/tokens/{tokenAddress}/stats/supply-changes",
28613
28657
  description: "Get supply changes history (minted/burned) statistics for a specific token.",
28614
28658
  successDescription: "Token supply changes history statistics.",
28615
28659
  tags: [V2_TAG.tokenStats]
28616
- }).input(v2Input.paramsQuery(z406.object({
28660
+ }).input(v2Input.paramsQuery(z407.object({
28617
28661
  tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
28618
- }), z406.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
28662
+ }), z407.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
28619
28663
  var statsVolume = v2Contract.route({
28620
28664
  method: "GET",
28621
28665
  path: "/tokens/{tokenAddress}/stats/volume",
28622
28666
  description: "Get total volume history statistics for a specific token.",
28623
28667
  successDescription: "Token total volume history statistics.",
28624
28668
  tags: [V2_TAG.tokenStats]
28625
- }).input(v2Input.paramsQuery(z406.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z406.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
28669
+ }).input(v2Input.paramsQuery(z407.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z407.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
28626
28670
  var statsWalletDistribution = v2Contract.route({
28627
28671
  method: "GET",
28628
28672
  path: "/tokens/{tokenAddress}/stats/wallet-distribution",
@@ -28672,7 +28716,7 @@ var tokenV2Contract = {
28672
28716
  };
28673
28717
 
28674
28718
  // ../../packages/core/validation/src/transaction-request-state.ts
28675
- import { z as z407 } from "zod";
28719
+ import { z as z408 } from "zod";
28676
28720
  var transactionRequestStates = [
28677
28721
  "RECEIVED",
28678
28722
  "QUEUED",
@@ -28687,7 +28731,7 @@ var transactionRequestStates = [
28687
28731
  "CANCELLED"
28688
28732
  ];
28689
28733
  var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
28690
- var TransactionRequestStateSchema = z407.enum(transactionRequestStates).meta({
28734
+ var TransactionRequestStateSchema = z408.enum(transactionRequestStates).meta({
28691
28735
  description: "Current state in the transaction request lifecycle",
28692
28736
  examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
28693
28737
  });
@@ -28728,96 +28772,96 @@ var transactionSubStatuses = [
28728
28772
  "WORKFLOW_BATCH_COMPLETED",
28729
28773
  "WORKFLOW_BATCH_FAILED"
28730
28774
  ];
28731
- var TransactionSubStatusSchema = z407.enum(transactionSubStatuses).meta({
28775
+ var TransactionSubStatusSchema = z408.enum(transactionSubStatuses).meta({
28732
28776
  description: "Detailed sub-status for transaction failures",
28733
28777
  examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
28734
28778
  });
28735
28779
 
28736
28780
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
28737
- import { z as z408 } from "zod";
28738
- var TransactionForceRetryInputSchema = z408.object({
28739
- transactionId: z408.uuid().meta({
28781
+ import { z as z409 } from "zod";
28782
+ var TransactionForceRetryInputSchema = z409.object({
28783
+ transactionId: z409.uuid().meta({
28740
28784
  description: "Queue transaction identifier (UUIDv7) to retry",
28741
28785
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28742
28786
  })
28743
28787
  });
28744
- var TransactionForceRetryBodySchema = z408.object({
28745
- gasPrice: z408.string().optional().meta({
28788
+ var TransactionForceRetryBodySchema = z409.object({
28789
+ gasPrice: z409.string().optional().meta({
28746
28790
  description: "Override gas price in wei (decimal string)",
28747
28791
  examples: ["20000000000"]
28748
28792
  }),
28749
- nonce: z408.number().int().nonnegative().optional().meta({
28793
+ nonce: z409.number().int().nonnegative().optional().meta({
28750
28794
  description: "Override nonce for the retried transaction",
28751
28795
  examples: [42]
28752
28796
  })
28753
28797
  }).default({});
28754
- var TransactionForceRetryResultSchema = z408.object({
28755
- transactionId: z408.uuid().meta({ description: "The requeued transaction ID" }),
28798
+ var TransactionForceRetryResultSchema = z409.object({
28799
+ transactionId: z409.uuid().meta({ description: "The requeued transaction ID" }),
28756
28800
  previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
28757
28801
  status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
28758
28802
  });
28759
28803
  var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
28760
- var TransactionForceFailInputSchema = z408.object({
28761
- transactionId: z408.uuid().meta({
28804
+ var TransactionForceFailInputSchema = z409.object({
28805
+ transactionId: z409.uuid().meta({
28762
28806
  description: "Queue transaction identifier (UUIDv7) to force-fail",
28763
28807
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28764
28808
  })
28765
28809
  });
28766
- var TransactionForceFailBodySchema = z408.object({
28767
- reason: z408.string().min(1).max(1000).meta({
28810
+ var TransactionForceFailBodySchema = z409.object({
28811
+ reason: z409.string().min(1).max(1000).meta({
28768
28812
  description: "Human-readable reason for forcing this transaction to failed state",
28769
28813
  examples: ["Manual intervention: stuck transaction after nonce conflict"]
28770
28814
  })
28771
28815
  });
28772
- var TransactionForceFailResultSchema = z408.object({
28773
- transactionId: z408.uuid().meta({ description: "The force-failed transaction ID" }),
28816
+ var TransactionForceFailResultSchema = z409.object({
28817
+ transactionId: z409.uuid().meta({ description: "The force-failed transaction ID" }),
28774
28818
  previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
28775
28819
  status: transactionRequestState().meta({ description: "New state (FAILED)" }),
28776
- reason: z408.string().meta({ description: "The reason provided for the force-fail" })
28820
+ reason: z409.string().meta({ description: "The reason provided for the force-fail" })
28777
28821
  });
28778
28822
  var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
28779
- var TransactionForceNonceInputSchema = z408.object({
28780
- transactionId: z408.uuid().meta({
28823
+ var TransactionForceNonceInputSchema = z409.object({
28824
+ transactionId: z409.uuid().meta({
28781
28825
  description: "Queue transaction identifier — the nonce is forced on its sender wallet",
28782
28826
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28783
28827
  })
28784
28828
  });
28785
- var TransactionForceNonceBodySchema = z408.object({
28786
- nonce: z408.number().int().nonnegative().meta({
28829
+ var TransactionForceNonceBodySchema = z409.object({
28830
+ nonce: z409.number().int().nonnegative().meta({
28787
28831
  description: "Nonce value to force-set on the sender's nonce tracker",
28788
28832
  examples: [42]
28789
28833
  })
28790
28834
  });
28791
- var TransactionForceNonceResultSchema = z408.object({
28792
- previous: z408.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
28793
- new: z408.number().meta({ description: "New nonce value after force-set" })
28835
+ var TransactionForceNonceResultSchema = z409.object({
28836
+ previous: z409.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
28837
+ new: z409.number().meta({ description: "New nonce value after force-set" })
28794
28838
  });
28795
28839
  var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
28796
28840
 
28797
28841
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
28798
- import { z as z409 } from "zod";
28799
- var TransactionV2CancelInputSchema = z409.object({
28800
- transactionId: z409.uuid().meta({
28842
+ import { z as z410 } from "zod";
28843
+ var TransactionV2CancelInputSchema = z410.object({
28844
+ transactionId: z410.uuid().meta({
28801
28845
  description: "Queue transaction identifier (UUIDv7) to cancel",
28802
28846
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28803
28847
  })
28804
28848
  });
28805
- var TransactionCancelResultSchema = z409.object({
28806
- status: z409.enum(["cancelled", "cancellation_pending", "error"]).meta({
28849
+ var TransactionCancelResultSchema = z410.object({
28850
+ status: z410.enum(["cancelled", "cancellation_pending", "error"]).meta({
28807
28851
  description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
28808
28852
  examples: ["cancelled", "cancellation_pending"]
28809
28853
  }),
28810
- cancelTransactionId: z409.string().optional().meta({
28854
+ cancelTransactionId: z410.string().optional().meta({
28811
28855
  description: "RBF replacement transaction ID when cancellation is pending on-chain"
28812
28856
  }),
28813
- message: z409.string().optional().meta({
28857
+ message: z410.string().optional().meta({
28814
28858
  description: "Human-readable error or status message"
28815
28859
  })
28816
28860
  });
28817
28861
  var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
28818
28862
 
28819
28863
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
28820
- import { z as z410 } from "zod";
28864
+ import { z as z411 } from "zod";
28821
28865
  var TRANSACTION_COLLECTION_FIELDS = {
28822
28866
  status: enumField([...transactionRequestStates]),
28823
28867
  operationType: textField(),
@@ -28830,12 +28874,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
28830
28874
  defaultSort: "createdAt",
28831
28875
  globalSearch: true
28832
28876
  });
28833
- var TransactionListItemSchema = z410.object({
28834
- transactionId: z410.uuid().meta({
28877
+ var TransactionListItemSchema = z411.object({
28878
+ transactionId: z411.uuid().meta({
28835
28879
  description: "Queue transaction identifier (UUIDv7)",
28836
28880
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28837
28881
  }),
28838
- kind: z410.string().meta({
28882
+ kind: z411.string().meta({
28839
28883
  description: "Mutation kind submitted to the queue",
28840
28884
  examples: ["token.create", "token.mint"]
28841
28885
  }),
@@ -28843,19 +28887,19 @@ var TransactionListItemSchema = z410.object({
28843
28887
  description: "Current transaction queue state",
28844
28888
  examples: ["QUEUED", "COMPLETED", "FAILED"]
28845
28889
  }),
28846
- subStatus: z410.string().nullable().meta({
28890
+ subStatus: z411.string().nullable().meta({
28847
28891
  description: "Optional queue sub-status with finer-grained detail",
28848
28892
  examples: ["TIMEOUT", null]
28849
28893
  }),
28850
- fromAddress: z410.string().meta({
28894
+ fromAddress: z411.string().meta({
28851
28895
  description: "Sender wallet address",
28852
28896
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28853
28897
  }),
28854
- chainId: z410.number().int().meta({
28898
+ chainId: z411.number().int().meta({
28855
28899
  description: "Target chain ID",
28856
28900
  examples: [1]
28857
28901
  }),
28858
- transactionHash: z410.string().nullable().meta({
28902
+ transactionHash: z411.string().nullable().meta({
28859
28903
  description: "Primary transaction hash once broadcast",
28860
28904
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
28861
28905
  }),
@@ -28875,19 +28919,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
28875
28919
  var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
28876
28920
 
28877
28921
  // ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
28878
- import { z as z411 } from "zod";
28879
- var TransactionStatusInputSchema = z411.object({
28880
- transactionId: z411.uuid().meta({
28922
+ import { z as z412 } from "zod";
28923
+ var TransactionStatusInputSchema = z412.object({
28924
+ transactionId: z412.uuid().meta({
28881
28925
  description: "Queue transaction identifier (UUIDv7)",
28882
28926
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28883
28927
  })
28884
28928
  });
28885
- var TransactionStatusOutputSchema = z411.object({
28886
- transactionId: z411.uuid().meta({
28929
+ var TransactionStatusOutputSchema = z412.object({
28930
+ transactionId: z412.uuid().meta({
28887
28931
  description: "Queue transaction identifier (UUIDv7)",
28888
28932
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28889
28933
  }),
28890
- kind: z411.string().meta({
28934
+ kind: z412.string().meta({
28891
28935
  description: "Mutation kind submitted to the queue",
28892
28936
  examples: ["token.create", "token.mint"]
28893
28937
  }),
@@ -28895,23 +28939,23 @@ var TransactionStatusOutputSchema = z411.object({
28895
28939
  description: "Current transaction queue state",
28896
28940
  examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
28897
28941
  }),
28898
- subStatus: z411.string().nullable().meta({
28942
+ subStatus: z412.string().nullable().meta({
28899
28943
  description: "Optional queue sub-status with finer-grained progress or failure detail",
28900
28944
  examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
28901
28945
  }),
28902
- transactionHash: z411.string().nullable().meta({
28946
+ transactionHash: z412.string().nullable().meta({
28903
28947
  description: "Primary transaction hash once broadcast",
28904
28948
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
28905
28949
  }),
28906
- transactionHashes: z411.array(z411.string()).optional().meta({
28950
+ transactionHashes: z412.array(z412.string()).optional().meta({
28907
28951
  description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
28908
28952
  examples: [["0xabc...", "0xdef..."]]
28909
28953
  }),
28910
- blockNumber: z411.string().nullable().meta({
28954
+ blockNumber: z412.string().nullable().meta({
28911
28955
  description: "Confirmed block number when available",
28912
28956
  examples: ["12345678", null]
28913
28957
  }),
28914
- errorMessage: z411.string().nullable().meta({
28958
+ errorMessage: z412.string().nullable().meta({
28915
28959
  description: "Human-readable error or timeout detail when available",
28916
28960
  examples: ["Execution reverted", "Receipt not found after repeated checks", null]
28917
28961
  }),
@@ -28990,12 +29034,12 @@ var transactionV2Contract = {
28990
29034
  };
28991
29035
 
28992
29036
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
28993
- import { z as z417 } from "zod";
29037
+ import { z as z418 } from "zod";
28994
29038
 
28995
29039
  // ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
28996
- import { z as z412 } from "zod";
28997
- var UserReadByNationalIdInputSchema = z412.object({
28998
- nationalId: z412.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
29040
+ import { z as z413 } from "zod";
29041
+ var UserReadByNationalIdInputSchema = z413.object({
29042
+ nationalId: z413.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
28999
29043
  });
29000
29044
 
29001
29045
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
@@ -29013,13 +29057,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
29013
29057
  var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
29014
29058
 
29015
29059
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
29016
- import { z as z413 } from "zod";
29017
- var TokenAssetV2Schema = z413.object({
29060
+ import { z as z414 } from "zod";
29061
+ var TokenAssetV2Schema = z414.object({
29018
29062
  id: ethereumAddress.meta({
29019
29063
  description: "The token contract address",
29020
29064
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
29021
29065
  }),
29022
- name: z413.string().meta({
29066
+ name: z414.string().meta({
29023
29067
  description: "The token name",
29024
29068
  examples: ["Bond Token", "Equity Share"]
29025
29069
  }),
@@ -29039,19 +29083,19 @@ var TokenAssetV2Schema = z413.object({
29039
29083
  description: "The total supply of the token (raw on-chain uint256)",
29040
29084
  examples: ["1000000000000000000000", "101000000000000000000000000"]
29041
29085
  }),
29042
- bond: z413.object({
29043
- isMatured: z413.boolean().meta({
29086
+ bond: z414.object({
29087
+ isMatured: z414.boolean().meta({
29044
29088
  description: "Whether the bond is matured",
29045
29089
  examples: [true, false]
29046
29090
  })
29047
29091
  }).optional().nullable().meta({ description: "The bond details", examples: [] }),
29048
- yield: z413.object({
29049
- schedule: z413.object({
29092
+ yield: z414.object({
29093
+ schedule: z414.object({
29050
29094
  id: ethereumAddress.meta({
29051
29095
  description: "The yield schedule contract address",
29052
29096
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
29053
29097
  }),
29054
- denominationAsset: z413.object({
29098
+ denominationAsset: z414.object({
29055
29099
  id: ethereumAddress.meta({
29056
29100
  description: "The denomination asset contract address",
29057
29101
  examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
@@ -29071,8 +29115,8 @@ var TokenAssetV2Schema = z413.object({
29071
29115
  }).nullable().meta({ description: "The yield schedule details", examples: [] })
29072
29116
  }).nullable().meta({ description: "The yield details", examples: [] })
29073
29117
  });
29074
- var UserAssetBalanceV2ItemSchema = z413.object({
29075
- id: z413.uuid().meta({
29118
+ var UserAssetBalanceV2ItemSchema = z414.object({
29119
+ id: z414.uuid().meta({
29076
29120
  description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
29077
29121
  examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
29078
29122
  }),
@@ -29092,7 +29136,7 @@ var UserAssetBalanceV2ItemSchema = z413.object({
29092
29136
  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.",
29093
29137
  examples: ["5.00", null]
29094
29138
  }),
29095
- priceInBaseCurrencyReliable: z413.boolean().meta({
29139
+ priceInBaseCurrencyReliable: z414.boolean().meta({
29096
29140
  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.",
29097
29141
  examples: [true, false]
29098
29142
  }),
@@ -29144,10 +29188,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
29144
29188
  var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
29145
29189
 
29146
29190
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
29147
- import { z as z416 } from "zod";
29191
+ import { z as z417 } from "zod";
29148
29192
 
29149
29193
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
29150
- import { z as z414 } from "zod";
29194
+ import { z as z415 } from "zod";
29151
29195
  var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
29152
29196
  fileName: textField(),
29153
29197
  documentType: enumField(kycDocumentTypes, { facetable: true }),
@@ -29158,19 +29202,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
29158
29202
  var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
29159
29203
  defaultSort: "uploadedAt"
29160
29204
  });
29161
- var KycProfileVersionDocumentsV2ListItemSchema = z414.object({
29162
- id: z414.string(),
29205
+ var KycProfileVersionDocumentsV2ListItemSchema = z415.object({
29206
+ id: z415.string(),
29163
29207
  documentType: kycDocumentType(),
29164
- fileName: z414.string(),
29165
- fileSize: z414.number(),
29166
- mimeType: z414.string(),
29208
+ fileName: z415.string(),
29209
+ fileSize: z415.number(),
29210
+ mimeType: z415.string(),
29167
29211
  uploadedAt: timestamp(),
29168
- uploadedBy: z414.string().nullable()
29212
+ uploadedBy: z415.string().nullable()
29169
29213
  });
29170
29214
  var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
29171
29215
 
29172
29216
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
29173
- import { z as z415 } from "zod";
29217
+ import { z as z416 } from "zod";
29174
29218
  var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
29175
29219
  var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
29176
29220
  var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
@@ -29183,21 +29227,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
29183
29227
  var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
29184
29228
  defaultSort: "versionNumber"
29185
29229
  });
29186
- var KycProfileVersionsV2ListItemSchema = z415.object({
29187
- id: z415.string(),
29188
- versionNumber: z415.number(),
29230
+ var KycProfileVersionsV2ListItemSchema = z416.object({
29231
+ id: z416.string(),
29232
+ versionNumber: z416.number(),
29189
29233
  status: kycVersionStatus(),
29190
29234
  createdAt: timestamp(),
29191
- createdBy: z415.string().nullable(),
29235
+ createdBy: z416.string().nullable(),
29192
29236
  submittedAt: timestamp().nullable(),
29193
- submittedBy: z415.string().nullable(),
29237
+ submittedBy: z416.string().nullable(),
29194
29238
  reviewedAt: timestamp().nullable(),
29195
- reviewedBy: z415.string().nullable(),
29196
- reviewOutcome: z415.enum(KYC_REVIEW_OUTCOMES).nullable(),
29197
- isDraft: z415.boolean(),
29198
- isUnderReview: z415.boolean(),
29199
- isApproved: z415.boolean(),
29200
- isCurrent: z415.boolean()
29239
+ reviewedBy: z416.string().nullable(),
29240
+ reviewOutcome: z416.enum(KYC_REVIEW_OUTCOMES).nullable(),
29241
+ isDraft: z416.boolean(),
29242
+ isUnderReview: z416.boolean(),
29243
+ isApproved: z416.boolean(),
29244
+ isCurrent: z416.boolean()
29201
29245
  });
29202
29246
  var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
29203
29247
 
@@ -29215,14 +29259,14 @@ var versionsList = v2Contract.route({
29215
29259
  description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
29216
29260
  successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
29217
29261
  tags: [V2_TAG.userKyc]
29218
- }).input(v2Input.paramsQuery(z416.object({ userId: z416.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
29262
+ }).input(v2Input.paramsQuery(z417.object({ userId: z417.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
29219
29263
  var versionsCreate = v2Contract.route({
29220
29264
  method: "POST",
29221
29265
  path: "/kyc-profiles/{userId}/versions",
29222
29266
  description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
29223
29267
  successDescription: "KYC profile version created successfully.",
29224
29268
  tags: [V2_TAG.userKyc]
29225
- }).input(v2Input.paramsBody(z416.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
29269
+ }).input(v2Input.paramsBody(z417.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
29226
29270
  var versionRead = v2Contract.route({
29227
29271
  method: "GET",
29228
29272
  path: "/kyc-profile-versions/{versionId}",
@@ -29236,7 +29280,7 @@ var versionUpdate = v2Contract.route({
29236
29280
  description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
29237
29281
  successDescription: "KYC profile version updated successfully.",
29238
29282
  tags: [V2_TAG.userKyc]
29239
- }).input(v2Input.paramsBody(z416.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
29283
+ }).input(v2Input.paramsBody(z417.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
29240
29284
  var versionSubmit = v2Contract.route({
29241
29285
  method: "POST",
29242
29286
  path: "/kyc-profile-versions/{versionId}/submissions",
@@ -29250,28 +29294,28 @@ var versionApprove = v2Contract.route({
29250
29294
  description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
29251
29295
  successDescription: "KYC profile version approved.",
29252
29296
  tags: [V2_TAG.userKyc]
29253
- }).input(v2Input.paramsBody(z416.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
29297
+ }).input(v2Input.paramsBody(z417.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
29254
29298
  var versionReject = v2Contract.route({
29255
29299
  method: "POST",
29256
29300
  path: "/kyc-profile-versions/{versionId}/rejections",
29257
29301
  description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
29258
29302
  successDescription: "KYC profile version rejected.",
29259
29303
  tags: [V2_TAG.userKyc]
29260
- }).input(v2Input.paramsBody(z416.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
29304
+ }).input(v2Input.paramsBody(z417.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
29261
29305
  var versionRequestUpdate = v2Contract.route({
29262
29306
  method: "POST",
29263
29307
  path: "/kyc-profile-versions/{versionId}/update-requests",
29264
29308
  description: "Request changes on a KYC version under review. Creates an action request for the user.",
29265
29309
  successDescription: "Update request created successfully.",
29266
29310
  tags: [V2_TAG.userKyc]
29267
- }).input(v2Input.paramsBody(z416.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
29311
+ }).input(v2Input.paramsBody(z417.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
29268
29312
  var documentsList = v2Contract.route({
29269
29313
  method: "GET",
29270
29314
  path: "/kyc-profile-versions/{versionId}/documents",
29271
29315
  description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
29272
29316
  successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
29273
29317
  tags: [V2_TAG.userKyc]
29274
- }).input(v2Input.paramsQuery(z416.object({ versionId: z416.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
29318
+ }).input(v2Input.paramsQuery(z417.object({ versionId: z417.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
29275
29319
  var documentsDelete = v2Contract.route({
29276
29320
  method: "DELETE",
29277
29321
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
@@ -29285,14 +29329,14 @@ var documentsGetUploadUrl = v2Contract.route({
29285
29329
  description: "Generate a presigned URL for uploading a KYC document directly to storage.",
29286
29330
  successDescription: "Upload URL generated successfully.",
29287
29331
  tags: [V2_TAG.userKyc]
29288
- }).input(v2Input.paramsBody(z416.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
29332
+ }).input(v2Input.paramsBody(z417.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
29289
29333
  var documentsConfirmUpload = v2Contract.route({
29290
29334
  method: "POST",
29291
29335
  path: "/kyc-profile-versions/{versionId}/documents",
29292
29336
  description: "Confirm a document upload after successfully uploading to the presigned URL.",
29293
29337
  successDescription: "Document upload confirmed.",
29294
29338
  tags: [V2_TAG.userKyc]
29295
- }).input(v2Input.paramsBody(z416.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
29339
+ }).input(v2Input.paramsBody(z417.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
29296
29340
  var documentsGetDownloadUrl = v2Contract.route({
29297
29341
  method: "POST",
29298
29342
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
@@ -29370,14 +29414,14 @@ var readByUserId2 = v2Contract.route({
29370
29414
  description: "Read a single user by their internal database ID.",
29371
29415
  successDescription: "User retrieved successfully.",
29372
29416
  tags: [V2_TAG.user]
29373
- }).input(v2Input.params(z417.object({ userId: z417.string() }))).output(createSingleResponse(UserReadOutputSchema));
29417
+ }).input(v2Input.params(z418.object({ userId: z418.string() }))).output(createSingleResponse(UserReadOutputSchema));
29374
29418
  var readByWallet3 = v2Contract.route({
29375
29419
  method: "GET",
29376
29420
  path: "/wallets/{wallet}/user",
29377
29421
  description: "Read a single user by their Ethereum wallet address.",
29378
29422
  successDescription: "User retrieved successfully.",
29379
29423
  tags: [V2_TAG.user]
29380
- }).input(v2Input.params(z417.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
29424
+ }).input(v2Input.params(z418.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
29381
29425
  var readByNationalId = v2Contract.route({
29382
29426
  method: "GET",
29383
29427
  path: "/national-ids/{nationalId}/user",
@@ -29486,30 +29530,30 @@ var userV2Contract = {
29486
29530
  };
29487
29531
 
29488
29532
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
29489
- import { z as z418 } from "zod";
29490
- var WebhooksV2ChainOfCustodyInputSchema = z418.object({
29491
- evtId: z418.string().trim().min(1)
29492
- });
29493
- var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z418.object({
29494
- evtId: z418.string(),
29495
- hops: z418.array(z418.object({
29496
- stage: z418.string(),
29497
- contentHash: z418.string(),
29498
- signedBy: z418.string().optional(),
29499
- recordedAt: z418.coerce.date()
29533
+ import { z as z419 } from "zod";
29534
+ var WebhooksV2ChainOfCustodyInputSchema = z419.object({
29535
+ evtId: z419.string().trim().min(1)
29536
+ });
29537
+ var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z419.object({
29538
+ evtId: z419.string(),
29539
+ hops: z419.array(z419.object({
29540
+ stage: z419.string(),
29541
+ contentHash: z419.string(),
29542
+ signedBy: z419.string().optional(),
29543
+ recordedAt: z419.coerce.date()
29500
29544
  })),
29501
- merkleRoot: z418.string(),
29502
- platformSignature: z418.string()
29545
+ merkleRoot: z419.string(),
29546
+ platformSignature: z419.string()
29503
29547
  }));
29504
29548
 
29505
29549
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
29506
- import { z as z420 } from "zod";
29550
+ import { z as z421 } from "zod";
29507
29551
 
29508
29552
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
29509
- import { z as z419 } from "zod";
29510
- var WebhookPayloadShapeSchema = z419.enum(["thin", "fat"]);
29511
- var WebhookBreakerStateSchema = z419.enum(["closed", "half_open", "open"]);
29512
- var WebhookDeliveryFailureClassSchema = z419.enum([
29553
+ import { z as z420 } from "zod";
29554
+ var WebhookPayloadShapeSchema = z420.enum(["thin", "fat"]);
29555
+ var WebhookBreakerStateSchema = z420.enum(["closed", "half_open", "open"]);
29556
+ var WebhookDeliveryFailureClassSchema = z420.enum([
29513
29557
  "DNS_FAIL",
29514
29558
  "TLS_FAIL",
29515
29559
  "CONNECT_TIMEOUT",
@@ -29521,35 +29565,35 @@ var WebhookDeliveryFailureClassSchema = z419.enum([
29521
29565
  "RECEIPT_INVALID_SIG",
29522
29566
  "RECEIPT_HASH_MISMATCH"
29523
29567
  ]);
29524
- var WebhookFinalityStateSchema = z419.enum(["pending", "provisional", "final", "retracted", "recalled"]);
29525
- var WebhookSigningSecretStatusSchema = z419.enum(["active", "previous", "revoked"]);
29526
- var WebhookFatEventsAcknowledgmentSchema = z419.object({
29527
- acknowledgedAt: z419.coerce.date(),
29528
- acknowledgedByUserId: z419.string(),
29529
- fieldsAcknowledged: z419.array(z419.string())
29530
- });
29531
- var WebhookEndpointSchema = z419.object({
29532
- id: z419.uuid(),
29533
- tenantId: z419.string(),
29534
- systemId: z419.string(),
29535
- url: z419.url(),
29536
- displayName: z419.string().nullable(),
29537
- subscriptions: z419.array(z419.string()),
29568
+ var WebhookFinalityStateSchema = z420.enum(["pending", "provisional", "final", "retracted", "recalled"]);
29569
+ var WebhookSigningSecretStatusSchema = z420.enum(["active", "previous", "revoked"]);
29570
+ var WebhookFatEventsAcknowledgmentSchema = z420.object({
29571
+ acknowledgedAt: z420.coerce.date(),
29572
+ acknowledgedByUserId: z420.string(),
29573
+ fieldsAcknowledged: z420.array(z420.string())
29574
+ });
29575
+ var WebhookEndpointSchema = z420.object({
29576
+ id: z420.uuid(),
29577
+ tenantId: z420.string(),
29578
+ systemId: z420.string(),
29579
+ url: z420.url(),
29580
+ displayName: z420.string().nullable(),
29581
+ subscriptions: z420.array(z420.string()),
29538
29582
  defaultPayloadShape: WebhookPayloadShapeSchema,
29539
- counterSignedReceipts: z419.boolean(),
29583
+ counterSignedReceipts: z420.boolean(),
29540
29584
  breakerState: WebhookBreakerStateSchema,
29541
- disabledAt: z419.coerce.date().nullable(),
29542
- disabledReason: z419.string().nullable(),
29585
+ disabledAt: z420.coerce.date().nullable(),
29586
+ disabledReason: z420.string().nullable(),
29543
29587
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
29544
- secret: z419.object({
29545
- activeVersion: z419.number().int().positive().nullable(),
29546
- previousVersion: z419.number().int().positive().nullable(),
29547
- previousRevokesAt: z419.coerce.date().nullable(),
29548
- lastUsedAt: z419.coerce.date().nullable()
29588
+ secret: z420.object({
29589
+ activeVersion: z420.number().int().positive().nullable(),
29590
+ previousVersion: z420.number().int().positive().nullable(),
29591
+ previousRevokesAt: z420.coerce.date().nullable(),
29592
+ lastUsedAt: z420.coerce.date().nullable()
29549
29593
  }),
29550
- createdAt: z419.coerce.date(),
29551
- updatedAt: z419.coerce.date(),
29552
- createdByUserId: z419.string().nullable()
29594
+ createdAt: z420.coerce.date(),
29595
+ updatedAt: z420.coerce.date(),
29596
+ createdByUserId: z420.string().nullable()
29553
29597
  });
29554
29598
  var WEBHOOKS_COLLECTION_FIELDS = {
29555
29599
  displayName: textField(),
@@ -29568,44 +29612,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
29568
29612
  var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
29569
29613
 
29570
29614
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
29571
- var WebhooksV2CreateInputSchema = z420.object({
29572
- url: z420.url(),
29573
- displayName: z420.string().trim().min(1).max(200).optional(),
29574
- subscriptions: z420.array(z420.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
29615
+ var WebhooksV2CreateInputSchema = z421.object({
29616
+ url: z421.url(),
29617
+ displayName: z421.string().trim().min(1).max(200).optional(),
29618
+ subscriptions: z421.array(z421.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
29575
29619
  defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
29576
- counterSignedReceipts: z420.boolean().default(false)
29620
+ counterSignedReceipts: z421.boolean().default(false)
29577
29621
  });
29578
29622
  var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
29579
- signingSecret: z420.string().nullable()
29623
+ signingSecret: z421.string().nullable()
29580
29624
  });
29581
29625
  var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
29582
29626
 
29583
29627
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
29584
- import { z as z421 } from "zod";
29585
- var WebhooksV2DeleteInputSchema = z421.object({
29586
- id: z421.uuid()
29628
+ import { z as z422 } from "zod";
29629
+ var WebhooksV2DeleteInputSchema = z422.object({
29630
+ id: z422.uuid()
29587
29631
  });
29588
29632
  var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
29589
29633
 
29590
29634
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
29591
- import { z as z422 } from "zod";
29592
- var WebhookDeliveryStatusSchema = z422.enum(["pending", "delivered", "failed"]);
29593
- var WebhookDeliverySchema = z422.object({
29594
- id: z422.uuid(),
29595
- eventOutboxId: z422.uuid(),
29596
- endpointId: z422.uuid(),
29597
- tenantId: z422.string(),
29598
- evtId: z422.string(),
29599
- eventType: z422.string(),
29600
- attemptN: z422.number().int().nonnegative(),
29601
- attemptedAt: z422.coerce.date(),
29602
- responseStatus: z422.number().int().nullable(),
29635
+ import { z as z423 } from "zod";
29636
+ var WebhookDeliveryStatusSchema = z423.enum(["pending", "delivered", "failed"]);
29637
+ var WebhookDeliverySchema = z423.object({
29638
+ id: z423.uuid(),
29639
+ eventOutboxId: z423.uuid(),
29640
+ endpointId: z423.uuid(),
29641
+ tenantId: z423.string(),
29642
+ evtId: z423.string(),
29643
+ eventType: z423.string(),
29644
+ attemptN: z423.number().int().nonnegative(),
29645
+ attemptedAt: z423.coerce.date(),
29646
+ responseStatus: z423.number().int().nullable(),
29603
29647
  failureClass: WebhookDeliveryFailureClassSchema.nullable(),
29604
29648
  status: WebhookDeliveryStatusSchema,
29605
- deliveredAt: z422.coerce.date().nullable(),
29606
- isReplay: z422.boolean(),
29607
- isTest: z422.boolean(),
29608
- traceId: z422.string().nullable()
29649
+ deliveredAt: z423.coerce.date().nullable(),
29650
+ isReplay: z423.boolean(),
29651
+ isTest: z423.boolean(),
29652
+ traceId: z423.string().nullable()
29609
29653
  });
29610
29654
  var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
29611
29655
  status: enumField(["pending", "delivered", "failed"]),
@@ -29631,167 +29675,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
29631
29675
  defaultSort: "attemptedAt",
29632
29676
  globalSearch: false
29633
29677
  });
29634
- var WebhooksV2DeliveriesListParamsSchema = z422.object({
29635
- id: z422.uuid()
29678
+ var WebhooksV2DeliveriesListParamsSchema = z423.object({
29679
+ id: z423.uuid()
29636
29680
  });
29637
29681
  var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
29638
29682
 
29639
29683
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
29640
- import { z as z423 } from "zod";
29641
- var WebhooksV2DeliveriesReadInputSchema = z423.object({
29642
- id: z423.uuid(),
29643
- deliveryId: z423.uuid()
29684
+ import { z as z424 } from "zod";
29685
+ var WebhooksV2DeliveriesReadInputSchema = z424.object({
29686
+ id: z424.uuid(),
29687
+ deliveryId: z424.uuid()
29644
29688
  });
29645
29689
  var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
29646
- request: z423.object({
29647
- payload: z423.record(z423.string(), z423.json()),
29648
- signedHeaders: z423.record(z423.string(), z423.union([z423.string(), z423.array(z423.string())])),
29649
- signedStringPreview: z423.string()
29690
+ request: z424.object({
29691
+ payload: z424.record(z424.string(), z424.json()),
29692
+ signedHeaders: z424.record(z424.string(), z424.union([z424.string(), z424.array(z424.string())])),
29693
+ signedStringPreview: z424.string()
29650
29694
  }),
29651
- response: z423.object({
29652
- headers: z423.record(z423.string(), z423.union([z423.string(), z423.array(z423.string())])).nullable(),
29653
- body: z423.string().nullable(),
29654
- timings: z423.object({
29655
- dnsMs: z423.number().int().nullable(),
29656
- tlsMs: z423.number().int().nullable(),
29657
- connectMs: z423.number().int().nullable(),
29658
- ttfbMs: z423.number().int().nullable()
29695
+ response: z424.object({
29696
+ headers: z424.record(z424.string(), z424.union([z424.string(), z424.array(z424.string())])).nullable(),
29697
+ body: z424.string().nullable(),
29698
+ timings: z424.object({
29699
+ dnsMs: z424.number().int().nullable(),
29700
+ tlsMs: z424.number().int().nullable(),
29701
+ connectMs: z424.number().int().nullable(),
29702
+ ttfbMs: z424.number().int().nullable()
29659
29703
  })
29660
29704
  })
29661
29705
  });
29662
29706
  var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
29663
29707
 
29664
29708
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
29665
- import { z as z424 } from "zod";
29666
- var WebhooksV2DeliveriesRetryInputSchema = z424.object({
29667
- id: z424.uuid(),
29668
- deliveryId: z424.uuid()
29709
+ import { z as z425 } from "zod";
29710
+ var WebhooksV2DeliveriesRetryInputSchema = z425.object({
29711
+ id: z425.uuid(),
29712
+ deliveryId: z425.uuid()
29669
29713
  });
29670
- var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z424.object({
29671
- deliveryId: z424.uuid(),
29672
- scheduled: z424.boolean()
29714
+ var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z425.object({
29715
+ deliveryId: z425.uuid(),
29716
+ scheduled: z425.boolean()
29673
29717
  }));
29674
29718
 
29675
29719
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
29676
- import { z as z425 } from "zod";
29677
- var WebhooksV2ReadInputSchema = z425.object({
29678
- id: z425.uuid()
29720
+ import { z as z426 } from "zod";
29721
+ var WebhooksV2ReadInputSchema = z426.object({
29722
+ id: z426.uuid()
29679
29723
  });
29680
29724
  var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
29681
29725
 
29682
29726
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
29683
- import { z as z426 } from "zod";
29684
- var WebhooksV2RecallsParamsSchema = z426.object({
29685
- evtId: z426.string().trim().min(1)
29686
- });
29687
- var WebhooksV2RecallsBodySchema = z426.object({
29688
- reason: z426.string().trim().min(1).max(2000)
29689
- });
29690
- var WebhooksV2RecallsOutputSchema = createSingleResponse(z426.object({
29691
- evtId: z426.string(),
29692
- recalledEvtId: z426.string(),
29693
- supersedes: z426.string(),
29694
- reason: z426.string(),
29695
- recalledByUserId: z426.string()
29696
- }));
29697
-
29698
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
29699
29727
  import { z as z427 } from "zod";
29700
- var WebhooksV2ReplayByRangeSchema = z427.object({
29701
- fromBlock: z427.coerce.bigint(),
29702
- toBlock: z427.coerce.bigint().optional(),
29703
- chainId: z427.coerce.number().int().positive(),
29704
- confirmLargeRange: z427.boolean().default(false)
29705
- });
29706
- var WebhooksV2ReplayByEventSchema = z427.object({
29707
- evtId: z427.string().trim().min(1),
29708
- chainId: z427.coerce.number().int().positive().optional()
29709
- });
29710
- var WebhooksV2ReplaysParamsSchema = z427.object({
29711
- id: z427.uuid()
29712
- });
29713
- var WebhooksV2ReplaysBodySchema = z427.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
29714
- var WebhooksV2ReplaysOutputSchema = createSingleResponse(z427.object({
29715
- replayId: z427.uuid(),
29716
- endpointId: z427.uuid(),
29717
- eventsEnqueued: z427.number().int().nonnegative(),
29718
- snapshotToBlock: z427.string().nullable()
29728
+ var WebhooksV2RecallsParamsSchema = z427.object({
29729
+ evtId: z427.string().trim().min(1)
29730
+ });
29731
+ var WebhooksV2RecallsBodySchema = z427.object({
29732
+ reason: z427.string().trim().min(1).max(2000)
29733
+ });
29734
+ var WebhooksV2RecallsOutputSchema = createSingleResponse(z427.object({
29735
+ evtId: z427.string(),
29736
+ recalledEvtId: z427.string(),
29737
+ supersedes: z427.string(),
29738
+ reason: z427.string(),
29739
+ recalledByUserId: z427.string()
29719
29740
  }));
29720
29741
 
29721
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
29742
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
29722
29743
  import { z as z428 } from "zod";
29723
- var WebhooksV2RevokeSecretInputSchema = z428.object({
29744
+ var WebhooksV2ReplayByRangeSchema = z428.object({
29745
+ fromBlock: z428.coerce.bigint(),
29746
+ toBlock: z428.coerce.bigint().optional(),
29747
+ chainId: z428.coerce.number().int().positive(),
29748
+ confirmLargeRange: z428.boolean().default(false)
29749
+ });
29750
+ var WebhooksV2ReplayByEventSchema = z428.object({
29751
+ evtId: z428.string().trim().min(1),
29752
+ chainId: z428.coerce.number().int().positive().optional()
29753
+ });
29754
+ var WebhooksV2ReplaysParamsSchema = z428.object({
29724
29755
  id: z428.uuid()
29725
29756
  });
29726
- var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z428.object({
29757
+ var WebhooksV2ReplaysBodySchema = z428.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
29758
+ var WebhooksV2ReplaysOutputSchema = createSingleResponse(z428.object({
29759
+ replayId: z428.uuid(),
29727
29760
  endpointId: z428.uuid(),
29728
- activeVersion: z428.number().int().positive(),
29729
- previousVersion: z428.number().int().positive().nullable(),
29730
- revokedVersion: z428.number().int().positive()
29761
+ eventsEnqueued: z428.number().int().nonnegative(),
29762
+ snapshotToBlock: z428.string().nullable()
29731
29763
  }));
29732
29764
 
29733
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
29765
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
29734
29766
  import { z as z429 } from "zod";
29735
- var WebhooksV2RotateSecretInputSchema = z429.object({
29767
+ var WebhooksV2RevokeSecretInputSchema = z429.object({
29736
29768
  id: z429.uuid()
29737
29769
  });
29738
- var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z429.object({
29770
+ var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z429.object({
29739
29771
  endpointId: z429.uuid(),
29740
29772
  activeVersion: z429.number().int().positive(),
29741
29773
  previousVersion: z429.number().int().positive().nullable(),
29742
- previousRevokesAt: z429.coerce.date().nullable(),
29743
- signingSecret: z429.string().nullable()
29774
+ revokedVersion: z429.number().int().positive()
29744
29775
  }));
29745
29776
 
29746
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
29777
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
29747
29778
  import { z as z430 } from "zod";
29748
- var WebhooksV2StatsInputSchema = z430.object({
29749
- endpointId: z430.uuid().optional()
29779
+ var WebhooksV2RotateSecretInputSchema = z430.object({
29780
+ id: z430.uuid()
29781
+ });
29782
+ var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z430.object({
29783
+ endpointId: z430.uuid(),
29784
+ activeVersion: z430.number().int().positive(),
29785
+ previousVersion: z430.number().int().positive().nullable(),
29786
+ previousRevokesAt: z430.coerce.date().nullable(),
29787
+ signingSecret: z430.string().nullable()
29788
+ }));
29789
+
29790
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
29791
+ import { z as z431 } from "zod";
29792
+ var WebhooksV2StatsInputSchema = z431.object({
29793
+ endpointId: z431.uuid().optional()
29750
29794
  });
29751
- var WebhooksV2StatsOutputDataSchema = z430.object({
29752
- totalDeliveries: z430.number().int().min(0),
29753
- delivered: z430.number().int().min(0),
29754
- failed: z430.number().int().min(0),
29755
- hourlyBuckets: z430.array(z430.number().int().min(0)).length(24)
29795
+ var WebhooksV2StatsOutputDataSchema = z431.object({
29796
+ totalDeliveries: z431.number().int().min(0),
29797
+ delivered: z431.number().int().min(0),
29798
+ failed: z431.number().int().min(0),
29799
+ hourlyBuckets: z431.array(z431.number().int().min(0)).length(24)
29756
29800
  });
29757
29801
  var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
29758
29802
 
29759
29803
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
29760
- import { z as z431 } from "zod";
29761
- var WebhooksV2TestEventParamsSchema = z431.object({
29762
- id: z431.uuid()
29804
+ import { z as z432 } from "zod";
29805
+ var WebhooksV2TestEventParamsSchema = z432.object({
29806
+ id: z432.uuid()
29763
29807
  });
29764
- var WebhooksV2TestEventBodySchema = z431.object({
29765
- eventType: z431.string().trim().min(1).default("webhook.test.final")
29808
+ var WebhooksV2TestEventBodySchema = z432.object({
29809
+ eventType: z432.string().trim().min(1).default("webhook.test.final")
29766
29810
  });
29767
- var WebhooksV2TestEventOutputSchema = createSingleResponse(z431.object({
29768
- evtId: z431.string(),
29769
- deliveryId: z431.uuid().nullable(),
29770
- isTest: z431.literal(true)
29811
+ var WebhooksV2TestEventOutputSchema = createSingleResponse(z432.object({
29812
+ evtId: z432.string(),
29813
+ deliveryId: z432.uuid().nullable(),
29814
+ isTest: z432.literal(true)
29771
29815
  }));
29772
29816
 
29773
29817
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
29774
- import { z as z432 } from "zod";
29775
- var WebhooksV2UpdateParamsSchema = z432.object({
29776
- id: z432.uuid()
29818
+ import { z as z433 } from "zod";
29819
+ var WebhooksV2UpdateParamsSchema = z433.object({
29820
+ id: z433.uuid()
29777
29821
  });
29778
- var WebhooksV2UpdateBodySchema = z432.object({
29779
- url: z432.url().optional(),
29780
- displayName: z432.string().trim().min(1).max(200).nullable().optional(),
29781
- subscriptions: z432.array(z432.string().trim().min(1)).min(1).optional(),
29822
+ var WebhooksV2UpdateBodySchema = z433.object({
29823
+ url: z433.url().optional(),
29824
+ displayName: z433.string().trim().min(1).max(200).nullable().optional(),
29825
+ subscriptions: z433.array(z433.string().trim().min(1)).min(1).optional(),
29782
29826
  defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
29783
- counterSignedReceipts: z432.boolean().optional(),
29784
- disabled: z432.boolean().optional(),
29785
- disabledReason: z432.string().trim().min(1).max(500).nullable().optional(),
29827
+ counterSignedReceipts: z433.boolean().optional(),
29828
+ disabled: z433.boolean().optional(),
29829
+ disabledReason: z433.string().trim().min(1).max(500).nullable().optional(),
29786
29830
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
29787
29831
  acknowledgedAt: true,
29788
29832
  acknowledgedByUserId: true
29789
29833
  }).optional()
29790
29834
  });
29791
- var WebhooksV2UpdateQuerySchema = z432.object({
29792
- acknowledgePending: z432.union([z432.literal("true"), z432.literal(true)]).transform(() => true).optional()
29835
+ var WebhooksV2UpdateQuerySchema = z433.object({
29836
+ acknowledgePending: z433.union([z433.literal("true"), z433.literal(true)]).transform(() => true).optional()
29793
29837
  }).optional();
29794
- var WebhooksV2UpdateInputSchema = z432.object({
29838
+ var WebhooksV2UpdateInputSchema = z433.object({
29795
29839
  params: WebhooksV2UpdateParamsSchema,
29796
29840
  body: WebhooksV2UpdateBodySchema,
29797
29841
  query: WebhooksV2UpdateQuerySchema
@@ -29926,21 +29970,21 @@ var webhooksV2Contract = {
29926
29970
  };
29927
29971
 
29928
29972
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
29929
- import { z as z434 } from "zod";
29973
+ import { z as z435 } from "zod";
29930
29974
 
29931
29975
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
29932
- import { z as z433 } from "zod";
29933
- var WebhookReceiptVerificationFailureClassSchema = z433.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
29934
- var WebhookReceiptSchema = z433.object({
29935
- id: z433.uuid(),
29936
- deliveryId: z433.uuid(),
29937
- evtId: z433.string(),
29938
- tenantId: z433.string(),
29939
- endpointId: z433.uuid(),
29940
- consumerSignature: z433.string(),
29941
- innerEventHash: z433.string(),
29942
- receivedAt: z433.coerce.date(),
29943
- verifiedAt: z433.coerce.date().nullable(),
29976
+ import { z as z434 } from "zod";
29977
+ var WebhookReceiptVerificationFailureClassSchema = z434.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
29978
+ var WebhookReceiptSchema = z434.object({
29979
+ id: z434.uuid(),
29980
+ deliveryId: z434.uuid(),
29981
+ evtId: z434.string(),
29982
+ tenantId: z434.string(),
29983
+ endpointId: z434.uuid(),
29984
+ consumerSignature: z434.string(),
29985
+ innerEventHash: z434.string(),
29986
+ receivedAt: z434.coerce.date(),
29987
+ verifiedAt: z434.coerce.date().nullable(),
29944
29988
  verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
29945
29989
  });
29946
29990
  var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
@@ -29957,19 +30001,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
29957
30001
  var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
29958
30002
 
29959
30003
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
29960
- var WebhookReceiptsV2CreateInputSchema = z434.object({
29961
- deliveryId: z434.uuid(),
29962
- evtId: z434.string().trim().min(1),
29963
- endpointId: z434.uuid(),
29964
- consumerSignature: z434.string().trim().min(1),
29965
- innerEventHash: z434.string().trim().min(1)
30004
+ var WebhookReceiptsV2CreateInputSchema = z435.object({
30005
+ deliveryId: z435.uuid(),
30006
+ evtId: z435.string().trim().min(1),
30007
+ endpointId: z435.uuid(),
30008
+ consumerSignature: z435.string().trim().min(1),
30009
+ innerEventHash: z435.string().trim().min(1)
29966
30010
  });
29967
30011
  var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
29968
30012
 
29969
30013
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
29970
- import { z as z435 } from "zod";
29971
- var WebhookReceiptsV2ReadInputSchema = z435.object({
29972
- id: z435.uuid()
30014
+ import { z as z436 } from "zod";
30015
+ var WebhookReceiptsV2ReadInputSchema = z436.object({
30016
+ id: z436.uuid()
29973
30017
  });
29974
30018
  var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
29975
30019
 
@@ -30247,7 +30291,7 @@ function normalizeDalpBaseUrl(url) {
30247
30291
  // package.json
30248
30292
  var package_default = {
30249
30293
  name: "@settlemint/dalp-sdk",
30250
- version: "2.1.7-main.25731786234",
30294
+ version: "2.1.7-main.25732471874",
30251
30295
  private: false,
30252
30296
  description: "Fully typed SDK for the DALP tokenization platform API",
30253
30297
  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.25731786234",
3
+ "version": "2.1.7-main.25732471874",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",