@settlemint/dalp-sdk 2.1.7-main.26556642454 → 2.1.7-main.26558645247

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 +899 -839
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27212,6 +27212,65 @@ var directoryV2Contract2 = {
27212
27212
  read: read26
27213
27213
  };
27214
27214
 
27215
+ // ../../packages/dalp/api-contract/src/routes/v2/system/eligibility/eligibility.v2.read.schema.ts
27216
+ import { z as z394 } from "zod";
27217
+ var EligibilityReadParamsSchema = z394.object({
27218
+ userId: z394.string().min(1).meta({ description: "Identifier of the user whose global eligibility is being evaluated." })
27219
+ });
27220
+ var EligibilityReadQuerySchema = z394.object({
27221
+ live: z394.union([z394.boolean(), z394.literal("true"), z394.literal("false")]).optional().transform((value2) => value2 === true || value2 === "true").pipe(z394.boolean()).default(false).meta({
27222
+ description: "When true, bypass the indexer and evaluate the verdict via live readContract against installed compliance modules."
27223
+ })
27224
+ });
27225
+ var EligibilityVerdictSchema = z394.enum(["allowed", "needs_action", "blocked"]).meta({
27226
+ description: "Top-level eligibility verdict. `allowed` means the participant satisfies every installed rule; `needs_action` flags missing/expired claims or allow-list gaps; `blocked` indicates at least one block-list match."
27227
+ });
27228
+ var EligibilitySourceSchema = z394.enum(["indexer", "live"]).meta({
27229
+ description: "Where the verdict was evaluated."
27230
+ });
27231
+ var EligibilityReasonCodeSchema = z394.enum([
27232
+ "address_blocked",
27233
+ "country_blocked",
27234
+ "country_not_allowed",
27235
+ "identity_blocked",
27236
+ "identity_not_verified",
27237
+ "claim_missing",
27238
+ "claim_revoked",
27239
+ "claim_expired",
27240
+ "live_timeout"
27241
+ ]).meta({ description: "Reason code attached to a single rule failure." });
27242
+ var EligibilityReasonDetailsSchema = z394.object({
27243
+ topic: z394.string().optional().meta({ description: "Claim topic name (for claim_* reason codes)." }),
27244
+ expiresAt: timestamp().optional().meta({ description: "Timestamp the related claim expired or expires." }),
27245
+ countryCode: isoCountryCodeNumeric.optional().meta({ description: "ISO numeric country code involved in a country-list reason." })
27246
+ }).meta({ description: "Optional reason-specific context." });
27247
+ var EligibilityReasonSchema = z394.object({
27248
+ code: EligibilityReasonCodeSchema,
27249
+ moduleTypeId: complianceTypeId().optional().meta({ description: "TypeId of the module that produced this reason, when known." }),
27250
+ instanceAddress: ethereumAddress.optional().meta({ description: "Address of the specific module instance that produced this reason." }),
27251
+ details: EligibilityReasonDetailsSchema.optional()
27252
+ });
27253
+ var EligibilityVerdictItemSchema = z394.object({
27254
+ verdict: EligibilityVerdictSchema,
27255
+ source: EligibilitySourceSchema,
27256
+ checkedAt: timestamp().meta({ description: "Timestamp at which the verdict was evaluated." }),
27257
+ wallet: ethereumAddress.nullable().meta({ description: "Wallet address the verdict was evaluated against. Null when no wallet is resolvable yet." }),
27258
+ reasons: z394.array(EligibilityReasonSchema)
27259
+ });
27260
+ var EligibilityReadOutputSchema = createSingleResponse(EligibilityVerdictItemSchema);
27261
+
27262
+ // ../../packages/dalp/api-contract/src/routes/v2/system/eligibility/eligibility.v2.contract.ts
27263
+ var read27 = v2Contract.route({
27264
+ method: "GET",
27265
+ path: "/system/eligibility/{userId}",
27266
+ description: "Evaluate a participant's global eligibility against installed system compliance modules. Returns a verdict (allowed, needs_action, blocked) with optional per-rule reasons. Use `?live=true` to bypass the indexer and evaluate live on-chain.",
27267
+ successDescription: "Eligibility verdict resolved.",
27268
+ tags: [V2_TAG.compliance]
27269
+ }).input(v2Input.paramsQuery(EligibilityReadParamsSchema, EligibilityReadQuerySchema)).output(EligibilityReadOutputSchema);
27270
+ var eligibilityV2Contract = {
27271
+ read: read27
27272
+ };
27273
+
27215
27274
  // ../../packages/dalp/api-contract/src/routes/v2/system/entity/entity.v2.list.schema.ts
27216
27275
  var ENTITIES_COLLECTION_FIELDS = {
27217
27276
  lastActivity: dateField(),
@@ -27238,7 +27297,7 @@ var entityV2Contract = {
27238
27297
  };
27239
27298
 
27240
27299
  // ../../packages/dalp/api-contract/src/routes/v2/system/feature-inventory/feature-inventory.v2.list.schema.ts
27241
- import { z as z394 } from "zod";
27300
+ import { z as z395 } from "zod";
27242
27301
  var TOKEN_FEATURE_TYPE_IDS = [
27243
27302
  "aum-fee",
27244
27303
  "transaction-fee",
@@ -27253,17 +27312,17 @@ var TOKEN_FEATURE_TYPE_IDS = [
27253
27312
  "metadata",
27254
27313
  "permit"
27255
27314
  ];
27256
- var TokenFeatureTypeIdSchema = z394.enum(TOKEN_FEATURE_TYPE_IDS);
27257
- var FeatureInventoryV2ItemSchema = z394.object({
27315
+ var TokenFeatureTypeIdSchema = z395.enum(TOKEN_FEATURE_TYPE_IDS);
27316
+ var FeatureInventoryV2ItemSchema = z395.object({
27258
27317
  featureTypeId: TokenFeatureTypeIdSchema.meta({
27259
27318
  description: "Canonical token-feature type identifier (matches the keccak256 pre-image used on chain).",
27260
27319
  examples: ["aum-fee", "transaction-fee"]
27261
27320
  }),
27262
- attachedTokenCount: z394.number().int().nonnegative().meta({
27321
+ attachedTokenCount: z395.number().int().nonnegative().meta({
27263
27322
  description: "Number of distinct tokens in the active system that currently have at least one live attachment of this feature.",
27264
27323
  examples: [3, 0]
27265
27324
  }),
27266
- latestAttachedAt: z394.date().nullable().meta({
27325
+ latestAttachedAt: z395.date().nullable().meta({
27267
27326
  description: "Timestamp of the most recent live attachment across all tokens, or null when the feature has never been attached in the active system.",
27268
27327
  examples: ["2026-05-22T11:23:45.000Z"]
27269
27328
  })
@@ -27292,11 +27351,11 @@ var featureInventoryV2Contract = {
27292
27351
  };
27293
27352
 
27294
27353
  // ../../packages/dalp/api-contract/src/routes/v2/system/feeds/feeds.v2.contract.ts
27295
- import { z as z397 } from "zod";
27354
+ import { z as z398 } from "zod";
27296
27355
 
27297
27356
  // ../../packages/dalp/api-contract/src/routes/v2/system/feeds/adapters.v2.list.schema.ts
27298
- import { z as z395 } from "zod";
27299
- var AdapterV2ItemSchema = z395.object({
27357
+ import { z as z396 } from "zod";
27358
+ var AdapterV2ItemSchema = z396.object({
27300
27359
  adapterAddress: ethereumAddress.meta({
27301
27360
  description: "Address of the adapter contract (stable address)",
27302
27361
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -27305,7 +27364,7 @@ var AdapterV2ItemSchema = z395.object({
27305
27364
  description: "Subject the adapter is bound to (asset / identity / global zero address)",
27306
27365
  examples: ["0x0000000000000000000000000000000000000000"]
27307
27366
  }),
27308
- topicId: z395.string().meta({
27367
+ topicId: z396.string().meta({
27309
27368
  description: "Numeric topic identifier as decimal string",
27310
27369
  examples: ["1", "2"]
27311
27370
  })
@@ -27342,8 +27401,8 @@ var FeedsV2ListInputSchema = createCollectionInputSchema(FEEDS_COLLECTION_FIELDS
27342
27401
  var FeedsV2ListOutputSchema = createPaginatedResponse(FeedItemSchema);
27343
27402
 
27344
27403
  // ../../packages/dalp/api-contract/src/routes/v2/system/feeds/issuer-signed.v2.list.schema.ts
27345
- import { z as z396 } from "zod";
27346
- var IssuerSignedFeedV2ItemSchema = z396.object({
27404
+ import { z as z397 } from "zod";
27405
+ var IssuerSignedFeedV2ItemSchema = z397.object({
27347
27406
  feedAddress: ethereumAddress.meta({
27348
27407
  description: "Address of the issuer-signed scalar feed",
27349
27408
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -27352,7 +27411,7 @@ var IssuerSignedFeedV2ItemSchema = z396.object({
27352
27411
  description: "Subject the feed is bound to (asset / identity / global zero address)",
27353
27412
  examples: ["0x0000000000000000000000000000000000000000"]
27354
27413
  }),
27355
- topicId: z396.string().meta({
27414
+ topicId: z397.string().meta({
27356
27415
  description: "Numeric topic identifier as decimal string",
27357
27416
  examples: ["1", "2"]
27358
27417
  }),
@@ -27396,7 +27455,7 @@ var resolve2 = v2Contract.route({
27396
27455
  successDescription: "Feed resolution result",
27397
27456
  tags: [...TAGS33]
27398
27457
  }).input(v2Input.query(FeedResolveInputSchema)).output(createSingleResponse(FeedResolveOutputSchema));
27399
- var read27 = v2Contract.route({
27458
+ var read28 = v2Contract.route({
27400
27459
  method: "GET",
27401
27460
  path: "/system/feeds/{feedAddress}",
27402
27461
  description: "Read a single feed by its contract address",
@@ -27445,7 +27504,7 @@ var staleness2 = v2Contract.route({
27445
27504
  description: "Evaluate whether a feed value is stale based on a maximum age threshold",
27446
27505
  successDescription: "Staleness evaluation result",
27447
27506
  tags: [...TAGS33]
27448
- }).input(v2Input.paramsQuery(z397.object({ feedAddress: FeedStalenessInputSchema.shape.feedAddress }), z397.object(FeedStalenessInputSchema.shape).omit({ feedAddress: true }))).output(createSingleResponse(FeedStalenessOutputSchema));
27507
+ }).input(v2Input.paramsQuery(z398.object({ feedAddress: FeedStalenessInputSchema.shape.feedAddress }), z398.object(FeedStalenessInputSchema.shape).omit({ feedAddress: true }))).output(createSingleResponse(FeedStalenessOutputSchema));
27449
27508
  var config2 = v2Contract.route({
27450
27509
  method: "GET",
27451
27510
  path: "/system/feeds/{feedAddress}/config",
@@ -27466,7 +27525,7 @@ var submit2 = v2Contract.route({
27466
27525
  description: "Sign and submit a feed update using the backend-managed signer (EIP-712)",
27467
27526
  successDescription: "Feed update submitted",
27468
27527
  tags: [...TAGS33]
27469
- }).input(v2Input.paramsBody(z397.object({ feedAddress: FeedSubmitInputSchema.shape.feedAddress }), z397.object(FeedSubmitInputSchema.shape).omit({ feedAddress: true }))).output(createAsyncBlockchainMutationResponse(FeedSubmitOutputSchema));
27528
+ }).input(v2Input.paramsBody(z398.object({ feedAddress: FeedSubmitInputSchema.shape.feedAddress }), z398.object(FeedSubmitInputSchema.shape).omit({ feedAddress: true }))).output(createAsyncBlockchainMutationResponse(FeedSubmitOutputSchema));
27470
27529
  var issuerSignedCreate2 = v2Contract.route({
27471
27530
  method: "POST",
27472
27531
  path: "/system/feeds/issuer-signed/create",
@@ -27501,7 +27560,7 @@ var feedsV2Contract = {
27501
27560
  capabilities: capabilities2,
27502
27561
  list: list34,
27503
27562
  resolve: resolve2,
27504
- read: read27,
27563
+ read: read28,
27505
27564
  registerExternal: registerExternal2,
27506
27565
  replace: replace2,
27507
27566
  remove: remove3,
@@ -27522,40 +27581,40 @@ var feedsV2Contract = {
27522
27581
  };
27523
27582
 
27524
27583
  // ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.contract.ts
27525
- import { z as z401 } from "zod";
27584
+ import { z as z402 } from "zod";
27526
27585
 
27527
27586
  // ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.claim-history.schema.ts
27528
- import { z as z398 } from "zod";
27587
+ import { z as z399 } from "zod";
27529
27588
  var CLAIM_EVENT_NAMES = ["ClaimAdded", "ClaimChanged", "ClaimRemoved", "ClaimRevoked"];
27530
- var ClaimHistoryV2ValueSchema = z398.object({
27531
- id: z398.string().meta({ description: "Unique identifier for the value", examples: ["val-0"] }),
27532
- name: z398.string().meta({ description: "Parameter name", examples: ["topic"] }),
27533
- value: z398.string().meta({ description: "String representation of the value", examples: ["1"] })
27589
+ var ClaimHistoryV2ValueSchema = z399.object({
27590
+ id: z399.string().meta({ description: "Unique identifier for the value", examples: ["val-0"] }),
27591
+ name: z399.string().meta({ description: "Parameter name", examples: ["topic"] }),
27592
+ value: z399.string().meta({ description: "String representation of the value", examples: ["1"] })
27534
27593
  });
27535
- var ClaimsHistoryV2ParamsSchema = z398.object({
27594
+ var ClaimsHistoryV2ParamsSchema = z399.object({
27536
27595
  identityAddress: ethereumAddress.meta({
27537
27596
  description: "Identity contract address whose claim events are listed",
27538
27597
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
27539
27598
  })
27540
27599
  });
27541
- var ClaimsHistoryV2ItemSchema = z398.object({
27542
- id: z398.string().meta({
27600
+ var ClaimsHistoryV2ItemSchema = z399.object({
27601
+ id: z399.string().meta({
27543
27602
  description: "Stable identifier built from txHash and logIndex (e.g. `0xabc...-0`)",
27544
27603
  examples: ["0xabc...-0"]
27545
27604
  }),
27546
- eventName: z398.enum(CLAIM_EVENT_NAMES).meta({
27605
+ eventName: z399.enum(CLAIM_EVENT_NAMES).meta({
27547
27606
  description: "Lifecycle event emitted by the identity contract",
27548
27607
  examples: ["ClaimAdded"]
27549
27608
  }),
27550
- topic: z398.string().meta({
27609
+ topic: z399.string().meta({
27551
27610
  description: "Claim topic id (decimal string)",
27552
27611
  examples: ["1"]
27553
27612
  }),
27554
- claimId: z398.string().meta({
27613
+ claimId: z399.string().meta({
27555
27614
  description: "Stable claim identifier (hash)",
27556
27615
  examples: ["0xbb..."]
27557
27616
  }),
27558
- blockNumber: z398.string().meta({
27617
+ blockNumber: z399.string().meta({
27559
27618
  description: "Block number where the event was mined (decimal string)",
27560
27619
  examples: ["12345678"]
27561
27620
  }),
@@ -27567,19 +27626,19 @@ var ClaimsHistoryV2ItemSchema = z398.object({
27567
27626
  description: "Transaction hash that emitted the event",
27568
27627
  examples: ["0xabc..."]
27569
27628
  }),
27570
- emitter: z398.object({
27629
+ emitter: z399.object({
27571
27630
  id: ethereumAddress.meta({
27572
27631
  description: "Account or contract that emitted the event",
27573
27632
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
27574
27633
  })
27575
27634
  }),
27576
- sender: z398.object({
27635
+ sender: z399.object({
27577
27636
  id: ethereumAddress.meta({
27578
27637
  description: "Address that initiated the transaction",
27579
27638
  examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
27580
27639
  })
27581
27640
  }),
27582
- values: z398.array(ClaimHistoryV2ValueSchema).meta({
27641
+ values: z399.array(ClaimHistoryV2ValueSchema).meta({
27583
27642
  description: "Decoded event arguments as name/value pairs",
27584
27643
  examples: [[{ id: "val-0", name: "topic", value: "1" }]]
27585
27644
  })
@@ -27600,31 +27659,31 @@ var ClaimsHistoryV2InputSchema = createCollectionInputSchema(CLAIM_HISTORY_COLLE
27600
27659
  var ClaimsHistoryV2OutputSchema = createPaginatedResponse(ClaimsHistoryV2ItemSchema);
27601
27660
 
27602
27661
  // ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.keys.schema.ts
27603
- import { z as z399 } from "zod";
27662
+ import { z as z400 } from "zod";
27604
27663
  var KEY_PURPOSE_VALUES = ["management", "deposit", "claimSigner", "encryption", "unknown"];
27605
27664
  var KEY_TYPE_VALUES = ["ecdsa", "rsa", "unknown"];
27606
- var IdentityV2KeysItemSchema = z399.object({
27607
- keyHash: z399.string().meta({
27665
+ var IdentityV2KeysItemSchema = z400.object({
27666
+ keyHash: z400.string().meta({
27608
27667
  description: "ERC-734 key hash — typically `keccak256(abi.encode(eoaAddress))` for an ECDSA key",
27609
27668
  examples: ["0x9d8a5b6f3a7f8e2c1d4b5a6e7f8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c"]
27610
27669
  }),
27611
- purpose: z399.enum(KEY_PURPOSE_VALUES).meta({
27670
+ purpose: z400.enum(KEY_PURPOSE_VALUES).meta({
27612
27671
  description: "ERC-734 key purpose label, decoded by the indexer. `management` = admin (purpose 1), `deposit` = action/signing (purpose 2), `claimSigner` = claim issuer (purpose 3), `encryption` = encryption (purpose 4).",
27613
27672
  examples: ["management"]
27614
27673
  }),
27615
- keyType: z399.enum(KEY_TYPE_VALUES).meta({
27674
+ keyType: z400.enum(KEY_TYPE_VALUES).meta({
27616
27675
  description: "ERC-734 key type label, decoded by the indexer.",
27617
27676
  examples: ["ecdsa"]
27618
27677
  }),
27619
- createdAt: z399.coerce.date().meta({
27678
+ createdAt: z400.coerce.date().meta({
27620
27679
  description: "Indexer ingestion timestamp (UTC)",
27621
27680
  examples: ["2026-05-06T12:34:56.000Z"]
27622
27681
  }),
27623
- createdAtBlock: z399.string().meta({
27682
+ createdAtBlock: z400.string().meta({
27624
27683
  description: "Block number at which the `KeyAdded` event was emitted, as a decimal string",
27625
27684
  examples: ["12345678"]
27626
27685
  }),
27627
- createdAtTxHash: z399.string().meta({
27686
+ createdAtTxHash: z400.string().meta({
27628
27687
  description: "Transaction hash that emitted the `KeyAdded` event",
27629
27688
  examples: ["0xabc..."]
27630
27689
  })
@@ -27634,7 +27693,7 @@ var IDENTITY_KEYS_COLLECTION_FIELDS = {
27634
27693
  keyType: enumField(KEY_TYPE_VALUES, { defaultOperator: "eq", facetable: true }),
27635
27694
  createdAt: dateField({ sortable: true, facetable: false })
27636
27695
  };
27637
- var IdentityV2KeysParamsSchema = z399.object({
27696
+ var IdentityV2KeysParamsSchema = z400.object({
27638
27697
  identityAddress: ethereumAddress.meta({
27639
27698
  description: "Address of an indexed identity contract (organisation identity, user wallet identity, or any other contract identity).",
27640
27699
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -27646,9 +27705,9 @@ var IdentityV2KeysInputSchema = createCollectionInputSchema(IDENTITY_KEYS_COLLEC
27646
27705
  var IdentityV2KeysOutputSchema = createPaginatedResponse(IdentityV2KeysItemSchema);
27647
27706
 
27648
27707
  // ../../packages/dalp/api-contract/src/routes/v2/system/identity/identity.v2.list.schema.ts
27649
- import { z as z400 } from "zod";
27708
+ import { z as z401 } from "zod";
27650
27709
  var KYC_STATUS_VALUES = ["pending", "registered"];
27651
- var IdentityV2ListItemSchema = z400.object({
27710
+ var IdentityV2ListItemSchema = z401.object({
27652
27711
  id: ethereumAddress.meta({
27653
27712
  description: "Identity contract address",
27654
27713
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -27657,11 +27716,11 @@ var IdentityV2ListItemSchema = z400.object({
27657
27716
  description: "Wallet address registered against the identity",
27658
27717
  examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
27659
27718
  }),
27660
- name: z400.string().nullable().meta({
27719
+ name: z401.string().nullable().meta({
27661
27720
  description: "Account contract name when the identity belongs to a deployed contract",
27662
27721
  examples: ["TreasuryMultisig", null]
27663
27722
  }),
27664
- kycStatus: z400.enum(KYC_STATUS_VALUES).meta({
27723
+ kycStatus: z401.enum(KYC_STATUS_VALUES).meta({
27665
27724
  description: "Registry-level KYC status: `pending` (registered, awaiting acceptance) or `registered` (active)",
27666
27725
  examples: ["registered"]
27667
27726
  }),
@@ -27669,27 +27728,27 @@ var IdentityV2ListItemSchema = z400.object({
27669
27728
  description: "ISO 3166-1 alpha-2 country code from the registry, when set",
27670
27729
  examples: ["BE", null]
27671
27730
  }),
27672
- isContract: z400.boolean().meta({
27731
+ isContract: z401.boolean().meta({
27673
27732
  description: "Whether the identity belongs to a smart contract (vs an EOA)",
27674
27733
  examples: [false]
27675
27734
  }),
27676
- claimsCount: z400.number().int().nonnegative().meta({
27735
+ claimsCount: z401.number().int().nonnegative().meta({
27677
27736
  description: "Total claims attached to the identity",
27678
27737
  examples: [3]
27679
27738
  }),
27680
- activeClaimsCount: z400.number().int().nonnegative().meta({
27739
+ activeClaimsCount: z401.number().int().nonnegative().meta({
27681
27740
  description: "Non-revoked claims attached to the identity",
27682
27741
  examples: [2]
27683
27742
  }),
27684
- revokedClaimsCount: z400.number().int().nonnegative().meta({
27743
+ revokedClaimsCount: z401.number().int().nonnegative().meta({
27685
27744
  description: "Revoked claims attached to the identity",
27686
27745
  examples: [1]
27687
27746
  }),
27688
- untrustedClaimsCount: z400.number().int().nonnegative().meta({
27747
+ untrustedClaimsCount: z401.number().int().nonnegative().meta({
27689
27748
  description: "Claims whose issuer is not a trusted issuer for the claim's topic in the system's TIR chain (counted regardless of revocation)",
27690
27749
  examples: [0]
27691
27750
  }),
27692
- deployedInTransaction: z400.string().meta({
27751
+ deployedInTransaction: z401.string().meta({
27693
27752
  description: "Transaction hash where the identity contract was deployed",
27694
27753
  examples: ["0xabc..."]
27695
27754
  })
@@ -27738,12 +27797,12 @@ var readByWallet2 = v2Contract.route({
27738
27797
  description: "Read identity information by wallet address with claim validation.",
27739
27798
  successDescription: "Identity information retrieved successfully.",
27740
27799
  tags: TAGS34
27741
- }).input(v2Input.paramsQuery(z401.object({
27800
+ }).input(v2Input.paramsQuery(z402.object({
27742
27801
  wallet: ethereumAddress.meta({
27743
27802
  description: "The wallet address of the user",
27744
27803
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
27745
27804
  })
27746
- }), z401.object({
27805
+ }), z402.object({
27747
27806
  tokenAddress: ethereumAddress.optional().meta({
27748
27807
  description: "Optional token address for token-specific trusted issuer validation.",
27749
27808
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
@@ -27755,12 +27814,12 @@ var readById = v2Contract.route({
27755
27814
  description: "Read identity information by identity contract address.",
27756
27815
  successDescription: "Identity information retrieved successfully.",
27757
27816
  tags: TAGS34
27758
- }).input(v2Input.paramsQuery(z401.object({
27817
+ }).input(v2Input.paramsQuery(z402.object({
27759
27818
  identityAddress: ethereumAddress.meta({
27760
27819
  description: "The address of the identity contract to read",
27761
27820
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
27762
27821
  })
27763
- }), z401.object({
27822
+ }), z402.object({
27764
27823
  tokenAddress: ethereumAddress.optional().meta({
27765
27824
  description: "Optional token address for token-specific trusted issuer validation.",
27766
27825
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
@@ -27800,7 +27859,7 @@ var identityDelete2 = v2Contract.route({
27800
27859
  description: "Delete an identity from the system's identity registry.",
27801
27860
  successDescription: "Identity deleted successfully.",
27802
27861
  tags: TAGS34
27803
- }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(z401.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
27862
+ }).meta({ contractErrors: [...IDENTITY_ERRORS] }).input(v2Input.paramsBody(z402.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createAsyncBlockchainMutationResponse(IdentityDeleteOutputSchema));
27804
27863
  var updateCountry = v2Contract.route({
27805
27864
  method: "PATCH",
27806
27865
  path: "/system/identity-countries",
@@ -27858,18 +27917,18 @@ var identityV2ContractShape = {
27858
27917
  var identityV2Contract = identityV2ContractShape;
27859
27918
 
27860
27919
  // ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.compare.schema.ts
27861
- import { z as z402 } from "zod";
27862
- var MigrationComponentStatusSchema = z402.enum(["up-to-date", "update-available", "new"]);
27863
- var MigrationComponentSchema = z402.object({
27864
- key: z402.string().meta({
27920
+ import { z as z403 } from "zod";
27921
+ var MigrationComponentStatusSchema = z403.enum(["up-to-date", "update-available", "new"]);
27922
+ var MigrationComponentSchema = z403.object({
27923
+ key: z403.string().meta({
27865
27924
  description: "Directory key or type identifier for this component",
27866
27925
  examples: ["SYSTEM", "COMPLIANCE", "bond"]
27867
27926
  }),
27868
- label: z402.string().meta({
27927
+ label: z403.string().meta({
27869
27928
  description: "Human-readable name",
27870
27929
  examples: ["System Proxy", "Compliance Module Registry", "Bond Factory"]
27871
27930
  }),
27872
- group: z402.string().meta({
27931
+ group: z403.string().meta({
27873
27932
  description: "Logical category for UI grouping",
27874
27933
  examples: ["core", "identity", "compliance", "registries", "tokenFactories", "addons", "complianceModules"]
27875
27934
  }),
@@ -27880,62 +27939,62 @@ var MigrationComponentSchema = z402.object({
27880
27939
  description: "Expected implementation address from the directory (null if not registered)"
27881
27940
  }),
27882
27941
  status: MigrationComponentStatusSchema,
27883
- affectedTokenCount: z402.number().optional().meta({
27942
+ affectedTokenCount: z403.number().optional().meta({
27884
27943
  description: "Number of tokens affected by this component's upgrade (for factory components)",
27885
27944
  examples: [0, 12, 47]
27886
27945
  })
27887
27946
  });
27888
- var MigrationComponentGroupSchema = z402.object({
27889
- id: z402.string().meta({
27947
+ var MigrationComponentGroupSchema = z403.object({
27948
+ id: z403.string().meta({
27890
27949
  description: "Group identifier",
27891
27950
  examples: ["core", "identity", "tokenFactories"]
27892
27951
  }),
27893
- label: z402.string().meta({
27952
+ label: z403.string().meta({
27894
27953
  description: "Human-readable group name",
27895
27954
  examples: ["Core System", "Identity", "Token Factories"]
27896
27955
  }),
27897
- components: z402.array(MigrationComponentSchema)
27956
+ components: z403.array(MigrationComponentSchema)
27898
27957
  });
27899
- var MigrationCompareOutputSchema = z402.object({
27958
+ var MigrationCompareOutputSchema = z403.object({
27900
27959
  systemAddress: ethereumAddress.meta({
27901
27960
  description: "The system contract address that was compared"
27902
27961
  }),
27903
27962
  directoryAddress: ethereumAddress.meta({
27904
27963
  description: "The directory contract address used as reference"
27905
27964
  }),
27906
- summary: z402.object({
27907
- totalComponents: z402.number(),
27908
- upToDate: z402.number(),
27909
- updateAvailable: z402.number(),
27910
- pendingInstall: z402.number(),
27911
- totalAffectedTokens: z402.number()
27965
+ summary: z403.object({
27966
+ totalComponents: z403.number(),
27967
+ upToDate: z403.number(),
27968
+ updateAvailable: z403.number(),
27969
+ pendingInstall: z403.number(),
27970
+ totalAffectedTokens: z403.number()
27912
27971
  }),
27913
- groups: z402.array(MigrationComponentGroupSchema)
27972
+ groups: z403.array(MigrationComponentGroupSchema)
27914
27973
  });
27915
27974
 
27916
27975
  // ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.start.schema.ts
27917
- import { z as z403 } from "zod";
27918
- var MigrationV2StartOutputSchema = z403.object({
27919
- migrationId: z403.string().meta({
27976
+ import { z as z404 } from "zod";
27977
+ var MigrationV2StartOutputSchema = z404.object({
27978
+ migrationId: z404.string().meta({
27920
27979
  description: "Unique migration identifier (used for SSE stream subscription)"
27921
27980
  }),
27922
- tree: z403.array(DeploymentNodeSchema).meta({
27981
+ tree: z404.array(DeploymentNodeSchema).meta({
27923
27982
  description: "Initial deployment tree with all steps in pending state"
27924
27983
  })
27925
27984
  });
27926
27985
 
27927
27986
  // ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.stream.schema.ts
27928
27987
  import { eventIterator as eventIterator6 } from "@orpc/contract";
27929
- import { z as z404 } from "zod";
27930
- var MigrationV2StreamInputSchema = z404.object({
27931
- migrationId: z404.string()
27988
+ import { z as z405 } from "zod";
27989
+ var MigrationV2StreamInputSchema = z405.object({
27990
+ migrationId: z405.string()
27932
27991
  });
27933
27992
  var MigrationV2StreamOutputSchema = eventIterator6(DeploymentEventSchema);
27934
27993
 
27935
27994
  // ../../packages/dalp/api-contract/src/routes/v2/system/migration/migration.v2.active.schema.ts
27936
- import { z as z405 } from "zod";
27937
- var MigrationV2ActiveOutputSchema = z405.object({
27938
- migrationId: z405.string().nullable().meta({
27995
+ import { z as z406 } from "zod";
27996
+ var MigrationV2ActiveOutputSchema = z406.object({
27997
+ migrationId: z406.string().nullable().meta({
27939
27998
  description: "Active migration ID if one is in-flight, null otherwise"
27940
27999
  })
27941
28000
  });
@@ -27977,7 +28036,7 @@ var migrationV2Contract = {
27977
28036
  };
27978
28037
 
27979
28038
  // ../../packages/dalp/api-contract/src/routes/v2/system/stats/stats.v2.contract.ts
27980
- import { z as z406 } from "zod";
28039
+ import { z as z407 } from "zod";
27981
28040
  var assets2 = v2Contract.route({
27982
28041
  method: "GET",
27983
28042
  path: "/system/stats/assets",
@@ -27991,8 +28050,8 @@ var assetLifecycleByRange = v2Contract.route({
27991
28050
  description: "Retrieve counts for created and launched assets over custom time range",
27992
28051
  successDescription: "System asset lifecycle metrics retrieved successfully",
27993
28052
  tags: [V2_TAG.systemStats]
27994
- }).input(v2Input.query(z406.object({
27995
- interval: z406.enum(["hour", "day"]),
28053
+ }).input(v2Input.query(z407.object({
28054
+ interval: z407.enum(["hour", "day"]),
27996
28055
  from: timestamp(),
27997
28056
  to: timestamp()
27998
28057
  }))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
@@ -28002,8 +28061,8 @@ var assetLifecycleByPreset = v2Contract.route({
28002
28061
  description: "Retrieve counts for created and launched assets using preset range",
28003
28062
  successDescription: "System asset lifecycle metrics retrieved successfully",
28004
28063
  tags: [V2_TAG.systemStats]
28005
- }).input(v2Input.params(z406.object({
28006
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28064
+ }).input(v2Input.params(z407.object({
28065
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28007
28066
  }))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
28008
28067
  var assetActivityByRange = v2Contract.route({
28009
28068
  method: "GET",
@@ -28011,8 +28070,8 @@ var assetActivityByRange = v2Contract.route({
28011
28070
  description: "Retrieve counts for transfer, mint, and burn events over custom time range",
28012
28071
  successDescription: "System asset activity metrics retrieved successfully",
28013
28072
  tags: [V2_TAG.systemStats]
28014
- }).input(v2Input.query(z406.object({
28015
- interval: z406.enum(["hour", "day"]),
28073
+ }).input(v2Input.query(z407.object({
28074
+ interval: z407.enum(["hour", "day"]),
28016
28075
  from: timestamp(),
28017
28076
  to: timestamp()
28018
28077
  }))).output(createSingleResponse(StatsAssetActivityOutputSchema));
@@ -28022,8 +28081,8 @@ var assetActivityByPreset = v2Contract.route({
28022
28081
  description: "Retrieve counts for transfer, mint, and burn events using preset range",
28023
28082
  successDescription: "System asset activity metrics retrieved successfully",
28024
28083
  tags: [V2_TAG.systemStats]
28025
- }).input(v2Input.params(z406.object({
28026
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28084
+ }).input(v2Input.params(z407.object({
28085
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28027
28086
  }))).output(createSingleResponse(StatsAssetActivityOutputSchema));
28028
28087
  var claimsStatsByRange = v2Contract.route({
28029
28088
  method: "GET",
@@ -28031,8 +28090,8 @@ var claimsStatsByRange = v2Contract.route({
28031
28090
  description: "Retrieve claims statistics over custom time range including issued, active, removed, and revoked claims",
28032
28091
  successDescription: "Claims statistics retrieved successfully",
28033
28092
  tags: [V2_TAG.systemStats]
28034
- }).input(v2Input.query(z406.object({
28035
- interval: z406.enum(["hour", "day"]),
28093
+ }).input(v2Input.query(z407.object({
28094
+ interval: z407.enum(["hour", "day"]),
28036
28095
  from: timestamp(),
28037
28096
  to: timestamp()
28038
28097
  }))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
@@ -28042,8 +28101,8 @@ var claimsStatsByPreset = v2Contract.route({
28042
28101
  description: "Retrieve claims statistics using preset range including issued, active, removed, and revoked claims",
28043
28102
  successDescription: "Claims statistics retrieved successfully",
28044
28103
  tags: [V2_TAG.systemStats]
28045
- }).input(v2Input.params(z406.object({
28046
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28104
+ }).input(v2Input.params(z407.object({
28105
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28047
28106
  }))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
28048
28107
  var claimsStatsState = v2Contract.route({
28049
28108
  method: "GET",
@@ -28072,8 +28131,8 @@ var identityStatsOverTimeByRange = v2Contract.route({
28072
28131
  description: "Retrieve identity statistics over custom time range for charts",
28073
28132
  successDescription: "Identity statistics over time retrieved successfully",
28074
28133
  tags: [V2_TAG.systemStats]
28075
- }).input(v2Input.query(z406.object({
28076
- interval: z406.enum(["hour", "day"]),
28134
+ }).input(v2Input.query(z407.object({
28135
+ interval: z407.enum(["hour", "day"]),
28077
28136
  from: timestamp(),
28078
28137
  to: timestamp()
28079
28138
  }))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
@@ -28083,8 +28142,8 @@ var identityStatsOverTimeByPreset = v2Contract.route({
28083
28142
  description: "Retrieve identity statistics using preset range for charts",
28084
28143
  successDescription: "Identity statistics over time retrieved successfully",
28085
28144
  tags: [V2_TAG.systemStats]
28086
- }).input(v2Input.params(z406.object({
28087
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28145
+ }).input(v2Input.params(z407.object({
28146
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28088
28147
  }))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
28089
28148
  var transactionCount = v2Contract.route({
28090
28149
  method: "GET",
@@ -28106,8 +28165,8 @@ var trustedIssuerStatsByRange = v2Contract.route({
28106
28165
  description: "Retrieve trusted issuer statistics over custom time range including added, active, and removed issuers",
28107
28166
  successDescription: "Trusted issuer statistics retrieved successfully",
28108
28167
  tags: [V2_TAG.systemStats]
28109
- }).input(v2Input.query(z406.object({
28110
- interval: z406.enum(["hour", "day"]),
28168
+ }).input(v2Input.query(z407.object({
28169
+ interval: z407.enum(["hour", "day"]),
28111
28170
  from: timestamp(),
28112
28171
  to: timestamp()
28113
28172
  }))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
@@ -28117,8 +28176,8 @@ var trustedIssuerStatsByPreset = v2Contract.route({
28117
28176
  description: "Retrieve trusted issuer statistics using preset range including added, active, and removed issuers",
28118
28177
  successDescription: "Trusted issuer statistics retrieved successfully",
28119
28178
  tags: [V2_TAG.systemStats]
28120
- }).input(v2Input.params(z406.object({
28121
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28179
+ }).input(v2Input.params(z407.object({
28180
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28122
28181
  }))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
28123
28182
  var trustedIssuerStatsState = v2Contract.route({
28124
28183
  method: "GET",
@@ -28140,8 +28199,8 @@ var portfolioByRange = v2Contract.route({
28140
28199
  description: "Retrieve system-wide portfolio statistics over custom time range",
28141
28200
  successDescription: "System portfolio statistics retrieved successfully",
28142
28201
  tags: [V2_TAG.systemStats]
28143
- }).input(v2Input.query(z406.object({
28144
- interval: z406.enum(["hour", "day"]),
28202
+ }).input(v2Input.query(z407.object({
28203
+ interval: z407.enum(["hour", "day"]),
28145
28204
  from: timestamp(),
28146
28205
  to: timestamp()
28147
28206
  }))).output(createSingleResponse(StatsPortfolioOutputSchema));
@@ -28151,8 +28210,8 @@ var portfolioByPreset = v2Contract.route({
28151
28210
  description: "Retrieve system-wide portfolio statistics using preset range",
28152
28211
  successDescription: "System portfolio statistics retrieved successfully",
28153
28212
  tags: [V2_TAG.systemStats]
28154
- }).input(v2Input.params(z406.object({
28155
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28213
+ }).input(v2Input.params(z407.object({
28214
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28156
28215
  }))).output(createSingleResponse(StatsPortfolioOutputSchema));
28157
28216
  var portfolioDetails = v2Contract.route({
28158
28217
  method: "GET",
@@ -28167,8 +28226,8 @@ var topicSchemesStatsByRange = v2Contract.route({
28167
28226
  description: "Retrieve topic schemes statistics over custom time range including registered, active, and removed schemes",
28168
28227
  successDescription: "Topic schemes statistics retrieved successfully",
28169
28228
  tags: [V2_TAG.systemStats]
28170
- }).input(v2Input.query(z406.object({
28171
- interval: z406.enum(["hour", "day"]),
28229
+ }).input(v2Input.query(z407.object({
28230
+ interval: z407.enum(["hour", "day"]),
28172
28231
  from: timestamp(),
28173
28232
  to: timestamp()
28174
28233
  }))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
@@ -28178,8 +28237,8 @@ var topicSchemesStatsByPreset = v2Contract.route({
28178
28237
  description: "Retrieve topic schemes statistics using preset range including registered, active, and removed schemes",
28179
28238
  successDescription: "Topic schemes statistics retrieved successfully",
28180
28239
  tags: [V2_TAG.systemStats]
28181
- }).input(v2Input.params(z406.object({
28182
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28240
+ }).input(v2Input.params(z407.object({
28241
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28183
28242
  }))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
28184
28243
  var topicSchemesStatsState = v2Contract.route({
28185
28244
  method: "GET",
@@ -28201,8 +28260,8 @@ var systemValueHistoryByRange = v2Contract.route({
28201
28260
  description: "Retrieve total system value history over custom time range",
28202
28261
  successDescription: "System value history retrieved successfully",
28203
28262
  tags: [V2_TAG.systemStats]
28204
- }).input(v2Input.query(z406.object({
28205
- interval: z406.enum(["hour", "day"]),
28263
+ }).input(v2Input.query(z407.object({
28264
+ interval: z407.enum(["hour", "day"]),
28206
28265
  from: timestamp(),
28207
28266
  to: timestamp()
28208
28267
  }))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
@@ -28212,8 +28271,8 @@ var systemValueHistoryByPreset = v2Contract.route({
28212
28271
  description: "Retrieve total system value history using preset range",
28213
28272
  successDescription: "System value history retrieved successfully",
28214
28273
  tags: [V2_TAG.systemStats]
28215
- }).input(v2Input.params(z406.object({
28216
- preset: z406.enum(["trailing24Hours", "trailing7Days"])
28274
+ }).input(v2Input.params(z407.object({
28275
+ preset: z407.enum(["trailing24Hours", "trailing7Days"])
28217
28276
  }))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
28218
28277
  var statsV2Contract = {
28219
28278
  assets: assets2,
@@ -28246,18 +28305,18 @@ var statsV2Contract = {
28246
28305
  };
28247
28306
 
28248
28307
  // ../../packages/dalp/api-contract/src/routes/v2/system/token-factory/token-factory.v2.list.schema.ts
28249
- import { z as z407 } from "zod";
28250
- var TokenFactoryV2ItemSchema = z407.object({
28308
+ import { z as z408 } from "zod";
28309
+ var TokenFactoryV2ItemSchema = z408.object({
28251
28310
  id: ethereumAddress.meta({
28252
28311
  description: "The factory contract address",
28253
28312
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28254
28313
  }),
28255
- name: z407.string().meta({ description: "The name of the token factory", examples: ["Bond Factory", "Equity Factory"] }),
28314
+ name: z408.string().meta({ description: "The name of the token factory", examples: ["Bond Factory", "Equity Factory"] }),
28256
28315
  typeId: assetFactoryTypeId().meta({
28257
28316
  description: "The type ID of the token factory",
28258
28317
  examples: ["bond", "equity"]
28259
28318
  }),
28260
- hasTokens: z407.boolean().meta({ description: "Whether the factory has created any tokens", examples: [true, false] }),
28319
+ hasTokens: z408.boolean().meta({ description: "Whether the factory has created any tokens", examples: [true, false] }),
28261
28320
  tokenExtensions: assetExtensionArray().meta({
28262
28321
  description: "The token extensions of the token factory",
28263
28322
  examples: [["pausable", "burnable"]]
@@ -28292,7 +28351,7 @@ var create16 = v2Contract.route({
28292
28351
  successDescription: "Token factory deployed successfully",
28293
28352
  tags: [...TAGS35]
28294
28353
  }).meta({ contractErrors: [...FACTORY_ERRORS2] }).input(v2Input.body(FactoryCreateSchema)).output(createAsyncBlockchainMutationResponse(SystemSchema));
28295
- var read28 = v2Contract.route({
28354
+ var read29 = v2Contract.route({
28296
28355
  method: "GET",
28297
28356
  path: "/system/factories/{factoryAddress}",
28298
28357
  description: "Get a token factory by address",
@@ -28316,39 +28375,39 @@ var predictAccessManagerAddress = v2Contract.route({
28316
28375
  var tokenFactoryV2Contract = {
28317
28376
  list: list36,
28318
28377
  create: create16,
28319
- read: read28,
28378
+ read: read29,
28320
28379
  available,
28321
28380
  predictAccessManagerAddress
28322
28381
  };
28323
28382
 
28324
28383
  // ../../packages/dalp/api-contract/src/routes/v2/system/paymaster/paymaster.v2.schemas.ts
28325
- import { z as z408 } from "zod";
28326
- var PaymasterSchema = z408.object({
28384
+ import { z as z409 } from "zod";
28385
+ var PaymasterSchema = z409.object({
28327
28386
  address: ethereumAddress,
28328
28387
  system: ethereumAddress.nullable(),
28329
28388
  factory: ethereumAddress,
28330
28389
  createdAt: timestamp()
28331
28390
  });
28332
- var PaymasterBalanceSchema = z408.object({
28391
+ var PaymasterBalanceSchema = z409.object({
28333
28392
  address: ethereumAddress,
28334
- depositBalance: z408.string()
28393
+ depositBalance: z409.string()
28335
28394
  });
28336
28395
  var PaymasterDepositInputSchema = MutationInputSchema.extend({
28337
- amount: z408.string().regex(/^[1-9][0-9]*$/, "Must be a positive integer string representing wei (e.g. '1000000000000000000' for 1 ETH). Zero, negative, and non-numeric values are rejected.")
28396
+ amount: z409.string().regex(/^[1-9][0-9]*$/, "Must be a positive integer string representing wei (e.g. '1000000000000000000' for 1 ETH). Zero, negative, and non-numeric values are rejected.")
28338
28397
  });
28339
- var PaymasterAddressParamsSchema = z408.object({
28398
+ var PaymasterAddressParamsSchema = z409.object({
28340
28399
  address: ethereumAddress
28341
28400
  });
28342
- var PaymasterSignerKeyRotationSchema = z408.object({
28401
+ var PaymasterSignerKeyRotationSchema = z409.object({
28343
28402
  signerAddress: ethereumAddress,
28344
28403
  rotatedAt: timestamp()
28345
28404
  });
28346
- var PaymasterSignerKeyStatusSchema = z408.object({
28405
+ var PaymasterSignerKeyStatusSchema = z409.object({
28347
28406
  signerAddress: ethereumAddress.nullable(),
28348
28407
  rotatedAt: timestamp().nullable()
28349
28408
  });
28350
- var PaymasterConfigSchema = z408.object({
28351
- enabled: z408.boolean()
28409
+ var PaymasterConfigSchema = z409.object({
28410
+ enabled: z409.boolean()
28352
28411
  });
28353
28412
 
28354
28413
  // ../../packages/dalp/api-contract/src/routes/v2/system/paymaster/paymaster.v2.list.schema.ts
@@ -28425,24 +28484,24 @@ var paymasterV2Contract = {
28425
28484
  };
28426
28485
 
28427
28486
  // ../../packages/dalp/api-contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.contract.ts
28428
- import { z as z411 } from "zod";
28487
+ import { z as z412 } from "zod";
28429
28488
 
28430
28489
  // ../../packages/dalp/api-contract/src/routes/system/trusted-issuers/routes/trusted-issuer.claim-topic.schema.ts
28431
- import { z as z409 } from "zod";
28490
+ import { z as z410 } from "zod";
28432
28491
  var TrustedIssuerClaimTopicMutationBodySchema = MutationInputSchema;
28433
- var TrustedIssuerClaimTopicMutationParamsSchema = z409.object({
28492
+ var TrustedIssuerClaimTopicMutationParamsSchema = z410.object({
28434
28493
  issuerAddress: ethereumAddress.meta({
28435
28494
  description: "The identity address of the trusted issuer",
28436
28495
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28437
28496
  }),
28438
- topicId: z409.string().min(1).regex(/^\d+$/, "topicId must be a numeric string").meta({ description: "Numeric ID of the claim topic to add or remove", examples: ["1", "2", "100"] })
28497
+ topicId: z410.string().min(1).regex(/^\d+$/, "topicId must be a numeric string").meta({ description: "Numeric ID of the claim topic to add or remove", examples: ["1", "2", "100"] })
28439
28498
  });
28440
28499
  var TrustedIssuerClaimTopicMutationOutputSchema = BaseMutationOutputSchema.extend({
28441
28500
  issuerAddress: ethereumAddress.meta({
28442
28501
  description: "Address of the trusted issuer that was mutated",
28443
28502
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28444
28503
  }),
28445
- topicId: z409.string().meta({
28504
+ topicId: z410.string().meta({
28446
28505
  description: "Numeric ID of the topic that was added or removed",
28447
28506
  examples: ["1"]
28448
28507
  })
@@ -28459,8 +28518,8 @@ var TrustedIssuersV2ListInputSchema = createCollectionInputSchema(TRUSTED_ISSUER
28459
28518
  var TrustedIssuersV2ListOutputSchema = createPaginatedResponse(TrustedIssuerSchema2);
28460
28519
 
28461
28520
  // ../../packages/dalp/api-contract/src/routes/v2/system/trusted-issuers/trusted-issuer.v2.topics.list.schema.ts
28462
- import { z as z410 } from "zod";
28463
- var TrustedIssuerTopicsV2ListParamsSchema = z410.object({
28521
+ import { z as z411 } from "zod";
28522
+ var TrustedIssuerTopicsV2ListParamsSchema = z411.object({
28464
28523
  issuerAddress: ethereumAddress.meta({
28465
28524
  description: "Trusted issuer identity address",
28466
28525
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28486,7 +28545,7 @@ var list38 = v2Contract.route({
28486
28545
  successDescription: "Paginated array of trusted issuers with total count and faceted filter values.",
28487
28546
  tags: [V2_TAG.trustedIssuers]
28488
28547
  }).input(v2Input.query(TrustedIssuersV2ListInputSchema)).output(TrustedIssuersV2ListOutputSchema);
28489
- var read29 = v2Contract.route({
28548
+ var read30 = v2Contract.route({
28490
28549
  method: "GET",
28491
28550
  path: "/system/trusted-issuers/{issuerAddress}",
28492
28551
  description: "Get details for a trusted issuer by identity address.",
@@ -28506,21 +28565,21 @@ var update9 = v2Contract.route({
28506
28565
  description: "Update the claim topics for a trusted issuer.",
28507
28566
  successDescription: "Trusted issuer topics updated successfully.",
28508
28567
  tags: [V2_TAG.trustedIssuers]
28509
- }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z411.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
28568
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z412.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
28510
28569
  var upsert5 = v2Contract.route({
28511
28570
  method: "PUT",
28512
28571
  path: "/system/trusted-issuers/{issuerAddress}",
28513
28572
  description: "Create or update a trusted issuer in the registry.",
28514
28573
  successDescription: "Trusted issuer upserted successfully.",
28515
28574
  tags: [V2_TAG.trustedIssuers]
28516
- }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z411.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
28575
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z412.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
28517
28576
  var del10 = v2Contract.route({
28518
28577
  method: "DELETE",
28519
28578
  path: "/system/trusted-issuers/{issuerAddress}",
28520
28579
  description: "Delete a trusted issuer from the registry.",
28521
28580
  successDescription: "Trusted issuer deleted successfully.",
28522
28581
  tags: [V2_TAG.trustedIssuers]
28523
- }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z411.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
28582
+ }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(z412.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createAsyncBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
28524
28583
  var topics2 = v2Contract.route({
28525
28584
  method: "GET",
28526
28585
  path: "/system/trusted-issuers/{issuerAddress}/topics",
@@ -28544,7 +28603,7 @@ var removeClaimTopic = v2Contract.route({
28544
28603
  }).meta({ contractErrors: [...TRUSTED_ISSUER_ERRORS] }).input(v2Input.paramsBody(TrustedIssuerClaimTopicMutationParamsSchema, TrustedIssuerClaimTopicMutationBodySchema)).output(createAsyncBlockchainMutationResponse(TrustedIssuerClaimTopicMutationOutputSchema));
28545
28604
  var trustedIssuersV2Contract = {
28546
28605
  list: list38,
28547
- read: read29,
28606
+ read: read30,
28548
28607
  create: create17,
28549
28608
  update: update9,
28550
28609
  upsert: upsert5,
@@ -28564,6 +28623,7 @@ var systemV2Contract = {
28564
28623
  claimTopics: claimTopicsV2Contract,
28565
28624
  compliance: complianceModuleV2Contract,
28566
28625
  directory: directoryV2Contract2,
28626
+ eligibility: eligibilityV2Contract,
28567
28627
  entity: entityV2Contract,
28568
28628
  featureInventory: featureInventoryV2Contract,
28569
28629
  feeds: feedsV2Contract,
@@ -28576,22 +28636,22 @@ var systemV2Contract = {
28576
28636
  };
28577
28637
 
28578
28638
  // ../../packages/dalp/api-contract/src/routes/v2/token/compliance-expression/compliance-expression.v2.schema.ts
28579
- import { z as z413 } from "zod";
28639
+ import { z as z414 } from "zod";
28580
28640
 
28581
28641
  // ../../packages/dalp/api-contract/src/routes/token/compliance-expression/routes/compliance-expression.schema.ts
28582
- import { z as z412 } from "zod";
28583
- var TokenComplianceExpressionNodeSchema = z412.object({
28584
- nodeType: z412.number().int().meta({
28642
+ import { z as z413 } from "zod";
28643
+ var TokenComplianceExpressionNodeSchema = z413.object({
28644
+ nodeType: z413.number().int().meta({
28585
28645
  description: "Raw numeric node type as indexed from the on-chain expression node.",
28586
28646
  examples: [0, 1, 2, 3]
28587
28647
  }),
28588
- value: z412.string().meta({
28648
+ value: z413.string().meta({
28589
28649
  description: "Numeric node value as a decimal string (matches the on-chain uint256). Claim-topic id for TOPIC nodes.",
28590
28650
  examples: ["1", "0", "100"]
28591
28651
  })
28592
28652
  });
28593
- var TokenComplianceExpressionSchema = z412.object({
28594
- expression: z412.array(TokenComplianceExpressionNodeSchema).meta({
28653
+ var TokenComplianceExpressionSchema = z413.object({
28654
+ expression: z413.array(TokenComplianceExpressionNodeSchema).meta({
28595
28655
  description: "Postfix (RPN) compliance expression for the token. An empty array means every holder passes verification.",
28596
28656
  examples: [[{ nodeType: 0, value: "1" }]]
28597
28657
  })
@@ -28606,12 +28666,12 @@ var EXPRESSION_NEGATIVE_VALUE_MESSAGE = "An expression node value must not be ne
28606
28666
  var EXPRESSION_VALUE_TOO_LARGE_MESSAGE = `An expression node value must not exceed 2^256 - 1 (${MAX_EXPRESSION_NODE_VALUE}).`;
28607
28667
  var EXPRESSION_ZERO_TOPIC_MESSAGE = "A TOPIC node value (claim-topic id) must not be 0.";
28608
28668
  var TokenComplianceExpressionV2GetOutputSchema = createSingleResponse(TokenComplianceExpressionSchema);
28609
- var complianceExpressionNode = z413.object({
28669
+ var complianceExpressionNode = z414.object({
28610
28670
  nodeType: expressionType(),
28611
28671
  value: apiIntegerBigInt
28612
28672
  });
28613
28673
  var TokenComplianceExpressionV2UpdateInputSchema = MutationInputSchema.extend({
28614
- expression: z413.array(complianceExpressionNode).meta({
28674
+ expression: z414.array(complianceExpressionNode).meta({
28615
28675
  description: "Postfix (RPN) compliance expression that replaces the token's current expression. " + "An empty array clears the expression — every holder then passes verification.",
28616
28676
  examples: [[{ nodeType: 0, value: "1" }]]
28617
28677
  }).superRefine((nodes, ctx) => {
@@ -28656,7 +28716,7 @@ var tokenV2ComplianceExpressionContract = {
28656
28716
  };
28657
28717
 
28658
28718
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.documents.list.schema.ts
28659
- import { z as z414 } from "zod";
28719
+ import { z as z415 } from "zod";
28660
28720
  var TOKEN_DOCUMENTS_COLLECTION_FIELDS = {
28661
28721
  fileName: textField(),
28662
28722
  documentType: enumField(tokenDocumentTypes, { facetable: true }),
@@ -28669,22 +28729,22 @@ var TOKEN_DOCUMENTS_COLLECTION_FIELDS = {
28669
28729
  var TokenDocumentsV2ListInputSchema = createCollectionInputSchema(TOKEN_DOCUMENTS_COLLECTION_FIELDS, {
28670
28730
  defaultSort: "uploadedAt"
28671
28731
  });
28672
- var TokenDocumentsV2ListItemSchema = z414.object({
28673
- id: z414.string(),
28674
- tokenAddress: z414.string(),
28732
+ var TokenDocumentsV2ListItemSchema = z415.object({
28733
+ id: z415.string(),
28734
+ tokenAddress: z415.string(),
28675
28735
  documentType: tokenDocumentType(),
28676
28736
  visibility: tokenDocumentVisibility(),
28677
- groupId: z414.string(),
28678
- versionNumber: z414.number(),
28679
- isLatest: z414.boolean(),
28680
- fileName: z414.string(),
28681
- fileSize: z414.number(),
28682
- mimeType: z414.string(),
28683
- title: z414.string().nullable(),
28684
- description: z414.string().nullable(),
28685
- fileHash: z414.string().nullable(),
28737
+ groupId: z415.string(),
28738
+ versionNumber: z415.number(),
28739
+ isLatest: z415.boolean(),
28740
+ fileName: z415.string(),
28741
+ fileSize: z415.number(),
28742
+ mimeType: z415.string(),
28743
+ title: z415.string().nullable(),
28744
+ description: z415.string().nullable(),
28745
+ fileHash: z415.string().nullable(),
28686
28746
  uploadedAt: timestamp(),
28687
- uploadedBy: z414.string().nullable()
28747
+ uploadedBy: z415.string().nullable()
28688
28748
  });
28689
28749
  var TokenDocumentsV2ListOutputSchema = createPaginatedResponse(TokenDocumentsV2ListItemSchema);
28690
28750
 
@@ -28733,13 +28793,13 @@ var tokenV2DocumentsContract = {
28733
28793
  };
28734
28794
 
28735
28795
  // ../../packages/dalp/api-contract/src/query/metadata-grouping.schema.ts
28736
- import { z as z415 } from "zod";
28737
- var MetadataFilterValueSchema = z415.union([z415.string(), z415.array(z415.string()).min(1)]);
28738
- var MetadataGroupingOverlaySchema = z415.object({
28739
- groupBy: z415.string().min(1).optional().meta({
28796
+ import { z as z416 } from "zod";
28797
+ var MetadataFilterValueSchema = z416.union([z416.string(), z416.array(z416.string()).min(1)]);
28798
+ var MetadataGroupingOverlaySchema = z416.object({
28799
+ groupBy: z416.string().min(1).optional().meta({
28740
28800
  description: "Metadata key (declared in an accessible template's metadataSchema, bucketable type) to group results by; surfaces meta.groups with per-group aggregates."
28741
28801
  }),
28742
- metadataFilters: z415.record(z415.string().min(1), MetadataFilterValueSchema).optional().meta({
28802
+ metadataFilters: z416.record(z416.string().min(1), MetadataFilterValueSchema).optional().meta({
28743
28803
  description: "Per-key metadata filters keyed by metadata field name (e.g. capTableId). Maps from the wire form filter[metadata.<key>]."
28744
28804
  })
28745
28805
  });
@@ -28788,34 +28848,34 @@ function liftMetadataWireFilters(input) {
28788
28848
  metadataFilters: mergedMetadataFilters
28789
28849
  };
28790
28850
  }
28791
- var MetadataGroupSummarySchema = z415.object({
28792
- key: z415.string().meta({ description: "Metadata value defining this group." }),
28793
- label: z415.string().meta({ description: "Human-readable group label (defaults to the key)." }),
28794
- count: z415.number().int().nonnegative().meta({ description: "Number of tokens in this group." }),
28795
- totalSupply: z415.string().meta({
28851
+ var MetadataGroupSummarySchema = z416.object({
28852
+ key: z416.string().meta({ description: "Metadata value defining this group." }),
28853
+ label: z416.string().meta({ description: "Human-readable group label (defaults to the key)." }),
28854
+ count: z416.number().int().nonnegative().meta({ description: "Number of tokens in this group." }),
28855
+ totalSupply: z416.string().meta({
28796
28856
  description: "Sum of per-token totalSupply / 10^decimals across the group, decimal string."
28797
28857
  }),
28798
- decimals: z415.number().int().nonnegative().meta({
28858
+ decimals: z416.number().int().nonnegative().meta({
28799
28859
  description: "Highest token.decimals across the group; precision hint for totalSupply."
28800
28860
  }),
28801
- totalValueInBase: z415.string().nullable().meta({
28861
+ totalValueInBase: z416.string().nullable().meta({
28802
28862
  description: "Sum of (totalSupply / 10^decimals) * resolvedPriceInBase across the group, in caller's org base currency. Null if no token in the group has a resolved price."
28803
28863
  }),
28804
- reliability: z415.boolean().meta({
28864
+ reliability: z416.boolean().meta({
28805
28865
  description: "false when any token in the group has resolvedPriceInBaseReliable = false or NULL; true otherwise."
28806
28866
  })
28807
28867
  });
28808
- var MetadataGroupByAxisSchema = z415.object({
28809
- key: z415.string().meta({
28868
+ var MetadataGroupByAxisSchema = z416.object({
28869
+ key: z416.string().meta({
28810
28870
  description: "Metadata key the response is grouped by (echoes the request's groupBy parameter)."
28811
28871
  }),
28812
- label: z415.string().meta({
28872
+ label: z416.string().meta({
28813
28873
  description: "Human-readable display label for the grouping axis, sourced from the metadata field's declared label."
28814
28874
  })
28815
28875
  });
28816
28876
 
28817
28877
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.list.schema.ts
28818
- import { z as z416 } from "zod";
28878
+ import { z as z417 } from "zod";
28819
28879
  var TOKEN_COLLECTION_FIELDS = {
28820
28880
  name: textField(),
28821
28881
  symbol: textField(),
@@ -28830,14 +28890,14 @@ var BaseInputSchema = createCollectionInputSchema(TOKEN_COLLECTION_FIELDS, {
28830
28890
  defaultSort: "createdAt",
28831
28891
  globalSearch: true
28832
28892
  });
28833
- var TokenV2ListInputSchema = z416.preprocess(liftMetadataWireFilters, z416.intersection(BaseInputSchema, MetadataGroupingOverlaySchema));
28893
+ var TokenV2ListInputSchema = z417.preprocess(liftMetadataWireFilters, z417.intersection(BaseInputSchema, MetadataGroupingOverlaySchema));
28834
28894
  var TokenV2ListItemSchema = TokenListItemSchema.extend({
28835
- metadataValues: z416.record(z416.string(), z416.string()).optional().meta({
28895
+ metadataValues: z417.record(z417.string(), z417.string()).optional().meta({
28836
28896
  description: "Subset of token metadata values relevant to the current groupBy/filter request."
28837
28897
  })
28838
28898
  });
28839
28899
  var TokenV2ListOutputSchema = createPaginatedResponse(TokenV2ListItemSchema, {
28840
- groups: z416.array(MetadataGroupSummarySchema).optional().meta({
28900
+ groups: z417.array(MetadataGroupSummarySchema).optional().meta({
28841
28901
  description: "Per-group aggregate summaries; present only when groupBy is set on the request."
28842
28902
  }),
28843
28903
  groupBy: MetadataGroupByAxisSchema.optional().meta({
@@ -28846,7 +28906,7 @@ var TokenV2ListOutputSchema = createPaginatedResponse(TokenV2ListItemSchema, {
28846
28906
  });
28847
28907
 
28848
28908
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.mutations.contract.ts
28849
- import { z as z424 } from "zod";
28909
+ import { z as z425 } from "zod";
28850
28910
 
28851
28911
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/compliance/token.install-scoped-compliance-module.schema.ts
28852
28912
  var TokenInstallScopedComplianceModuleInputSchema = TokenMutationInputSchema.extend({
@@ -28891,12 +28951,12 @@ var TokenFreezeAumFeeRateInputSchema = TokenMutationInputSchema.extend({});
28891
28951
 
28892
28952
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.conversion.schema.ts
28893
28953
  import { zeroAddress as zeroAddress2 } from "viem";
28894
- import { z as z417 } from "zod";
28954
+ import { z as z418 } from "zod";
28895
28955
  var conversionMinterTargetTokenAddress = ethereumAddress.meta({
28896
28956
  description: "Must be the target token's address (where the conversion-minter feature lives).",
28897
28957
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28898
28958
  });
28899
- var TokenConversionMinterTargetInputSchema = z417.object({
28959
+ var TokenConversionMinterTargetInputSchema = z418.object({
28900
28960
  tokenAddress: conversionMinterTargetTokenAddress
28901
28961
  });
28902
28962
  var TokenConversionMinterMutationInputSchema = TokenMutationInputSchema.extend({
@@ -28981,7 +29041,7 @@ var TokenRemoveAuthorizedConverterInputSchema = TokenConversionMinterMutationInp
28981
29041
  });
28982
29042
  var conversionMinterConverterAddress = ethereumAddress.refine((address) => address !== zeroAddress2, "Converter cannot be the zero address");
28983
29043
  var TokenFeatureConversionMinterCreateBaseSchema = TokenMutationInputSchema.extend({
28984
- converters: z417.array(conversionMinterConverterAddress).optional().meta({
29044
+ converters: z418.array(conversionMinterConverterAddress).optional().meta({
28985
29045
  description: "Initial list of authorized converter addresses. Omit or empty for no initial converters.",
28986
29046
  examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
28987
29047
  })
@@ -29186,7 +29246,7 @@ var TokenSetTransactionFeeRecipientInputSchema = TokenMutationInputSchema.extend
29186
29246
  var TokenFreezeTransactionFeeRatesInputSchema = TokenMutationInputSchema.extend({});
29187
29247
 
29188
29248
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.transaction-fee-accounting.schema.ts
29189
- import { z as z418 } from "zod";
29249
+ import { z as z419 } from "zod";
29190
29250
  var TokenSetTransactionFeeAccountingRatesInputSchema = TokenMutationInputSchema.extend({
29191
29251
  mintFeeBps: feeRateBps().meta({
29192
29252
  description: "Mint fee rate in basis points (e.g. 200 = 2%)",
@@ -29214,7 +29274,7 @@ var TokenSetFeeExemptionInputSchema = TokenMutationInputSchema.extend({
29214
29274
  description: "The account address to set fee exemption for",
29215
29275
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
29216
29276
  }),
29217
- exempt: z418.boolean().meta({
29277
+ exempt: z419.boolean().meta({
29218
29278
  description: "Whether the account should be exempt from fees",
29219
29279
  examples: [true, false]
29220
29280
  })
@@ -29240,9 +29300,9 @@ var TokenFeatureTransactionFeeAccountingCreateBaseSchema = TokenMutationInputSch
29240
29300
  var TokenFeatureTransactionFeeAccountingCreateBodySchema = TokenFeatureTransactionFeeAccountingCreateBaseSchema.omit({ tokenAddress: true });
29241
29301
 
29242
29302
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.voting.schema.ts
29243
- import { z as z419 } from "zod";
29303
+ import { z as z420 } from "zod";
29244
29304
  var MAX_UINT2563 = (1n << 256n) - 1n;
29245
- var bytes32Hex = z419.string().regex(/^0x[\da-fA-F]{64}$/, "Must be a 66-character hex string (0x + 64 hex chars)").transform((v) => v);
29305
+ var bytes32Hex = z420.string().regex(/^0x[\da-fA-F]{64}$/, "Must be a 66-character hex string (0x + 64 hex chars)").transform((v) => v);
29246
29306
  var uint256 = apiIntegerBigInt.refine((value3) => value3 >= 0n && value3 <= MAX_UINT2563, {
29247
29307
  message: "Value must fit within uint256"
29248
29308
  });
@@ -29261,7 +29321,7 @@ var TokenDelegateBySigInputSchema = TokenDelegateInputSchema.extend({
29261
29321
  description: "Signature expiry timestamp as a Unix time in seconds",
29262
29322
  examples: ["1767225600"]
29263
29323
  }),
29264
- v: z419.number().int().refine((value3) => value3 === 27 || value3 === 28, { message: "v must be 27 or 28" }).meta({
29324
+ v: z420.number().int().refine((value3) => value3 === 27 || value3 === 28, { message: "v must be 27 or 28" }).meta({
29265
29325
  description: "ECDSA recovery id",
29266
29326
  examples: [27]
29267
29327
  }),
@@ -29280,9 +29340,9 @@ var TokenFeatureVotingPowerCreateBodySchema = TokenFeatureVotingPowerCreateInput
29280
29340
  });
29281
29341
 
29282
29342
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.permit.schema.ts
29283
- import { z as z420 } from "zod";
29343
+ import { z as z421 } from "zod";
29284
29344
  var MAX_UINT2564 = (1n << 256n) - 1n;
29285
- var bytes32Hex2 = z420.string().regex(/^0x[\da-fA-F]{64}$/, "Must be a 66-character hex string (0x + 64 hex chars)").transform((v) => v);
29345
+ var bytes32Hex2 = z421.string().regex(/^0x[\da-fA-F]{64}$/, "Must be a 66-character hex string (0x + 64 hex chars)").transform((v) => v);
29286
29346
  var uint2562 = apiIntegerBigInt.refine((value3) => value3 >= 0n && value3 <= MAX_UINT2564, {
29287
29347
  message: "Value must fit within uint256"
29288
29348
  });
@@ -29303,7 +29363,7 @@ var TokenPermitInputSchema = TokenMutationInputSchema.extend({
29303
29363
  description: "Signature deadline timestamp as a Unix time in seconds.",
29304
29364
  examples: ["1767225600"]
29305
29365
  }),
29306
- v: z420.number().int().refine((value3) => value3 === 27 || value3 === 28, { message: "v must be 27 or 28" }).meta({
29366
+ v: z421.number().int().refine((value3) => value3 === 27 || value3 === 28, { message: "v must be 27 or 28" }).meta({
29307
29367
  description: "ECDSA recovery id.",
29308
29368
  examples: [27]
29309
29369
  }),
@@ -29380,7 +29440,7 @@ var TokenFeatureFixedTreasuryYieldCreateBodySchema = TokenFeatureFixedTreasuryYi
29380
29440
  }).superRefine(refineEndAfterStart);
29381
29441
 
29382
29442
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.feature-detach-rotate.schema.ts
29383
- import { z as z421 } from "zod";
29443
+ import { z as z422 } from "zod";
29384
29444
  var TokenFeatureDetachRotateParamsSchema = TokenReadInputSchema.extend({
29385
29445
  typeId: tokenFeatureIdSchema.meta({
29386
29446
  description: "Token feature type id identifying which attached feature instance to detach or rotate.",
@@ -29389,7 +29449,7 @@ var TokenFeatureDetachRotateParamsSchema = TokenReadInputSchema.extend({
29389
29449
  });
29390
29450
  var TokenFeatureDetachBodySchema = TokenMutationInputSchema.omit({ tokenAddress: true });
29391
29451
  var TokenFeatureRotateBodySchema = TokenMutationInputSchema.omit({ tokenAddress: true }).extend({
29392
- configData: z421.string().regex(/^0x[0-9a-fA-F]*$/, "configData must be 0x-prefixed hex").meta({
29452
+ configData: z422.string().regex(/^0x[0-9a-fA-F]*$/, "configData must be 0x-prefixed hex").meta({
29393
29453
  description: "ABI-encoded configData tuple for the target feature factory's createFeature call. Shape is feature-specific; see the per-feature create route for the canonical encoding.",
29394
29454
  examples: ["0x000000000000000000000000abcdef..."]
29395
29455
  })
@@ -29436,7 +29496,7 @@ var TokenRemoveMetadataInputSchema = TokenMutationInputSchema.extend({
29436
29496
  });
29437
29497
 
29438
29498
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/transfer-approval/token.approve-transfer.schema.ts
29439
- import { z as z422 } from "zod";
29499
+ import { z as z423 } from "zod";
29440
29500
  var TokenApproveTransferInputSchema = TokenMutationInputSchema.extend({
29441
29501
  fromWallet: ethereumAddress.meta({
29442
29502
  description: "Wallet address of the token sender whose identity will be the fromIdentity",
@@ -29464,7 +29524,7 @@ function identityAddressPairRefinement(data, ctx) {
29464
29524
  const hasTo = data.toIdentityAddress !== undefined;
29465
29525
  if (hasFrom !== hasTo) {
29466
29526
  ctx.addIssue({
29467
- code: z422.ZodIssueCode.custom,
29527
+ code: z423.ZodIssueCode.custom,
29468
29528
  message: "fromIdentityAddress and toIdentityAddress must both be provided or both omitted — partial overrides are not supported.",
29469
29529
  path: hasFrom ? ["toIdentityAddress"] : ["fromIdentityAddress"]
29470
29530
  });
@@ -29504,9 +29564,9 @@ var TokenRevokeTransferApprovalBodySchema = TokenRevokeTransferApprovalInputSche
29504
29564
  }).superRefine(identityAddressPairRefinement);
29505
29565
 
29506
29566
  // ../../packages/dalp/api-contract/src/routes/v2/token/token-price.v2.schema.ts
29507
- import { z as z423 } from "zod";
29567
+ import { z as z424 } from "zod";
29508
29568
  var TokenPriceBodySchema = MutationInputSchema.extend({
29509
- price: z423.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
29569
+ price: z424.string().regex(/^(?!0+(\.0+)?$)\d+(\.\d+)?$/, "Price must be a positive decimal string greater than zero").meta({
29510
29570
  description: "Token price in the specified currency (decimal string for arbitrary precision)",
29511
29571
  examples: ["100.50", "1.00", "0.01"]
29512
29572
  }),
@@ -29515,7 +29575,7 @@ var TokenPriceBodySchema = MutationInputSchema.extend({
29515
29575
  examples: ["EUR", "USD", "GBP"]
29516
29576
  })
29517
29577
  });
29518
- var TokenPriceOutputSchema = z423.object({
29578
+ var TokenPriceOutputSchema = z424.object({
29519
29579
  feedAddress: ethereumAddress.meta({
29520
29580
  description: "The on-chain feed contract address",
29521
29581
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -29524,7 +29584,7 @@ var TokenPriceOutputSchema = z423.object({
29524
29584
  description: "Transaction hash of the price submission",
29525
29585
  examples: ["0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890"]
29526
29586
  }),
29527
- price: z423.string().meta({
29587
+ price: z424.string().meta({
29528
29588
  description: "The submitted price (echoed back)",
29529
29589
  examples: ["100.50"]
29530
29590
  }),
@@ -29555,14 +29615,14 @@ var mint = v2Contract.route({
29555
29615
  description: "Mint new tokens to one or more addresses.",
29556
29616
  successDescription: "Tokens minted successfully.",
29557
29617
  tags: [V2_TAG.token]
29558
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29618
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29559
29619
  var burn = v2Contract.route({
29560
29620
  method: "POST",
29561
29621
  path: "/tokens/{tokenAddress}/burns",
29562
29622
  description: "Burn tokens from one or more addresses.",
29563
29623
  successDescription: "Tokens burned successfully.",
29564
29624
  tags: [V2_TAG.token]
29565
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29625
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29566
29626
  var transfer = v2Contract.route({
29567
29627
  method: "POST",
29568
29628
  path: "/tokens/{tokenAddress}/transfers",
@@ -29571,7 +29631,7 @@ var transfer = v2Contract.route({
29571
29631
  tags: [V2_TAG.token]
29572
29632
  }).meta({
29573
29633
  contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1056"]
29574
- }).input(v2Input.paramsBody(TokenReadInputSchema, z424.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29634
+ }).input(v2Input.paramsBody(TokenReadInputSchema, z425.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29575
29635
  var forcedTransfer = v2Contract.route({
29576
29636
  method: "POST",
29577
29637
  path: "/tokens/{tokenAddress}/forced-transfers",
@@ -29580,7 +29640,7 @@ var forcedTransfer = v2Contract.route({
29580
29640
  tags: [V2_TAG.token]
29581
29641
  }).meta({
29582
29642
  contractErrors: [...COMMON_CONTRACT_ERRORS, ...COMPLIANCE, ...FREEZE, "DALP-1055"]
29583
- }).input(v2Input.paramsBody(TokenReadInputSchema, z424.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29643
+ }).input(v2Input.paramsBody(TokenReadInputSchema, z425.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29584
29644
  var approve3 = v2Contract.route({
29585
29645
  method: "POST",
29586
29646
  path: "/tokens/{tokenAddress}/approvals",
@@ -29594,7 +29654,7 @@ var redeem = v2Contract.route({
29594
29654
  description: "Redeem tokens from one or more addresses.",
29595
29655
  successDescription: "Tokens redeemed successfully.",
29596
29656
  tags: [V2_TAG.token]
29597
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29657
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, "DALP-1055"] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
29598
29658
  var mature = v2Contract.route({
29599
29659
  method: "POST",
29600
29660
  path: "/tokens/{tokenAddress}/maturations",
@@ -29745,9 +29805,9 @@ var grantRole2 = v2Contract.route({
29745
29805
  description: "Grant a role to multiple accounts on a token.",
29746
29806
  successDescription: "Role granted successfully to accounts.",
29747
29807
  tags: [V2_TAG.token]
29748
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.union([
29749
- z424.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
29750
- z424.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
29808
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.union([
29809
+ z425.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
29810
+ z425.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
29751
29811
  ]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleOutputSchema));
29752
29812
  var grantRoleByParticipant2 = v2Contract.route({
29753
29813
  method: "POST",
@@ -29755,9 +29815,9 @@ var grantRoleByParticipant2 = v2Contract.route({
29755
29815
  description: "Grant a role to every wallet owned by a participant on a token.",
29756
29816
  successDescription: "Role granted successfully to participant wallets.",
29757
29817
  tags: [V2_TAG.token]
29758
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.union([
29759
- z424.object(TokenGrantRoleByParticipantInputSchema.options[0].shape).omit({ tokenAddress: true }),
29760
- z424.object(TokenGrantRoleByParticipantInputSchema.options[1].shape).omit({ tokenAddress: true })
29818
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.union([
29819
+ z425.object(TokenGrantRoleByParticipantInputSchema.options[0].shape).omit({ tokenAddress: true }),
29820
+ z425.object(TokenGrantRoleByParticipantInputSchema.options[1].shape).omit({ tokenAddress: true })
29761
29821
  ]))).output(createAsyncBlockchainMutationResponse(TokenGrantRoleByParticipantOutputSchema));
29762
29822
  var revokeRole2 = v2Contract.route({
29763
29823
  method: "POST",
@@ -29765,9 +29825,9 @@ var revokeRole2 = v2Contract.route({
29765
29825
  description: "Revoke role(s) from account(s) on a token.",
29766
29826
  successDescription: "Roles revoked successfully from the specified accounts.",
29767
29827
  tags: [V2_TAG.token]
29768
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.union([
29769
- z424.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
29770
- z424.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
29828
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.union([
29829
+ z425.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
29830
+ z425.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
29771
29831
  ]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
29772
29832
  var revokeRoleByParticipant2 = v2Contract.route({
29773
29833
  method: "POST",
@@ -29775,9 +29835,9 @@ var revokeRoleByParticipant2 = v2Contract.route({
29775
29835
  description: "Revoke a role from every wallet owned by a participant on a token.",
29776
29836
  successDescription: "Role revoked successfully from participant wallets.",
29777
29837
  tags: [V2_TAG.token]
29778
- }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z424.union([
29779
- z424.object(TokenRevokeRoleByParticipantInputSchema.options[0].shape).omit({ tokenAddress: true }),
29780
- z424.object(TokenRevokeRoleByParticipantInputSchema.options[1].shape).omit({ tokenAddress: true })
29838
+ }).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS, ...ROLES] }).input(v2Input.paramsBody(TokenReadInputSchema, z425.union([
29839
+ z425.object(TokenRevokeRoleByParticipantInputSchema.options[0].shape).omit({ tokenAddress: true }),
29840
+ z425.object(TokenRevokeRoleByParticipantInputSchema.options[1].shape).omit({ tokenAddress: true })
29781
29841
  ]))).output(createAsyncBlockchainMutationResponse(TokenRevokeRoleByParticipantOutputSchema));
29782
29842
  var claimIssue2 = v2Contract.route({
29783
29843
  method: "POST",
@@ -30284,15 +30344,15 @@ var tokenV2MutationsContract = {
30284
30344
  };
30285
30345
 
30286
30346
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
30287
- import { z as z456 } from "zod";
30347
+ import { z as z457 } from "zod";
30288
30348
 
30289
30349
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
30290
- import { z as z426 } from "zod";
30350
+ import { z as z427 } from "zod";
30291
30351
 
30292
30352
  // ../../packages/core/validation/src/feature-types.ts
30293
- import { z as z425 } from "zod";
30353
+ import { z as z426 } from "zod";
30294
30354
  var featureTypes = tokenFeatureIds;
30295
- var FeatureTypeSchema = z425.enum(featureTypes);
30355
+ var FeatureTypeSchema = z426.enum(featureTypes);
30296
30356
 
30297
30357
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
30298
30358
  var TokenFeaturesInputSchema = TokenReadInputSchema;
@@ -30300,13 +30360,13 @@ var feeRate = (description) => feeRateBps().meta({
30300
30360
  description: `${description} (1 bps = 0.01%, max 10 000 = 100%)`,
30301
30361
  examples: [200]
30302
30362
  });
30303
- var TokenFeatureAUMFeeSchema = z426.object({
30363
+ var TokenFeatureAUMFeeSchema = z427.object({
30304
30364
  feeBps: feeRate("Annual AUM fee rate"),
30305
30365
  feeRecipient: nonZeroEthereumAddress.meta({
30306
30366
  description: "Address receiving the collected AUM fee",
30307
30367
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30308
30368
  }),
30309
- isFrozen: z426.boolean().meta({
30369
+ isFrozen: z427.boolean().meta({
30310
30370
  description: "Whether fee collection is frozen",
30311
30371
  examples: [false]
30312
30372
  }),
@@ -30319,7 +30379,7 @@ var TokenFeatureAUMFeeSchema = z426.object({
30319
30379
  examples: ["1000.50"]
30320
30380
  })
30321
30381
  }).nullable();
30322
- var TokenFeatureMaturityRedemptionSchema = z426.object({
30382
+ var TokenFeatureMaturityRedemptionSchema = z427.object({
30323
30383
  maturityDate: timestamp().meta({
30324
30384
  description: "Bond maturity date",
30325
30385
  examples: ["2025-01-01T00:00:00Z"]
@@ -30336,7 +30396,7 @@ var TokenFeatureMaturityRedemptionSchema = z426.object({
30336
30396
  description: "Treasury holding denomination assets for redemption",
30337
30397
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30338
30398
  }),
30339
- isMatured: z426.boolean().meta({
30399
+ isMatured: z427.boolean().meta({
30340
30400
  description: "Whether the bond has reached maturity",
30341
30401
  examples: [false]
30342
30402
  }),
@@ -30349,7 +30409,7 @@ var TokenFeatureMaturityRedemptionSchema = z426.object({
30349
30409
  examples: ["500.00"]
30350
30410
  })
30351
30411
  }).nullable();
30352
- var TokenFeatureTransactionFeeSchema = z426.object({
30412
+ var TokenFeatureTransactionFeeSchema = z427.object({
30353
30413
  mintFeeBps: feeRate("Mint fee rate"),
30354
30414
  burnFeeBps: feeRate("Burn fee rate"),
30355
30415
  transferFeeBps: feeRate("Transfer fee rate"),
@@ -30357,7 +30417,7 @@ var TokenFeatureTransactionFeeSchema = z426.object({
30357
30417
  description: "Address receiving collected transaction fees",
30358
30418
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30359
30419
  }),
30360
- isFrozen: z426.boolean().meta({
30420
+ isFrozen: z427.boolean().meta({
30361
30421
  description: "Whether fee collection is frozen",
30362
30422
  examples: [false]
30363
30423
  }),
@@ -30366,7 +30426,7 @@ var TokenFeatureTransactionFeeSchema = z426.object({
30366
30426
  examples: ["250.75"]
30367
30427
  })
30368
30428
  }).nullable();
30369
- var TokenFeatureHistoricalBalancesSchema = z426.object({
30429
+ var TokenFeatureHistoricalBalancesSchema = z427.object({
30370
30430
  enabledAt: timestamp().meta({
30371
30431
  description: "When historical balance tracking was enabled",
30372
30432
  examples: ["2024-11-14T22:13:20Z"]
@@ -30376,7 +30436,7 @@ var TokenFeatureHistoricalBalancesSchema = z426.object({
30376
30436
  examples: ["1000000.00"]
30377
30437
  })
30378
30438
  }).nullable();
30379
- var TokenFeatureFixedTreasuryYieldSchema = z426.object({
30439
+ var TokenFeatureFixedTreasuryYieldSchema = z427.object({
30380
30440
  startDate: timestamp().meta({
30381
30441
  description: "Yield schedule start",
30382
30442
  examples: ["2024-11-14T22:13:20Z"]
@@ -30385,11 +30445,11 @@ var TokenFeatureFixedTreasuryYieldSchema = z426.object({
30385
30445
  description: "Yield schedule end",
30386
30446
  examples: ["2025-01-01T00:00:00Z"]
30387
30447
  }),
30388
- rate: z426.number().meta({
30448
+ rate: z427.number().meta({
30389
30449
  description: "Annual yield rate (percentage, e.g. 5.5 = 5.5%)",
30390
30450
  examples: [5.5]
30391
30451
  }),
30392
- interval: z426.coerce.string().meta({
30452
+ interval: z427.coerce.string().meta({
30393
30453
  description: "Payout interval in seconds (string-encoded interval)",
30394
30454
  examples: ["2592000"]
30395
30455
  }),
@@ -30421,13 +30481,13 @@ var TokenFeatureFixedTreasuryYieldSchema = z426.object({
30421
30481
  description: "Period scheduled to start after the current one; null on the final period",
30422
30482
  examples: [null]
30423
30483
  }),
30424
- periods: z426.array(fixedYieldSchedulePeriod()).meta({
30484
+ periods: z427.array(fixedYieldSchedulePeriod()).meta({
30425
30485
  description: "All scheduled periods. Per-period totalYield/totalUnclaimed populate as each period closes; configured rows exist from creation",
30426
30486
  examples: [[]]
30427
30487
  })
30428
30488
  }).nullable();
30429
- var TokenFeatureVotingPowerSchema = z426.object({}).nullable();
30430
- var TokenFeatureExternalTransactionFeeSchema = z426.object({
30489
+ var TokenFeatureVotingPowerSchema = z427.object({}).nullable();
30490
+ var TokenFeatureExternalTransactionFeeSchema = z427.object({
30431
30491
  feeToken: ethereumAddress.meta({
30432
30492
  description: "ERC-20 token used to pay fees",
30433
30493
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30448,7 +30508,7 @@ var TokenFeatureExternalTransactionFeeSchema = z426.object({
30448
30508
  description: "Address receiving collected external fees",
30449
30509
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30450
30510
  }),
30451
- isFrozen: z426.boolean().meta({
30511
+ isFrozen: z427.boolean().meta({
30452
30512
  description: "Whether fee collection is frozen",
30453
30513
  examples: [false]
30454
30514
  }),
@@ -30457,7 +30517,7 @@ var TokenFeatureExternalTransactionFeeSchema = z426.object({
30457
30517
  examples: ["100.00"]
30458
30518
  })
30459
30519
  }).nullable();
30460
- var TokenFeatureTransactionFeeAccountingSchema = z426.object({
30520
+ var TokenFeatureTransactionFeeAccountingSchema = z427.object({
30461
30521
  mintFeeBps: feeRate("Mint fee rate (accounting mode)"),
30462
30522
  burnFeeBps: feeRate("Burn fee rate (accounting mode)"),
30463
30523
  transferFeeBps: feeRate("Transfer fee rate (accounting mode)"),
@@ -30465,7 +30525,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z426.object({
30465
30525
  description: "Address receiving accrued fees upon reconciliation",
30466
30526
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30467
30527
  }),
30468
- isFrozen: z426.boolean().meta({
30528
+ isFrozen: z427.boolean().meta({
30469
30529
  description: "Whether fee accrual is frozen",
30470
30530
  examples: [false]
30471
30531
  }),
@@ -30478,7 +30538,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z426.object({
30478
30538
  examples: ["100.00"]
30479
30539
  })
30480
30540
  }).nullable();
30481
- var TokenFeatureConversionSchema = z426.object({
30541
+ var TokenFeatureConversionSchema = z427.object({
30482
30542
  targetToken: ethereumAddress.meta({
30483
30543
  description: "Token that holders can convert to",
30484
30544
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30495,17 +30555,17 @@ var TokenFeatureConversionSchema = z426.object({
30495
30555
  description: "Conversion discount rate (1 bps = 0.01%, max 9999 = 99.99%) — strictly less than 100% per on-chain invariant",
30496
30556
  examples: [200, 2000]
30497
30557
  }),
30498
- partialAllowed: z426.boolean().meta({
30558
+ partialAllowed: z427.boolean().meta({
30499
30559
  description: "Whether partial conversions are allowed",
30500
30560
  examples: [true]
30501
30561
  })
30502
30562
  }).nullable();
30503
- var TokenFeatureConversionMinterSchema = z426.object({
30504
- authorizedConverters: z426.array(ethereumAddress).meta({
30563
+ var TokenFeatureConversionMinterSchema = z427.object({
30564
+ authorizedConverters: z427.array(ethereumAddress).meta({
30505
30565
  description: "Addresses authorized to perform conversions",
30506
30566
  examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
30507
30567
  }),
30508
- totalIssuances: z426.number().int().meta({
30568
+ totalIssuances: z427.number().int().meta({
30509
30569
  description: "Total number of conversion issuances performed",
30510
30570
  examples: [42]
30511
30571
  }),
@@ -30514,17 +30574,17 @@ var TokenFeatureConversionMinterSchema = z426.object({
30514
30574
  examples: ["50000.00"]
30515
30575
  })
30516
30576
  }).nullable();
30517
- var TokenFeaturePermitSchema = z426.object({
30518
- typeId: z426.literal("permit").meta({
30577
+ var TokenFeaturePermitSchema = z427.object({
30578
+ typeId: z427.literal("permit").meta({
30519
30579
  description: "Permit feature type identifier",
30520
30580
  examples: ["permit"]
30521
30581
  }),
30522
- featureFactory: z426.object({
30523
- typeId: z426.string().meta({
30582
+ featureFactory: z427.object({
30583
+ typeId: z427.string().meta({
30524
30584
  description: "Permit feature factory type identifier",
30525
30585
  examples: ["permit-feature-factory"]
30526
30586
  }),
30527
- name: z426.string().meta({
30587
+ name: z427.string().meta({
30528
30588
  description: "Human-readable name of the permit feature factory",
30529
30589
  examples: ["Permit Feature Factory"]
30530
30590
  })
@@ -30534,7 +30594,7 @@ var TokenFeaturePermitSchema = z426.object({
30534
30594
  examples: ["2024-11-14T22:13:20Z"]
30535
30595
  })
30536
30596
  }).nullable();
30537
- var TokenFeatureSchema = z426.object({
30597
+ var TokenFeatureSchema = z427.object({
30538
30598
  featureAddress: ethereumAddress.meta({
30539
30599
  description: "Feature contract address",
30540
30600
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30543,17 +30603,17 @@ var TokenFeatureSchema = z426.object({
30543
30603
  description: "Feature type identifier",
30544
30604
  examples: ["aum-fee", "maturity-redemption", "transaction-fee"]
30545
30605
  }),
30546
- featureFactory: z426.object({
30547
- typeId: z426.string().meta({
30606
+ featureFactory: z427.object({
30607
+ typeId: z427.string().meta({
30548
30608
  description: "Feature factory type identifier",
30549
30609
  examples: ["aum-fee", "maturity-redemption"]
30550
30610
  }),
30551
- name: z426.string().meta({
30611
+ name: z427.string().meta({
30552
30612
  description: "Human-readable name of the feature factory",
30553
30613
  examples: ["AUM Fee Feature Factory"]
30554
30614
  })
30555
30615
  }),
30556
- isAttached: z426.boolean().meta({
30616
+ isAttached: z427.boolean().meta({
30557
30617
  description: "Whether the feature is currently attached to the token",
30558
30618
  examples: [true]
30559
30619
  }),
@@ -30610,13 +30670,13 @@ var TokenFeatureSchema = z426.object({
30610
30670
  examples: [null]
30611
30671
  })
30612
30672
  });
30613
- var TokenFeaturesResponseSchema = z426.object({
30614
- configurable: z426.object({
30615
- features: z426.array(TokenFeatureSchema).meta({
30673
+ var TokenFeaturesResponseSchema = z427.object({
30674
+ configurable: z427.object({
30675
+ features: z427.array(TokenFeatureSchema).meta({
30616
30676
  description: "Feature configurations for the token",
30617
30677
  examples: [[]]
30618
30678
  }),
30619
- featuresCount: z426.number().int().meta({
30679
+ featuresCount: z427.number().int().meta({
30620
30680
  description: "Total number of features attached to the token",
30621
30681
  examples: [3]
30622
30682
  })
@@ -30627,25 +30687,25 @@ var TokenFeaturesResponseSchema = z426.object({
30627
30687
  });
30628
30688
 
30629
30689
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.conversion-feature-probe.schema.ts
30630
- import { z as z427 } from "zod";
30690
+ import { z as z428 } from "zod";
30631
30691
  var TokenConversionFeatureProbeInputParamsSchema = TokenReadInputSchema;
30632
- var TokenConversionFeatureProbeInputQuerySchema = z427.object({
30692
+ var TokenConversionFeatureProbeInputQuerySchema = z428.object({
30633
30693
  converterAddress: ethereumAddress.meta({
30634
30694
  description: "Address to validate as a conversion feature contract",
30635
30695
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30636
30696
  })
30637
30697
  });
30638
- var TokenConversionFeatureProbeResponseSchema = z427.object({
30639
- isConversionFeature: z427.boolean().meta({
30698
+ var TokenConversionFeatureProbeResponseSchema = z428.object({
30699
+ isConversionFeature: z428.boolean().meta({
30640
30700
  description: "Whether the address exposes the conversion feature type identifier",
30641
30701
  examples: [true]
30642
30702
  })
30643
30703
  });
30644
30704
 
30645
30705
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.aum-fee-accrued-estimate.schema.ts
30646
- import { z as z428 } from "zod";
30706
+ import { z as z429 } from "zod";
30647
30707
  var TokenAumFeeAccruedEstimateInputSchema = TokenReadInputSchema;
30648
- var TokenAumFeeAccruedEstimateResponseSchema = z428.object({
30708
+ var TokenAumFeeAccruedEstimateResponseSchema = z429.object({
30649
30709
  accruedEstimate: bigDecimal().meta({
30650
30710
  description: "Current accrued AUM fee (token units, scaled by token decimals) — authoritative chain read via getAccruedFees().",
30651
30711
  examples: ["10.50"]
@@ -30669,14 +30729,14 @@ var TokenAumFeeAccruedEstimateResponseSchema = z428.object({
30669
30729
  }).nullable();
30670
30730
 
30671
30731
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.conversion-holder-state.schema.ts
30672
- import { z as z429 } from "zod";
30732
+ import { z as z430 } from "zod";
30673
30733
  var TokenConversionHolderStateInputSchema = TokenReadInputSchema.extend({
30674
30734
  holderAddress: ethereumAddress.meta({
30675
30735
  description: "The holder wallet address to query on the attached conversion feature",
30676
30736
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30677
30737
  })
30678
30738
  });
30679
- var TokenConversionHolderStateResponseSchema = z429.object({
30739
+ var TokenConversionHolderStateResponseSchema = z430.object({
30680
30740
  availablePrincipal: bigDecimal().meta({
30681
30741
  description: "Current principal available for this holder to convert (token units, scaled by token decimals).",
30682
30742
  examples: ["100.50"]
@@ -30692,22 +30752,22 @@ var TokenConversionHolderStateResponseSchema = z429.object({
30692
30752
  }).nullable();
30693
30753
 
30694
30754
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.metadata.schema.ts
30695
- import { z as z430 } from "zod";
30755
+ import { z as z431 } from "zod";
30696
30756
  var TokenMetadataInputSchema = TokenReadInputSchema;
30697
- var TokenMetadataEntrySchema = z430.object({
30698
- key: z430.string().meta({
30757
+ var TokenMetadataEntrySchema = z431.object({
30758
+ key: z431.string().meta({
30699
30759
  description: "Human-readable metadata key string",
30700
30760
  examples: ["isin", "issuerName"]
30701
30761
  }),
30702
- keyHash: z430.string().meta({
30762
+ keyHash: z431.string().meta({
30703
30763
  description: "On-chain keccak256 hash of the metadata key (bytes32 hex string)",
30704
30764
  examples: ["0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"]
30705
30765
  }),
30706
- value: z430.string().meta({
30766
+ value: z431.string().meta({
30707
30767
  description: "Raw on-chain value (bytes32 hex string)",
30708
30768
  examples: ["0x000000"]
30709
30769
  }),
30710
- valueString: z430.string().nullable().meta({
30770
+ valueString: z431.string().nullable().meta({
30711
30771
  description: "Decoded string representation of the value, null if not decodable",
30712
30772
  examples: ["Acme Corp", null]
30713
30773
  }),
@@ -30715,7 +30775,7 @@ var TokenMetadataEntrySchema = z430.object({
30715
30775
  description: "Numeric representation of the value, null if not numeric",
30716
30776
  examples: ["1000", null]
30717
30777
  }),
30718
- isImmutable: z430.boolean().meta({
30778
+ isImmutable: z431.boolean().meta({
30719
30779
  description: "Whether this metadata entry is immutable (cannot be changed after being set)",
30720
30780
  examples: [false]
30721
30781
  }),
@@ -30724,27 +30784,27 @@ var TokenMetadataEntrySchema = z430.object({
30724
30784
  examples: ["1700000000"]
30725
30785
  })
30726
30786
  });
30727
- var TokenMetadataResponseSchema = z430.object({
30728
- metadata_: z430.object({
30729
- entryCount: z430.number().int().meta({
30787
+ var TokenMetadataResponseSchema = z431.object({
30788
+ metadata_: z431.object({
30789
+ entryCount: z431.number().int().meta({
30730
30790
  description: "Total number of metadata entries",
30731
30791
  examples: [5]
30732
30792
  }),
30733
- entries: z430.array(TokenMetadataEntrySchema).meta({
30793
+ entries: z431.array(TokenMetadataEntrySchema).meta({
30734
30794
  description: "List of metadata entries for the token"
30735
30795
  })
30736
30796
  }).nullable()
30737
30797
  });
30738
30798
 
30739
30799
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.permit-info.schema.ts
30740
- import { z as z431 } from "zod";
30800
+ import { z as z432 } from "zod";
30741
30801
  var TokenPermitInfoInputSchema = TokenReadInputSchema.extend({
30742
30802
  owner: ethereumAddress.optional().meta({
30743
30803
  description: "Optional holder address whose permit nonce should be read.",
30744
30804
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
30745
30805
  })
30746
30806
  });
30747
- var TokenPermitInfoResponseSchema = z431.object({
30807
+ var TokenPermitInfoResponseSchema = z432.object({
30748
30808
  featureAddress: ethereumAddress.meta({
30749
30809
  description: "Permit feature contract address that was read.",
30750
30810
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30768,9 +30828,9 @@ var TokenPermitInfoResponseSchema = z431.object({
30768
30828
  }).nullable();
30769
30829
 
30770
30830
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.conversion-triggers.schema.ts
30771
- import { z as z432 } from "zod";
30772
- var ConversionTriggerSchema = z432.object({
30773
- triggerId: z432.string().meta({
30831
+ import { z as z433 } from "zod";
30832
+ var ConversionTriggerSchema = z433.object({
30833
+ triggerId: z433.string().meta({
30774
30834
  description: "On-chain trigger ID (bytes32 hex)",
30775
30835
  examples: ["0xabc123..."]
30776
30836
  }),
@@ -30799,16 +30859,16 @@ var ConversionTriggerSchema = z432.object({
30799
30859
  expiresAt: timestamp().meta({
30800
30860
  description: "Trigger expiry timestamp. Epoch zero means no expiry."
30801
30861
  }),
30802
- metadataHash: z432.string().nullable().meta({
30862
+ metadataHash: z433.string().nullable().meta({
30803
30863
  description: "Off-chain metadata document hash (bytes32 hex)"
30804
30864
  }),
30805
- active: z432.boolean().meta({
30865
+ active: z433.boolean().meta({
30806
30866
  description: "Whether the trigger is currently active"
30807
30867
  }),
30808
30868
  disabledAt: timestamp().nullable().meta({
30809
30869
  description: "Timestamp when the trigger was disabled, null if still active"
30810
30870
  }),
30811
- totalConversions: z432.number().int().nonnegative().meta({
30871
+ totalConversions: z433.number().int().nonnegative().meta({
30812
30872
  description: "Number of conversions executed against this trigger",
30813
30873
  examples: [0]
30814
30874
  }),
@@ -30821,16 +30881,16 @@ var ConversionTriggerSchema = z432.object({
30821
30881
  examples: ["0"]
30822
30882
  })
30823
30883
  });
30824
- var ConversionTriggersResponseSchema = z432.object({
30825
- triggers: z432.array(ConversionTriggerSchema).meta({
30884
+ var ConversionTriggersResponseSchema = z433.object({
30885
+ triggers: z433.array(ConversionTriggerSchema).meta({
30826
30886
  description: "List of conversion triggers ordered by publication time descending"
30827
30887
  }),
30828
- totalCount: z432.number().int().nonnegative().meta({
30888
+ totalCount: z433.number().int().nonnegative().meta({
30829
30889
  description: "Total number of conversion triggers for this token",
30830
30890
  examples: [0]
30831
30891
  })
30832
30892
  });
30833
- var ConversionTriggersInputSchema = z432.object({
30893
+ var ConversionTriggersInputSchema = z433.object({
30834
30894
  tokenAddress: ethereumAddress.meta({
30835
30895
  description: "The token contract address",
30836
30896
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -30850,7 +30910,7 @@ var ConversionTriggersV2InputSchema = createCollectionInputSchema(CONVERSION_TRI
30850
30910
  var ConversionTriggersV2OutputSchema = createPaginatedResponse(ConversionTriggerSchema);
30851
30911
 
30852
30912
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.conversion-records.schema.ts
30853
- import { z as z433 } from "zod";
30913
+ import { z as z434 } from "zod";
30854
30914
  var CONVERSION_RECORD_STATUS_OPTIONS = ["Initiated", "Minted"];
30855
30915
  var CONVERSION_RECORDS_COLLECTION_FIELDS = {
30856
30916
  holder: addressField({ defaultOperator: "iLike" }),
@@ -30863,9 +30923,9 @@ var ConversionRecordsV2InputSchema = createCollectionInputSchema(CONVERSION_RECO
30863
30923
  defaultSort: "-initiatedAt",
30864
30924
  globalSearch: false
30865
30925
  });
30866
- var ConversionRecordV2ItemSchema = z433.object({
30867
- conversionId: z433.string(),
30868
- triggerId: z433.string(),
30926
+ var ConversionRecordV2ItemSchema = z434.object({
30927
+ conversionId: z434.string(),
30928
+ triggerId: z434.string(),
30869
30929
  holder: ethereumAddress,
30870
30930
  principalConverted: bigDecimal(),
30871
30931
  principalConvertedExact: apiBigInt,
@@ -30875,10 +30935,10 @@ var ConversionRecordV2ItemSchema = z433.object({
30875
30935
  targetReceivedExact: apiBigInt,
30876
30936
  effectivePriceUsedWad: bigDecimal(),
30877
30937
  effectivePriceUsedWadExact: apiBigInt,
30878
- status: z433.enum(CONVERSION_RECORD_STATUS_OPTIONS),
30938
+ status: z434.enum(CONVERSION_RECORD_STATUS_OPTIONS),
30879
30939
  initiatedAt: timestamp(),
30880
30940
  finalizedAt: timestamp().nullable(),
30881
- isForced: z433.boolean(),
30941
+ isForced: z434.boolean(),
30882
30942
  forcedBy: ethereumAddress.nullable(),
30883
30943
  issuedRecipient: ethereumAddress.nullable(),
30884
30944
  amountMinted: bigDecimal().nullable(),
@@ -30888,7 +30948,7 @@ var ConversionRecordV2ItemSchema = z433.object({
30888
30948
  var ConversionRecordsV2OutputSchema = createPaginatedResponse(ConversionRecordV2ItemSchema);
30889
30949
 
30890
30950
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.conversion-trigger-events.schema.ts
30891
- import { z as z434 } from "zod";
30951
+ import { z as z435 } from "zod";
30892
30952
  var CONVERSION_TRIGGER_EVENT_KIND_OPTIONS = ["published", "disabled", "republished"];
30893
30953
  var CONVERSION_TRIGGER_EVENTS_COLLECTION_FIELDS = {
30894
30954
  kind: enumField(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS, { facetable: true }),
@@ -30898,24 +30958,24 @@ var ConversionTriggerEventsV2InputSchema = createCollectionInputSchema(CONVERSIO
30898
30958
  defaultSort: "-blockTimestamp",
30899
30959
  globalSearch: false
30900
30960
  });
30901
- var ConversionTriggerEventV2ItemSchema = z434.object({
30902
- triggerId: z434.string(),
30903
- kind: z434.enum(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS),
30904
- eventIndex: z434.number().int().nonnegative(),
30961
+ var ConversionTriggerEventV2ItemSchema = z435.object({
30962
+ triggerId: z435.string(),
30963
+ kind: z435.enum(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS),
30964
+ eventIndex: z435.number().int().nonnegative(),
30905
30965
  denominationAsset: ethereumAddress.nullable(),
30906
30966
  roundPricePerShareWad: bigDecimal().nullable(),
30907
30967
  roundPricePerShareWadExact: apiBigInt.nullable(),
30908
30968
  expiresAt: timestamp().nullable(),
30909
- metadataHash: z434.string().nullable(),
30969
+ metadataHash: z435.string().nullable(),
30910
30970
  blockNumber: apiBigInt,
30911
30971
  blockTimestamp: timestamp(),
30912
- txHash: z434.string(),
30913
- logIndex: z434.number().int().nonnegative()
30972
+ txHash: z435.string(),
30973
+ logIndex: z435.number().int().nonnegative()
30914
30974
  });
30915
30975
  var ConversionTriggerEventsV2OutputSchema = createPaginatedResponse(ConversionTriggerEventV2ItemSchema);
30916
30976
 
30917
30977
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.converts-to.schema.ts
30918
- import { z as z435 } from "zod";
30978
+ import { z as z436 } from "zod";
30919
30979
  var CONVERTS_TO_COLLECTION_FIELDS = {
30920
30980
  isAuthorized: booleanField({ facetable: true }),
30921
30981
  authorizedAt: dateField()
@@ -30924,11 +30984,11 @@ var ConvertsToV2InputSchema = createCollectionInputSchema(CONVERTS_TO_COLLECTION
30924
30984
  defaultSort: "-authorizedAt",
30925
30985
  globalSearch: false
30926
30986
  });
30927
- var ConvertsToV2ItemSchema = z435.object({
30987
+ var ConvertsToV2ItemSchema = z436.object({
30928
30988
  targetTokenAddress: ethereumAddress,
30929
30989
  conversionFeatureAddress: ethereumAddress.nullable(),
30930
30990
  minterFeatureAddress: ethereumAddress.nullable(),
30931
- isAuthorized: z435.boolean(),
30991
+ isAuthorized: z436.boolean(),
30932
30992
  authorizedAt: timestamp(),
30933
30993
  revokedAt: timestamp().nullable(),
30934
30994
  updatedAt: timestamp()
@@ -30936,7 +30996,7 @@ var ConvertsToV2ItemSchema = z435.object({
30936
30996
  var ConvertsToV2OutputSchema = createPaginatedResponse(ConvertsToV2ItemSchema);
30937
30997
 
30938
30998
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.converted-from.schema.ts
30939
- import { z as z436 } from "zod";
30999
+ import { z as z437 } from "zod";
30940
31000
  var CONVERTED_FROM_COLLECTION_FIELDS = {
30941
31001
  isAuthorized: booleanField({ facetable: true }),
30942
31002
  authorizedAt: dateField()
@@ -30945,11 +31005,11 @@ var ConvertedFromV2InputSchema = createCollectionInputSchema(CONVERTED_FROM_COLL
30945
31005
  defaultSort: "-authorizedAt",
30946
31006
  globalSearch: false
30947
31007
  });
30948
- var ConvertedFromV2ItemSchema = z436.object({
31008
+ var ConvertedFromV2ItemSchema = z437.object({
30949
31009
  sourceTokenAddress: ethereumAddress,
30950
31010
  conversionFeatureAddress: ethereumAddress.nullable(),
30951
31011
  minterFeatureAddress: ethereumAddress.nullable(),
30952
- isAuthorized: z436.boolean(),
31012
+ isAuthorized: z437.boolean(),
30953
31013
  authorizedAt: timestamp(),
30954
31014
  revokedAt: timestamp().nullable(),
30955
31015
  updatedAt: timestamp()
@@ -30971,26 +31031,26 @@ var DenominationAssetsV2InputSchema = createCollectionInputSchema(DENOMINATION_A
30971
31031
  var DenominationAssetsV2OutputSchema = createPaginatedResponse(DenominationAssetV2ItemSchema);
30972
31032
 
30973
31033
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.events.schema.ts
30974
- import { z as z437 } from "zod";
30975
- var TokenEventV2ValueSchema = z437.object({
30976
- id: z437.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
30977
- name: z437.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
30978
- value: z437.string().meta({
31034
+ import { z as z438 } from "zod";
31035
+ var TokenEventV2ValueSchema = z438.object({
31036
+ id: z438.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
31037
+ name: z438.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
31038
+ value: z438.string().meta({
30979
31039
  description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
30980
31040
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
30981
31041
  })
30982
31042
  });
30983
- var TokenEventV2ItemSchema = z437.object({
30984
- id: z437.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
30985
- eventName: z437.string().meta({
31043
+ var TokenEventV2ItemSchema = z438.object({
31044
+ id: z438.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
31045
+ eventName: z438.string().meta({
30986
31046
  description: "The event name",
30987
31047
  examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
30988
31048
  }),
30989
- txIndex: z437.string().meta({
31049
+ txIndex: z438.string().meta({
30990
31050
  description: "Log index within the transaction (string for parity with v1)",
30991
31051
  examples: ["0", "1", "5"]
30992
31052
  }),
30993
- blockNumber: z437.string().meta({
31053
+ blockNumber: z438.string().meta({
30994
31054
  description: "Block number when the event occurred (decimal string for bigint precision)",
30995
31055
  examples: ["12345678", "20000000"]
30996
31056
  }),
@@ -31002,19 +31062,19 @@ var TokenEventV2ItemSchema = z437.object({
31002
31062
  description: "Transaction hash",
31003
31063
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
31004
31064
  }),
31005
- emitter: z437.object({
31065
+ emitter: z438.object({
31006
31066
  id: ethereumAddress.meta({
31007
31067
  description: "Address of the contract that emitted the event",
31008
31068
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31009
31069
  })
31010
31070
  }),
31011
- sender: z437.object({
31071
+ sender: z438.object({
31012
31072
  id: ethereumAddress.meta({
31013
31073
  description: "Address that triggered the event (account or sender, falling back to the contract address)",
31014
31074
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31015
31075
  })
31016
31076
  }),
31017
- values: z437.array(TokenEventV2ValueSchema).meta({
31077
+ values: z438.array(TokenEventV2ValueSchema).meta({
31018
31078
  description: "Event parameter values",
31019
31079
  examples: []
31020
31080
  })
@@ -31035,15 +31095,15 @@ var TokenEventsV2InputSchema = createCollectionInputSchema(TOKEN_EVENTS_COLLECTI
31035
31095
  var TokenEventsV2OutputSchema = createPaginatedResponse(TokenEventV2ItemSchema);
31036
31096
 
31037
31097
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
31038
- import { z as z438 } from "zod";
31039
- var TransferApprovalSchema = z438.object({
31040
- id: z438.string().meta({
31098
+ import { z as z439 } from "zod";
31099
+ var TransferApprovalSchema = z439.object({
31100
+ id: z439.string().meta({
31041
31101
  description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
31042
31102
  examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
31043
31103
  }),
31044
- token: z438.object({ id: ethereumAddress }),
31045
- fromIdentity: z438.object({ id: ethereumAddress }),
31046
- toIdentity: z438.object({ id: ethereumAddress }),
31104
+ token: z439.object({ id: ethereumAddress }),
31105
+ fromIdentity: z439.object({ id: ethereumAddress }),
31106
+ toIdentity: z439.object({ id: ethereumAddress }),
31047
31107
  value: assetAmount.meta({
31048
31108
  description: "Approved transfer amount in base units",
31049
31109
  examples: ["1000000000000000000"]
@@ -31053,7 +31113,7 @@ var TransferApprovalSchema = z438.object({
31053
31113
  description: "Timestamp when approval expires. Epoch zero means no expiry.",
31054
31114
  examples: ["0", "1893456000"]
31055
31115
  }),
31056
- status: z438.enum(["pending", "consumed", "revoked"]).meta({
31116
+ status: z439.enum(["pending", "consumed", "revoked"]).meta({
31057
31117
  description: "Current status of the approval",
31058
31118
  examples: ["pending"]
31059
31119
  }),
@@ -31066,17 +31126,17 @@ var TransferApprovalSchema = z438.object({
31066
31126
  examples: ["2023-11-14T12:05:00.000Z"]
31067
31127
  })
31068
31128
  });
31069
- var TransferApprovalsResponseSchema = z438.object({
31070
- transferApprovals: z438.array(TransferApprovalSchema).meta({
31129
+ var TransferApprovalsResponseSchema = z439.object({
31130
+ transferApprovals: z439.array(TransferApprovalSchema).meta({
31071
31131
  description: "List of transfer approvals ordered by creation time descending",
31072
31132
  examples: []
31073
31133
  }),
31074
- totalCount: z438.number().int().nonnegative().meta({
31134
+ totalCount: z439.number().int().nonnegative().meta({
31075
31135
  description: "Total number of transfer approvals for this token",
31076
31136
  examples: [3]
31077
31137
  })
31078
31138
  });
31079
- var TransferApprovalsInputSchema = z438.object({
31139
+ var TransferApprovalsInputSchema = z439.object({
31080
31140
  tokenAddress: ethereumAddress.meta({
31081
31141
  description: "The token contract address",
31082
31142
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31084,20 +31144,20 @@ var TransferApprovalsInputSchema = z438.object({
31084
31144
  });
31085
31145
 
31086
31146
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.price.schema.ts
31087
- import { z as z439 } from "zod";
31088
- var TokenPriceInputParamsSchema = z439.object({
31147
+ import { z as z440 } from "zod";
31148
+ var TokenPriceInputParamsSchema = z440.object({
31089
31149
  tokenAddress: ethereumAddress.meta({
31090
31150
  description: "The token contract address",
31091
31151
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31092
31152
  })
31093
31153
  });
31094
- var TokenPriceInputQuerySchema = z439.object({
31154
+ var TokenPriceInputQuerySchema = z440.object({
31095
31155
  currency: fiatCurrency().default("USD").meta({
31096
31156
  description: "Target ISO 4217 currency code for price conversion",
31097
31157
  examples: ["USD", "EUR", "GBP", "AED"]
31098
31158
  })
31099
31159
  });
31100
- var ConversionHopSchema = z439.object({
31160
+ var ConversionHopSchema = z440.object({
31101
31161
  from: fiatCurrency().meta({
31102
31162
  description: "Source currency of this hop",
31103
31163
  examples: ["AED"]
@@ -31106,7 +31166,7 @@ var ConversionHopSchema = z439.object({
31106
31166
  description: "Target currency of this hop",
31107
31167
  examples: ["USD"]
31108
31168
  }),
31109
- rate: z439.string().meta({
31169
+ rate: z440.string().meta({
31110
31170
  description: "Exchange rate (18-decimal string)",
31111
31171
  examples: ["272300000000000000"]
31112
31172
  }),
@@ -31118,17 +31178,17 @@ var ConversionHopSchema = z439.object({
31118
31178
  description: "When the feed was last updated",
31119
31179
  examples: ["2024-03-22T12:00:00.000Z"]
31120
31180
  }),
31121
- inverse: z439.boolean().meta({
31181
+ inverse: z440.boolean().meta({
31122
31182
  description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
31123
31183
  examples: [false]
31124
31184
  })
31125
31185
  });
31126
- var TokenPriceResponseSchema = z439.object({
31186
+ var TokenPriceResponseSchema = z440.object({
31127
31187
  tokenAddress: ethereumAddress.meta({
31128
31188
  description: "The token contract address",
31129
31189
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31130
31190
  }),
31131
- price: z439.string().meta({
31191
+ price: z440.string().meta({
31132
31192
  description: "The resolved price as a decimal string (18-decimal normalized)",
31133
31193
  examples: ["27230000000000000000"]
31134
31194
  }),
@@ -31136,11 +31196,11 @@ var TokenPriceResponseSchema = z439.object({
31136
31196
  description: "The currency of the returned price",
31137
31197
  examples: ["USD"]
31138
31198
  }),
31139
- decimals: z439.number().meta({
31199
+ decimals: z440.number().meta({
31140
31200
  description: "Decimal precision of the price (always 18)",
31141
31201
  examples: [18]
31142
31202
  }),
31143
- source: z439.enum(["feed", "claim"]).meta({
31203
+ source: z440.enum(["feed", "claim"]).meta({
31144
31204
  description: "Whether the base price came from a feed or identity claim",
31145
31205
  examples: ["feed"]
31146
31206
  }),
@@ -31148,7 +31208,7 @@ var TokenPriceResponseSchema = z439.object({
31148
31208
  description: "The native currency of the base price before conversion",
31149
31209
  examples: ["AED"]
31150
31210
  }),
31151
- convertible: z439.boolean().meta({
31211
+ convertible: z440.boolean().meta({
31152
31212
  description: "Whether the price was successfully converted to the target currency",
31153
31213
  examples: [true]
31154
31214
  }),
@@ -31156,15 +31216,15 @@ var TokenPriceResponseSchema = z439.object({
31156
31216
  description: "The requested target currency (only present when convertible is false)",
31157
31217
  examples: ["USD"]
31158
31218
  }),
31159
- reason: z439.string().optional().meta({
31219
+ reason: z440.string().optional().meta({
31160
31220
  description: "Reason for conversion failure (only present when convertible is false)",
31161
31221
  examples: ["no_fx_path"]
31162
31222
  }),
31163
- message: z439.string().optional().meta({
31223
+ message: z440.string().optional().meta({
31164
31224
  description: "Human-readable explanation (only present when convertible is false)",
31165
31225
  examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
31166
31226
  }),
31167
- availableCurrencies: z439.array(fiatCurrency()).optional().meta({
31227
+ availableCurrencies: z440.array(fiatCurrency()).optional().meta({
31168
31228
  description: "Currencies reachable from the source currency (only present when convertible is false)",
31169
31229
  examples: [["AED", "EUR"]]
31170
31230
  }),
@@ -31172,7 +31232,7 @@ var TokenPriceResponseSchema = z439.object({
31172
31232
  description: "When the price data was last updated (ISO 8601)",
31173
31233
  examples: ["2026-03-22T10:30:00.000Z"]
31174
31234
  }),
31175
- conversionPath: z439.array(ConversionHopSchema).meta({
31235
+ conversionPath: z440.array(ConversionHopSchema).meta({
31176
31236
  description: "The FX conversion hops applied (empty if no conversion needed)",
31177
31237
  examples: [[]]
31178
31238
  })
@@ -31197,21 +31257,21 @@ var HoldersV2EntrySchema = assetBalance().extend({
31197
31257
  var HoldersV2OutputSchema = createPaginatedResponse(HoldersV2EntrySchema);
31198
31258
 
31199
31259
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.participant-roles-view.contract.ts
31200
- import { z as z441 } from "zod";
31260
+ import { z as z442 } from "zod";
31201
31261
 
31202
31262
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.participant-roles-view.schema.ts
31203
- import { z as z440 } from "zod";
31204
- var TokenParticipantRolesViewItemSchema = z440.object({
31205
- participantId: z440.string().nullable(),
31206
- displayName: z440.string(),
31263
+ import { z as z441 } from "zod";
31264
+ var TokenParticipantRolesViewItemSchema = z441.object({
31265
+ participantId: z441.string().nullable(),
31266
+ displayName: z441.string(),
31207
31267
  signingAddress: ethereumAddress.nullable(),
31208
31268
  operationsAddress: ethereumAddress.nullable(),
31209
31269
  accountAddress: ethereumAddress.nullable(),
31210
- isContract: z440.boolean(),
31211
- eoaRoles: z440.array(assetAccessControlRole),
31212
- smartWalletRoles: z440.array(assetAccessControlRole),
31213
- missingRoles: z440.array(assetAccessControlRole),
31214
- drift: z440.boolean()
31270
+ isContract: z441.boolean(),
31271
+ eoaRoles: z441.array(assetAccessControlRole),
31272
+ smartWalletRoles: z441.array(assetAccessControlRole),
31273
+ missingRoles: z441.array(assetAccessControlRole),
31274
+ drift: z441.boolean()
31215
31275
  });
31216
31276
  var TOKEN_PARTICIPANT_ROLES_VIEW_COLLECTION_FIELDS = {
31217
31277
  participantId: textField({ sortable: true, defaultOperator: "iLike" }),
@@ -31238,7 +31298,7 @@ var participantRolesView2 = v2Contract.route({
31238
31298
  description: "List participant role assignments for a token across signing and operations addresses.",
31239
31299
  successDescription: "Paginated token participant role assignments retrieved successfully.",
31240
31300
  tags: [V2_TAG.token]
31241
- }).input(v2Input.paramsQuery(z441.object({
31301
+ }).input(v2Input.paramsQuery(z442.object({
31242
31302
  tokenAddress: ethereumAddress.meta({
31243
31303
  description: "The token contract address",
31244
31304
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31246,7 +31306,7 @@ var participantRolesView2 = v2Contract.route({
31246
31306
  }), TokenParticipantRolesViewV2InputSchema)).output(TokenParticipantRolesViewV2OutputSchema);
31247
31307
 
31248
31308
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
31249
- import { z as z442 } from "zod";
31309
+ import { z as z443 } from "zod";
31250
31310
  var HISTORICAL_BALANCE_KIND_OPTIONS = ["account", "totalSupply"];
31251
31311
  var TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS = {
31252
31312
  account: addressField({ defaultOperator: "eq" }),
@@ -31271,10 +31331,10 @@ var TokenHistoricalBalancesV2InputSchema = createCollectionInputSchema(TOKEN_HIS
31271
31331
  }
31272
31332
  }
31273
31333
  });
31274
- var TokenHistoricalBalanceV2ItemSchema = z442.object({
31275
- id: z442.string().uuid(),
31334
+ var TokenHistoricalBalanceV2ItemSchema = z443.object({
31335
+ id: z443.string().uuid(),
31276
31336
  account: ethereumAddress,
31277
- kind: z442.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
31337
+ kind: z443.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
31278
31338
  sender: ethereumAddress,
31279
31339
  oldBalance: bigDecimal(),
31280
31340
  oldBalanceExact: apiBigInt,
@@ -31283,14 +31343,14 @@ var TokenHistoricalBalanceV2ItemSchema = z442.object({
31283
31343
  blockNumber: apiBigInt,
31284
31344
  blockTimestamp: timestamp(),
31285
31345
  txHash: ethereumHash,
31286
- logIndex: z442.number().int().nonnegative()
31346
+ logIndex: z443.number().int().nonnegative()
31287
31347
  });
31288
31348
  var TokenHistoricalBalancesV2OutputSchema = createPaginatedResponse(TokenHistoricalBalanceV2ItemSchema);
31289
- var strictHistoricalLookup = z442.union([z442.boolean(), z442.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
31349
+ var strictHistoricalLookup = z443.union([z443.boolean(), z443.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
31290
31350
  var historicalTimepoint = apiBigInt.refine((value3) => value3 >= 0n, {
31291
31351
  message: "timepoint must be greater than or equal to 0"
31292
31352
  });
31293
- var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z442.object({
31353
+ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z443.object({
31294
31354
  account: ethereumAddress.meta({
31295
31355
  description: "Holder account to read from the historical-balances feature",
31296
31356
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31304,7 +31364,7 @@ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z442.object({
31304
31364
  examples: [true]
31305
31365
  })
31306
31366
  });
31307
- var TokenHistoricalBalanceAtBlockV2DataSchema = z442.object({
31367
+ var TokenHistoricalBalanceAtBlockV2DataSchema = z443.object({
31308
31368
  account: ethereumAddress,
31309
31369
  balance: bigDecimal(),
31310
31370
  balanceExact: apiBigInt,
@@ -31319,12 +31379,12 @@ var TOKEN_HISTORICAL_HOLDERS_AT_BLOCK_COLLECTION_FIELDS = {
31319
31379
  balance: bigintField({ filterable: false }),
31320
31380
  lastUpdatedAt: dateField({ filterable: false })
31321
31381
  };
31322
- var TokenHistoricalHoldersAtBlockV2InputSchema = z442.object({
31323
- sortBy: z442.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
31324
- sortDirection: z442.enum(["asc", "desc"]).default("desc"),
31325
- offset: z442.coerce.number().int().nonnegative().default(0),
31326
- limit: z442.coerce.number().int().positive().max(200).default(50),
31327
- filters: z442.array(DataTableFilterSchema).default([]),
31382
+ var TokenHistoricalHoldersAtBlockV2InputSchema = z443.object({
31383
+ sortBy: z443.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
31384
+ sortDirection: z443.enum(["asc", "desc"]).default("desc"),
31385
+ offset: z443.coerce.number().int().nonnegative().default(0),
31386
+ limit: z443.coerce.number().int().positive().max(200).default(50),
31387
+ filters: z443.array(DataTableFilterSchema).default([]),
31328
31388
  timepoint: historicalTimepoint.meta({
31329
31389
  description: "Historical feature clock timepoint, expressed as Unix seconds for timestamp-mode tokens",
31330
31390
  examples: ["1767225600"]
@@ -31337,8 +31397,8 @@ var TokenHistoricalHoldersAtBlockV2InputSchema = z442.object({
31337
31397
  var TokenHistoricalHoldersAtBlockV2OutputSchema = createPaginatedResponse(assetBalance());
31338
31398
 
31339
31399
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balance-at-block.schema.ts
31340
- import { z as z443 } from "zod";
31341
- var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z443.object({
31400
+ import { z as z444 } from "zod";
31401
+ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z444.object({
31342
31402
  tokenAddress: ethereumAddress.meta({
31343
31403
  description: "The token contract address",
31344
31404
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31348,13 +31408,13 @@ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z443.object({
31348
31408
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31349
31409
  })
31350
31410
  });
31351
- var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z443.object({
31352
- atBlock: z443.coerce.bigint().positive().meta({
31411
+ var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z444.object({
31412
+ atBlock: z444.coerce.bigint().positive().meta({
31353
31413
  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.",
31354
31414
  examples: ["21040117"]
31355
31415
  })
31356
31416
  });
31357
- var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z443.object({
31417
+ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z444.object({
31358
31418
  tokenAddress: ethereumAddress,
31359
31419
  holderAddress: ethereumAddress,
31360
31420
  balance: bigDecimal(),
@@ -31362,14 +31422,14 @@ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z443.object({
31362
31422
  asOfBlockNumber: apiBigInt,
31363
31423
  asOfBlockTimestamp: timestamp().nullable(),
31364
31424
  asOfTxHash: ethereumHash.nullable(),
31365
- asOfLogIndex: z443.number().int().nonnegative().nullable(),
31425
+ asOfLogIndex: z444.number().int().nonnegative().nullable(),
31366
31426
  requestedBlock: apiBigInt
31367
31427
  });
31368
31428
  var TokenHistoricalBalanceAtBlockByHolderV2OutputSchema = createSingleResponse(TokenHistoricalBalanceAtBlockByHolderV2DataSchema);
31369
31429
 
31370
31430
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fixed-treasury-yield-holder-periods.list.schema.ts
31371
- import { z as z444 } from "zod";
31372
- var TokenFixedTreasuryYieldHolderPeriodsV2InputParamsSchema = z444.object({
31431
+ import { z as z445 } from "zod";
31432
+ var TokenFixedTreasuryYieldHolderPeriodsV2InputParamsSchema = z445.object({
31373
31433
  tokenAddress: ethereumAddress.meta({
31374
31434
  description: "The token contract address",
31375
31435
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31390,11 +31450,11 @@ var TokenFixedTreasuryYieldHolderPeriodsV2InputSchema = createCollectionInputSch
31390
31450
  defaultSort: "periodNumber",
31391
31451
  globalSearch: false
31392
31452
  });
31393
- var TokenFixedTreasuryYieldHolderPeriodRowSchema = z444.object({
31453
+ var TokenFixedTreasuryYieldHolderPeriodRowSchema = z445.object({
31394
31454
  tokenAddress: ethereumAddress,
31395
31455
  featureAddress: ethereumAddress,
31396
31456
  holderAddress: ethereumAddress,
31397
- periodNumber: z444.number().int().nonnegative(),
31457
+ periodNumber: z445.number().int().nonnegative(),
31398
31458
  amount: bigDecimal(),
31399
31459
  amountExact: apiBigInt,
31400
31460
  yieldAmount: bigDecimal(),
@@ -31402,12 +31462,12 @@ var TokenFixedTreasuryYieldHolderPeriodRowSchema = z444.object({
31402
31462
  claimedAtBlock: apiBigInt,
31403
31463
  claimedAt: timestamp(),
31404
31464
  txHash: ethereumHash,
31405
- logIndex: z444.number().int().nonnegative()
31465
+ logIndex: z445.number().int().nonnegative()
31406
31466
  });
31407
31467
  var TokenFixedTreasuryYieldHolderPeriodsV2OutputSchema = createPaginatedResponse(TokenFixedTreasuryYieldHolderPeriodRowSchema);
31408
31468
 
31409
31469
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collections.list.schema.ts
31410
- import { z as z445 } from "zod";
31470
+ import { z as z446 } from "zod";
31411
31471
  var OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "redeem"];
31412
31472
  var TOKEN_TRANSACTION_FEE_COLLECTIONS_COLLECTION_FIELDS = {
31413
31473
  collectedAt: dateField(),
@@ -31420,46 +31480,46 @@ var TokenTransactionFeeCollectionsV2InputSchema = createCollectionInputSchema(TO
31420
31480
  defaultSort: "-collectedAt",
31421
31481
  globalSearch: false
31422
31482
  });
31423
- var TokenTransactionFeeCollectionV2ItemSchema = z445.object({
31424
- id: z445.string().uuid(),
31483
+ var TokenTransactionFeeCollectionV2ItemSchema = z446.object({
31484
+ id: z446.string().uuid(),
31425
31485
  counterpartyAddress: ethereumAddress,
31426
- operationType: z445.enum(OPERATION_TYPE_OPTIONS),
31486
+ operationType: z446.enum(OPERATION_TYPE_OPTIONS),
31427
31487
  feeAmount: bigDecimal(),
31428
31488
  feeAmountExact: apiBigInt,
31429
31489
  blockNumber: apiBigInt,
31430
31490
  blockTimestamp: timestamp(),
31431
31491
  txHash: ethereumHash,
31432
- logIndex: z445.number().int().nonnegative()
31492
+ logIndex: z446.number().int().nonnegative()
31433
31493
  });
31434
31494
  var TokenTransactionFeeCollectionsV2OutputSchema = createPaginatedResponse(TokenTransactionFeeCollectionV2ItemSchema);
31435
31495
 
31436
31496
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collection-payer.schema.ts
31437
- import { z as z446 } from "zod";
31438
- var TokenTransactionFeeCollectionPayerV2InputSchema = z446.object({
31497
+ import { z as z447 } from "zod";
31498
+ var TokenTransactionFeeCollectionPayerV2InputSchema = z447.object({
31439
31499
  payer: ethereumAddress.meta({
31440
31500
  description: "Payer address whose collected fees to summarise.",
31441
31501
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31442
31502
  })
31443
31503
  });
31444
- var TokenTransactionFeeCollectionPayerBreakdownItemSchema = z446.object({
31445
- operationType: z446.enum(OPERATION_TYPE_OPTIONS),
31446
- eventCount: z446.number().int().nonnegative(),
31504
+ var TokenTransactionFeeCollectionPayerBreakdownItemSchema = z447.object({
31505
+ operationType: z447.enum(OPERATION_TYPE_OPTIONS),
31506
+ eventCount: z447.number().int().nonnegative(),
31447
31507
  totalFeeAmount: bigDecimal(),
31448
31508
  totalFeeAmountExact: apiBigInt
31449
31509
  });
31450
- var TokenTransactionFeeCollectionPayerV2OutputSchema = z446.object({
31451
- data: z446.object({
31510
+ var TokenTransactionFeeCollectionPayerV2OutputSchema = z447.object({
31511
+ data: z447.object({
31452
31512
  payer: ethereumAddress,
31453
- totalEvents: z446.number().int().nonnegative(),
31513
+ totalEvents: z447.number().int().nonnegative(),
31454
31514
  totalFeeAmount: bigDecimal(),
31455
31515
  totalFeeAmountExact: apiBigInt,
31456
- breakdown: z446.array(TokenTransactionFeeCollectionPayerBreakdownItemSchema),
31457
- recentEvents: z446.array(TokenTransactionFeeCollectionV2ItemSchema)
31516
+ breakdown: z447.array(TokenTransactionFeeCollectionPayerBreakdownItemSchema),
31517
+ recentEvents: z447.array(TokenTransactionFeeCollectionV2ItemSchema)
31458
31518
  })
31459
31519
  });
31460
31520
 
31461
31521
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-events.list.schema.ts
31462
- import { z as z447 } from "zod";
31522
+ import { z as z448 } from "zod";
31463
31523
  var FEE_ACCRUAL_OPERATION_TYPE_OPTIONS = [...OPERATION_TYPE_OPTIONS, "unknown"];
31464
31524
  var TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS = {
31465
31525
  accruedAt: dateField(),
@@ -31475,56 +31535,56 @@ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_A
31475
31535
  defaultSort: "-accruedAt",
31476
31536
  globalSearch: false
31477
31537
  });
31478
- var TokenFeeAccrualEventV2ItemSchema = z447.object({
31479
- id: z447.uuid(),
31538
+ var TokenFeeAccrualEventV2ItemSchema = z448.object({
31539
+ id: z448.uuid(),
31480
31540
  payer: ethereumAddress,
31481
31541
  fromAddress: ethereumAddress,
31482
31542
  toAddress: ethereumAddress,
31483
- operationType: z447.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
31543
+ operationType: z448.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
31484
31544
  operationAmount: bigDecimal(),
31485
31545
  operationAmountExact: apiBigInt,
31486
- feeBps: z447.number().int().nonnegative(),
31546
+ feeBps: z448.number().int().nonnegative(),
31487
31547
  feeAmount: bigDecimal(),
31488
31548
  feeAmountExact: apiBigInt,
31489
31549
  blockNumber: apiBigInt,
31490
31550
  blockTimestamp: timestamp(),
31491
31551
  eventTimestamp: timestamp(),
31492
31552
  txHash: ethereumHash,
31493
- logIndex: z447.number().int().nonnegative()
31553
+ logIndex: z448.number().int().nonnegative()
31494
31554
  });
31495
31555
  var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
31496
31556
 
31497
31557
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-payer.schema.ts
31498
- import { z as z448 } from "zod";
31499
- var TokenFeeAccrualPayerV2InputSchema = z448.object({
31558
+ import { z as z449 } from "zod";
31559
+ var TokenFeeAccrualPayerV2InputSchema = z449.object({
31500
31560
  payer: ethereumAddress.meta({
31501
31561
  description: "Payer address whose accrued fees to summarise.",
31502
31562
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
31503
31563
  })
31504
31564
  });
31505
- var TokenFeeAccrualPayerBreakdownItemSchema = z448.object({
31506
- operationType: z448.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
31507
- eventCount: z448.number().int().nonnegative(),
31565
+ var TokenFeeAccrualPayerBreakdownItemSchema = z449.object({
31566
+ operationType: z449.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
31567
+ eventCount: z449.number().int().nonnegative(),
31508
31568
  totalOperationAmount: bigDecimal(),
31509
31569
  totalOperationAmountExact: apiBigInt,
31510
31570
  totalFeeAmount: bigDecimal(),
31511
31571
  totalFeeAmountExact: apiBigInt
31512
31572
  });
31513
- var TokenFeeAccrualPayerV2OutputSchema = z448.object({
31514
- data: z448.object({
31573
+ var TokenFeeAccrualPayerV2OutputSchema = z449.object({
31574
+ data: z449.object({
31515
31575
  payer: ethereumAddress,
31516
- totalEvents: z448.number().int().nonnegative(),
31576
+ totalEvents: z449.number().int().nonnegative(),
31517
31577
  totalFeeAmount: bigDecimal(),
31518
31578
  totalFeeAmountExact: apiBigInt,
31519
31579
  totalOperationAmount: bigDecimal(),
31520
31580
  totalOperationAmountExact: apiBigInt,
31521
- breakdown: z448.array(TokenFeeAccrualPayerBreakdownItemSchema),
31522
- recentEvents: z448.array(TokenFeeAccrualEventV2ItemSchema)
31581
+ breakdown: z449.array(TokenFeeAccrualPayerBreakdownItemSchema),
31582
+ recentEvents: z449.array(TokenFeeAccrualEventV2ItemSchema)
31523
31583
  })
31524
31584
  });
31525
31585
 
31526
31586
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
31527
- import { z as z449 } from "zod";
31587
+ import { z as z450 } from "zod";
31528
31588
  var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
31529
31589
  var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
31530
31590
  collectedAt: dateField(),
@@ -31538,22 +31598,22 @@ var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(
31538
31598
  defaultSort: "-collectedAt",
31539
31599
  globalSearch: false
31540
31600
  });
31541
- var TokenExternalFeeCollectionEventV2ItemSchema = z449.object({
31542
- id: z449.uuid(),
31601
+ var TokenExternalFeeCollectionEventV2ItemSchema = z450.object({
31602
+ id: z450.uuid(),
31543
31603
  payer: ethereumAddress,
31544
31604
  feeToken: ethereumAddress,
31545
- operationType: z449.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
31605
+ operationType: z450.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
31546
31606
  feeAmount: bigDecimal(),
31547
31607
  feeAmountExact: apiBigInt,
31548
31608
  blockNumber: apiBigInt,
31549
31609
  blockTimestamp: timestamp(),
31550
31610
  txHash: ethereumHash,
31551
- logIndex: z449.number().int().nonnegative()
31611
+ logIndex: z450.number().int().nonnegative()
31552
31612
  });
31553
31613
  var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
31554
31614
 
31555
31615
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.aum-fee-events.list.schema.ts
31556
- import { z as z450 } from "zod";
31616
+ import { z as z451 } from "zod";
31557
31617
  var TOKEN_AUM_FEE_EVENTS_COLLECTION_FIELDS = {
31558
31618
  collectedAt: dateField(),
31559
31619
  blockNumber: bigintField(),
@@ -31565,8 +31625,8 @@ var TokenAumFeeEventsV2InputSchema = createCollectionInputSchema(TOKEN_AUM_FEE_E
31565
31625
  defaultSort: "-collectedAt",
31566
31626
  globalSearch: false
31567
31627
  });
31568
- var TokenAumFeeEventV2ItemSchema = z450.object({
31569
- id: z450.uuid(),
31628
+ var TokenAumFeeEventV2ItemSchema = z451.object({
31629
+ id: z451.uuid(),
31570
31630
  collector: ethereumAddress,
31571
31631
  recipient: ethereumAddress,
31572
31632
  feeAmount: bigDecimal(),
@@ -31575,12 +31635,12 @@ var TokenAumFeeEventV2ItemSchema = z450.object({
31575
31635
  blockNumber: apiBigInt,
31576
31636
  blockTimestamp: timestamp(),
31577
31637
  txHash: ethereumHash,
31578
- logIndex: z450.number().int().nonnegative()
31638
+ logIndex: z451.number().int().nonnegative()
31579
31639
  });
31580
31640
  var TokenAumFeeEventsV2OutputSchema = createPaginatedResponse(TokenAumFeeEventV2ItemSchema);
31581
31641
 
31582
31642
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.maturity-redemption-events.list.schema.ts
31583
- import { z as z451 } from "zod";
31643
+ import { z as z452 } from "zod";
31584
31644
  var TOKEN_MATURITY_REDEMPTION_EVENTS_COLLECTION_FIELDS = {
31585
31645
  redeemedAt: dateField(),
31586
31646
  blockNumber: bigintField(),
@@ -31592,8 +31652,8 @@ var TokenMaturityRedemptionEventsV2InputSchema = createCollectionInputSchema(TOK
31592
31652
  defaultSort: "-redeemedAt",
31593
31653
  globalSearch: false
31594
31654
  });
31595
- var TokenMaturityRedemptionEventV2ItemSchema = z451.object({
31596
- id: z451.uuid(),
31655
+ var TokenMaturityRedemptionEventV2ItemSchema = z452.object({
31656
+ id: z452.uuid(),
31597
31657
  holder: ethereumAddress,
31598
31658
  featureAddress: ethereumAddress,
31599
31659
  redeemedAmount: bigDecimal(),
@@ -31603,12 +31663,12 @@ var TokenMaturityRedemptionEventV2ItemSchema = z451.object({
31603
31663
  blockNumber: apiBigInt,
31604
31664
  blockTimestamp: timestamp(),
31605
31665
  txHash: ethereumHash,
31606
- logIndex: z451.number().int().nonnegative()
31666
+ logIndex: z452.number().int().nonnegative()
31607
31667
  });
31608
31668
  var TokenMaturityRedemptionEventsV2OutputSchema = createPaginatedResponse(TokenMaturityRedemptionEventV2ItemSchema);
31609
31669
 
31610
31670
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.feature-permit-replay-history.schema.ts
31611
- import { z as z452 } from "zod";
31671
+ import { z as z453 } from "zod";
31612
31672
  var PERMIT_REPLAY_HISTORY_COLLECTION_FIELDS = {
31613
31673
  blockTime: dateField()
31614
31674
  };
@@ -31616,7 +31676,7 @@ var TokenFeaturePermitReplayHistoryV2InputSchema = createCollectionInputSchema(P
31616
31676
  defaultSort: "-blockTime",
31617
31677
  globalSearch: false
31618
31678
  });
31619
- var TokenFeaturePermitReplayHistoryV2ItemSchema = z452.object({
31679
+ var TokenFeaturePermitReplayHistoryV2ItemSchema = z453.object({
31620
31680
  nonce: apiBigInt.meta({
31621
31681
  description: "Per-owner sequence number derived from the count of prior projection rows for the same (chainId, tokenAddress, owner) tuple.",
31622
31682
  examples: ["0"]
@@ -31648,10 +31708,10 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
31648
31708
  var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
31649
31709
 
31650
31710
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.treasury-health.schema.ts
31651
- import { z as z453 } from "zod";
31711
+ import { z as z454 } from "zod";
31652
31712
  var TreasuryHealthInputSchema = TokenReadInputSchema;
31653
- var TreasuryHealthApprovalSchema = z453.object({
31654
- kind: z453.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
31713
+ var TreasuryHealthApprovalSchema = z454.object({
31714
+ kind: z454.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
31655
31715
  description: "Which feature this approval row gates.",
31656
31716
  examples: ["maturity-redemption"]
31657
31717
  }),
@@ -31675,21 +31735,21 @@ var TreasuryHealthApprovalSchema = z453.object({
31675
31735
  description: "Required allowance ceiling for the feature, scaled by denomination asset decimals.",
31676
31736
  examples: ["1000.00"]
31677
31737
  }),
31678
- satisfied: z453.boolean().meta({
31738
+ satisfied: z454.boolean().meta({
31679
31739
  description: "True when the indexed allowance is greater than or equal to the required ceiling.",
31680
31740
  examples: [true, false]
31681
31741
  })
31682
31742
  });
31683
- var TreasuryHealthImplementationSchema = z453.object({
31684
- treasuryIsContract: z453.boolean().nullable().meta({
31743
+ var TreasuryHealthImplementationSchema = z454.object({
31744
+ treasuryIsContract: z454.boolean().nullable().meta({
31685
31745
  description: "Whether the configured treasury address is a contract (`true`), an EOA (`false`), or has not yet been classified by the indexer (`null`).",
31686
31746
  examples: [false, true, null]
31687
31747
  })
31688
31748
  }).nullable().meta({
31689
31749
  description: "Treasury implementation classification. `null` when no maturity / yield feature is attached."
31690
31750
  });
31691
- var TreasuryHealthResponseSchema = z453.object({
31692
- approvals: z453.array(TreasuryHealthApprovalSchema).meta({
31751
+ var TreasuryHealthResponseSchema = z454.object({
31752
+ approvals: z454.array(TreasuryHealthApprovalSchema).meta({
31693
31753
  description: "Per-feature approval rows. Empty when the token has neither a maturity-redemption nor a fixed-treasury-yield feature attached."
31694
31754
  }),
31695
31755
  implementation: TreasuryHealthImplementationSchema,
@@ -31701,11 +31761,11 @@ var TreasuryHealthResponseSchema = z453.object({
31701
31761
  description: "Projected next-period denomination need (next scheduled redemption / unclaimed yield), scaled by denomination asset decimals. Used to set the `yellow` threshold.",
31702
31762
  examples: ["1000.00"]
31703
31763
  }),
31704
- status: z453.enum(["green", "yellow", "red"]).meta({
31764
+ status: z454.enum(["green", "yellow", "red"]).meta({
31705
31765
  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.",
31706
31766
  examples: ["green", "yellow", "red"]
31707
31767
  }),
31708
- reason: z453.string().nullable().meta({
31768
+ reason: z454.string().nullable().meta({
31709
31769
  description: "Human-readable reason for the non-green status. `null` for `green`.",
31710
31770
  examples: ["balance below projected", "approval below ceiling", null]
31711
31771
  }),
@@ -31716,7 +31776,7 @@ var TreasuryHealthResponseSchema = z453.object({
31716
31776
  });
31717
31777
 
31718
31778
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
31719
- import { z as z454 } from "zod";
31779
+ import { z as z455 } from "zod";
31720
31780
  var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
31721
31781
  account: addressField({ defaultOperator: "iLike" }),
31722
31782
  delegate: addressField({ defaultOperator: "iLike" }),
@@ -31730,55 +31790,55 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
31730
31790
  defaultSort: "-delegatedAt",
31731
31791
  globalSearch: false
31732
31792
  });
31733
- var VotingDelegationV2ItemSchema = z454.object({
31734
- id: z454.string().uuid(),
31793
+ var VotingDelegationV2ItemSchema = z455.object({
31794
+ id: z455.string().uuid(),
31735
31795
  delegator: ethereumAddress,
31736
31796
  fromDelegate: ethereumAddress.nullable(),
31737
31797
  toDelegate: ethereumAddress,
31738
31798
  delegatedAt: timestamp(),
31739
31799
  delegatedBlockNumber: apiBigInt,
31740
31800
  delegatedTxHash: ethereumHash,
31741
- delegatedLogIndex: z454.number().int().nonnegative(),
31801
+ delegatedLogIndex: z455.number().int().nonnegative(),
31742
31802
  undelegatedAt: timestamp().nullable(),
31743
31803
  undelegatedBlockNumber: apiBigInt.nullable(),
31744
31804
  undelegatedTxHash: ethereumHash.nullable(),
31745
- undelegatedLogIndex: z454.number().int().nonnegative().nullable(),
31746
- isActive: z454.boolean()
31805
+ undelegatedLogIndex: z455.number().int().nonnegative().nullable(),
31806
+ isActive: z455.boolean()
31747
31807
  });
31748
31808
  var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
31749
31809
 
31750
31810
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-power-distribution.schema.ts
31751
- import { z as z455 } from "zod";
31811
+ import { z as z456 } from "zod";
31752
31812
  var DEFAULT_TOP_N = 50;
31753
31813
  var MAX_TOP_N = 200;
31754
- var VotingPowerDistributionV2InputSchema = z455.object({
31755
- topN: z455.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
31814
+ var VotingPowerDistributionV2InputSchema = z456.object({
31815
+ topN: z456.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
31756
31816
  description: `Number of top holders to return individually (1-${MAX_TOP_N}). Remaining holders aggregate into the "other" bucket.`,
31757
31817
  examples: [DEFAULT_TOP_N]
31758
31818
  })
31759
31819
  });
31760
- var VotingPowerDistributionHolderSchema = z455.object({
31820
+ var VotingPowerDistributionHolderSchema = z456.object({
31761
31821
  account: ethereumAddress,
31762
- votes: z455.string(),
31822
+ votes: z456.string(),
31763
31823
  votesExact: apiBigInt
31764
31824
  });
31765
- var VotingPowerDistributionOtherSchema = z455.object({
31766
- holders: z455.number().int().nonnegative(),
31767
- votes: z455.string(),
31825
+ var VotingPowerDistributionOtherSchema = z456.object({
31826
+ holders: z456.number().int().nonnegative(),
31827
+ votes: z456.string(),
31768
31828
  votesExact: apiBigInt
31769
31829
  });
31770
- var VotingPowerDistributionV2DataSchema = z455.object({
31771
- total: z455.number().int().nonnegative(),
31772
- topN: z455.number().int().nonnegative(),
31773
- totalVotes: z455.string(),
31830
+ var VotingPowerDistributionV2DataSchema = z456.object({
31831
+ total: z456.number().int().nonnegative(),
31832
+ topN: z456.number().int().nonnegative(),
31833
+ totalVotes: z456.string(),
31774
31834
  totalVotesExact: apiBigInt,
31775
- holders: z455.array(VotingPowerDistributionHolderSchema),
31835
+ holders: z456.array(VotingPowerDistributionHolderSchema),
31776
31836
  other: VotingPowerDistributionOtherSchema
31777
31837
  });
31778
31838
  var VotingPowerDistributionV2OutputSchema = createSingleResponse(VotingPowerDistributionV2DataSchema);
31779
31839
 
31780
31840
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
31781
- var read30 = v2Contract.route({
31841
+ var read31 = v2Contract.route({
31782
31842
  method: "GET",
31783
31843
  path: "/tokens/{tokenAddress}",
31784
31844
  description: "Get a token by address.",
@@ -31791,21 +31851,21 @@ var allowance = v2Contract.route({
31791
31851
  description: "Get token allowance for a specific owner/spender pair.",
31792
31852
  successDescription: "Token allowance details retrieved successfully.",
31793
31853
  tags: [V2_TAG.token]
31794
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z456.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
31854
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z457.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
31795
31855
  var holder = v2Contract.route({
31796
31856
  method: "GET",
31797
31857
  path: "/tokens/{tokenAddress}/holder-balances",
31798
31858
  description: "Get a specific token holder's balance information.",
31799
31859
  successDescription: "Token holder balance details retrieved successfully.",
31800
31860
  tags: [V2_TAG.token]
31801
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z456.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
31861
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z457.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
31802
31862
  var holders = v2Contract.route({
31803
31863
  method: "GET",
31804
31864
  path: "/tokens/{tokenAddress}/holders",
31805
31865
  description: "Get token holders and their balances.",
31806
31866
  successDescription: "List of token holders with balance information.",
31807
31867
  tags: [V2_TAG.token]
31808
- }).input(v2Input.paramsQuery(z456.object({
31868
+ }).input(v2Input.paramsQuery(z457.object({
31809
31869
  tokenAddress: ethereumAddress.meta({
31810
31870
  description: "The token contract address",
31811
31871
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31817,7 +31877,7 @@ var actions = v2Contract.route({
31817
31877
  description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31818
31878
  successDescription: "Paginated list of actions targeting the specified token.",
31819
31879
  tags: [V2_TAG.token]
31820
- }).input(v2Input.paramsQuery(z456.object({
31880
+ }).input(v2Input.paramsQuery(z457.object({
31821
31881
  tokenAddress: ethereumAddress.meta({
31822
31882
  description: "The token contract address to filter actions by",
31823
31883
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31829,7 +31889,7 @@ var events2 = v2Contract.route({
31829
31889
  description: "List token events with pagination, filtering, sorting, and faceted counts.",
31830
31890
  successDescription: "Paginated list of token events with metadata and pagination links.",
31831
31891
  tags: [V2_TAG.token]
31832
- }).input(v2Input.paramsQuery(z456.object({
31892
+ }).input(v2Input.paramsQuery(z457.object({
31833
31893
  tokenAddress: ethereumAddress.meta({
31834
31894
  description: "The token contract address",
31835
31895
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -31841,7 +31901,7 @@ var denominationAssets = v2Contract.route({
31841
31901
  description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31842
31902
  successDescription: "Paginated list of denomination assets used by the specified bond.",
31843
31903
  tags: [V2_TAG.token]
31844
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
31904
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
31845
31905
  var compliance = v2Contract.route({
31846
31906
  method: "GET",
31847
31907
  path: "/tokens/{tokenAddress}/compliance-modules",
@@ -31883,7 +31943,7 @@ var transferApprovals = v2Contract.route({
31883
31943
  description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
31884
31944
  successDescription: "List of transfer approvals with their current status.",
31885
31945
  tags: [V2_TAG.compliance]
31886
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
31946
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
31887
31947
  var price = v2Contract.route({
31888
31948
  method: "GET",
31889
31949
  path: "/tokens/{tokenAddress}/price",
@@ -31897,70 +31957,70 @@ var conversionTriggers = v2Contract.route({
31897
31957
  description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31898
31958
  successDescription: "Paginated list of conversion triggers with effective pricing.",
31899
31959
  tags: [V2_TAG.token]
31900
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
31960
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
31901
31961
  var conversionRecords = v2Contract.route({
31902
31962
  method: "GET",
31903
31963
  path: "/tokens/{tokenAddress}/conversion/records",
31904
31964
  description: "List conversion lifecycle records for a token. Includes conversion-minter issuance details when available. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
31905
31965
  successDescription: "Paginated list of conversion records.",
31906
31966
  tags: [V2_TAG.token]
31907
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
31967
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
31908
31968
  var conversionTriggerEvents = v2Contract.route({
31909
31969
  method: "GET",
31910
31970
  path: "/tokens/{tokenAddress}/conversion/events",
31911
31971
  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.",
31912
31972
  successDescription: "Paginated list of conversion trigger lifecycle events.",
31913
31973
  tags: [V2_TAG.token]
31914
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
31974
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
31915
31975
  var convertsTo = v2Contract.route({
31916
31976
  method: "GET",
31917
31977
  path: "/tokens/{tokenAddress}/conversion/converts-to",
31918
31978
  description: "List target tokens that this token has been authorized to convert into. Reads the forward direction of the bidirectional conversion authorization edges.",
31919
31979
  successDescription: "Paginated list of forward conversion authorization edges.",
31920
31980
  tags: [V2_TAG.token]
31921
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
31981
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
31922
31982
  var convertedFrom = v2Contract.route({
31923
31983
  method: "GET",
31924
31984
  path: "/tokens/{tokenAddress}/conversion/converted-from",
31925
31985
  description: "List source tokens that have been authorized to convert into this token. Reads the reverse direction of the bidirectional conversion authorization edges.",
31926
31986
  successDescription: "Paginated list of reverse conversion authorization edges.",
31927
31987
  tags: [V2_TAG.token]
31928
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
31988
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
31929
31989
  var conversionHolderState = v2Contract.route({
31930
31990
  method: "GET",
31931
31991
  path: "/tokens/{tokenAddress}/conversion/holder-state",
31932
31992
  description: "Read holder-specific conversion state from the token's attached conversion feature. Returns null when no conversion feature is attached.",
31933
31993
  successDescription: "Conversion holder state retrieved successfully.",
31934
31994
  tags: [V2_TAG.token]
31935
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z456.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
31995
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z457.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
31936
31996
  var votingDelegations = v2Contract.route({
31937
31997
  method: "GET",
31938
31998
  path: "/tokens/{tokenAddress}/voting-delegations",
31939
31999
  description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
31940
32000
  successDescription: "Paginated list of voting delegation lifecycle rows.",
31941
32001
  tags: [V2_TAG.token]
31942
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
32002
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
31943
32003
  var votingPowerDistribution = v2Contract.route({
31944
32004
  method: "GET",
31945
32005
  path: "/tokens/{tokenAddress}/voting-power/distribution",
31946
32006
  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.",
31947
32007
  successDescription: "Voting-power distribution summary retrieved successfully.",
31948
32008
  tags: [V2_TAG.token]
31949
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
32009
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
31950
32010
  var permitInfo = v2Contract.route({
31951
32011
  method: "GET",
31952
32012
  path: "/tokens/{tokenAddress}/permit-info",
31953
32013
  description: "Read EIP-2612 permit metadata from the token's attached permit feature, including the domain separator and optional owner nonce.",
31954
32014
  successDescription: "Permit feature metadata retrieved successfully.",
31955
32015
  tags: [V2_TAG.token]
31956
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z456.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
32016
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z457.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
31957
32017
  var featurePermitReplayHistory = v2Contract.route({
31958
32018
  method: "GET",
31959
32019
  path: "/tokens/{tokenAddress}/permit/replay-history/{owner}",
31960
32020
  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.",
31961
32021
  successDescription: "Paginated list of permit replay events for the specified owner.",
31962
32022
  tags: [V2_TAG.token]
31963
- }).input(v2Input.paramsQuery(z456.object({
32023
+ }).input(v2Input.paramsQuery(z457.object({
31964
32024
  tokenAddress: TokenReadInputSchema.shape.tokenAddress,
31965
32025
  owner: ethereumAddress.meta({
31966
32026
  description: "Token holder whose permit replay history is being requested.",
@@ -31973,21 +32033,21 @@ var historicalBalances = v2Contract.route({
31973
32033
  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.",
31974
32034
  successDescription: "Paginated list of historical balance checkpoints.",
31975
32035
  tags: [V2_TAG.token]
31976
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
32036
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
31977
32037
  var historicalBalanceAtBlock = v2Contract.route({
31978
32038
  method: "GET",
31979
32039
  path: "/tokens/{tokenAddress}/historical-balances/balance-at-block",
31980
32040
  description: "Read a holder balance and total supply from the token's attached historical-balances feature at a specific feature clock timepoint.",
31981
32041
  successDescription: "Historical balance snapshot retrieved successfully.",
31982
32042
  tags: [V2_TAG.token]
31983
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
32043
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
31984
32044
  var historicalHoldersAtBlock = v2Contract.route({
31985
32045
  method: "GET",
31986
32046
  path: "/tokens/{tokenAddress}/historical-balances/holders-at-block",
31987
32047
  description: "List holder balances read from the token's attached historical-balances feature at a specific feature clock timepoint.",
31988
32048
  successDescription: "Paginated historical holder snapshot retrieved successfully.",
31989
32049
  tags: [V2_TAG.token]
31990
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
32050
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
31991
32051
  var historicalBalanceAtBlockByHolder = v2Contract.route({
31992
32052
  method: "GET",
31993
32053
  path: "/tokens/{tokenAddress}/historical-balances/{holderAddress}",
@@ -32008,49 +32068,49 @@ var transactionFeeCollections = v2Contract.route({
32008
32068
  description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
32009
32069
  successDescription: "Paginated list of transaction-fee collections.",
32010
32070
  tags: [V2_TAG.token]
32011
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
32071
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
32012
32072
  var transactionFeeCollectionPayer = v2Contract.route({
32013
32073
  method: "GET",
32014
32074
  path: "/tokens/{tokenAddress}/transaction-fee/payers/{payer}",
32015
32075
  description: "Per-payer summary of collected transaction fees on a token's transaction-fee feature — totals, per-operation-type breakdown, and the most recent collection events for the payer.",
32016
32076
  successDescription: "Per-payer transaction-fee collection summary.",
32017
32077
  tags: [V2_TAG.token]
32018
- }).input(v2Input.params(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenTransactionFeeCollectionPayerV2InputSchema.shape))).output(TokenTransactionFeeCollectionPayerV2OutputSchema);
32078
+ }).input(v2Input.params(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenTransactionFeeCollectionPayerV2InputSchema.shape))).output(TokenTransactionFeeCollectionPayerV2OutputSchema);
32019
32079
  var feeAccrualEvents = v2Contract.route({
32020
32080
  method: "GET",
32021
32081
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
32022
32082
  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.",
32023
32083
  successDescription: "Paginated list of fee-accrual events.",
32024
32084
  tags: [V2_TAG.token]
32025
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
32085
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
32026
32086
  var feeAccrualPayer = v2Contract.route({
32027
32087
  method: "GET",
32028
32088
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/payers/{payer}",
32029
32089
  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.",
32030
32090
  successDescription: "Per-payer accrual summary.",
32031
32091
  tags: [V2_TAG.token]
32032
- }).input(v2Input.params(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
32092
+ }).input(v2Input.params(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
32033
32093
  var externalFeeCollectionEvents = v2Contract.route({
32034
32094
  method: "GET",
32035
32095
  path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
32036
32096
  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.",
32037
32097
  successDescription: "Paginated list of external-fee collection events.",
32038
32098
  tags: [V2_TAG.token]
32039
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
32099
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
32040
32100
  var aumFeeEvents = v2Contract.route({
32041
32101
  method: "GET",
32042
32102
  path: "/tokens/{tokenAddress}/aum-fee/collection-events",
32043
32103
  description: "List AUM-fee collection events for a token's AUM-fee feature. Each row captures the AUMFeeCollected payload (collector, recipient, fee amount, on-chain timestamp). Supports JSON:API pagination, sorting, and filtering by date / recipient / collector / fee amount.",
32044
32104
  successDescription: "Paginated list of AUM-fee collection events.",
32045
32105
  tags: [V2_TAG.token]
32046
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenAumFeeEventsV2InputSchema)).output(TokenAumFeeEventsV2OutputSchema);
32106
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenAumFeeEventsV2InputSchema)).output(TokenAumFeeEventsV2OutputSchema);
32047
32107
  var maturityRedemptionEvents = v2Contract.route({
32048
32108
  method: "GET",
32049
32109
  path: "/tokens/{tokenAddress}/maturity-redemption/redemption-events",
32050
32110
  description: "List per-holder maturity-redemption `Redeemed` events for a token's maturity-redemption feature. Each row captures the holder, redeemed token amount, denomination-asset payout amount, and block metadata. Filter by holder to render per-holder redemption history. Supports JSON:API pagination, sorting, and filtering.",
32051
32111
  successDescription: "Paginated list of maturity-redemption events.",
32052
32112
  tags: [V2_TAG.token]
32053
- }).input(v2Input.paramsQuery(z456.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenMaturityRedemptionEventsV2InputSchema)).output(TokenMaturityRedemptionEventsV2OutputSchema);
32113
+ }).input(v2Input.paramsQuery(z457.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenMaturityRedemptionEventsV2InputSchema)).output(TokenMaturityRedemptionEventsV2OutputSchema);
32054
32114
  var treasuryHealth = v2Contract.route({
32055
32115
  method: "GET",
32056
32116
  path: "/tokens/{tokenAddress}/treasury/health",
@@ -32059,7 +32119,7 @@ var treasuryHealth = v2Contract.route({
32059
32119
  tags: [V2_TAG.token]
32060
32120
  }).input(v2Input.params(TreasuryHealthInputSchema)).output(createSingleResponse(TreasuryHealthResponseSchema));
32061
32121
  var tokenV2ReadsContract = {
32062
- read: read30,
32122
+ read: read31,
32063
32123
  allowance,
32064
32124
  holder,
32065
32125
  holders,
@@ -32100,7 +32160,7 @@ var tokenV2ReadsContract = {
32100
32160
  };
32101
32161
 
32102
32162
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
32103
- import { z as z457 } from "zod";
32163
+ import { z as z458 } from "zod";
32104
32164
  var statsBondStatus = v2Contract.route({
32105
32165
  method: "GET",
32106
32166
  path: "/tokens/{tokenAddress}/stats/bond-status",
@@ -32121,25 +32181,25 @@ var statsTotalSupply = v2Contract.route({
32121
32181
  description: "Get total supply history statistics for a specific token.",
32122
32182
  successDescription: "Token total supply history statistics.",
32123
32183
  tags: [V2_TAG.tokenStats]
32124
- }).input(v2Input.paramsQuery(z457.object({
32184
+ }).input(v2Input.paramsQuery(z458.object({
32125
32185
  tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
32126
- }), z457.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
32186
+ }), z458.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
32127
32187
  var statsSupplyChanges = v2Contract.route({
32128
32188
  method: "GET",
32129
32189
  path: "/tokens/{tokenAddress}/stats/supply-changes",
32130
32190
  description: "Get supply changes history (minted/burned) statistics for a specific token.",
32131
32191
  successDescription: "Token supply changes history statistics.",
32132
32192
  tags: [V2_TAG.tokenStats]
32133
- }).input(v2Input.paramsQuery(z457.object({
32193
+ }).input(v2Input.paramsQuery(z458.object({
32134
32194
  tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
32135
- }), z457.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
32195
+ }), z458.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
32136
32196
  var statsVolume = v2Contract.route({
32137
32197
  method: "GET",
32138
32198
  path: "/tokens/{tokenAddress}/stats/volume",
32139
32199
  description: "Get total volume history statistics for a specific token.",
32140
32200
  successDescription: "Token total volume history statistics.",
32141
32201
  tags: [V2_TAG.tokenStats]
32142
- }).input(v2Input.paramsQuery(z457.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z457.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
32202
+ }).input(v2Input.paramsQuery(z458.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z458.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
32143
32203
  var statsWalletDistribution = v2Contract.route({
32144
32204
  method: "GET",
32145
32205
  path: "/tokens/{tokenAddress}/stats/wallet-distribution",
@@ -32173,46 +32233,46 @@ var tokenV2StatsContract = {
32173
32233
  };
32174
32234
 
32175
32235
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.contract.ts
32176
- import { z as z461 } from "zod";
32236
+ import { z as z462 } from "zod";
32177
32237
 
32178
32238
  // ../../packages/dalp/api-contract/src/routes/token/topic-schemes/routes/topic-scheme.list.schema.ts
32179
- import { z as z458 } from "zod";
32180
- var TokenTopicSchemeInheritanceLevelSchema = z458.enum(["token", "system", "global"]).meta({
32239
+ import { z as z459 } from "zod";
32240
+ var TokenTopicSchemeInheritanceLevelSchema = z459.enum(["token", "system", "global"]).meta({
32181
32241
  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.",
32182
32242
  examples: ["token"]
32183
32243
  });
32184
- var TokenTopicSchemeSchema = z458.object({
32185
- id: z458.string().meta({
32244
+ var TokenTopicSchemeSchema = z459.object({
32245
+ id: z459.string().meta({
32186
32246
  description: "Synthetic identifier for the topic scheme row (registry + topicId).",
32187
32247
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F#1"]
32188
32248
  }),
32189
- topicId: z458.string().meta({
32249
+ topicId: z459.string().meta({
32190
32250
  description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
32191
32251
  examples: ["1", "100"]
32192
32252
  }),
32193
- name: z458.string().meta({
32253
+ name: z459.string().meta({
32194
32254
  description: "Human-readable topic-scheme name registered on the registry.",
32195
32255
  examples: ["Know Your Customer", "Accredited Investor"]
32196
32256
  }),
32197
- signature: z458.string().meta({
32257
+ signature: z459.string().meta({
32198
32258
  description: "ABI signature describing the claim data shape verified by this scheme.",
32199
32259
  examples: ["(string)", "(uint256,bool)"]
32200
32260
  }),
32201
- registry: z458.object({
32261
+ registry: z459.object({
32202
32262
  id: ethereumAddress.meta({
32203
32263
  description: "Topic Scheme Registry contract address that holds this row.",
32204
32264
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32205
32265
  })
32206
32266
  }),
32207
32267
  inheritanceLevel: TokenTopicSchemeInheritanceLevelSchema,
32208
- isShadowed: z458.boolean().meta({
32268
+ isShadowed: z459.boolean().meta({
32209
32269
  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.",
32210
32270
  examples: [false]
32211
32271
  })
32212
32272
  });
32213
32273
 
32214
32274
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.list.schema.ts
32215
- import { z as z459 } from "zod";
32275
+ import { z as z460 } from "zod";
32216
32276
  var TOKEN_TOPIC_SCHEMES_COLLECTION_FIELDS = {
32217
32277
  topicId: bigintField({ defaultOperator: "eq" }),
32218
32278
  name: textField({ defaultOperator: "iLike" }),
@@ -32224,14 +32284,14 @@ var TokenTopicSchemesV2ListInputSchema = createCollectionInputSchema(TOKEN_TOPIC
32224
32284
  globalSearch: true
32225
32285
  });
32226
32286
  var TokenTopicSchemesV2ListOutputSchema = createPaginatedResponse(TokenTopicSchemeSchema, {
32227
- hasTokenRegistry: z459.boolean().meta({
32287
+ hasTokenRegistry: z460.boolean().meta({
32228
32288
  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."
32229
32289
  })
32230
32290
  });
32231
32291
 
32232
32292
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.mutations.schema.ts
32233
32293
  import { parseAbiParameters } from "viem";
32234
- import { z as z460 } from "zod";
32294
+ import { z as z461 } from "zod";
32235
32295
  function normalizeClaimDataSignature(signature) {
32236
32296
  return `(${signature.trim()})`;
32237
32297
  }
@@ -32245,7 +32305,7 @@ function isAbiTypeList(typeList) {
32245
32305
  return false;
32246
32306
  }
32247
32307
  }
32248
- var ClaimDataSignatureSchema = z460.string().min(1, "Signature is required").superRefine((value3, ctx) => {
32308
+ var ClaimDataSignatureSchema = z461.string().min(1, "Signature is required").superRefine((value3, ctx) => {
32249
32309
  if (value3.length === 0) {
32250
32310
  return;
32251
32311
  }
@@ -32258,7 +32318,7 @@ var ClaimDataSignatureSchema = z460.string().min(1, "Signature is required").sup
32258
32318
  }
32259
32319
  });
32260
32320
  var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
32261
- name: z460.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
32321
+ name: z461.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
32262
32322
  description: "Human-readable name for the token-level topic scheme.",
32263
32323
  examples: ["Custom Compliance", "Asset Origin"]
32264
32324
  }),
@@ -32268,20 +32328,20 @@ var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
32268
32328
  })
32269
32329
  });
32270
32330
  var TokenTopicSchemeCreateOutputSchema = BaseMutationOutputSchema.extend({
32271
- name: z460.string().meta({
32331
+ name: z461.string().meta({
32272
32332
  description: "Name of the created token-level topic scheme.",
32273
32333
  examples: ["Custom Compliance", "Asset Origin"]
32274
32334
  })
32275
32335
  });
32276
- var TokenTopicSchemeDeleteParamsSchema = z460.object({
32277
- topicId: z460.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
32336
+ var TokenTopicSchemeDeleteParamsSchema = z461.object({
32337
+ topicId: z461.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
32278
32338
  description: "Numeric topic id of the token-level scheme to remove (decimal string).",
32279
32339
  examples: ["1", "100"]
32280
32340
  })
32281
32341
  });
32282
32342
  var TokenTopicSchemeDeleteInputSchema = MutationInputSchema;
32283
32343
  var TokenTopicSchemeDeleteOutputSchema = BaseMutationOutputSchema.extend({
32284
- topicId: z460.string().meta({
32344
+ topicId: z461.string().meta({
32285
32345
  description: "Numeric topic id of the removed token-level scheme.",
32286
32346
  examples: ["1", "100"]
32287
32347
  })
@@ -32310,7 +32370,7 @@ var del12 = v2Contract.route({
32310
32370
  description: "Remove a token-specific topic scheme from the token-level Topic Scheme Registry by topic id.",
32311
32371
  successDescription: "Token topic scheme removed successfully.",
32312
32372
  tags: [V2_TAG.claimTopics]
32313
- }).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z461.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
32373
+ }).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z462.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
32314
32374
  var tokenV2TopicSchemesContract = {
32315
32375
  list: list40,
32316
32376
  create: create19,
@@ -32318,54 +32378,54 @@ var tokenV2TopicSchemesContract = {
32318
32378
  };
32319
32379
 
32320
32380
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.contract.ts
32321
- import { z as z465 } from "zod";
32381
+ import { z as z466 } from "zod";
32322
32382
 
32323
32383
  // ../../packages/dalp/api-contract/src/routes/token/trusted-issuers/routes/trusted-issuer.list.schema.ts
32324
- import { z as z462 } from "zod";
32325
- var TokenTrustedIssuerInheritanceLevelSchema = z462.enum(["token", "system", "global"]).meta({
32384
+ import { z as z463 } from "zod";
32385
+ var TokenTrustedIssuerInheritanceLevelSchema = z463.enum(["token", "system", "global"]).meta({
32326
32386
  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.",
32327
32387
  examples: ["token"]
32328
32388
  });
32329
- var TokenTrustedIssuerClaimTopicSchema = z462.object({
32330
- topicId: z462.string().meta({
32389
+ var TokenTrustedIssuerClaimTopicSchema = z463.object({
32390
+ topicId: z463.string().meta({
32331
32391
  description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
32332
32392
  examples: ["1", "100"]
32333
32393
  }),
32334
- name: z462.string().meta({
32394
+ name: z463.string().meta({
32335
32395
  description: "Human-readable topic-scheme name resolved from the token's topic-scheme registry chain.",
32336
32396
  examples: ["Know Your Customer", "Accredited Investor"]
32337
32397
  })
32338
32398
  });
32339
- var TokenTrustedIssuerSchema = z462.object({
32399
+ var TokenTrustedIssuerSchema = z463.object({
32340
32400
  id: ethereumAddress.meta({
32341
32401
  description: "Issuer identity address — the on-chain key for the trusted issuer.",
32342
32402
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32343
32403
  }),
32344
- account: z462.object({
32404
+ account: z463.object({
32345
32405
  id: ethereumAddress.meta({
32346
32406
  description: "Issuer wallet address.",
32347
32407
  examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
32348
32408
  })
32349
32409
  }).nullable().optional().meta({ description: "Identity account associated with the issuer, when resolvable." }),
32350
- claimTopics: z462.array(TokenTrustedIssuerClaimTopicSchema).meta({
32410
+ claimTopics: z463.array(TokenTrustedIssuerClaimTopicSchema).meta({
32351
32411
  description: "Claim topics this issuer is trusted for at its registry tier.",
32352
32412
  examples: [[]]
32353
32413
  }),
32354
- registry: z462.object({
32414
+ registry: z463.object({
32355
32415
  id: ethereumAddress.meta({
32356
32416
  description: "Trusted Issuer Registry contract address that holds this row.",
32357
32417
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32358
32418
  })
32359
32419
  }),
32360
32420
  inheritanceLevel: TokenTrustedIssuerInheritanceLevelSchema,
32361
- isInheritedElsewhere: z462.boolean().meta({
32421
+ isInheritedElsewhere: z463.boolean().meta({
32362
32422
  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.",
32363
32423
  examples: [false]
32364
32424
  })
32365
32425
  });
32366
32426
 
32367
32427
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.list.schema.ts
32368
- import { z as z463 } from "zod";
32428
+ import { z as z464 } from "zod";
32369
32429
  var TOKEN_TRUSTED_ISSUERS_COLLECTION_FIELDS = {
32370
32430
  account: textField({ defaultOperator: "iLike" }),
32371
32431
  source: enumField(["token", "system", "global"], { sortable: false })
@@ -32375,18 +32435,18 @@ var TokenTrustedIssuersV2ListInputSchema = createCollectionInputSchema(TOKEN_TRU
32375
32435
  globalSearch: true
32376
32436
  });
32377
32437
  var TokenTrustedIssuersV2ListOutputSchema = createPaginatedResponse(TokenTrustedIssuerSchema, {
32378
- hasTrustedIssuersRegistry: z463.boolean().meta({
32438
+ hasTrustedIssuersRegistry: z464.boolean().meta({
32379
32439
  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."
32380
32440
  })
32381
32441
  });
32382
32442
 
32383
32443
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.mutations.schema.ts
32384
- import { z as z464 } from "zod";
32444
+ import { z as z465 } from "zod";
32385
32445
  var MAX_UINT2566 = 2n ** 256n - 1n;
32386
32446
  var MAX_CLAIM_TOPIC_IDS = 50;
32387
32447
  var CLAIM_TOPIC_ID_FORMAT_MESSAGE = "Each claim topic id must be a non-negative decimal integer.";
32388
32448
  var CLAIM_TOPIC_ID_RANGE_MESSAGE = "Each claim topic id must fit within uint256.";
32389
- var ClaimTopicIdSchema = z464.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
32449
+ var ClaimTopicIdSchema = z465.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
32390
32450
  if (!/^\d+$/.test(value3)) {
32391
32451
  ctx.addIssue({ code: "custom", message: CLAIM_TOPIC_ID_FORMAT_MESSAGE });
32392
32452
  return;
@@ -32400,7 +32460,7 @@ var TokenTrustedIssuerCreateInputSchema = MutationInputSchema.extend({
32400
32460
  description: "Identity address of the trusted issuer to add to the token-level registry.",
32401
32461
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32402
32462
  }),
32403
- claimTopicIds: z464.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({
32463
+ claimTopicIds: z465.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({
32404
32464
  description: "Decimal-string topic ids the issuer is trusted for, passed as the on-chain uint256[] argument.",
32405
32465
  examples: [["1", "2", "100"]]
32406
32466
  })
@@ -32411,7 +32471,7 @@ var TokenTrustedIssuerCreateOutputSchema = BaseMutationOutputSchema.extend({
32411
32471
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32412
32472
  })
32413
32473
  });
32414
- var TokenTrustedIssuerDeleteParamsSchema = z464.object({
32474
+ var TokenTrustedIssuerDeleteParamsSchema = z465.object({
32415
32475
  issuerAddress: ethereumAddress.meta({
32416
32476
  description: "Identity address of the token-level trusted issuer to remove.",
32417
32477
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -32448,7 +32508,7 @@ var del13 = v2Contract.route({
32448
32508
  description: "Remove a token-specific trusted issuer from the token-level Trusted Issuer Registry by issuer address.",
32449
32509
  successDescription: "Token trusted issuer removed successfully.",
32450
32510
  tags: [V2_TAG.trustedIssuers]
32451
- }).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z465.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
32511
+ }).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z466.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
32452
32512
  var tokenV2TrustedIssuersContract = {
32453
32513
  list: list41,
32454
32514
  create: create20,
@@ -32475,7 +32535,7 @@ var tokenV2Contract = {
32475
32535
  };
32476
32536
 
32477
32537
  // ../../packages/core/validation/src/transaction-request-state.ts
32478
- import { z as z466 } from "zod";
32538
+ import { z as z467 } from "zod";
32479
32539
  var transactionRequestStates = [
32480
32540
  "RECEIVED",
32481
32541
  "QUEUED",
@@ -32490,7 +32550,7 @@ var transactionRequestStates = [
32490
32550
  "CANCELLED"
32491
32551
  ];
32492
32552
  var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
32493
- var TransactionRequestStateSchema = z466.enum(transactionRequestStates).meta({
32553
+ var TransactionRequestStateSchema = z467.enum(transactionRequestStates).meta({
32494
32554
  description: "Current state in the transaction request lifecycle",
32495
32555
  examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
32496
32556
  });
@@ -32532,96 +32592,96 @@ var transactionSubStatuses = [
32532
32592
  "WORKFLOW_BATCH_COMPLETED",
32533
32593
  "WORKFLOW_BATCH_FAILED"
32534
32594
  ];
32535
- var TransactionSubStatusSchema = z466.enum(transactionSubStatuses).meta({
32595
+ var TransactionSubStatusSchema = z467.enum(transactionSubStatuses).meta({
32536
32596
  description: "Detailed sub-status for transaction failures",
32537
32597
  examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
32538
32598
  });
32539
32599
 
32540
32600
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
32541
- import { z as z467 } from "zod";
32542
- var TransactionForceRetryInputSchema = z467.object({
32543
- transactionId: z467.uuid().meta({
32601
+ import { z as z468 } from "zod";
32602
+ var TransactionForceRetryInputSchema = z468.object({
32603
+ transactionId: z468.uuid().meta({
32544
32604
  description: "Queue transaction identifier (UUIDv7) to retry",
32545
32605
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32546
32606
  })
32547
32607
  });
32548
- var TransactionForceRetryBodySchema = z467.object({
32549
- gasPrice: z467.string().optional().meta({
32608
+ var TransactionForceRetryBodySchema = z468.object({
32609
+ gasPrice: z468.string().optional().meta({
32550
32610
  description: "Override gas price in wei (decimal string)",
32551
32611
  examples: ["20000000000"]
32552
32612
  }),
32553
- nonce: z467.number().int().nonnegative().optional().meta({
32613
+ nonce: z468.number().int().nonnegative().optional().meta({
32554
32614
  description: "Override nonce for the retried transaction",
32555
32615
  examples: [42]
32556
32616
  })
32557
32617
  }).default({});
32558
- var TransactionForceRetryResultSchema = z467.object({
32559
- transactionId: z467.uuid().meta({ description: "The requeued transaction ID" }),
32618
+ var TransactionForceRetryResultSchema = z468.object({
32619
+ transactionId: z468.uuid().meta({ description: "The requeued transaction ID" }),
32560
32620
  previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
32561
32621
  status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
32562
32622
  });
32563
32623
  var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
32564
- var TransactionForceFailInputSchema = z467.object({
32565
- transactionId: z467.uuid().meta({
32624
+ var TransactionForceFailInputSchema = z468.object({
32625
+ transactionId: z468.uuid().meta({
32566
32626
  description: "Queue transaction identifier (UUIDv7) to force-fail",
32567
32627
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32568
32628
  })
32569
32629
  });
32570
- var TransactionForceFailBodySchema = z467.object({
32571
- reason: z467.string().min(1).max(1000).meta({
32630
+ var TransactionForceFailBodySchema = z468.object({
32631
+ reason: z468.string().min(1).max(1000).meta({
32572
32632
  description: "Human-readable reason for forcing this transaction to failed state",
32573
32633
  examples: ["Manual intervention: stuck transaction after nonce conflict"]
32574
32634
  })
32575
32635
  });
32576
- var TransactionForceFailResultSchema = z467.object({
32577
- transactionId: z467.uuid().meta({ description: "The force-failed transaction ID" }),
32636
+ var TransactionForceFailResultSchema = z468.object({
32637
+ transactionId: z468.uuid().meta({ description: "The force-failed transaction ID" }),
32578
32638
  previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
32579
32639
  status: transactionRequestState().meta({ description: "New state (FAILED)" }),
32580
- reason: z467.string().meta({ description: "The reason provided for the force-fail" })
32640
+ reason: z468.string().meta({ description: "The reason provided for the force-fail" })
32581
32641
  });
32582
32642
  var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
32583
- var TransactionForceNonceInputSchema = z467.object({
32584
- transactionId: z467.uuid().meta({
32643
+ var TransactionForceNonceInputSchema = z468.object({
32644
+ transactionId: z468.uuid().meta({
32585
32645
  description: "Queue transaction identifier — the nonce is forced on its sender wallet",
32586
32646
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32587
32647
  })
32588
32648
  });
32589
- var TransactionForceNonceBodySchema = z467.object({
32590
- nonce: z467.number().int().nonnegative().meta({
32649
+ var TransactionForceNonceBodySchema = z468.object({
32650
+ nonce: z468.number().int().nonnegative().meta({
32591
32651
  description: "Nonce value to force-set on the sender's nonce tracker",
32592
32652
  examples: [42]
32593
32653
  })
32594
32654
  });
32595
- var TransactionForceNonceResultSchema = z467.object({
32596
- previous: z467.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
32597
- new: z467.number().meta({ description: "New nonce value after force-set" })
32655
+ var TransactionForceNonceResultSchema = z468.object({
32656
+ previous: z468.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
32657
+ new: z468.number().meta({ description: "New nonce value after force-set" })
32598
32658
  });
32599
32659
  var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
32600
32660
 
32601
32661
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
32602
- import { z as z468 } from "zod";
32603
- var TransactionV2CancelInputSchema = z468.object({
32604
- transactionId: z468.uuid().meta({
32662
+ import { z as z469 } from "zod";
32663
+ var TransactionV2CancelInputSchema = z469.object({
32664
+ transactionId: z469.uuid().meta({
32605
32665
  description: "Queue transaction identifier (UUIDv7) to cancel",
32606
32666
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32607
32667
  })
32608
32668
  });
32609
- var TransactionCancelResultSchema = z468.object({
32610
- status: z468.enum(["cancelled", "cancellation_pending", "error"]).meta({
32669
+ var TransactionCancelResultSchema = z469.object({
32670
+ status: z469.enum(["cancelled", "cancellation_pending", "error"]).meta({
32611
32671
  description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
32612
32672
  examples: ["cancelled", "cancellation_pending"]
32613
32673
  }),
32614
- cancelTransactionId: z468.string().optional().meta({
32674
+ cancelTransactionId: z469.string().optional().meta({
32615
32675
  description: "RBF replacement transaction ID when cancellation is pending on-chain"
32616
32676
  }),
32617
- message: z468.string().optional().meta({
32677
+ message: z469.string().optional().meta({
32618
32678
  description: "Human-readable error or status message"
32619
32679
  })
32620
32680
  });
32621
32681
  var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
32622
32682
 
32623
32683
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
32624
- import { z as z469 } from "zod";
32684
+ import { z as z470 } from "zod";
32625
32685
  var TRANSACTION_COLLECTION_FIELDS = {
32626
32686
  status: enumField([...transactionRequestStates]),
32627
32687
  operationType: textField(),
@@ -32634,12 +32694,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
32634
32694
  defaultSort: "createdAt",
32635
32695
  globalSearch: true
32636
32696
  });
32637
- var TransactionListItemSchema = z469.object({
32638
- transactionId: z469.uuid().meta({
32697
+ var TransactionListItemSchema = z470.object({
32698
+ transactionId: z470.uuid().meta({
32639
32699
  description: "Queue transaction identifier (UUIDv7)",
32640
32700
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32641
32701
  }),
32642
- kind: z469.string().meta({
32702
+ kind: z470.string().meta({
32643
32703
  description: "Mutation kind submitted to the queue",
32644
32704
  examples: ["token.create", "token.mint"]
32645
32705
  }),
@@ -32647,19 +32707,19 @@ var TransactionListItemSchema = z469.object({
32647
32707
  description: "Current transaction queue state",
32648
32708
  examples: ["QUEUED", "COMPLETED", "FAILED"]
32649
32709
  }),
32650
- subStatus: z469.string().nullable().meta({
32710
+ subStatus: z470.string().nullable().meta({
32651
32711
  description: "Optional queue sub-status with finer-grained detail",
32652
32712
  examples: ["TIMEOUT", null]
32653
32713
  }),
32654
- fromAddress: z469.string().meta({
32714
+ fromAddress: z470.string().meta({
32655
32715
  description: "Sender wallet address",
32656
32716
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32657
32717
  }),
32658
- chainId: z469.number().int().meta({
32718
+ chainId: z470.number().int().meta({
32659
32719
  description: "Target chain ID",
32660
32720
  examples: [1]
32661
32721
  }),
32662
- transactionHash: z469.string().nullable().meta({
32722
+ transactionHash: z470.string().nullable().meta({
32663
32723
  description: "Primary transaction hash once broadcast",
32664
32724
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
32665
32725
  }),
@@ -32679,19 +32739,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
32679
32739
  var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
32680
32740
 
32681
32741
  // ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
32682
- import { z as z470 } from "zod";
32683
- var TransactionStatusInputSchema = z470.object({
32684
- transactionId: z470.uuid().meta({
32742
+ import { z as z471 } from "zod";
32743
+ var TransactionStatusInputSchema = z471.object({
32744
+ transactionId: z471.uuid().meta({
32685
32745
  description: "Queue transaction identifier (UUIDv7)",
32686
32746
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32687
32747
  })
32688
32748
  });
32689
- var TransactionStatusOutputSchema = z470.object({
32690
- transactionId: z470.uuid().meta({
32749
+ var TransactionStatusOutputSchema = z471.object({
32750
+ transactionId: z471.uuid().meta({
32691
32751
  description: "Queue transaction identifier (UUIDv7)",
32692
32752
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
32693
32753
  }),
32694
- kind: z470.string().meta({
32754
+ kind: z471.string().meta({
32695
32755
  description: "Mutation kind submitted to the queue",
32696
32756
  examples: ["token.create", "token.mint"]
32697
32757
  }),
@@ -32699,23 +32759,23 @@ var TransactionStatusOutputSchema = z470.object({
32699
32759
  description: "Current transaction queue state",
32700
32760
  examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
32701
32761
  }),
32702
- subStatus: z470.string().nullable().meta({
32762
+ subStatus: z471.string().nullable().meta({
32703
32763
  description: "Optional queue sub-status with finer-grained progress or failure detail",
32704
32764
  examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
32705
32765
  }),
32706
- transactionHash: z470.string().nullable().meta({
32766
+ transactionHash: z471.string().nullable().meta({
32707
32767
  description: "Primary transaction hash once broadcast",
32708
32768
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
32709
32769
  }),
32710
- transactionHashes: z470.array(z470.string()).optional().meta({
32770
+ transactionHashes: z471.array(z471.string()).optional().meta({
32711
32771
  description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
32712
32772
  examples: [["0xabc...", "0xdef..."]]
32713
32773
  }),
32714
- blockNumber: z470.string().nullable().meta({
32774
+ blockNumber: z471.string().nullable().meta({
32715
32775
  description: "Confirmed block number when available",
32716
32776
  examples: ["12345678", null]
32717
32777
  }),
32718
- errorMessage: z470.string().nullable().meta({
32778
+ errorMessage: z471.string().nullable().meta({
32719
32779
  description: "Human-readable error or timeout detail when available",
32720
32780
  examples: ["Execution reverted", "Receipt not found after repeated checks", null]
32721
32781
  }),
@@ -32734,7 +32794,7 @@ var TransactionV2StatusInputSchema = TransactionStatusInputSchema;
32734
32794
  var TransactionV2StatusOutputSchema = createSingleResponse(TransactionStatusOutputSchema);
32735
32795
 
32736
32796
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.contract.ts
32737
- var read31 = v2Contract.route({
32797
+ var read32 = v2Contract.route({
32738
32798
  method: "GET",
32739
32799
  path: "/blockchain-transactions/{transactionHash}",
32740
32800
  description: "Get transaction details by hash including receipt data. Receipt is null for pending transactions.",
@@ -32784,7 +32844,7 @@ var forceNonce = v2Contract.route({
32784
32844
  tags: [V2_TAG.transactionAdmin]
32785
32845
  }).input(v2Input.paramsBody(TransactionForceNonceInputSchema, TransactionForceNonceBodySchema)).output(TransactionV2ForceNonceOutputSchema);
32786
32846
  var transactionV2Contract = {
32787
- read: read31,
32847
+ read: read32,
32788
32848
  status: status4,
32789
32849
  list: list43,
32790
32850
  cancel: cancel3,
@@ -32794,12 +32854,12 @@ var transactionV2Contract = {
32794
32854
  };
32795
32855
 
32796
32856
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
32797
- import { z as z476 } from "zod";
32857
+ import { z as z477 } from "zod";
32798
32858
 
32799
32859
  // ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
32800
- import { z as z471 } from "zod";
32801
- var UserReadByNationalIdInputSchema = z471.object({
32802
- nationalId: z471.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
32860
+ import { z as z472 } from "zod";
32861
+ var UserReadByNationalIdInputSchema = z472.object({
32862
+ nationalId: z472.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
32803
32863
  });
32804
32864
 
32805
32865
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
@@ -32817,13 +32877,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
32817
32877
  var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
32818
32878
 
32819
32879
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
32820
- import { z as z472 } from "zod";
32821
- var TokenAssetV2Schema = z472.object({
32880
+ import { z as z473 } from "zod";
32881
+ var TokenAssetV2Schema = z473.object({
32822
32882
  id: ethereumAddress.meta({
32823
32883
  description: "The token contract address",
32824
32884
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
32825
32885
  }),
32826
- name: z472.string().meta({
32886
+ name: z473.string().meta({
32827
32887
  description: "The token name",
32828
32888
  examples: ["Bond Token", "Equity Share"]
32829
32889
  }),
@@ -32843,19 +32903,19 @@ var TokenAssetV2Schema = z472.object({
32843
32903
  description: "The total supply of the token (raw on-chain uint256)",
32844
32904
  examples: ["1000000000000000000000", "101000000000000000000000000"]
32845
32905
  }),
32846
- bond: z472.object({
32847
- isMatured: z472.boolean().meta({
32906
+ bond: z473.object({
32907
+ isMatured: z473.boolean().meta({
32848
32908
  description: "Whether the bond is matured",
32849
32909
  examples: [true, false]
32850
32910
  })
32851
32911
  }).optional().nullable().meta({ description: "The bond details", examples: [] }),
32852
- yield: z472.object({
32853
- schedule: z472.object({
32912
+ yield: z473.object({
32913
+ schedule: z473.object({
32854
32914
  id: ethereumAddress.meta({
32855
32915
  description: "The yield schedule contract address",
32856
32916
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
32857
32917
  }),
32858
- denominationAsset: z472.object({
32918
+ denominationAsset: z473.object({
32859
32919
  id: ethereumAddress.meta({
32860
32920
  description: "The denomination asset contract address",
32861
32921
  examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
@@ -32875,8 +32935,8 @@ var TokenAssetV2Schema = z472.object({
32875
32935
  }).nullable().meta({ description: "The yield schedule details", examples: [] })
32876
32936
  }).nullable().meta({ description: "The yield details", examples: [] })
32877
32937
  });
32878
- var UserAssetBalanceV2ItemSchema = z472.object({
32879
- id: z472.uuid().meta({
32938
+ var UserAssetBalanceV2ItemSchema = z473.object({
32939
+ id: z473.uuid().meta({
32880
32940
  description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
32881
32941
  examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
32882
32942
  }),
@@ -32896,7 +32956,7 @@ var UserAssetBalanceV2ItemSchema = z472.object({
32896
32956
  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.",
32897
32957
  examples: ["5.00", null]
32898
32958
  }),
32899
- priceInBaseCurrencyReliable: z472.boolean().meta({
32959
+ priceInBaseCurrencyReliable: z473.boolean().meta({
32900
32960
  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.",
32901
32961
  examples: [true, false]
32902
32962
  }),
@@ -32904,7 +32964,7 @@ var UserAssetBalanceV2ItemSchema = z472.object({
32904
32964
  description: "The token details",
32905
32965
  examples: []
32906
32966
  }),
32907
- metadataValues: z472.record(z472.string(), z472.string()).optional().meta({
32967
+ metadataValues: z473.record(z473.string(), z473.string()).optional().meta({
32908
32968
  description: "Subset of token metadata values relevant to the current groupBy/filter request. Only populated for keys named by groupBy and any active filter[metadata.<key>]."
32909
32969
  })
32910
32970
  });
@@ -32920,9 +32980,9 @@ var BaseUserAssetsInputSchema = createCollectionInputSchema(USER_ASSETS_COLLECTI
32920
32980
  defaultSort: "-balance",
32921
32981
  globalSearch: true
32922
32982
  });
32923
- var UserAssetsV2ListInputSchema = z472.preprocess(liftMetadataWireFilters, z472.intersection(BaseUserAssetsInputSchema, MetadataGroupingOverlaySchema));
32983
+ var UserAssetsV2ListInputSchema = z473.preprocess(liftMetadataWireFilters, z473.intersection(BaseUserAssetsInputSchema, MetadataGroupingOverlaySchema));
32924
32984
  var UserAssetsV2ListOutputSchema = createPaginatedResponse(UserAssetBalanceV2ItemSchema, {
32925
- groups: z472.array(MetadataGroupSummarySchema).optional().meta({
32985
+ groups: z473.array(MetadataGroupSummarySchema).optional().meta({
32926
32986
  description: "Per-group aggregate summaries for the wallet's filtered balance set; present only when groupBy is set on the request."
32927
32987
  }),
32928
32988
  groupBy: MetadataGroupByAxisSchema.optional().meta({
@@ -32959,10 +33019,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
32959
33019
  var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
32960
33020
 
32961
33021
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
32962
- import { z as z475 } from "zod";
33022
+ import { z as z476 } from "zod";
32963
33023
 
32964
33024
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
32965
- import { z as z473 } from "zod";
33025
+ import { z as z474 } from "zod";
32966
33026
  var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
32967
33027
  fileName: textField(),
32968
33028
  documentType: enumField(kycDocumentTypes, { facetable: true }),
@@ -32973,19 +33033,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
32973
33033
  var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
32974
33034
  defaultSort: "uploadedAt"
32975
33035
  });
32976
- var KycProfileVersionDocumentsV2ListItemSchema = z473.object({
32977
- id: z473.string(),
33036
+ var KycProfileVersionDocumentsV2ListItemSchema = z474.object({
33037
+ id: z474.string(),
32978
33038
  documentType: kycDocumentType(),
32979
- fileName: z473.string(),
32980
- fileSize: z473.number(),
32981
- mimeType: z473.string(),
33039
+ fileName: z474.string(),
33040
+ fileSize: z474.number(),
33041
+ mimeType: z474.string(),
32982
33042
  uploadedAt: timestamp(),
32983
- uploadedBy: z473.string().nullable()
33043
+ uploadedBy: z474.string().nullable()
32984
33044
  });
32985
33045
  var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
32986
33046
 
32987
33047
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
32988
- import { z as z474 } from "zod";
33048
+ import { z as z475 } from "zod";
32989
33049
  var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
32990
33050
  var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
32991
33051
  var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
@@ -32998,21 +33058,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
32998
33058
  var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
32999
33059
  defaultSort: "versionNumber"
33000
33060
  });
33001
- var KycProfileVersionsV2ListItemSchema = z474.object({
33002
- id: z474.string(),
33003
- versionNumber: z474.number(),
33061
+ var KycProfileVersionsV2ListItemSchema = z475.object({
33062
+ id: z475.string(),
33063
+ versionNumber: z475.number(),
33004
33064
  status: kycVersionStatus(),
33005
33065
  createdAt: timestamp(),
33006
- createdBy: z474.string().nullable(),
33066
+ createdBy: z475.string().nullable(),
33007
33067
  submittedAt: timestamp().nullable(),
33008
- submittedBy: z474.string().nullable(),
33068
+ submittedBy: z475.string().nullable(),
33009
33069
  reviewedAt: timestamp().nullable(),
33010
- reviewedBy: z474.string().nullable(),
33011
- reviewOutcome: z474.enum(KYC_REVIEW_OUTCOMES).nullable(),
33012
- isDraft: z474.boolean(),
33013
- isUnderReview: z474.boolean(),
33014
- isApproved: z474.boolean(),
33015
- isCurrent: z474.boolean()
33070
+ reviewedBy: z475.string().nullable(),
33071
+ reviewOutcome: z475.enum(KYC_REVIEW_OUTCOMES).nullable(),
33072
+ isDraft: z475.boolean(),
33073
+ isUnderReview: z475.boolean(),
33074
+ isApproved: z475.boolean(),
33075
+ isCurrent: z475.boolean()
33016
33076
  });
33017
33077
  var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
33018
33078
 
@@ -33030,14 +33090,14 @@ var versionsList = v2Contract.route({
33030
33090
  description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
33031
33091
  successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
33032
33092
  tags: [V2_TAG.userKyc]
33033
- }).input(v2Input.paramsQuery(z475.object({ userId: z475.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
33093
+ }).input(v2Input.paramsQuery(z476.object({ userId: z476.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
33034
33094
  var versionsCreate = v2Contract.route({
33035
33095
  method: "POST",
33036
33096
  path: "/kyc-profiles/{userId}/versions",
33037
33097
  description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
33038
33098
  successDescription: "KYC profile version created successfully.",
33039
33099
  tags: [V2_TAG.userKyc]
33040
- }).input(v2Input.paramsBody(z475.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
33100
+ }).input(v2Input.paramsBody(z476.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
33041
33101
  var versionRead = v2Contract.route({
33042
33102
  method: "GET",
33043
33103
  path: "/kyc-profile-versions/{versionId}",
@@ -33051,7 +33111,7 @@ var versionUpdate = v2Contract.route({
33051
33111
  description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
33052
33112
  successDescription: "KYC profile version updated successfully.",
33053
33113
  tags: [V2_TAG.userKyc]
33054
- }).input(v2Input.paramsBody(z475.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
33114
+ }).input(v2Input.paramsBody(z476.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
33055
33115
  var versionSubmit = v2Contract.route({
33056
33116
  method: "POST",
33057
33117
  path: "/kyc-profile-versions/{versionId}/submissions",
@@ -33065,28 +33125,28 @@ var versionApprove = v2Contract.route({
33065
33125
  description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
33066
33126
  successDescription: "KYC profile version approved.",
33067
33127
  tags: [V2_TAG.userKyc]
33068
- }).input(v2Input.paramsBody(z475.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
33128
+ }).input(v2Input.paramsBody(z476.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
33069
33129
  var versionReject = v2Contract.route({
33070
33130
  method: "POST",
33071
33131
  path: "/kyc-profile-versions/{versionId}/rejections",
33072
33132
  description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
33073
33133
  successDescription: "KYC profile version rejected.",
33074
33134
  tags: [V2_TAG.userKyc]
33075
- }).input(v2Input.paramsBody(z475.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
33135
+ }).input(v2Input.paramsBody(z476.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
33076
33136
  var versionRequestUpdate = v2Contract.route({
33077
33137
  method: "POST",
33078
33138
  path: "/kyc-profile-versions/{versionId}/update-requests",
33079
33139
  description: "Request changes on a KYC version under review. Creates an action request for the user.",
33080
33140
  successDescription: "Update request created successfully.",
33081
33141
  tags: [V2_TAG.userKyc]
33082
- }).input(v2Input.paramsBody(z475.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
33142
+ }).input(v2Input.paramsBody(z476.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
33083
33143
  var documentsList = v2Contract.route({
33084
33144
  method: "GET",
33085
33145
  path: "/kyc-profile-versions/{versionId}/documents",
33086
33146
  description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
33087
33147
  successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
33088
33148
  tags: [V2_TAG.userKyc]
33089
- }).input(v2Input.paramsQuery(z475.object({ versionId: z475.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
33149
+ }).input(v2Input.paramsQuery(z476.object({ versionId: z476.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
33090
33150
  var documentsDelete = v2Contract.route({
33091
33151
  method: "DELETE",
33092
33152
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
@@ -33100,7 +33160,7 @@ var documentsConfirmUpload = v2Contract.route({
33100
33160
  description: "Upload a KYC document through DAPI so the payload is encrypted before object storage.",
33101
33161
  successDescription: "Document uploaded successfully.",
33102
33162
  tags: [V2_TAG.userKyc]
33103
- }).input(v2Input.paramsBody(z475.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
33163
+ }).input(v2Input.paramsBody(z476.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
33104
33164
  var documentsGetDownloadUrl = v2Contract.route({
33105
33165
  method: "POST",
33106
33166
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
@@ -33177,14 +33237,14 @@ var readByUserId2 = v2Contract.route({
33177
33237
  description: "Read a single user by their internal database ID.",
33178
33238
  successDescription: "User retrieved successfully.",
33179
33239
  tags: [V2_TAG.user]
33180
- }).input(v2Input.params(z476.object({ userId: z476.string() }))).output(createSingleResponse(UserReadOutputSchema));
33240
+ }).input(v2Input.params(z477.object({ userId: z477.string() }))).output(createSingleResponse(UserReadOutputSchema));
33181
33241
  var readByWallet3 = v2Contract.route({
33182
33242
  method: "GET",
33183
33243
  path: "/wallets/{wallet}/user",
33184
33244
  description: "Read a single user by their Ethereum wallet address.",
33185
33245
  successDescription: "User retrieved successfully.",
33186
33246
  tags: [V2_TAG.user]
33187
- }).input(v2Input.params(z476.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
33247
+ }).input(v2Input.params(z477.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
33188
33248
  var readByNationalId = v2Contract.route({
33189
33249
  method: "GET",
33190
33250
  path: "/national-ids/{nationalId}/user",
@@ -33293,30 +33353,30 @@ var userV2Contract = {
33293
33353
  };
33294
33354
 
33295
33355
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
33296
- import { z as z477 } from "zod";
33297
- var WebhooksV2ChainOfCustodyInputSchema = z477.object({
33298
- evtId: z477.string().trim().min(1)
33299
- });
33300
- var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z477.object({
33301
- evtId: z477.string(),
33302
- hops: z477.array(z477.object({
33303
- stage: z477.string(),
33304
- contentHash: z477.string(),
33305
- signedBy: z477.string().optional(),
33306
- recordedAt: z477.coerce.date()
33356
+ import { z as z478 } from "zod";
33357
+ var WebhooksV2ChainOfCustodyInputSchema = z478.object({
33358
+ evtId: z478.string().trim().min(1)
33359
+ });
33360
+ var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z478.object({
33361
+ evtId: z478.string(),
33362
+ hops: z478.array(z478.object({
33363
+ stage: z478.string(),
33364
+ contentHash: z478.string(),
33365
+ signedBy: z478.string().optional(),
33366
+ recordedAt: z478.coerce.date()
33307
33367
  })),
33308
- merkleRoot: z477.string(),
33309
- platformSignature: z477.string()
33368
+ merkleRoot: z478.string(),
33369
+ platformSignature: z478.string()
33310
33370
  }));
33311
33371
 
33312
33372
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
33313
- import { z as z479 } from "zod";
33373
+ import { z as z480 } from "zod";
33314
33374
 
33315
33375
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
33316
- import { z as z478 } from "zod";
33317
- var WebhookPayloadShapeSchema = z478.enum(["thin", "fat"]);
33318
- var WebhookBreakerStateSchema = z478.enum(["closed", "half_open", "open"]);
33319
- var WebhookDeliveryFailureClassSchema = z478.enum([
33376
+ import { z as z479 } from "zod";
33377
+ var WebhookPayloadShapeSchema = z479.enum(["thin", "fat"]);
33378
+ var WebhookBreakerStateSchema = z479.enum(["closed", "half_open", "open"]);
33379
+ var WebhookDeliveryFailureClassSchema = z479.enum([
33320
33380
  "DNS_FAIL",
33321
33381
  "TLS_FAIL",
33322
33382
  "CONNECT_TIMEOUT",
@@ -33328,35 +33388,35 @@ var WebhookDeliveryFailureClassSchema = z478.enum([
33328
33388
  "RECEIPT_INVALID_SIG",
33329
33389
  "RECEIPT_HASH_MISMATCH"
33330
33390
  ]);
33331
- var WebhookFinalityStateSchema = z478.enum(["pending", "provisional", "final", "retracted", "recalled"]);
33332
- var WebhookSigningSecretStatusSchema = z478.enum(["active", "previous", "revoked"]);
33333
- var WebhookFatEventsAcknowledgmentSchema = z478.object({
33334
- acknowledgedAt: z478.coerce.date(),
33335
- acknowledgedByUserId: z478.string(),
33336
- fieldsAcknowledged: z478.array(z478.string())
33337
- });
33338
- var WebhookEndpointSchema = z478.object({
33339
- id: z478.uuid(),
33340
- tenantId: z478.string(),
33341
- systemId: z478.string(),
33342
- url: z478.url(),
33343
- displayName: z478.string().nullable(),
33344
- subscriptions: z478.array(z478.string()),
33391
+ var WebhookFinalityStateSchema = z479.enum(["pending", "provisional", "final", "retracted", "recalled"]);
33392
+ var WebhookSigningSecretStatusSchema = z479.enum(["active", "previous", "revoked"]);
33393
+ var WebhookFatEventsAcknowledgmentSchema = z479.object({
33394
+ acknowledgedAt: z479.coerce.date(),
33395
+ acknowledgedByUserId: z479.string(),
33396
+ fieldsAcknowledged: z479.array(z479.string())
33397
+ });
33398
+ var WebhookEndpointSchema = z479.object({
33399
+ id: z479.uuid(),
33400
+ tenantId: z479.string(),
33401
+ systemId: z479.string(),
33402
+ url: z479.url(),
33403
+ displayName: z479.string().nullable(),
33404
+ subscriptions: z479.array(z479.string()),
33345
33405
  defaultPayloadShape: WebhookPayloadShapeSchema,
33346
- counterSignedReceipts: z478.boolean(),
33406
+ counterSignedReceipts: z479.boolean(),
33347
33407
  breakerState: WebhookBreakerStateSchema,
33348
- disabledAt: z478.coerce.date().nullable(),
33349
- disabledReason: z478.string().nullable(),
33408
+ disabledAt: z479.coerce.date().nullable(),
33409
+ disabledReason: z479.string().nullable(),
33350
33410
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
33351
- secret: z478.object({
33352
- activeVersion: z478.number().int().positive().nullable(),
33353
- previousVersion: z478.number().int().positive().nullable(),
33354
- previousRevokesAt: z478.coerce.date().nullable(),
33355
- lastUsedAt: z478.coerce.date().nullable()
33411
+ secret: z479.object({
33412
+ activeVersion: z479.number().int().positive().nullable(),
33413
+ previousVersion: z479.number().int().positive().nullable(),
33414
+ previousRevokesAt: z479.coerce.date().nullable(),
33415
+ lastUsedAt: z479.coerce.date().nullable()
33356
33416
  }),
33357
- createdAt: z478.coerce.date(),
33358
- updatedAt: z478.coerce.date(),
33359
- createdByUserId: z478.string().nullable()
33417
+ createdAt: z479.coerce.date(),
33418
+ updatedAt: z479.coerce.date(),
33419
+ createdByUserId: z479.string().nullable()
33360
33420
  });
33361
33421
  var WEBHOOKS_COLLECTION_FIELDS = {
33362
33422
  displayName: textField(),
@@ -33375,44 +33435,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
33375
33435
  var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
33376
33436
 
33377
33437
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
33378
- var WebhooksV2CreateInputSchema = z479.object({
33379
- url: z479.url(),
33380
- displayName: z479.string().trim().min(1).max(200).optional(),
33381
- subscriptions: z479.array(z479.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
33438
+ var WebhooksV2CreateInputSchema = z480.object({
33439
+ url: z480.url(),
33440
+ displayName: z480.string().trim().min(1).max(200).optional(),
33441
+ subscriptions: z480.array(z480.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
33382
33442
  defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
33383
- counterSignedReceipts: z479.boolean().default(false)
33443
+ counterSignedReceipts: z480.boolean().default(false)
33384
33444
  });
33385
33445
  var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
33386
- signingSecret: z479.string().nullable()
33446
+ signingSecret: z480.string().nullable()
33387
33447
  });
33388
33448
  var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
33389
33449
 
33390
33450
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
33391
- import { z as z480 } from "zod";
33392
- var WebhooksV2DeleteInputSchema = z480.object({
33393
- id: z480.uuid()
33451
+ import { z as z481 } from "zod";
33452
+ var WebhooksV2DeleteInputSchema = z481.object({
33453
+ id: z481.uuid()
33394
33454
  });
33395
33455
  var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
33396
33456
 
33397
33457
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
33398
- import { z as z481 } from "zod";
33399
- var WebhookDeliveryStatusSchema = z481.enum(["pending", "delivered", "failed"]);
33400
- var WebhookDeliverySchema = z481.object({
33401
- id: z481.uuid(),
33402
- eventOutboxId: z481.uuid(),
33403
- endpointId: z481.uuid(),
33404
- tenantId: z481.string(),
33405
- evtId: z481.string(),
33406
- eventType: z481.string(),
33407
- attemptN: z481.number().int().nonnegative(),
33408
- attemptedAt: z481.coerce.date(),
33409
- responseStatus: z481.number().int().nullable(),
33458
+ import { z as z482 } from "zod";
33459
+ var WebhookDeliveryStatusSchema = z482.enum(["pending", "delivered", "failed"]);
33460
+ var WebhookDeliverySchema = z482.object({
33461
+ id: z482.uuid(),
33462
+ eventOutboxId: z482.uuid(),
33463
+ endpointId: z482.uuid(),
33464
+ tenantId: z482.string(),
33465
+ evtId: z482.string(),
33466
+ eventType: z482.string(),
33467
+ attemptN: z482.number().int().nonnegative(),
33468
+ attemptedAt: z482.coerce.date(),
33469
+ responseStatus: z482.number().int().nullable(),
33410
33470
  failureClass: WebhookDeliveryFailureClassSchema.nullable(),
33411
33471
  status: WebhookDeliveryStatusSchema,
33412
- deliveredAt: z481.coerce.date().nullable(),
33413
- isReplay: z481.boolean(),
33414
- isTest: z481.boolean(),
33415
- traceId: z481.string().nullable()
33472
+ deliveredAt: z482.coerce.date().nullable(),
33473
+ isReplay: z482.boolean(),
33474
+ isTest: z482.boolean(),
33475
+ traceId: z482.string().nullable()
33416
33476
  });
33417
33477
  var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
33418
33478
  status: enumField(["pending", "delivered", "failed"]),
@@ -33438,167 +33498,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
33438
33498
  defaultSort: "attemptedAt",
33439
33499
  globalSearch: false
33440
33500
  });
33441
- var WebhooksV2DeliveriesListParamsSchema = z481.object({
33442
- id: z481.uuid()
33501
+ var WebhooksV2DeliveriesListParamsSchema = z482.object({
33502
+ id: z482.uuid()
33443
33503
  });
33444
33504
  var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
33445
33505
 
33446
33506
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
33447
- import { z as z482 } from "zod";
33448
- var WebhooksV2DeliveriesReadInputSchema = z482.object({
33449
- id: z482.uuid(),
33450
- deliveryId: z482.uuid()
33507
+ import { z as z483 } from "zod";
33508
+ var WebhooksV2DeliveriesReadInputSchema = z483.object({
33509
+ id: z483.uuid(),
33510
+ deliveryId: z483.uuid()
33451
33511
  });
33452
33512
  var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
33453
- request: z482.object({
33454
- payload: z482.record(z482.string(), z482.json()),
33455
- signedHeaders: z482.record(z482.string(), z482.union([z482.string(), z482.array(z482.string())])),
33456
- signedStringPreview: z482.string()
33513
+ request: z483.object({
33514
+ payload: z483.record(z483.string(), z483.json()),
33515
+ signedHeaders: z483.record(z483.string(), z483.union([z483.string(), z483.array(z483.string())])),
33516
+ signedStringPreview: z483.string()
33457
33517
  }),
33458
- response: z482.object({
33459
- headers: z482.record(z482.string(), z482.union([z482.string(), z482.array(z482.string())])).nullable(),
33460
- body: z482.string().nullable(),
33461
- timings: z482.object({
33462
- dnsMs: z482.number().int().nullable(),
33463
- tlsMs: z482.number().int().nullable(),
33464
- connectMs: z482.number().int().nullable(),
33465
- ttfbMs: z482.number().int().nullable()
33518
+ response: z483.object({
33519
+ headers: z483.record(z483.string(), z483.union([z483.string(), z483.array(z483.string())])).nullable(),
33520
+ body: z483.string().nullable(),
33521
+ timings: z483.object({
33522
+ dnsMs: z483.number().int().nullable(),
33523
+ tlsMs: z483.number().int().nullable(),
33524
+ connectMs: z483.number().int().nullable(),
33525
+ ttfbMs: z483.number().int().nullable()
33466
33526
  })
33467
33527
  })
33468
33528
  });
33469
33529
  var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
33470
33530
 
33471
33531
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
33472
- import { z as z483 } from "zod";
33473
- var WebhooksV2DeliveriesRetryInputSchema = z483.object({
33474
- id: z483.uuid(),
33475
- deliveryId: z483.uuid()
33532
+ import { z as z484 } from "zod";
33533
+ var WebhooksV2DeliveriesRetryInputSchema = z484.object({
33534
+ id: z484.uuid(),
33535
+ deliveryId: z484.uuid()
33476
33536
  });
33477
- var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z483.object({
33478
- deliveryId: z483.uuid(),
33479
- scheduled: z483.boolean()
33537
+ var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z484.object({
33538
+ deliveryId: z484.uuid(),
33539
+ scheduled: z484.boolean()
33480
33540
  }));
33481
33541
 
33482
33542
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
33483
- import { z as z484 } from "zod";
33484
- var WebhooksV2ReadInputSchema = z484.object({
33485
- id: z484.uuid()
33543
+ import { z as z485 } from "zod";
33544
+ var WebhooksV2ReadInputSchema = z485.object({
33545
+ id: z485.uuid()
33486
33546
  });
33487
33547
  var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
33488
33548
 
33489
33549
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
33490
- import { z as z485 } from "zod";
33491
- var WebhooksV2RecallsParamsSchema = z485.object({
33492
- evtId: z485.string().trim().min(1)
33493
- });
33494
- var WebhooksV2RecallsBodySchema = z485.object({
33495
- reason: z485.string().trim().min(1).max(2000)
33496
- });
33497
- var WebhooksV2RecallsOutputSchema = createSingleResponse(z485.object({
33498
- evtId: z485.string(),
33499
- recalledEvtId: z485.string(),
33500
- supersedes: z485.string(),
33501
- reason: z485.string(),
33502
- recalledByUserId: z485.string()
33503
- }));
33504
-
33505
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
33506
33550
  import { z as z486 } from "zod";
33507
- var WebhooksV2ReplayByRangeSchema = z486.object({
33508
- fromBlock: z486.coerce.bigint(),
33509
- toBlock: z486.coerce.bigint().optional(),
33510
- chainId: z486.coerce.number().int().positive(),
33511
- confirmLargeRange: z486.boolean().default(false)
33512
- });
33513
- var WebhooksV2ReplayByEventSchema = z486.object({
33514
- evtId: z486.string().trim().min(1),
33515
- chainId: z486.coerce.number().int().positive().optional()
33516
- });
33517
- var WebhooksV2ReplaysParamsSchema = z486.object({
33518
- id: z486.uuid()
33519
- });
33520
- var WebhooksV2ReplaysBodySchema = z486.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
33521
- var WebhooksV2ReplaysOutputSchema = createSingleResponse(z486.object({
33522
- replayId: z486.uuid(),
33523
- endpointId: z486.uuid(),
33524
- eventsEnqueued: z486.number().int().nonnegative(),
33525
- snapshotToBlock: z486.string().nullable()
33551
+ var WebhooksV2RecallsParamsSchema = z486.object({
33552
+ evtId: z486.string().trim().min(1)
33553
+ });
33554
+ var WebhooksV2RecallsBodySchema = z486.object({
33555
+ reason: z486.string().trim().min(1).max(2000)
33556
+ });
33557
+ var WebhooksV2RecallsOutputSchema = createSingleResponse(z486.object({
33558
+ evtId: z486.string(),
33559
+ recalledEvtId: z486.string(),
33560
+ supersedes: z486.string(),
33561
+ reason: z486.string(),
33562
+ recalledByUserId: z486.string()
33526
33563
  }));
33527
33564
 
33528
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
33565
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
33529
33566
  import { z as z487 } from "zod";
33530
- var WebhooksV2RevokeSecretInputSchema = z487.object({
33567
+ var WebhooksV2ReplayByRangeSchema = z487.object({
33568
+ fromBlock: z487.coerce.bigint(),
33569
+ toBlock: z487.coerce.bigint().optional(),
33570
+ chainId: z487.coerce.number().int().positive(),
33571
+ confirmLargeRange: z487.boolean().default(false)
33572
+ });
33573
+ var WebhooksV2ReplayByEventSchema = z487.object({
33574
+ evtId: z487.string().trim().min(1),
33575
+ chainId: z487.coerce.number().int().positive().optional()
33576
+ });
33577
+ var WebhooksV2ReplaysParamsSchema = z487.object({
33531
33578
  id: z487.uuid()
33532
33579
  });
33533
- var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z487.object({
33580
+ var WebhooksV2ReplaysBodySchema = z487.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
33581
+ var WebhooksV2ReplaysOutputSchema = createSingleResponse(z487.object({
33582
+ replayId: z487.uuid(),
33534
33583
  endpointId: z487.uuid(),
33535
- activeVersion: z487.number().int().positive(),
33536
- previousVersion: z487.number().int().positive().nullable(),
33537
- revokedVersion: z487.number().int().positive()
33584
+ eventsEnqueued: z487.number().int().nonnegative(),
33585
+ snapshotToBlock: z487.string().nullable()
33538
33586
  }));
33539
33587
 
33540
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
33588
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
33541
33589
  import { z as z488 } from "zod";
33542
- var WebhooksV2RotateSecretInputSchema = z488.object({
33590
+ var WebhooksV2RevokeSecretInputSchema = z488.object({
33543
33591
  id: z488.uuid()
33544
33592
  });
33545
- var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z488.object({
33593
+ var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z488.object({
33546
33594
  endpointId: z488.uuid(),
33547
33595
  activeVersion: z488.number().int().positive(),
33548
33596
  previousVersion: z488.number().int().positive().nullable(),
33549
- previousRevokesAt: z488.coerce.date().nullable(),
33550
- signingSecret: z488.string().nullable()
33597
+ revokedVersion: z488.number().int().positive()
33551
33598
  }));
33552
33599
 
33553
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
33600
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
33554
33601
  import { z as z489 } from "zod";
33555
- var WebhooksV2StatsInputSchema = z489.object({
33556
- endpointId: z489.uuid().optional()
33602
+ var WebhooksV2RotateSecretInputSchema = z489.object({
33603
+ id: z489.uuid()
33604
+ });
33605
+ var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z489.object({
33606
+ endpointId: z489.uuid(),
33607
+ activeVersion: z489.number().int().positive(),
33608
+ previousVersion: z489.number().int().positive().nullable(),
33609
+ previousRevokesAt: z489.coerce.date().nullable(),
33610
+ signingSecret: z489.string().nullable()
33611
+ }));
33612
+
33613
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
33614
+ import { z as z490 } from "zod";
33615
+ var WebhooksV2StatsInputSchema = z490.object({
33616
+ endpointId: z490.uuid().optional()
33557
33617
  });
33558
- var WebhooksV2StatsOutputDataSchema = z489.object({
33559
- totalDeliveries: z489.number().int().min(0),
33560
- delivered: z489.number().int().min(0),
33561
- failed: z489.number().int().min(0),
33562
- hourlyBuckets: z489.array(z489.number().int().min(0)).length(24)
33618
+ var WebhooksV2StatsOutputDataSchema = z490.object({
33619
+ totalDeliveries: z490.number().int().min(0),
33620
+ delivered: z490.number().int().min(0),
33621
+ failed: z490.number().int().min(0),
33622
+ hourlyBuckets: z490.array(z490.number().int().min(0)).length(24)
33563
33623
  });
33564
33624
  var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
33565
33625
 
33566
33626
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
33567
- import { z as z490 } from "zod";
33568
- var WebhooksV2TestEventParamsSchema = z490.object({
33569
- id: z490.uuid()
33627
+ import { z as z491 } from "zod";
33628
+ var WebhooksV2TestEventParamsSchema = z491.object({
33629
+ id: z491.uuid()
33570
33630
  });
33571
- var WebhooksV2TestEventBodySchema = z490.object({
33572
- eventType: z490.string().trim().min(1).default("webhook.test.final")
33631
+ var WebhooksV2TestEventBodySchema = z491.object({
33632
+ eventType: z491.string().trim().min(1).default("webhook.test.final")
33573
33633
  });
33574
- var WebhooksV2TestEventOutputSchema = createSingleResponse(z490.object({
33575
- evtId: z490.string(),
33576
- deliveryId: z490.uuid().nullable(),
33577
- isTest: z490.literal(true)
33634
+ var WebhooksV2TestEventOutputSchema = createSingleResponse(z491.object({
33635
+ evtId: z491.string(),
33636
+ deliveryId: z491.uuid().nullable(),
33637
+ isTest: z491.literal(true)
33578
33638
  }));
33579
33639
 
33580
33640
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
33581
- import { z as z491 } from "zod";
33582
- var WebhooksV2UpdateParamsSchema = z491.object({
33583
- id: z491.uuid()
33641
+ import { z as z492 } from "zod";
33642
+ var WebhooksV2UpdateParamsSchema = z492.object({
33643
+ id: z492.uuid()
33584
33644
  });
33585
- var WebhooksV2UpdateBodySchema = z491.object({
33586
- url: z491.url().optional(),
33587
- displayName: z491.string().trim().min(1).max(200).nullable().optional(),
33588
- subscriptions: z491.array(z491.string().trim().min(1)).min(1).optional(),
33645
+ var WebhooksV2UpdateBodySchema = z492.object({
33646
+ url: z492.url().optional(),
33647
+ displayName: z492.string().trim().min(1).max(200).nullable().optional(),
33648
+ subscriptions: z492.array(z492.string().trim().min(1)).min(1).optional(),
33589
33649
  defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
33590
- counterSignedReceipts: z491.boolean().optional(),
33591
- disabled: z491.boolean().optional(),
33592
- disabledReason: z491.string().trim().min(1).max(500).nullable().optional(),
33650
+ counterSignedReceipts: z492.boolean().optional(),
33651
+ disabled: z492.boolean().optional(),
33652
+ disabledReason: z492.string().trim().min(1).max(500).nullable().optional(),
33593
33653
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
33594
33654
  acknowledgedAt: true,
33595
33655
  acknowledgedByUserId: true
33596
33656
  }).optional()
33597
33657
  });
33598
- var WebhooksV2UpdateQuerySchema = z491.object({
33599
- acknowledgePending: z491.union([z491.literal("true"), z491.literal(true)]).transform(() => true).optional()
33658
+ var WebhooksV2UpdateQuerySchema = z492.object({
33659
+ acknowledgePending: z492.union([z492.literal("true"), z492.literal(true)]).transform(() => true).optional()
33600
33660
  }).optional();
33601
- var WebhooksV2UpdateInputSchema = z491.object({
33661
+ var WebhooksV2UpdateInputSchema = z492.object({
33602
33662
  params: WebhooksV2UpdateParamsSchema,
33603
33663
  body: WebhooksV2UpdateBodySchema,
33604
33664
  query: WebhooksV2UpdateQuerySchema
@@ -33614,7 +33674,7 @@ var list45 = v2Contract.route({
33614
33674
  successDescription: "Paginated webhook endpoint list.",
33615
33675
  tags: TAGS37
33616
33676
  }).input(v2Input.query(WebhooksV2ListInputSchema)).output(WebhooksV2ListOutputSchema);
33617
- var read32 = v2Contract.route({
33677
+ var read33 = v2Contract.route({
33618
33678
  method: "GET",
33619
33679
  path: "/webhooks/{id}",
33620
33680
  description: "Read webhook endpoint metadata. Signing secrets are never returned after creation or rotation.",
@@ -33714,7 +33774,7 @@ var stats5 = v2Contract.route({
33714
33774
  }).input(v2Input.query(WebhooksV2StatsInputSchema)).output(WebhooksV2StatsOutputSchema);
33715
33775
  var webhooksV2Contract = {
33716
33776
  list: list45,
33717
- read: read32,
33777
+ read: read33,
33718
33778
  create: create22,
33719
33779
  update: update12,
33720
33780
  delete: del14,
@@ -33733,21 +33793,21 @@ var webhooksV2Contract = {
33733
33793
  };
33734
33794
 
33735
33795
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
33736
- import { z as z493 } from "zod";
33796
+ import { z as z494 } from "zod";
33737
33797
 
33738
33798
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
33739
- import { z as z492 } from "zod";
33740
- var WebhookReceiptVerificationFailureClassSchema = z492.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
33741
- var WebhookReceiptSchema = z492.object({
33742
- id: z492.uuid(),
33743
- deliveryId: z492.uuid(),
33744
- evtId: z492.string(),
33745
- tenantId: z492.string(),
33746
- endpointId: z492.uuid(),
33747
- consumerSignature: z492.string(),
33748
- innerEventHash: z492.string(),
33749
- receivedAt: z492.coerce.date(),
33750
- verifiedAt: z492.coerce.date().nullable(),
33799
+ import { z as z493 } from "zod";
33800
+ var WebhookReceiptVerificationFailureClassSchema = z493.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
33801
+ var WebhookReceiptSchema = z493.object({
33802
+ id: z493.uuid(),
33803
+ deliveryId: z493.uuid(),
33804
+ evtId: z493.string(),
33805
+ tenantId: z493.string(),
33806
+ endpointId: z493.uuid(),
33807
+ consumerSignature: z493.string(),
33808
+ innerEventHash: z493.string(),
33809
+ receivedAt: z493.coerce.date(),
33810
+ verifiedAt: z493.coerce.date().nullable(),
33751
33811
  verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
33752
33812
  });
33753
33813
  var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
@@ -33764,19 +33824,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
33764
33824
  var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
33765
33825
 
33766
33826
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
33767
- var WebhookReceiptsV2CreateInputSchema = z493.object({
33768
- deliveryId: z493.uuid(),
33769
- evtId: z493.string().trim().min(1),
33770
- endpointId: z493.uuid(),
33771
- consumerSignature: z493.string().trim().min(1),
33772
- innerEventHash: z493.string().trim().min(1)
33827
+ var WebhookReceiptsV2CreateInputSchema = z494.object({
33828
+ deliveryId: z494.uuid(),
33829
+ evtId: z494.string().trim().min(1),
33830
+ endpointId: z494.uuid(),
33831
+ consumerSignature: z494.string().trim().min(1),
33832
+ innerEventHash: z494.string().trim().min(1)
33773
33833
  });
33774
33834
  var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
33775
33835
 
33776
33836
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
33777
- import { z as z494 } from "zod";
33778
- var WebhookReceiptsV2ReadInputSchema = z494.object({
33779
- id: z494.uuid()
33837
+ import { z as z495 } from "zod";
33838
+ var WebhookReceiptsV2ReadInputSchema = z495.object({
33839
+ id: z495.uuid()
33780
33840
  });
33781
33841
  var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
33782
33842
 
@@ -33789,7 +33849,7 @@ var list46 = v2Contract.route({
33789
33849
  successDescription: "Paginated webhook receipt list.",
33790
33850
  tags: TAGS38
33791
33851
  }).input(v2Input.query(WebhookReceiptsV2ListInputSchema)).output(WebhookReceiptsV2ListOutputSchema);
33792
- var read33 = v2Contract.route({
33852
+ var read34 = v2Contract.route({
33793
33853
  method: "GET",
33794
33854
  path: "/webhook-receipts/{id}",
33795
33855
  description: "Read one webhook receipt.",
@@ -33805,7 +33865,7 @@ var create23 = v2Contract.route({
33805
33865
  }).input(v2Input.body(WebhookReceiptsV2CreateInputSchema)).output(WebhookReceiptsV2CreateOutputSchema);
33806
33866
  var webhookReceiptsV2Contract = {
33807
33867
  list: list46,
33808
- read: read33,
33868
+ read: read34,
33809
33869
  create: create23
33810
33870
  };
33811
33871
 
@@ -34058,7 +34118,7 @@ function normalizeDalpBaseUrl(url) {
34058
34118
  // package.json
34059
34119
  var package_default = {
34060
34120
  name: "@settlemint/dalp-sdk",
34061
- version: "2.1.7-main.26556642454",
34121
+ version: "2.1.7-main.26558645247",
34062
34122
  private: false,
34063
34123
  description: "Fully typed SDK for the DALP tokenization platform API",
34064
34124
  homepage: "https://settlemint.com",