@settlemint/dalp-sdk 3.0.0-rc.1 → 3.0.0-rc.3

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.
package/dist/index.js CHANGED
@@ -40871,6 +40871,34 @@ var ENTRIES_INDEX = {
40871
40871
  solidityError: "UnsettledConvertibleInterest()"
40872
40872
  }
40873
40873
  },
40874
+ "DALP-9082": {
40875
+ id: "DALP-9082",
40876
+ kind: "route",
40877
+ category: "client",
40878
+ status: 400,
40879
+ retryable: false,
40880
+ expectedClientError: true,
40881
+ public: {
40882
+ message: "The permit deadline is in the past.",
40883
+ why: "The requested signature deadline is at or before the current time, so `permit()` would always revert on-chain and the custodial signature could never be relayed.",
40884
+ fix: "Sign a new permit with a deadline in the future."
40885
+ },
40886
+ observability: {
40887
+ severity: "info",
40888
+ otelEventName: "dapi.error",
40889
+ metricAttributeKey: "dapi.error.id",
40890
+ dimensions: [
40891
+ "error.id",
40892
+ "error.category",
40893
+ "surface",
40894
+ "route",
40895
+ "status_class",
40896
+ "retryable"
40897
+ ]
40898
+ },
40899
+ owner: "dapi",
40900
+ orpcCode: "SIGNED_PERMIT_DEADLINE_EXPIRED"
40901
+ },
40874
40902
  "DALP-CHAIN-EMPTY-REVERT": {
40875
40903
  id: "DALP-CHAIN-EMPTY-REVERT",
40876
40904
  kind: "contract",
@@ -51101,6 +51129,7 @@ var DALP_ERROR_TYPED_FIELD_NAMES = {
51101
51129
  "solidityError",
51102
51130
  "suggestedAction"
51103
51131
  ],
51132
+ "DALP-9082": [],
51104
51133
  "DALP-CHAIN-EMPTY-REVERT": [
51105
51134
  "args",
51106
51135
  "correlationId",
@@ -61020,6 +61049,7 @@ var DALP_ERROR_DATA_SCHEMA_BY_ID = {
61020
61049
  solidityError: z2.string(),
61021
61050
  suggestedAction: z2.string()
61022
61051
  }).catchall(DALP_ORPC_JSON_VALUE_SCHEMA),
61052
+ "DALP-9082": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA,
61023
61053
  "DALP-CHAIN-EMPTY-REVERT": DALP_ORPC_ERROR_DATA_BASE_SCHEMA.extend({
61024
61054
  args: z2.record(z2.string(), z2.string()),
61025
61055
  correlationId: z2.string(),
@@ -64639,6 +64669,10 @@ var CUSTOM_ERRORS = {
64639
64669
  status: 409,
64640
64670
  message: "Signed permit has already been relayed."
64641
64671
  },
64672
+ SIGNED_PERMIT_DEADLINE_EXPIRED: {
64673
+ status: 400,
64674
+ message: "The permit deadline is in the past."
64675
+ },
64642
64676
  SIGNED_PERMIT_NONCE_CONFLICT: {
64643
64677
  status: 409,
64644
64678
  message: "A pending permit with this nonce already exists for this holder."
@@ -70598,7 +70632,7 @@ var PublicConfigGetOutputSchema = z84.object({
70598
70632
  logLevel: z84.enum(["debug", "info", "warn", "error"])
70599
70633
  }),
70600
70634
  explorer: z84.object({
70601
- url: z84.string().url()
70635
+ url: z84.string().url().optional()
70602
70636
  }),
70603
70637
  auth: z84.object({
70604
70638
  enforce2fa: z84.boolean(),
@@ -70709,8 +70743,86 @@ function isDangerousCSS(value2) {
70709
70743
  const lower = value2.toLowerCase();
70710
70744
  return lower.includes("url(") || lower.includes("<") || lower.includes("javascript:") || lower.includes("expression(") || lower.includes("import");
70711
70745
  }
70746
+ var NUMBER = /^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i;
70747
+ var PERCENTAGE = /^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?%$/i;
70748
+ var ANGLE = /^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?(?:deg|turn|rad|grad)$/i;
70749
+ var isNumber = (token) => NUMBER.test(token);
70750
+ var isPercentage = (token) => PERCENTAGE.test(token);
70751
+ var isNumberOrPercentage = (token) => isNumber(token) || isPercentage(token);
70752
+ var isHue = (token) => isNumber(token) || ANGLE.test(token);
70753
+ function splitColorBody(body) {
70754
+ const trimmed = body.trim();
70755
+ if (trimmed === "") {
70756
+ return;
70757
+ }
70758
+ if (trimmed.includes(",")) {
70759
+ if (trimmed.includes("/")) {
70760
+ return;
70761
+ }
70762
+ const components2 = trimmed.split(",").map((part) => part.trim());
70763
+ if (components2.some((part) => part === "")) {
70764
+ return;
70765
+ }
70766
+ return { components: components2, commaSyntax: true };
70767
+ }
70768
+ const slashParts = trimmed.split("/");
70769
+ if (slashParts.length > 2) {
70770
+ return;
70771
+ }
70772
+ const alpha = slashParts.length === 2 ? slashParts[1]?.trim() ?? "" : undefined;
70773
+ if (alpha === "") {
70774
+ return;
70775
+ }
70776
+ const components = (slashParts[0] ?? "").split(/\s+/).filter(Boolean);
70777
+ if (alpha === undefined && components.length > 3) {
70778
+ return;
70779
+ }
70780
+ if (alpha !== undefined) {
70781
+ components.push(alpha);
70782
+ }
70783
+ return { components, commaSyntax: false };
70784
+ }
70785
+ function isNumericColorBody(fn, body) {
70786
+ if (/[a-z][\w-]*\(/i.test(body)) {
70787
+ return true;
70788
+ }
70789
+ const parsed = splitColorBody(body);
70790
+ if (!parsed) {
70791
+ return false;
70792
+ }
70793
+ const { components, commaSyntax } = parsed;
70794
+ if (components.length < 3 || components.length > 4) {
70795
+ return false;
70796
+ }
70797
+ const isNone = (token) => !commaSyntax && /^none$/i.test(token);
70798
+ const alphaOk = components.length === 3 || isNumberOrPercentage(components[3] ?? "") || isNone(components[3] ?? "");
70799
+ if (!alphaOk) {
70800
+ return false;
70801
+ }
70802
+ const [first = "", second = "", third = ""] = components;
70803
+ switch (fn.toLowerCase()) {
70804
+ case "rgb":
70805
+ case "rgba": {
70806
+ return [first, second, third].every((c) => isNumberOrPercentage(c) || isNone(c));
70807
+ }
70808
+ case "hsl":
70809
+ case "hsla": {
70810
+ return (isHue(first) || isNone(first)) && (isPercentage(second) || isNone(second)) && (isPercentage(third) || isNone(third));
70811
+ }
70812
+ case "oklch": {
70813
+ return (isNumberOrPercentage(first) || isNone(first)) && (isNumberOrPercentage(second) || isNone(second)) && (isHue(third) || isNone(third));
70814
+ }
70815
+ default: {
70816
+ return false;
70817
+ }
70818
+ }
70819
+ }
70712
70820
  function isValidCSSValue(value2) {
70713
- return /^#[\da-f]{3,8}$/i.test(value2) || /^oklch\(.+\)$/i.test(value2) || /^hsl\(.+\)$/i.test(value2) || /^rgb\(.+\)$/i.test(value2) || /^rgba\(.+\)$/i.test(value2) || /^var\(.+\)$/i.test(value2) || /^[\d.]+rem$/.test(value2) || /^linear-gradient\(.+\)$/i.test(value2);
70821
+ const numericFn = /^(oklch|hsl|rgba?)\((.+)\)$/i.exec(value2);
70822
+ if (numericFn) {
70823
+ return isNumericColorBody(numericFn[1] ?? "", numericFn[2] ?? "");
70824
+ }
70825
+ return /^#[\da-f]{3,8}$/i.test(value2) || /^var\(.+\)$/i.test(value2) || /^[\d.]+rem$/.test(value2) || /^linear-gradient\(.+\)$/i.test(value2);
70714
70826
  }
70715
70827
  var cssColor = z89.string().max(256, "CSS value must be at most 256 characters").refine((val) => !isDangerousCSS(val), {
70716
70828
  message: "CSS value contains potentially dangerous content"
@@ -75336,7 +75448,7 @@ var ConversionConfigSchema = z192.object({
75336
75448
  denominationAsset: ethereumAddress.meta({
75337
75449
  description: "Unit-of-account token (e.g. USDC, EUR stablecoin)"
75338
75450
  }),
75339
- discountBps: basisPoints().max(9999, "Conversion discount must be less than 100% (< 10000 bps)").meta({
75451
+ discountBps: basisPoints().max(9999, "Conversion discount must be less than 100% (< 10000 bps)").default(0).meta({
75340
75452
  description: "Discount in basis points applied to conversion price (e.g. 2000 = 20%)",
75341
75453
  examples: [2000]
75342
75454
  }),
@@ -80476,7 +80588,7 @@ var read12 = v2Contract.route({
80476
80588
  var upsert3 = v2Contract.route({
80477
80589
  method: "POST",
80478
80590
  path: "/contacts",
80479
- description: "Create or update a contact entry. Provide an id to update an existing contact; omit to create. When creating without an id and the wallet already belongs to an existing contact, the existing contact's name is silently updated.",
80591
+ description: "Create or update a contact entry. Provide an id to update an existing contact; omit to create. When creating without an id and the wallet already belongs to an existing contact, a RESOURCE_ALREADY_EXISTS error is returned rather than overwriting the existing contact.",
80480
80592
  successDescription: "Contact saved successfully.",
80481
80593
  tags: [V2_TAG.contacts]
80482
80594
  }).input(v2Input.body(ContactsV2UpsertInputSchema)).output(ContactsV2UpsertOutputSchema);
@@ -81615,6 +81727,7 @@ var exchangeRatesV2Contract = {
81615
81727
 
81616
81728
  // ../../packages/dalp/api-contract/src/routes/v2/external-token/external-token.v2.list.schema.ts
81617
81729
  var EXTERNAL_TOKENS_COLLECTION_FIELDS = {
81730
+ id: addressField({ defaultOperator: "eq" }),
81618
81731
  name: textField(),
81619
81732
  symbol: textField(),
81620
81733
  type: textField(),
@@ -83867,7 +83980,7 @@ var SystemRolesV2ListOutputSchema = createPaginatedResponse(SystemRolesV2ItemSch
83867
83980
  // ../../packages/dalp/api-contract/src/routes/v2/system/access-manager/routes/participant-roles-view.v2.schema.ts
83868
83981
  import { z as z399 } from "zod";
83869
83982
  var SystemParticipantRolesViewItemSchema = z399.object({
83870
- participantId: z399.string(),
83983
+ participantId: z399.string().nullable(),
83871
83984
  displayName: z399.string(),
83872
83985
  signingAddress: ethereumAddress,
83873
83986
  operationsAddress: ethereumAddress.nullable(),
@@ -86074,6 +86187,7 @@ var TOKEN_COLLECTION_FIELDS = {
86074
86187
  tokenType: textField({ sortable: false, defaultOperator: "eq" }),
86075
86188
  templateId: textField({ sortable: false, defaultOperator: "eq" }),
86076
86189
  templateSlug: textField({ sortable: false, defaultOperator: "eq" }),
86190
+ paused: enumField(["active", "paused"], { sortable: false }),
86077
86191
  createdAt: dateField()
86078
86192
  };
86079
86193
  var BaseInputSchema = createCollectionInputSchema(TOKEN_COLLECTION_FIELDS, {
@@ -87515,7 +87629,7 @@ var tokenV2MutationsContract = {
87515
87629
  };
87516
87630
 
87517
87631
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
87518
- import { z as z477 } from "zod";
87632
+ import { z as z478 } from "zod";
87519
87633
 
87520
87634
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.recipient-eligibility.schema.ts
87521
87635
  import { z as z442 } from "zod";
@@ -88209,8 +88323,39 @@ var participantRolesView2 = v2Contract.route({
88209
88323
  })
88210
88324
  }), TokenParticipantRolesViewV2InputSchema)).output(TokenParticipantRolesViewV2OutputSchema);
88211
88325
 
88212
- // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
88326
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.aa-role-migration-pending.schema.ts
88213
88327
  import { z as z459 } from "zod";
88328
+ var TokenAaRoleMigrationPendingItemSchema = z459.object({
88329
+ tokenAddress: ethereumAddress,
88330
+ tokenName: z459.string(),
88331
+ tokenSymbol: z459.string(),
88332
+ accessManagerAddress: ethereumAddress,
88333
+ driftingParticipantCount: z459.number().int().nonnegative(),
88334
+ adminAddresses: z459.array(ethereumAddress)
88335
+ });
88336
+ var TOKEN_AA_ROLE_MIGRATION_PENDING_COLLECTION_FIELDS = {
88337
+ tokenAddress: addressField(),
88338
+ tokenName: textField({ sortable: true, defaultOperator: "iLike" }),
88339
+ tokenSymbol: textField({ sortable: true, defaultOperator: "iLike" }),
88340
+ accessManagerAddress: addressField(),
88341
+ driftingParticipantCount: numberField({ sortable: true })
88342
+ };
88343
+ var TokenAaRoleMigrationPendingV2InputSchema = createCollectionInputSchema(TOKEN_AA_ROLE_MIGRATION_PENDING_COLLECTION_FIELDS, {
88344
+ defaultSort: "tokenName"
88345
+ });
88346
+ var TokenAaRoleMigrationPendingV2OutputSchema = createPaginatedResponse(TokenAaRoleMigrationPendingItemSchema);
88347
+
88348
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.aa-role-migration-pending.contract.ts
88349
+ var aaRoleMigrationPending = v2Contract.route({
88350
+ method: "GET",
88351
+ path: "/tokens/aa-role-migration/pending",
88352
+ description: "List tokens whose access-manager roles the AA migration could not mirror onto participants' smart accounts because the migration initiator was not that token's admin. Each token's own DEFAULT_ADMIN must finish the migration. This is an indexed snapshot with eventual consistency — a token may briefly remain listed after its roles are migrated on-chain until the indexer catches up; the per-token view verifies live role state.",
88353
+ successDescription: "Paginated tokens still needing AA role migration retrieved successfully.",
88354
+ tags: [V2_TAG.token]
88355
+ }).input(v2Input.query(TokenAaRoleMigrationPendingV2InputSchema)).output(TokenAaRoleMigrationPendingV2OutputSchema);
88356
+
88357
+ // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
88358
+ import { z as z460 } from "zod";
88214
88359
  var HISTORICAL_BALANCE_KIND_OPTIONS = ["account", "totalSupply"];
88215
88360
  var TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS = {
88216
88361
  account: addressField({ defaultOperator: "eq" }),
@@ -88235,10 +88380,10 @@ var TokenHistoricalBalancesV2InputSchema = createCollectionInputSchema(TOKEN_HIS
88235
88380
  }
88236
88381
  }
88237
88382
  });
88238
- var TokenHistoricalBalanceV2ItemSchema = z459.object({
88239
- id: z459.string().uuid(),
88383
+ var TokenHistoricalBalanceV2ItemSchema = z460.object({
88384
+ id: z460.string().uuid(),
88240
88385
  account: ethereumAddress,
88241
- kind: z459.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
88386
+ kind: z460.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
88242
88387
  sender: ethereumAddress,
88243
88388
  oldBalance: bigDecimal(),
88244
88389
  oldBalanceExact: apiBigInt,
@@ -88247,14 +88392,14 @@ var TokenHistoricalBalanceV2ItemSchema = z459.object({
88247
88392
  blockNumber: apiBigInt,
88248
88393
  blockTimestamp: timestamp(),
88249
88394
  txHash: ethereumHash,
88250
- logIndex: z459.number().int().nonnegative()
88395
+ logIndex: z460.number().int().nonnegative()
88251
88396
  });
88252
88397
  var TokenHistoricalBalancesV2OutputSchema = createPaginatedResponse(TokenHistoricalBalanceV2ItemSchema);
88253
- var strictHistoricalLookup = z459.union([z459.boolean(), z459.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
88398
+ var strictHistoricalLookup = z460.union([z460.boolean(), z460.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
88254
88399
  var historicalTimepoint = apiBigInt.refine((value3) => value3 >= 0n, {
88255
88400
  message: "timepoint must be greater than or equal to 0"
88256
88401
  });
88257
- var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z459.object({
88402
+ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z460.object({
88258
88403
  account: ethereumAddress.meta({
88259
88404
  description: "Holder account to read from the historical-balances feature",
88260
88405
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88268,7 +88413,7 @@ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z459.object({
88268
88413
  examples: [true]
88269
88414
  })
88270
88415
  });
88271
- var TokenHistoricalBalanceAtBlockV2DataSchema = z459.object({
88416
+ var TokenHistoricalBalanceAtBlockV2DataSchema = z460.object({
88272
88417
  account: ethereumAddress,
88273
88418
  balance: bigDecimal(),
88274
88419
  balanceExact: apiBigInt,
@@ -88283,12 +88428,12 @@ var TOKEN_HISTORICAL_HOLDERS_AT_BLOCK_COLLECTION_FIELDS = {
88283
88428
  balance: bigintField({ filterable: false }),
88284
88429
  lastUpdatedAt: dateField({ filterable: false })
88285
88430
  };
88286
- var TokenHistoricalHoldersAtBlockV2InputSchema = z459.object({
88287
- sortBy: z459.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
88288
- sortDirection: z459.enum(["asc", "desc"]).default("desc"),
88289
- offset: z459.coerce.number().int().nonnegative().default(0),
88290
- limit: z459.coerce.number().int().positive().max(200).default(50),
88291
- filters: z459.array(DataTableFilterSchema).default([]),
88431
+ var TokenHistoricalHoldersAtBlockV2InputSchema = z460.object({
88432
+ sortBy: z460.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
88433
+ sortDirection: z460.enum(["asc", "desc"]).default("desc"),
88434
+ offset: z460.coerce.number().int().nonnegative().default(0),
88435
+ limit: z460.coerce.number().int().positive().max(200).default(50),
88436
+ filters: z460.array(DataTableFilterSchema).default([]),
88292
88437
  timepoint: historicalTimepoint.meta({
88293
88438
  description: "Historical feature clock timepoint, expressed as Unix seconds for timestamp-mode tokens",
88294
88439
  examples: ["1767225600"]
@@ -88301,8 +88446,8 @@ var TokenHistoricalHoldersAtBlockV2InputSchema = z459.object({
88301
88446
  var TokenHistoricalHoldersAtBlockV2OutputSchema = createPaginatedResponse(assetBalance());
88302
88447
 
88303
88448
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balance-at-block.schema.ts
88304
- import { z as z460 } from "zod";
88305
- var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z460.object({
88449
+ import { z as z461 } from "zod";
88450
+ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z461.object({
88306
88451
  tokenAddress: ethereumAddress.meta({
88307
88452
  description: "The token contract address",
88308
88453
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88312,13 +88457,13 @@ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z460.object({
88312
88457
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
88313
88458
  })
88314
88459
  });
88315
- var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z460.object({
88316
- atBlock: z460.coerce.bigint().positive().meta({
88460
+ var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z461.object({
88461
+ atBlock: z461.coerce.bigint().positive().meta({
88317
88462
  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.",
88318
88463
  examples: ["21040117"]
88319
88464
  })
88320
88465
  });
88321
- var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z460.object({
88466
+ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z461.object({
88322
88467
  tokenAddress: ethereumAddress,
88323
88468
  holderAddress: ethereumAddress,
88324
88469
  balance: bigDecimal(),
@@ -88326,14 +88471,14 @@ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z460.object({
88326
88471
  asOfBlockNumber: apiBigInt,
88327
88472
  asOfBlockTimestamp: timestamp().nullable(),
88328
88473
  asOfTxHash: ethereumHash.nullable(),
88329
- asOfLogIndex: z460.number().int().nonnegative().nullable(),
88474
+ asOfLogIndex: z461.number().int().nonnegative().nullable(),
88330
88475
  requestedBlock: apiBigInt
88331
88476
  });
88332
88477
  var TokenHistoricalBalanceAtBlockByHolderV2OutputSchema = createSingleResponse(TokenHistoricalBalanceAtBlockByHolderV2DataSchema);
88333
88478
 
88334
88479
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fixed-treasury-yield-holder-periods.list.schema.ts
88335
- import { z as z461 } from "zod";
88336
- var TokenFixedTreasuryYieldHolderPeriodsV2InputParamsSchema = z461.object({
88480
+ import { z as z462 } from "zod";
88481
+ var TokenFixedTreasuryYieldHolderPeriodsV2InputParamsSchema = z462.object({
88337
88482
  tokenAddress: ethereumAddress.meta({
88338
88483
  description: "The token contract address",
88339
88484
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88354,11 +88499,11 @@ var TokenFixedTreasuryYieldHolderPeriodsV2InputSchema = createCollectionInputSch
88354
88499
  defaultSort: "periodNumber",
88355
88500
  globalSearch: false
88356
88501
  });
88357
- var TokenFixedTreasuryYieldHolderPeriodRowSchema = z461.object({
88502
+ var TokenFixedTreasuryYieldHolderPeriodRowSchema = z462.object({
88358
88503
  tokenAddress: ethereumAddress,
88359
88504
  featureAddress: ethereumAddress,
88360
88505
  holderAddress: ethereumAddress,
88361
- periodNumber: z461.number().int().nonnegative(),
88506
+ periodNumber: z462.number().int().nonnegative(),
88362
88507
  amount: bigDecimal(),
88363
88508
  amountExact: apiBigInt,
88364
88509
  yieldAmount: bigDecimal(),
@@ -88366,12 +88511,12 @@ var TokenFixedTreasuryYieldHolderPeriodRowSchema = z461.object({
88366
88511
  claimedAtBlock: apiBigInt,
88367
88512
  claimedAt: timestamp(),
88368
88513
  txHash: ethereumHash,
88369
- logIndex: z461.number().int().nonnegative()
88514
+ logIndex: z462.number().int().nonnegative()
88370
88515
  });
88371
88516
  var TokenFixedTreasuryYieldHolderPeriodsV2OutputSchema = createPaginatedResponse(TokenFixedTreasuryYieldHolderPeriodRowSchema);
88372
88517
 
88373
88518
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collections.list.schema.ts
88374
- import { z as z462 } from "zod";
88519
+ import { z as z463 } from "zod";
88375
88520
  var OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "redeem"];
88376
88521
  var TOKEN_TRANSACTION_FEE_COLLECTIONS_COLLECTION_FIELDS = {
88377
88522
  collectedAt: dateField(),
@@ -88384,46 +88529,46 @@ var TokenTransactionFeeCollectionsV2InputSchema = createCollectionInputSchema(TO
88384
88529
  defaultSort: "-collectedAt",
88385
88530
  globalSearch: false
88386
88531
  });
88387
- var TokenTransactionFeeCollectionV2ItemSchema = z462.object({
88388
- id: z462.string().uuid(),
88532
+ var TokenTransactionFeeCollectionV2ItemSchema = z463.object({
88533
+ id: z463.string().uuid(),
88389
88534
  counterpartyAddress: ethereumAddress,
88390
- operationType: z462.enum(OPERATION_TYPE_OPTIONS),
88535
+ operationType: z463.enum(OPERATION_TYPE_OPTIONS),
88391
88536
  feeAmount: bigDecimal(),
88392
88537
  feeAmountExact: apiBigInt,
88393
88538
  blockNumber: apiBigInt,
88394
88539
  blockTimestamp: timestamp(),
88395
88540
  txHash: ethereumHash,
88396
- logIndex: z462.number().int().nonnegative()
88541
+ logIndex: z463.number().int().nonnegative()
88397
88542
  });
88398
88543
  var TokenTransactionFeeCollectionsV2OutputSchema = createPaginatedResponse(TokenTransactionFeeCollectionV2ItemSchema);
88399
88544
 
88400
88545
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collection-payer.schema.ts
88401
- import { z as z463 } from "zod";
88402
- var TokenTransactionFeeCollectionPayerV2InputSchema = z463.object({
88546
+ import { z as z464 } from "zod";
88547
+ var TokenTransactionFeeCollectionPayerV2InputSchema = z464.object({
88403
88548
  payer: ethereumAddress.meta({
88404
88549
  description: "Payer address whose collected fees to summarise.",
88405
88550
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
88406
88551
  })
88407
88552
  });
88408
- var TokenTransactionFeeCollectionPayerBreakdownItemSchema = z463.object({
88409
- operationType: z463.enum(OPERATION_TYPE_OPTIONS),
88410
- eventCount: z463.number().int().nonnegative(),
88553
+ var TokenTransactionFeeCollectionPayerBreakdownItemSchema = z464.object({
88554
+ operationType: z464.enum(OPERATION_TYPE_OPTIONS),
88555
+ eventCount: z464.number().int().nonnegative(),
88411
88556
  totalFeeAmount: bigDecimal(),
88412
88557
  totalFeeAmountExact: apiBigInt
88413
88558
  });
88414
- var TokenTransactionFeeCollectionPayerV2OutputSchema = z463.object({
88415
- data: z463.object({
88559
+ var TokenTransactionFeeCollectionPayerV2OutputSchema = z464.object({
88560
+ data: z464.object({
88416
88561
  payer: ethereumAddress,
88417
- totalEvents: z463.number().int().nonnegative(),
88562
+ totalEvents: z464.number().int().nonnegative(),
88418
88563
  totalFeeAmount: bigDecimal(),
88419
88564
  totalFeeAmountExact: apiBigInt,
88420
- breakdown: z463.array(TokenTransactionFeeCollectionPayerBreakdownItemSchema),
88421
- recentEvents: z463.array(TokenTransactionFeeCollectionV2ItemSchema)
88565
+ breakdown: z464.array(TokenTransactionFeeCollectionPayerBreakdownItemSchema),
88566
+ recentEvents: z464.array(TokenTransactionFeeCollectionV2ItemSchema)
88422
88567
  })
88423
88568
  });
88424
88569
 
88425
88570
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-events.list.schema.ts
88426
- import { z as z464 } from "zod";
88571
+ import { z as z465 } from "zod";
88427
88572
  var FEE_ACCRUAL_OPERATION_TYPE_OPTIONS = [...OPERATION_TYPE_OPTIONS, "unknown"];
88428
88573
  var TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS = {
88429
88574
  accruedAt: dateField(),
@@ -88439,27 +88584,27 @@ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_A
88439
88584
  defaultSort: "-accruedAt",
88440
88585
  globalSearch: false
88441
88586
  });
88442
- var TokenFeeAccrualEventV2ItemSchema = z464.object({
88443
- id: z464.uuid(),
88587
+ var TokenFeeAccrualEventV2ItemSchema = z465.object({
88588
+ id: z465.uuid(),
88444
88589
  payer: ethereumAddress,
88445
88590
  fromAddress: ethereumAddress,
88446
88591
  toAddress: ethereumAddress,
88447
- operationType: z464.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
88592
+ operationType: z465.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
88448
88593
  operationAmount: bigDecimal(),
88449
88594
  operationAmountExact: apiBigInt,
88450
- feeBps: z464.number().int().nonnegative(),
88595
+ feeBps: z465.number().int().nonnegative(),
88451
88596
  feeAmount: bigDecimal(),
88452
88597
  feeAmountExact: apiBigInt,
88453
88598
  blockNumber: apiBigInt,
88454
88599
  blockTimestamp: timestamp(),
88455
88600
  eventTimestamp: timestamp(),
88456
88601
  txHash: ethereumHash,
88457
- logIndex: z464.number().int().nonnegative()
88602
+ logIndex: z465.number().int().nonnegative()
88458
88603
  });
88459
88604
  var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
88460
88605
 
88461
88606
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-reconciliations.list.schema.ts
88462
- import { z as z465 } from "zod";
88607
+ import { z as z466 } from "zod";
88463
88608
  var TOKEN_FEE_RECONCILIATIONS_COLLECTION_FIELDS = {
88464
88609
  periodEnd: dateField(),
88465
88610
  blockNumber: bigintField(),
@@ -88471,8 +88616,8 @@ var TokenFeeReconciliationsV2InputSchema = createCollectionInputSchema(TOKEN_FEE
88471
88616
  defaultSort: "-periodEnd",
88472
88617
  globalSearch: false
88473
88618
  });
88474
- var TokenFeeReconciliationV2ItemSchema = z465.object({
88475
- id: z465.string().uuid(),
88619
+ var TokenFeeReconciliationV2ItemSchema = z466.object({
88620
+ id: z466.string().uuid(),
88476
88621
  caller: ethereumAddress,
88477
88622
  recipient: ethereumAddress,
88478
88623
  periodEnd: timestamp(),
@@ -88481,12 +88626,12 @@ var TokenFeeReconciliationV2ItemSchema = z465.object({
88481
88626
  blockNumber: apiBigInt,
88482
88627
  blockTimestamp: timestamp(),
88483
88628
  txHash: ethereumHash,
88484
- logIndex: z465.number().int().nonnegative()
88629
+ logIndex: z466.number().int().nonnegative()
88485
88630
  });
88486
88631
  var TokenFeeReconciliationsV2OutputSchema = createPaginatedResponse(TokenFeeReconciliationV2ItemSchema);
88487
88632
 
88488
88633
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-exemptions.list.schema.ts
88489
- import { z as z466 } from "zod";
88634
+ import { z as z467 } from "zod";
88490
88635
  var TOKEN_FEE_EXEMPTIONS_COLLECTION_FIELDS = {
88491
88636
  account: addressField({ defaultOperator: "iLike" }),
88492
88637
  isExempt: booleanField(),
@@ -88497,45 +88642,45 @@ var TokenFeeExemptionsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_EXEM
88497
88642
  defaultSort: "-updatedAt",
88498
88643
  globalSearch: false
88499
88644
  });
88500
- var TokenFeeExemptionV2ItemSchema = z466.object({
88645
+ var TokenFeeExemptionV2ItemSchema = z467.object({
88501
88646
  account: ethereumAddress,
88502
- isExempt: z466.boolean(),
88647
+ isExempt: z467.boolean(),
88503
88648
  updatedAt: timestamp(),
88504
88649
  updatedAtBlock: apiBigInt
88505
88650
  });
88506
88651
  var TokenFeeExemptionsV2OutputSchema = createPaginatedResponse(TokenFeeExemptionV2ItemSchema);
88507
88652
 
88508
88653
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-payer.schema.ts
88509
- import { z as z467 } from "zod";
88510
- var TokenFeeAccrualPayerV2InputSchema = z467.object({
88654
+ import { z as z468 } from "zod";
88655
+ var TokenFeeAccrualPayerV2InputSchema = z468.object({
88511
88656
  payer: ethereumAddress.meta({
88512
88657
  description: "Payer address whose accrued fees to summarise.",
88513
88658
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
88514
88659
  })
88515
88660
  });
88516
- var TokenFeeAccrualPayerBreakdownItemSchema = z467.object({
88517
- operationType: z467.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
88518
- eventCount: z467.number().int().nonnegative(),
88661
+ var TokenFeeAccrualPayerBreakdownItemSchema = z468.object({
88662
+ operationType: z468.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
88663
+ eventCount: z468.number().int().nonnegative(),
88519
88664
  totalOperationAmount: bigDecimal(),
88520
88665
  totalOperationAmountExact: apiBigInt,
88521
88666
  totalFeeAmount: bigDecimal(),
88522
88667
  totalFeeAmountExact: apiBigInt
88523
88668
  });
88524
- var TokenFeeAccrualPayerV2OutputSchema = z467.object({
88525
- data: z467.object({
88669
+ var TokenFeeAccrualPayerV2OutputSchema = z468.object({
88670
+ data: z468.object({
88526
88671
  payer: ethereumAddress,
88527
- totalEvents: z467.number().int().nonnegative(),
88672
+ totalEvents: z468.number().int().nonnegative(),
88528
88673
  totalFeeAmount: bigDecimal(),
88529
88674
  totalFeeAmountExact: apiBigInt,
88530
88675
  totalOperationAmount: bigDecimal(),
88531
88676
  totalOperationAmountExact: apiBigInt,
88532
- breakdown: z467.array(TokenFeeAccrualPayerBreakdownItemSchema),
88533
- recentEvents: z467.array(TokenFeeAccrualEventV2ItemSchema)
88677
+ breakdown: z468.array(TokenFeeAccrualPayerBreakdownItemSchema),
88678
+ recentEvents: z468.array(TokenFeeAccrualEventV2ItemSchema)
88534
88679
  })
88535
88680
  });
88536
88681
 
88537
88682
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
88538
- import { z as z468 } from "zod";
88683
+ import { z as z469 } from "zod";
88539
88684
  var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
88540
88685
  var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
88541
88686
  collectedAt: dateField(),
@@ -88549,22 +88694,22 @@ var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(
88549
88694
  defaultSort: "-collectedAt",
88550
88695
  globalSearch: false
88551
88696
  });
88552
- var TokenExternalFeeCollectionEventV2ItemSchema = z468.object({
88553
- id: z468.uuid(),
88697
+ var TokenExternalFeeCollectionEventV2ItemSchema = z469.object({
88698
+ id: z469.uuid(),
88554
88699
  payer: ethereumAddress,
88555
88700
  feeToken: ethereumAddress,
88556
- operationType: z468.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
88701
+ operationType: z469.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
88557
88702
  feeAmount: bigDecimal(),
88558
88703
  feeAmountExact: apiBigInt,
88559
88704
  blockNumber: apiBigInt,
88560
88705
  blockTimestamp: timestamp(),
88561
88706
  txHash: ethereumHash,
88562
- logIndex: z468.number().int().nonnegative()
88707
+ logIndex: z469.number().int().nonnegative()
88563
88708
  });
88564
88709
  var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
88565
88710
 
88566
88711
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.aum-fee-events.list.schema.ts
88567
- import { z as z469 } from "zod";
88712
+ import { z as z470 } from "zod";
88568
88713
  var TOKEN_AUM_FEE_EVENTS_COLLECTION_FIELDS = {
88569
88714
  collectedAt: dateField(),
88570
88715
  blockNumber: bigintField(),
@@ -88576,8 +88721,8 @@ var TokenAumFeeEventsV2InputSchema = createCollectionInputSchema(TOKEN_AUM_FEE_E
88576
88721
  defaultSort: "-collectedAt",
88577
88722
  globalSearch: false
88578
88723
  });
88579
- var TokenAumFeeEventV2ItemSchema = z469.object({
88580
- id: z469.uuid(),
88724
+ var TokenAumFeeEventV2ItemSchema = z470.object({
88725
+ id: z470.uuid(),
88581
88726
  collector: ethereumAddress,
88582
88727
  recipient: ethereumAddress,
88583
88728
  feeAmount: bigDecimal(),
@@ -88586,12 +88731,12 @@ var TokenAumFeeEventV2ItemSchema = z469.object({
88586
88731
  blockNumber: apiBigInt,
88587
88732
  blockTimestamp: timestamp(),
88588
88733
  txHash: ethereumHash,
88589
- logIndex: z469.number().int().nonnegative()
88734
+ logIndex: z470.number().int().nonnegative()
88590
88735
  });
88591
88736
  var TokenAumFeeEventsV2OutputSchema = createPaginatedResponse(TokenAumFeeEventV2ItemSchema);
88592
88737
 
88593
88738
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.maturity-redemption-events.list.schema.ts
88594
- import { z as z470 } from "zod";
88739
+ import { z as z471 } from "zod";
88595
88740
  var TOKEN_MATURITY_REDEMPTION_EVENTS_COLLECTION_FIELDS = {
88596
88741
  redeemedAt: dateField(),
88597
88742
  blockNumber: bigintField(),
@@ -88603,8 +88748,8 @@ var TokenMaturityRedemptionEventsV2InputSchema = createCollectionInputSchema(TOK
88603
88748
  defaultSort: "-redeemedAt",
88604
88749
  globalSearch: false
88605
88750
  });
88606
- var TokenMaturityRedemptionEventV2ItemSchema = z470.object({
88607
- id: z470.uuid(),
88751
+ var TokenMaturityRedemptionEventV2ItemSchema = z471.object({
88752
+ id: z471.uuid(),
88608
88753
  holder: ethereumAddress,
88609
88754
  featureAddress: ethereumAddress,
88610
88755
  redeemedAmount: bigDecimal(),
@@ -88614,12 +88759,12 @@ var TokenMaturityRedemptionEventV2ItemSchema = z470.object({
88614
88759
  blockNumber: apiBigInt,
88615
88760
  blockTimestamp: timestamp(),
88616
88761
  txHash: ethereumHash,
88617
- logIndex: z470.number().int().nonnegative()
88762
+ logIndex: z471.number().int().nonnegative()
88618
88763
  });
88619
88764
  var TokenMaturityRedemptionEventsV2OutputSchema = createPaginatedResponse(TokenMaturityRedemptionEventV2ItemSchema);
88620
88765
 
88621
88766
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.feature-permit-replay-history.schema.ts
88622
- import { z as z471 } from "zod";
88767
+ import { z as z472 } from "zod";
88623
88768
  var PERMIT_REPLAY_HISTORY_COLLECTION_FIELDS = {
88624
88769
  blockTime: dateField(),
88625
88770
  owner: addressField({ sortable: false })
@@ -88628,7 +88773,7 @@ var TokenFeaturePermitReplayHistoryV2InputSchema = createCollectionInputSchema(P
88628
88773
  defaultSort: "-blockTime",
88629
88774
  globalSearch: false
88630
88775
  });
88631
- var TokenFeaturePermitReplayHistoryV2ItemSchema = z471.object({
88776
+ var TokenFeaturePermitReplayHistoryV2ItemSchema = z472.object({
88632
88777
  owner: ethereumAddress.meta({
88633
88778
  description: "Token holder whose signed permit was relayed on-chain.",
88634
88779
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88652,7 +88797,7 @@ var TokenFeaturePermitReplayHistoryV2ItemSchema = z471.object({
88652
88797
  var TokenFeaturePermitReplayHistoryV2OutputSchema = createPaginatedResponse(TokenFeaturePermitReplayHistoryV2ItemSchema);
88653
88798
 
88654
88799
  // ../../packages/dalp/api-contract/src/routes/token/routes/queries/token.signed-permits.schema.ts
88655
- import { z as z472 } from "zod";
88800
+ import { z as z473 } from "zod";
88656
88801
  var SIGNED_PERMIT_STATUS_VALUES = ["pending", "relayed", "expired"];
88657
88802
  var SIGNED_PERMITS_COLLECTION_FIELDS = {
88658
88803
  nonce: bigintField(),
@@ -88664,8 +88809,8 @@ var SignedPermitsV2InputSchema = createCollectionInputSchema(SIGNED_PERMITS_COLL
88664
88809
  defaultSort: "nonce",
88665
88810
  globalSearch: false
88666
88811
  });
88667
- var SignedPermitV2ItemSchema = z472.object({
88668
- id: z472.string().meta({ description: "Unique identifier of the signed permit (UUIDv7)." }),
88812
+ var SignedPermitV2ItemSchema = z473.object({
88813
+ id: z473.string().meta({ description: "Unique identifier of the signed permit (UUIDv7)." }),
88669
88814
  tokenAddress: ethereumAddress.meta({
88670
88815
  description: "The token contract the permit authorises an allowance on.",
88671
88816
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88690,29 +88835,29 @@ var SignedPermitV2ItemSchema = z472.object({
88690
88835
  description: "EIP-2612 permit nonce assigned at signing time (uint256 decimal string).",
88691
88836
  examples: ["0"]
88692
88837
  }),
88693
- signatureKind: z472.enum(["ecdsa", "bytes"]).meta({
88838
+ signatureKind: z473.enum(["ecdsa", "bytes"]).meta({
88694
88839
  description: "Signature shape: `ecdsa` for EOA holders ({v,r,s}), `bytes` for smart wallets (EIP-1271)."
88695
88840
  }),
88696
- status: z472.enum(SIGNED_PERMIT_STATUS_VALUES).meta({
88841
+ status: z473.enum(SIGNED_PERMIT_STATUS_VALUES).meta({
88697
88842
  description: "Computed display status: `relayed` once relayed on-chain, `expired` when the deadline passed or the nonce was " + "superseded by the owner's current on-chain nonce, otherwise `pending`."
88698
88843
  }),
88699
- relayable: z472.boolean().meta({
88844
+ relayable: z473.boolean().meta({
88700
88845
  description: "True only when the computed status is `pending`, the row's nonce equals the owner's current on-chain nonce, " + "and the deadline has not passed — i.e. this permit can be relayed right now in nonce order."
88701
88846
  }),
88702
- relayedTxHash: z472.string().nullable().meta({ description: "Transaction hash of the relay, or null while the permit is unrelayed." }),
88847
+ relayedTxHash: z473.string().nullable().meta({ description: "Transaction hash of the relay, or null while the permit is unrelayed." }),
88703
88848
  createdAt: timestamp().meta({ description: "Timestamp the permit was signed and stored." })
88704
88849
  });
88705
88850
  var SignedPermitsV2OutputSchema = createPaginatedResponse(SignedPermitV2ItemSchema);
88706
88851
 
88707
88852
  // ../../packages/dalp/api-contract/src/routes/v2/token/features/signed-permits.v2.contract.ts
88708
- import { z as z473 } from "zod";
88853
+ import { z as z474 } from "zod";
88709
88854
  var signedPermits = v2Contract.route({
88710
88855
  method: "GET",
88711
88856
  path: "/tokens/{tokenAddress}/features/permit/signatures",
88712
88857
  description: "List a token's DALP-created signed EIP-2612 permits with a computed display status (pending | relayed | " + "expired) and a `relayable` flag derived against each owner's live on-chain nonce. Scoped to the caller's " + "organization. Filter by `owner`/`status`; sort by `nonce` (default, ascending = relay order) or `createdAt`.",
88713
88858
  successDescription: "Paginated list of the token's signed permits with computed status and relayability.",
88714
88859
  tags: [V2_TAG.token, V2_TAG.tokenFeaturePermit]
88715
- }).input(v2Input.paramsQuery(z473.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), SignedPermitsV2InputSchema)).output(SignedPermitsV2OutputSchema);
88860
+ }).input(v2Input.paramsQuery(z474.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), SignedPermitsV2InputSchema)).output(SignedPermitsV2OutputSchema);
88716
88861
  var permitSignaturesV2ReadsContract = {
88717
88862
  signedPermits
88718
88863
  };
@@ -88730,10 +88875,10 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
88730
88875
  var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
88731
88876
 
88732
88877
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.treasury-health.schema.ts
88733
- import { z as z474 } from "zod";
88878
+ import { z as z475 } from "zod";
88734
88879
  var TreasuryHealthInputSchema = TokenReadInputSchema;
88735
- var TreasuryHealthApprovalSchema = z474.object({
88736
- kind: z474.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
88880
+ var TreasuryHealthApprovalSchema = z475.object({
88881
+ kind: z475.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
88737
88882
  description: "Which feature this approval row gates.",
88738
88883
  examples: ["maturity-redemption"]
88739
88884
  }),
@@ -88757,21 +88902,21 @@ var TreasuryHealthApprovalSchema = z474.object({
88757
88902
  description: "Required allowance ceiling for the feature, scaled by denomination asset decimals.",
88758
88903
  examples: ["1000.00"]
88759
88904
  }),
88760
- satisfied: z474.boolean().meta({
88905
+ satisfied: z475.boolean().meta({
88761
88906
  description: "True when the indexed allowance is greater than or equal to the required ceiling.",
88762
88907
  examples: [true, false]
88763
88908
  })
88764
88909
  });
88765
- var TreasuryHealthImplementationSchema = z474.object({
88766
- treasuryIsContract: z474.boolean().nullable().meta({
88910
+ var TreasuryHealthImplementationSchema = z475.object({
88911
+ treasuryIsContract: z475.boolean().nullable().meta({
88767
88912
  description: "Whether the configured treasury address is a contract (`true`), an EOA (`false`), or has not yet been classified by the indexer (`null`).",
88768
88913
  examples: [false, true, null]
88769
88914
  })
88770
88915
  }).nullable().meta({
88771
88916
  description: "Treasury implementation classification. `null` when no maturity / yield feature is attached."
88772
88917
  });
88773
- var TreasuryHealthResponseSchema = z474.object({
88774
- approvals: z474.array(TreasuryHealthApprovalSchema).meta({
88918
+ var TreasuryHealthResponseSchema = z475.object({
88919
+ approvals: z475.array(TreasuryHealthApprovalSchema).meta({
88775
88920
  description: "Per-feature approval rows. Empty when the token has neither a maturity-redemption nor a fixed-treasury-yield feature attached."
88776
88921
  }),
88777
88922
  implementation: TreasuryHealthImplementationSchema,
@@ -88783,11 +88928,11 @@ var TreasuryHealthResponseSchema = z474.object({
88783
88928
  description: "Projected next-period denomination need (next scheduled redemption / unclaimed yield), scaled by denomination asset decimals. Used to set the `yellow` threshold.",
88784
88929
  examples: ["1000.00"]
88785
88930
  }),
88786
- status: z474.enum(["green", "yellow", "red"]).meta({
88931
+ status: z475.enum(["green", "yellow", "red"]).meta({
88787
88932
  description: "Badge status. `green` = approvals satisfy ceilings (or do not apply) AND balance covers projected need. `yellow` = approvals satisfy (or do not apply) but balance is below projected need. `red` = at least one approval is below its ceiling. Allowance ceilings only apply to EOA treasuries, so `red` is reserved for a classified EOA treasury (`implementation.treasuryIsContract === false`); contract/vault and not-yet-classified treasuries fall through to the balance check.",
88788
88933
  examples: ["green", "yellow", "red"]
88789
88934
  }),
88790
- reason: z474.string().nullable().meta({
88935
+ reason: z475.string().nullable().meta({
88791
88936
  description: "Human-readable reason for the non-green status. `null` for `green`.",
88792
88937
  examples: ["balance below projected", "approval below ceiling", null]
88793
88938
  }),
@@ -88798,7 +88943,7 @@ var TreasuryHealthResponseSchema = z474.object({
88798
88943
  });
88799
88944
 
88800
88945
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
88801
- import { z as z475 } from "zod";
88946
+ import { z as z476 } from "zod";
88802
88947
  var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
88803
88948
  account: addressField({ defaultOperator: "iLike" }),
88804
88949
  delegate: addressField({ defaultOperator: "iLike" }),
@@ -88812,49 +88957,49 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
88812
88957
  defaultSort: "-delegatedAt",
88813
88958
  globalSearch: false
88814
88959
  });
88815
- var VotingDelegationV2ItemSchema = z475.object({
88816
- id: z475.string().uuid(),
88960
+ var VotingDelegationV2ItemSchema = z476.object({
88961
+ id: z476.string().uuid(),
88817
88962
  delegator: ethereumAddress,
88818
88963
  fromDelegate: ethereumAddress.nullable(),
88819
88964
  toDelegate: ethereumAddress,
88820
88965
  delegatedAt: timestamp(),
88821
88966
  delegatedBlockNumber: apiBigInt,
88822
88967
  delegatedTxHash: ethereumHash,
88823
- delegatedLogIndex: z475.number().int().nonnegative(),
88968
+ delegatedLogIndex: z476.number().int().nonnegative(),
88824
88969
  undelegatedAt: timestamp().nullable(),
88825
88970
  undelegatedBlockNumber: apiBigInt.nullable(),
88826
88971
  undelegatedTxHash: ethereumHash.nullable(),
88827
- undelegatedLogIndex: z475.number().int().nonnegative().nullable(),
88828
- isActive: z475.boolean()
88972
+ undelegatedLogIndex: z476.number().int().nonnegative().nullable(),
88973
+ isActive: z476.boolean()
88829
88974
  });
88830
88975
  var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
88831
88976
 
88832
88977
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-power-distribution.schema.ts
88833
- import { z as z476 } from "zod";
88978
+ import { z as z477 } from "zod";
88834
88979
  var DEFAULT_TOP_N = 50;
88835
88980
  var MAX_TOP_N = 200;
88836
- var VotingPowerDistributionV2InputSchema = z476.object({
88837
- topN: z476.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
88981
+ var VotingPowerDistributionV2InputSchema = z477.object({
88982
+ topN: z477.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
88838
88983
  description: `Number of top holders to return individually (1-${MAX_TOP_N}). Remaining holders aggregate into the "other" bucket.`,
88839
88984
  examples: [DEFAULT_TOP_N]
88840
88985
  })
88841
88986
  });
88842
- var VotingPowerDistributionHolderSchema = z476.object({
88987
+ var VotingPowerDistributionHolderSchema = z477.object({
88843
88988
  account: ethereumAddress,
88844
- votes: z476.string(),
88989
+ votes: z477.string(),
88845
88990
  votesExact: apiBigInt
88846
88991
  });
88847
- var VotingPowerDistributionOtherSchema = z476.object({
88848
- holders: z476.number().int().nonnegative(),
88849
- votes: z476.string(),
88992
+ var VotingPowerDistributionOtherSchema = z477.object({
88993
+ holders: z477.number().int().nonnegative(),
88994
+ votes: z477.string(),
88850
88995
  votesExact: apiBigInt
88851
88996
  });
88852
- var VotingPowerDistributionV2DataSchema = z476.object({
88853
- total: z476.number().int().nonnegative(),
88854
- topN: z476.number().int().nonnegative(),
88855
- totalVotes: z476.string(),
88997
+ var VotingPowerDistributionV2DataSchema = z477.object({
88998
+ total: z477.number().int().nonnegative(),
88999
+ topN: z477.number().int().nonnegative(),
89000
+ totalVotes: z477.string(),
88856
89001
  totalVotesExact: apiBigInt,
88857
- holders: z476.array(VotingPowerDistributionHolderSchema),
89002
+ holders: z477.array(VotingPowerDistributionHolderSchema),
88858
89003
  other: VotingPowerDistributionOtherSchema
88859
89004
  });
88860
89005
  var VotingPowerDistributionV2OutputSchema = createSingleResponse(VotingPowerDistributionV2DataSchema);
@@ -88873,7 +89018,7 @@ var allowance = v2Contract.route({
88873
89018
  description: "Get token allowance for a specific owner/spender pair.",
88874
89019
  successDescription: "Token allowance details retrieved successfully.",
88875
89020
  tags: [V2_TAG.token]
88876
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z477.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
89021
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z478.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
88877
89022
  var recipientEligibility = v2Contract.route({
88878
89023
  method: "GET",
88879
89024
  path: "/tokens/{tokenAddress}/recipient-eligibility",
@@ -88887,14 +89032,14 @@ var holder = v2Contract.route({
88887
89032
  description: "Get a specific token holder's balance information.",
88888
89033
  successDescription: "Token holder balance details retrieved successfully.",
88889
89034
  tags: [V2_TAG.token]
88890
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z477.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
89035
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z478.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
88891
89036
  var holders = v2Contract.route({
88892
89037
  method: "GET",
88893
89038
  path: "/tokens/{tokenAddress}/holders",
88894
89039
  description: "Get token holders and their balances.",
88895
89040
  successDescription: "List of token holders with balance information.",
88896
89041
  tags: [V2_TAG.token]
88897
- }).input(v2Input.paramsQuery(z477.object({
89042
+ }).input(v2Input.paramsQuery(z478.object({
88898
89043
  tokenAddress: ethereumAddress.meta({
88899
89044
  description: "The token contract address",
88900
89045
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88906,7 +89051,7 @@ var actions = v2Contract.route({
88906
89051
  description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
88907
89052
  successDescription: "Paginated list of actions targeting the specified token.",
88908
89053
  tags: [V2_TAG.token]
88909
- }).input(v2Input.paramsQuery(z477.object({
89054
+ }).input(v2Input.paramsQuery(z478.object({
88910
89055
  tokenAddress: ethereumAddress.meta({
88911
89056
  description: "The token contract address to filter actions by",
88912
89057
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88918,7 +89063,7 @@ var events2 = v2Contract.route({
88918
89063
  description: "List token events with pagination, filtering, sorting, and faceted counts.",
88919
89064
  successDescription: "Paginated list of token events with metadata and pagination links.",
88920
89065
  tags: [V2_TAG.token]
88921
- }).input(v2Input.paramsQuery(z477.object({
89066
+ }).input(v2Input.paramsQuery(z478.object({
88922
89067
  tokenAddress: ethereumAddress.meta({
88923
89068
  description: "The token contract address",
88924
89069
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -88930,7 +89075,7 @@ var holdings = v2Contract.route({
88930
89075
  description: "List every asset the specified token holds a balance in (its treasury). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
88931
89076
  successDescription: "Paginated list of assets the specified token holds a balance in.",
88932
89077
  tags: [V2_TAG.token]
88933
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), HoldingsV2InputSchema)).output(HoldingsV2OutputSchema);
89078
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), HoldingsV2InputSchema)).output(HoldingsV2OutputSchema);
88934
89079
  var compliance = v2Contract.route({
88935
89080
  method: "GET",
88936
89081
  path: "/tokens/{tokenAddress}/compliance-modules",
@@ -88965,7 +89110,7 @@ var transferApprovals = v2Contract.route({
88965
89110
  description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
88966
89111
  successDescription: "List of transfer approvals with their current status.",
88967
89112
  tags: [V2_TAG.compliance]
88968
- }).input(v2Input.paramsQuery(z477.object({
89113
+ }).input(v2Input.paramsQuery(z478.object({
88969
89114
  tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress
88970
89115
  }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
88971
89116
  var price = v2Contract.route({
@@ -88981,72 +89126,72 @@ var conversionTriggers = v2Contract.route({
88981
89126
  description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
88982
89127
  successDescription: "Paginated list of conversion triggers with effective pricing.",
88983
89128
  tags: [V2_TAG.token]
88984
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
89129
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
88985
89130
  var conversionRecords = v2Contract.route({
88986
89131
  method: "GET",
88987
89132
  path: "/tokens/{tokenAddress}/conversion/records",
88988
89133
  description: "List conversion lifecycle records for a token. Includes conversion-minter issuance details when available. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
88989
89134
  successDescription: "Paginated list of conversion records.",
88990
89135
  tags: [V2_TAG.token]
88991
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
89136
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
88992
89137
  var conversionTriggerEvents = v2Contract.route({
88993
89138
  method: "GET",
88994
89139
  path: "/tokens/{tokenAddress}/conversion/events",
88995
89140
  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.",
88996
89141
  successDescription: "Paginated list of conversion trigger lifecycle events.",
88997
89142
  tags: [V2_TAG.token]
88998
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
89143
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
88999
89144
  var convertsTo = v2Contract.route({
89000
89145
  method: "GET",
89001
89146
  path: "/tokens/{tokenAddress}/conversion/converts-to",
89002
89147
  description: "List target tokens that this token has been authorized to convert into. Reads the forward direction of the bidirectional conversion authorization edges.",
89003
89148
  successDescription: "Paginated list of forward conversion authorization edges.",
89004
89149
  tags: [V2_TAG.token]
89005
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
89150
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
89006
89151
  var convertedFrom = v2Contract.route({
89007
89152
  method: "GET",
89008
89153
  path: "/tokens/{tokenAddress}/conversion/converted-from",
89009
89154
  description: "List source tokens that have been authorized to convert into this token. Reads the reverse direction of the bidirectional conversion authorization edges.",
89010
89155
  successDescription: "Paginated list of reverse conversion authorization edges.",
89011
89156
  tags: [V2_TAG.token]
89012
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
89157
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
89013
89158
  var conversionHolderState = v2Contract.route({
89014
89159
  method: "GET",
89015
89160
  path: "/tokens/{tokenAddress}/conversion/holder-state",
89016
89161
  description: "Read holder-specific conversion state from the token's attached conversion feature. Returns null when no conversion feature is attached.",
89017
89162
  successDescription: "Conversion holder state retrieved successfully.",
89018
89163
  tags: [V2_TAG.token]
89019
- }).input(v2Input.paramsQuery(z477.object({
89164
+ }).input(v2Input.paramsQuery(z478.object({
89020
89165
  tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress
89021
- }), z477.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
89166
+ }), z478.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
89022
89167
  var votingDelegations = v2Contract.route({
89023
89168
  method: "GET",
89024
89169
  path: "/tokens/{tokenAddress}/voting-delegations",
89025
89170
  description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
89026
89171
  successDescription: "Paginated list of voting delegation lifecycle rows.",
89027
89172
  tags: [V2_TAG.token]
89028
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
89173
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
89029
89174
  var votingPowerDistribution = v2Contract.route({
89030
89175
  method: "GET",
89031
89176
  path: "/tokens/{tokenAddress}/voting-power/distribution",
89032
89177
  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.",
89033
89178
  successDescription: "Voting-power distribution summary retrieved successfully.",
89034
89179
  tags: [V2_TAG.token]
89035
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
89180
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
89036
89181
  var permitInfo = v2Contract.route({
89037
89182
  method: "GET",
89038
89183
  path: "/tokens/{tokenAddress}/permit-info",
89039
89184
  description: "Read EIP-2612 permit metadata from the token's attached permit feature, including the domain separator and optional owner nonce.",
89040
89185
  successDescription: "Permit feature metadata retrieved successfully.",
89041
89186
  tags: [V2_TAG.token]
89042
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z477.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
89187
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z478.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
89043
89188
  var featurePermitReplayHistory = v2Contract.route({
89044
89189
  method: "GET",
89045
89190
  path: "/tokens/{tokenAddress}/permit/replay-history",
89046
89191
  description: "List relayed `permit()` calls for a token's attached Permit feature. Lists every holder's relays by default; pass `filter[owner]=0x…` to scope to a single holder. 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.",
89047
89192
  successDescription: "Paginated list of permit replay events for the token, optionally filtered by owner.",
89048
89193
  tags: [V2_TAG.token]
89049
- }).input(v2Input.paramsQuery(z477.object({
89194
+ }).input(v2Input.paramsQuery(z478.object({
89050
89195
  tokenAddress: TokenReadInputSchema.shape.tokenAddress
89051
89196
  }), TokenFeaturePermitReplayHistoryV2InputSchema)).output(TokenFeaturePermitReplayHistoryV2OutputSchema);
89052
89197
  var historicalBalances = v2Contract.route({
@@ -89055,21 +89200,21 @@ var historicalBalances = v2Contract.route({
89055
89200
  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.",
89056
89201
  successDescription: "Paginated list of historical balance checkpoints.",
89057
89202
  tags: [V2_TAG.token, V2_TAG.tokenHistoricalBalances]
89058
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
89203
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
89059
89204
  var historicalBalanceAtBlock = v2Contract.route({
89060
89205
  method: "GET",
89061
89206
  path: "/tokens/{tokenAddress}/historical-balances/balance-at-block",
89062
89207
  description: "Read a holder balance and total supply from the token's attached historical-balances feature at a specific feature clock timepoint.",
89063
89208
  successDescription: "Historical balance snapshot retrieved successfully.",
89064
89209
  tags: [V2_TAG.token, V2_TAG.tokenHistoricalBalances]
89065
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
89210
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
89066
89211
  var historicalHoldersAtBlock = v2Contract.route({
89067
89212
  method: "GET",
89068
89213
  path: "/tokens/{tokenAddress}/historical-balances/holders-at-block",
89069
89214
  description: "List holder balances read from the token's attached historical-balances feature at a specific feature clock timepoint.",
89070
89215
  successDescription: "Paginated historical holder snapshot retrieved successfully.",
89071
89216
  tags: [V2_TAG.token, V2_TAG.tokenHistoricalBalances]
89072
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
89217
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
89073
89218
  var historicalBalanceAtBlockByHolder = v2Contract.route({
89074
89219
  method: "GET",
89075
89220
  path: "/tokens/{tokenAddress}/historical-balances/{holderAddress}",
@@ -89090,63 +89235,63 @@ var transactionFeeCollections = v2Contract.route({
89090
89235
  description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
89091
89236
  successDescription: "Paginated list of transaction-fee collections.",
89092
89237
  tags: [V2_TAG.token]
89093
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
89238
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
89094
89239
  var transactionFeeCollectionPayer = v2Contract.route({
89095
89240
  method: "GET",
89096
89241
  path: "/tokens/{tokenAddress}/transaction-fee/payers/{payer}",
89097
89242
  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.",
89098
89243
  successDescription: "Per-payer transaction-fee collection summary.",
89099
89244
  tags: [V2_TAG.token]
89100
- }).input(v2Input.params(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenTransactionFeeCollectionPayerV2InputSchema.shape))).output(TokenTransactionFeeCollectionPayerV2OutputSchema);
89245
+ }).input(v2Input.params(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenTransactionFeeCollectionPayerV2InputSchema.shape))).output(TokenTransactionFeeCollectionPayerV2OutputSchema);
89101
89246
  var feeAccrualEvents = v2Contract.route({
89102
89247
  method: "GET",
89103
89248
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
89104
89249
  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.",
89105
89250
  successDescription: "Paginated list of fee-accrual events.",
89106
89251
  tags: [V2_TAG.token]
89107
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
89252
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
89108
89253
  var feeAccrualPayer = v2Contract.route({
89109
89254
  method: "GET",
89110
89255
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/payers/{payer}",
89111
89256
  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.",
89112
89257
  successDescription: "Per-payer accrual summary.",
89113
89258
  tags: [V2_TAG.token]
89114
- }).input(v2Input.params(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
89259
+ }).input(v2Input.params(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
89115
89260
  var feeReconciliations = v2Contract.route({
89116
89261
  method: "GET",
89117
89262
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/reconciliations",
89118
89263
  description: "List fee-reconciliation rows for a token's transaction-fee-accounting feature. Each row captures one FeesReconciled observation (period end, caller, recipient, reconciled amount). Supports JSON:API pagination, sorting, and filtering; defaults to newest period end first.",
89119
89264
  successDescription: "Paginated list of fee reconciliations.",
89120
89265
  tags: [V2_TAG.token]
89121
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeReconciliationsV2InputSchema)).output(TokenFeeReconciliationsV2OutputSchema);
89266
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeReconciliationsV2InputSchema)).output(TokenFeeReconciliationsV2OutputSchema);
89122
89267
  var feeExemptions = v2Contract.route({
89123
89268
  method: "GET",
89124
89269
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/exemptions",
89125
89270
  description: "List fee-exemption rows for a token's transaction-fee-accounting feature. Each row is the current exemption state for one account (account, exempt flag, last-updated time and block). Supports JSON:API pagination, sorting, and filtering; defaults to newest update first.",
89126
89271
  successDescription: "Paginated list of fee exemptions.",
89127
89272
  tags: [V2_TAG.token]
89128
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeExemptionsV2InputSchema)).output(TokenFeeExemptionsV2OutputSchema);
89273
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeExemptionsV2InputSchema)).output(TokenFeeExemptionsV2OutputSchema);
89129
89274
  var externalFeeCollectionEvents = v2Contract.route({
89130
89275
  method: "GET",
89131
89276
  path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
89132
89277
  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.",
89133
89278
  successDescription: "Paginated list of external-fee collection events.",
89134
89279
  tags: [V2_TAG.token]
89135
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
89280
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
89136
89281
  var aumFeeEvents = v2Contract.route({
89137
89282
  method: "GET",
89138
89283
  path: "/tokens/{tokenAddress}/aum-fee/collection-events",
89139
89284
  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.",
89140
89285
  successDescription: "Paginated list of AUM-fee collection events.",
89141
89286
  tags: [V2_TAG.token]
89142
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenAumFeeEventsV2InputSchema)).output(TokenAumFeeEventsV2OutputSchema);
89287
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenAumFeeEventsV2InputSchema)).output(TokenAumFeeEventsV2OutputSchema);
89143
89288
  var maturityRedemptionEvents = v2Contract.route({
89144
89289
  method: "GET",
89145
89290
  path: "/tokens/{tokenAddress}/maturity-redemption/redemption-events",
89146
89291
  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.",
89147
89292
  successDescription: "Paginated list of maturity-redemption events.",
89148
89293
  tags: [V2_TAG.token]
89149
- }).input(v2Input.paramsQuery(z477.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenMaturityRedemptionEventsV2InputSchema)).output(TokenMaturityRedemptionEventsV2OutputSchema);
89294
+ }).input(v2Input.paramsQuery(z478.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenMaturityRedemptionEventsV2InputSchema)).output(TokenMaturityRedemptionEventsV2OutputSchema);
89150
89295
  var treasuryHealth = v2Contract.route({
89151
89296
  method: "GET",
89152
89297
  path: "/tokens/{tokenAddress}/treasury/health",
@@ -89193,13 +89338,14 @@ var tokenV2ReadsContract = {
89193
89338
  aumFeeEvents,
89194
89339
  maturityRedemptionEvents,
89195
89340
  participantRolesView: participantRolesView2,
89341
+ aaRoleMigrationPending,
89196
89342
  price,
89197
89343
  treasuryHealth,
89198
89344
  ...permitSignaturesV2ReadsContract
89199
89345
  };
89200
89346
 
89201
89347
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
89202
- import { z as z478 } from "zod";
89348
+ import { z as z479 } from "zod";
89203
89349
  var statsBondStatus = v2Contract.route({
89204
89350
  method: "GET",
89205
89351
  path: "/tokens/{tokenAddress}/stats/bond-status",
@@ -89220,25 +89366,25 @@ var statsTotalSupply = v2Contract.route({
89220
89366
  description: "Get total supply history statistics for a specific token.",
89221
89367
  successDescription: "Token total supply history statistics.",
89222
89368
  tags: [V2_TAG.tokenStats]
89223
- }).input(v2Input.paramsQuery(z478.object({
89369
+ }).input(v2Input.paramsQuery(z479.object({
89224
89370
  tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
89225
- }), z478.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
89371
+ }), z479.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
89226
89372
  var statsSupplyChanges = v2Contract.route({
89227
89373
  method: "GET",
89228
89374
  path: "/tokens/{tokenAddress}/stats/supply-changes",
89229
89375
  description: "Get supply changes history (minted/burned) statistics for a specific token.",
89230
89376
  successDescription: "Token supply changes history statistics.",
89231
89377
  tags: [V2_TAG.tokenStats]
89232
- }).input(v2Input.paramsQuery(z478.object({
89378
+ }).input(v2Input.paramsQuery(z479.object({
89233
89379
  tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
89234
- }), z478.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
89380
+ }), z479.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
89235
89381
  var statsVolume = v2Contract.route({
89236
89382
  method: "GET",
89237
89383
  path: "/tokens/{tokenAddress}/stats/volume",
89238
89384
  description: "Get total volume history statistics for a specific token.",
89239
89385
  successDescription: "Token total volume history statistics.",
89240
89386
  tags: [V2_TAG.tokenStats]
89241
- }).input(v2Input.paramsQuery(z478.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z478.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
89387
+ }).input(v2Input.paramsQuery(z479.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z479.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
89242
89388
  var statsWalletDistribution = v2Contract.route({
89243
89389
  method: "GET",
89244
89390
  path: "/tokens/{tokenAddress}/stats/wallet-distribution",
@@ -89272,46 +89418,46 @@ var tokenV2StatsContract = {
89272
89418
  };
89273
89419
 
89274
89420
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.contract.ts
89275
- import { z as z482 } from "zod";
89421
+ import { z as z483 } from "zod";
89276
89422
 
89277
89423
  // ../../packages/dalp/api-contract/src/routes/token/topic-schemes/routes/topic-scheme.list.schema.ts
89278
- import { z as z479 } from "zod";
89279
- var TokenTopicSchemeInheritanceLevelSchema = z479.enum(["token", "system", "global"]).meta({
89424
+ import { z as z480 } from "zod";
89425
+ var TokenTopicSchemeInheritanceLevelSchema = z480.enum(["token", "system", "global"]).meta({
89280
89426
  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.",
89281
89427
  examples: ["token"]
89282
89428
  });
89283
- var TokenTopicSchemeSchema = z479.object({
89284
- id: z479.string().meta({
89429
+ var TokenTopicSchemeSchema = z480.object({
89430
+ id: z480.string().meta({
89285
89431
  description: "Synthetic identifier for the topic scheme row (registry + topicId).",
89286
89432
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F#1"]
89287
89433
  }),
89288
- topicId: z479.string().meta({
89434
+ topicId: z480.string().meta({
89289
89435
  description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
89290
89436
  examples: ["1", "100"]
89291
89437
  }),
89292
- name: z479.string().meta({
89438
+ name: z480.string().meta({
89293
89439
  description: "Human-readable topic-scheme name registered on the registry.",
89294
89440
  examples: ["Know Your Customer", "Accredited Investor"]
89295
89441
  }),
89296
- signature: z479.string().meta({
89442
+ signature: z480.string().meta({
89297
89443
  description: "ABI signature describing the claim data shape verified by this scheme.",
89298
89444
  examples: ["(string)", "(uint256,bool)"]
89299
89445
  }),
89300
- registry: z479.object({
89446
+ registry: z480.object({
89301
89447
  id: ethereumAddress.meta({
89302
89448
  description: "Topic Scheme Registry contract address that holds this row.",
89303
89449
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89304
89450
  })
89305
89451
  }),
89306
89452
  inheritanceLevel: TokenTopicSchemeInheritanceLevelSchema,
89307
- isShadowed: z479.boolean().meta({
89453
+ isShadowed: z480.boolean().meta({
89308
89454
  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.",
89309
89455
  examples: [false]
89310
89456
  })
89311
89457
  });
89312
89458
 
89313
89459
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.list.schema.ts
89314
- import { z as z480 } from "zod";
89460
+ import { z as z481 } from "zod";
89315
89461
  var TOKEN_TOPIC_SCHEMES_COLLECTION_FIELDS = {
89316
89462
  topicId: bigintField({ defaultOperator: "eq" }),
89317
89463
  name: textField({ defaultOperator: "iLike" }),
@@ -89323,14 +89469,14 @@ var TokenTopicSchemesV2ListInputSchema = createCollectionInputSchema(TOKEN_TOPIC
89323
89469
  globalSearch: true
89324
89470
  });
89325
89471
  var TokenTopicSchemesV2ListOutputSchema = createPaginatedResponse(TokenTopicSchemeSchema, {
89326
- hasTokenRegistry: z480.boolean().meta({
89472
+ hasTokenRegistry: z481.boolean().meta({
89327
89473
  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."
89328
89474
  })
89329
89475
  });
89330
89476
 
89331
89477
  // ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.mutations.schema.ts
89332
89478
  import { parseAbiParameters } from "viem";
89333
- import { z as z481 } from "zod";
89479
+ import { z as z482 } from "zod";
89334
89480
  function normalizeClaimDataSignature(signature) {
89335
89481
  return `(${signature.trim()})`;
89336
89482
  }
@@ -89344,7 +89490,7 @@ function isAbiTypeList(typeList) {
89344
89490
  return false;
89345
89491
  }
89346
89492
  }
89347
- var ClaimDataSignatureSchema = z481.string().min(1, "Signature is required").superRefine((value3, ctx) => {
89493
+ var ClaimDataSignatureSchema = z482.string().min(1, "Signature is required").superRefine((value3, ctx) => {
89348
89494
  if (value3.length === 0) {
89349
89495
  return;
89350
89496
  }
@@ -89357,7 +89503,7 @@ var ClaimDataSignatureSchema = z481.string().min(1, "Signature is required").sup
89357
89503
  }
89358
89504
  });
89359
89505
  var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
89360
- name: z481.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
89506
+ name: z482.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
89361
89507
  description: "Human-readable name for the token-level topic scheme.",
89362
89508
  examples: ["Custom Compliance", "Asset Origin"]
89363
89509
  }),
@@ -89367,20 +89513,20 @@ var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
89367
89513
  })
89368
89514
  });
89369
89515
  var TokenTopicSchemeCreateOutputSchema = BaseMutationOutputSchema.extend({
89370
- name: z481.string().meta({
89516
+ name: z482.string().meta({
89371
89517
  description: "Name of the created token-level topic scheme.",
89372
89518
  examples: ["Custom Compliance", "Asset Origin"]
89373
89519
  })
89374
89520
  });
89375
- var TokenTopicSchemeDeleteParamsSchema = z481.object({
89376
- topicId: z481.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
89521
+ var TokenTopicSchemeDeleteParamsSchema = z482.object({
89522
+ topicId: z482.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
89377
89523
  description: "Numeric topic id of the token-level scheme to remove (decimal string).",
89378
89524
  examples: ["1", "100"]
89379
89525
  })
89380
89526
  });
89381
89527
  var TokenTopicSchemeDeleteInputSchema = MutationInputSchema;
89382
89528
  var TokenTopicSchemeDeleteOutputSchema = BaseMutationOutputSchema.extend({
89383
- topicId: z481.string().meta({
89529
+ topicId: z482.string().meta({
89384
89530
  description: "Numeric topic id of the removed token-level scheme.",
89385
89531
  examples: ["1", "100"]
89386
89532
  })
@@ -89409,7 +89555,7 @@ var del12 = v2Contract.route({
89409
89555
  description: "Remove a token-specific topic scheme from the token-level Topic Scheme Registry by topic id.",
89410
89556
  successDescription: "Token topic scheme removed successfully.",
89411
89557
  tags: [V2_TAG.claimTopics]
89412
- }).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z482.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
89558
+ }).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z483.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
89413
89559
  var tokenV2TopicSchemesContract = {
89414
89560
  list: list40,
89415
89561
  create: create19,
@@ -89417,54 +89563,54 @@ var tokenV2TopicSchemesContract = {
89417
89563
  };
89418
89564
 
89419
89565
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.contract.ts
89420
- import { z as z486 } from "zod";
89566
+ import { z as z487 } from "zod";
89421
89567
 
89422
89568
  // ../../packages/dalp/api-contract/src/routes/token/trusted-issuers/routes/trusted-issuer.list.schema.ts
89423
- import { z as z483 } from "zod";
89424
- var TokenTrustedIssuerInheritanceLevelSchema = z483.enum(["token", "system", "global"]).meta({
89569
+ import { z as z484 } from "zod";
89570
+ var TokenTrustedIssuerInheritanceLevelSchema = z484.enum(["token", "system", "global"]).meta({
89425
89571
  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.",
89426
89572
  examples: ["token"]
89427
89573
  });
89428
- var TokenTrustedIssuerClaimTopicSchema = z483.object({
89429
- topicId: z483.string().meta({
89574
+ var TokenTrustedIssuerClaimTopicSchema = z484.object({
89575
+ topicId: z484.string().meta({
89430
89576
  description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
89431
89577
  examples: ["1", "100"]
89432
89578
  }),
89433
- name: z483.string().meta({
89579
+ name: z484.string().meta({
89434
89580
  description: "Human-readable topic-scheme name resolved from the token's topic-scheme registry chain.",
89435
89581
  examples: ["Know Your Customer", "Accredited Investor"]
89436
89582
  })
89437
89583
  });
89438
- var TokenTrustedIssuerSchema = z483.object({
89584
+ var TokenTrustedIssuerSchema = z484.object({
89439
89585
  id: ethereumAddress.meta({
89440
89586
  description: "Issuer identity address — the on-chain key for the trusted issuer.",
89441
89587
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89442
89588
  }),
89443
- account: z483.object({
89589
+ account: z484.object({
89444
89590
  id: ethereumAddress.meta({
89445
89591
  description: "Issuer wallet address.",
89446
89592
  examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
89447
89593
  })
89448
89594
  }).nullable().optional().meta({ description: "Identity account associated with the issuer, when resolvable." }),
89449
- claimTopics: z483.array(TokenTrustedIssuerClaimTopicSchema).meta({
89595
+ claimTopics: z484.array(TokenTrustedIssuerClaimTopicSchema).meta({
89450
89596
  description: "Claim topics this issuer is trusted for at its registry tier.",
89451
89597
  examples: [[]]
89452
89598
  }),
89453
- registry: z483.object({
89599
+ registry: z484.object({
89454
89600
  id: ethereumAddress.meta({
89455
89601
  description: "Trusted Issuer Registry contract address that holds this row.",
89456
89602
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89457
89603
  })
89458
89604
  }),
89459
89605
  inheritanceLevel: TokenTrustedIssuerInheritanceLevelSchema,
89460
- isInheritedElsewhere: z483.boolean().meta({
89606
+ isInheritedElsewhere: z484.boolean().meta({
89461
89607
  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.",
89462
89608
  examples: [false]
89463
89609
  })
89464
89610
  });
89465
89611
 
89466
89612
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.list.schema.ts
89467
- import { z as z484 } from "zod";
89613
+ import { z as z485 } from "zod";
89468
89614
  var TOKEN_TRUSTED_ISSUERS_COLLECTION_FIELDS = {
89469
89615
  account: textField({ defaultOperator: "iLike" }),
89470
89616
  source: enumField(["token", "system", "global"], { sortable: false })
@@ -89474,18 +89620,18 @@ var TokenTrustedIssuersV2ListInputSchema = createCollectionInputSchema(TOKEN_TRU
89474
89620
  globalSearch: true
89475
89621
  });
89476
89622
  var TokenTrustedIssuersV2ListOutputSchema = createPaginatedResponse(TokenTrustedIssuerSchema, {
89477
- hasTrustedIssuersRegistry: z484.boolean().meta({
89623
+ hasTrustedIssuersRegistry: z485.boolean().meta({
89478
89624
  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."
89479
89625
  })
89480
89626
  });
89481
89627
 
89482
89628
  // ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.mutations.schema.ts
89483
- import { z as z485 } from "zod";
89629
+ import { z as z486 } from "zod";
89484
89630
  var MAX_UINT2567 = 2n ** 256n - 1n;
89485
89631
  var MAX_CLAIM_TOPIC_IDS = 50;
89486
89632
  var CLAIM_TOPIC_ID_FORMAT_MESSAGE = "Each claim topic id must be a non-negative decimal integer.";
89487
89633
  var CLAIM_TOPIC_ID_RANGE_MESSAGE = "Each claim topic id must fit within uint256.";
89488
- var ClaimTopicIdSchema = z485.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
89634
+ var ClaimTopicIdSchema = z486.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
89489
89635
  if (!/^\d+$/.test(value3)) {
89490
89636
  ctx.addIssue({ code: "custom", message: CLAIM_TOPIC_ID_FORMAT_MESSAGE });
89491
89637
  return;
@@ -89499,7 +89645,7 @@ var TokenTrustedIssuerCreateInputSchema = MutationInputSchema.extend({
89499
89645
  description: "Identity address of the trusted issuer to add to the token-level registry.",
89500
89646
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89501
89647
  }),
89502
- claimTopicIds: z485.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({
89648
+ claimTopicIds: z486.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({
89503
89649
  description: "Decimal-string topic ids the issuer is trusted for, passed as the on-chain uint256[] argument.",
89504
89650
  examples: [["1", "2", "100"]]
89505
89651
  })
@@ -89510,7 +89656,7 @@ var TokenTrustedIssuerCreateOutputSchema = BaseMutationOutputSchema.extend({
89510
89656
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89511
89657
  })
89512
89658
  });
89513
- var TokenTrustedIssuerDeleteParamsSchema = z485.object({
89659
+ var TokenTrustedIssuerDeleteParamsSchema = z486.object({
89514
89660
  issuerAddress: ethereumAddress.meta({
89515
89661
  description: "Identity address of the token-level trusted issuer to remove.",
89516
89662
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -89547,7 +89693,7 @@ var del13 = v2Contract.route({
89547
89693
  description: "Remove a token-specific trusted issuer from the token-level Trusted Issuer Registry by issuer address.",
89548
89694
  successDescription: "Token trusted issuer removed successfully.",
89549
89695
  tags: [V2_TAG.trustedIssuers]
89550
- }).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z486.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
89696
+ }).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z487.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
89551
89697
  var tokenV2TrustedIssuersContract = {
89552
89698
  list: list41,
89553
89699
  create: create20,
@@ -89555,7 +89701,7 @@ var tokenV2TrustedIssuersContract = {
89555
89701
  };
89556
89702
 
89557
89703
  // ../../packages/dalp/api-contract/src/routes/v2/token/features/features.v2.attach.schema.ts
89558
- import { z as z487 } from "zod";
89704
+ import { z as z488 } from "zod";
89559
89705
 
89560
89706
  // ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.aum-fee-create.schema.ts
89561
89707
  var TokenFeatureAumFeeCreateBaseSchema = TokenMutationInputSchema.extend({
@@ -89600,53 +89746,53 @@ var TokenFeatureTransactionFeeCreateBodySchema = TokenFeatureTransactionFeeCreat
89600
89746
  });
89601
89747
 
89602
89748
  // ../../packages/dalp/api-contract/src/routes/v2/token/features/features.v2.attach.schema.ts
89603
- var TokenFeatureAttachBodySchema = z487.union([
89604
- z487.object({ name: z487.literal("fixed-treasury-yield") }).and(TokenFeatureFixedTreasuryYieldCreateBodySchema),
89605
- z487.object({ name: z487.literal("maturity-redemption") }).and(TokenFeatureMaturityRedemptionCreateBodySchema),
89606
- z487.object({ name: z487.literal("permit") }).and(TokenFeaturePermitCreateBodySchema),
89607
- z487.object({ name: z487.literal("transaction-fee") }).and(TokenFeatureTransactionFeeCreateBodySchema),
89608
- z487.object({ name: z487.literal("external-transaction-fee") }).and(TokenFeatureExternalTransactionFeeCreateBodySchema),
89609
- z487.object({ name: z487.literal("conversion-minter") }).and(TokenFeatureConversionMinterCreateBodySchema),
89610
- z487.object({ name: z487.literal("aum-fee") }).and(TokenFeatureAumFeeCreateBodySchema),
89611
- z487.object({ name: z487.literal("voting-power") }).and(TokenFeatureVotingPowerCreateBodySchema),
89612
- z487.object({ name: z487.literal("transaction-fee-accounting") }).and(TokenFeatureTransactionFeeAccountingCreateBodySchema)
89749
+ var TokenFeatureAttachBodySchema = z488.union([
89750
+ z488.object({ name: z488.literal("fixed-treasury-yield") }).and(TokenFeatureFixedTreasuryYieldCreateBodySchema),
89751
+ z488.object({ name: z488.literal("maturity-redemption") }).and(TokenFeatureMaturityRedemptionCreateBodySchema),
89752
+ z488.object({ name: z488.literal("permit") }).and(TokenFeaturePermitCreateBodySchema),
89753
+ z488.object({ name: z488.literal("transaction-fee") }).and(TokenFeatureTransactionFeeCreateBodySchema),
89754
+ z488.object({ name: z488.literal("external-transaction-fee") }).and(TokenFeatureExternalTransactionFeeCreateBodySchema),
89755
+ z488.object({ name: z488.literal("conversion-minter") }).and(TokenFeatureConversionMinterCreateBodySchema),
89756
+ z488.object({ name: z488.literal("aum-fee") }).and(TokenFeatureAumFeeCreateBodySchema),
89757
+ z488.object({ name: z488.literal("voting-power") }).and(TokenFeatureVotingPowerCreateBodySchema),
89758
+ z488.object({ name: z488.literal("transaction-fee-accounting") }).and(TokenFeatureTransactionFeeAccountingCreateBodySchema)
89613
89759
  ]);
89614
89760
 
89615
89761
  // ../../packages/dalp/api-contract/src/routes/v2/token/features/features.v2.detach.schema.ts
89616
- import { z as z488 } from "zod";
89762
+ import { z as z489 } from "zod";
89617
89763
  var baseDetachBody = TokenMutationInputSchema.omit({ tokenAddress: true });
89618
- var TokenFeatureDetachBodySchema = z488.union([
89619
- z488.object({ name: z488.literal("fixed-treasury-yield") }).and(baseDetachBody),
89620
- z488.object({ name: z488.literal("maturity-redemption") }).and(baseDetachBody),
89621
- z488.object({ name: z488.literal("permit") }).and(baseDetachBody),
89622
- z488.object({ name: z488.literal("transaction-fee") }).and(baseDetachBody),
89623
- z488.object({ name: z488.literal("external-transaction-fee") }).and(baseDetachBody),
89624
- z488.object({ name: z488.literal("conversion-minter") }).and(baseDetachBody),
89625
- z488.object({ name: z488.literal("aum-fee") }).and(baseDetachBody),
89626
- z488.object({ name: z488.literal("voting-power") }).and(baseDetachBody),
89627
- z488.object({ name: z488.literal("transaction-fee-accounting") }).and(baseDetachBody)
89764
+ var TokenFeatureDetachBodySchema = z489.union([
89765
+ z489.object({ name: z489.literal("fixed-treasury-yield") }).and(baseDetachBody),
89766
+ z489.object({ name: z489.literal("maturity-redemption") }).and(baseDetachBody),
89767
+ z489.object({ name: z489.literal("permit") }).and(baseDetachBody),
89768
+ z489.object({ name: z489.literal("transaction-fee") }).and(baseDetachBody),
89769
+ z489.object({ name: z489.literal("external-transaction-fee") }).and(baseDetachBody),
89770
+ z489.object({ name: z489.literal("conversion-minter") }).and(baseDetachBody),
89771
+ z489.object({ name: z489.literal("aum-fee") }).and(baseDetachBody),
89772
+ z489.object({ name: z489.literal("voting-power") }).and(baseDetachBody),
89773
+ z489.object({ name: z489.literal("transaction-fee-accounting") }).and(baseDetachBody)
89628
89774
  ]);
89629
89775
 
89630
89776
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
89631
- import { z as z490 } from "zod";
89777
+ import { z as z491 } from "zod";
89632
89778
 
89633
89779
  // ../../packages/core/validation/src/feature-types.ts
89634
- import { z as z489 } from "zod";
89780
+ import { z as z490 } from "zod";
89635
89781
  var featureTypes = tokenFeatureIds;
89636
- var FeatureTypeSchema = z489.enum(featureTypes);
89782
+ var FeatureTypeSchema = z490.enum(featureTypes);
89637
89783
 
89638
89784
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
89639
89785
  var feeRate = (description) => feeRateBps().meta({
89640
89786
  description: `${description} (1 bps = 0.01%, max 10 000 = 100%)`,
89641
89787
  examples: [200]
89642
89788
  });
89643
- var TokenFeatureAUMFeeSchema = z490.object({
89789
+ var TokenFeatureAUMFeeSchema = z491.object({
89644
89790
  feeBps: feeRate("Annual AUM fee rate"),
89645
89791
  feeRecipient: nonZeroEthereumAddress.meta({
89646
89792
  description: "Address receiving the collected AUM fee",
89647
89793
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89648
89794
  }),
89649
- isFrozen: z490.boolean().meta({
89795
+ isFrozen: z491.boolean().meta({
89650
89796
  description: "Whether fee collection is frozen",
89651
89797
  examples: [false]
89652
89798
  }),
@@ -89659,7 +89805,7 @@ var TokenFeatureAUMFeeSchema = z490.object({
89659
89805
  examples: ["1000.50"]
89660
89806
  })
89661
89807
  }).nullable();
89662
- var TokenFeatureMaturityRedemptionSchema = z490.object({
89808
+ var TokenFeatureMaturityRedemptionSchema = z491.object({
89663
89809
  maturityDate: timestamp().meta({
89664
89810
  description: "Bond maturity date",
89665
89811
  examples: ["2025-01-01T00:00:00Z"]
@@ -89676,7 +89822,7 @@ var TokenFeatureMaturityRedemptionSchema = z490.object({
89676
89822
  description: "Treasury holding denomination assets for redemption",
89677
89823
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89678
89824
  }),
89679
- isMatured: z490.boolean().meta({
89825
+ isMatured: z491.boolean().meta({
89680
89826
  description: "Whether the bond has reached maturity",
89681
89827
  examples: [false]
89682
89828
  }),
@@ -89689,7 +89835,7 @@ var TokenFeatureMaturityRedemptionSchema = z490.object({
89689
89835
  examples: ["500.00"]
89690
89836
  })
89691
89837
  }).nullable();
89692
- var TokenFeatureTransactionFeeSchema = z490.object({
89838
+ var TokenFeatureTransactionFeeSchema = z491.object({
89693
89839
  mintFeeBps: feeRate("Mint fee rate"),
89694
89840
  burnFeeBps: feeRate("Burn fee rate"),
89695
89841
  transferFeeBps: feeRate("Transfer fee rate"),
@@ -89697,7 +89843,7 @@ var TokenFeatureTransactionFeeSchema = z490.object({
89697
89843
  description: "Address receiving collected transaction fees",
89698
89844
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89699
89845
  }),
89700
- isFrozen: z490.boolean().meta({
89846
+ isFrozen: z491.boolean().meta({
89701
89847
  description: "Whether fee collection is frozen",
89702
89848
  examples: [false]
89703
89849
  }),
@@ -89706,7 +89852,7 @@ var TokenFeatureTransactionFeeSchema = z490.object({
89706
89852
  examples: ["250.75"]
89707
89853
  })
89708
89854
  }).nullable();
89709
- var TokenFeatureHistoricalBalancesSchema = z490.object({
89855
+ var TokenFeatureHistoricalBalancesSchema = z491.object({
89710
89856
  enabledAt: timestamp().meta({
89711
89857
  description: "When historical balance tracking was enabled",
89712
89858
  examples: ["2024-11-14T22:13:20Z"]
@@ -89716,7 +89862,7 @@ var TokenFeatureHistoricalBalancesSchema = z490.object({
89716
89862
  examples: ["1000000.00"]
89717
89863
  })
89718
89864
  }).nullable();
89719
- var TokenFeatureFixedTreasuryYieldSchema = z490.object({
89865
+ var TokenFeatureFixedTreasuryYieldSchema = z491.object({
89720
89866
  startDate: timestamp().meta({
89721
89867
  description: "Yield schedule start",
89722
89868
  examples: ["2024-11-14T22:13:20Z"]
@@ -89725,11 +89871,11 @@ var TokenFeatureFixedTreasuryYieldSchema = z490.object({
89725
89871
  description: "Yield schedule end",
89726
89872
  examples: ["2025-01-01T00:00:00Z"]
89727
89873
  }),
89728
- rate: z490.number().meta({
89874
+ rate: z491.number().meta({
89729
89875
  description: "Annual yield rate (percentage, e.g. 5.5 = 5.5%)",
89730
89876
  examples: [5.5]
89731
89877
  }),
89732
- interval: z490.coerce.string().meta({
89878
+ interval: z491.coerce.string().meta({
89733
89879
  description: "Payout interval in seconds (string-encoded interval)",
89734
89880
  examples: ["2592000"]
89735
89881
  }),
@@ -89761,13 +89907,13 @@ var TokenFeatureFixedTreasuryYieldSchema = z490.object({
89761
89907
  description: "Period scheduled to start after the current one; null on the final period",
89762
89908
  examples: [null]
89763
89909
  }),
89764
- periods: z490.array(fixedYieldSchedulePeriod()).meta({
89910
+ periods: z491.array(fixedYieldSchedulePeriod()).meta({
89765
89911
  description: "All scheduled periods. Per-period totalYield/totalUnclaimed populate as each period closes; configured rows exist from creation",
89766
89912
  examples: [[]]
89767
89913
  })
89768
89914
  }).nullable();
89769
- var TokenFeatureVotingPowerSchema = z490.object({}).nullable();
89770
- var TokenFeatureExternalTransactionFeeSchema = z490.object({
89915
+ var TokenFeatureVotingPowerSchema = z491.object({}).nullable();
89916
+ var TokenFeatureExternalTransactionFeeSchema = z491.object({
89771
89917
  feeToken: ethereumAddress.meta({
89772
89918
  description: "ERC-20 token used to pay fees",
89773
89919
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -89788,7 +89934,7 @@ var TokenFeatureExternalTransactionFeeSchema = z490.object({
89788
89934
  description: "Address receiving collected external fees",
89789
89935
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89790
89936
  }),
89791
- isFrozen: z490.boolean().meta({
89937
+ isFrozen: z491.boolean().meta({
89792
89938
  description: "Whether fee collection is frozen",
89793
89939
  examples: [false]
89794
89940
  }),
@@ -89797,7 +89943,7 @@ var TokenFeatureExternalTransactionFeeSchema = z490.object({
89797
89943
  examples: ["100.00"]
89798
89944
  })
89799
89945
  }).nullable();
89800
- var TokenFeatureTransactionFeeAccountingSchema = z490.object({
89946
+ var TokenFeatureTransactionFeeAccountingSchema = z491.object({
89801
89947
  mintFeeBps: feeRate("Mint fee rate (accounting mode)"),
89802
89948
  burnFeeBps: feeRate("Burn fee rate (accounting mode)"),
89803
89949
  transferFeeBps: feeRate("Transfer fee rate (accounting mode)"),
@@ -89805,7 +89951,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z490.object({
89805
89951
  description: "Address receiving accrued fees upon reconciliation",
89806
89952
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89807
89953
  }),
89808
- isFrozen: z490.boolean().meta({
89954
+ isFrozen: z491.boolean().meta({
89809
89955
  description: "Whether fee accrual is frozen",
89810
89956
  examples: [false]
89811
89957
  }),
@@ -89818,7 +89964,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z490.object({
89818
89964
  examples: ["100.00"]
89819
89965
  })
89820
89966
  }).nullable();
89821
- var TokenFeatureConversionSchema = z490.object({
89967
+ var TokenFeatureConversionSchema = z491.object({
89822
89968
  targetToken: ethereumAddress.meta({
89823
89969
  description: "Token that holders can convert to",
89824
89970
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -89835,17 +89981,17 @@ var TokenFeatureConversionSchema = z490.object({
89835
89981
  description: "Conversion discount rate (1 bps = 0.01%, max 9999 = 99.99%) — strictly less than 100% per on-chain invariant",
89836
89982
  examples: [200, 2000]
89837
89983
  }),
89838
- partialAllowed: z490.boolean().meta({
89984
+ partialAllowed: z491.boolean().meta({
89839
89985
  description: "Whether partial conversions are allowed",
89840
89986
  examples: [true]
89841
89987
  })
89842
89988
  }).nullable();
89843
- var TokenFeatureConversionMinterSchema = z490.object({
89844
- authorizedConverters: z490.array(ethereumAddress).meta({
89989
+ var TokenFeatureConversionMinterSchema = z491.object({
89990
+ authorizedConverters: z491.array(ethereumAddress).meta({
89845
89991
  description: "Addresses authorized to perform conversions",
89846
89992
  examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
89847
89993
  }),
89848
- totalIssuances: z490.number().int().meta({
89994
+ totalIssuances: z491.number().int().meta({
89849
89995
  description: "Total number of conversion issuances performed",
89850
89996
  examples: [42]
89851
89997
  }),
@@ -89854,17 +90000,17 @@ var TokenFeatureConversionMinterSchema = z490.object({
89854
90000
  examples: ["50000.00"]
89855
90001
  })
89856
90002
  }).nullable();
89857
- var TokenFeaturePermitSchema = z490.object({
89858
- typeId: z490.literal("permit").meta({
90003
+ var TokenFeaturePermitSchema = z491.object({
90004
+ typeId: z491.literal("permit").meta({
89859
90005
  description: "Permit feature type identifier",
89860
90006
  examples: ["permit"]
89861
90007
  }),
89862
- featureFactory: z490.object({
89863
- typeId: z490.string().meta({
90008
+ featureFactory: z491.object({
90009
+ typeId: z491.string().meta({
89864
90010
  description: "Permit feature factory type identifier",
89865
90011
  examples: ["permit-feature-factory"]
89866
90012
  }),
89867
- name: z490.string().meta({
90013
+ name: z491.string().meta({
89868
90014
  description: "Human-readable name of the permit feature factory",
89869
90015
  examples: ["Permit Feature Factory"]
89870
90016
  })
@@ -89874,7 +90020,7 @@ var TokenFeaturePermitSchema = z490.object({
89874
90020
  examples: ["2024-11-14T22:13:20Z"]
89875
90021
  })
89876
90022
  }).nullable();
89877
- var TokenFeatureSchema = z490.object({
90023
+ var TokenFeatureSchema = z491.object({
89878
90024
  featureAddress: ethereumAddress.meta({
89879
90025
  description: "Feature contract address",
89880
90026
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -89883,17 +90029,17 @@ var TokenFeatureSchema = z490.object({
89883
90029
  description: "Feature type identifier",
89884
90030
  examples: ["aum-fee", "maturity-redemption", "transaction-fee"]
89885
90031
  }),
89886
- featureFactory: z490.object({
89887
- typeId: z490.string().meta({
90032
+ featureFactory: z491.object({
90033
+ typeId: z491.string().meta({
89888
90034
  description: "Feature factory type identifier",
89889
90035
  examples: ["aum-fee", "maturity-redemption"]
89890
90036
  }),
89891
- name: z490.string().meta({
90037
+ name: z491.string().meta({
89892
90038
  description: "Human-readable name of the feature factory",
89893
90039
  examples: ["AUM Fee Feature Factory"]
89894
90040
  })
89895
90041
  }),
89896
- isAttached: z490.boolean().meta({
90042
+ isAttached: z491.boolean().meta({
89897
90043
  description: "Whether the feature is currently attached to the token",
89898
90044
  examples: [true]
89899
90045
  }),
@@ -89950,13 +90096,13 @@ var TokenFeatureSchema = z490.object({
89950
90096
  examples: [null]
89951
90097
  })
89952
90098
  });
89953
- var TokenFeaturesResponseSchema = z490.object({
89954
- configurable: z490.object({
89955
- features: z490.array(TokenFeatureSchema).meta({
90099
+ var TokenFeaturesResponseSchema = z491.object({
90100
+ configurable: z491.object({
90101
+ features: z491.array(TokenFeatureSchema).meta({
89956
90102
  description: "Feature configurations for the token",
89957
90103
  examples: [[]]
89958
90104
  }),
89959
- featuresCount: z490.number().int().meta({
90105
+ featuresCount: z491.number().int().meta({
89960
90106
  description: "Total number of features attached to the token",
89961
90107
  examples: [3]
89962
90108
  })
@@ -89967,7 +90113,7 @@ var TokenFeaturesResponseSchema = z490.object({
89967
90113
  });
89968
90114
 
89969
90115
  // ../../packages/dalp/api-contract/src/routes/v2/token/features/features.v2.list.schema.ts
89970
- import { z as z491 } from "zod";
90116
+ import { z as z492 } from "zod";
89971
90117
  var TOKEN_FEATURES_COLLECTION_FIELDS = {
89972
90118
  name: enumField([...tokenFeatureIds], { sortable: true, filterable: true })
89973
90119
  };
@@ -89975,7 +90121,7 @@ var TokenFeaturesV2ListInputSchema = createCollectionInputSchema(TOKEN_FEATURES_
89975
90121
  defaultSort: "name"
89976
90122
  });
89977
90123
  var ATTACHED_TOKEN_FEATURE_BASE_FIELDS = {
89978
- featureAddress: z491.string().meta({
90124
+ featureAddress: z492.string().meta({
89979
90125
  description: "On-chain address of the deployed feature contract instance.",
89980
90126
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
89981
90127
  }),
@@ -89983,59 +90129,59 @@ var ATTACHED_TOKEN_FEATURE_BASE_FIELDS = {
89983
90129
  description: "Timestamp when the feature was attached, or null if not yet indexed."
89984
90130
  })
89985
90131
  };
89986
- var AttachedTokenFeatureSchema = z491.discriminatedUnion("name", [
89987
- z491.object({
89988
- name: z491.literal("historical-balances"),
90132
+ var AttachedTokenFeatureSchema = z492.discriminatedUnion("name", [
90133
+ z492.object({
90134
+ name: z492.literal("historical-balances"),
89989
90135
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
89990
90136
  config: TokenFeatureHistoricalBalancesSchema
89991
90137
  }),
89992
- z491.object({
89993
- name: z491.literal("maturity-redemption"),
90138
+ z492.object({
90139
+ name: z492.literal("maturity-redemption"),
89994
90140
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
89995
90141
  config: TokenFeatureMaturityRedemptionSchema
89996
90142
  }),
89997
- z491.object({
89998
- name: z491.literal("fixed-treasury-yield"),
90143
+ z492.object({
90144
+ name: z492.literal("fixed-treasury-yield"),
89999
90145
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90000
90146
  config: TokenFeatureFixedTreasuryYieldSchema
90001
90147
  }),
90002
- z491.object({
90003
- name: z491.literal("voting-power"),
90148
+ z492.object({
90149
+ name: z492.literal("voting-power"),
90004
90150
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90005
90151
  config: TokenFeatureVotingPowerSchema
90006
90152
  }),
90007
- z491.object({
90008
- name: z491.literal("aum-fee"),
90153
+ z492.object({
90154
+ name: z492.literal("aum-fee"),
90009
90155
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90010
90156
  config: TokenFeatureAUMFeeSchema
90011
90157
  }),
90012
- z491.object({
90013
- name: z491.literal("transaction-fee"),
90158
+ z492.object({
90159
+ name: z492.literal("transaction-fee"),
90014
90160
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90015
90161
  config: TokenFeatureTransactionFeeSchema
90016
90162
  }),
90017
- z491.object({
90018
- name: z491.literal("transaction-fee-accounting"),
90163
+ z492.object({
90164
+ name: z492.literal("transaction-fee-accounting"),
90019
90165
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90020
90166
  config: TokenFeatureTransactionFeeAccountingSchema
90021
90167
  }),
90022
- z491.object({
90023
- name: z491.literal("external-transaction-fee"),
90168
+ z492.object({
90169
+ name: z492.literal("external-transaction-fee"),
90024
90170
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90025
90171
  config: TokenFeatureExternalTransactionFeeSchema
90026
90172
  }),
90027
- z491.object({
90028
- name: z491.literal("conversion"),
90173
+ z492.object({
90174
+ name: z492.literal("conversion"),
90029
90175
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90030
90176
  config: TokenFeatureConversionSchema
90031
90177
  }),
90032
- z491.object({
90033
- name: z491.literal("conversion-minter"),
90178
+ z492.object({
90179
+ name: z492.literal("conversion-minter"),
90034
90180
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90035
90181
  config: TokenFeatureConversionMinterSchema
90036
90182
  }),
90037
- z491.object({
90038
- name: z491.literal("permit"),
90183
+ z492.object({
90184
+ name: z492.literal("permit"),
90039
90185
  ...ATTACHED_TOKEN_FEATURE_BASE_FIELDS,
90040
90186
  config: TokenFeaturePermitSchema
90041
90187
  })
@@ -90109,7 +90255,7 @@ var tokenV2Contract = {
90109
90255
  };
90110
90256
 
90111
90257
  // ../../packages/core/validation/src/transaction-request-state.ts
90112
- import { z as z492 } from "zod";
90258
+ import { z as z493 } from "zod";
90113
90259
  var transactionRequestStates = [
90114
90260
  "RECEIVED",
90115
90261
  "QUEUED",
@@ -90124,7 +90270,7 @@ var transactionRequestStates = [
90124
90270
  "CANCELLED"
90125
90271
  ];
90126
90272
  var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
90127
- var TransactionRequestStateSchema = z492.enum(transactionRequestStates).meta({
90273
+ var TransactionRequestStateSchema = z493.enum(transactionRequestStates).meta({
90128
90274
  description: "Current state in the transaction request lifecycle",
90129
90275
  examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
90130
90276
  });
@@ -90167,96 +90313,96 @@ var transactionSubStatuses = [
90167
90313
  "WORKFLOW_BATCH_COMPLETED",
90168
90314
  "WORKFLOW_BATCH_FAILED"
90169
90315
  ];
90170
- var TransactionSubStatusSchema = z492.enum(transactionSubStatuses).meta({
90316
+ var TransactionSubStatusSchema = z493.enum(transactionSubStatuses).meta({
90171
90317
  description: "Detailed sub-status for transaction failures",
90172
90318
  examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
90173
90319
  });
90174
90320
 
90175
90321
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
90176
- import { z as z493 } from "zod";
90177
- var TransactionForceRetryInputSchema = z493.object({
90178
- transactionId: z493.uuid().meta({
90322
+ import { z as z494 } from "zod";
90323
+ var TransactionForceRetryInputSchema = z494.object({
90324
+ transactionId: z494.uuid().meta({
90179
90325
  description: "Queue transaction identifier (UUIDv7) to retry",
90180
90326
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90181
90327
  })
90182
90328
  });
90183
- var TransactionForceRetryBodySchema = z493.object({
90184
- gasPrice: z493.string().optional().meta({
90329
+ var TransactionForceRetryBodySchema = z494.object({
90330
+ gasPrice: z494.string().optional().meta({
90185
90331
  description: "Override gas price in wei (decimal string)",
90186
90332
  examples: ["20000000000"]
90187
90333
  }),
90188
- nonce: z493.number().int().nonnegative().optional().meta({
90334
+ nonce: z494.number().int().nonnegative().optional().meta({
90189
90335
  description: "Override nonce for the retried transaction",
90190
90336
  examples: [42]
90191
90337
  })
90192
90338
  }).default({});
90193
- var TransactionForceRetryResultSchema = z493.object({
90194
- transactionId: z493.uuid().meta({ description: "The requeued transaction ID" }),
90339
+ var TransactionForceRetryResultSchema = z494.object({
90340
+ transactionId: z494.uuid().meta({ description: "The requeued transaction ID" }),
90195
90341
  previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
90196
90342
  status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
90197
90343
  });
90198
90344
  var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
90199
- var TransactionForceFailInputSchema = z493.object({
90200
- transactionId: z493.uuid().meta({
90345
+ var TransactionForceFailInputSchema = z494.object({
90346
+ transactionId: z494.uuid().meta({
90201
90347
  description: "Queue transaction identifier (UUIDv7) to force-fail",
90202
90348
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90203
90349
  })
90204
90350
  });
90205
- var TransactionForceFailBodySchema = z493.object({
90206
- reason: z493.string().min(1).max(1000).meta({
90351
+ var TransactionForceFailBodySchema = z494.object({
90352
+ reason: z494.string().min(1).max(1000).meta({
90207
90353
  description: "Human-readable reason for forcing this transaction to failed state",
90208
90354
  examples: ["Manual intervention: stuck transaction after nonce conflict"]
90209
90355
  })
90210
90356
  });
90211
- var TransactionForceFailResultSchema = z493.object({
90212
- transactionId: z493.uuid().meta({ description: "The force-failed transaction ID" }),
90357
+ var TransactionForceFailResultSchema = z494.object({
90358
+ transactionId: z494.uuid().meta({ description: "The force-failed transaction ID" }),
90213
90359
  previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
90214
90360
  status: transactionRequestState().meta({ description: "New state (FAILED)" }),
90215
- reason: z493.string().meta({ description: "The reason provided for the force-fail" })
90361
+ reason: z494.string().meta({ description: "The reason provided for the force-fail" })
90216
90362
  });
90217
90363
  var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
90218
- var TransactionForceNonceInputSchema = z493.object({
90219
- transactionId: z493.uuid().meta({
90364
+ var TransactionForceNonceInputSchema = z494.object({
90365
+ transactionId: z494.uuid().meta({
90220
90366
  description: "Queue transaction identifier — the nonce is forced on its sender wallet",
90221
90367
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90222
90368
  })
90223
90369
  });
90224
- var TransactionForceNonceBodySchema = z493.object({
90225
- nonce: z493.number().int().nonnegative().meta({
90370
+ var TransactionForceNonceBodySchema = z494.object({
90371
+ nonce: z494.number().int().nonnegative().meta({
90226
90372
  description: "Nonce value to force-set on the sender's nonce tracker",
90227
90373
  examples: [42]
90228
90374
  })
90229
90375
  });
90230
- var TransactionForceNonceResultSchema = z493.object({
90231
- previous: z493.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
90232
- new: z493.number().meta({ description: "New nonce value after force-set" })
90376
+ var TransactionForceNonceResultSchema = z494.object({
90377
+ previous: z494.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
90378
+ new: z494.number().meta({ description: "New nonce value after force-set" })
90233
90379
  });
90234
90380
  var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
90235
90381
 
90236
90382
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
90237
- import { z as z494 } from "zod";
90238
- var TransactionV2CancelInputSchema = z494.object({
90239
- transactionId: z494.uuid().meta({
90383
+ import { z as z495 } from "zod";
90384
+ var TransactionV2CancelInputSchema = z495.object({
90385
+ transactionId: z495.uuid().meta({
90240
90386
  description: "Queue transaction identifier (UUIDv7) to cancel",
90241
90387
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90242
90388
  })
90243
90389
  });
90244
- var TransactionCancelResultSchema = z494.object({
90245
- status: z494.enum(["cancelled", "cancellation_pending", "error"]).meta({
90390
+ var TransactionCancelResultSchema = z495.object({
90391
+ status: z495.enum(["cancelled", "cancellation_pending", "error"]).meta({
90246
90392
  description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
90247
90393
  examples: ["cancelled", "cancellation_pending"]
90248
90394
  }),
90249
- cancelTransactionId: z494.string().optional().meta({
90395
+ cancelTransactionId: z495.string().optional().meta({
90250
90396
  description: "RBF replacement transaction ID when cancellation is pending on-chain"
90251
90397
  }),
90252
- message: z494.string().optional().meta({
90398
+ message: z495.string().optional().meta({
90253
90399
  description: "Human-readable error or status message"
90254
90400
  })
90255
90401
  });
90256
90402
  var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
90257
90403
 
90258
90404
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
90259
- import { z as z495 } from "zod";
90405
+ import { z as z496 } from "zod";
90260
90406
  var TRANSACTION_COLLECTION_FIELDS = {
90261
90407
  status: enumField([...transactionRequestStates]),
90262
90408
  operationType: textField(),
@@ -90265,21 +90411,21 @@ var TRANSACTION_COLLECTION_FIELDS = {
90265
90411
  createdAt: dateField(),
90266
90412
  updatedAt: dateField()
90267
90413
  };
90268
- var transactionListOwnership = z495.enum(["caller", "scoped"]);
90269
- var TransactionV2ListInputSchema = z495.intersection(createCollectionInputSchema(TRANSACTION_COLLECTION_FIELDS, {
90414
+ var transactionListOwnership = z496.enum(["caller", "scoped"]);
90415
+ var TransactionV2ListInputSchema = z496.intersection(createCollectionInputSchema(TRANSACTION_COLLECTION_FIELDS, {
90270
90416
  defaultSort: "createdAt",
90271
90417
  globalSearch: true
90272
- }), z495.object({
90418
+ }), z496.object({
90273
90419
  ownership: transactionListOwnership.default("scoped").meta({
90274
90420
  description: "Wallet-set scope: 'caller' restricts results to the caller's own transactions; 'scoped' (default) allows admin org-wide escalation."
90275
90421
  })
90276
90422
  }));
90277
- var TransactionListItemSchema = z495.object({
90278
- transactionId: z495.uuid().meta({
90423
+ var TransactionListItemSchema = z496.object({
90424
+ transactionId: z496.uuid().meta({
90279
90425
  description: "Queue transaction identifier (UUIDv7)",
90280
90426
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90281
90427
  }),
90282
- kind: z495.string().meta({
90428
+ kind: z496.string().meta({
90283
90429
  description: "Mutation kind submitted to the queue",
90284
90430
  examples: ["token.create", "token.mint"]
90285
90431
  }),
@@ -90287,19 +90433,19 @@ var TransactionListItemSchema = z495.object({
90287
90433
  description: "Current transaction queue state",
90288
90434
  examples: ["QUEUED", "COMPLETED", "FAILED"]
90289
90435
  }),
90290
- subStatus: z495.string().nullable().meta({
90436
+ subStatus: z496.string().nullable().meta({
90291
90437
  description: "Optional queue sub-status with finer-grained detail",
90292
90438
  examples: ["TIMEOUT", null]
90293
90439
  }),
90294
- fromAddress: z495.string().meta({
90440
+ fromAddress: z496.string().meta({
90295
90441
  description: "Sender wallet address",
90296
90442
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
90297
90443
  }),
90298
- chainId: z495.number().int().meta({
90444
+ chainId: z496.number().int().meta({
90299
90445
  description: "Target chain ID",
90300
90446
  examples: [1]
90301
90447
  }),
90302
- transactionHash: z495.string().nullable().meta({
90448
+ transactionHash: z496.string().nullable().meta({
90303
90449
  description: "Primary transaction hash once broadcast",
90304
90450
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
90305
90451
  }),
@@ -90311,7 +90457,7 @@ var TransactionListItemSchema = z495.object({
90311
90457
  description: "When the transaction request status last changed",
90312
90458
  examples: ["2026-03-09T10:00:15.000Z"]
90313
90459
  }),
90314
- description: z495.string().nullable().optional().meta({
90460
+ description: z496.string().nullable().optional().meta({
90315
90461
  description: "Human-readable decoded action label (e.g. 'mint(0xAbc…, 1000000)'). NULL for pre-migration rows.",
90316
90462
  examples: ["mint(0x71C7656EC7ab88b098defB751B7401B5f6d8976F, 1000000)", null]
90317
90463
  })
@@ -90323,19 +90469,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
90323
90469
  var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
90324
90470
 
90325
90471
  // ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
90326
- import { z as z496 } from "zod";
90327
- var TransactionStatusInputSchema = z496.object({
90328
- transactionId: z496.uuid().meta({
90472
+ import { z as z497 } from "zod";
90473
+ var TransactionStatusInputSchema = z497.object({
90474
+ transactionId: z497.uuid().meta({
90329
90475
  description: "Queue transaction identifier (UUIDv7)",
90330
90476
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90331
90477
  })
90332
90478
  });
90333
- var TransactionStatusOutputSchema = z496.object({
90334
- transactionId: z496.uuid().meta({
90479
+ var TransactionStatusOutputSchema = z497.object({
90480
+ transactionId: z497.uuid().meta({
90335
90481
  description: "Queue transaction identifier (UUIDv7)",
90336
90482
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
90337
90483
  }),
90338
- kind: z496.string().meta({
90484
+ kind: z497.string().meta({
90339
90485
  description: "Mutation kind submitted to the queue",
90340
90486
  examples: ["token.create", "token.mint"]
90341
90487
  }),
@@ -90343,49 +90489,49 @@ var TransactionStatusOutputSchema = z496.object({
90343
90489
  description: "Current transaction queue state",
90344
90490
  examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
90345
90491
  }),
90346
- subStatus: z496.string().nullable().meta({
90492
+ subStatus: z497.string().nullable().meta({
90347
90493
  description: "Optional queue sub-status with finer-grained progress or failure detail",
90348
90494
  examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
90349
90495
  }),
90350
- transactionHash: z496.string().nullable().meta({
90496
+ transactionHash: z497.string().nullable().meta({
90351
90497
  description: "Primary transaction hash once broadcast",
90352
90498
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
90353
90499
  }),
90354
- transactionHashes: z496.array(z496.string()).optional().meta({
90500
+ transactionHashes: z497.array(z497.string()).optional().meta({
90355
90501
  description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
90356
90502
  examples: [["0xabc...", "0xdef..."]]
90357
90503
  }),
90358
- blockNumber: z496.string().nullable().meta({
90504
+ blockNumber: z497.string().nullable().meta({
90359
90505
  description: "Confirmed block number when available",
90360
90506
  examples: ["12345678", null]
90361
90507
  }),
90362
- errorMessage: z496.string().nullable().meta({
90508
+ errorMessage: z497.string().nullable().meta({
90363
90509
  description: "Human-readable error or timeout detail when available",
90364
90510
  examples: ["Execution reverted", "Receipt not found after repeated checks", null]
90365
90511
  }),
90366
- contractError: z496.object({
90367
- id: z496.string().meta({
90512
+ contractError: z497.object({
90513
+ id: z497.string().meta({
90368
90514
  description: "DALP contract-error code (the catalog dalpCode)",
90369
90515
  examples: ["DALP-1106"]
90370
90516
  }),
90371
- args: z496.record(z496.string(), z496.string()).meta({
90517
+ args: z497.record(z497.string(), z497.string()).meta({
90372
90518
  description: "Decoded revert arguments, raw base-unit values keyed by template name",
90373
90519
  examples: [{ available: "10000000", requested: "50000000" }]
90374
90520
  }),
90375
- why: z496.string().meta({
90521
+ why: z497.string().meta({
90376
90522
  description: "Server-authored explanation copy for the contract error"
90377
90523
  }),
90378
- message: z496.string().meta({
90524
+ message: z497.string().meta({
90379
90525
  description: "Server-authored headline copy for the contract error"
90380
90526
  }),
90381
- fix: z496.string().optional().meta({
90527
+ fix: z497.string().optional().meta({
90382
90528
  description: "Server-authored suggested action, when the catalog entry provides one"
90383
90529
  })
90384
90530
  }).nullish().meta({
90385
90531
  description: "Structured DALP contract-error payload, present only when an async-settled revert decoded to a catalog entry. Lets the client re-render the failure copy with humanized argument values (amounts scaled by token decimals + symbol) for single-token surfaces. `errorMessage` remains the flat fallback."
90386
90532
  }),
90387
- result: z496.object({
90388
- tokenAddress: z496.string().meta({ description: "Created token address (token.create only)" })
90533
+ result: z497.object({
90534
+ tokenAddress: z497.string().meta({ description: "Created token address (token.create only)" })
90389
90535
  }).optional().meta({
90390
90536
  description: "Kind-scoped terminal result, present only once the operation completed and persisted its result (e.g. the created token address for kind token.create). Read from the transaction row's result_metadata — no extra lookup needed for 202 resource recovery."
90391
90537
  }),
@@ -90477,12 +90623,12 @@ var transactionV2Contract = {
90477
90623
  };
90478
90624
 
90479
90625
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
90480
- import { z as z502 } from "zod";
90626
+ import { z as z503 } from "zod";
90481
90627
 
90482
90628
  // ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
90483
- import { z as z497 } from "zod";
90484
- var UserReadByNationalIdInputSchema = z497.object({
90485
- nationalId: z497.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
90629
+ import { z as z498 } from "zod";
90630
+ var UserReadByNationalIdInputSchema = z498.object({
90631
+ nationalId: z498.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
90486
90632
  });
90487
90633
 
90488
90634
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
@@ -90500,13 +90646,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
90500
90646
  var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
90501
90647
 
90502
90648
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
90503
- import { z as z498 } from "zod";
90504
- var TokenAssetV2Schema = z498.object({
90649
+ import { z as z499 } from "zod";
90650
+ var TokenAssetV2Schema = z499.object({
90505
90651
  id: ethereumAddress.meta({
90506
90652
  description: "The token contract address",
90507
90653
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
90508
90654
  }),
90509
- name: z498.string().meta({
90655
+ name: z499.string().meta({
90510
90656
  description: "The token name",
90511
90657
  examples: ["Bond Token", "Equity Share"]
90512
90658
  }),
@@ -90514,11 +90660,11 @@ var TokenAssetV2Schema = z498.object({
90514
90660
  description: "The token symbol",
90515
90661
  examples: ["BOND", "EQT", "USDC"]
90516
90662
  }),
90517
- type: assetType().or(z498.string().min(1)).meta({
90663
+ type: assetType().or(z499.string().min(1)).meta({
90518
90664
  description: "Asset type — known system types or custom template slugs. Drives the asset detail route.",
90519
90665
  examples: ["bond", "equity", "fund", "custom-deposit"]
90520
90666
  }),
90521
- isExternal: z498.boolean().meta({
90667
+ isExternal: z499.boolean().meta({
90522
90668
  description: "True when the token is registered through the ExternalTokenRegistry rather than deployed by a system factory. External tokens route to the external detail page; the class/template route's loader cannot resolve them.",
90523
90669
  examples: [false, true]
90524
90670
  }),
@@ -90534,19 +90680,19 @@ var TokenAssetV2Schema = z498.object({
90534
90680
  description: "The total supply of the token (raw on-chain uint256)",
90535
90681
  examples: ["1000000000000000000000", "101000000000000000000000000"]
90536
90682
  }),
90537
- bond: z498.object({
90538
- isMatured: z498.boolean().meta({
90683
+ bond: z499.object({
90684
+ isMatured: z499.boolean().meta({
90539
90685
  description: "Whether the bond is matured",
90540
90686
  examples: [true, false]
90541
90687
  })
90542
90688
  }).optional().nullable().meta({ description: "The bond details", examples: [] }),
90543
- yield: z498.object({
90544
- schedule: z498.object({
90689
+ yield: z499.object({
90690
+ schedule: z499.object({
90545
90691
  id: ethereumAddress.meta({
90546
90692
  description: "The yield schedule contract address",
90547
90693
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
90548
90694
  }),
90549
- denominationAsset: z498.object({
90695
+ denominationAsset: z499.object({
90550
90696
  id: ethereumAddress.meta({
90551
90697
  description: "The denomination asset contract address",
90552
90698
  examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
@@ -90566,7 +90712,7 @@ var TokenAssetV2Schema = z498.object({
90566
90712
  }).nullable().meta({ description: "The yield schedule details", examples: [] })
90567
90713
  }).nullable().meta({ description: "The yield details", examples: [] })
90568
90714
  });
90569
- var UserAssetWalletBalanceV2ItemSchema = z498.object({
90715
+ var UserAssetWalletBalanceV2ItemSchema = z499.object({
90570
90716
  wallet: ethereumAddress.meta({
90571
90717
  description: "Wallet address that owns this portion of the aggregate balance.",
90572
90718
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -90584,7 +90730,7 @@ var UserAssetWalletBalanceV2ItemSchema = z498.object({
90584
90730
  examples: ["1000000000000000000"]
90585
90731
  })
90586
90732
  });
90587
- var UserAssetBalanceV2ItemSchema = z498.object({
90733
+ var UserAssetBalanceV2ItemSchema = z499.object({
90588
90734
  id: ethereumAddress.meta({
90589
90735
  description: "The token contract address for this aggregated balance row.",
90590
90736
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -90609,7 +90755,7 @@ var UserAssetBalanceV2ItemSchema = z498.object({
90609
90755
  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.",
90610
90756
  examples: ["5.00", null]
90611
90757
  }),
90612
- priceInBaseCurrencyReliable: z498.boolean().meta({
90758
+ priceInBaseCurrencyReliable: z499.boolean().meta({
90613
90759
  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.",
90614
90760
  examples: [true, false]
90615
90761
  }),
@@ -90617,10 +90763,10 @@ var UserAssetBalanceV2ItemSchema = z498.object({
90617
90763
  description: "The token details",
90618
90764
  examples: []
90619
90765
  }),
90620
- byWallet: z498.array(UserAssetWalletBalanceV2ItemSchema).meta({
90766
+ byWallet: z499.array(UserAssetWalletBalanceV2ItemSchema).meta({
90621
90767
  description: "Per-wallet balance breakdown for this token. Aggregate row fields remain summed across the returned wallet set."
90622
90768
  }),
90623
- metadataValues: z498.record(z498.string(), z498.string()).optional().meta({
90769
+ metadataValues: z499.record(z499.string(), z499.string()).optional().meta({
90624
90770
  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>]."
90625
90771
  })
90626
90772
  });
@@ -90636,9 +90782,9 @@ var BaseUserAssetsInputSchema = createCollectionInputSchema(USER_ASSETS_COLLECTI
90636
90782
  defaultSort: "-balance",
90637
90783
  globalSearch: true
90638
90784
  });
90639
- var UserAssetsV2ListInputSchema = z498.preprocess(liftMetadataWireFilters, z498.intersection(BaseUserAssetsInputSchema, MetadataGroupingOverlaySchema));
90785
+ var UserAssetsV2ListInputSchema = z499.preprocess(liftMetadataWireFilters, z499.intersection(BaseUserAssetsInputSchema, MetadataGroupingOverlaySchema));
90640
90786
  var UserAssetsV2ListOutputSchema = createPaginatedResponse(UserAssetBalanceV2ItemSchema, {
90641
- groups: z498.array(MetadataGroupSummarySchema).optional().meta({
90787
+ groups: z499.array(MetadataGroupSummarySchema).optional().meta({
90642
90788
  description: "Per-group aggregate summaries for the wallet's filtered balance set; present only when groupBy is set on the request."
90643
90789
  }),
90644
90790
  groupBy: MetadataGroupByAxisSchema.optional().meta({
@@ -90677,10 +90823,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
90677
90823
  var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
90678
90824
 
90679
90825
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
90680
- import { z as z501 } from "zod";
90826
+ import { z as z502 } from "zod";
90681
90827
 
90682
90828
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
90683
- import { z as z499 } from "zod";
90829
+ import { z as z500 } from "zod";
90684
90830
  var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
90685
90831
  fileName: textField(),
90686
90832
  documentType: enumField(kycDocumentTypes, { facetable: true }),
@@ -90691,19 +90837,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
90691
90837
  var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
90692
90838
  defaultSort: "uploadedAt"
90693
90839
  });
90694
- var KycProfileVersionDocumentsV2ListItemSchema = z499.object({
90695
- id: z499.string(),
90840
+ var KycProfileVersionDocumentsV2ListItemSchema = z500.object({
90841
+ id: z500.string(),
90696
90842
  documentType: kycDocumentType(),
90697
- fileName: z499.string(),
90698
- fileSize: z499.number(),
90699
- mimeType: z499.string(),
90843
+ fileName: z500.string(),
90844
+ fileSize: z500.number(),
90845
+ mimeType: z500.string(),
90700
90846
  uploadedAt: timestamp(),
90701
- uploadedBy: z499.string().nullable()
90847
+ uploadedBy: z500.string().nullable()
90702
90848
  });
90703
90849
  var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
90704
90850
 
90705
90851
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
90706
- import { z as z500 } from "zod";
90852
+ import { z as z501 } from "zod";
90707
90853
  var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
90708
90854
  var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
90709
90855
  var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
@@ -90716,21 +90862,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
90716
90862
  var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
90717
90863
  defaultSort: "versionNumber"
90718
90864
  });
90719
- var KycProfileVersionsV2ListItemSchema = z500.object({
90720
- id: z500.string(),
90721
- versionNumber: z500.number(),
90865
+ var KycProfileVersionsV2ListItemSchema = z501.object({
90866
+ id: z501.string(),
90867
+ versionNumber: z501.number(),
90722
90868
  status: kycVersionStatus(),
90723
90869
  createdAt: timestamp(),
90724
- createdBy: z500.string().nullable(),
90870
+ createdBy: z501.string().nullable(),
90725
90871
  submittedAt: timestamp().nullable(),
90726
- submittedBy: z500.string().nullable(),
90872
+ submittedBy: z501.string().nullable(),
90727
90873
  reviewedAt: timestamp().nullable(),
90728
- reviewedBy: z500.string().nullable(),
90729
- reviewOutcome: z500.enum(KYC_REVIEW_OUTCOMES).nullable(),
90730
- isDraft: z500.boolean(),
90731
- isUnderReview: z500.boolean(),
90732
- isApproved: z500.boolean(),
90733
- isCurrent: z500.boolean()
90874
+ reviewedBy: z501.string().nullable(),
90875
+ reviewOutcome: z501.enum(KYC_REVIEW_OUTCOMES).nullable(),
90876
+ isDraft: z501.boolean(),
90877
+ isUnderReview: z501.boolean(),
90878
+ isApproved: z501.boolean(),
90879
+ isCurrent: z501.boolean()
90734
90880
  });
90735
90881
  var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
90736
90882
 
@@ -90748,14 +90894,14 @@ var versionsList = v2Contract.route({
90748
90894
  description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
90749
90895
  successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
90750
90896
  tags: [V2_TAG.userKyc]
90751
- }).input(v2Input.paramsQuery(z501.object({ userId: z501.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
90897
+ }).input(v2Input.paramsQuery(z502.object({ userId: z502.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
90752
90898
  var versionsCreate = v2Contract.route({
90753
90899
  method: "POST",
90754
90900
  path: "/kyc-profiles/{userId}/versions",
90755
90901
  description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
90756
90902
  successDescription: "KYC profile version created successfully.",
90757
90903
  tags: [V2_TAG.userKyc]
90758
- }).input(v2Input.paramsBody(z501.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
90904
+ }).input(v2Input.paramsBody(z502.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
90759
90905
  var versionRead = v2Contract.route({
90760
90906
  method: "GET",
90761
90907
  path: "/kyc-profile-versions/{versionId}",
@@ -90769,7 +90915,7 @@ var versionUpdate = v2Contract.route({
90769
90915
  description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
90770
90916
  successDescription: "KYC profile version updated successfully.",
90771
90917
  tags: [V2_TAG.userKyc]
90772
- }).input(v2Input.paramsBody(z501.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
90918
+ }).input(v2Input.paramsBody(z502.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
90773
90919
  var versionSubmit = v2Contract.route({
90774
90920
  method: "POST",
90775
90921
  path: "/kyc-profile-versions/{versionId}/submissions",
@@ -90783,28 +90929,28 @@ var versionApprove = v2Contract.route({
90783
90929
  description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
90784
90930
  successDescription: "KYC profile version approved.",
90785
90931
  tags: [V2_TAG.userKyc]
90786
- }).input(v2Input.paramsBody(z501.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
90932
+ }).input(v2Input.paramsBody(z502.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
90787
90933
  var versionReject = v2Contract.route({
90788
90934
  method: "POST",
90789
90935
  path: "/kyc-profile-versions/{versionId}/rejections",
90790
90936
  description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
90791
90937
  successDescription: "KYC profile version rejected.",
90792
90938
  tags: [V2_TAG.userKyc]
90793
- }).input(v2Input.paramsBody(z501.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
90939
+ }).input(v2Input.paramsBody(z502.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
90794
90940
  var versionRequestUpdate = v2Contract.route({
90795
90941
  method: "POST",
90796
90942
  path: "/kyc-profile-versions/{versionId}/update-requests",
90797
90943
  description: "Request changes on a KYC version under review. Creates an action request for the user.",
90798
90944
  successDescription: "Update request created successfully.",
90799
90945
  tags: [V2_TAG.userKyc]
90800
- }).input(v2Input.paramsBody(z501.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
90946
+ }).input(v2Input.paramsBody(z502.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
90801
90947
  var documentsList = v2Contract.route({
90802
90948
  method: "GET",
90803
90949
  path: "/kyc-profile-versions/{versionId}/documents",
90804
90950
  description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
90805
90951
  successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
90806
90952
  tags: [V2_TAG.userKyc]
90807
- }).input(v2Input.paramsQuery(z501.object({ versionId: z501.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
90953
+ }).input(v2Input.paramsQuery(z502.object({ versionId: z502.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
90808
90954
  var documentsDelete = v2Contract.route({
90809
90955
  method: "DELETE",
90810
90956
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
@@ -90818,7 +90964,7 @@ var documentsConfirmUpload = v2Contract.route({
90818
90964
  description: "Upload a KYC document through DAPI so the payload is encrypted before object storage.",
90819
90965
  successDescription: "Document uploaded successfully.",
90820
90966
  tags: [V2_TAG.userKyc]
90821
- }).input(v2Input.paramsBody(z501.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
90967
+ }).input(v2Input.paramsBody(z502.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
90822
90968
  var documentsGetDownloadUrl = v2Contract.route({
90823
90969
  method: "POST",
90824
90970
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
@@ -90895,14 +91041,14 @@ var readByUserId2 = v2Contract.route({
90895
91041
  description: "Read a single user by their internal database ID.",
90896
91042
  successDescription: "User retrieved successfully.",
90897
91043
  tags: [V2_TAG.user]
90898
- }).input(v2Input.params(z502.object({ userId: z502.string() }))).output(createSingleResponse(UserReadOutputSchema));
91044
+ }).input(v2Input.params(z503.object({ userId: z503.string() }))).output(createSingleResponse(UserReadOutputSchema));
90899
91045
  var readByWallet3 = v2Contract.route({
90900
91046
  method: "GET",
90901
91047
  path: "/wallets/{wallet}/user",
90902
91048
  description: "Read a single user by their Ethereum wallet address.",
90903
91049
  successDescription: "User retrieved successfully.",
90904
91050
  tags: [V2_TAG.user]
90905
- }).input(v2Input.params(z502.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
91051
+ }).input(v2Input.params(z503.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
90906
91052
  var readByNationalId = v2Contract.route({
90907
91053
  method: "GET",
90908
91054
  path: "/national-ids/{nationalId}/user",
@@ -91012,30 +91158,30 @@ var userV2Contract = {
91012
91158
  };
91013
91159
 
91014
91160
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
91015
- import { z as z503 } from "zod";
91016
- var WebhooksV2ChainOfCustodyInputSchema = z503.object({
91017
- evtId: z503.string().trim().min(1)
91018
- });
91019
- var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z503.object({
91020
- evtId: z503.string(),
91021
- hops: z503.array(z503.object({
91022
- stage: z503.string(),
91023
- contentHash: z503.string(),
91024
- signedBy: z503.string().optional(),
91025
- recordedAt: z503.coerce.date()
91161
+ import { z as z504 } from "zod";
91162
+ var WebhooksV2ChainOfCustodyInputSchema = z504.object({
91163
+ evtId: z504.string().trim().min(1)
91164
+ });
91165
+ var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z504.object({
91166
+ evtId: z504.string(),
91167
+ hops: z504.array(z504.object({
91168
+ stage: z504.string(),
91169
+ contentHash: z504.string(),
91170
+ signedBy: z504.string().optional(),
91171
+ recordedAt: z504.coerce.date()
91026
91172
  })),
91027
- merkleRoot: z503.string(),
91028
- platformSignature: z503.string()
91173
+ merkleRoot: z504.string(),
91174
+ platformSignature: z504.string()
91029
91175
  }));
91030
91176
 
91031
91177
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
91032
- import { z as z505 } from "zod";
91178
+ import { z as z506 } from "zod";
91033
91179
 
91034
91180
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
91035
- import { z as z504 } from "zod";
91036
- var WebhookPayloadShapeSchema = z504.enum(["thin", "fat"]);
91037
- var WebhookBreakerStateSchema = z504.enum(["closed", "half_open", "open"]);
91038
- var WebhookDeliveryFailureClassSchema = z504.enum([
91181
+ import { z as z505 } from "zod";
91182
+ var WebhookPayloadShapeSchema = z505.enum(["thin", "fat"]);
91183
+ var WebhookBreakerStateSchema = z505.enum(["closed", "half_open", "open"]);
91184
+ var WebhookDeliveryFailureClassSchema = z505.enum([
91039
91185
  "DNS_FAIL",
91040
91186
  "TLS_FAIL",
91041
91187
  "CONNECT_TIMEOUT",
@@ -91048,35 +91194,35 @@ var WebhookDeliveryFailureClassSchema = z504.enum([
91048
91194
  "RECEIPT_INVALID_SIG",
91049
91195
  "RECEIPT_HASH_MISMATCH"
91050
91196
  ]);
91051
- var WebhookFinalityStateSchema = z504.enum(["pending", "provisional", "final", "retracted", "recalled"]);
91052
- var WebhookSigningSecretStatusSchema = z504.enum(["active", "previous", "revoked"]);
91053
- var WebhookFatEventsAcknowledgmentSchema = z504.object({
91054
- acknowledgedAt: z504.coerce.date(),
91055
- acknowledgedByUserId: z504.string(),
91056
- fieldsAcknowledged: z504.array(z504.string())
91057
- });
91058
- var WebhookEndpointSchema = z504.object({
91059
- id: z504.uuid(),
91060
- tenantId: z504.string(),
91061
- systemId: z504.string(),
91062
- url: z504.url(),
91063
- displayName: z504.string().nullable(),
91064
- subscriptions: z504.array(z504.string()),
91197
+ var WebhookFinalityStateSchema = z505.enum(["pending", "provisional", "final", "retracted", "recalled"]);
91198
+ var WebhookSigningSecretStatusSchema = z505.enum(["active", "previous", "revoked"]);
91199
+ var WebhookFatEventsAcknowledgmentSchema = z505.object({
91200
+ acknowledgedAt: z505.coerce.date(),
91201
+ acknowledgedByUserId: z505.string(),
91202
+ fieldsAcknowledged: z505.array(z505.string())
91203
+ });
91204
+ var WebhookEndpointSchema = z505.object({
91205
+ id: z505.uuid(),
91206
+ tenantId: z505.string(),
91207
+ systemId: z505.string(),
91208
+ url: z505.url(),
91209
+ displayName: z505.string().nullable(),
91210
+ subscriptions: z505.array(z505.string()),
91065
91211
  defaultPayloadShape: WebhookPayloadShapeSchema,
91066
- counterSignedReceipts: z504.boolean(),
91212
+ counterSignedReceipts: z505.boolean(),
91067
91213
  breakerState: WebhookBreakerStateSchema,
91068
- disabledAt: z504.coerce.date().nullable(),
91069
- disabledReason: z504.string().nullable(),
91214
+ disabledAt: z505.coerce.date().nullable(),
91215
+ disabledReason: z505.string().nullable(),
91070
91216
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
91071
- secret: z504.object({
91072
- activeVersion: z504.number().int().positive().nullable(),
91073
- previousVersion: z504.number().int().positive().nullable(),
91074
- previousRevokesAt: z504.coerce.date().nullable(),
91075
- lastUsedAt: z504.coerce.date().nullable()
91217
+ secret: z505.object({
91218
+ activeVersion: z505.number().int().positive().nullable(),
91219
+ previousVersion: z505.number().int().positive().nullable(),
91220
+ previousRevokesAt: z505.coerce.date().nullable(),
91221
+ lastUsedAt: z505.coerce.date().nullable()
91076
91222
  }),
91077
- createdAt: z504.coerce.date(),
91078
- updatedAt: z504.coerce.date(),
91079
- createdByUserId: z504.string().nullable()
91223
+ createdAt: z505.coerce.date(),
91224
+ updatedAt: z505.coerce.date(),
91225
+ createdByUserId: z505.string().nullable()
91080
91226
  });
91081
91227
  var WEBHOOKS_COLLECTION_FIELDS = {
91082
91228
  displayName: textField(),
@@ -91095,44 +91241,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
91095
91241
  var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
91096
91242
 
91097
91243
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
91098
- var WebhooksV2CreateInputSchema = z505.object({
91099
- url: z505.url(),
91100
- displayName: z505.string().trim().min(1).max(200).optional(),
91101
- subscriptions: z505.array(z505.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
91244
+ var WebhooksV2CreateInputSchema = z506.object({
91245
+ url: z506.url(),
91246
+ displayName: z506.string().trim().min(1).max(200).optional(),
91247
+ subscriptions: z506.array(z506.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
91102
91248
  defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
91103
- counterSignedReceipts: z505.boolean().default(false)
91249
+ counterSignedReceipts: z506.boolean().default(false)
91104
91250
  });
91105
91251
  var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
91106
- signingSecret: z505.string().nullable()
91252
+ signingSecret: z506.string().nullable()
91107
91253
  });
91108
91254
  var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
91109
91255
 
91110
91256
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
91111
- import { z as z506 } from "zod";
91112
- var WebhooksV2DeleteInputSchema = z506.object({
91113
- id: z506.uuid()
91257
+ import { z as z507 } from "zod";
91258
+ var WebhooksV2DeleteInputSchema = z507.object({
91259
+ id: z507.uuid()
91114
91260
  });
91115
91261
  var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
91116
91262
 
91117
91263
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
91118
- import { z as z507 } from "zod";
91119
- var WebhookDeliveryStatusSchema = z507.enum(["pending", "delivered", "failed"]);
91120
- var WebhookDeliverySchema = z507.object({
91121
- id: z507.uuid(),
91122
- eventOutboxId: z507.uuid(),
91123
- endpointId: z507.uuid(),
91124
- tenantId: z507.string(),
91125
- evtId: z507.string(),
91126
- eventType: z507.string(),
91127
- attemptN: z507.number().int().nonnegative(),
91128
- attemptedAt: z507.coerce.date(),
91129
- responseStatus: z507.number().int().nullable(),
91264
+ import { z as z508 } from "zod";
91265
+ var WebhookDeliveryStatusSchema = z508.enum(["pending", "delivered", "failed"]);
91266
+ var WebhookDeliverySchema = z508.object({
91267
+ id: z508.uuid(),
91268
+ eventOutboxId: z508.uuid(),
91269
+ endpointId: z508.uuid(),
91270
+ tenantId: z508.string(),
91271
+ evtId: z508.string(),
91272
+ eventType: z508.string(),
91273
+ attemptN: z508.number().int().nonnegative(),
91274
+ attemptedAt: z508.coerce.date(),
91275
+ responseStatus: z508.number().int().nullable(),
91130
91276
  failureClass: WebhookDeliveryFailureClassSchema.nullable(),
91131
91277
  status: WebhookDeliveryStatusSchema,
91132
- deliveredAt: z507.coerce.date().nullable(),
91133
- isReplay: z507.boolean(),
91134
- isTest: z507.boolean(),
91135
- traceId: z507.string().nullable()
91278
+ deliveredAt: z508.coerce.date().nullable(),
91279
+ isReplay: z508.boolean(),
91280
+ isTest: z508.boolean(),
91281
+ traceId: z508.string().nullable()
91136
91282
  });
91137
91283
  var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
91138
91284
  status: enumField(["pending", "delivered", "failed"]),
@@ -91159,167 +91305,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
91159
91305
  defaultSort: "attemptedAt",
91160
91306
  globalSearch: false
91161
91307
  });
91162
- var WebhooksV2DeliveriesListParamsSchema = z507.object({
91163
- id: z507.uuid()
91308
+ var WebhooksV2DeliveriesListParamsSchema = z508.object({
91309
+ id: z508.uuid()
91164
91310
  });
91165
91311
  var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
91166
91312
 
91167
91313
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
91168
- import { z as z508 } from "zod";
91169
- var WebhooksV2DeliveriesReadInputSchema = z508.object({
91170
- id: z508.uuid(),
91171
- deliveryId: z508.uuid()
91314
+ import { z as z509 } from "zod";
91315
+ var WebhooksV2DeliveriesReadInputSchema = z509.object({
91316
+ id: z509.uuid(),
91317
+ deliveryId: z509.uuid()
91172
91318
  });
91173
91319
  var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
91174
- request: z508.object({
91175
- payload: z508.record(z508.string(), z508.json()),
91176
- signedHeaders: z508.record(z508.string(), z508.union([z508.string(), z508.array(z508.string())])),
91177
- signedStringPreview: z508.string()
91178
- }),
91179
- response: z508.object({
91180
- headers: z508.record(z508.string(), z508.union([z508.string(), z508.array(z508.string())])).nullable(),
91181
- body: z508.string().nullable(),
91182
- timings: z508.object({
91183
- dnsMs: z508.number().int().nullable(),
91184
- tlsMs: z508.number().int().nullable(),
91185
- connectMs: z508.number().int().nullable(),
91186
- ttfbMs: z508.number().int().nullable()
91320
+ request: z509.object({
91321
+ payload: z509.record(z509.string(), z509.json()),
91322
+ signedHeaders: z509.record(z509.string(), z509.union([z509.string(), z509.array(z509.string())])),
91323
+ signedStringPreview: z509.string()
91324
+ }),
91325
+ response: z509.object({
91326
+ headers: z509.record(z509.string(), z509.union([z509.string(), z509.array(z509.string())])).nullable(),
91327
+ body: z509.string().nullable(),
91328
+ timings: z509.object({
91329
+ dnsMs: z509.number().int().nullable(),
91330
+ tlsMs: z509.number().int().nullable(),
91331
+ connectMs: z509.number().int().nullable(),
91332
+ ttfbMs: z509.number().int().nullable()
91187
91333
  })
91188
91334
  })
91189
91335
  });
91190
91336
  var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
91191
91337
 
91192
91338
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
91193
- import { z as z509 } from "zod";
91194
- var WebhooksV2DeliveriesRetryInputSchema = z509.object({
91195
- id: z509.uuid(),
91196
- deliveryId: z509.uuid()
91339
+ import { z as z510 } from "zod";
91340
+ var WebhooksV2DeliveriesRetryInputSchema = z510.object({
91341
+ id: z510.uuid(),
91342
+ deliveryId: z510.uuid()
91197
91343
  });
91198
- var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z509.object({
91199
- deliveryId: z509.uuid(),
91200
- scheduled: z509.boolean()
91344
+ var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z510.object({
91345
+ deliveryId: z510.uuid(),
91346
+ scheduled: z510.boolean()
91201
91347
  }));
91202
91348
 
91203
91349
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
91204
- import { z as z510 } from "zod";
91205
- var WebhooksV2ReadInputSchema = z510.object({
91206
- id: z510.uuid()
91350
+ import { z as z511 } from "zod";
91351
+ var WebhooksV2ReadInputSchema = z511.object({
91352
+ id: z511.uuid()
91207
91353
  });
91208
91354
  var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
91209
91355
 
91210
91356
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
91211
- import { z as z511 } from "zod";
91212
- var WebhooksV2RecallsParamsSchema = z511.object({
91213
- evtId: z511.string().trim().min(1)
91214
- });
91215
- var WebhooksV2RecallsBodySchema = z511.object({
91216
- reason: z511.string().trim().min(1).max(2000)
91217
- });
91218
- var WebhooksV2RecallsOutputSchema = createSingleResponse(z511.object({
91219
- evtId: z511.string(),
91220
- recalledEvtId: z511.string(),
91221
- supersedes: z511.string(),
91222
- reason: z511.string(),
91223
- recalledByUserId: z511.string()
91224
- }));
91225
-
91226
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
91227
91357
  import { z as z512 } from "zod";
91228
- var WebhooksV2ReplayByRangeSchema = z512.object({
91229
- fromBlock: z512.coerce.bigint(),
91230
- toBlock: z512.coerce.bigint().optional(),
91231
- chainId: z512.coerce.number().int().positive(),
91232
- confirmLargeRange: z512.boolean().default(false)
91233
- });
91234
- var WebhooksV2ReplayByEventSchema = z512.object({
91235
- evtId: z512.string().trim().min(1),
91236
- chainId: z512.coerce.number().int().positive().optional()
91237
- });
91238
- var WebhooksV2ReplaysParamsSchema = z512.object({
91239
- id: z512.uuid()
91240
- });
91241
- var WebhooksV2ReplaysBodySchema = z512.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
91242
- var WebhooksV2ReplaysOutputSchema = createSingleResponse(z512.object({
91243
- replayId: z512.uuid(),
91244
- endpointId: z512.uuid(),
91245
- eventsEnqueued: z512.number().int().nonnegative(),
91246
- snapshotToBlock: z512.string().nullable()
91358
+ var WebhooksV2RecallsParamsSchema = z512.object({
91359
+ evtId: z512.string().trim().min(1)
91360
+ });
91361
+ var WebhooksV2RecallsBodySchema = z512.object({
91362
+ reason: z512.string().trim().min(1).max(2000)
91363
+ });
91364
+ var WebhooksV2RecallsOutputSchema = createSingleResponse(z512.object({
91365
+ evtId: z512.string(),
91366
+ recalledEvtId: z512.string(),
91367
+ supersedes: z512.string(),
91368
+ reason: z512.string(),
91369
+ recalledByUserId: z512.string()
91247
91370
  }));
91248
91371
 
91249
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
91372
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
91250
91373
  import { z as z513 } from "zod";
91251
- var WebhooksV2RevokeSecretInputSchema = z513.object({
91374
+ var WebhooksV2ReplayByRangeSchema = z513.object({
91375
+ fromBlock: z513.coerce.bigint(),
91376
+ toBlock: z513.coerce.bigint().optional(),
91377
+ chainId: z513.coerce.number().int().positive(),
91378
+ confirmLargeRange: z513.boolean().default(false)
91379
+ });
91380
+ var WebhooksV2ReplayByEventSchema = z513.object({
91381
+ evtId: z513.string().trim().min(1),
91382
+ chainId: z513.coerce.number().int().positive().optional()
91383
+ });
91384
+ var WebhooksV2ReplaysParamsSchema = z513.object({
91252
91385
  id: z513.uuid()
91253
91386
  });
91254
- var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z513.object({
91387
+ var WebhooksV2ReplaysBodySchema = z513.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
91388
+ var WebhooksV2ReplaysOutputSchema = createSingleResponse(z513.object({
91389
+ replayId: z513.uuid(),
91255
91390
  endpointId: z513.uuid(),
91256
- activeVersion: z513.number().int().positive(),
91257
- previousVersion: z513.number().int().positive().nullable(),
91258
- revokedVersion: z513.number().int().positive()
91391
+ eventsEnqueued: z513.number().int().nonnegative(),
91392
+ snapshotToBlock: z513.string().nullable()
91259
91393
  }));
91260
91394
 
91261
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
91395
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
91262
91396
  import { z as z514 } from "zod";
91263
- var WebhooksV2RotateSecretInputSchema = z514.object({
91397
+ var WebhooksV2RevokeSecretInputSchema = z514.object({
91264
91398
  id: z514.uuid()
91265
91399
  });
91266
- var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z514.object({
91400
+ var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z514.object({
91267
91401
  endpointId: z514.uuid(),
91268
91402
  activeVersion: z514.number().int().positive(),
91269
91403
  previousVersion: z514.number().int().positive().nullable(),
91270
- previousRevokesAt: z514.coerce.date().nullable(),
91271
- signingSecret: z514.string().nullable()
91404
+ revokedVersion: z514.number().int().positive()
91272
91405
  }));
91273
91406
 
91274
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
91407
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
91275
91408
  import { z as z515 } from "zod";
91276
- var WebhooksV2StatsInputSchema = z515.object({
91277
- endpointId: z515.uuid().optional()
91409
+ var WebhooksV2RotateSecretInputSchema = z515.object({
91410
+ id: z515.uuid()
91411
+ });
91412
+ var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z515.object({
91413
+ endpointId: z515.uuid(),
91414
+ activeVersion: z515.number().int().positive(),
91415
+ previousVersion: z515.number().int().positive().nullable(),
91416
+ previousRevokesAt: z515.coerce.date().nullable(),
91417
+ signingSecret: z515.string().nullable()
91418
+ }));
91419
+
91420
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
91421
+ import { z as z516 } from "zod";
91422
+ var WebhooksV2StatsInputSchema = z516.object({
91423
+ endpointId: z516.uuid().optional()
91278
91424
  });
91279
- var WebhooksV2StatsOutputDataSchema = z515.object({
91280
- totalDeliveries: z515.number().int().min(0),
91281
- delivered: z515.number().int().min(0),
91282
- failed: z515.number().int().min(0),
91283
- hourlyBuckets: z515.array(z515.number().int().min(0)).length(24)
91425
+ var WebhooksV2StatsOutputDataSchema = z516.object({
91426
+ totalDeliveries: z516.number().int().min(0),
91427
+ delivered: z516.number().int().min(0),
91428
+ failed: z516.number().int().min(0),
91429
+ hourlyBuckets: z516.array(z516.number().int().min(0)).length(24)
91284
91430
  });
91285
91431
  var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
91286
91432
 
91287
91433
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
91288
- import { z as z516 } from "zod";
91289
- var WebhooksV2TestEventParamsSchema = z516.object({
91290
- id: z516.uuid()
91434
+ import { z as z517 } from "zod";
91435
+ var WebhooksV2TestEventParamsSchema = z517.object({
91436
+ id: z517.uuid()
91291
91437
  });
91292
- var WebhooksV2TestEventBodySchema = z516.object({
91293
- eventType: z516.string().trim().min(1).default("webhook.test.final")
91438
+ var WebhooksV2TestEventBodySchema = z517.object({
91439
+ eventType: z517.string().trim().min(1).default("webhook.test.final")
91294
91440
  });
91295
- var WebhooksV2TestEventOutputSchema = createSingleResponse(z516.object({
91296
- evtId: z516.string(),
91297
- deliveryId: z516.uuid().nullable(),
91298
- isTest: z516.literal(true)
91441
+ var WebhooksV2TestEventOutputSchema = createSingleResponse(z517.object({
91442
+ evtId: z517.string(),
91443
+ deliveryId: z517.uuid().nullable(),
91444
+ isTest: z517.literal(true)
91299
91445
  }));
91300
91446
 
91301
91447
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
91302
- import { z as z517 } from "zod";
91303
- var WebhooksV2UpdateParamsSchema = z517.object({
91304
- id: z517.uuid()
91448
+ import { z as z518 } from "zod";
91449
+ var WebhooksV2UpdateParamsSchema = z518.object({
91450
+ id: z518.uuid()
91305
91451
  });
91306
- var WebhooksV2UpdateBodySchema = z517.object({
91307
- url: z517.url().optional(),
91308
- displayName: z517.string().trim().min(1).max(200).nullable().optional(),
91309
- subscriptions: z517.array(z517.string().trim().min(1)).min(1).optional(),
91452
+ var WebhooksV2UpdateBodySchema = z518.object({
91453
+ url: z518.url().optional(),
91454
+ displayName: z518.string().trim().min(1).max(200).nullable().optional(),
91455
+ subscriptions: z518.array(z518.string().trim().min(1)).min(1).optional(),
91310
91456
  defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
91311
- counterSignedReceipts: z517.boolean().optional(),
91312
- disabled: z517.boolean().optional(),
91313
- disabledReason: z517.string().trim().min(1).max(500).nullable().optional(),
91457
+ counterSignedReceipts: z518.boolean().optional(),
91458
+ disabled: z518.boolean().optional(),
91459
+ disabledReason: z518.string().trim().min(1).max(500).nullable().optional(),
91314
91460
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
91315
91461
  acknowledgedAt: true,
91316
91462
  acknowledgedByUserId: true
91317
91463
  }).optional()
91318
91464
  });
91319
- var WebhooksV2UpdateQuerySchema = z517.object({
91320
- acknowledgePending: z517.union([z517.literal("true"), z517.literal(true)]).transform(() => true).optional()
91465
+ var WebhooksV2UpdateQuerySchema = z518.object({
91466
+ acknowledgePending: z518.union([z518.literal("true"), z518.literal(true)]).transform(() => true).optional()
91321
91467
  }).optional();
91322
- var WebhooksV2UpdateInputSchema = z517.object({
91468
+ var WebhooksV2UpdateInputSchema = z518.object({
91323
91469
  params: WebhooksV2UpdateParamsSchema,
91324
91470
  body: WebhooksV2UpdateBodySchema,
91325
91471
  query: WebhooksV2UpdateQuerySchema
@@ -91454,21 +91600,21 @@ var webhooksV2Contract = {
91454
91600
  };
91455
91601
 
91456
91602
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
91457
- import { z as z519 } from "zod";
91603
+ import { z as z520 } from "zod";
91458
91604
 
91459
91605
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
91460
- import { z as z518 } from "zod";
91461
- var WebhookReceiptVerificationFailureClassSchema = z518.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
91462
- var WebhookReceiptSchema = z518.object({
91463
- id: z518.uuid(),
91464
- deliveryId: z518.uuid(),
91465
- evtId: z518.string(),
91466
- tenantId: z518.string(),
91467
- endpointId: z518.uuid(),
91468
- consumerSignature: z518.string(),
91469
- innerEventHash: z518.string(),
91470
- receivedAt: z518.coerce.date(),
91471
- verifiedAt: z518.coerce.date().nullable(),
91606
+ import { z as z519 } from "zod";
91607
+ var WebhookReceiptVerificationFailureClassSchema = z519.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
91608
+ var WebhookReceiptSchema = z519.object({
91609
+ id: z519.uuid(),
91610
+ deliveryId: z519.uuid(),
91611
+ evtId: z519.string(),
91612
+ tenantId: z519.string(),
91613
+ endpointId: z519.uuid(),
91614
+ consumerSignature: z519.string(),
91615
+ innerEventHash: z519.string(),
91616
+ receivedAt: z519.coerce.date(),
91617
+ verifiedAt: z519.coerce.date().nullable(),
91472
91618
  verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
91473
91619
  });
91474
91620
  var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
@@ -91485,19 +91631,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
91485
91631
  var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
91486
91632
 
91487
91633
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
91488
- var WebhookReceiptsV2CreateInputSchema = z519.object({
91489
- deliveryId: z519.uuid(),
91490
- evtId: z519.string().trim().min(1),
91491
- endpointId: z519.uuid(),
91492
- consumerSignature: z519.string().trim().min(1),
91493
- innerEventHash: z519.string().trim().min(1)
91634
+ var WebhookReceiptsV2CreateInputSchema = z520.object({
91635
+ deliveryId: z520.uuid(),
91636
+ evtId: z520.string().trim().min(1),
91637
+ endpointId: z520.uuid(),
91638
+ consumerSignature: z520.string().trim().min(1),
91639
+ innerEventHash: z520.string().trim().min(1)
91494
91640
  });
91495
91641
  var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
91496
91642
 
91497
91643
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
91498
- import { z as z520 } from "zod";
91499
- var WebhookReceiptsV2ReadInputSchema = z520.object({
91500
- id: z520.uuid()
91644
+ import { z as z521 } from "zod";
91645
+ var WebhookReceiptsV2ReadInputSchema = z521.object({
91646
+ id: z521.uuid()
91501
91647
  });
91502
91648
  var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
91503
91649
 
@@ -91824,7 +91970,7 @@ function normalizeDalpBaseUrl(url) {
91824
91970
  // package.json
91825
91971
  var package_default = {
91826
91972
  name: "@settlemint/dalp-sdk",
91827
- version: "3.0.0-rc.1",
91973
+ version: "3.0.0-rc.3",
91828
91974
  private: false,
91829
91975
  description: "Fully typed SDK for the DALP tokenization platform API",
91830
91976
  homepage: "https://settlemint.com",
@@ -92891,6 +93037,7 @@ var CUSTOM_ERROR_CODES2 = {
92891
93037
  SETTINGS_THEME_OBJECT_STORAGE_NOT_CONFIGURED: "SETTINGS_THEME_OBJECT_STORAGE_NOT_CONFIGURED",
92892
93038
  SETTINGS_THEME_PAYLOAD_EXCEEDS_SUPPORTED_LIMITS: "SETTINGS_THEME_PAYLOAD_EXCEEDS_SUPPORTED_LIMITS",
92893
93039
  SIGNED_PERMIT_ALREADY_RELAYED: "SIGNED_PERMIT_ALREADY_RELAYED",
93040
+ SIGNED_PERMIT_DEADLINE_EXPIRED: "SIGNED_PERMIT_DEADLINE_EXPIRED",
92894
93041
  SIGNED_PERMIT_NONCE_CONFLICT: "SIGNED_PERMIT_NONCE_CONFLICT",
92895
93042
  SIGNED_PERMIT_NOT_FOUND: "SIGNED_PERMIT_NOT_FOUND",
92896
93043
  SIGNED_PERMIT_NOT_RELAYABLE: "SIGNED_PERMIT_NOT_RELAYABLE",
@@ -93866,7 +94013,8 @@ var DAPI_ROUTE_ERROR_IDS = {
93866
94013
  "DALP-9077": "DALP-9077",
93867
94014
  "DALP-9078": "DALP-9078",
93868
94015
  "DALP-9079": "DALP-9079",
93869
- "DALP-9080": "DALP-9080"
94016
+ "DALP-9080": "DALP-9080",
94017
+ "DALP-9082": "DALP-9082"
93870
94018
  };
93871
94019
  var DAPI_ERROR_IDS = {
93872
94020
  ...DAPI_ROUTE_ERROR_IDS,