@settlemint/dalp-sdk 2.1.7-main.26370298202 → 2.1.7-main.26370663399

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 +589 -490
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29755,7 +29755,7 @@ var tokenV2MutationsContract = {
29755
29755
  };
29756
29756
 
29757
29757
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
29758
- import { z as z445 } from "zod";
29758
+ import { z as z448 } from "zod";
29759
29759
 
29760
29760
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
29761
29761
  import { z as z422 } from "zod";
@@ -30358,6 +30358,75 @@ var ConversionRecordV2ItemSchema = z429.object({
30358
30358
  });
30359
30359
  var ConversionRecordsV2OutputSchema = createPaginatedResponse(ConversionRecordV2ItemSchema);
30360
30360
 
30361
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.conversion-trigger-events.schema.ts
30362
+ import { z as z430 } from "zod";
30363
+ var CONVERSION_TRIGGER_EVENT_KIND_OPTIONS = ["published", "disabled", "republished"];
30364
+ var CONVERSION_TRIGGER_EVENTS_COLLECTION_FIELDS = {
30365
+ kind: enumField(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS, { facetable: true }),
30366
+ blockTimestamp: dateField()
30367
+ };
30368
+ var ConversionTriggerEventsV2InputSchema = createCollectionInputSchema(CONVERSION_TRIGGER_EVENTS_COLLECTION_FIELDS, {
30369
+ defaultSort: "-blockTimestamp",
30370
+ globalSearch: false
30371
+ });
30372
+ var ConversionTriggerEventV2ItemSchema = z430.object({
30373
+ triggerId: z430.string(),
30374
+ kind: z430.enum(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS),
30375
+ eventIndex: z430.number().int().nonnegative(),
30376
+ denominationAsset: ethereumAddress.nullable(),
30377
+ roundPricePerShareWad: bigDecimal().nullable(),
30378
+ roundPricePerShareWadExact: apiBigInt.nullable(),
30379
+ expiresAt: timestamp().nullable(),
30380
+ metadataHash: z430.string().nullable(),
30381
+ blockNumber: apiBigInt,
30382
+ blockTimestamp: timestamp(),
30383
+ txHash: z430.string(),
30384
+ logIndex: z430.number().int().nonnegative()
30385
+ });
30386
+ var ConversionTriggerEventsV2OutputSchema = createPaginatedResponse(ConversionTriggerEventV2ItemSchema);
30387
+
30388
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.converts-to.schema.ts
30389
+ import { z as z431 } from "zod";
30390
+ var CONVERTS_TO_COLLECTION_FIELDS = {
30391
+ isAuthorized: booleanField({ facetable: true }),
30392
+ authorizedAt: dateField()
30393
+ };
30394
+ var ConvertsToV2InputSchema = createCollectionInputSchema(CONVERTS_TO_COLLECTION_FIELDS, {
30395
+ defaultSort: "-authorizedAt",
30396
+ globalSearch: false
30397
+ });
30398
+ var ConvertsToV2ItemSchema = z431.object({
30399
+ targetTokenAddress: ethereumAddress,
30400
+ conversionFeatureAddress: ethereumAddress.nullable(),
30401
+ minterFeatureAddress: ethereumAddress.nullable(),
30402
+ isAuthorized: z431.boolean(),
30403
+ authorizedAt: timestamp(),
30404
+ revokedAt: timestamp().nullable(),
30405
+ updatedAt: timestamp()
30406
+ });
30407
+ var ConvertsToV2OutputSchema = createPaginatedResponse(ConvertsToV2ItemSchema);
30408
+
30409
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.converted-from.schema.ts
30410
+ import { z as z432 } from "zod";
30411
+ var CONVERTED_FROM_COLLECTION_FIELDS = {
30412
+ isAuthorized: booleanField({ facetable: true }),
30413
+ authorizedAt: dateField()
30414
+ };
30415
+ var ConvertedFromV2InputSchema = createCollectionInputSchema(CONVERTED_FROM_COLLECTION_FIELDS, {
30416
+ defaultSort: "-authorizedAt",
30417
+ globalSearch: false
30418
+ });
30419
+ var ConvertedFromV2ItemSchema = z432.object({
30420
+ sourceTokenAddress: ethereumAddress,
30421
+ conversionFeatureAddress: ethereumAddress.nullable(),
30422
+ minterFeatureAddress: ethereumAddress.nullable(),
30423
+ isAuthorized: z432.boolean(),
30424
+ authorizedAt: timestamp(),
30425
+ revokedAt: timestamp().nullable(),
30426
+ updatedAt: timestamp()
30427
+ });
30428
+ var ConvertedFromV2OutputSchema = createPaginatedResponse(ConvertedFromV2ItemSchema);
30429
+
30361
30430
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.denomination-assets.schema.ts
30362
30431
  var DenominationAssetV2ItemSchema = DenominationAssetListSchema.element;
30363
30432
  var DENOMINATION_ASSETS_COLLECTION_FIELDS = {
@@ -30373,26 +30442,26 @@ var DenominationAssetsV2InputSchema = createCollectionInputSchema(DENOMINATION_A
30373
30442
  var DenominationAssetsV2OutputSchema = createPaginatedResponse(DenominationAssetV2ItemSchema);
30374
30443
 
30375
30444
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.events.schema.ts
30376
- import { z as z430 } from "zod";
30377
- var TokenEventV2ValueSchema = z430.object({
30378
- id: z430.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
30379
- name: z430.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
30380
- value: z430.string().meta({
30445
+ import { z as z433 } from "zod";
30446
+ var TokenEventV2ValueSchema = z433.object({
30447
+ id: z433.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
30448
+ name: z433.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
30449
+ value: z433.string().meta({
30381
30450
  description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
30382
30451
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
30383
30452
  })
30384
30453
  });
30385
- var TokenEventV2ItemSchema = z430.object({
30386
- id: z430.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
30387
- eventName: z430.string().meta({
30454
+ var TokenEventV2ItemSchema = z433.object({
30455
+ id: z433.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
30456
+ eventName: z433.string().meta({
30388
30457
  description: "The event name",
30389
30458
  examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
30390
30459
  }),
30391
- txIndex: z430.string().meta({
30460
+ txIndex: z433.string().meta({
30392
30461
  description: "Log index within the transaction (string for parity with v1)",
30393
30462
  examples: ["0", "1", "5"]
30394
30463
  }),
30395
- blockNumber: z430.string().meta({
30464
+ blockNumber: z433.string().meta({
30396
30465
  description: "Block number when the event occurred (decimal string for bigint precision)",
30397
30466
  examples: ["12345678", "20000000"]
30398
30467
  }),
@@ -30404,19 +30473,19 @@ var TokenEventV2ItemSchema = z430.object({
30404
30473
  description: "Transaction hash",
30405
30474
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
30406
30475
  }),
30407
- emitter: z430.object({
30476
+ emitter: z433.object({
30408
30477
  id: ethereumAddress.meta({
30409
30478
  description: "Address of the contract that emitted the event",
30410
30479
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30411
30480
  })
30412
30481
  }),
30413
- sender: z430.object({
30482
+ sender: z433.object({
30414
30483
  id: ethereumAddress.meta({
30415
30484
  description: "Address that triggered the event (account or sender, falling back to the contract address)",
30416
30485
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30417
30486
  })
30418
30487
  }),
30419
- values: z430.array(TokenEventV2ValueSchema).meta({
30488
+ values: z433.array(TokenEventV2ValueSchema).meta({
30420
30489
  description: "Event parameter values",
30421
30490
  examples: []
30422
30491
  })
@@ -30437,15 +30506,15 @@ var TokenEventsV2InputSchema = createCollectionInputSchema(TOKEN_EVENTS_COLLECTI
30437
30506
  var TokenEventsV2OutputSchema = createPaginatedResponse(TokenEventV2ItemSchema);
30438
30507
 
30439
30508
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
30440
- import { z as z431 } from "zod";
30441
- var TransferApprovalSchema = z431.object({
30442
- id: z431.string().meta({
30509
+ import { z as z434 } from "zod";
30510
+ var TransferApprovalSchema = z434.object({
30511
+ id: z434.string().meta({
30443
30512
  description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
30444
30513
  examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
30445
30514
  }),
30446
- token: z431.object({ id: ethereumAddress }),
30447
- fromIdentity: z431.object({ id: ethereumAddress }),
30448
- toIdentity: z431.object({ id: ethereumAddress }),
30515
+ token: z434.object({ id: ethereumAddress }),
30516
+ fromIdentity: z434.object({ id: ethereumAddress }),
30517
+ toIdentity: z434.object({ id: ethereumAddress }),
30449
30518
  value: assetAmount.meta({
30450
30519
  description: "Approved transfer amount in base units",
30451
30520
  examples: ["1000000000000000000"]
@@ -30455,7 +30524,7 @@ var TransferApprovalSchema = z431.object({
30455
30524
  description: "Timestamp when approval expires. Epoch zero means no expiry.",
30456
30525
  examples: ["0", "1893456000"]
30457
30526
  }),
30458
- status: z431.enum(["pending", "consumed", "revoked"]).meta({
30527
+ status: z434.enum(["pending", "consumed", "revoked"]).meta({
30459
30528
  description: "Current status of the approval",
30460
30529
  examples: ["pending"]
30461
30530
  }),
@@ -30468,17 +30537,17 @@ var TransferApprovalSchema = z431.object({
30468
30537
  examples: ["2023-11-14T12:05:00.000Z"]
30469
30538
  })
30470
30539
  });
30471
- var TransferApprovalsResponseSchema = z431.object({
30472
- transferApprovals: z431.array(TransferApprovalSchema).meta({
30540
+ var TransferApprovalsResponseSchema = z434.object({
30541
+ transferApprovals: z434.array(TransferApprovalSchema).meta({
30473
30542
  description: "List of transfer approvals ordered by creation time descending",
30474
30543
  examples: []
30475
30544
  }),
30476
- totalCount: z431.number().int().nonnegative().meta({
30545
+ totalCount: z434.number().int().nonnegative().meta({
30477
30546
  description: "Total number of transfer approvals for this token",
30478
30547
  examples: [3]
30479
30548
  })
30480
30549
  });
30481
- var TransferApprovalsInputSchema = z431.object({
30550
+ var TransferApprovalsInputSchema = z434.object({
30482
30551
  tokenAddress: ethereumAddress.meta({
30483
30552
  description: "The token contract address",
30484
30553
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30486,20 +30555,20 @@ var TransferApprovalsInputSchema = z431.object({
30486
30555
  });
30487
30556
 
30488
30557
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.price.schema.ts
30489
- import { z as z432 } from "zod";
30490
- var TokenPriceInputParamsSchema = z432.object({
30558
+ import { z as z435 } from "zod";
30559
+ var TokenPriceInputParamsSchema = z435.object({
30491
30560
  tokenAddress: ethereumAddress.meta({
30492
30561
  description: "The token contract address",
30493
30562
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30494
30563
  })
30495
30564
  });
30496
- var TokenPriceInputQuerySchema = z432.object({
30565
+ var TokenPriceInputQuerySchema = z435.object({
30497
30566
  currency: fiatCurrency().default("USD").meta({
30498
30567
  description: "Target ISO 4217 currency code for price conversion",
30499
30568
  examples: ["USD", "EUR", "GBP", "AED"]
30500
30569
  })
30501
30570
  });
30502
- var ConversionHopSchema = z432.object({
30571
+ var ConversionHopSchema = z435.object({
30503
30572
  from: fiatCurrency().meta({
30504
30573
  description: "Source currency of this hop",
30505
30574
  examples: ["AED"]
@@ -30508,7 +30577,7 @@ var ConversionHopSchema = z432.object({
30508
30577
  description: "Target currency of this hop",
30509
30578
  examples: ["USD"]
30510
30579
  }),
30511
- rate: z432.string().meta({
30580
+ rate: z435.string().meta({
30512
30581
  description: "Exchange rate (18-decimal string)",
30513
30582
  examples: ["272300000000000000"]
30514
30583
  }),
@@ -30520,17 +30589,17 @@ var ConversionHopSchema = z432.object({
30520
30589
  description: "When the feed was last updated",
30521
30590
  examples: ["2024-03-22T12:00:00.000Z"]
30522
30591
  }),
30523
- inverse: z432.boolean().meta({
30592
+ inverse: z435.boolean().meta({
30524
30593
  description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
30525
30594
  examples: [false]
30526
30595
  })
30527
30596
  });
30528
- var TokenPriceResponseSchema = z432.object({
30597
+ var TokenPriceResponseSchema = z435.object({
30529
30598
  tokenAddress: ethereumAddress.meta({
30530
30599
  description: "The token contract address",
30531
30600
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30532
30601
  }),
30533
- price: z432.string().meta({
30602
+ price: z435.string().meta({
30534
30603
  description: "The resolved price as a decimal string (18-decimal normalized)",
30535
30604
  examples: ["27230000000000000000"]
30536
30605
  }),
@@ -30538,11 +30607,11 @@ var TokenPriceResponseSchema = z432.object({
30538
30607
  description: "The currency of the returned price",
30539
30608
  examples: ["USD"]
30540
30609
  }),
30541
- decimals: z432.number().meta({
30610
+ decimals: z435.number().meta({
30542
30611
  description: "Decimal precision of the price (always 18)",
30543
30612
  examples: [18]
30544
30613
  }),
30545
- source: z432.enum(["feed", "claim"]).meta({
30614
+ source: z435.enum(["feed", "claim"]).meta({
30546
30615
  description: "Whether the base price came from a feed or identity claim",
30547
30616
  examples: ["feed"]
30548
30617
  }),
@@ -30550,7 +30619,7 @@ var TokenPriceResponseSchema = z432.object({
30550
30619
  description: "The native currency of the base price before conversion",
30551
30620
  examples: ["AED"]
30552
30621
  }),
30553
- convertible: z432.boolean().meta({
30622
+ convertible: z435.boolean().meta({
30554
30623
  description: "Whether the price was successfully converted to the target currency",
30555
30624
  examples: [true]
30556
30625
  }),
@@ -30558,15 +30627,15 @@ var TokenPriceResponseSchema = z432.object({
30558
30627
  description: "The requested target currency (only present when convertible is false)",
30559
30628
  examples: ["USD"]
30560
30629
  }),
30561
- reason: z432.string().optional().meta({
30630
+ reason: z435.string().optional().meta({
30562
30631
  description: "Reason for conversion failure (only present when convertible is false)",
30563
30632
  examples: ["no_fx_path"]
30564
30633
  }),
30565
- message: z432.string().optional().meta({
30634
+ message: z435.string().optional().meta({
30566
30635
  description: "Human-readable explanation (only present when convertible is false)",
30567
30636
  examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
30568
30637
  }),
30569
- availableCurrencies: z432.array(fiatCurrency()).optional().meta({
30638
+ availableCurrencies: z435.array(fiatCurrency()).optional().meta({
30570
30639
  description: "Currencies reachable from the source currency (only present when convertible is false)",
30571
30640
  examples: [["AED", "EUR"]]
30572
30641
  }),
@@ -30574,7 +30643,7 @@ var TokenPriceResponseSchema = z432.object({
30574
30643
  description: "When the price data was last updated (ISO 8601)",
30575
30644
  examples: ["2026-03-22T10:30:00.000Z"]
30576
30645
  }),
30577
- conversionPath: z432.array(ConversionHopSchema).meta({
30646
+ conversionPath: z435.array(ConversionHopSchema).meta({
30578
30647
  description: "The FX conversion hops applied (empty if no conversion needed)",
30579
30648
  examples: [[]]
30580
30649
  })
@@ -30590,24 +30659,30 @@ var HOLDER_COLLECTION_FIELDS = {
30590
30659
  var HoldersV2InputSchema = createCollectionInputSchema(HOLDER_COLLECTION_FIELDS, {
30591
30660
  defaultSort: "-lastUpdatedAt"
30592
30661
  });
30593
- var HoldersV2OutputSchema = createPaginatedResponse(assetBalance());
30662
+ var HoldersV2EntrySchema = assetBalance().extend({
30663
+ transferableBalance: bigDecimal().meta({
30664
+ description: "`balanceOf` minus principal already converted via a ConversionFeature. Equals `balanceOf` (i.e. `value`) when no conversion feature is attached or when no conversions have occurred for this holder.",
30665
+ examples: ["1000000000000000000", "0"]
30666
+ })
30667
+ });
30668
+ var HoldersV2OutputSchema = createPaginatedResponse(HoldersV2EntrySchema);
30594
30669
 
30595
30670
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.participant-roles-view.contract.ts
30596
- import { z as z434 } from "zod";
30671
+ import { z as z437 } from "zod";
30597
30672
 
30598
30673
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.participant-roles-view.schema.ts
30599
- import { z as z433 } from "zod";
30600
- var TokenParticipantRolesViewItemSchema = z433.object({
30601
- participantId: z433.string().nullable(),
30602
- displayName: z433.string(),
30674
+ import { z as z436 } from "zod";
30675
+ var TokenParticipantRolesViewItemSchema = z436.object({
30676
+ participantId: z436.string().nullable(),
30677
+ displayName: z436.string(),
30603
30678
  signingAddress: ethereumAddress.nullable(),
30604
30679
  operationsAddress: ethereumAddress.nullable(),
30605
30680
  accountAddress: ethereumAddress.nullable(),
30606
- isContract: z433.boolean(),
30607
- eoaRoles: z433.array(assetAccessControlRole),
30608
- smartWalletRoles: z433.array(assetAccessControlRole),
30609
- missingRoles: z433.array(assetAccessControlRole),
30610
- drift: z433.boolean()
30681
+ isContract: z436.boolean(),
30682
+ eoaRoles: z436.array(assetAccessControlRole),
30683
+ smartWalletRoles: z436.array(assetAccessControlRole),
30684
+ missingRoles: z436.array(assetAccessControlRole),
30685
+ drift: z436.boolean()
30611
30686
  });
30612
30687
  var TOKEN_PARTICIPANT_ROLES_VIEW_COLLECTION_FIELDS = {
30613
30688
  participantId: textField({ sortable: true, defaultOperator: "iLike" }),
@@ -30634,7 +30709,7 @@ var participantRolesView2 = v2Contract.route({
30634
30709
  description: "List participant role assignments for a token across signing and operations addresses.",
30635
30710
  successDescription: "Paginated token participant role assignments retrieved successfully.",
30636
30711
  tags: [V2_TAG.token]
30637
- }).input(v2Input.paramsQuery(z434.object({
30712
+ }).input(v2Input.paramsQuery(z437.object({
30638
30713
  tokenAddress: ethereumAddress.meta({
30639
30714
  description: "The token contract address",
30640
30715
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30642,7 +30717,7 @@ var participantRolesView2 = v2Contract.route({
30642
30717
  }), TokenParticipantRolesViewV2InputSchema)).output(TokenParticipantRolesViewV2OutputSchema);
30643
30718
 
30644
30719
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
30645
- import { z as z435 } from "zod";
30720
+ import { z as z438 } from "zod";
30646
30721
  var HISTORICAL_BALANCE_KIND_OPTIONS = ["account", "totalSupply"];
30647
30722
  var TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS = {
30648
30723
  account: addressField({ defaultOperator: "eq" }),
@@ -30667,10 +30742,10 @@ var TokenHistoricalBalancesV2InputSchema = createCollectionInputSchema(TOKEN_HIS
30667
30742
  }
30668
30743
  }
30669
30744
  });
30670
- var TokenHistoricalBalanceV2ItemSchema = z435.object({
30671
- id: z435.string().uuid(),
30745
+ var TokenHistoricalBalanceV2ItemSchema = z438.object({
30746
+ id: z438.string().uuid(),
30672
30747
  account: ethereumAddress,
30673
- kind: z435.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
30748
+ kind: z438.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
30674
30749
  sender: ethereumAddress,
30675
30750
  oldBalance: bigDecimal(),
30676
30751
  oldBalanceExact: apiBigInt,
@@ -30679,14 +30754,14 @@ var TokenHistoricalBalanceV2ItemSchema = z435.object({
30679
30754
  blockNumber: apiBigInt,
30680
30755
  blockTimestamp: timestamp(),
30681
30756
  txHash: ethereumHash,
30682
- logIndex: z435.number().int().nonnegative()
30757
+ logIndex: z438.number().int().nonnegative()
30683
30758
  });
30684
30759
  var TokenHistoricalBalancesV2OutputSchema = createPaginatedResponse(TokenHistoricalBalanceV2ItemSchema);
30685
- var strictHistoricalLookup = z435.union([z435.boolean(), z435.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
30760
+ var strictHistoricalLookup = z438.union([z438.boolean(), z438.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
30686
30761
  var historicalTimepoint = apiBigInt.refine((value3) => value3 >= 0n, {
30687
30762
  message: "timepoint must be greater than or equal to 0"
30688
30763
  });
30689
- var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z435.object({
30764
+ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z438.object({
30690
30765
  account: ethereumAddress.meta({
30691
30766
  description: "Holder account to read from the historical-balances feature",
30692
30767
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30700,7 +30775,7 @@ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z435.object({
30700
30775
  examples: [true]
30701
30776
  })
30702
30777
  });
30703
- var TokenHistoricalBalanceAtBlockV2DataSchema = z435.object({
30778
+ var TokenHistoricalBalanceAtBlockV2DataSchema = z438.object({
30704
30779
  account: ethereumAddress,
30705
30780
  balance: bigDecimal(),
30706
30781
  balanceExact: apiBigInt,
@@ -30715,12 +30790,12 @@ var TOKEN_HISTORICAL_HOLDERS_AT_BLOCK_COLLECTION_FIELDS = {
30715
30790
  balance: bigintField({ filterable: false }),
30716
30791
  lastUpdatedAt: dateField({ filterable: false })
30717
30792
  };
30718
- var TokenHistoricalHoldersAtBlockV2InputSchema = z435.object({
30719
- sortBy: z435.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
30720
- sortDirection: z435.enum(["asc", "desc"]).default("desc"),
30721
- offset: z435.coerce.number().int().nonnegative().default(0),
30722
- limit: z435.coerce.number().int().positive().max(200).default(50),
30723
- filters: z435.array(DataTableFilterSchema).default([]),
30793
+ var TokenHistoricalHoldersAtBlockV2InputSchema = z438.object({
30794
+ sortBy: z438.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
30795
+ sortDirection: z438.enum(["asc", "desc"]).default("desc"),
30796
+ offset: z438.coerce.number().int().nonnegative().default(0),
30797
+ limit: z438.coerce.number().int().positive().max(200).default(50),
30798
+ filters: z438.array(DataTableFilterSchema).default([]),
30724
30799
  timepoint: historicalTimepoint.meta({
30725
30800
  description: "Historical feature clock timepoint, expressed as Unix seconds for timestamp-mode tokens",
30726
30801
  examples: ["1767225600"]
@@ -30733,8 +30808,8 @@ var TokenHistoricalHoldersAtBlockV2InputSchema = z435.object({
30733
30808
  var TokenHistoricalHoldersAtBlockV2OutputSchema = createPaginatedResponse(assetBalance());
30734
30809
 
30735
30810
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balance-at-block.schema.ts
30736
- import { z as z436 } from "zod";
30737
- var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z436.object({
30811
+ import { z as z439 } from "zod";
30812
+ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z439.object({
30738
30813
  tokenAddress: ethereumAddress.meta({
30739
30814
  description: "The token contract address",
30740
30815
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30744,13 +30819,13 @@ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z436.object({
30744
30819
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30745
30820
  })
30746
30821
  });
30747
- var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z436.object({
30748
- atBlock: z436.coerce.bigint().positive().meta({
30822
+ var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z439.object({
30823
+ atBlock: z439.coerce.bigint().positive().meta({
30749
30824
  description: "Positive integer block number to read the holder's balance at. Blocks are the canonical chain time unit; date pickers resolve date -> block via the indexer's block-time index before pushing this param.",
30750
30825
  examples: ["21040117"]
30751
30826
  })
30752
30827
  });
30753
- var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z436.object({
30828
+ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z439.object({
30754
30829
  tokenAddress: ethereumAddress,
30755
30830
  holderAddress: ethereumAddress,
30756
30831
  balance: bigDecimal(),
@@ -30758,13 +30833,13 @@ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z436.object({
30758
30833
  asOfBlockNumber: apiBigInt,
30759
30834
  asOfBlockTimestamp: timestamp().nullable(),
30760
30835
  asOfTxHash: ethereumHash.nullable(),
30761
- asOfLogIndex: z436.number().int().nonnegative().nullable(),
30836
+ asOfLogIndex: z439.number().int().nonnegative().nullable(),
30762
30837
  requestedBlock: apiBigInt
30763
30838
  });
30764
30839
  var TokenHistoricalBalanceAtBlockByHolderV2OutputSchema = createSingleResponse(TokenHistoricalBalanceAtBlockByHolderV2DataSchema);
30765
30840
 
30766
30841
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collections.list.schema.ts
30767
- import { z as z437 } from "zod";
30842
+ import { z as z440 } from "zod";
30768
30843
  var OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "redeem"];
30769
30844
  var TOKEN_TRANSACTION_FEE_COLLECTIONS_COLLECTION_FIELDS = {
30770
30845
  collectedAt: dateField(),
@@ -30777,21 +30852,21 @@ var TokenTransactionFeeCollectionsV2InputSchema = createCollectionInputSchema(TO
30777
30852
  defaultSort: "-collectedAt",
30778
30853
  globalSearch: false
30779
30854
  });
30780
- var TokenTransactionFeeCollectionV2ItemSchema = z437.object({
30781
- id: z437.string().uuid(),
30855
+ var TokenTransactionFeeCollectionV2ItemSchema = z440.object({
30856
+ id: z440.string().uuid(),
30782
30857
  counterpartyAddress: ethereumAddress,
30783
- operationType: z437.enum(OPERATION_TYPE_OPTIONS),
30858
+ operationType: z440.enum(OPERATION_TYPE_OPTIONS),
30784
30859
  feeAmount: bigDecimal(),
30785
30860
  feeAmountExact: apiBigInt,
30786
30861
  blockNumber: apiBigInt,
30787
30862
  blockTimestamp: timestamp(),
30788
30863
  txHash: ethereumHash,
30789
- logIndex: z437.number().int().nonnegative()
30864
+ logIndex: z440.number().int().nonnegative()
30790
30865
  });
30791
30866
  var TokenTransactionFeeCollectionsV2OutputSchema = createPaginatedResponse(TokenTransactionFeeCollectionV2ItemSchema);
30792
30867
 
30793
30868
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-events.list.schema.ts
30794
- import { z as z438 } from "zod";
30869
+ import { z as z441 } from "zod";
30795
30870
  var FEE_ACCRUAL_OPERATION_TYPE_OPTIONS = [...OPERATION_TYPE_OPTIONS, "unknown"];
30796
30871
  var TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS = {
30797
30872
  accruedAt: dateField(),
@@ -30807,56 +30882,56 @@ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_A
30807
30882
  defaultSort: "-accruedAt",
30808
30883
  globalSearch: false
30809
30884
  });
30810
- var TokenFeeAccrualEventV2ItemSchema = z438.object({
30811
- id: z438.uuid(),
30885
+ var TokenFeeAccrualEventV2ItemSchema = z441.object({
30886
+ id: z441.uuid(),
30812
30887
  payer: ethereumAddress,
30813
30888
  fromAddress: ethereumAddress,
30814
30889
  toAddress: ethereumAddress,
30815
- operationType: z438.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
30890
+ operationType: z441.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
30816
30891
  operationAmount: bigDecimal(),
30817
30892
  operationAmountExact: apiBigInt,
30818
- feeBps: z438.number().int().nonnegative(),
30893
+ feeBps: z441.number().int().nonnegative(),
30819
30894
  feeAmount: bigDecimal(),
30820
30895
  feeAmountExact: apiBigInt,
30821
30896
  blockNumber: apiBigInt,
30822
30897
  blockTimestamp: timestamp(),
30823
30898
  eventTimestamp: timestamp(),
30824
30899
  txHash: ethereumHash,
30825
- logIndex: z438.number().int().nonnegative()
30900
+ logIndex: z441.number().int().nonnegative()
30826
30901
  });
30827
30902
  var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
30828
30903
 
30829
30904
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-payer.schema.ts
30830
- import { z as z439 } from "zod";
30831
- var TokenFeeAccrualPayerV2InputSchema = z439.object({
30905
+ import { z as z442 } from "zod";
30906
+ var TokenFeeAccrualPayerV2InputSchema = z442.object({
30832
30907
  payer: ethereumAddress.meta({
30833
30908
  description: "Payer address whose accrued fees to summarise.",
30834
30909
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30835
30910
  })
30836
30911
  });
30837
- var TokenFeeAccrualPayerBreakdownItemSchema = z439.object({
30838
- operationType: z439.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
30839
- eventCount: z439.number().int().nonnegative(),
30912
+ var TokenFeeAccrualPayerBreakdownItemSchema = z442.object({
30913
+ operationType: z442.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
30914
+ eventCount: z442.number().int().nonnegative(),
30840
30915
  totalOperationAmount: bigDecimal(),
30841
30916
  totalOperationAmountExact: apiBigInt,
30842
30917
  totalFeeAmount: bigDecimal(),
30843
30918
  totalFeeAmountExact: apiBigInt
30844
30919
  });
30845
- var TokenFeeAccrualPayerV2OutputSchema = z439.object({
30846
- data: z439.object({
30920
+ var TokenFeeAccrualPayerV2OutputSchema = z442.object({
30921
+ data: z442.object({
30847
30922
  payer: ethereumAddress,
30848
- totalEvents: z439.number().int().nonnegative(),
30923
+ totalEvents: z442.number().int().nonnegative(),
30849
30924
  totalFeeAmount: bigDecimal(),
30850
30925
  totalFeeAmountExact: apiBigInt,
30851
30926
  totalOperationAmount: bigDecimal(),
30852
30927
  totalOperationAmountExact: apiBigInt,
30853
- breakdown: z439.array(TokenFeeAccrualPayerBreakdownItemSchema),
30854
- recentEvents: z439.array(TokenFeeAccrualEventV2ItemSchema)
30928
+ breakdown: z442.array(TokenFeeAccrualPayerBreakdownItemSchema),
30929
+ recentEvents: z442.array(TokenFeeAccrualEventV2ItemSchema)
30855
30930
  })
30856
30931
  });
30857
30932
 
30858
30933
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
30859
- import { z as z440 } from "zod";
30934
+ import { z as z443 } from "zod";
30860
30935
  var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
30861
30936
  var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
30862
30937
  collectedAt: dateField(),
@@ -30870,22 +30945,22 @@ var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(
30870
30945
  defaultSort: "-collectedAt",
30871
30946
  globalSearch: false
30872
30947
  });
30873
- var TokenExternalFeeCollectionEventV2ItemSchema = z440.object({
30874
- id: z440.uuid(),
30948
+ var TokenExternalFeeCollectionEventV2ItemSchema = z443.object({
30949
+ id: z443.uuid(),
30875
30950
  payer: ethereumAddress,
30876
30951
  feeToken: ethereumAddress,
30877
- operationType: z440.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
30952
+ operationType: z443.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
30878
30953
  feeAmount: bigDecimal(),
30879
30954
  feeAmountExact: apiBigInt,
30880
30955
  blockNumber: apiBigInt,
30881
30956
  blockTimestamp: timestamp(),
30882
30957
  txHash: ethereumHash,
30883
- logIndex: z440.number().int().nonnegative()
30958
+ logIndex: z443.number().int().nonnegative()
30884
30959
  });
30885
30960
  var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
30886
30961
 
30887
30962
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.feature-permit-replay-history.schema.ts
30888
- import { z as z441 } from "zod";
30963
+ import { z as z444 } from "zod";
30889
30964
  var PERMIT_REPLAY_HISTORY_COLLECTION_FIELDS = {
30890
30965
  blockTime: dateField()
30891
30966
  };
@@ -30893,7 +30968,7 @@ var TokenFeaturePermitReplayHistoryV2InputSchema = createCollectionInputSchema(P
30893
30968
  defaultSort: "-blockTime",
30894
30969
  globalSearch: false
30895
30970
  });
30896
- var TokenFeaturePermitReplayHistoryV2ItemSchema = z441.object({
30971
+ var TokenFeaturePermitReplayHistoryV2ItemSchema = z444.object({
30897
30972
  nonce: apiBigInt.meta({
30898
30973
  description: "Per-owner sequence number derived from the count of prior projection rows for the same (chainId, tokenAddress, owner) tuple.",
30899
30974
  examples: ["0"]
@@ -30925,10 +31000,10 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
30925
31000
  var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
30926
31001
 
30927
31002
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.treasury-health.schema.ts
30928
- import { z as z442 } from "zod";
31003
+ import { z as z445 } from "zod";
30929
31004
  var TreasuryHealthInputSchema = TokenReadInputSchema;
30930
- var TreasuryHealthApprovalSchema = z442.object({
30931
- kind: z442.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
31005
+ var TreasuryHealthApprovalSchema = z445.object({
31006
+ kind: z445.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
30932
31007
  description: "Which feature this approval row gates.",
30933
31008
  examples: ["maturity-redemption"]
30934
31009
  }),
@@ -30952,21 +31027,21 @@ var TreasuryHealthApprovalSchema = z442.object({
30952
31027
  description: "Required allowance ceiling for the feature, scaled by denomination asset decimals.",
30953
31028
  examples: ["1000.00"]
30954
31029
  }),
30955
- satisfied: z442.boolean().meta({
31030
+ satisfied: z445.boolean().meta({
30956
31031
  description: "True when the indexed allowance is greater than or equal to the required ceiling.",
30957
31032
  examples: [true, false]
30958
31033
  })
30959
31034
  });
30960
- var TreasuryHealthImplementationSchema = z442.object({
30961
- treasuryIsContract: z442.boolean().nullable().meta({
31035
+ var TreasuryHealthImplementationSchema = z445.object({
31036
+ treasuryIsContract: z445.boolean().nullable().meta({
30962
31037
  description: "Whether the configured treasury address is a contract (`true`), an EOA (`false`), or has not yet been classified by the indexer (`null`).",
30963
31038
  examples: [false, true, null]
30964
31039
  })
30965
31040
  }).nullable().meta({
30966
31041
  description: "Treasury implementation classification. `null` when no maturity / yield feature is attached."
30967
31042
  });
30968
- var TreasuryHealthResponseSchema = z442.object({
30969
- approvals: z442.array(TreasuryHealthApprovalSchema).meta({
31043
+ var TreasuryHealthResponseSchema = z445.object({
31044
+ approvals: z445.array(TreasuryHealthApprovalSchema).meta({
30970
31045
  description: "Per-feature approval rows. Empty when the token has neither a maturity-redemption nor a fixed-treasury-yield feature attached."
30971
31046
  }),
30972
31047
  implementation: TreasuryHealthImplementationSchema,
@@ -30978,11 +31053,11 @@ var TreasuryHealthResponseSchema = z442.object({
30978
31053
  description: "Projected next-period denomination need (next scheduled redemption / unclaimed yield), scaled by denomination asset decimals. Used to set the `yellow` threshold.",
30979
31054
  examples: ["1000.00"]
30980
31055
  }),
30981
- status: z442.enum(["green", "yellow", "red"]).meta({
31056
+ status: z445.enum(["green", "yellow", "red"]).meta({
30982
31057
  description: "Badge status. `green` = approvals satisfy ceilings AND balance covers projected need. `yellow` = approvals satisfy but balance is below projected need. `red` = at least one approval is below its ceiling.",
30983
31058
  examples: ["green", "yellow", "red"]
30984
31059
  }),
30985
- reason: z442.string().nullable().meta({
31060
+ reason: z445.string().nullable().meta({
30986
31061
  description: "Human-readable reason for the non-green status. `null` for `green`.",
30987
31062
  examples: ["balance below projected", "approval below ceiling", null]
30988
31063
  }),
@@ -30993,7 +31068,7 @@ var TreasuryHealthResponseSchema = z442.object({
30993
31068
  });
30994
31069
 
30995
31070
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
30996
- import { z as z443 } from "zod";
31071
+ import { z as z446 } from "zod";
30997
31072
  var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
30998
31073
  account: addressField({ defaultOperator: "iLike" }),
30999
31074
  delegate: addressField({ defaultOperator: "iLike" }),
@@ -31007,49 +31082,49 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
31007
31082
  defaultSort: "-delegatedAt",
31008
31083
  globalSearch: false
31009
31084
  });
31010
- var VotingDelegationV2ItemSchema = z443.object({
31011
- id: z443.string().uuid(),
31085
+ var VotingDelegationV2ItemSchema = z446.object({
31086
+ id: z446.string().uuid(),
31012
31087
  delegator: ethereumAddress,
31013
31088
  fromDelegate: ethereumAddress.nullable(),
31014
31089
  toDelegate: ethereumAddress,
31015
31090
  delegatedAt: timestamp(),
31016
31091
  delegatedBlockNumber: apiBigInt,
31017
31092
  delegatedTxHash: ethereumHash,
31018
- delegatedLogIndex: z443.number().int().nonnegative(),
31093
+ delegatedLogIndex: z446.number().int().nonnegative(),
31019
31094
  undelegatedAt: timestamp().nullable(),
31020
31095
  undelegatedBlockNumber: apiBigInt.nullable(),
31021
31096
  undelegatedTxHash: ethereumHash.nullable(),
31022
- undelegatedLogIndex: z443.number().int().nonnegative().nullable(),
31023
- isActive: z443.boolean()
31097
+ undelegatedLogIndex: z446.number().int().nonnegative().nullable(),
31098
+ isActive: z446.boolean()
31024
31099
  });
31025
31100
  var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
31026
31101
 
31027
31102
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-power-distribution.schema.ts
31028
- import { z as z444 } from "zod";
31103
+ import { z as z447 } from "zod";
31029
31104
  var DEFAULT_TOP_N = 50;
31030
31105
  var MAX_TOP_N = 200;
31031
- var VotingPowerDistributionV2InputSchema = z444.object({
31032
- topN: z444.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
31106
+ var VotingPowerDistributionV2InputSchema = z447.object({
31107
+ topN: z447.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
31033
31108
  description: `Number of top holders to return individually (1-${MAX_TOP_N}). Remaining holders aggregate into the "other" bucket.`,
31034
31109
  examples: [DEFAULT_TOP_N]
31035
31110
  })
31036
31111
  });
31037
- var VotingPowerDistributionHolderSchema = z444.object({
31112
+ var VotingPowerDistributionHolderSchema = z447.object({
31038
31113
  account: ethereumAddress,
31039
- votes: z444.string(),
31114
+ votes: z447.string(),
31040
31115
  votesExact: apiBigInt
31041
31116
  });
31042
- var VotingPowerDistributionOtherSchema = z444.object({
31043
- holders: z444.number().int().nonnegative(),
31044
- votes: z444.string(),
31117
+ var VotingPowerDistributionOtherSchema = z447.object({
31118
+ holders: z447.number().int().nonnegative(),
31119
+ votes: z447.string(),
31045
31120
  votesExact: apiBigInt
31046
31121
  });
31047
- var VotingPowerDistributionV2DataSchema = z444.object({
31048
- total: z444.number().int().nonnegative(),
31049
- topN: z444.number().int().nonnegative(),
31050
- totalVotes: z444.string(),
31122
+ var VotingPowerDistributionV2DataSchema = z447.object({
31123
+ total: z447.number().int().nonnegative(),
31124
+ topN: z447.number().int().nonnegative(),
31125
+ totalVotes: z447.string(),
31051
31126
  totalVotesExact: apiBigInt,
31052
- holders: z444.array(VotingPowerDistributionHolderSchema),
31127
+ holders: z447.array(VotingPowerDistributionHolderSchema),
31053
31128
  other: VotingPowerDistributionOtherSchema
31054
31129
  });
31055
31130
  var VotingPowerDistributionV2OutputSchema = createSingleResponse(VotingPowerDistributionV2DataSchema);
@@ -31068,21 +31143,21 @@ var allowance = v2Contract.route({
31068
31143
  description: "Get token allowance for a specific owner/spender pair.",
31069
31144
  successDescription: "Token allowance details retrieved successfully.",
31070
31145
  tags: [V2_TAG.token]
31071
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z445.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
31146
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z448.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
31072
31147
  var holder = v2Contract.route({
31073
31148
  method: "GET",
31074
31149
  path: "/tokens/{tokenAddress}/holder-balances",
31075
31150
  description: "Get a specific token holder's balance information.",
31076
31151
  successDescription: "Token holder balance details retrieved successfully.",
31077
31152
  tags: [V2_TAG.token]
31078
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z445.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
31153
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z448.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
31079
31154
  var holders = v2Contract.route({
31080
31155
  method: "GET",
31081
31156
  path: "/tokens/{tokenAddress}/holders",
31082
31157
  description: "Get token holders and their balances.",
31083
31158
  successDescription: "List of token holders with balance information.",
31084
31159
  tags: [V2_TAG.token]
31085
- }).input(v2Input.paramsQuery(z445.object({
31160
+ }).input(v2Input.paramsQuery(z448.object({
31086
31161
  tokenAddress: ethereumAddress.meta({
31087
31162
  description: "The token contract address",
31088
31163
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31094,7 +31169,7 @@ var actions = v2Contract.route({
31094
31169
  description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31095
31170
  successDescription: "Paginated list of actions targeting the specified token.",
31096
31171
  tags: [V2_TAG.token]
31097
- }).input(v2Input.paramsQuery(z445.object({
31172
+ }).input(v2Input.paramsQuery(z448.object({
31098
31173
  tokenAddress: ethereumAddress.meta({
31099
31174
  description: "The token contract address to filter actions by",
31100
31175
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31106,7 +31181,7 @@ var events2 = v2Contract.route({
31106
31181
  description: "List token events with pagination, filtering, sorting, and faceted counts.",
31107
31182
  successDescription: "Paginated list of token events with metadata and pagination links.",
31108
31183
  tags: [V2_TAG.token]
31109
- }).input(v2Input.paramsQuery(z445.object({
31184
+ }).input(v2Input.paramsQuery(z448.object({
31110
31185
  tokenAddress: ethereumAddress.meta({
31111
31186
  description: "The token contract address",
31112
31187
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31118,7 +31193,7 @@ var denominationAssets = v2Contract.route({
31118
31193
  description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31119
31194
  successDescription: "Paginated list of denomination assets used by the specified bond.",
31120
31195
  tags: [V2_TAG.token]
31121
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
31196
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
31122
31197
  var compliance = v2Contract.route({
31123
31198
  method: "GET",
31124
31199
  path: "/tokens/{tokenAddress}/compliance-modules",
@@ -31160,7 +31235,7 @@ var transferApprovals = v2Contract.route({
31160
31235
  description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
31161
31236
  successDescription: "List of transfer approvals with their current status.",
31162
31237
  tags: [V2_TAG.compliance]
31163
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
31238
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
31164
31239
  var price = v2Contract.route({
31165
31240
  method: "GET",
31166
31241
  path: "/tokens/{tokenAddress}/price",
@@ -31174,49 +31249,70 @@ var conversionTriggers = v2Contract.route({
31174
31249
  description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31175
31250
  successDescription: "Paginated list of conversion triggers with effective pricing.",
31176
31251
  tags: [V2_TAG.token]
31177
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
31252
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
31178
31253
  var conversionRecords = v2Contract.route({
31179
31254
  method: "GET",
31180
31255
  path: "/tokens/{tokenAddress}/conversion/records",
31181
31256
  description: "List conversion lifecycle records for a token. Includes conversion-minter issuance details when available. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31182
31257
  successDescription: "Paginated list of conversion records.",
31183
31258
  tags: [V2_TAG.token]
31184
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
31259
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
31260
+ var conversionTriggerEvents = v2Contract.route({
31261
+ method: "GET",
31262
+ path: "/tokens/{tokenAddress}/conversion/events",
31263
+ description: "List the append-only TriggerPublished / TriggerDisabled / republish lifecycle observations for a token's attached conversion feature. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31264
+ successDescription: "Paginated list of conversion trigger lifecycle events.",
31265
+ tags: [V2_TAG.token]
31266
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
31267
+ var convertsTo = v2Contract.route({
31268
+ method: "GET",
31269
+ path: "/tokens/{tokenAddress}/conversion/converts-to",
31270
+ description: "List target tokens that this token has been authorized to convert into. Reads the forward direction of the bidirectional conversion authorization edges.",
31271
+ successDescription: "Paginated list of forward conversion authorization edges.",
31272
+ tags: [V2_TAG.token]
31273
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
31274
+ var convertedFrom = v2Contract.route({
31275
+ method: "GET",
31276
+ path: "/tokens/{tokenAddress}/conversion/converted-from",
31277
+ description: "List source tokens that have been authorized to convert into this token. Reads the reverse direction of the bidirectional conversion authorization edges.",
31278
+ successDescription: "Paginated list of reverse conversion authorization edges.",
31279
+ tags: [V2_TAG.token]
31280
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
31185
31281
  var conversionHolderState = v2Contract.route({
31186
31282
  method: "GET",
31187
31283
  path: "/tokens/{tokenAddress}/conversion/holder-state",
31188
31284
  description: "Read holder-specific conversion state from the token's attached conversion feature. Returns null when no conversion feature is attached.",
31189
31285
  successDescription: "Conversion holder state retrieved successfully.",
31190
31286
  tags: [V2_TAG.token]
31191
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z445.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
31287
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z448.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
31192
31288
  var votingDelegations = v2Contract.route({
31193
31289
  method: "GET",
31194
31290
  path: "/tokens/{tokenAddress}/voting-delegations",
31195
31291
  description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
31196
31292
  successDescription: "Paginated list of voting delegation lifecycle rows.",
31197
31293
  tags: [V2_TAG.token]
31198
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
31294
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
31199
31295
  var votingPowerDistribution = v2Contract.route({
31200
31296
  method: "GET",
31201
31297
  path: "/tokens/{tokenAddress}/voting-power/distribution",
31202
31298
  description: "Histogram of current voting power per delegate for a token's voting-power feature. Returns the top-N holders by latest votes plus a single aggregated 'other' bucket covering remaining holders.",
31203
31299
  successDescription: "Voting-power distribution summary retrieved successfully.",
31204
31300
  tags: [V2_TAG.token]
31205
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
31301
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
31206
31302
  var permitInfo = v2Contract.route({
31207
31303
  method: "GET",
31208
31304
  path: "/tokens/{tokenAddress}/permit-info",
31209
31305
  description: "Read EIP-2612 permit metadata from the token's attached permit feature, including the domain separator and optional owner nonce.",
31210
31306
  successDescription: "Permit feature metadata retrieved successfully.",
31211
31307
  tags: [V2_TAG.token]
31212
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z445.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
31308
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z448.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
31213
31309
  var featurePermitReplayHistory = v2Contract.route({
31214
31310
  method: "GET",
31215
31311
  path: "/tokens/{tokenAddress}/permit/replay-history/{owner}",
31216
31312
  description: "List relayed `permit()` calls scoped to a single holder for a token's attached Permit feature. Forensic/audit view derived from the indexer projection that filters Approval events on the EIP-2612 permit function selector. History begins at the U2 selector bump landing date — pre-bump events do not appear because their `selector` column is NULL. Permits routed through ERC-4337 `EntryPoint.handleOps` (smart-wallet / UserOp paths) are conservatively excluded in this backend slice because the outer transaction selector reflects the EntryPoint, not the EIP-2612 selector; promoting AA-routed permits requires inner-call decoding tracked as a follow-up.",
31217
31313
  successDescription: "Paginated list of permit replay events for the specified owner.",
31218
31314
  tags: [V2_TAG.token]
31219
- }).input(v2Input.paramsQuery(z445.object({
31315
+ }).input(v2Input.paramsQuery(z448.object({
31220
31316
  tokenAddress: TokenReadInputSchema.shape.tokenAddress,
31221
31317
  owner: ethereumAddress.meta({
31222
31318
  description: "Token holder whose permit replay history is being requested.",
@@ -31229,21 +31325,21 @@ var historicalBalances = v2Contract.route({
31229
31325
  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.",
31230
31326
  successDescription: "Paginated list of historical balance checkpoints.",
31231
31327
  tags: [V2_TAG.token]
31232
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
31328
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
31233
31329
  var historicalBalanceAtBlock = v2Contract.route({
31234
31330
  method: "GET",
31235
31331
  path: "/tokens/{tokenAddress}/historical-balances/balance-at-block",
31236
31332
  description: "Read a holder balance and total supply from the token's attached historical-balances feature at a specific feature clock timepoint.",
31237
31333
  successDescription: "Historical balance snapshot retrieved successfully.",
31238
31334
  tags: [V2_TAG.token]
31239
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
31335
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
31240
31336
  var historicalHoldersAtBlock = v2Contract.route({
31241
31337
  method: "GET",
31242
31338
  path: "/tokens/{tokenAddress}/historical-balances/holders-at-block",
31243
31339
  description: "List holder balances read from the token's attached historical-balances feature at a specific feature clock timepoint.",
31244
31340
  successDescription: "Paginated historical holder snapshot retrieved successfully.",
31245
31341
  tags: [V2_TAG.token]
31246
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
31342
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
31247
31343
  var historicalBalanceAtBlockByHolder = v2Contract.route({
31248
31344
  method: "GET",
31249
31345
  path: "/tokens/{tokenAddress}/historical-balances/{holderAddress}",
@@ -31257,28 +31353,28 @@ var transactionFeeCollections = v2Contract.route({
31257
31353
  description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
31258
31354
  successDescription: "Paginated list of transaction-fee collections.",
31259
31355
  tags: [V2_TAG.token]
31260
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
31356
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
31261
31357
  var feeAccrualEvents = v2Contract.route({
31262
31358
  method: "GET",
31263
31359
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
31264
31360
  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.",
31265
31361
  successDescription: "Paginated list of fee-accrual events.",
31266
31362
  tags: [V2_TAG.token]
31267
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
31363
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
31268
31364
  var feeAccrualPayer = v2Contract.route({
31269
31365
  method: "GET",
31270
31366
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/payers/{payer}",
31271
31367
  description: "Per-payer summary of accrued transaction fees on a token's transaction-fee-accounting feature — totals, per-operation-type breakdown, and the most recent accrual events for the payer.",
31272
31368
  successDescription: "Per-payer accrual summary.",
31273
31369
  tags: [V2_TAG.token]
31274
- }).input(v2Input.params(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
31370
+ }).input(v2Input.params(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
31275
31371
  var externalFeeCollectionEvents = v2Contract.route({
31276
31372
  method: "GET",
31277
31373
  path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
31278
31374
  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.",
31279
31375
  successDescription: "Paginated list of external-fee collection events.",
31280
31376
  tags: [V2_TAG.token]
31281
- }).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
31377
+ }).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
31282
31378
  var treasuryHealth = v2Contract.route({
31283
31379
  method: "GET",
31284
31380
  path: "/tokens/{tokenAddress}/treasury/health",
@@ -31302,6 +31398,9 @@ var tokenV2ReadsContract = {
31302
31398
  transferApprovals,
31303
31399
  conversionTriggers,
31304
31400
  conversionRecords,
31401
+ conversionTriggerEvents,
31402
+ convertsTo,
31403
+ convertedFrom,
31305
31404
  conversionHolderState,
31306
31405
  votingDelegations,
31307
31406
  votingPowerDistribution,
@@ -31321,7 +31420,7 @@ var tokenV2ReadsContract = {
31321
31420
  };
31322
31421
 
31323
31422
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
31324
- import { z as z446 } from "zod";
31423
+ import { z as z449 } from "zod";
31325
31424
  var statsBondStatus = v2Contract.route({
31326
31425
  method: "GET",
31327
31426
  path: "/tokens/{tokenAddress}/stats/bond-status",
@@ -31342,25 +31441,25 @@ var statsTotalSupply = v2Contract.route({
31342
31441
  description: "Get total supply history statistics for a specific token.",
31343
31442
  successDescription: "Token total supply history statistics.",
31344
31443
  tags: [V2_TAG.tokenStats]
31345
- }).input(v2Input.paramsQuery(z446.object({
31444
+ }).input(v2Input.paramsQuery(z449.object({
31346
31445
  tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
31347
- }), z446.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
31446
+ }), z449.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
31348
31447
  var statsSupplyChanges = v2Contract.route({
31349
31448
  method: "GET",
31350
31449
  path: "/tokens/{tokenAddress}/stats/supply-changes",
31351
31450
  description: "Get supply changes history (minted/burned) statistics for a specific token.",
31352
31451
  successDescription: "Token supply changes history statistics.",
31353
31452
  tags: [V2_TAG.tokenStats]
31354
- }).input(v2Input.paramsQuery(z446.object({
31453
+ }).input(v2Input.paramsQuery(z449.object({
31355
31454
  tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
31356
- }), z446.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
31455
+ }), z449.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
31357
31456
  var statsVolume = v2Contract.route({
31358
31457
  method: "GET",
31359
31458
  path: "/tokens/{tokenAddress}/stats/volume",
31360
31459
  description: "Get total volume history statistics for a specific token.",
31361
31460
  successDescription: "Token total volume history statistics.",
31362
31461
  tags: [V2_TAG.tokenStats]
31363
- }).input(v2Input.paramsQuery(z446.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z446.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
31462
+ }).input(v2Input.paramsQuery(z449.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z449.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
31364
31463
  var statsWalletDistribution = v2Contract.route({
31365
31464
  method: "GET",
31366
31465
  path: "/tokens/{tokenAddress}/stats/wallet-distribution",
@@ -31394,46 +31493,46 @@ var tokenV2StatsContract = {
31394
31493
  };
31395
31494
 
31396
31495
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.contract.ts
31397
- import { z as z450 } from "zod";
31496
+ import { z as z453 } from "zod";
31398
31497
 
31399
31498
  // ../../packages/dalp/api-contract/src/routes/token/topic-schemes/routes/topic-scheme.list.schema.ts
31400
- import { z as z447 } from "zod";
31401
- var TokenTopicSchemeInheritanceLevelSchema = z447.enum(["token", "system", "global"]).meta({
31499
+ import { z as z450 } from "zod";
31500
+ var TokenTopicSchemeInheritanceLevelSchema = z450.enum(["token", "system", "global"]).meta({
31402
31501
  description: "Chain-of-trust tier that registered the scheme. `token` rows are token-specific and removable; `system` and `global` rows are inherited and read-only.",
31403
31502
  examples: ["token"]
31404
31503
  });
31405
- var TokenTopicSchemeSchema = z447.object({
31406
- id: z447.string().meta({
31504
+ var TokenTopicSchemeSchema = z450.object({
31505
+ id: z450.string().meta({
31407
31506
  description: "Synthetic identifier for the topic scheme row (registry + topicId).",
31408
31507
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F#1"]
31409
31508
  }),
31410
- topicId: z447.string().meta({
31509
+ topicId: z450.string().meta({
31411
31510
  description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
31412
31511
  examples: ["1", "100"]
31413
31512
  }),
31414
- name: z447.string().meta({
31513
+ name: z450.string().meta({
31415
31514
  description: "Human-readable topic-scheme name registered on the registry.",
31416
31515
  examples: ["Know Your Customer", "Accredited Investor"]
31417
31516
  }),
31418
- signature: z447.string().meta({
31517
+ signature: z450.string().meta({
31419
31518
  description: "ABI signature describing the claim data shape verified by this scheme.",
31420
31519
  examples: ["(string)", "(uint256,bool)"]
31421
31520
  }),
31422
- registry: z447.object({
31521
+ registry: z450.object({
31423
31522
  id: ethereumAddress.meta({
31424
31523
  description: "Topic Scheme Registry contract address that holds this row.",
31425
31524
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31426
31525
  })
31427
31526
  }),
31428
31527
  inheritanceLevel: TokenTopicSchemeInheritanceLevelSchema,
31429
- isShadowed: z447.boolean().meta({
31528
+ isShadowed: z450.boolean().meta({
31430
31529
  description: "TRUE when another registry in the resolved chain registered the same numeric topicId with a different signature. Surfaces inheritance shadowing before a token admin mutates the row.",
31431
31530
  examples: [false]
31432
31531
  })
31433
31532
  });
31434
31533
 
31435
31534
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.list.schema.ts
31436
- import { z as z448 } from "zod";
31535
+ import { z as z451 } from "zod";
31437
31536
  var TOKEN_TOPIC_SCHEMES_COLLECTION_FIELDS = {
31438
31537
  topicId: bigintField({ defaultOperator: "eq" }),
31439
31538
  name: textField({ defaultOperator: "iLike" }),
@@ -31445,14 +31544,14 @@ var TokenTopicSchemesV2ListInputSchema = createCollectionInputSchema(TOKEN_TOPIC
31445
31544
  globalSearch: true
31446
31545
  });
31447
31546
  var TokenTopicSchemesV2ListOutputSchema = createPaginatedResponse(TokenTopicSchemeSchema, {
31448
- hasTokenRegistry: z448.boolean().meta({
31547
+ hasTokenRegistry: z451.boolean().meta({
31449
31548
  description: "Whether the token has an attached token-level Topic Scheme Registry. " + "When false, only inherited system/global schemes resolve and no token-specific scheme can be added or removed."
31450
31549
  })
31451
31550
  });
31452
31551
 
31453
31552
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.mutations.schema.ts
31454
31553
  import { parseAbiParameters } from "viem";
31455
- import { z as z449 } from "zod";
31554
+ import { z as z452 } from "zod";
31456
31555
  function normalizeClaimDataSignature(signature) {
31457
31556
  return `(${signature.trim()})`;
31458
31557
  }
@@ -31466,7 +31565,7 @@ function isAbiTypeList(typeList) {
31466
31565
  return false;
31467
31566
  }
31468
31567
  }
31469
- var ClaimDataSignatureSchema = z449.string().min(1, "Signature is required").superRefine((value3, ctx) => {
31568
+ var ClaimDataSignatureSchema = z452.string().min(1, "Signature is required").superRefine((value3, ctx) => {
31470
31569
  if (value3.length === 0) {
31471
31570
  return;
31472
31571
  }
@@ -31479,7 +31578,7 @@ var ClaimDataSignatureSchema = z449.string().min(1, "Signature is required").sup
31479
31578
  }
31480
31579
  });
31481
31580
  var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
31482
- name: z449.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
31581
+ name: z452.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
31483
31582
  description: "Human-readable name for the token-level topic scheme.",
31484
31583
  examples: ["Custom Compliance", "Asset Origin"]
31485
31584
  }),
@@ -31489,20 +31588,20 @@ var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
31489
31588
  })
31490
31589
  });
31491
31590
  var TokenTopicSchemeCreateOutputSchema = BaseMutationOutputSchema.extend({
31492
- name: z449.string().meta({
31591
+ name: z452.string().meta({
31493
31592
  description: "Name of the created token-level topic scheme.",
31494
31593
  examples: ["Custom Compliance", "Asset Origin"]
31495
31594
  })
31496
31595
  });
31497
- var TokenTopicSchemeDeleteParamsSchema = z449.object({
31498
- topicId: z449.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
31596
+ var TokenTopicSchemeDeleteParamsSchema = z452.object({
31597
+ topicId: z452.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
31499
31598
  description: "Numeric topic id of the token-level scheme to remove (decimal string).",
31500
31599
  examples: ["1", "100"]
31501
31600
  })
31502
31601
  });
31503
31602
  var TokenTopicSchemeDeleteInputSchema = MutationInputSchema;
31504
31603
  var TokenTopicSchemeDeleteOutputSchema = BaseMutationOutputSchema.extend({
31505
- topicId: z449.string().meta({
31604
+ topicId: z452.string().meta({
31506
31605
  description: "Numeric topic id of the removed token-level scheme.",
31507
31606
  examples: ["1", "100"]
31508
31607
  })
@@ -31531,7 +31630,7 @@ var del12 = v2Contract.route({
31531
31630
  description: "Remove a token-specific topic scheme from the token-level Topic Scheme Registry by topic id.",
31532
31631
  successDescription: "Token topic scheme removed successfully.",
31533
31632
  tags: [V2_TAG.claimTopics]
31534
- }).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z450.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
31633
+ }).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z453.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
31535
31634
  var tokenV2TopicSchemesContract = {
31536
31635
  list: list40,
31537
31636
  create: create21,
@@ -31539,54 +31638,54 @@ var tokenV2TopicSchemesContract = {
31539
31638
  };
31540
31639
 
31541
31640
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.contract.ts
31542
- import { z as z454 } from "zod";
31641
+ import { z as z457 } from "zod";
31543
31642
 
31544
31643
  // ../../packages/dalp/api-contract/src/routes/token/trusted-issuers/routes/trusted-issuer.list.schema.ts
31545
- import { z as z451 } from "zod";
31546
- var TokenTrustedIssuerInheritanceLevelSchema = z451.enum(["token", "system", "global"]).meta({
31644
+ import { z as z454 } from "zod";
31645
+ var TokenTrustedIssuerInheritanceLevelSchema = z454.enum(["token", "system", "global"]).meta({
31547
31646
  description: "Chain-of-trust tier that registered the issuer. `token` rows are token-specific and removable; `system` and `global` rows are inherited and read-only.",
31548
31647
  examples: ["token"]
31549
31648
  });
31550
- var TokenTrustedIssuerClaimTopicSchema = z451.object({
31551
- topicId: z451.string().meta({
31649
+ var TokenTrustedIssuerClaimTopicSchema = z454.object({
31650
+ topicId: z454.string().meta({
31552
31651
  description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
31553
31652
  examples: ["1", "100"]
31554
31653
  }),
31555
- name: z451.string().meta({
31654
+ name: z454.string().meta({
31556
31655
  description: "Human-readable topic-scheme name resolved from the token's topic-scheme registry chain.",
31557
31656
  examples: ["Know Your Customer", "Accredited Investor"]
31558
31657
  })
31559
31658
  });
31560
- var TokenTrustedIssuerSchema = z451.object({
31659
+ var TokenTrustedIssuerSchema = z454.object({
31561
31660
  id: ethereumAddress.meta({
31562
31661
  description: "Issuer identity address — the on-chain key for the trusted issuer.",
31563
31662
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31564
31663
  }),
31565
- account: z451.object({
31664
+ account: z454.object({
31566
31665
  id: ethereumAddress.meta({
31567
31666
  description: "Issuer wallet address.",
31568
31667
  examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
31569
31668
  })
31570
31669
  }).nullable().optional().meta({ description: "Identity account associated with the issuer, when resolvable." }),
31571
- claimTopics: z451.array(TokenTrustedIssuerClaimTopicSchema).meta({
31670
+ claimTopics: z454.array(TokenTrustedIssuerClaimTopicSchema).meta({
31572
31671
  description: "Claim topics this issuer is trusted for at its registry tier.",
31573
31672
  examples: [[]]
31574
31673
  }),
31575
- registry: z451.object({
31674
+ registry: z454.object({
31576
31675
  id: ethereumAddress.meta({
31577
31676
  description: "Trusted Issuer Registry contract address that holds this row.",
31578
31677
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31579
31678
  })
31580
31679
  }),
31581
31680
  inheritanceLevel: TokenTrustedIssuerInheritanceLevelSchema,
31582
- isInheritedElsewhere: z451.boolean().meta({
31681
+ isInheritedElsewhere: z454.boolean().meta({
31583
31682
  description: "True when the same trusted issuer is also active in a parent-tier (system/global) registry of this token's resolved chain. " + "A `token`-tier row with this flag set keeps inherited trust after a token-level remove; `system`/`global` rows are always false.",
31584
31683
  examples: [false]
31585
31684
  })
31586
31685
  });
31587
31686
 
31588
31687
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.list.schema.ts
31589
- import { z as z452 } from "zod";
31688
+ import { z as z455 } from "zod";
31590
31689
  var TOKEN_TRUSTED_ISSUERS_COLLECTION_FIELDS = {
31591
31690
  account: textField({ defaultOperator: "iLike" }),
31592
31691
  source: enumField(["token", "system", "global"], { sortable: false })
@@ -31596,18 +31695,18 @@ var TokenTrustedIssuersV2ListInputSchema = createCollectionInputSchema(TOKEN_TRU
31596
31695
  globalSearch: true
31597
31696
  });
31598
31697
  var TokenTrustedIssuersV2ListOutputSchema = createPaginatedResponse(TokenTrustedIssuerSchema, {
31599
- hasTrustedIssuersRegistry: z452.boolean().meta({
31698
+ hasTrustedIssuersRegistry: z455.boolean().meta({
31600
31699
  description: "Whether the token has an attached token-level Trusted Issuer Registry. " + "When false, only inherited system/global issuers resolve and no token-specific issuer can be added or removed."
31601
31700
  })
31602
31701
  });
31603
31702
 
31604
31703
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.mutations.schema.ts
31605
- import { z as z453 } from "zod";
31704
+ import { z as z456 } from "zod";
31606
31705
  var MAX_UINT2565 = 2n ** 256n - 1n;
31607
31706
  var MAX_CLAIM_TOPIC_IDS = 50;
31608
31707
  var CLAIM_TOPIC_ID_FORMAT_MESSAGE = "Each claim topic id must be a non-negative decimal integer.";
31609
31708
  var CLAIM_TOPIC_ID_RANGE_MESSAGE = "Each claim topic id must fit within uint256.";
31610
- var ClaimTopicIdSchema = z453.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
31709
+ var ClaimTopicIdSchema = z456.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
31611
31710
  if (!/^\d+$/.test(value3)) {
31612
31711
  ctx.addIssue({ code: "custom", message: CLAIM_TOPIC_ID_FORMAT_MESSAGE });
31613
31712
  return;
@@ -31621,7 +31720,7 @@ var TokenTrustedIssuerCreateInputSchema = MutationInputSchema.extend({
31621
31720
  description: "Identity address of the trusted issuer to add to the token-level registry.",
31622
31721
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31623
31722
  }),
31624
- claimTopicIds: z453.array(ClaimTopicIdSchema).min(1, "At least one claim topic id is required").max(MAX_CLAIM_TOPIC_IDS, `A trusted issuer may be granted at most ${MAX_CLAIM_TOPIC_IDS} claim topics`).meta({
31723
+ claimTopicIds: z456.array(ClaimTopicIdSchema).min(1, "At least one claim topic id is required").max(MAX_CLAIM_TOPIC_IDS, `A trusted issuer may be granted at most ${MAX_CLAIM_TOPIC_IDS} claim topics`).meta({
31625
31724
  description: "Decimal-string topic ids the issuer is trusted for, passed as the on-chain uint256[] argument.",
31626
31725
  examples: [["1", "2", "100"]]
31627
31726
  })
@@ -31632,7 +31731,7 @@ var TokenTrustedIssuerCreateOutputSchema = BaseMutationOutputSchema.extend({
31632
31731
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31633
31732
  })
31634
31733
  });
31635
- var TokenTrustedIssuerDeleteParamsSchema = z453.object({
31734
+ var TokenTrustedIssuerDeleteParamsSchema = z456.object({
31636
31735
  issuerAddress: ethereumAddress.meta({
31637
31736
  description: "Identity address of the token-level trusted issuer to remove.",
31638
31737
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31669,7 +31768,7 @@ var del13 = v2Contract.route({
31669
31768
  description: "Remove a token-specific trusted issuer from the token-level Trusted Issuer Registry by issuer address.",
31670
31769
  successDescription: "Token trusted issuer removed successfully.",
31671
31770
  tags: [V2_TAG.trustedIssuers]
31672
- }).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z454.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
31771
+ }).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z457.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
31673
31772
  var tokenV2TrustedIssuersContract = {
31674
31773
  list: list41,
31675
31774
  create: create22,
@@ -31695,7 +31794,7 @@ var tokenV2Contract = {
31695
31794
  };
31696
31795
 
31697
31796
  // ../../packages/core/validation/src/transaction-request-state.ts
31698
- import { z as z455 } from "zod";
31797
+ import { z as z458 } from "zod";
31699
31798
  var transactionRequestStates = [
31700
31799
  "RECEIVED",
31701
31800
  "QUEUED",
@@ -31710,7 +31809,7 @@ var transactionRequestStates = [
31710
31809
  "CANCELLED"
31711
31810
  ];
31712
31811
  var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
31713
- var TransactionRequestStateSchema = z455.enum(transactionRequestStates).meta({
31812
+ var TransactionRequestStateSchema = z458.enum(transactionRequestStates).meta({
31714
31813
  description: "Current state in the transaction request lifecycle",
31715
31814
  examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
31716
31815
  });
@@ -31752,96 +31851,96 @@ var transactionSubStatuses = [
31752
31851
  "WORKFLOW_BATCH_COMPLETED",
31753
31852
  "WORKFLOW_BATCH_FAILED"
31754
31853
  ];
31755
- var TransactionSubStatusSchema = z455.enum(transactionSubStatuses).meta({
31854
+ var TransactionSubStatusSchema = z458.enum(transactionSubStatuses).meta({
31756
31855
  description: "Detailed sub-status for transaction failures",
31757
31856
  examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
31758
31857
  });
31759
31858
 
31760
31859
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
31761
- import { z as z456 } from "zod";
31762
- var TransactionForceRetryInputSchema = z456.object({
31763
- transactionId: z456.uuid().meta({
31860
+ import { z as z459 } from "zod";
31861
+ var TransactionForceRetryInputSchema = z459.object({
31862
+ transactionId: z459.uuid().meta({
31764
31863
  description: "Queue transaction identifier (UUIDv7) to retry",
31765
31864
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31766
31865
  })
31767
31866
  });
31768
- var TransactionForceRetryBodySchema = z456.object({
31769
- gasPrice: z456.string().optional().meta({
31867
+ var TransactionForceRetryBodySchema = z459.object({
31868
+ gasPrice: z459.string().optional().meta({
31770
31869
  description: "Override gas price in wei (decimal string)",
31771
31870
  examples: ["20000000000"]
31772
31871
  }),
31773
- nonce: z456.number().int().nonnegative().optional().meta({
31872
+ nonce: z459.number().int().nonnegative().optional().meta({
31774
31873
  description: "Override nonce for the retried transaction",
31775
31874
  examples: [42]
31776
31875
  })
31777
31876
  }).default({});
31778
- var TransactionForceRetryResultSchema = z456.object({
31779
- transactionId: z456.uuid().meta({ description: "The requeued transaction ID" }),
31877
+ var TransactionForceRetryResultSchema = z459.object({
31878
+ transactionId: z459.uuid().meta({ description: "The requeued transaction ID" }),
31780
31879
  previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
31781
31880
  status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
31782
31881
  });
31783
31882
  var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
31784
- var TransactionForceFailInputSchema = z456.object({
31785
- transactionId: z456.uuid().meta({
31883
+ var TransactionForceFailInputSchema = z459.object({
31884
+ transactionId: z459.uuid().meta({
31786
31885
  description: "Queue transaction identifier (UUIDv7) to force-fail",
31787
31886
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31788
31887
  })
31789
31888
  });
31790
- var TransactionForceFailBodySchema = z456.object({
31791
- reason: z456.string().min(1).max(1000).meta({
31889
+ var TransactionForceFailBodySchema = z459.object({
31890
+ reason: z459.string().min(1).max(1000).meta({
31792
31891
  description: "Human-readable reason for forcing this transaction to failed state",
31793
31892
  examples: ["Manual intervention: stuck transaction after nonce conflict"]
31794
31893
  })
31795
31894
  });
31796
- var TransactionForceFailResultSchema = z456.object({
31797
- transactionId: z456.uuid().meta({ description: "The force-failed transaction ID" }),
31895
+ var TransactionForceFailResultSchema = z459.object({
31896
+ transactionId: z459.uuid().meta({ description: "The force-failed transaction ID" }),
31798
31897
  previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
31799
31898
  status: transactionRequestState().meta({ description: "New state (FAILED)" }),
31800
- reason: z456.string().meta({ description: "The reason provided for the force-fail" })
31899
+ reason: z459.string().meta({ description: "The reason provided for the force-fail" })
31801
31900
  });
31802
31901
  var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
31803
- var TransactionForceNonceInputSchema = z456.object({
31804
- transactionId: z456.uuid().meta({
31902
+ var TransactionForceNonceInputSchema = z459.object({
31903
+ transactionId: z459.uuid().meta({
31805
31904
  description: "Queue transaction identifier — the nonce is forced on its sender wallet",
31806
31905
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31807
31906
  })
31808
31907
  });
31809
- var TransactionForceNonceBodySchema = z456.object({
31810
- nonce: z456.number().int().nonnegative().meta({
31908
+ var TransactionForceNonceBodySchema = z459.object({
31909
+ nonce: z459.number().int().nonnegative().meta({
31811
31910
  description: "Nonce value to force-set on the sender's nonce tracker",
31812
31911
  examples: [42]
31813
31912
  })
31814
31913
  });
31815
- var TransactionForceNonceResultSchema = z456.object({
31816
- previous: z456.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
31817
- new: z456.number().meta({ description: "New nonce value after force-set" })
31914
+ var TransactionForceNonceResultSchema = z459.object({
31915
+ previous: z459.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
31916
+ new: z459.number().meta({ description: "New nonce value after force-set" })
31818
31917
  });
31819
31918
  var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
31820
31919
 
31821
31920
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
31822
- import { z as z457 } from "zod";
31823
- var TransactionV2CancelInputSchema = z457.object({
31824
- transactionId: z457.uuid().meta({
31921
+ import { z as z460 } from "zod";
31922
+ var TransactionV2CancelInputSchema = z460.object({
31923
+ transactionId: z460.uuid().meta({
31825
31924
  description: "Queue transaction identifier (UUIDv7) to cancel",
31826
31925
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31827
31926
  })
31828
31927
  });
31829
- var TransactionCancelResultSchema = z457.object({
31830
- status: z457.enum(["cancelled", "cancellation_pending", "error"]).meta({
31928
+ var TransactionCancelResultSchema = z460.object({
31929
+ status: z460.enum(["cancelled", "cancellation_pending", "error"]).meta({
31831
31930
  description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
31832
31931
  examples: ["cancelled", "cancellation_pending"]
31833
31932
  }),
31834
- cancelTransactionId: z457.string().optional().meta({
31933
+ cancelTransactionId: z460.string().optional().meta({
31835
31934
  description: "RBF replacement transaction ID when cancellation is pending on-chain"
31836
31935
  }),
31837
- message: z457.string().optional().meta({
31936
+ message: z460.string().optional().meta({
31838
31937
  description: "Human-readable error or status message"
31839
31938
  })
31840
31939
  });
31841
31940
  var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
31842
31941
 
31843
31942
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
31844
- import { z as z458 } from "zod";
31943
+ import { z as z461 } from "zod";
31845
31944
  var TRANSACTION_COLLECTION_FIELDS = {
31846
31945
  status: enumField([...transactionRequestStates]),
31847
31946
  operationType: textField(),
@@ -31854,12 +31953,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
31854
31953
  defaultSort: "createdAt",
31855
31954
  globalSearch: true
31856
31955
  });
31857
- var TransactionListItemSchema = z458.object({
31858
- transactionId: z458.uuid().meta({
31956
+ var TransactionListItemSchema = z461.object({
31957
+ transactionId: z461.uuid().meta({
31859
31958
  description: "Queue transaction identifier (UUIDv7)",
31860
31959
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31861
31960
  }),
31862
- kind: z458.string().meta({
31961
+ kind: z461.string().meta({
31863
31962
  description: "Mutation kind submitted to the queue",
31864
31963
  examples: ["token.create", "token.mint"]
31865
31964
  }),
@@ -31867,19 +31966,19 @@ var TransactionListItemSchema = z458.object({
31867
31966
  description: "Current transaction queue state",
31868
31967
  examples: ["QUEUED", "COMPLETED", "FAILED"]
31869
31968
  }),
31870
- subStatus: z458.string().nullable().meta({
31969
+ subStatus: z461.string().nullable().meta({
31871
31970
  description: "Optional queue sub-status with finer-grained detail",
31872
31971
  examples: ["TIMEOUT", null]
31873
31972
  }),
31874
- fromAddress: z458.string().meta({
31973
+ fromAddress: z461.string().meta({
31875
31974
  description: "Sender wallet address",
31876
31975
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31877
31976
  }),
31878
- chainId: z458.number().int().meta({
31977
+ chainId: z461.number().int().meta({
31879
31978
  description: "Target chain ID",
31880
31979
  examples: [1]
31881
31980
  }),
31882
- transactionHash: z458.string().nullable().meta({
31981
+ transactionHash: z461.string().nullable().meta({
31883
31982
  description: "Primary transaction hash once broadcast",
31884
31983
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
31885
31984
  }),
@@ -31899,19 +31998,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
31899
31998
  var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
31900
31999
 
31901
32000
  // ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
31902
- import { z as z459 } from "zod";
31903
- var TransactionStatusInputSchema = z459.object({
31904
- transactionId: z459.uuid().meta({
32001
+ import { z as z462 } from "zod";
32002
+ var TransactionStatusInputSchema = z462.object({
32003
+ transactionId: z462.uuid().meta({
31905
32004
  description: "Queue transaction identifier (UUIDv7)",
31906
32005
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31907
32006
  })
31908
32007
  });
31909
- var TransactionStatusOutputSchema = z459.object({
31910
- transactionId: z459.uuid().meta({
32008
+ var TransactionStatusOutputSchema = z462.object({
32009
+ transactionId: z462.uuid().meta({
31911
32010
  description: "Queue transaction identifier (UUIDv7)",
31912
32011
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
31913
32012
  }),
31914
- kind: z459.string().meta({
32013
+ kind: z462.string().meta({
31915
32014
  description: "Mutation kind submitted to the queue",
31916
32015
  examples: ["token.create", "token.mint"]
31917
32016
  }),
@@ -31919,23 +32018,23 @@ var TransactionStatusOutputSchema = z459.object({
31919
32018
  description: "Current transaction queue state",
31920
32019
  examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
31921
32020
  }),
31922
- subStatus: z459.string().nullable().meta({
32021
+ subStatus: z462.string().nullable().meta({
31923
32022
  description: "Optional queue sub-status with finer-grained progress or failure detail",
31924
32023
  examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
31925
32024
  }),
31926
- transactionHash: z459.string().nullable().meta({
32025
+ transactionHash: z462.string().nullable().meta({
31927
32026
  description: "Primary transaction hash once broadcast",
31928
32027
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
31929
32028
  }),
31930
- transactionHashes: z459.array(z459.string()).optional().meta({
32029
+ transactionHashes: z462.array(z462.string()).optional().meta({
31931
32030
  description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
31932
32031
  examples: [["0xabc...", "0xdef..."]]
31933
32032
  }),
31934
- blockNumber: z459.string().nullable().meta({
32033
+ blockNumber: z462.string().nullable().meta({
31935
32034
  description: "Confirmed block number when available",
31936
32035
  examples: ["12345678", null]
31937
32036
  }),
31938
- errorMessage: z459.string().nullable().meta({
32037
+ errorMessage: z462.string().nullable().meta({
31939
32038
  description: "Human-readable error or timeout detail when available",
31940
32039
  examples: ["Execution reverted", "Receipt not found after repeated checks", null]
31941
32040
  }),
@@ -32014,12 +32113,12 @@ var transactionV2Contract = {
32014
32113
  };
32015
32114
 
32016
32115
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
32017
- import { z as z465 } from "zod";
32116
+ import { z as z468 } from "zod";
32018
32117
 
32019
32118
  // ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
32020
- import { z as z460 } from "zod";
32021
- var UserReadByNationalIdInputSchema = z460.object({
32022
- nationalId: z460.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
32119
+ import { z as z463 } from "zod";
32120
+ var UserReadByNationalIdInputSchema = z463.object({
32121
+ nationalId: z463.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
32023
32122
  });
32024
32123
 
32025
32124
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
@@ -32037,13 +32136,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
32037
32136
  var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
32038
32137
 
32039
32138
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
32040
- import { z as z461 } from "zod";
32041
- var TokenAssetV2Schema = z461.object({
32139
+ import { z as z464 } from "zod";
32140
+ var TokenAssetV2Schema = z464.object({
32042
32141
  id: ethereumAddress.meta({
32043
32142
  description: "The token contract address",
32044
32143
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32045
32144
  }),
32046
- name: z461.string().meta({
32145
+ name: z464.string().meta({
32047
32146
  description: "The token name",
32048
32147
  examples: ["Bond Token", "Equity Share"]
32049
32148
  }),
@@ -32063,19 +32162,19 @@ var TokenAssetV2Schema = z461.object({
32063
32162
  description: "The total supply of the token (raw on-chain uint256)",
32064
32163
  examples: ["1000000000000000000000", "101000000000000000000000000"]
32065
32164
  }),
32066
- bond: z461.object({
32067
- isMatured: z461.boolean().meta({
32165
+ bond: z464.object({
32166
+ isMatured: z464.boolean().meta({
32068
32167
  description: "Whether the bond is matured",
32069
32168
  examples: [true, false]
32070
32169
  })
32071
32170
  }).optional().nullable().meta({ description: "The bond details", examples: [] }),
32072
- yield: z461.object({
32073
- schedule: z461.object({
32171
+ yield: z464.object({
32172
+ schedule: z464.object({
32074
32173
  id: ethereumAddress.meta({
32075
32174
  description: "The yield schedule contract address",
32076
32175
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
32077
32176
  }),
32078
- denominationAsset: z461.object({
32177
+ denominationAsset: z464.object({
32079
32178
  id: ethereumAddress.meta({
32080
32179
  description: "The denomination asset contract address",
32081
32180
  examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
@@ -32095,8 +32194,8 @@ var TokenAssetV2Schema = z461.object({
32095
32194
  }).nullable().meta({ description: "The yield schedule details", examples: [] })
32096
32195
  }).nullable().meta({ description: "The yield details", examples: [] })
32097
32196
  });
32098
- var UserAssetBalanceV2ItemSchema = z461.object({
32099
- id: z461.uuid().meta({
32197
+ var UserAssetBalanceV2ItemSchema = z464.object({
32198
+ id: z464.uuid().meta({
32100
32199
  description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
32101
32200
  examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
32102
32201
  }),
@@ -32116,7 +32215,7 @@ var UserAssetBalanceV2ItemSchema = z461.object({
32116
32215
  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.",
32117
32216
  examples: ["5.00", null]
32118
32217
  }),
32119
- priceInBaseCurrencyReliable: z461.boolean().meta({
32218
+ priceInBaseCurrencyReliable: z464.boolean().meta({
32120
32219
  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.",
32121
32220
  examples: [true, false]
32122
32221
  }),
@@ -32168,10 +32267,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
32168
32267
  var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
32169
32268
 
32170
32269
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
32171
- import { z as z464 } from "zod";
32270
+ import { z as z467 } from "zod";
32172
32271
 
32173
32272
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
32174
- import { z as z462 } from "zod";
32273
+ import { z as z465 } from "zod";
32175
32274
  var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
32176
32275
  fileName: textField(),
32177
32276
  documentType: enumField(kycDocumentTypes, { facetable: true }),
@@ -32182,19 +32281,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
32182
32281
  var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
32183
32282
  defaultSort: "uploadedAt"
32184
32283
  });
32185
- var KycProfileVersionDocumentsV2ListItemSchema = z462.object({
32186
- id: z462.string(),
32284
+ var KycProfileVersionDocumentsV2ListItemSchema = z465.object({
32285
+ id: z465.string(),
32187
32286
  documentType: kycDocumentType(),
32188
- fileName: z462.string(),
32189
- fileSize: z462.number(),
32190
- mimeType: z462.string(),
32287
+ fileName: z465.string(),
32288
+ fileSize: z465.number(),
32289
+ mimeType: z465.string(),
32191
32290
  uploadedAt: timestamp(),
32192
- uploadedBy: z462.string().nullable()
32291
+ uploadedBy: z465.string().nullable()
32193
32292
  });
32194
32293
  var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
32195
32294
 
32196
32295
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
32197
- import { z as z463 } from "zod";
32296
+ import { z as z466 } from "zod";
32198
32297
  var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
32199
32298
  var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
32200
32299
  var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
@@ -32207,21 +32306,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
32207
32306
  var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
32208
32307
  defaultSort: "versionNumber"
32209
32308
  });
32210
- var KycProfileVersionsV2ListItemSchema = z463.object({
32211
- id: z463.string(),
32212
- versionNumber: z463.number(),
32309
+ var KycProfileVersionsV2ListItemSchema = z466.object({
32310
+ id: z466.string(),
32311
+ versionNumber: z466.number(),
32213
32312
  status: kycVersionStatus(),
32214
32313
  createdAt: timestamp(),
32215
- createdBy: z463.string().nullable(),
32314
+ createdBy: z466.string().nullable(),
32216
32315
  submittedAt: timestamp().nullable(),
32217
- submittedBy: z463.string().nullable(),
32316
+ submittedBy: z466.string().nullable(),
32218
32317
  reviewedAt: timestamp().nullable(),
32219
- reviewedBy: z463.string().nullable(),
32220
- reviewOutcome: z463.enum(KYC_REVIEW_OUTCOMES).nullable(),
32221
- isDraft: z463.boolean(),
32222
- isUnderReview: z463.boolean(),
32223
- isApproved: z463.boolean(),
32224
- isCurrent: z463.boolean()
32318
+ reviewedBy: z466.string().nullable(),
32319
+ reviewOutcome: z466.enum(KYC_REVIEW_OUTCOMES).nullable(),
32320
+ isDraft: z466.boolean(),
32321
+ isUnderReview: z466.boolean(),
32322
+ isApproved: z466.boolean(),
32323
+ isCurrent: z466.boolean()
32225
32324
  });
32226
32325
  var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
32227
32326
 
@@ -32239,14 +32338,14 @@ var versionsList = v2Contract.route({
32239
32338
  description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
32240
32339
  successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
32241
32340
  tags: [V2_TAG.userKyc]
32242
- }).input(v2Input.paramsQuery(z464.object({ userId: z464.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
32341
+ }).input(v2Input.paramsQuery(z467.object({ userId: z467.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
32243
32342
  var versionsCreate = v2Contract.route({
32244
32343
  method: "POST",
32245
32344
  path: "/kyc-profiles/{userId}/versions",
32246
32345
  description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
32247
32346
  successDescription: "KYC profile version created successfully.",
32248
32347
  tags: [V2_TAG.userKyc]
32249
- }).input(v2Input.paramsBody(z464.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
32348
+ }).input(v2Input.paramsBody(z467.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
32250
32349
  var versionRead = v2Contract.route({
32251
32350
  method: "GET",
32252
32351
  path: "/kyc-profile-versions/{versionId}",
@@ -32260,7 +32359,7 @@ var versionUpdate = v2Contract.route({
32260
32359
  description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
32261
32360
  successDescription: "KYC profile version updated successfully.",
32262
32361
  tags: [V2_TAG.userKyc]
32263
- }).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
32362
+ }).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
32264
32363
  var versionSubmit = v2Contract.route({
32265
32364
  method: "POST",
32266
32365
  path: "/kyc-profile-versions/{versionId}/submissions",
@@ -32274,28 +32373,28 @@ var versionApprove = v2Contract.route({
32274
32373
  description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
32275
32374
  successDescription: "KYC profile version approved.",
32276
32375
  tags: [V2_TAG.userKyc]
32277
- }).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
32376
+ }).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
32278
32377
  var versionReject = v2Contract.route({
32279
32378
  method: "POST",
32280
32379
  path: "/kyc-profile-versions/{versionId}/rejections",
32281
32380
  description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
32282
32381
  successDescription: "KYC profile version rejected.",
32283
32382
  tags: [V2_TAG.userKyc]
32284
- }).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
32383
+ }).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
32285
32384
  var versionRequestUpdate = v2Contract.route({
32286
32385
  method: "POST",
32287
32386
  path: "/kyc-profile-versions/{versionId}/update-requests",
32288
32387
  description: "Request changes on a KYC version under review. Creates an action request for the user.",
32289
32388
  successDescription: "Update request created successfully.",
32290
32389
  tags: [V2_TAG.userKyc]
32291
- }).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
32390
+ }).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
32292
32391
  var documentsList = v2Contract.route({
32293
32392
  method: "GET",
32294
32393
  path: "/kyc-profile-versions/{versionId}/documents",
32295
32394
  description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
32296
32395
  successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
32297
32396
  tags: [V2_TAG.userKyc]
32298
- }).input(v2Input.paramsQuery(z464.object({ versionId: z464.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
32397
+ }).input(v2Input.paramsQuery(z467.object({ versionId: z467.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
32299
32398
  var documentsDelete = v2Contract.route({
32300
32399
  method: "DELETE",
32301
32400
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
@@ -32309,7 +32408,7 @@ var documentsConfirmUpload = v2Contract.route({
32309
32408
  description: "Upload a KYC document through DAPI so the payload is encrypted before object storage.",
32310
32409
  successDescription: "Document uploaded successfully.",
32311
32410
  tags: [V2_TAG.userKyc]
32312
- }).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
32411
+ }).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
32313
32412
  var documentsGetDownloadUrl = v2Contract.route({
32314
32413
  method: "POST",
32315
32414
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
@@ -32386,14 +32485,14 @@ var readByUserId2 = v2Contract.route({
32386
32485
  description: "Read a single user by their internal database ID.",
32387
32486
  successDescription: "User retrieved successfully.",
32388
32487
  tags: [V2_TAG.user]
32389
- }).input(v2Input.params(z465.object({ userId: z465.string() }))).output(createSingleResponse(UserReadOutputSchema));
32488
+ }).input(v2Input.params(z468.object({ userId: z468.string() }))).output(createSingleResponse(UserReadOutputSchema));
32390
32489
  var readByWallet3 = v2Contract.route({
32391
32490
  method: "GET",
32392
32491
  path: "/wallets/{wallet}/user",
32393
32492
  description: "Read a single user by their Ethereum wallet address.",
32394
32493
  successDescription: "User retrieved successfully.",
32395
32494
  tags: [V2_TAG.user]
32396
- }).input(v2Input.params(z465.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
32495
+ }).input(v2Input.params(z468.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
32397
32496
  var readByNationalId = v2Contract.route({
32398
32497
  method: "GET",
32399
32498
  path: "/national-ids/{nationalId}/user",
@@ -32502,30 +32601,30 @@ var userV2Contract = {
32502
32601
  };
32503
32602
 
32504
32603
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
32505
- import { z as z466 } from "zod";
32506
- var WebhooksV2ChainOfCustodyInputSchema = z466.object({
32507
- evtId: z466.string().trim().min(1)
32508
- });
32509
- var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z466.object({
32510
- evtId: z466.string(),
32511
- hops: z466.array(z466.object({
32512
- stage: z466.string(),
32513
- contentHash: z466.string(),
32514
- signedBy: z466.string().optional(),
32515
- recordedAt: z466.coerce.date()
32604
+ import { z as z469 } from "zod";
32605
+ var WebhooksV2ChainOfCustodyInputSchema = z469.object({
32606
+ evtId: z469.string().trim().min(1)
32607
+ });
32608
+ var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z469.object({
32609
+ evtId: z469.string(),
32610
+ hops: z469.array(z469.object({
32611
+ stage: z469.string(),
32612
+ contentHash: z469.string(),
32613
+ signedBy: z469.string().optional(),
32614
+ recordedAt: z469.coerce.date()
32516
32615
  })),
32517
- merkleRoot: z466.string(),
32518
- platformSignature: z466.string()
32616
+ merkleRoot: z469.string(),
32617
+ platformSignature: z469.string()
32519
32618
  }));
32520
32619
 
32521
32620
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
32522
- import { z as z468 } from "zod";
32621
+ import { z as z471 } from "zod";
32523
32622
 
32524
32623
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
32525
- import { z as z467 } from "zod";
32526
- var WebhookPayloadShapeSchema = z467.enum(["thin", "fat"]);
32527
- var WebhookBreakerStateSchema = z467.enum(["closed", "half_open", "open"]);
32528
- var WebhookDeliveryFailureClassSchema = z467.enum([
32624
+ import { z as z470 } from "zod";
32625
+ var WebhookPayloadShapeSchema = z470.enum(["thin", "fat"]);
32626
+ var WebhookBreakerStateSchema = z470.enum(["closed", "half_open", "open"]);
32627
+ var WebhookDeliveryFailureClassSchema = z470.enum([
32529
32628
  "DNS_FAIL",
32530
32629
  "TLS_FAIL",
32531
32630
  "CONNECT_TIMEOUT",
@@ -32537,35 +32636,35 @@ var WebhookDeliveryFailureClassSchema = z467.enum([
32537
32636
  "RECEIPT_INVALID_SIG",
32538
32637
  "RECEIPT_HASH_MISMATCH"
32539
32638
  ]);
32540
- var WebhookFinalityStateSchema = z467.enum(["pending", "provisional", "final", "retracted", "recalled"]);
32541
- var WebhookSigningSecretStatusSchema = z467.enum(["active", "previous", "revoked"]);
32542
- var WebhookFatEventsAcknowledgmentSchema = z467.object({
32543
- acknowledgedAt: z467.coerce.date(),
32544
- acknowledgedByUserId: z467.string(),
32545
- fieldsAcknowledged: z467.array(z467.string())
32546
- });
32547
- var WebhookEndpointSchema = z467.object({
32548
- id: z467.uuid(),
32549
- tenantId: z467.string(),
32550
- systemId: z467.string(),
32551
- url: z467.url(),
32552
- displayName: z467.string().nullable(),
32553
- subscriptions: z467.array(z467.string()),
32639
+ var WebhookFinalityStateSchema = z470.enum(["pending", "provisional", "final", "retracted", "recalled"]);
32640
+ var WebhookSigningSecretStatusSchema = z470.enum(["active", "previous", "revoked"]);
32641
+ var WebhookFatEventsAcknowledgmentSchema = z470.object({
32642
+ acknowledgedAt: z470.coerce.date(),
32643
+ acknowledgedByUserId: z470.string(),
32644
+ fieldsAcknowledged: z470.array(z470.string())
32645
+ });
32646
+ var WebhookEndpointSchema = z470.object({
32647
+ id: z470.uuid(),
32648
+ tenantId: z470.string(),
32649
+ systemId: z470.string(),
32650
+ url: z470.url(),
32651
+ displayName: z470.string().nullable(),
32652
+ subscriptions: z470.array(z470.string()),
32554
32653
  defaultPayloadShape: WebhookPayloadShapeSchema,
32555
- counterSignedReceipts: z467.boolean(),
32654
+ counterSignedReceipts: z470.boolean(),
32556
32655
  breakerState: WebhookBreakerStateSchema,
32557
- disabledAt: z467.coerce.date().nullable(),
32558
- disabledReason: z467.string().nullable(),
32656
+ disabledAt: z470.coerce.date().nullable(),
32657
+ disabledReason: z470.string().nullable(),
32559
32658
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
32560
- secret: z467.object({
32561
- activeVersion: z467.number().int().positive().nullable(),
32562
- previousVersion: z467.number().int().positive().nullable(),
32563
- previousRevokesAt: z467.coerce.date().nullable(),
32564
- lastUsedAt: z467.coerce.date().nullable()
32659
+ secret: z470.object({
32660
+ activeVersion: z470.number().int().positive().nullable(),
32661
+ previousVersion: z470.number().int().positive().nullable(),
32662
+ previousRevokesAt: z470.coerce.date().nullable(),
32663
+ lastUsedAt: z470.coerce.date().nullable()
32565
32664
  }),
32566
- createdAt: z467.coerce.date(),
32567
- updatedAt: z467.coerce.date(),
32568
- createdByUserId: z467.string().nullable()
32665
+ createdAt: z470.coerce.date(),
32666
+ updatedAt: z470.coerce.date(),
32667
+ createdByUserId: z470.string().nullable()
32569
32668
  });
32570
32669
  var WEBHOOKS_COLLECTION_FIELDS = {
32571
32670
  displayName: textField(),
@@ -32584,44 +32683,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
32584
32683
  var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
32585
32684
 
32586
32685
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
32587
- var WebhooksV2CreateInputSchema = z468.object({
32588
- url: z468.url(),
32589
- displayName: z468.string().trim().min(1).max(200).optional(),
32590
- subscriptions: z468.array(z468.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
32686
+ var WebhooksV2CreateInputSchema = z471.object({
32687
+ url: z471.url(),
32688
+ displayName: z471.string().trim().min(1).max(200).optional(),
32689
+ subscriptions: z471.array(z471.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
32591
32690
  defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
32592
- counterSignedReceipts: z468.boolean().default(false)
32691
+ counterSignedReceipts: z471.boolean().default(false)
32593
32692
  });
32594
32693
  var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
32595
- signingSecret: z468.string().nullable()
32694
+ signingSecret: z471.string().nullable()
32596
32695
  });
32597
32696
  var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
32598
32697
 
32599
32698
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
32600
- import { z as z469 } from "zod";
32601
- var WebhooksV2DeleteInputSchema = z469.object({
32602
- id: z469.uuid()
32699
+ import { z as z472 } from "zod";
32700
+ var WebhooksV2DeleteInputSchema = z472.object({
32701
+ id: z472.uuid()
32603
32702
  });
32604
32703
  var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
32605
32704
 
32606
32705
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
32607
- import { z as z470 } from "zod";
32608
- var WebhookDeliveryStatusSchema = z470.enum(["pending", "delivered", "failed"]);
32609
- var WebhookDeliverySchema = z470.object({
32610
- id: z470.uuid(),
32611
- eventOutboxId: z470.uuid(),
32612
- endpointId: z470.uuid(),
32613
- tenantId: z470.string(),
32614
- evtId: z470.string(),
32615
- eventType: z470.string(),
32616
- attemptN: z470.number().int().nonnegative(),
32617
- attemptedAt: z470.coerce.date(),
32618
- responseStatus: z470.number().int().nullable(),
32706
+ import { z as z473 } from "zod";
32707
+ var WebhookDeliveryStatusSchema = z473.enum(["pending", "delivered", "failed"]);
32708
+ var WebhookDeliverySchema = z473.object({
32709
+ id: z473.uuid(),
32710
+ eventOutboxId: z473.uuid(),
32711
+ endpointId: z473.uuid(),
32712
+ tenantId: z473.string(),
32713
+ evtId: z473.string(),
32714
+ eventType: z473.string(),
32715
+ attemptN: z473.number().int().nonnegative(),
32716
+ attemptedAt: z473.coerce.date(),
32717
+ responseStatus: z473.number().int().nullable(),
32619
32718
  failureClass: WebhookDeliveryFailureClassSchema.nullable(),
32620
32719
  status: WebhookDeliveryStatusSchema,
32621
- deliveredAt: z470.coerce.date().nullable(),
32622
- isReplay: z470.boolean(),
32623
- isTest: z470.boolean(),
32624
- traceId: z470.string().nullable()
32720
+ deliveredAt: z473.coerce.date().nullable(),
32721
+ isReplay: z473.boolean(),
32722
+ isTest: z473.boolean(),
32723
+ traceId: z473.string().nullable()
32625
32724
  });
32626
32725
  var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
32627
32726
  status: enumField(["pending", "delivered", "failed"]),
@@ -32647,167 +32746,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
32647
32746
  defaultSort: "attemptedAt",
32648
32747
  globalSearch: false
32649
32748
  });
32650
- var WebhooksV2DeliveriesListParamsSchema = z470.object({
32651
- id: z470.uuid()
32749
+ var WebhooksV2DeliveriesListParamsSchema = z473.object({
32750
+ id: z473.uuid()
32652
32751
  });
32653
32752
  var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
32654
32753
 
32655
32754
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
32656
- import { z as z471 } from "zod";
32657
- var WebhooksV2DeliveriesReadInputSchema = z471.object({
32658
- id: z471.uuid(),
32659
- deliveryId: z471.uuid()
32755
+ import { z as z474 } from "zod";
32756
+ var WebhooksV2DeliveriesReadInputSchema = z474.object({
32757
+ id: z474.uuid(),
32758
+ deliveryId: z474.uuid()
32660
32759
  });
32661
32760
  var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
32662
- request: z471.object({
32663
- payload: z471.record(z471.string(), z471.json()),
32664
- signedHeaders: z471.record(z471.string(), z471.union([z471.string(), z471.array(z471.string())])),
32665
- signedStringPreview: z471.string()
32761
+ request: z474.object({
32762
+ payload: z474.record(z474.string(), z474.json()),
32763
+ signedHeaders: z474.record(z474.string(), z474.union([z474.string(), z474.array(z474.string())])),
32764
+ signedStringPreview: z474.string()
32666
32765
  }),
32667
- response: z471.object({
32668
- headers: z471.record(z471.string(), z471.union([z471.string(), z471.array(z471.string())])).nullable(),
32669
- body: z471.string().nullable(),
32670
- timings: z471.object({
32671
- dnsMs: z471.number().int().nullable(),
32672
- tlsMs: z471.number().int().nullable(),
32673
- connectMs: z471.number().int().nullable(),
32674
- ttfbMs: z471.number().int().nullable()
32766
+ response: z474.object({
32767
+ headers: z474.record(z474.string(), z474.union([z474.string(), z474.array(z474.string())])).nullable(),
32768
+ body: z474.string().nullable(),
32769
+ timings: z474.object({
32770
+ dnsMs: z474.number().int().nullable(),
32771
+ tlsMs: z474.number().int().nullable(),
32772
+ connectMs: z474.number().int().nullable(),
32773
+ ttfbMs: z474.number().int().nullable()
32675
32774
  })
32676
32775
  })
32677
32776
  });
32678
32777
  var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
32679
32778
 
32680
32779
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
32681
- import { z as z472 } from "zod";
32682
- var WebhooksV2DeliveriesRetryInputSchema = z472.object({
32683
- id: z472.uuid(),
32684
- deliveryId: z472.uuid()
32780
+ import { z as z475 } from "zod";
32781
+ var WebhooksV2DeliveriesRetryInputSchema = z475.object({
32782
+ id: z475.uuid(),
32783
+ deliveryId: z475.uuid()
32685
32784
  });
32686
- var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z472.object({
32687
- deliveryId: z472.uuid(),
32688
- scheduled: z472.boolean()
32785
+ var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z475.object({
32786
+ deliveryId: z475.uuid(),
32787
+ scheduled: z475.boolean()
32689
32788
  }));
32690
32789
 
32691
32790
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
32692
- import { z as z473 } from "zod";
32693
- var WebhooksV2ReadInputSchema = z473.object({
32694
- id: z473.uuid()
32791
+ import { z as z476 } from "zod";
32792
+ var WebhooksV2ReadInputSchema = z476.object({
32793
+ id: z476.uuid()
32695
32794
  });
32696
32795
  var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
32697
32796
 
32698
32797
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
32699
- import { z as z474 } from "zod";
32700
- var WebhooksV2RecallsParamsSchema = z474.object({
32701
- evtId: z474.string().trim().min(1)
32702
- });
32703
- var WebhooksV2RecallsBodySchema = z474.object({
32704
- reason: z474.string().trim().min(1).max(2000)
32705
- });
32706
- var WebhooksV2RecallsOutputSchema = createSingleResponse(z474.object({
32707
- evtId: z474.string(),
32708
- recalledEvtId: z474.string(),
32709
- supersedes: z474.string(),
32710
- reason: z474.string(),
32711
- recalledByUserId: z474.string()
32798
+ import { z as z477 } from "zod";
32799
+ var WebhooksV2RecallsParamsSchema = z477.object({
32800
+ evtId: z477.string().trim().min(1)
32801
+ });
32802
+ var WebhooksV2RecallsBodySchema = z477.object({
32803
+ reason: z477.string().trim().min(1).max(2000)
32804
+ });
32805
+ var WebhooksV2RecallsOutputSchema = createSingleResponse(z477.object({
32806
+ evtId: z477.string(),
32807
+ recalledEvtId: z477.string(),
32808
+ supersedes: z477.string(),
32809
+ reason: z477.string(),
32810
+ recalledByUserId: z477.string()
32712
32811
  }));
32713
32812
 
32714
32813
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
32715
- import { z as z475 } from "zod";
32716
- var WebhooksV2ReplayByRangeSchema = z475.object({
32717
- fromBlock: z475.coerce.bigint(),
32718
- toBlock: z475.coerce.bigint().optional(),
32719
- chainId: z475.coerce.number().int().positive(),
32720
- confirmLargeRange: z475.boolean().default(false)
32721
- });
32722
- var WebhooksV2ReplayByEventSchema = z475.object({
32723
- evtId: z475.string().trim().min(1),
32724
- chainId: z475.coerce.number().int().positive().optional()
32725
- });
32726
- var WebhooksV2ReplaysParamsSchema = z475.object({
32727
- id: z475.uuid()
32728
- });
32729
- var WebhooksV2ReplaysBodySchema = z475.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
32730
- var WebhooksV2ReplaysOutputSchema = createSingleResponse(z475.object({
32731
- replayId: z475.uuid(),
32732
- endpointId: z475.uuid(),
32733
- eventsEnqueued: z475.number().int().nonnegative(),
32734
- snapshotToBlock: z475.string().nullable()
32814
+ import { z as z478 } from "zod";
32815
+ var WebhooksV2ReplayByRangeSchema = z478.object({
32816
+ fromBlock: z478.coerce.bigint(),
32817
+ toBlock: z478.coerce.bigint().optional(),
32818
+ chainId: z478.coerce.number().int().positive(),
32819
+ confirmLargeRange: z478.boolean().default(false)
32820
+ });
32821
+ var WebhooksV2ReplayByEventSchema = z478.object({
32822
+ evtId: z478.string().trim().min(1),
32823
+ chainId: z478.coerce.number().int().positive().optional()
32824
+ });
32825
+ var WebhooksV2ReplaysParamsSchema = z478.object({
32826
+ id: z478.uuid()
32827
+ });
32828
+ var WebhooksV2ReplaysBodySchema = z478.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
32829
+ var WebhooksV2ReplaysOutputSchema = createSingleResponse(z478.object({
32830
+ replayId: z478.uuid(),
32831
+ endpointId: z478.uuid(),
32832
+ eventsEnqueued: z478.number().int().nonnegative(),
32833
+ snapshotToBlock: z478.string().nullable()
32735
32834
  }));
32736
32835
 
32737
32836
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
32738
- import { z as z476 } from "zod";
32739
- var WebhooksV2RevokeSecretInputSchema = z476.object({
32740
- id: z476.uuid()
32837
+ import { z as z479 } from "zod";
32838
+ var WebhooksV2RevokeSecretInputSchema = z479.object({
32839
+ id: z479.uuid()
32741
32840
  });
32742
- var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z476.object({
32743
- endpointId: z476.uuid(),
32744
- activeVersion: z476.number().int().positive(),
32745
- previousVersion: z476.number().int().positive().nullable(),
32746
- revokedVersion: z476.number().int().positive()
32841
+ var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z479.object({
32842
+ endpointId: z479.uuid(),
32843
+ activeVersion: z479.number().int().positive(),
32844
+ previousVersion: z479.number().int().positive().nullable(),
32845
+ revokedVersion: z479.number().int().positive()
32747
32846
  }));
32748
32847
 
32749
32848
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
32750
- import { z as z477 } from "zod";
32751
- var WebhooksV2RotateSecretInputSchema = z477.object({
32752
- id: z477.uuid()
32753
- });
32754
- var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z477.object({
32755
- endpointId: z477.uuid(),
32756
- activeVersion: z477.number().int().positive(),
32757
- previousVersion: z477.number().int().positive().nullable(),
32758
- previousRevokesAt: z477.coerce.date().nullable(),
32759
- signingSecret: z477.string().nullable()
32849
+ import { z as z480 } from "zod";
32850
+ var WebhooksV2RotateSecretInputSchema = z480.object({
32851
+ id: z480.uuid()
32852
+ });
32853
+ var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z480.object({
32854
+ endpointId: z480.uuid(),
32855
+ activeVersion: z480.number().int().positive(),
32856
+ previousVersion: z480.number().int().positive().nullable(),
32857
+ previousRevokesAt: z480.coerce.date().nullable(),
32858
+ signingSecret: z480.string().nullable()
32760
32859
  }));
32761
32860
 
32762
32861
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
32763
- import { z as z478 } from "zod";
32764
- var WebhooksV2StatsInputSchema = z478.object({
32765
- endpointId: z478.uuid().optional()
32862
+ import { z as z481 } from "zod";
32863
+ var WebhooksV2StatsInputSchema = z481.object({
32864
+ endpointId: z481.uuid().optional()
32766
32865
  });
32767
- var WebhooksV2StatsOutputDataSchema = z478.object({
32768
- totalDeliveries: z478.number().int().min(0),
32769
- delivered: z478.number().int().min(0),
32770
- failed: z478.number().int().min(0),
32771
- hourlyBuckets: z478.array(z478.number().int().min(0)).length(24)
32866
+ var WebhooksV2StatsOutputDataSchema = z481.object({
32867
+ totalDeliveries: z481.number().int().min(0),
32868
+ delivered: z481.number().int().min(0),
32869
+ failed: z481.number().int().min(0),
32870
+ hourlyBuckets: z481.array(z481.number().int().min(0)).length(24)
32772
32871
  });
32773
32872
  var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
32774
32873
 
32775
32874
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
32776
- import { z as z479 } from "zod";
32777
- var WebhooksV2TestEventParamsSchema = z479.object({
32778
- id: z479.uuid()
32875
+ import { z as z482 } from "zod";
32876
+ var WebhooksV2TestEventParamsSchema = z482.object({
32877
+ id: z482.uuid()
32779
32878
  });
32780
- var WebhooksV2TestEventBodySchema = z479.object({
32781
- eventType: z479.string().trim().min(1).default("webhook.test.final")
32879
+ var WebhooksV2TestEventBodySchema = z482.object({
32880
+ eventType: z482.string().trim().min(1).default("webhook.test.final")
32782
32881
  });
32783
- var WebhooksV2TestEventOutputSchema = createSingleResponse(z479.object({
32784
- evtId: z479.string(),
32785
- deliveryId: z479.uuid().nullable(),
32786
- isTest: z479.literal(true)
32882
+ var WebhooksV2TestEventOutputSchema = createSingleResponse(z482.object({
32883
+ evtId: z482.string(),
32884
+ deliveryId: z482.uuid().nullable(),
32885
+ isTest: z482.literal(true)
32787
32886
  }));
32788
32887
 
32789
32888
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
32790
- import { z as z480 } from "zod";
32791
- var WebhooksV2UpdateParamsSchema = z480.object({
32792
- id: z480.uuid()
32889
+ import { z as z483 } from "zod";
32890
+ var WebhooksV2UpdateParamsSchema = z483.object({
32891
+ id: z483.uuid()
32793
32892
  });
32794
- var WebhooksV2UpdateBodySchema = z480.object({
32795
- url: z480.url().optional(),
32796
- displayName: z480.string().trim().min(1).max(200).nullable().optional(),
32797
- subscriptions: z480.array(z480.string().trim().min(1)).min(1).optional(),
32893
+ var WebhooksV2UpdateBodySchema = z483.object({
32894
+ url: z483.url().optional(),
32895
+ displayName: z483.string().trim().min(1).max(200).nullable().optional(),
32896
+ subscriptions: z483.array(z483.string().trim().min(1)).min(1).optional(),
32798
32897
  defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
32799
- counterSignedReceipts: z480.boolean().optional(),
32800
- disabled: z480.boolean().optional(),
32801
- disabledReason: z480.string().trim().min(1).max(500).nullable().optional(),
32898
+ counterSignedReceipts: z483.boolean().optional(),
32899
+ disabled: z483.boolean().optional(),
32900
+ disabledReason: z483.string().trim().min(1).max(500).nullable().optional(),
32802
32901
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
32803
32902
  acknowledgedAt: true,
32804
32903
  acknowledgedByUserId: true
32805
32904
  }).optional()
32806
32905
  });
32807
- var WebhooksV2UpdateQuerySchema = z480.object({
32808
- acknowledgePending: z480.union([z480.literal("true"), z480.literal(true)]).transform(() => true).optional()
32906
+ var WebhooksV2UpdateQuerySchema = z483.object({
32907
+ acknowledgePending: z483.union([z483.literal("true"), z483.literal(true)]).transform(() => true).optional()
32809
32908
  }).optional();
32810
- var WebhooksV2UpdateInputSchema = z480.object({
32909
+ var WebhooksV2UpdateInputSchema = z483.object({
32811
32910
  params: WebhooksV2UpdateParamsSchema,
32812
32911
  body: WebhooksV2UpdateBodySchema,
32813
32912
  query: WebhooksV2UpdateQuerySchema
@@ -32942,21 +33041,21 @@ var webhooksV2Contract = {
32942
33041
  };
32943
33042
 
32944
33043
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
32945
- import { z as z482 } from "zod";
33044
+ import { z as z485 } from "zod";
32946
33045
 
32947
33046
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
32948
- import { z as z481 } from "zod";
32949
- var WebhookReceiptVerificationFailureClassSchema = z481.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
32950
- var WebhookReceiptSchema = z481.object({
32951
- id: z481.uuid(),
32952
- deliveryId: z481.uuid(),
32953
- evtId: z481.string(),
32954
- tenantId: z481.string(),
32955
- endpointId: z481.uuid(),
32956
- consumerSignature: z481.string(),
32957
- innerEventHash: z481.string(),
32958
- receivedAt: z481.coerce.date(),
32959
- verifiedAt: z481.coerce.date().nullable(),
33047
+ import { z as z484 } from "zod";
33048
+ var WebhookReceiptVerificationFailureClassSchema = z484.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
33049
+ var WebhookReceiptSchema = z484.object({
33050
+ id: z484.uuid(),
33051
+ deliveryId: z484.uuid(),
33052
+ evtId: z484.string(),
33053
+ tenantId: z484.string(),
33054
+ endpointId: z484.uuid(),
33055
+ consumerSignature: z484.string(),
33056
+ innerEventHash: z484.string(),
33057
+ receivedAt: z484.coerce.date(),
33058
+ verifiedAt: z484.coerce.date().nullable(),
32960
33059
  verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
32961
33060
  });
32962
33061
  var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
@@ -32973,19 +33072,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
32973
33072
  var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
32974
33073
 
32975
33074
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
32976
- var WebhookReceiptsV2CreateInputSchema = z482.object({
32977
- deliveryId: z482.uuid(),
32978
- evtId: z482.string().trim().min(1),
32979
- endpointId: z482.uuid(),
32980
- consumerSignature: z482.string().trim().min(1),
32981
- innerEventHash: z482.string().trim().min(1)
33075
+ var WebhookReceiptsV2CreateInputSchema = z485.object({
33076
+ deliveryId: z485.uuid(),
33077
+ evtId: z485.string().trim().min(1),
33078
+ endpointId: z485.uuid(),
33079
+ consumerSignature: z485.string().trim().min(1),
33080
+ innerEventHash: z485.string().trim().min(1)
32982
33081
  });
32983
33082
  var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
32984
33083
 
32985
33084
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
32986
- import { z as z483 } from "zod";
32987
- var WebhookReceiptsV2ReadInputSchema = z483.object({
32988
- id: z483.uuid()
33085
+ import { z as z486 } from "zod";
33086
+ var WebhookReceiptsV2ReadInputSchema = z486.object({
33087
+ id: z486.uuid()
32989
33088
  });
32990
33089
  var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
32991
33090
 
@@ -33267,7 +33366,7 @@ function normalizeDalpBaseUrl(url) {
33267
33366
  // package.json
33268
33367
  var package_default = {
33269
33368
  name: "@settlemint/dalp-sdk",
33270
- version: "2.1.7-main.26370298202",
33369
+ version: "2.1.7-main.26370663399",
33271
33370
  private: false,
33272
33371
  description: "Fully typed SDK for the DALP tokenization platform API",
33273
33372
  homepage: "https://settlemint.com",