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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +427 -393
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27738,7 +27738,7 @@ var tokenV2MutationsContract = {
27738
27738
  };
27739
27739
 
27740
27740
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
27741
- import { z as z408 } from "zod";
27741
+ import { z as z409 } from "zod";
27742
27742
 
27743
27743
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
27744
27744
  import { z as z398 } from "zod";
@@ -28061,23 +28061,49 @@ var TokenFeaturesResponseSchema = z398.object({
28061
28061
  })
28062
28062
  });
28063
28063
 
28064
- // ../../packages/dalp/api-contract/src/routes/token/routes/token.metadata.schema.ts
28064
+ // ../../packages/dalp/api-contract/src/routes/token/routes/token.aum-fee-accrued-estimate.schema.ts
28065
28065
  import { z as z399 } from "zod";
28066
+ var TokenAumFeeAccruedEstimateInputSchema = TokenReadInputSchema;
28067
+ var TokenAumFeeAccruedEstimateResponseSchema = z399.object({
28068
+ accruedEstimate: bigDecimal().meta({
28069
+ description: "Current accrued AUM fee (token units, scaled by token decimals) — authoritative chain read via getAccruedFees().",
28070
+ examples: ["10.50"]
28071
+ }),
28072
+ feeBps: feeRateBps().meta({
28073
+ description: "Annual AUM fee rate in basis points (1 bps = 0.01%, max 10 000 = 100%).",
28074
+ examples: [200]
28075
+ }),
28076
+ lastCollectionTime: timestamp().meta({
28077
+ description: "When the AUM fee was last collected on-chain. Read via the same multicall as accruedEstimate so the two cannot disagree.",
28078
+ examples: ["2024-11-14T22:13:20Z"]
28079
+ }),
28080
+ measuredAt: timestamp().meta({
28081
+ description: "Server wall-clock timestamp captured immediately after the chain read. Used by clients to extrapolate.",
28082
+ examples: ["2024-11-14T22:13:25Z"]
28083
+ }),
28084
+ featureAddress: ethereumAddress.meta({
28085
+ description: "AUM-fee feature contract address that was read.",
28086
+ examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28087
+ })
28088
+ }).nullable();
28089
+
28090
+ // ../../packages/dalp/api-contract/src/routes/token/routes/token.metadata.schema.ts
28091
+ import { z as z400 } from "zod";
28066
28092
  var TokenMetadataInputSchema = TokenReadInputSchema;
28067
- var TokenMetadataEntrySchema = z399.object({
28068
- key: z399.string().meta({
28093
+ var TokenMetadataEntrySchema = z400.object({
28094
+ key: z400.string().meta({
28069
28095
  description: "Human-readable metadata key string",
28070
28096
  examples: ["isin", "issuerName"]
28071
28097
  }),
28072
- keyHash: z399.string().meta({
28098
+ keyHash: z400.string().meta({
28073
28099
  description: "On-chain keccak256 hash of the metadata key (bytes32 hex string)",
28074
28100
  examples: ["0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"]
28075
28101
  }),
28076
- value: z399.string().meta({
28102
+ value: z400.string().meta({
28077
28103
  description: "Raw on-chain value (bytes32 hex string)",
28078
28104
  examples: ["0x000000"]
28079
28105
  }),
28080
- valueString: z399.string().nullable().meta({
28106
+ valueString: z400.string().nullable().meta({
28081
28107
  description: "Decoded string representation of the value, null if not decodable",
28082
28108
  examples: ["Acme Corp", null]
28083
28109
  }),
@@ -28085,7 +28111,7 @@ var TokenMetadataEntrySchema = z399.object({
28085
28111
  description: "Numeric representation of the value, null if not numeric",
28086
28112
  examples: ["1000", null]
28087
28113
  }),
28088
- isImmutable: z399.boolean().meta({
28114
+ isImmutable: z400.boolean().meta({
28089
28115
  description: "Whether this metadata entry is immutable (cannot be changed after being set)",
28090
28116
  examples: [false]
28091
28117
  }),
@@ -28094,22 +28120,22 @@ var TokenMetadataEntrySchema = z399.object({
28094
28120
  examples: ["1700000000"]
28095
28121
  })
28096
28122
  });
28097
- var TokenMetadataResponseSchema = z399.object({
28098
- metadata_: z399.object({
28099
- entryCount: z399.number().int().meta({
28123
+ var TokenMetadataResponseSchema = z400.object({
28124
+ metadata_: z400.object({
28125
+ entryCount: z400.number().int().meta({
28100
28126
  description: "Total number of metadata entries",
28101
28127
  examples: [5]
28102
28128
  }),
28103
- entries: z399.array(TokenMetadataEntrySchema).meta({
28129
+ entries: z400.array(TokenMetadataEntrySchema).meta({
28104
28130
  description: "List of metadata entries for the token"
28105
28131
  })
28106
28132
  }).nullable()
28107
28133
  });
28108
28134
 
28109
28135
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.conversion-triggers.schema.ts
28110
- import { z as z400 } from "zod";
28111
- var ConversionTriggerSchema = z400.object({
28112
- triggerId: z400.string().meta({
28136
+ import { z as z401 } from "zod";
28137
+ var ConversionTriggerSchema = z401.object({
28138
+ triggerId: z401.string().meta({
28113
28139
  description: "On-chain trigger ID (bytes32 hex)",
28114
28140
  examples: ["0xabc123..."]
28115
28141
  }),
@@ -28138,16 +28164,16 @@ var ConversionTriggerSchema = z400.object({
28138
28164
  expiresAt: timestamp().meta({
28139
28165
  description: "Trigger expiry timestamp. Epoch zero means no expiry."
28140
28166
  }),
28141
- metadataHash: z400.string().nullable().meta({
28167
+ metadataHash: z401.string().nullable().meta({
28142
28168
  description: "Off-chain metadata document hash (bytes32 hex)"
28143
28169
  }),
28144
- active: z400.boolean().meta({
28170
+ active: z401.boolean().meta({
28145
28171
  description: "Whether the trigger is currently active"
28146
28172
  }),
28147
28173
  disabledAt: timestamp().nullable().meta({
28148
28174
  description: "Timestamp when the trigger was disabled, null if still active"
28149
28175
  }),
28150
- totalConversions: z400.number().int().nonnegative().meta({
28176
+ totalConversions: z401.number().int().nonnegative().meta({
28151
28177
  description: "Number of conversions executed against this trigger",
28152
28178
  examples: [0]
28153
28179
  }),
@@ -28160,16 +28186,16 @@ var ConversionTriggerSchema = z400.object({
28160
28186
  examples: ["0"]
28161
28187
  })
28162
28188
  });
28163
- var ConversionTriggersResponseSchema = z400.object({
28164
- triggers: z400.array(ConversionTriggerSchema).meta({
28189
+ var ConversionTriggersResponseSchema = z401.object({
28190
+ triggers: z401.array(ConversionTriggerSchema).meta({
28165
28191
  description: "List of conversion triggers ordered by publication time descending"
28166
28192
  }),
28167
- totalCount: z400.number().int().nonnegative().meta({
28193
+ totalCount: z401.number().int().nonnegative().meta({
28168
28194
  description: "Total number of conversion triggers for this token",
28169
28195
  examples: [0]
28170
28196
  })
28171
28197
  });
28172
- var ConversionTriggersInputSchema = z400.object({
28198
+ var ConversionTriggersInputSchema = z401.object({
28173
28199
  tokenAddress: ethereumAddress.meta({
28174
28200
  description: "The token contract address",
28175
28201
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28203,26 +28229,26 @@ var DenominationAssetsV2InputSchema = createCollectionInputSchema(DENOMINATION_A
28203
28229
  var DenominationAssetsV2OutputSchema = createPaginatedResponse(DenominationAssetV2ItemSchema);
28204
28230
 
28205
28231
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.events.schema.ts
28206
- import { z as z401 } from "zod";
28207
- var TokenEventV2ValueSchema = z401.object({
28208
- id: z401.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
28209
- name: z401.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
28210
- value: z401.string().meta({
28232
+ import { z as z402 } from "zod";
28233
+ var TokenEventV2ValueSchema = z402.object({
28234
+ id: z402.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
28235
+ name: z402.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
28236
+ value: z402.string().meta({
28211
28237
  description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
28212
28238
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
28213
28239
  })
28214
28240
  });
28215
- var TokenEventV2ItemSchema = z401.object({
28216
- id: z401.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
28217
- eventName: z401.string().meta({
28241
+ var TokenEventV2ItemSchema = z402.object({
28242
+ id: z402.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
28243
+ eventName: z402.string().meta({
28218
28244
  description: "The event name",
28219
28245
  examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
28220
28246
  }),
28221
- txIndex: z401.string().meta({
28247
+ txIndex: z402.string().meta({
28222
28248
  description: "Log index within the transaction (string for parity with v1)",
28223
28249
  examples: ["0", "1", "5"]
28224
28250
  }),
28225
- blockNumber: z401.string().meta({
28251
+ blockNumber: z402.string().meta({
28226
28252
  description: "Block number when the event occurred (decimal string for bigint precision)",
28227
28253
  examples: ["12345678", "20000000"]
28228
28254
  }),
@@ -28234,19 +28260,19 @@ var TokenEventV2ItemSchema = z401.object({
28234
28260
  description: "Transaction hash",
28235
28261
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
28236
28262
  }),
28237
- emitter: z401.object({
28263
+ emitter: z402.object({
28238
28264
  id: ethereumAddress.meta({
28239
28265
  description: "Address of the contract that emitted the event",
28240
28266
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28241
28267
  })
28242
28268
  }),
28243
- sender: z401.object({
28269
+ sender: z402.object({
28244
28270
  id: ethereumAddress.meta({
28245
28271
  description: "Address that triggered the event (account or sender, falling back to the contract address)",
28246
28272
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28247
28273
  })
28248
28274
  }),
28249
- values: z401.array(TokenEventV2ValueSchema).meta({
28275
+ values: z402.array(TokenEventV2ValueSchema).meta({
28250
28276
  description: "Event parameter values",
28251
28277
  examples: []
28252
28278
  })
@@ -28267,15 +28293,15 @@ var TokenEventsV2InputSchema = createCollectionInputSchema(TOKEN_EVENTS_COLLECTI
28267
28293
  var TokenEventsV2OutputSchema = createPaginatedResponse(TokenEventV2ItemSchema);
28268
28294
 
28269
28295
  // ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
28270
- import { z as z402 } from "zod";
28271
- var TransferApprovalSchema = z402.object({
28272
- id: z402.string().meta({
28296
+ import { z as z403 } from "zod";
28297
+ var TransferApprovalSchema = z403.object({
28298
+ id: z403.string().meta({
28273
28299
  description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
28274
28300
  examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
28275
28301
  }),
28276
- token: z402.object({ id: ethereumAddress }),
28277
- fromIdentity: z402.object({ id: ethereumAddress }),
28278
- toIdentity: z402.object({ id: ethereumAddress }),
28302
+ token: z403.object({ id: ethereumAddress }),
28303
+ fromIdentity: z403.object({ id: ethereumAddress }),
28304
+ toIdentity: z403.object({ id: ethereumAddress }),
28279
28305
  value: assetAmount.meta({
28280
28306
  description: "Approved transfer amount in base units",
28281
28307
  examples: ["1000000000000000000"]
@@ -28285,7 +28311,7 @@ var TransferApprovalSchema = z402.object({
28285
28311
  description: "Timestamp when approval expires. Epoch zero means no expiry.",
28286
28312
  examples: ["0", "1893456000"]
28287
28313
  }),
28288
- status: z402.enum(["pending", "consumed", "revoked"]).meta({
28314
+ status: z403.enum(["pending", "consumed", "revoked"]).meta({
28289
28315
  description: "Current status of the approval",
28290
28316
  examples: ["pending"]
28291
28317
  }),
@@ -28298,17 +28324,17 @@ var TransferApprovalSchema = z402.object({
28298
28324
  examples: ["2023-11-14T12:05:00.000Z"]
28299
28325
  })
28300
28326
  });
28301
- var TransferApprovalsResponseSchema = z402.object({
28302
- transferApprovals: z402.array(TransferApprovalSchema).meta({
28327
+ var TransferApprovalsResponseSchema = z403.object({
28328
+ transferApprovals: z403.array(TransferApprovalSchema).meta({
28303
28329
  description: "List of transfer approvals ordered by creation time descending",
28304
28330
  examples: []
28305
28331
  }),
28306
- totalCount: z402.number().int().nonnegative().meta({
28332
+ totalCount: z403.number().int().nonnegative().meta({
28307
28333
  description: "Total number of transfer approvals for this token",
28308
28334
  examples: [3]
28309
28335
  })
28310
28336
  });
28311
- var TransferApprovalsInputSchema = z402.object({
28337
+ var TransferApprovalsInputSchema = z403.object({
28312
28338
  tokenAddress: ethereumAddress.meta({
28313
28339
  description: "The token contract address",
28314
28340
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28316,20 +28342,20 @@ var TransferApprovalsInputSchema = z402.object({
28316
28342
  });
28317
28343
 
28318
28344
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.price.schema.ts
28319
- import { z as z403 } from "zod";
28320
- var TokenPriceInputParamsSchema = z403.object({
28345
+ import { z as z404 } from "zod";
28346
+ var TokenPriceInputParamsSchema = z404.object({
28321
28347
  tokenAddress: ethereumAddress.meta({
28322
28348
  description: "The token contract address",
28323
28349
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28324
28350
  })
28325
28351
  });
28326
- var TokenPriceInputQuerySchema = z403.object({
28352
+ var TokenPriceInputQuerySchema = z404.object({
28327
28353
  currency: fiatCurrency().default("USD").meta({
28328
28354
  description: "Target ISO 4217 currency code for price conversion",
28329
28355
  examples: ["USD", "EUR", "GBP", "AED"]
28330
28356
  })
28331
28357
  });
28332
- var ConversionHopSchema = z403.object({
28358
+ var ConversionHopSchema = z404.object({
28333
28359
  from: fiatCurrency().meta({
28334
28360
  description: "Source currency of this hop",
28335
28361
  examples: ["AED"]
@@ -28338,7 +28364,7 @@ var ConversionHopSchema = z403.object({
28338
28364
  description: "Target currency of this hop",
28339
28365
  examples: ["USD"]
28340
28366
  }),
28341
- rate: z403.string().meta({
28367
+ rate: z404.string().meta({
28342
28368
  description: "Exchange rate (18-decimal string)",
28343
28369
  examples: ["272300000000000000"]
28344
28370
  }),
@@ -28350,17 +28376,17 @@ var ConversionHopSchema = z403.object({
28350
28376
  description: "When the feed was last updated",
28351
28377
  examples: ["2024-03-22T12:00:00.000Z"]
28352
28378
  }),
28353
- inverse: z403.boolean().meta({
28379
+ inverse: z404.boolean().meta({
28354
28380
  description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
28355
28381
  examples: [false]
28356
28382
  })
28357
28383
  });
28358
- var TokenPriceResponseSchema = z403.object({
28384
+ var TokenPriceResponseSchema = z404.object({
28359
28385
  tokenAddress: ethereumAddress.meta({
28360
28386
  description: "The token contract address",
28361
28387
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28362
28388
  }),
28363
- price: z403.string().meta({
28389
+ price: z404.string().meta({
28364
28390
  description: "The resolved price as a decimal string (18-decimal normalized)",
28365
28391
  examples: ["27230000000000000000"]
28366
28392
  }),
@@ -28368,11 +28394,11 @@ var TokenPriceResponseSchema = z403.object({
28368
28394
  description: "The currency of the returned price",
28369
28395
  examples: ["USD"]
28370
28396
  }),
28371
- decimals: z403.number().meta({
28397
+ decimals: z404.number().meta({
28372
28398
  description: "Decimal precision of the price (always 18)",
28373
28399
  examples: [18]
28374
28400
  }),
28375
- source: z403.enum(["feed", "claim"]).meta({
28401
+ source: z404.enum(["feed", "claim"]).meta({
28376
28402
  description: "Whether the base price came from a feed or identity claim",
28377
28403
  examples: ["feed"]
28378
28404
  }),
@@ -28380,7 +28406,7 @@ var TokenPriceResponseSchema = z403.object({
28380
28406
  description: "The native currency of the base price before conversion",
28381
28407
  examples: ["AED"]
28382
28408
  }),
28383
- convertible: z403.boolean().meta({
28409
+ convertible: z404.boolean().meta({
28384
28410
  description: "Whether the price was successfully converted to the target currency",
28385
28411
  examples: [true]
28386
28412
  }),
@@ -28388,15 +28414,15 @@ var TokenPriceResponseSchema = z403.object({
28388
28414
  description: "The requested target currency (only present when convertible is false)",
28389
28415
  examples: ["USD"]
28390
28416
  }),
28391
- reason: z403.string().optional().meta({
28417
+ reason: z404.string().optional().meta({
28392
28418
  description: "Reason for conversion failure (only present when convertible is false)",
28393
28419
  examples: ["no_fx_path"]
28394
28420
  }),
28395
- message: z403.string().optional().meta({
28421
+ message: z404.string().optional().meta({
28396
28422
  description: "Human-readable explanation (only present when convertible is false)",
28397
28423
  examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
28398
28424
  }),
28399
- availableCurrencies: z403.array(fiatCurrency()).optional().meta({
28425
+ availableCurrencies: z404.array(fiatCurrency()).optional().meta({
28400
28426
  description: "Currencies reachable from the source currency (only present when convertible is false)",
28401
28427
  examples: [["AED", "EUR"]]
28402
28428
  }),
@@ -28404,7 +28430,7 @@ var TokenPriceResponseSchema = z403.object({
28404
28430
  description: "When the price data was last updated (ISO 8601)",
28405
28431
  examples: ["2026-03-22T10:30:00.000Z"]
28406
28432
  }),
28407
- conversionPath: z403.array(ConversionHopSchema).meta({
28433
+ conversionPath: z404.array(ConversionHopSchema).meta({
28408
28434
  description: "The FX conversion hops applied (empty if no conversion needed)",
28409
28435
  examples: [[]]
28410
28436
  })
@@ -28423,7 +28449,7 @@ var HoldersV2InputSchema = createCollectionInputSchema(HOLDER_COLLECTION_FIELDS,
28423
28449
  var HoldersV2OutputSchema = createPaginatedResponse(assetBalance());
28424
28450
 
28425
28451
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
28426
- import { z as z404 } from "zod";
28452
+ import { z as z405 } from "zod";
28427
28453
  var HISTORICAL_BALANCE_KIND_OPTIONS = ["account", "totalSupply"];
28428
28454
  var TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS = {
28429
28455
  account: addressField({ defaultOperator: "eq" }),
@@ -28448,10 +28474,10 @@ var TokenHistoricalBalancesV2InputSchema = createCollectionInputSchema(TOKEN_HIS
28448
28474
  }
28449
28475
  }
28450
28476
  });
28451
- var TokenHistoricalBalanceV2ItemSchema = z404.object({
28452
- id: z404.string().uuid(),
28477
+ var TokenHistoricalBalanceV2ItemSchema = z405.object({
28478
+ id: z405.string().uuid(),
28453
28479
  account: ethereumAddress,
28454
- kind: z404.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
28480
+ kind: z405.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
28455
28481
  sender: ethereumAddress,
28456
28482
  oldBalance: bigDecimal(),
28457
28483
  oldBalanceExact: apiBigInt,
@@ -28460,12 +28486,12 @@ var TokenHistoricalBalanceV2ItemSchema = z404.object({
28460
28486
  blockNumber: apiBigInt,
28461
28487
  blockTimestamp: timestamp(),
28462
28488
  txHash: ethereumHash,
28463
- logIndex: z404.number().int().nonnegative()
28489
+ logIndex: z405.number().int().nonnegative()
28464
28490
  });
28465
28491
  var TokenHistoricalBalancesV2OutputSchema = createPaginatedResponse(TokenHistoricalBalanceV2ItemSchema);
28466
28492
 
28467
28493
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collections.list.schema.ts
28468
- import { z as z405 } from "zod";
28494
+ import { z as z406 } from "zod";
28469
28495
  var OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "redeem"];
28470
28496
  var TOKEN_TRANSACTION_FEE_COLLECTIONS_COLLECTION_FIELDS = {
28471
28497
  collectedAt: dateField(),
@@ -28478,21 +28504,21 @@ var TokenTransactionFeeCollectionsV2InputSchema = createCollectionInputSchema(TO
28478
28504
  defaultSort: "-collectedAt",
28479
28505
  globalSearch: false
28480
28506
  });
28481
- var TokenTransactionFeeCollectionV2ItemSchema = z405.object({
28482
- id: z405.string().uuid(),
28507
+ var TokenTransactionFeeCollectionV2ItemSchema = z406.object({
28508
+ id: z406.string().uuid(),
28483
28509
  counterpartyAddress: ethereumAddress,
28484
- operationType: z405.enum(OPERATION_TYPE_OPTIONS),
28510
+ operationType: z406.enum(OPERATION_TYPE_OPTIONS),
28485
28511
  feeAmount: bigDecimal(),
28486
28512
  feeAmountExact: apiBigInt,
28487
28513
  blockNumber: apiBigInt,
28488
28514
  blockTimestamp: timestamp(),
28489
28515
  txHash: ethereumHash,
28490
- logIndex: z405.number().int().nonnegative()
28516
+ logIndex: z406.number().int().nonnegative()
28491
28517
  });
28492
28518
  var TokenTransactionFeeCollectionsV2OutputSchema = createPaginatedResponse(TokenTransactionFeeCollectionV2ItemSchema);
28493
28519
 
28494
28520
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-events.list.schema.ts
28495
- import { z as z406 } from "zod";
28521
+ import { z as z407 } from "zod";
28496
28522
  var FEE_ACCRUAL_OPERATION_TYPE_OPTIONS = [...OPERATION_TYPE_OPTIONS, "unknown"];
28497
28523
  var TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS = {
28498
28524
  accruedAt: dateField(),
@@ -28508,22 +28534,22 @@ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_A
28508
28534
  defaultSort: "-accruedAt",
28509
28535
  globalSearch: false
28510
28536
  });
28511
- var TokenFeeAccrualEventV2ItemSchema = z406.object({
28512
- id: z406.uuid(),
28537
+ var TokenFeeAccrualEventV2ItemSchema = z407.object({
28538
+ id: z407.uuid(),
28513
28539
  payer: ethereumAddress,
28514
28540
  fromAddress: ethereumAddress,
28515
28541
  toAddress: ethereumAddress,
28516
- operationType: z406.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
28542
+ operationType: z407.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
28517
28543
  operationAmount: bigDecimal(),
28518
28544
  operationAmountExact: apiBigInt,
28519
- feeBps: z406.number().int().nonnegative(),
28545
+ feeBps: z407.number().int().nonnegative(),
28520
28546
  feeAmount: bigDecimal(),
28521
28547
  feeAmountExact: apiBigInt,
28522
28548
  blockNumber: apiBigInt,
28523
28549
  blockTimestamp: timestamp(),
28524
28550
  eventTimestamp: timestamp(),
28525
28551
  txHash: ethereumHash,
28526
- logIndex: z406.number().int().nonnegative()
28552
+ logIndex: z407.number().int().nonnegative()
28527
28553
  });
28528
28554
  var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
28529
28555
 
@@ -28540,7 +28566,7 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
28540
28566
  var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
28541
28567
 
28542
28568
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
28543
- import { z as z407 } from "zod";
28569
+ import { z as z408 } from "zod";
28544
28570
  var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
28545
28571
  account: addressField({ defaultOperator: "iLike" }),
28546
28572
  delegate: addressField({ defaultOperator: "iLike" }),
@@ -28554,20 +28580,20 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
28554
28580
  defaultSort: "-delegatedAt",
28555
28581
  globalSearch: false
28556
28582
  });
28557
- var VotingDelegationV2ItemSchema = z407.object({
28558
- id: z407.string().uuid(),
28583
+ var VotingDelegationV2ItemSchema = z408.object({
28584
+ id: z408.string().uuid(),
28559
28585
  delegator: ethereumAddress,
28560
28586
  fromDelegate: ethereumAddress.nullable(),
28561
28587
  toDelegate: ethereumAddress,
28562
28588
  delegatedAt: timestamp(),
28563
28589
  delegatedBlockNumber: apiBigInt,
28564
28590
  delegatedTxHash: ethereumHash,
28565
- delegatedLogIndex: z407.number().int().nonnegative(),
28591
+ delegatedLogIndex: z408.number().int().nonnegative(),
28566
28592
  undelegatedAt: timestamp().nullable(),
28567
28593
  undelegatedBlockNumber: apiBigInt.nullable(),
28568
28594
  undelegatedTxHash: ethereumHash.nullable(),
28569
- undelegatedLogIndex: z407.number().int().nonnegative().nullable(),
28570
- isActive: z407.boolean()
28595
+ undelegatedLogIndex: z408.number().int().nonnegative().nullable(),
28596
+ isActive: z408.boolean()
28571
28597
  });
28572
28598
  var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
28573
28599
 
@@ -28585,21 +28611,21 @@ var allowance = v2Contract.route({
28585
28611
  description: "Get token allowance for a specific owner/spender pair.",
28586
28612
  successDescription: "Token allowance details retrieved successfully.",
28587
28613
  tags: [V2_TAG.token]
28588
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z408.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
28614
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z409.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
28589
28615
  var holder = v2Contract.route({
28590
28616
  method: "GET",
28591
28617
  path: "/tokens/{tokenAddress}/holder-balances",
28592
28618
  description: "Get a specific token holder's balance information.",
28593
28619
  successDescription: "Token holder balance details retrieved successfully.",
28594
28620
  tags: [V2_TAG.token]
28595
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z408.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
28621
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z409.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
28596
28622
  var holders = v2Contract.route({
28597
28623
  method: "GET",
28598
28624
  path: "/tokens/{tokenAddress}/holders",
28599
28625
  description: "Get token holders and their balances.",
28600
28626
  successDescription: "List of token holders with balance information.",
28601
28627
  tags: [V2_TAG.token]
28602
- }).input(v2Input.paramsQuery(z408.object({
28628
+ }).input(v2Input.paramsQuery(z409.object({
28603
28629
  tokenAddress: ethereumAddress.meta({
28604
28630
  description: "The token contract address",
28605
28631
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28611,7 +28637,7 @@ var actions = v2Contract.route({
28611
28637
  description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28612
28638
  successDescription: "Paginated list of actions targeting the specified token.",
28613
28639
  tags: [V2_TAG.token]
28614
- }).input(v2Input.paramsQuery(z408.object({
28640
+ }).input(v2Input.paramsQuery(z409.object({
28615
28641
  tokenAddress: ethereumAddress.meta({
28616
28642
  description: "The token contract address to filter actions by",
28617
28643
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28623,7 +28649,7 @@ var events2 = v2Contract.route({
28623
28649
  description: "List token events with pagination, filtering, sorting, and faceted counts.",
28624
28650
  successDescription: "Paginated list of token events with metadata and pagination links.",
28625
28651
  tags: [V2_TAG.token]
28626
- }).input(v2Input.paramsQuery(z408.object({
28652
+ }).input(v2Input.paramsQuery(z409.object({
28627
28653
  tokenAddress: ethereumAddress.meta({
28628
28654
  description: "The token contract address",
28629
28655
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
@@ -28635,7 +28661,7 @@ var denominationAssets = v2Contract.route({
28635
28661
  description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28636
28662
  successDescription: "Paginated list of denomination assets used by the specified bond.",
28637
28663
  tags: [V2_TAG.token]
28638
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
28664
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
28639
28665
  var compliance = v2Contract.route({
28640
28666
  method: "GET",
28641
28667
  path: "/tokens/{tokenAddress}/compliance-modules",
@@ -28650,6 +28676,13 @@ var features = v2Contract.route({
28650
28676
  successDescription: "Token features retrieved successfully.",
28651
28677
  tags: [V2_TAG.token]
28652
28678
  }).input(v2Input.params(TokenFeaturesInputSchema)).output(createSingleResponse(TokenFeaturesResponseSchema));
28679
+ var aumFeeAccruedEstimate = v2Contract.route({
28680
+ method: "GET",
28681
+ path: "/tokens/{tokenAddress}/aum-fee/accrued-estimate",
28682
+ description: "Read the authoritative on-chain accrued AUM fee for the token's attached AUM-fee feature. Multicalls getAccruedFees() and getLastCollectionTime() against the same block; returns null when no AUM-fee feature is attached.",
28683
+ successDescription: "AUM-fee accrued estimate retrieved successfully.",
28684
+ tags: [V2_TAG.token]
28685
+ }).input(v2Input.params(TokenAumFeeAccruedEstimateInputSchema)).output(createSingleResponse(TokenAumFeeAccruedEstimateResponseSchema));
28653
28686
  var tokenMetadata = v2Contract.route({
28654
28687
  method: "GET",
28655
28688
  path: "/tokens/{tokenAddress}/metadata",
@@ -28663,7 +28696,7 @@ var transferApprovals = v2Contract.route({
28663
28696
  description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
28664
28697
  successDescription: "List of transfer approvals with their current status.",
28665
28698
  tags: [V2_TAG.compliance]
28666
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
28699
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
28667
28700
  var price = v2Contract.route({
28668
28701
  method: "GET",
28669
28702
  path: "/tokens/{tokenAddress}/price",
@@ -28677,35 +28710,35 @@ var conversionTriggers = v2Contract.route({
28677
28710
  description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
28678
28711
  successDescription: "Paginated list of conversion triggers with effective pricing.",
28679
28712
  tags: [V2_TAG.token]
28680
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
28713
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
28681
28714
  var votingDelegations = v2Contract.route({
28682
28715
  method: "GET",
28683
28716
  path: "/tokens/{tokenAddress}/voting-delegations",
28684
28717
  description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
28685
28718
  successDescription: "Paginated list of voting delegation lifecycle rows.",
28686
28719
  tags: [V2_TAG.token]
28687
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
28720
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
28688
28721
  var historicalBalances = v2Contract.route({
28689
28722
  method: "GET",
28690
28723
  path: "/tokens/{tokenAddress}/historical-balances",
28691
28724
  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.",
28692
28725
  successDescription: "Paginated list of historical balance checkpoints.",
28693
28726
  tags: [V2_TAG.token]
28694
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
28727
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
28695
28728
  var transactionFeeCollections = v2Contract.route({
28696
28729
  method: "GET",
28697
28730
  path: "/tokens/{tokenAddress}/transaction-fee/collections",
28698
28731
  description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
28699
28732
  successDescription: "Paginated list of transaction-fee collections.",
28700
28733
  tags: [V2_TAG.token]
28701
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
28734
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
28702
28735
  var feeAccrualEvents = v2Contract.route({
28703
28736
  method: "GET",
28704
28737
  path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
28705
28738
  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.",
28706
28739
  successDescription: "Paginated list of fee-accrual events.",
28707
28740
  tags: [V2_TAG.token]
28708
- }).input(v2Input.paramsQuery(z408.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
28741
+ }).input(v2Input.paramsQuery(z409.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
28709
28742
  var tokenV2ReadsContract = {
28710
28743
  read: read27,
28711
28744
  allowance,
@@ -28716,6 +28749,7 @@ var tokenV2ReadsContract = {
28716
28749
  denominationAssets,
28717
28750
  compliance,
28718
28751
  features,
28752
+ aumFeeAccruedEstimate,
28719
28753
  metadata: tokenMetadata,
28720
28754
  transferApprovals,
28721
28755
  conversionTriggers,
@@ -28727,7 +28761,7 @@ var tokenV2ReadsContract = {
28727
28761
  };
28728
28762
 
28729
28763
  // ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
28730
- import { z as z409 } from "zod";
28764
+ import { z as z410 } from "zod";
28731
28765
  var statsBondStatus = v2Contract.route({
28732
28766
  method: "GET",
28733
28767
  path: "/tokens/{tokenAddress}/stats/bond-status",
@@ -28748,25 +28782,25 @@ var statsTotalSupply = v2Contract.route({
28748
28782
  description: "Get total supply history statistics for a specific token.",
28749
28783
  successDescription: "Token total supply history statistics.",
28750
28784
  tags: [V2_TAG.tokenStats]
28751
- }).input(v2Input.paramsQuery(z409.object({
28785
+ }).input(v2Input.paramsQuery(z410.object({
28752
28786
  tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
28753
- }), z409.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
28787
+ }), z410.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
28754
28788
  var statsSupplyChanges = v2Contract.route({
28755
28789
  method: "GET",
28756
28790
  path: "/tokens/{tokenAddress}/stats/supply-changes",
28757
28791
  description: "Get supply changes history (minted/burned) statistics for a specific token.",
28758
28792
  successDescription: "Token supply changes history statistics.",
28759
28793
  tags: [V2_TAG.tokenStats]
28760
- }).input(v2Input.paramsQuery(z409.object({
28794
+ }).input(v2Input.paramsQuery(z410.object({
28761
28795
  tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
28762
- }), z409.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
28796
+ }), z410.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
28763
28797
  var statsVolume = v2Contract.route({
28764
28798
  method: "GET",
28765
28799
  path: "/tokens/{tokenAddress}/stats/volume",
28766
28800
  description: "Get total volume history statistics for a specific token.",
28767
28801
  successDescription: "Token total volume history statistics.",
28768
28802
  tags: [V2_TAG.tokenStats]
28769
- }).input(v2Input.paramsQuery(z409.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z409.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
28803
+ }).input(v2Input.paramsQuery(z410.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z410.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
28770
28804
  var statsWalletDistribution = v2Contract.route({
28771
28805
  method: "GET",
28772
28806
  path: "/tokens/{tokenAddress}/stats/wallet-distribution",
@@ -28816,7 +28850,7 @@ var tokenV2Contract = {
28816
28850
  };
28817
28851
 
28818
28852
  // ../../packages/core/validation/src/transaction-request-state.ts
28819
- import { z as z410 } from "zod";
28853
+ import { z as z411 } from "zod";
28820
28854
  var transactionRequestStates = [
28821
28855
  "RECEIVED",
28822
28856
  "QUEUED",
@@ -28831,7 +28865,7 @@ var transactionRequestStates = [
28831
28865
  "CANCELLED"
28832
28866
  ];
28833
28867
  var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
28834
- var TransactionRequestStateSchema = z410.enum(transactionRequestStates).meta({
28868
+ var TransactionRequestStateSchema = z411.enum(transactionRequestStates).meta({
28835
28869
  description: "Current state in the transaction request lifecycle",
28836
28870
  examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
28837
28871
  });
@@ -28872,96 +28906,96 @@ var transactionSubStatuses = [
28872
28906
  "WORKFLOW_BATCH_COMPLETED",
28873
28907
  "WORKFLOW_BATCH_FAILED"
28874
28908
  ];
28875
- var TransactionSubStatusSchema = z410.enum(transactionSubStatuses).meta({
28909
+ var TransactionSubStatusSchema = z411.enum(transactionSubStatuses).meta({
28876
28910
  description: "Detailed sub-status for transaction failures",
28877
28911
  examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
28878
28912
  });
28879
28913
 
28880
28914
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
28881
- import { z as z411 } from "zod";
28882
- var TransactionForceRetryInputSchema = z411.object({
28883
- transactionId: z411.uuid().meta({
28915
+ import { z as z412 } from "zod";
28916
+ var TransactionForceRetryInputSchema = z412.object({
28917
+ transactionId: z412.uuid().meta({
28884
28918
  description: "Queue transaction identifier (UUIDv7) to retry",
28885
28919
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28886
28920
  })
28887
28921
  });
28888
- var TransactionForceRetryBodySchema = z411.object({
28889
- gasPrice: z411.string().optional().meta({
28922
+ var TransactionForceRetryBodySchema = z412.object({
28923
+ gasPrice: z412.string().optional().meta({
28890
28924
  description: "Override gas price in wei (decimal string)",
28891
28925
  examples: ["20000000000"]
28892
28926
  }),
28893
- nonce: z411.number().int().nonnegative().optional().meta({
28927
+ nonce: z412.number().int().nonnegative().optional().meta({
28894
28928
  description: "Override nonce for the retried transaction",
28895
28929
  examples: [42]
28896
28930
  })
28897
28931
  }).default({});
28898
- var TransactionForceRetryResultSchema = z411.object({
28899
- transactionId: z411.uuid().meta({ description: "The requeued transaction ID" }),
28932
+ var TransactionForceRetryResultSchema = z412.object({
28933
+ transactionId: z412.uuid().meta({ description: "The requeued transaction ID" }),
28900
28934
  previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
28901
28935
  status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
28902
28936
  });
28903
28937
  var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
28904
- var TransactionForceFailInputSchema = z411.object({
28905
- transactionId: z411.uuid().meta({
28938
+ var TransactionForceFailInputSchema = z412.object({
28939
+ transactionId: z412.uuid().meta({
28906
28940
  description: "Queue transaction identifier (UUIDv7) to force-fail",
28907
28941
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28908
28942
  })
28909
28943
  });
28910
- var TransactionForceFailBodySchema = z411.object({
28911
- reason: z411.string().min(1).max(1000).meta({
28944
+ var TransactionForceFailBodySchema = z412.object({
28945
+ reason: z412.string().min(1).max(1000).meta({
28912
28946
  description: "Human-readable reason for forcing this transaction to failed state",
28913
28947
  examples: ["Manual intervention: stuck transaction after nonce conflict"]
28914
28948
  })
28915
28949
  });
28916
- var TransactionForceFailResultSchema = z411.object({
28917
- transactionId: z411.uuid().meta({ description: "The force-failed transaction ID" }),
28950
+ var TransactionForceFailResultSchema = z412.object({
28951
+ transactionId: z412.uuid().meta({ description: "The force-failed transaction ID" }),
28918
28952
  previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
28919
28953
  status: transactionRequestState().meta({ description: "New state (FAILED)" }),
28920
- reason: z411.string().meta({ description: "The reason provided for the force-fail" })
28954
+ reason: z412.string().meta({ description: "The reason provided for the force-fail" })
28921
28955
  });
28922
28956
  var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
28923
- var TransactionForceNonceInputSchema = z411.object({
28924
- transactionId: z411.uuid().meta({
28957
+ var TransactionForceNonceInputSchema = z412.object({
28958
+ transactionId: z412.uuid().meta({
28925
28959
  description: "Queue transaction identifier — the nonce is forced on its sender wallet",
28926
28960
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28927
28961
  })
28928
28962
  });
28929
- var TransactionForceNonceBodySchema = z411.object({
28930
- nonce: z411.number().int().nonnegative().meta({
28963
+ var TransactionForceNonceBodySchema = z412.object({
28964
+ nonce: z412.number().int().nonnegative().meta({
28931
28965
  description: "Nonce value to force-set on the sender's nonce tracker",
28932
28966
  examples: [42]
28933
28967
  })
28934
28968
  });
28935
- var TransactionForceNonceResultSchema = z411.object({
28936
- previous: z411.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
28937
- new: z411.number().meta({ description: "New nonce value after force-set" })
28969
+ var TransactionForceNonceResultSchema = z412.object({
28970
+ previous: z412.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
28971
+ new: z412.number().meta({ description: "New nonce value after force-set" })
28938
28972
  });
28939
28973
  var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
28940
28974
 
28941
28975
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
28942
- import { z as z412 } from "zod";
28943
- var TransactionV2CancelInputSchema = z412.object({
28944
- transactionId: z412.uuid().meta({
28976
+ import { z as z413 } from "zod";
28977
+ var TransactionV2CancelInputSchema = z413.object({
28978
+ transactionId: z413.uuid().meta({
28945
28979
  description: "Queue transaction identifier (UUIDv7) to cancel",
28946
28980
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28947
28981
  })
28948
28982
  });
28949
- var TransactionCancelResultSchema = z412.object({
28950
- status: z412.enum(["cancelled", "cancellation_pending", "error"]).meta({
28983
+ var TransactionCancelResultSchema = z413.object({
28984
+ status: z413.enum(["cancelled", "cancellation_pending", "error"]).meta({
28951
28985
  description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
28952
28986
  examples: ["cancelled", "cancellation_pending"]
28953
28987
  }),
28954
- cancelTransactionId: z412.string().optional().meta({
28988
+ cancelTransactionId: z413.string().optional().meta({
28955
28989
  description: "RBF replacement transaction ID when cancellation is pending on-chain"
28956
28990
  }),
28957
- message: z412.string().optional().meta({
28991
+ message: z413.string().optional().meta({
28958
28992
  description: "Human-readable error or status message"
28959
28993
  })
28960
28994
  });
28961
28995
  var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
28962
28996
 
28963
28997
  // ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
28964
- import { z as z413 } from "zod";
28998
+ import { z as z414 } from "zod";
28965
28999
  var TRANSACTION_COLLECTION_FIELDS = {
28966
29000
  status: enumField([...transactionRequestStates]),
28967
29001
  operationType: textField(),
@@ -28974,12 +29008,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
28974
29008
  defaultSort: "createdAt",
28975
29009
  globalSearch: true
28976
29010
  });
28977
- var TransactionListItemSchema = z413.object({
28978
- transactionId: z413.uuid().meta({
29011
+ var TransactionListItemSchema = z414.object({
29012
+ transactionId: z414.uuid().meta({
28979
29013
  description: "Queue transaction identifier (UUIDv7)",
28980
29014
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
28981
29015
  }),
28982
- kind: z413.string().meta({
29016
+ kind: z414.string().meta({
28983
29017
  description: "Mutation kind submitted to the queue",
28984
29018
  examples: ["token.create", "token.mint"]
28985
29019
  }),
@@ -28987,19 +29021,19 @@ var TransactionListItemSchema = z413.object({
28987
29021
  description: "Current transaction queue state",
28988
29022
  examples: ["QUEUED", "COMPLETED", "FAILED"]
28989
29023
  }),
28990
- subStatus: z413.string().nullable().meta({
29024
+ subStatus: z414.string().nullable().meta({
28991
29025
  description: "Optional queue sub-status with finer-grained detail",
28992
29026
  examples: ["TIMEOUT", null]
28993
29027
  }),
28994
- fromAddress: z413.string().meta({
29028
+ fromAddress: z414.string().meta({
28995
29029
  description: "Sender wallet address",
28996
29030
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
28997
29031
  }),
28998
- chainId: z413.number().int().meta({
29032
+ chainId: z414.number().int().meta({
28999
29033
  description: "Target chain ID",
29000
29034
  examples: [1]
29001
29035
  }),
29002
- transactionHash: z413.string().nullable().meta({
29036
+ transactionHash: z414.string().nullable().meta({
29003
29037
  description: "Primary transaction hash once broadcast",
29004
29038
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
29005
29039
  }),
@@ -29019,19 +29053,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
29019
29053
  var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
29020
29054
 
29021
29055
  // ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
29022
- import { z as z414 } from "zod";
29023
- var TransactionStatusInputSchema = z414.object({
29024
- transactionId: z414.uuid().meta({
29056
+ import { z as z415 } from "zod";
29057
+ var TransactionStatusInputSchema = z415.object({
29058
+ transactionId: z415.uuid().meta({
29025
29059
  description: "Queue transaction identifier (UUIDv7)",
29026
29060
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
29027
29061
  })
29028
29062
  });
29029
- var TransactionStatusOutputSchema = z414.object({
29030
- transactionId: z414.uuid().meta({
29063
+ var TransactionStatusOutputSchema = z415.object({
29064
+ transactionId: z415.uuid().meta({
29031
29065
  description: "Queue transaction identifier (UUIDv7)",
29032
29066
  examples: ["01934567-89ab-7def-8123-456789abcdef"]
29033
29067
  }),
29034
- kind: z414.string().meta({
29068
+ kind: z415.string().meta({
29035
29069
  description: "Mutation kind submitted to the queue",
29036
29070
  examples: ["token.create", "token.mint"]
29037
29071
  }),
@@ -29039,23 +29073,23 @@ var TransactionStatusOutputSchema = z414.object({
29039
29073
  description: "Current transaction queue state",
29040
29074
  examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
29041
29075
  }),
29042
- subStatus: z414.string().nullable().meta({
29076
+ subStatus: z415.string().nullable().meta({
29043
29077
  description: "Optional queue sub-status with finer-grained progress or failure detail",
29044
29078
  examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
29045
29079
  }),
29046
- transactionHash: z414.string().nullable().meta({
29080
+ transactionHash: z415.string().nullable().meta({
29047
29081
  description: "Primary transaction hash once broadcast",
29048
29082
  examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
29049
29083
  }),
29050
- transactionHashes: z414.array(z414.string()).optional().meta({
29084
+ transactionHashes: z415.array(z415.string()).optional().meta({
29051
29085
  description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
29052
29086
  examples: [["0xabc...", "0xdef..."]]
29053
29087
  }),
29054
- blockNumber: z414.string().nullable().meta({
29088
+ blockNumber: z415.string().nullable().meta({
29055
29089
  description: "Confirmed block number when available",
29056
29090
  examples: ["12345678", null]
29057
29091
  }),
29058
- errorMessage: z414.string().nullable().meta({
29092
+ errorMessage: z415.string().nullable().meta({
29059
29093
  description: "Human-readable error or timeout detail when available",
29060
29094
  examples: ["Execution reverted", "Receipt not found after repeated checks", null]
29061
29095
  }),
@@ -29134,12 +29168,12 @@ var transactionV2Contract = {
29134
29168
  };
29135
29169
 
29136
29170
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
29137
- import { z as z420 } from "zod";
29171
+ import { z as z421 } from "zod";
29138
29172
 
29139
29173
  // ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
29140
- import { z as z415 } from "zod";
29141
- var UserReadByNationalIdInputSchema = z415.object({
29142
- nationalId: z415.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
29174
+ import { z as z416 } from "zod";
29175
+ var UserReadByNationalIdInputSchema = z416.object({
29176
+ nationalId: z416.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
29143
29177
  });
29144
29178
 
29145
29179
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
@@ -29157,13 +29191,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
29157
29191
  var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
29158
29192
 
29159
29193
  // ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
29160
- import { z as z416 } from "zod";
29161
- var TokenAssetV2Schema = z416.object({
29194
+ import { z as z417 } from "zod";
29195
+ var TokenAssetV2Schema = z417.object({
29162
29196
  id: ethereumAddress.meta({
29163
29197
  description: "The token contract address",
29164
29198
  examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
29165
29199
  }),
29166
- name: z416.string().meta({
29200
+ name: z417.string().meta({
29167
29201
  description: "The token name",
29168
29202
  examples: ["Bond Token", "Equity Share"]
29169
29203
  }),
@@ -29183,19 +29217,19 @@ var TokenAssetV2Schema = z416.object({
29183
29217
  description: "The total supply of the token (raw on-chain uint256)",
29184
29218
  examples: ["1000000000000000000000", "101000000000000000000000000"]
29185
29219
  }),
29186
- bond: z416.object({
29187
- isMatured: z416.boolean().meta({
29220
+ bond: z417.object({
29221
+ isMatured: z417.boolean().meta({
29188
29222
  description: "Whether the bond is matured",
29189
29223
  examples: [true, false]
29190
29224
  })
29191
29225
  }).optional().nullable().meta({ description: "The bond details", examples: [] }),
29192
- yield: z416.object({
29193
- schedule: z416.object({
29226
+ yield: z417.object({
29227
+ schedule: z417.object({
29194
29228
  id: ethereumAddress.meta({
29195
29229
  description: "The yield schedule contract address",
29196
29230
  examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
29197
29231
  }),
29198
- denominationAsset: z416.object({
29232
+ denominationAsset: z417.object({
29199
29233
  id: ethereumAddress.meta({
29200
29234
  description: "The denomination asset contract address",
29201
29235
  examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
@@ -29215,8 +29249,8 @@ var TokenAssetV2Schema = z416.object({
29215
29249
  }).nullable().meta({ description: "The yield schedule details", examples: [] })
29216
29250
  }).nullable().meta({ description: "The yield details", examples: [] })
29217
29251
  });
29218
- var UserAssetBalanceV2ItemSchema = z416.object({
29219
- id: z416.uuid().meta({
29252
+ var UserAssetBalanceV2ItemSchema = z417.object({
29253
+ id: z417.uuid().meta({
29220
29254
  description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
29221
29255
  examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
29222
29256
  }),
@@ -29236,7 +29270,7 @@ var UserAssetBalanceV2ItemSchema = z416.object({
29236
29270
  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.",
29237
29271
  examples: ["5.00", null]
29238
29272
  }),
29239
- priceInBaseCurrencyReliable: z416.boolean().meta({
29273
+ priceInBaseCurrencyReliable: z417.boolean().meta({
29240
29274
  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.",
29241
29275
  examples: [true, false]
29242
29276
  }),
@@ -29288,10 +29322,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
29288
29322
  var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
29289
29323
 
29290
29324
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
29291
- import { z as z419 } from "zod";
29325
+ import { z as z420 } from "zod";
29292
29326
 
29293
29327
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
29294
- import { z as z417 } from "zod";
29328
+ import { z as z418 } from "zod";
29295
29329
  var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
29296
29330
  fileName: textField(),
29297
29331
  documentType: enumField(kycDocumentTypes, { facetable: true }),
@@ -29302,19 +29336,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
29302
29336
  var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
29303
29337
  defaultSort: "uploadedAt"
29304
29338
  });
29305
- var KycProfileVersionDocumentsV2ListItemSchema = z417.object({
29306
- id: z417.string(),
29339
+ var KycProfileVersionDocumentsV2ListItemSchema = z418.object({
29340
+ id: z418.string(),
29307
29341
  documentType: kycDocumentType(),
29308
- fileName: z417.string(),
29309
- fileSize: z417.number(),
29310
- mimeType: z417.string(),
29342
+ fileName: z418.string(),
29343
+ fileSize: z418.number(),
29344
+ mimeType: z418.string(),
29311
29345
  uploadedAt: timestamp(),
29312
- uploadedBy: z417.string().nullable()
29346
+ uploadedBy: z418.string().nullable()
29313
29347
  });
29314
29348
  var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
29315
29349
 
29316
29350
  // ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
29317
- import { z as z418 } from "zod";
29351
+ import { z as z419 } from "zod";
29318
29352
  var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
29319
29353
  var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
29320
29354
  var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
@@ -29327,21 +29361,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
29327
29361
  var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
29328
29362
  defaultSort: "versionNumber"
29329
29363
  });
29330
- var KycProfileVersionsV2ListItemSchema = z418.object({
29331
- id: z418.string(),
29332
- versionNumber: z418.number(),
29364
+ var KycProfileVersionsV2ListItemSchema = z419.object({
29365
+ id: z419.string(),
29366
+ versionNumber: z419.number(),
29333
29367
  status: kycVersionStatus(),
29334
29368
  createdAt: timestamp(),
29335
- createdBy: z418.string().nullable(),
29369
+ createdBy: z419.string().nullable(),
29336
29370
  submittedAt: timestamp().nullable(),
29337
- submittedBy: z418.string().nullable(),
29371
+ submittedBy: z419.string().nullable(),
29338
29372
  reviewedAt: timestamp().nullable(),
29339
- reviewedBy: z418.string().nullable(),
29340
- reviewOutcome: z418.enum(KYC_REVIEW_OUTCOMES).nullable(),
29341
- isDraft: z418.boolean(),
29342
- isUnderReview: z418.boolean(),
29343
- isApproved: z418.boolean(),
29344
- isCurrent: z418.boolean()
29373
+ reviewedBy: z419.string().nullable(),
29374
+ reviewOutcome: z419.enum(KYC_REVIEW_OUTCOMES).nullable(),
29375
+ isDraft: z419.boolean(),
29376
+ isUnderReview: z419.boolean(),
29377
+ isApproved: z419.boolean(),
29378
+ isCurrent: z419.boolean()
29345
29379
  });
29346
29380
  var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
29347
29381
 
@@ -29359,14 +29393,14 @@ var versionsList = v2Contract.route({
29359
29393
  description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
29360
29394
  successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
29361
29395
  tags: [V2_TAG.userKyc]
29362
- }).input(v2Input.paramsQuery(z419.object({ userId: z419.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
29396
+ }).input(v2Input.paramsQuery(z420.object({ userId: z420.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
29363
29397
  var versionsCreate = v2Contract.route({
29364
29398
  method: "POST",
29365
29399
  path: "/kyc-profiles/{userId}/versions",
29366
29400
  description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
29367
29401
  successDescription: "KYC profile version created successfully.",
29368
29402
  tags: [V2_TAG.userKyc]
29369
- }).input(v2Input.paramsBody(z419.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
29403
+ }).input(v2Input.paramsBody(z420.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
29370
29404
  var versionRead = v2Contract.route({
29371
29405
  method: "GET",
29372
29406
  path: "/kyc-profile-versions/{versionId}",
@@ -29380,7 +29414,7 @@ var versionUpdate = v2Contract.route({
29380
29414
  description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
29381
29415
  successDescription: "KYC profile version updated successfully.",
29382
29416
  tags: [V2_TAG.userKyc]
29383
- }).input(v2Input.paramsBody(z419.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
29417
+ }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
29384
29418
  var versionSubmit = v2Contract.route({
29385
29419
  method: "POST",
29386
29420
  path: "/kyc-profile-versions/{versionId}/submissions",
@@ -29394,28 +29428,28 @@ var versionApprove = v2Contract.route({
29394
29428
  description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
29395
29429
  successDescription: "KYC profile version approved.",
29396
29430
  tags: [V2_TAG.userKyc]
29397
- }).input(v2Input.paramsBody(z419.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
29431
+ }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
29398
29432
  var versionReject = v2Contract.route({
29399
29433
  method: "POST",
29400
29434
  path: "/kyc-profile-versions/{versionId}/rejections",
29401
29435
  description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
29402
29436
  successDescription: "KYC profile version rejected.",
29403
29437
  tags: [V2_TAG.userKyc]
29404
- }).input(v2Input.paramsBody(z419.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
29438
+ }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
29405
29439
  var versionRequestUpdate = v2Contract.route({
29406
29440
  method: "POST",
29407
29441
  path: "/kyc-profile-versions/{versionId}/update-requests",
29408
29442
  description: "Request changes on a KYC version under review. Creates an action request for the user.",
29409
29443
  successDescription: "Update request created successfully.",
29410
29444
  tags: [V2_TAG.userKyc]
29411
- }).input(v2Input.paramsBody(z419.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
29445
+ }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
29412
29446
  var documentsList = v2Contract.route({
29413
29447
  method: "GET",
29414
29448
  path: "/kyc-profile-versions/{versionId}/documents",
29415
29449
  description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
29416
29450
  successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
29417
29451
  tags: [V2_TAG.userKyc]
29418
- }).input(v2Input.paramsQuery(z419.object({ versionId: z419.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
29452
+ }).input(v2Input.paramsQuery(z420.object({ versionId: z420.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
29419
29453
  var documentsDelete = v2Contract.route({
29420
29454
  method: "DELETE",
29421
29455
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
@@ -29429,14 +29463,14 @@ var documentsGetUploadUrl = v2Contract.route({
29429
29463
  description: "Generate a presigned URL for uploading a KYC document directly to storage.",
29430
29464
  successDescription: "Upload URL generated successfully.",
29431
29465
  tags: [V2_TAG.userKyc]
29432
- }).input(v2Input.paramsBody(z419.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
29466
+ }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
29433
29467
  var documentsConfirmUpload = v2Contract.route({
29434
29468
  method: "POST",
29435
29469
  path: "/kyc-profile-versions/{versionId}/documents",
29436
29470
  description: "Confirm a document upload after successfully uploading to the presigned URL.",
29437
29471
  successDescription: "Document upload confirmed.",
29438
29472
  tags: [V2_TAG.userKyc]
29439
- }).input(v2Input.paramsBody(z419.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
29473
+ }).input(v2Input.paramsBody(z420.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
29440
29474
  var documentsGetDownloadUrl = v2Contract.route({
29441
29475
  method: "POST",
29442
29476
  path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
@@ -29514,14 +29548,14 @@ var readByUserId2 = v2Contract.route({
29514
29548
  description: "Read a single user by their internal database ID.",
29515
29549
  successDescription: "User retrieved successfully.",
29516
29550
  tags: [V2_TAG.user]
29517
- }).input(v2Input.params(z420.object({ userId: z420.string() }))).output(createSingleResponse(UserReadOutputSchema));
29551
+ }).input(v2Input.params(z421.object({ userId: z421.string() }))).output(createSingleResponse(UserReadOutputSchema));
29518
29552
  var readByWallet3 = v2Contract.route({
29519
29553
  method: "GET",
29520
29554
  path: "/wallets/{wallet}/user",
29521
29555
  description: "Read a single user by their Ethereum wallet address.",
29522
29556
  successDescription: "User retrieved successfully.",
29523
29557
  tags: [V2_TAG.user]
29524
- }).input(v2Input.params(z420.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
29558
+ }).input(v2Input.params(z421.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
29525
29559
  var readByNationalId = v2Contract.route({
29526
29560
  method: "GET",
29527
29561
  path: "/national-ids/{nationalId}/user",
@@ -29630,30 +29664,30 @@ var userV2Contract = {
29630
29664
  };
29631
29665
 
29632
29666
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
29633
- import { z as z421 } from "zod";
29634
- var WebhooksV2ChainOfCustodyInputSchema = z421.object({
29635
- evtId: z421.string().trim().min(1)
29636
- });
29637
- var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z421.object({
29638
- evtId: z421.string(),
29639
- hops: z421.array(z421.object({
29640
- stage: z421.string(),
29641
- contentHash: z421.string(),
29642
- signedBy: z421.string().optional(),
29643
- recordedAt: z421.coerce.date()
29667
+ import { z as z422 } from "zod";
29668
+ var WebhooksV2ChainOfCustodyInputSchema = z422.object({
29669
+ evtId: z422.string().trim().min(1)
29670
+ });
29671
+ var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z422.object({
29672
+ evtId: z422.string(),
29673
+ hops: z422.array(z422.object({
29674
+ stage: z422.string(),
29675
+ contentHash: z422.string(),
29676
+ signedBy: z422.string().optional(),
29677
+ recordedAt: z422.coerce.date()
29644
29678
  })),
29645
- merkleRoot: z421.string(),
29646
- platformSignature: z421.string()
29679
+ merkleRoot: z422.string(),
29680
+ platformSignature: z422.string()
29647
29681
  }));
29648
29682
 
29649
29683
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
29650
- import { z as z423 } from "zod";
29684
+ import { z as z424 } from "zod";
29651
29685
 
29652
29686
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
29653
- import { z as z422 } from "zod";
29654
- var WebhookPayloadShapeSchema = z422.enum(["thin", "fat"]);
29655
- var WebhookBreakerStateSchema = z422.enum(["closed", "half_open", "open"]);
29656
- var WebhookDeliveryFailureClassSchema = z422.enum([
29687
+ import { z as z423 } from "zod";
29688
+ var WebhookPayloadShapeSchema = z423.enum(["thin", "fat"]);
29689
+ var WebhookBreakerStateSchema = z423.enum(["closed", "half_open", "open"]);
29690
+ var WebhookDeliveryFailureClassSchema = z423.enum([
29657
29691
  "DNS_FAIL",
29658
29692
  "TLS_FAIL",
29659
29693
  "CONNECT_TIMEOUT",
@@ -29665,35 +29699,35 @@ var WebhookDeliveryFailureClassSchema = z422.enum([
29665
29699
  "RECEIPT_INVALID_SIG",
29666
29700
  "RECEIPT_HASH_MISMATCH"
29667
29701
  ]);
29668
- var WebhookFinalityStateSchema = z422.enum(["pending", "provisional", "final", "retracted", "recalled"]);
29669
- var WebhookSigningSecretStatusSchema = z422.enum(["active", "previous", "revoked"]);
29670
- var WebhookFatEventsAcknowledgmentSchema = z422.object({
29671
- acknowledgedAt: z422.coerce.date(),
29672
- acknowledgedByUserId: z422.string(),
29673
- fieldsAcknowledged: z422.array(z422.string())
29674
- });
29675
- var WebhookEndpointSchema = z422.object({
29676
- id: z422.uuid(),
29677
- tenantId: z422.string(),
29678
- systemId: z422.string(),
29679
- url: z422.url(),
29680
- displayName: z422.string().nullable(),
29681
- subscriptions: z422.array(z422.string()),
29702
+ var WebhookFinalityStateSchema = z423.enum(["pending", "provisional", "final", "retracted", "recalled"]);
29703
+ var WebhookSigningSecretStatusSchema = z423.enum(["active", "previous", "revoked"]);
29704
+ var WebhookFatEventsAcknowledgmentSchema = z423.object({
29705
+ acknowledgedAt: z423.coerce.date(),
29706
+ acknowledgedByUserId: z423.string(),
29707
+ fieldsAcknowledged: z423.array(z423.string())
29708
+ });
29709
+ var WebhookEndpointSchema = z423.object({
29710
+ id: z423.uuid(),
29711
+ tenantId: z423.string(),
29712
+ systemId: z423.string(),
29713
+ url: z423.url(),
29714
+ displayName: z423.string().nullable(),
29715
+ subscriptions: z423.array(z423.string()),
29682
29716
  defaultPayloadShape: WebhookPayloadShapeSchema,
29683
- counterSignedReceipts: z422.boolean(),
29717
+ counterSignedReceipts: z423.boolean(),
29684
29718
  breakerState: WebhookBreakerStateSchema,
29685
- disabledAt: z422.coerce.date().nullable(),
29686
- disabledReason: z422.string().nullable(),
29719
+ disabledAt: z423.coerce.date().nullable(),
29720
+ disabledReason: z423.string().nullable(),
29687
29721
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
29688
- secret: z422.object({
29689
- activeVersion: z422.number().int().positive().nullable(),
29690
- previousVersion: z422.number().int().positive().nullable(),
29691
- previousRevokesAt: z422.coerce.date().nullable(),
29692
- lastUsedAt: z422.coerce.date().nullable()
29722
+ secret: z423.object({
29723
+ activeVersion: z423.number().int().positive().nullable(),
29724
+ previousVersion: z423.number().int().positive().nullable(),
29725
+ previousRevokesAt: z423.coerce.date().nullable(),
29726
+ lastUsedAt: z423.coerce.date().nullable()
29693
29727
  }),
29694
- createdAt: z422.coerce.date(),
29695
- updatedAt: z422.coerce.date(),
29696
- createdByUserId: z422.string().nullable()
29728
+ createdAt: z423.coerce.date(),
29729
+ updatedAt: z423.coerce.date(),
29730
+ createdByUserId: z423.string().nullable()
29697
29731
  });
29698
29732
  var WEBHOOKS_COLLECTION_FIELDS = {
29699
29733
  displayName: textField(),
@@ -29712,44 +29746,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
29712
29746
  var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
29713
29747
 
29714
29748
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
29715
- var WebhooksV2CreateInputSchema = z423.object({
29716
- url: z423.url(),
29717
- displayName: z423.string().trim().min(1).max(200).optional(),
29718
- subscriptions: z423.array(z423.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
29749
+ var WebhooksV2CreateInputSchema = z424.object({
29750
+ url: z424.url(),
29751
+ displayName: z424.string().trim().min(1).max(200).optional(),
29752
+ subscriptions: z424.array(z424.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
29719
29753
  defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
29720
- counterSignedReceipts: z423.boolean().default(false)
29754
+ counterSignedReceipts: z424.boolean().default(false)
29721
29755
  });
29722
29756
  var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
29723
- signingSecret: z423.string().nullable()
29757
+ signingSecret: z424.string().nullable()
29724
29758
  });
29725
29759
  var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
29726
29760
 
29727
29761
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
29728
- import { z as z424 } from "zod";
29729
- var WebhooksV2DeleteInputSchema = z424.object({
29730
- id: z424.uuid()
29762
+ import { z as z425 } from "zod";
29763
+ var WebhooksV2DeleteInputSchema = z425.object({
29764
+ id: z425.uuid()
29731
29765
  });
29732
29766
  var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
29733
29767
 
29734
29768
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
29735
- import { z as z425 } from "zod";
29736
- var WebhookDeliveryStatusSchema = z425.enum(["pending", "delivered", "failed"]);
29737
- var WebhookDeliverySchema = z425.object({
29738
- id: z425.uuid(),
29739
- eventOutboxId: z425.uuid(),
29740
- endpointId: z425.uuid(),
29741
- tenantId: z425.string(),
29742
- evtId: z425.string(),
29743
- eventType: z425.string(),
29744
- attemptN: z425.number().int().nonnegative(),
29745
- attemptedAt: z425.coerce.date(),
29746
- responseStatus: z425.number().int().nullable(),
29769
+ import { z as z426 } from "zod";
29770
+ var WebhookDeliveryStatusSchema = z426.enum(["pending", "delivered", "failed"]);
29771
+ var WebhookDeliverySchema = z426.object({
29772
+ id: z426.uuid(),
29773
+ eventOutboxId: z426.uuid(),
29774
+ endpointId: z426.uuid(),
29775
+ tenantId: z426.string(),
29776
+ evtId: z426.string(),
29777
+ eventType: z426.string(),
29778
+ attemptN: z426.number().int().nonnegative(),
29779
+ attemptedAt: z426.coerce.date(),
29780
+ responseStatus: z426.number().int().nullable(),
29747
29781
  failureClass: WebhookDeliveryFailureClassSchema.nullable(),
29748
29782
  status: WebhookDeliveryStatusSchema,
29749
- deliveredAt: z425.coerce.date().nullable(),
29750
- isReplay: z425.boolean(),
29751
- isTest: z425.boolean(),
29752
- traceId: z425.string().nullable()
29783
+ deliveredAt: z426.coerce.date().nullable(),
29784
+ isReplay: z426.boolean(),
29785
+ isTest: z426.boolean(),
29786
+ traceId: z426.string().nullable()
29753
29787
  });
29754
29788
  var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
29755
29789
  status: enumField(["pending", "delivered", "failed"]),
@@ -29775,167 +29809,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
29775
29809
  defaultSort: "attemptedAt",
29776
29810
  globalSearch: false
29777
29811
  });
29778
- var WebhooksV2DeliveriesListParamsSchema = z425.object({
29779
- id: z425.uuid()
29812
+ var WebhooksV2DeliveriesListParamsSchema = z426.object({
29813
+ id: z426.uuid()
29780
29814
  });
29781
29815
  var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
29782
29816
 
29783
29817
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
29784
- import { z as z426 } from "zod";
29785
- var WebhooksV2DeliveriesReadInputSchema = z426.object({
29786
- id: z426.uuid(),
29787
- deliveryId: z426.uuid()
29818
+ import { z as z427 } from "zod";
29819
+ var WebhooksV2DeliveriesReadInputSchema = z427.object({
29820
+ id: z427.uuid(),
29821
+ deliveryId: z427.uuid()
29788
29822
  });
29789
29823
  var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
29790
- request: z426.object({
29791
- payload: z426.record(z426.string(), z426.json()),
29792
- signedHeaders: z426.record(z426.string(), z426.union([z426.string(), z426.array(z426.string())])),
29793
- signedStringPreview: z426.string()
29824
+ request: z427.object({
29825
+ payload: z427.record(z427.string(), z427.json()),
29826
+ signedHeaders: z427.record(z427.string(), z427.union([z427.string(), z427.array(z427.string())])),
29827
+ signedStringPreview: z427.string()
29794
29828
  }),
29795
- response: z426.object({
29796
- headers: z426.record(z426.string(), z426.union([z426.string(), z426.array(z426.string())])).nullable(),
29797
- body: z426.string().nullable(),
29798
- timings: z426.object({
29799
- dnsMs: z426.number().int().nullable(),
29800
- tlsMs: z426.number().int().nullable(),
29801
- connectMs: z426.number().int().nullable(),
29802
- ttfbMs: z426.number().int().nullable()
29829
+ response: z427.object({
29830
+ headers: z427.record(z427.string(), z427.union([z427.string(), z427.array(z427.string())])).nullable(),
29831
+ body: z427.string().nullable(),
29832
+ timings: z427.object({
29833
+ dnsMs: z427.number().int().nullable(),
29834
+ tlsMs: z427.number().int().nullable(),
29835
+ connectMs: z427.number().int().nullable(),
29836
+ ttfbMs: z427.number().int().nullable()
29803
29837
  })
29804
29838
  })
29805
29839
  });
29806
29840
  var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
29807
29841
 
29808
29842
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
29809
- import { z as z427 } from "zod";
29810
- var WebhooksV2DeliveriesRetryInputSchema = z427.object({
29811
- id: z427.uuid(),
29812
- deliveryId: z427.uuid()
29843
+ import { z as z428 } from "zod";
29844
+ var WebhooksV2DeliveriesRetryInputSchema = z428.object({
29845
+ id: z428.uuid(),
29846
+ deliveryId: z428.uuid()
29813
29847
  });
29814
- var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z427.object({
29815
- deliveryId: z427.uuid(),
29816
- scheduled: z427.boolean()
29848
+ var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z428.object({
29849
+ deliveryId: z428.uuid(),
29850
+ scheduled: z428.boolean()
29817
29851
  }));
29818
29852
 
29819
29853
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
29820
- import { z as z428 } from "zod";
29821
- var WebhooksV2ReadInputSchema = z428.object({
29822
- id: z428.uuid()
29854
+ import { z as z429 } from "zod";
29855
+ var WebhooksV2ReadInputSchema = z429.object({
29856
+ id: z429.uuid()
29823
29857
  });
29824
29858
  var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
29825
29859
 
29826
29860
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
29827
- import { z as z429 } from "zod";
29828
- var WebhooksV2RecallsParamsSchema = z429.object({
29829
- evtId: z429.string().trim().min(1)
29830
- });
29831
- var WebhooksV2RecallsBodySchema = z429.object({
29832
- reason: z429.string().trim().min(1).max(2000)
29833
- });
29834
- var WebhooksV2RecallsOutputSchema = createSingleResponse(z429.object({
29835
- evtId: z429.string(),
29836
- recalledEvtId: z429.string(),
29837
- supersedes: z429.string(),
29838
- reason: z429.string(),
29839
- recalledByUserId: z429.string()
29840
- }));
29841
-
29842
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
29843
29861
  import { z as z430 } from "zod";
29844
- var WebhooksV2ReplayByRangeSchema = z430.object({
29845
- fromBlock: z430.coerce.bigint(),
29846
- toBlock: z430.coerce.bigint().optional(),
29847
- chainId: z430.coerce.number().int().positive(),
29848
- confirmLargeRange: z430.boolean().default(false)
29849
- });
29850
- var WebhooksV2ReplayByEventSchema = z430.object({
29851
- evtId: z430.string().trim().min(1),
29852
- chainId: z430.coerce.number().int().positive().optional()
29853
- });
29854
- var WebhooksV2ReplaysParamsSchema = z430.object({
29855
- id: z430.uuid()
29856
- });
29857
- var WebhooksV2ReplaysBodySchema = z430.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
29858
- var WebhooksV2ReplaysOutputSchema = createSingleResponse(z430.object({
29859
- replayId: z430.uuid(),
29860
- endpointId: z430.uuid(),
29861
- eventsEnqueued: z430.number().int().nonnegative(),
29862
- snapshotToBlock: z430.string().nullable()
29862
+ var WebhooksV2RecallsParamsSchema = z430.object({
29863
+ evtId: z430.string().trim().min(1)
29864
+ });
29865
+ var WebhooksV2RecallsBodySchema = z430.object({
29866
+ reason: z430.string().trim().min(1).max(2000)
29867
+ });
29868
+ var WebhooksV2RecallsOutputSchema = createSingleResponse(z430.object({
29869
+ evtId: z430.string(),
29870
+ recalledEvtId: z430.string(),
29871
+ supersedes: z430.string(),
29872
+ reason: z430.string(),
29873
+ recalledByUserId: z430.string()
29863
29874
  }));
29864
29875
 
29865
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
29876
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
29866
29877
  import { z as z431 } from "zod";
29867
- var WebhooksV2RevokeSecretInputSchema = z431.object({
29878
+ var WebhooksV2ReplayByRangeSchema = z431.object({
29879
+ fromBlock: z431.coerce.bigint(),
29880
+ toBlock: z431.coerce.bigint().optional(),
29881
+ chainId: z431.coerce.number().int().positive(),
29882
+ confirmLargeRange: z431.boolean().default(false)
29883
+ });
29884
+ var WebhooksV2ReplayByEventSchema = z431.object({
29885
+ evtId: z431.string().trim().min(1),
29886
+ chainId: z431.coerce.number().int().positive().optional()
29887
+ });
29888
+ var WebhooksV2ReplaysParamsSchema = z431.object({
29868
29889
  id: z431.uuid()
29869
29890
  });
29870
- var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z431.object({
29891
+ var WebhooksV2ReplaysBodySchema = z431.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
29892
+ var WebhooksV2ReplaysOutputSchema = createSingleResponse(z431.object({
29893
+ replayId: z431.uuid(),
29871
29894
  endpointId: z431.uuid(),
29872
- activeVersion: z431.number().int().positive(),
29873
- previousVersion: z431.number().int().positive().nullable(),
29874
- revokedVersion: z431.number().int().positive()
29895
+ eventsEnqueued: z431.number().int().nonnegative(),
29896
+ snapshotToBlock: z431.string().nullable()
29875
29897
  }));
29876
29898
 
29877
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
29899
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
29878
29900
  import { z as z432 } from "zod";
29879
- var WebhooksV2RotateSecretInputSchema = z432.object({
29901
+ var WebhooksV2RevokeSecretInputSchema = z432.object({
29880
29902
  id: z432.uuid()
29881
29903
  });
29882
- var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z432.object({
29904
+ var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z432.object({
29883
29905
  endpointId: z432.uuid(),
29884
29906
  activeVersion: z432.number().int().positive(),
29885
29907
  previousVersion: z432.number().int().positive().nullable(),
29886
- previousRevokesAt: z432.coerce.date().nullable(),
29887
- signingSecret: z432.string().nullable()
29908
+ revokedVersion: z432.number().int().positive()
29888
29909
  }));
29889
29910
 
29890
- // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
29911
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
29891
29912
  import { z as z433 } from "zod";
29892
- var WebhooksV2StatsInputSchema = z433.object({
29893
- endpointId: z433.uuid().optional()
29913
+ var WebhooksV2RotateSecretInputSchema = z433.object({
29914
+ id: z433.uuid()
29915
+ });
29916
+ var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z433.object({
29917
+ endpointId: z433.uuid(),
29918
+ activeVersion: z433.number().int().positive(),
29919
+ previousVersion: z433.number().int().positive().nullable(),
29920
+ previousRevokesAt: z433.coerce.date().nullable(),
29921
+ signingSecret: z433.string().nullable()
29922
+ }));
29923
+
29924
+ // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
29925
+ import { z as z434 } from "zod";
29926
+ var WebhooksV2StatsInputSchema = z434.object({
29927
+ endpointId: z434.uuid().optional()
29894
29928
  });
29895
- var WebhooksV2StatsOutputDataSchema = z433.object({
29896
- totalDeliveries: z433.number().int().min(0),
29897
- delivered: z433.number().int().min(0),
29898
- failed: z433.number().int().min(0),
29899
- hourlyBuckets: z433.array(z433.number().int().min(0)).length(24)
29929
+ var WebhooksV2StatsOutputDataSchema = z434.object({
29930
+ totalDeliveries: z434.number().int().min(0),
29931
+ delivered: z434.number().int().min(0),
29932
+ failed: z434.number().int().min(0),
29933
+ hourlyBuckets: z434.array(z434.number().int().min(0)).length(24)
29900
29934
  });
29901
29935
  var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
29902
29936
 
29903
29937
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
29904
- import { z as z434 } from "zod";
29905
- var WebhooksV2TestEventParamsSchema = z434.object({
29906
- id: z434.uuid()
29938
+ import { z as z435 } from "zod";
29939
+ var WebhooksV2TestEventParamsSchema = z435.object({
29940
+ id: z435.uuid()
29907
29941
  });
29908
- var WebhooksV2TestEventBodySchema = z434.object({
29909
- eventType: z434.string().trim().min(1).default("webhook.test.final")
29942
+ var WebhooksV2TestEventBodySchema = z435.object({
29943
+ eventType: z435.string().trim().min(1).default("webhook.test.final")
29910
29944
  });
29911
- var WebhooksV2TestEventOutputSchema = createSingleResponse(z434.object({
29912
- evtId: z434.string(),
29913
- deliveryId: z434.uuid().nullable(),
29914
- isTest: z434.literal(true)
29945
+ var WebhooksV2TestEventOutputSchema = createSingleResponse(z435.object({
29946
+ evtId: z435.string(),
29947
+ deliveryId: z435.uuid().nullable(),
29948
+ isTest: z435.literal(true)
29915
29949
  }));
29916
29950
 
29917
29951
  // ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
29918
- import { z as z435 } from "zod";
29919
- var WebhooksV2UpdateParamsSchema = z435.object({
29920
- id: z435.uuid()
29952
+ import { z as z436 } from "zod";
29953
+ var WebhooksV2UpdateParamsSchema = z436.object({
29954
+ id: z436.uuid()
29921
29955
  });
29922
- var WebhooksV2UpdateBodySchema = z435.object({
29923
- url: z435.url().optional(),
29924
- displayName: z435.string().trim().min(1).max(200).nullable().optional(),
29925
- subscriptions: z435.array(z435.string().trim().min(1)).min(1).optional(),
29956
+ var WebhooksV2UpdateBodySchema = z436.object({
29957
+ url: z436.url().optional(),
29958
+ displayName: z436.string().trim().min(1).max(200).nullable().optional(),
29959
+ subscriptions: z436.array(z436.string().trim().min(1)).min(1).optional(),
29926
29960
  defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
29927
- counterSignedReceipts: z435.boolean().optional(),
29928
- disabled: z435.boolean().optional(),
29929
- disabledReason: z435.string().trim().min(1).max(500).nullable().optional(),
29961
+ counterSignedReceipts: z436.boolean().optional(),
29962
+ disabled: z436.boolean().optional(),
29963
+ disabledReason: z436.string().trim().min(1).max(500).nullable().optional(),
29930
29964
  fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
29931
29965
  acknowledgedAt: true,
29932
29966
  acknowledgedByUserId: true
29933
29967
  }).optional()
29934
29968
  });
29935
- var WebhooksV2UpdateQuerySchema = z435.object({
29936
- acknowledgePending: z435.union([z435.literal("true"), z435.literal(true)]).transform(() => true).optional()
29969
+ var WebhooksV2UpdateQuerySchema = z436.object({
29970
+ acknowledgePending: z436.union([z436.literal("true"), z436.literal(true)]).transform(() => true).optional()
29937
29971
  }).optional();
29938
- var WebhooksV2UpdateInputSchema = z435.object({
29972
+ var WebhooksV2UpdateInputSchema = z436.object({
29939
29973
  params: WebhooksV2UpdateParamsSchema,
29940
29974
  body: WebhooksV2UpdateBodySchema,
29941
29975
  query: WebhooksV2UpdateQuerySchema
@@ -30070,21 +30104,21 @@ var webhooksV2Contract = {
30070
30104
  };
30071
30105
 
30072
30106
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
30073
- import { z as z437 } from "zod";
30107
+ import { z as z438 } from "zod";
30074
30108
 
30075
30109
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
30076
- import { z as z436 } from "zod";
30077
- var WebhookReceiptVerificationFailureClassSchema = z436.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
30078
- var WebhookReceiptSchema = z436.object({
30079
- id: z436.uuid(),
30080
- deliveryId: z436.uuid(),
30081
- evtId: z436.string(),
30082
- tenantId: z436.string(),
30083
- endpointId: z436.uuid(),
30084
- consumerSignature: z436.string(),
30085
- innerEventHash: z436.string(),
30086
- receivedAt: z436.coerce.date(),
30087
- verifiedAt: z436.coerce.date().nullable(),
30110
+ import { z as z437 } from "zod";
30111
+ var WebhookReceiptVerificationFailureClassSchema = z437.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
30112
+ var WebhookReceiptSchema = z437.object({
30113
+ id: z437.uuid(),
30114
+ deliveryId: z437.uuid(),
30115
+ evtId: z437.string(),
30116
+ tenantId: z437.string(),
30117
+ endpointId: z437.uuid(),
30118
+ consumerSignature: z437.string(),
30119
+ innerEventHash: z437.string(),
30120
+ receivedAt: z437.coerce.date(),
30121
+ verifiedAt: z437.coerce.date().nullable(),
30088
30122
  verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
30089
30123
  });
30090
30124
  var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
@@ -30101,19 +30135,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
30101
30135
  var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
30102
30136
 
30103
30137
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
30104
- var WebhookReceiptsV2CreateInputSchema = z437.object({
30105
- deliveryId: z437.uuid(),
30106
- evtId: z437.string().trim().min(1),
30107
- endpointId: z437.uuid(),
30108
- consumerSignature: z437.string().trim().min(1),
30109
- innerEventHash: z437.string().trim().min(1)
30138
+ var WebhookReceiptsV2CreateInputSchema = z438.object({
30139
+ deliveryId: z438.uuid(),
30140
+ evtId: z438.string().trim().min(1),
30141
+ endpointId: z438.uuid(),
30142
+ consumerSignature: z438.string().trim().min(1),
30143
+ innerEventHash: z438.string().trim().min(1)
30110
30144
  });
30111
30145
  var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
30112
30146
 
30113
30147
  // ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
30114
- import { z as z438 } from "zod";
30115
- var WebhookReceiptsV2ReadInputSchema = z438.object({
30116
- id: z438.uuid()
30148
+ import { z as z439 } from "zod";
30149
+ var WebhookReceiptsV2ReadInputSchema = z439.object({
30150
+ id: z439.uuid()
30117
30151
  });
30118
30152
  var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
30119
30153
 
@@ -30392,7 +30426,7 @@ function normalizeDalpBaseUrl(url) {
30392
30426
  // package.json
30393
30427
  var package_default = {
30394
30428
  name: "@settlemint/dalp-sdk",
30395
- version: "2.1.7-main.25736338007",
30429
+ version: "2.1.7-main.25737310867",
30396
30430
  private: false,
30397
30431
  description: "Fully typed SDK for the DALP tokenization platform API",
30398
30432
  homepage: "https://settlemint.com",