@settlemint/dalp-sdk 2.1.7-main.25736341678 → 2.1.7-main.25738823940
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +466 -395
- 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
|
|
27741
|
+
import { z as z410 } 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.
|
|
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 =
|
|
28068
|
-
key:
|
|
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:
|
|
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:
|
|
28102
|
+
value: z400.string().meta({
|
|
28077
28103
|
description: "Raw on-chain value (bytes32 hex string)",
|
|
28078
28104
|
examples: ["0x000000"]
|
|
28079
28105
|
}),
|
|
28080
|
-
valueString:
|
|
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:
|
|
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 =
|
|
28098
|
-
metadata_:
|
|
28099
|
-
entryCount:
|
|
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:
|
|
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
|
|
28111
|
-
var ConversionTriggerSchema =
|
|
28112
|
-
triggerId:
|
|
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:
|
|
28167
|
+
metadataHash: z401.string().nullable().meta({
|
|
28142
28168
|
description: "Off-chain metadata document hash (bytes32 hex)"
|
|
28143
28169
|
}),
|
|
28144
|
-
active:
|
|
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:
|
|
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 =
|
|
28164
|
-
triggers:
|
|
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:
|
|
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 =
|
|
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
|
|
28207
|
-
var TokenEventV2ValueSchema =
|
|
28208
|
-
id:
|
|
28209
|
-
name:
|
|
28210
|
-
value:
|
|
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 =
|
|
28216
|
-
id:
|
|
28217
|
-
eventName:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
28271
|
-
var TransferApprovalSchema =
|
|
28272
|
-
id:
|
|
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:
|
|
28277
|
-
fromIdentity:
|
|
28278
|
-
toIdentity:
|
|
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:
|
|
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 =
|
|
28302
|
-
transferApprovals:
|
|
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:
|
|
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 =
|
|
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
|
|
28320
|
-
var TokenPriceInputParamsSchema =
|
|
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 =
|
|
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 =
|
|
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:
|
|
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:
|
|
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 =
|
|
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:
|
|
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:
|
|
28397
|
+
decimals: z404.number().meta({
|
|
28372
28398
|
description: "Decimal precision of the price (always 18)",
|
|
28373
28399
|
examples: [18]
|
|
28374
28400
|
}),
|
|
28375
|
-
source:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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 =
|
|
28452
|
-
id:
|
|
28477
|
+
var TokenHistoricalBalanceV2ItemSchema = z405.object({
|
|
28478
|
+
id: z405.string().uuid(),
|
|
28453
28479
|
account: ethereumAddress,
|
|
28454
|
-
kind:
|
|
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:
|
|
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
|
|
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 =
|
|
28482
|
-
id:
|
|
28507
|
+
var TokenTransactionFeeCollectionV2ItemSchema = z406.object({
|
|
28508
|
+
id: z406.string().uuid(),
|
|
28483
28509
|
counterpartyAddress: ethereumAddress,
|
|
28484
|
-
operationType:
|
|
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:
|
|
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
|
|
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,25 +28534,54 @@ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_A
|
|
|
28508
28534
|
defaultSort: "-accruedAt",
|
|
28509
28535
|
globalSearch: false
|
|
28510
28536
|
});
|
|
28511
|
-
var TokenFeeAccrualEventV2ItemSchema =
|
|
28512
|
-
id:
|
|
28537
|
+
var TokenFeeAccrualEventV2ItemSchema = z407.object({
|
|
28538
|
+
id: z407.uuid(),
|
|
28513
28539
|
payer: ethereumAddress,
|
|
28514
28540
|
fromAddress: ethereumAddress,
|
|
28515
28541
|
toAddress: ethereumAddress,
|
|
28516
|
-
operationType:
|
|
28542
|
+
operationType: z407.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
|
|
28517
28543
|
operationAmount: bigDecimal(),
|
|
28518
28544
|
operationAmountExact: apiBigInt,
|
|
28519
|
-
feeBps:
|
|
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:
|
|
28552
|
+
logIndex: z407.number().int().nonnegative()
|
|
28527
28553
|
});
|
|
28528
28554
|
var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
|
|
28529
28555
|
|
|
28556
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
|
|
28557
|
+
import { z as z408 } from "zod";
|
|
28558
|
+
var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
|
|
28559
|
+
var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
|
|
28560
|
+
collectedAt: dateField(),
|
|
28561
|
+
blockNumber: bigintField(),
|
|
28562
|
+
operationType: enumField(EXTERNAL_OPERATION_TYPE_OPTIONS, { sortable: false, facetable: true }),
|
|
28563
|
+
payer: addressField({ defaultOperator: "iLike" }),
|
|
28564
|
+
feeToken: addressField({ defaultOperator: "iLike" }),
|
|
28565
|
+
feeAmount: bigintField()
|
|
28566
|
+
};
|
|
28567
|
+
var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS, {
|
|
28568
|
+
defaultSort: "-collectedAt",
|
|
28569
|
+
globalSearch: false
|
|
28570
|
+
});
|
|
28571
|
+
var TokenExternalFeeCollectionEventV2ItemSchema = z408.object({
|
|
28572
|
+
id: z408.uuid(),
|
|
28573
|
+
payer: ethereumAddress,
|
|
28574
|
+
feeToken: ethereumAddress,
|
|
28575
|
+
operationType: z408.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
|
|
28576
|
+
feeAmount: bigDecimal(),
|
|
28577
|
+
feeAmountExact: apiBigInt,
|
|
28578
|
+
blockNumber: apiBigInt,
|
|
28579
|
+
blockTimestamp: timestamp(),
|
|
28580
|
+
txHash: ethereumHash,
|
|
28581
|
+
logIndex: z408.number().int().nonnegative()
|
|
28582
|
+
});
|
|
28583
|
+
var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
|
|
28584
|
+
|
|
28530
28585
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transfer-approvals.schema.ts
|
|
28531
28586
|
var TRANSFER_APPROVAL_COLLECTION_FIELDS = {
|
|
28532
28587
|
status: enumField(["pending", "consumed", "revoked"]),
|
|
@@ -28540,7 +28595,7 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
|
|
|
28540
28595
|
var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
|
|
28541
28596
|
|
|
28542
28597
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
|
|
28543
|
-
import { z as
|
|
28598
|
+
import { z as z409 } from "zod";
|
|
28544
28599
|
var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
|
|
28545
28600
|
account: addressField({ defaultOperator: "iLike" }),
|
|
28546
28601
|
delegate: addressField({ defaultOperator: "iLike" }),
|
|
@@ -28554,20 +28609,20 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
|
|
|
28554
28609
|
defaultSort: "-delegatedAt",
|
|
28555
28610
|
globalSearch: false
|
|
28556
28611
|
});
|
|
28557
|
-
var VotingDelegationV2ItemSchema =
|
|
28558
|
-
id:
|
|
28612
|
+
var VotingDelegationV2ItemSchema = z409.object({
|
|
28613
|
+
id: z409.string().uuid(),
|
|
28559
28614
|
delegator: ethereumAddress,
|
|
28560
28615
|
fromDelegate: ethereumAddress.nullable(),
|
|
28561
28616
|
toDelegate: ethereumAddress,
|
|
28562
28617
|
delegatedAt: timestamp(),
|
|
28563
28618
|
delegatedBlockNumber: apiBigInt,
|
|
28564
28619
|
delegatedTxHash: ethereumHash,
|
|
28565
|
-
delegatedLogIndex:
|
|
28620
|
+
delegatedLogIndex: z409.number().int().nonnegative(),
|
|
28566
28621
|
undelegatedAt: timestamp().nullable(),
|
|
28567
28622
|
undelegatedBlockNumber: apiBigInt.nullable(),
|
|
28568
28623
|
undelegatedTxHash: ethereumHash.nullable(),
|
|
28569
|
-
undelegatedLogIndex:
|
|
28570
|
-
isActive:
|
|
28624
|
+
undelegatedLogIndex: z409.number().int().nonnegative().nullable(),
|
|
28625
|
+
isActive: z409.boolean()
|
|
28571
28626
|
});
|
|
28572
28627
|
var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
|
|
28573
28628
|
|
|
@@ -28585,21 +28640,21 @@ var allowance = v2Contract.route({
|
|
|
28585
28640
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
28586
28641
|
successDescription: "Token allowance details retrieved successfully.",
|
|
28587
28642
|
tags: [V2_TAG.token]
|
|
28588
|
-
}).input(v2Input.paramsQuery(
|
|
28643
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z410.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
28589
28644
|
var holder = v2Contract.route({
|
|
28590
28645
|
method: "GET",
|
|
28591
28646
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
28592
28647
|
description: "Get a specific token holder's balance information.",
|
|
28593
28648
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
28594
28649
|
tags: [V2_TAG.token]
|
|
28595
|
-
}).input(v2Input.paramsQuery(
|
|
28650
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z410.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
28596
28651
|
var holders = v2Contract.route({
|
|
28597
28652
|
method: "GET",
|
|
28598
28653
|
path: "/tokens/{tokenAddress}/holders",
|
|
28599
28654
|
description: "Get token holders and their balances.",
|
|
28600
28655
|
successDescription: "List of token holders with balance information.",
|
|
28601
28656
|
tags: [V2_TAG.token]
|
|
28602
|
-
}).input(v2Input.paramsQuery(
|
|
28657
|
+
}).input(v2Input.paramsQuery(z410.object({
|
|
28603
28658
|
tokenAddress: ethereumAddress.meta({
|
|
28604
28659
|
description: "The token contract address",
|
|
28605
28660
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28611,7 +28666,7 @@ var actions = v2Contract.route({
|
|
|
28611
28666
|
description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
28612
28667
|
successDescription: "Paginated list of actions targeting the specified token.",
|
|
28613
28668
|
tags: [V2_TAG.token]
|
|
28614
|
-
}).input(v2Input.paramsQuery(
|
|
28669
|
+
}).input(v2Input.paramsQuery(z410.object({
|
|
28615
28670
|
tokenAddress: ethereumAddress.meta({
|
|
28616
28671
|
description: "The token contract address to filter actions by",
|
|
28617
28672
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28623,7 +28678,7 @@ var events2 = v2Contract.route({
|
|
|
28623
28678
|
description: "List token events with pagination, filtering, sorting, and faceted counts.",
|
|
28624
28679
|
successDescription: "Paginated list of token events with metadata and pagination links.",
|
|
28625
28680
|
tags: [V2_TAG.token]
|
|
28626
|
-
}).input(v2Input.paramsQuery(
|
|
28681
|
+
}).input(v2Input.paramsQuery(z410.object({
|
|
28627
28682
|
tokenAddress: ethereumAddress.meta({
|
|
28628
28683
|
description: "The token contract address",
|
|
28629
28684
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -28635,7 +28690,7 @@ var denominationAssets = v2Contract.route({
|
|
|
28635
28690
|
description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
28636
28691
|
successDescription: "Paginated list of denomination assets used by the specified bond.",
|
|
28637
28692
|
tags: [V2_TAG.token]
|
|
28638
|
-
}).input(v2Input.paramsQuery(
|
|
28693
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
|
|
28639
28694
|
var compliance = v2Contract.route({
|
|
28640
28695
|
method: "GET",
|
|
28641
28696
|
path: "/tokens/{tokenAddress}/compliance-modules",
|
|
@@ -28650,6 +28705,13 @@ var features = v2Contract.route({
|
|
|
28650
28705
|
successDescription: "Token features retrieved successfully.",
|
|
28651
28706
|
tags: [V2_TAG.token]
|
|
28652
28707
|
}).input(v2Input.params(TokenFeaturesInputSchema)).output(createSingleResponse(TokenFeaturesResponseSchema));
|
|
28708
|
+
var aumFeeAccruedEstimate = v2Contract.route({
|
|
28709
|
+
method: "GET",
|
|
28710
|
+
path: "/tokens/{tokenAddress}/aum-fee/accrued-estimate",
|
|
28711
|
+
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.",
|
|
28712
|
+
successDescription: "AUM-fee accrued estimate retrieved successfully.",
|
|
28713
|
+
tags: [V2_TAG.token]
|
|
28714
|
+
}).input(v2Input.params(TokenAumFeeAccruedEstimateInputSchema)).output(createSingleResponse(TokenAumFeeAccruedEstimateResponseSchema));
|
|
28653
28715
|
var tokenMetadata = v2Contract.route({
|
|
28654
28716
|
method: "GET",
|
|
28655
28717
|
path: "/tokens/{tokenAddress}/metadata",
|
|
@@ -28663,7 +28725,7 @@ var transferApprovals = v2Contract.route({
|
|
|
28663
28725
|
description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
|
|
28664
28726
|
successDescription: "List of transfer approvals with their current status.",
|
|
28665
28727
|
tags: [V2_TAG.compliance]
|
|
28666
|
-
}).input(v2Input.paramsQuery(
|
|
28728
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
|
|
28667
28729
|
var price = v2Contract.route({
|
|
28668
28730
|
method: "GET",
|
|
28669
28731
|
path: "/tokens/{tokenAddress}/price",
|
|
@@ -28677,35 +28739,42 @@ var conversionTriggers = v2Contract.route({
|
|
|
28677
28739
|
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
28740
|
successDescription: "Paginated list of conversion triggers with effective pricing.",
|
|
28679
28741
|
tags: [V2_TAG.token]
|
|
28680
|
-
}).input(v2Input.paramsQuery(
|
|
28742
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
|
|
28681
28743
|
var votingDelegations = v2Contract.route({
|
|
28682
28744
|
method: "GET",
|
|
28683
28745
|
path: "/tokens/{tokenAddress}/voting-delegations",
|
|
28684
28746
|
description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
|
|
28685
28747
|
successDescription: "Paginated list of voting delegation lifecycle rows.",
|
|
28686
28748
|
tags: [V2_TAG.token]
|
|
28687
|
-
}).input(v2Input.paramsQuery(
|
|
28749
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
|
|
28688
28750
|
var historicalBalances = v2Contract.route({
|
|
28689
28751
|
method: "GET",
|
|
28690
28752
|
path: "/tokens/{tokenAddress}/historical-balances",
|
|
28691
28753
|
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
28754
|
successDescription: "Paginated list of historical balance checkpoints.",
|
|
28693
28755
|
tags: [V2_TAG.token]
|
|
28694
|
-
}).input(v2Input.paramsQuery(
|
|
28756
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
|
|
28695
28757
|
var transactionFeeCollections = v2Contract.route({
|
|
28696
28758
|
method: "GET",
|
|
28697
28759
|
path: "/tokens/{tokenAddress}/transaction-fee/collections",
|
|
28698
28760
|
description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
|
|
28699
28761
|
successDescription: "Paginated list of transaction-fee collections.",
|
|
28700
28762
|
tags: [V2_TAG.token]
|
|
28701
|
-
}).input(v2Input.paramsQuery(
|
|
28763
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
|
|
28702
28764
|
var feeAccrualEvents = v2Contract.route({
|
|
28703
28765
|
method: "GET",
|
|
28704
28766
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
|
|
28705
28767
|
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
28768
|
successDescription: "Paginated list of fee-accrual events.",
|
|
28707
28769
|
tags: [V2_TAG.token]
|
|
28708
|
-
}).input(v2Input.paramsQuery(
|
|
28770
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
|
|
28771
|
+
var externalFeeCollectionEvents = v2Contract.route({
|
|
28772
|
+
method: "GET",
|
|
28773
|
+
path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
|
|
28774
|
+
description: "List external-fee collection events for a token's external-transaction-fee feature. Each row captures the full ExternalFeeCollected payload (payer, fee token, operation type, fee amount). Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
|
|
28775
|
+
successDescription: "Paginated list of external-fee collection events.",
|
|
28776
|
+
tags: [V2_TAG.token]
|
|
28777
|
+
}).input(v2Input.paramsQuery(z410.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
|
|
28709
28778
|
var tokenV2ReadsContract = {
|
|
28710
28779
|
read: read27,
|
|
28711
28780
|
allowance,
|
|
@@ -28716,6 +28785,7 @@ var tokenV2ReadsContract = {
|
|
|
28716
28785
|
denominationAssets,
|
|
28717
28786
|
compliance,
|
|
28718
28787
|
features,
|
|
28788
|
+
aumFeeAccruedEstimate,
|
|
28719
28789
|
metadata: tokenMetadata,
|
|
28720
28790
|
transferApprovals,
|
|
28721
28791
|
conversionTriggers,
|
|
@@ -28723,11 +28793,12 @@ var tokenV2ReadsContract = {
|
|
|
28723
28793
|
historicalBalances,
|
|
28724
28794
|
transactionFeeCollections,
|
|
28725
28795
|
feeAccrualEvents,
|
|
28796
|
+
externalFeeCollectionEvents,
|
|
28726
28797
|
price
|
|
28727
28798
|
};
|
|
28728
28799
|
|
|
28729
28800
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
28730
|
-
import { z as
|
|
28801
|
+
import { z as z411 } from "zod";
|
|
28731
28802
|
var statsBondStatus = v2Contract.route({
|
|
28732
28803
|
method: "GET",
|
|
28733
28804
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -28748,25 +28819,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
28748
28819
|
description: "Get total supply history statistics for a specific token.",
|
|
28749
28820
|
successDescription: "Token total supply history statistics.",
|
|
28750
28821
|
tags: [V2_TAG.tokenStats]
|
|
28751
|
-
}).input(v2Input.paramsQuery(
|
|
28822
|
+
}).input(v2Input.paramsQuery(z411.object({
|
|
28752
28823
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
28753
|
-
}),
|
|
28824
|
+
}), z411.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
28754
28825
|
var statsSupplyChanges = v2Contract.route({
|
|
28755
28826
|
method: "GET",
|
|
28756
28827
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
28757
28828
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
28758
28829
|
successDescription: "Token supply changes history statistics.",
|
|
28759
28830
|
tags: [V2_TAG.tokenStats]
|
|
28760
|
-
}).input(v2Input.paramsQuery(
|
|
28831
|
+
}).input(v2Input.paramsQuery(z411.object({
|
|
28761
28832
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
28762
|
-
}),
|
|
28833
|
+
}), z411.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
28763
28834
|
var statsVolume = v2Contract.route({
|
|
28764
28835
|
method: "GET",
|
|
28765
28836
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
28766
28837
|
description: "Get total volume history statistics for a specific token.",
|
|
28767
28838
|
successDescription: "Token total volume history statistics.",
|
|
28768
28839
|
tags: [V2_TAG.tokenStats]
|
|
28769
|
-
}).input(v2Input.paramsQuery(
|
|
28840
|
+
}).input(v2Input.paramsQuery(z411.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z411.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
28770
28841
|
var statsWalletDistribution = v2Contract.route({
|
|
28771
28842
|
method: "GET",
|
|
28772
28843
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -28816,7 +28887,7 @@ var tokenV2Contract = {
|
|
|
28816
28887
|
};
|
|
28817
28888
|
|
|
28818
28889
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
28819
|
-
import { z as
|
|
28890
|
+
import { z as z412 } from "zod";
|
|
28820
28891
|
var transactionRequestStates = [
|
|
28821
28892
|
"RECEIVED",
|
|
28822
28893
|
"QUEUED",
|
|
@@ -28831,7 +28902,7 @@ var transactionRequestStates = [
|
|
|
28831
28902
|
"CANCELLED"
|
|
28832
28903
|
];
|
|
28833
28904
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
28834
|
-
var TransactionRequestStateSchema =
|
|
28905
|
+
var TransactionRequestStateSchema = z412.enum(transactionRequestStates).meta({
|
|
28835
28906
|
description: "Current state in the transaction request lifecycle",
|
|
28836
28907
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
28837
28908
|
});
|
|
@@ -28872,96 +28943,96 @@ var transactionSubStatuses = [
|
|
|
28872
28943
|
"WORKFLOW_BATCH_COMPLETED",
|
|
28873
28944
|
"WORKFLOW_BATCH_FAILED"
|
|
28874
28945
|
];
|
|
28875
|
-
var TransactionSubStatusSchema =
|
|
28946
|
+
var TransactionSubStatusSchema = z412.enum(transactionSubStatuses).meta({
|
|
28876
28947
|
description: "Detailed sub-status for transaction failures",
|
|
28877
28948
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
28878
28949
|
});
|
|
28879
28950
|
|
|
28880
28951
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
28881
|
-
import { z as
|
|
28882
|
-
var TransactionForceRetryInputSchema =
|
|
28883
|
-
transactionId:
|
|
28952
|
+
import { z as z413 } from "zod";
|
|
28953
|
+
var TransactionForceRetryInputSchema = z413.object({
|
|
28954
|
+
transactionId: z413.uuid().meta({
|
|
28884
28955
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
28885
28956
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28886
28957
|
})
|
|
28887
28958
|
});
|
|
28888
|
-
var TransactionForceRetryBodySchema =
|
|
28889
|
-
gasPrice:
|
|
28959
|
+
var TransactionForceRetryBodySchema = z413.object({
|
|
28960
|
+
gasPrice: z413.string().optional().meta({
|
|
28890
28961
|
description: "Override gas price in wei (decimal string)",
|
|
28891
28962
|
examples: ["20000000000"]
|
|
28892
28963
|
}),
|
|
28893
|
-
nonce:
|
|
28964
|
+
nonce: z413.number().int().nonnegative().optional().meta({
|
|
28894
28965
|
description: "Override nonce for the retried transaction",
|
|
28895
28966
|
examples: [42]
|
|
28896
28967
|
})
|
|
28897
28968
|
}).default({});
|
|
28898
|
-
var TransactionForceRetryResultSchema =
|
|
28899
|
-
transactionId:
|
|
28969
|
+
var TransactionForceRetryResultSchema = z413.object({
|
|
28970
|
+
transactionId: z413.uuid().meta({ description: "The requeued transaction ID" }),
|
|
28900
28971
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
28901
28972
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
28902
28973
|
});
|
|
28903
28974
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
28904
|
-
var TransactionForceFailInputSchema =
|
|
28905
|
-
transactionId:
|
|
28975
|
+
var TransactionForceFailInputSchema = z413.object({
|
|
28976
|
+
transactionId: z413.uuid().meta({
|
|
28906
28977
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
28907
28978
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28908
28979
|
})
|
|
28909
28980
|
});
|
|
28910
|
-
var TransactionForceFailBodySchema =
|
|
28911
|
-
reason:
|
|
28981
|
+
var TransactionForceFailBodySchema = z413.object({
|
|
28982
|
+
reason: z413.string().min(1).max(1000).meta({
|
|
28912
28983
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
28913
28984
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
28914
28985
|
})
|
|
28915
28986
|
});
|
|
28916
|
-
var TransactionForceFailResultSchema =
|
|
28917
|
-
transactionId:
|
|
28987
|
+
var TransactionForceFailResultSchema = z413.object({
|
|
28988
|
+
transactionId: z413.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
28918
28989
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
28919
28990
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
28920
|
-
reason:
|
|
28991
|
+
reason: z413.string().meta({ description: "The reason provided for the force-fail" })
|
|
28921
28992
|
});
|
|
28922
28993
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
28923
|
-
var TransactionForceNonceInputSchema =
|
|
28924
|
-
transactionId:
|
|
28994
|
+
var TransactionForceNonceInputSchema = z413.object({
|
|
28995
|
+
transactionId: z413.uuid().meta({
|
|
28925
28996
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
28926
28997
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28927
28998
|
})
|
|
28928
28999
|
});
|
|
28929
|
-
var TransactionForceNonceBodySchema =
|
|
28930
|
-
nonce:
|
|
29000
|
+
var TransactionForceNonceBodySchema = z413.object({
|
|
29001
|
+
nonce: z413.number().int().nonnegative().meta({
|
|
28931
29002
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
28932
29003
|
examples: [42]
|
|
28933
29004
|
})
|
|
28934
29005
|
});
|
|
28935
|
-
var TransactionForceNonceResultSchema =
|
|
28936
|
-
previous:
|
|
28937
|
-
new:
|
|
29006
|
+
var TransactionForceNonceResultSchema = z413.object({
|
|
29007
|
+
previous: z413.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
29008
|
+
new: z413.number().meta({ description: "New nonce value after force-set" })
|
|
28938
29009
|
});
|
|
28939
29010
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
28940
29011
|
|
|
28941
29012
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
28942
|
-
import { z as
|
|
28943
|
-
var TransactionV2CancelInputSchema =
|
|
28944
|
-
transactionId:
|
|
29013
|
+
import { z as z414 } from "zod";
|
|
29014
|
+
var TransactionV2CancelInputSchema = z414.object({
|
|
29015
|
+
transactionId: z414.uuid().meta({
|
|
28945
29016
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
28946
29017
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28947
29018
|
})
|
|
28948
29019
|
});
|
|
28949
|
-
var TransactionCancelResultSchema =
|
|
28950
|
-
status:
|
|
29020
|
+
var TransactionCancelResultSchema = z414.object({
|
|
29021
|
+
status: z414.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
28951
29022
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
28952
29023
|
examples: ["cancelled", "cancellation_pending"]
|
|
28953
29024
|
}),
|
|
28954
|
-
cancelTransactionId:
|
|
29025
|
+
cancelTransactionId: z414.string().optional().meta({
|
|
28955
29026
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
28956
29027
|
}),
|
|
28957
|
-
message:
|
|
29028
|
+
message: z414.string().optional().meta({
|
|
28958
29029
|
description: "Human-readable error or status message"
|
|
28959
29030
|
})
|
|
28960
29031
|
});
|
|
28961
29032
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
28962
29033
|
|
|
28963
29034
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
28964
|
-
import { z as
|
|
29035
|
+
import { z as z415 } from "zod";
|
|
28965
29036
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
28966
29037
|
status: enumField([...transactionRequestStates]),
|
|
28967
29038
|
operationType: textField(),
|
|
@@ -28974,12 +29045,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
|
|
|
28974
29045
|
defaultSort: "createdAt",
|
|
28975
29046
|
globalSearch: true
|
|
28976
29047
|
});
|
|
28977
|
-
var TransactionListItemSchema =
|
|
28978
|
-
transactionId:
|
|
29048
|
+
var TransactionListItemSchema = z415.object({
|
|
29049
|
+
transactionId: z415.uuid().meta({
|
|
28979
29050
|
description: "Queue transaction identifier (UUIDv7)",
|
|
28980
29051
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
28981
29052
|
}),
|
|
28982
|
-
kind:
|
|
29053
|
+
kind: z415.string().meta({
|
|
28983
29054
|
description: "Mutation kind submitted to the queue",
|
|
28984
29055
|
examples: ["token.create", "token.mint"]
|
|
28985
29056
|
}),
|
|
@@ -28987,19 +29058,19 @@ var TransactionListItemSchema = z413.object({
|
|
|
28987
29058
|
description: "Current transaction queue state",
|
|
28988
29059
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
28989
29060
|
}),
|
|
28990
|
-
subStatus:
|
|
29061
|
+
subStatus: z415.string().nullable().meta({
|
|
28991
29062
|
description: "Optional queue sub-status with finer-grained detail",
|
|
28992
29063
|
examples: ["TIMEOUT", null]
|
|
28993
29064
|
}),
|
|
28994
|
-
fromAddress:
|
|
29065
|
+
fromAddress: z415.string().meta({
|
|
28995
29066
|
description: "Sender wallet address",
|
|
28996
29067
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28997
29068
|
}),
|
|
28998
|
-
chainId:
|
|
29069
|
+
chainId: z415.number().int().meta({
|
|
28999
29070
|
description: "Target chain ID",
|
|
29000
29071
|
examples: [1]
|
|
29001
29072
|
}),
|
|
29002
|
-
transactionHash:
|
|
29073
|
+
transactionHash: z415.string().nullable().meta({
|
|
29003
29074
|
description: "Primary transaction hash once broadcast",
|
|
29004
29075
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
29005
29076
|
}),
|
|
@@ -29019,19 +29090,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
29019
29090
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
29020
29091
|
|
|
29021
29092
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
29022
|
-
import { z as
|
|
29023
|
-
var TransactionStatusInputSchema =
|
|
29024
|
-
transactionId:
|
|
29093
|
+
import { z as z416 } from "zod";
|
|
29094
|
+
var TransactionStatusInputSchema = z416.object({
|
|
29095
|
+
transactionId: z416.uuid().meta({
|
|
29025
29096
|
description: "Queue transaction identifier (UUIDv7)",
|
|
29026
29097
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
29027
29098
|
})
|
|
29028
29099
|
});
|
|
29029
|
-
var TransactionStatusOutputSchema =
|
|
29030
|
-
transactionId:
|
|
29100
|
+
var TransactionStatusOutputSchema = z416.object({
|
|
29101
|
+
transactionId: z416.uuid().meta({
|
|
29031
29102
|
description: "Queue transaction identifier (UUIDv7)",
|
|
29032
29103
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
29033
29104
|
}),
|
|
29034
|
-
kind:
|
|
29105
|
+
kind: z416.string().meta({
|
|
29035
29106
|
description: "Mutation kind submitted to the queue",
|
|
29036
29107
|
examples: ["token.create", "token.mint"]
|
|
29037
29108
|
}),
|
|
@@ -29039,23 +29110,23 @@ var TransactionStatusOutputSchema = z414.object({
|
|
|
29039
29110
|
description: "Current transaction queue state",
|
|
29040
29111
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
29041
29112
|
}),
|
|
29042
|
-
subStatus:
|
|
29113
|
+
subStatus: z416.string().nullable().meta({
|
|
29043
29114
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
29044
29115
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
29045
29116
|
}),
|
|
29046
|
-
transactionHash:
|
|
29117
|
+
transactionHash: z416.string().nullable().meta({
|
|
29047
29118
|
description: "Primary transaction hash once broadcast",
|
|
29048
29119
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
29049
29120
|
}),
|
|
29050
|
-
transactionHashes:
|
|
29121
|
+
transactionHashes: z416.array(z416.string()).optional().meta({
|
|
29051
29122
|
description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
|
|
29052
29123
|
examples: [["0xabc...", "0xdef..."]]
|
|
29053
29124
|
}),
|
|
29054
|
-
blockNumber:
|
|
29125
|
+
blockNumber: z416.string().nullable().meta({
|
|
29055
29126
|
description: "Confirmed block number when available",
|
|
29056
29127
|
examples: ["12345678", null]
|
|
29057
29128
|
}),
|
|
29058
|
-
errorMessage:
|
|
29129
|
+
errorMessage: z416.string().nullable().meta({
|
|
29059
29130
|
description: "Human-readable error or timeout detail when available",
|
|
29060
29131
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
29061
29132
|
}),
|
|
@@ -29134,12 +29205,12 @@ var transactionV2Contract = {
|
|
|
29134
29205
|
};
|
|
29135
29206
|
|
|
29136
29207
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
29137
|
-
import { z as
|
|
29208
|
+
import { z as z422 } from "zod";
|
|
29138
29209
|
|
|
29139
29210
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
29140
|
-
import { z as
|
|
29141
|
-
var UserReadByNationalIdInputSchema =
|
|
29142
|
-
nationalId:
|
|
29211
|
+
import { z as z417 } from "zod";
|
|
29212
|
+
var UserReadByNationalIdInputSchema = z417.object({
|
|
29213
|
+
nationalId: z417.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
29143
29214
|
});
|
|
29144
29215
|
|
|
29145
29216
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
|
|
@@ -29157,13 +29228,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
|
|
|
29157
29228
|
var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
29158
29229
|
|
|
29159
29230
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
|
|
29160
|
-
import { z as
|
|
29161
|
-
var TokenAssetV2Schema =
|
|
29231
|
+
import { z as z418 } from "zod";
|
|
29232
|
+
var TokenAssetV2Schema = z418.object({
|
|
29162
29233
|
id: ethereumAddress.meta({
|
|
29163
29234
|
description: "The token contract address",
|
|
29164
29235
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
29165
29236
|
}),
|
|
29166
|
-
name:
|
|
29237
|
+
name: z418.string().meta({
|
|
29167
29238
|
description: "The token name",
|
|
29168
29239
|
examples: ["Bond Token", "Equity Share"]
|
|
29169
29240
|
}),
|
|
@@ -29183,19 +29254,19 @@ var TokenAssetV2Schema = z416.object({
|
|
|
29183
29254
|
description: "The total supply of the token (raw on-chain uint256)",
|
|
29184
29255
|
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
29185
29256
|
}),
|
|
29186
|
-
bond:
|
|
29187
|
-
isMatured:
|
|
29257
|
+
bond: z418.object({
|
|
29258
|
+
isMatured: z418.boolean().meta({
|
|
29188
29259
|
description: "Whether the bond is matured",
|
|
29189
29260
|
examples: [true, false]
|
|
29190
29261
|
})
|
|
29191
29262
|
}).optional().nullable().meta({ description: "The bond details", examples: [] }),
|
|
29192
|
-
yield:
|
|
29193
|
-
schedule:
|
|
29263
|
+
yield: z418.object({
|
|
29264
|
+
schedule: z418.object({
|
|
29194
29265
|
id: ethereumAddress.meta({
|
|
29195
29266
|
description: "The yield schedule contract address",
|
|
29196
29267
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
29197
29268
|
}),
|
|
29198
|
-
denominationAsset:
|
|
29269
|
+
denominationAsset: z418.object({
|
|
29199
29270
|
id: ethereumAddress.meta({
|
|
29200
29271
|
description: "The denomination asset contract address",
|
|
29201
29272
|
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
@@ -29215,8 +29286,8 @@ var TokenAssetV2Schema = z416.object({
|
|
|
29215
29286
|
}).nullable().meta({ description: "The yield schedule details", examples: [] })
|
|
29216
29287
|
}).nullable().meta({ description: "The yield details", examples: [] })
|
|
29217
29288
|
});
|
|
29218
|
-
var UserAssetBalanceV2ItemSchema =
|
|
29219
|
-
id:
|
|
29289
|
+
var UserAssetBalanceV2ItemSchema = z418.object({
|
|
29290
|
+
id: z418.uuid().meta({
|
|
29220
29291
|
description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
|
|
29221
29292
|
examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
|
|
29222
29293
|
}),
|
|
@@ -29236,7 +29307,7 @@ var UserAssetBalanceV2ItemSchema = z416.object({
|
|
|
29236
29307
|
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
29308
|
examples: ["5.00", null]
|
|
29238
29309
|
}),
|
|
29239
|
-
priceInBaseCurrencyReliable:
|
|
29310
|
+
priceInBaseCurrencyReliable: z418.boolean().meta({
|
|
29240
29311
|
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
29312
|
examples: [true, false]
|
|
29242
29313
|
}),
|
|
@@ -29288,10 +29359,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
|
|
|
29288
29359
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
29289
29360
|
|
|
29290
29361
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
29291
|
-
import { z as
|
|
29362
|
+
import { z as z421 } from "zod";
|
|
29292
29363
|
|
|
29293
29364
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
|
|
29294
|
-
import { z as
|
|
29365
|
+
import { z as z419 } from "zod";
|
|
29295
29366
|
var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
29296
29367
|
fileName: textField(),
|
|
29297
29368
|
documentType: enumField(kycDocumentTypes, { facetable: true }),
|
|
@@ -29302,19 +29373,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
29302
29373
|
var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
|
|
29303
29374
|
defaultSort: "uploadedAt"
|
|
29304
29375
|
});
|
|
29305
|
-
var KycProfileVersionDocumentsV2ListItemSchema =
|
|
29306
|
-
id:
|
|
29376
|
+
var KycProfileVersionDocumentsV2ListItemSchema = z419.object({
|
|
29377
|
+
id: z419.string(),
|
|
29307
29378
|
documentType: kycDocumentType(),
|
|
29308
|
-
fileName:
|
|
29309
|
-
fileSize:
|
|
29310
|
-
mimeType:
|
|
29379
|
+
fileName: z419.string(),
|
|
29380
|
+
fileSize: z419.number(),
|
|
29381
|
+
mimeType: z419.string(),
|
|
29311
29382
|
uploadedAt: timestamp(),
|
|
29312
|
-
uploadedBy:
|
|
29383
|
+
uploadedBy: z419.string().nullable()
|
|
29313
29384
|
});
|
|
29314
29385
|
var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
|
|
29315
29386
|
|
|
29316
29387
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
|
|
29317
|
-
import { z as
|
|
29388
|
+
import { z as z420 } from "zod";
|
|
29318
29389
|
var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
|
|
29319
29390
|
var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
|
|
29320
29391
|
var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
@@ -29327,21 +29398,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
|
29327
29398
|
var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
|
|
29328
29399
|
defaultSort: "versionNumber"
|
|
29329
29400
|
});
|
|
29330
|
-
var KycProfileVersionsV2ListItemSchema =
|
|
29331
|
-
id:
|
|
29332
|
-
versionNumber:
|
|
29401
|
+
var KycProfileVersionsV2ListItemSchema = z420.object({
|
|
29402
|
+
id: z420.string(),
|
|
29403
|
+
versionNumber: z420.number(),
|
|
29333
29404
|
status: kycVersionStatus(),
|
|
29334
29405
|
createdAt: timestamp(),
|
|
29335
|
-
createdBy:
|
|
29406
|
+
createdBy: z420.string().nullable(),
|
|
29336
29407
|
submittedAt: timestamp().nullable(),
|
|
29337
|
-
submittedBy:
|
|
29408
|
+
submittedBy: z420.string().nullable(),
|
|
29338
29409
|
reviewedAt: timestamp().nullable(),
|
|
29339
|
-
reviewedBy:
|
|
29340
|
-
reviewOutcome:
|
|
29341
|
-
isDraft:
|
|
29342
|
-
isUnderReview:
|
|
29343
|
-
isApproved:
|
|
29344
|
-
isCurrent:
|
|
29410
|
+
reviewedBy: z420.string().nullable(),
|
|
29411
|
+
reviewOutcome: z420.enum(KYC_REVIEW_OUTCOMES).nullable(),
|
|
29412
|
+
isDraft: z420.boolean(),
|
|
29413
|
+
isUnderReview: z420.boolean(),
|
|
29414
|
+
isApproved: z420.boolean(),
|
|
29415
|
+
isCurrent: z420.boolean()
|
|
29345
29416
|
});
|
|
29346
29417
|
var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
|
|
29347
29418
|
|
|
@@ -29359,14 +29430,14 @@ var versionsList = v2Contract.route({
|
|
|
29359
29430
|
description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
|
|
29360
29431
|
successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
|
|
29361
29432
|
tags: [V2_TAG.userKyc]
|
|
29362
|
-
}).input(v2Input.paramsQuery(
|
|
29433
|
+
}).input(v2Input.paramsQuery(z421.object({ userId: z421.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
|
|
29363
29434
|
var versionsCreate = v2Contract.route({
|
|
29364
29435
|
method: "POST",
|
|
29365
29436
|
path: "/kyc-profiles/{userId}/versions",
|
|
29366
29437
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
29367
29438
|
successDescription: "KYC profile version created successfully.",
|
|
29368
29439
|
tags: [V2_TAG.userKyc]
|
|
29369
|
-
}).input(v2Input.paramsBody(
|
|
29440
|
+
}).input(v2Input.paramsBody(z421.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
29370
29441
|
var versionRead = v2Contract.route({
|
|
29371
29442
|
method: "GET",
|
|
29372
29443
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -29380,7 +29451,7 @@ var versionUpdate = v2Contract.route({
|
|
|
29380
29451
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
29381
29452
|
successDescription: "KYC profile version updated successfully.",
|
|
29382
29453
|
tags: [V2_TAG.userKyc]
|
|
29383
|
-
}).input(v2Input.paramsBody(
|
|
29454
|
+
}).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
29384
29455
|
var versionSubmit = v2Contract.route({
|
|
29385
29456
|
method: "POST",
|
|
29386
29457
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -29394,28 +29465,28 @@ var versionApprove = v2Contract.route({
|
|
|
29394
29465
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
29395
29466
|
successDescription: "KYC profile version approved.",
|
|
29396
29467
|
tags: [V2_TAG.userKyc]
|
|
29397
|
-
}).input(v2Input.paramsBody(
|
|
29468
|
+
}).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
29398
29469
|
var versionReject = v2Contract.route({
|
|
29399
29470
|
method: "POST",
|
|
29400
29471
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
29401
29472
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
29402
29473
|
successDescription: "KYC profile version rejected.",
|
|
29403
29474
|
tags: [V2_TAG.userKyc]
|
|
29404
|
-
}).input(v2Input.paramsBody(
|
|
29475
|
+
}).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
29405
29476
|
var versionRequestUpdate = v2Contract.route({
|
|
29406
29477
|
method: "POST",
|
|
29407
29478
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
29408
29479
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
29409
29480
|
successDescription: "Update request created successfully.",
|
|
29410
29481
|
tags: [V2_TAG.userKyc]
|
|
29411
|
-
}).input(v2Input.paramsBody(
|
|
29482
|
+
}).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
29412
29483
|
var documentsList = v2Contract.route({
|
|
29413
29484
|
method: "GET",
|
|
29414
29485
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
29415
29486
|
description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
|
|
29416
29487
|
successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
|
|
29417
29488
|
tags: [V2_TAG.userKyc]
|
|
29418
|
-
}).input(v2Input.paramsQuery(
|
|
29489
|
+
}).input(v2Input.paramsQuery(z421.object({ versionId: z421.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
|
|
29419
29490
|
var documentsDelete = v2Contract.route({
|
|
29420
29491
|
method: "DELETE",
|
|
29421
29492
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
|
|
@@ -29429,14 +29500,14 @@ var documentsGetUploadUrl = v2Contract.route({
|
|
|
29429
29500
|
description: "Generate a presigned URL for uploading a KYC document directly to storage.",
|
|
29430
29501
|
successDescription: "Upload URL generated successfully.",
|
|
29431
29502
|
tags: [V2_TAG.userKyc]
|
|
29432
|
-
}).input(v2Input.paramsBody(
|
|
29503
|
+
}).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
|
|
29433
29504
|
var documentsConfirmUpload = v2Contract.route({
|
|
29434
29505
|
method: "POST",
|
|
29435
29506
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
29436
29507
|
description: "Confirm a document upload after successfully uploading to the presigned URL.",
|
|
29437
29508
|
successDescription: "Document upload confirmed.",
|
|
29438
29509
|
tags: [V2_TAG.userKyc]
|
|
29439
|
-
}).input(v2Input.paramsBody(
|
|
29510
|
+
}).input(v2Input.paramsBody(z421.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
29440
29511
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
29441
29512
|
method: "POST",
|
|
29442
29513
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -29514,14 +29585,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
29514
29585
|
description: "Read a single user by their internal database ID.",
|
|
29515
29586
|
successDescription: "User retrieved successfully.",
|
|
29516
29587
|
tags: [V2_TAG.user]
|
|
29517
|
-
}).input(v2Input.params(
|
|
29588
|
+
}).input(v2Input.params(z422.object({ userId: z422.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
29518
29589
|
var readByWallet3 = v2Contract.route({
|
|
29519
29590
|
method: "GET",
|
|
29520
29591
|
path: "/wallets/{wallet}/user",
|
|
29521
29592
|
description: "Read a single user by their Ethereum wallet address.",
|
|
29522
29593
|
successDescription: "User retrieved successfully.",
|
|
29523
29594
|
tags: [V2_TAG.user]
|
|
29524
|
-
}).input(v2Input.params(
|
|
29595
|
+
}).input(v2Input.params(z422.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
29525
29596
|
var readByNationalId = v2Contract.route({
|
|
29526
29597
|
method: "GET",
|
|
29527
29598
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -29630,30 +29701,30 @@ var userV2Contract = {
|
|
|
29630
29701
|
};
|
|
29631
29702
|
|
|
29632
29703
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
|
|
29633
|
-
import { z as
|
|
29634
|
-
var WebhooksV2ChainOfCustodyInputSchema =
|
|
29635
|
-
evtId:
|
|
29636
|
-
});
|
|
29637
|
-
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(
|
|
29638
|
-
evtId:
|
|
29639
|
-
hops:
|
|
29640
|
-
stage:
|
|
29641
|
-
contentHash:
|
|
29642
|
-
signedBy:
|
|
29643
|
-
recordedAt:
|
|
29704
|
+
import { z as z423 } from "zod";
|
|
29705
|
+
var WebhooksV2ChainOfCustodyInputSchema = z423.object({
|
|
29706
|
+
evtId: z423.string().trim().min(1)
|
|
29707
|
+
});
|
|
29708
|
+
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z423.object({
|
|
29709
|
+
evtId: z423.string(),
|
|
29710
|
+
hops: z423.array(z423.object({
|
|
29711
|
+
stage: z423.string(),
|
|
29712
|
+
contentHash: z423.string(),
|
|
29713
|
+
signedBy: z423.string().optional(),
|
|
29714
|
+
recordedAt: z423.coerce.date()
|
|
29644
29715
|
})),
|
|
29645
|
-
merkleRoot:
|
|
29646
|
-
platformSignature:
|
|
29716
|
+
merkleRoot: z423.string(),
|
|
29717
|
+
platformSignature: z423.string()
|
|
29647
29718
|
}));
|
|
29648
29719
|
|
|
29649
29720
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
29650
|
-
import { z as
|
|
29721
|
+
import { z as z425 } from "zod";
|
|
29651
29722
|
|
|
29652
29723
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
|
|
29653
|
-
import { z as
|
|
29654
|
-
var WebhookPayloadShapeSchema =
|
|
29655
|
-
var WebhookBreakerStateSchema =
|
|
29656
|
-
var WebhookDeliveryFailureClassSchema =
|
|
29724
|
+
import { z as z424 } from "zod";
|
|
29725
|
+
var WebhookPayloadShapeSchema = z424.enum(["thin", "fat"]);
|
|
29726
|
+
var WebhookBreakerStateSchema = z424.enum(["closed", "half_open", "open"]);
|
|
29727
|
+
var WebhookDeliveryFailureClassSchema = z424.enum([
|
|
29657
29728
|
"DNS_FAIL",
|
|
29658
29729
|
"TLS_FAIL",
|
|
29659
29730
|
"CONNECT_TIMEOUT",
|
|
@@ -29665,35 +29736,35 @@ var WebhookDeliveryFailureClassSchema = z422.enum([
|
|
|
29665
29736
|
"RECEIPT_INVALID_SIG",
|
|
29666
29737
|
"RECEIPT_HASH_MISMATCH"
|
|
29667
29738
|
]);
|
|
29668
|
-
var WebhookFinalityStateSchema =
|
|
29669
|
-
var WebhookSigningSecretStatusSchema =
|
|
29670
|
-
var WebhookFatEventsAcknowledgmentSchema =
|
|
29671
|
-
acknowledgedAt:
|
|
29672
|
-
acknowledgedByUserId:
|
|
29673
|
-
fieldsAcknowledged:
|
|
29674
|
-
});
|
|
29675
|
-
var WebhookEndpointSchema =
|
|
29676
|
-
id:
|
|
29677
|
-
tenantId:
|
|
29678
|
-
systemId:
|
|
29679
|
-
url:
|
|
29680
|
-
displayName:
|
|
29681
|
-
subscriptions:
|
|
29739
|
+
var WebhookFinalityStateSchema = z424.enum(["pending", "provisional", "final", "retracted", "recalled"]);
|
|
29740
|
+
var WebhookSigningSecretStatusSchema = z424.enum(["active", "previous", "revoked"]);
|
|
29741
|
+
var WebhookFatEventsAcknowledgmentSchema = z424.object({
|
|
29742
|
+
acknowledgedAt: z424.coerce.date(),
|
|
29743
|
+
acknowledgedByUserId: z424.string(),
|
|
29744
|
+
fieldsAcknowledged: z424.array(z424.string())
|
|
29745
|
+
});
|
|
29746
|
+
var WebhookEndpointSchema = z424.object({
|
|
29747
|
+
id: z424.uuid(),
|
|
29748
|
+
tenantId: z424.string(),
|
|
29749
|
+
systemId: z424.string(),
|
|
29750
|
+
url: z424.url(),
|
|
29751
|
+
displayName: z424.string().nullable(),
|
|
29752
|
+
subscriptions: z424.array(z424.string()),
|
|
29682
29753
|
defaultPayloadShape: WebhookPayloadShapeSchema,
|
|
29683
|
-
counterSignedReceipts:
|
|
29754
|
+
counterSignedReceipts: z424.boolean(),
|
|
29684
29755
|
breakerState: WebhookBreakerStateSchema,
|
|
29685
|
-
disabledAt:
|
|
29686
|
-
disabledReason:
|
|
29756
|
+
disabledAt: z424.coerce.date().nullable(),
|
|
29757
|
+
disabledReason: z424.string().nullable(),
|
|
29687
29758
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
|
|
29688
|
-
secret:
|
|
29689
|
-
activeVersion:
|
|
29690
|
-
previousVersion:
|
|
29691
|
-
previousRevokesAt:
|
|
29692
|
-
lastUsedAt:
|
|
29759
|
+
secret: z424.object({
|
|
29760
|
+
activeVersion: z424.number().int().positive().nullable(),
|
|
29761
|
+
previousVersion: z424.number().int().positive().nullable(),
|
|
29762
|
+
previousRevokesAt: z424.coerce.date().nullable(),
|
|
29763
|
+
lastUsedAt: z424.coerce.date().nullable()
|
|
29693
29764
|
}),
|
|
29694
|
-
createdAt:
|
|
29695
|
-
updatedAt:
|
|
29696
|
-
createdByUserId:
|
|
29765
|
+
createdAt: z424.coerce.date(),
|
|
29766
|
+
updatedAt: z424.coerce.date(),
|
|
29767
|
+
createdByUserId: z424.string().nullable()
|
|
29697
29768
|
});
|
|
29698
29769
|
var WEBHOOKS_COLLECTION_FIELDS = {
|
|
29699
29770
|
displayName: textField(),
|
|
@@ -29712,44 +29783,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
|
|
|
29712
29783
|
var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
|
|
29713
29784
|
|
|
29714
29785
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
29715
|
-
var WebhooksV2CreateInputSchema =
|
|
29716
|
-
url:
|
|
29717
|
-
displayName:
|
|
29718
|
-
subscriptions:
|
|
29786
|
+
var WebhooksV2CreateInputSchema = z425.object({
|
|
29787
|
+
url: z425.url(),
|
|
29788
|
+
displayName: z425.string().trim().min(1).max(200).optional(),
|
|
29789
|
+
subscriptions: z425.array(z425.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
|
|
29719
29790
|
defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
|
|
29720
|
-
counterSignedReceipts:
|
|
29791
|
+
counterSignedReceipts: z425.boolean().default(false)
|
|
29721
29792
|
});
|
|
29722
29793
|
var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
|
|
29723
|
-
signingSecret:
|
|
29794
|
+
signingSecret: z425.string().nullable()
|
|
29724
29795
|
});
|
|
29725
29796
|
var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
|
|
29726
29797
|
|
|
29727
29798
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
|
|
29728
|
-
import { z as
|
|
29729
|
-
var WebhooksV2DeleteInputSchema =
|
|
29730
|
-
id:
|
|
29799
|
+
import { z as z426 } from "zod";
|
|
29800
|
+
var WebhooksV2DeleteInputSchema = z426.object({
|
|
29801
|
+
id: z426.uuid()
|
|
29731
29802
|
});
|
|
29732
29803
|
var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
|
|
29733
29804
|
|
|
29734
29805
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
|
|
29735
|
-
import { z as
|
|
29736
|
-
var WebhookDeliveryStatusSchema =
|
|
29737
|
-
var WebhookDeliverySchema =
|
|
29738
|
-
id:
|
|
29739
|
-
eventOutboxId:
|
|
29740
|
-
endpointId:
|
|
29741
|
-
tenantId:
|
|
29742
|
-
evtId:
|
|
29743
|
-
eventType:
|
|
29744
|
-
attemptN:
|
|
29745
|
-
attemptedAt:
|
|
29746
|
-
responseStatus:
|
|
29806
|
+
import { z as z427 } from "zod";
|
|
29807
|
+
var WebhookDeliveryStatusSchema = z427.enum(["pending", "delivered", "failed"]);
|
|
29808
|
+
var WebhookDeliverySchema = z427.object({
|
|
29809
|
+
id: z427.uuid(),
|
|
29810
|
+
eventOutboxId: z427.uuid(),
|
|
29811
|
+
endpointId: z427.uuid(),
|
|
29812
|
+
tenantId: z427.string(),
|
|
29813
|
+
evtId: z427.string(),
|
|
29814
|
+
eventType: z427.string(),
|
|
29815
|
+
attemptN: z427.number().int().nonnegative(),
|
|
29816
|
+
attemptedAt: z427.coerce.date(),
|
|
29817
|
+
responseStatus: z427.number().int().nullable(),
|
|
29747
29818
|
failureClass: WebhookDeliveryFailureClassSchema.nullable(),
|
|
29748
29819
|
status: WebhookDeliveryStatusSchema,
|
|
29749
|
-
deliveredAt:
|
|
29750
|
-
isReplay:
|
|
29751
|
-
isTest:
|
|
29752
|
-
traceId:
|
|
29820
|
+
deliveredAt: z427.coerce.date().nullable(),
|
|
29821
|
+
isReplay: z427.boolean(),
|
|
29822
|
+
isTest: z427.boolean(),
|
|
29823
|
+
traceId: z427.string().nullable()
|
|
29753
29824
|
});
|
|
29754
29825
|
var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
|
|
29755
29826
|
status: enumField(["pending", "delivered", "failed"]),
|
|
@@ -29775,167 +29846,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
|
|
|
29775
29846
|
defaultSort: "attemptedAt",
|
|
29776
29847
|
globalSearch: false
|
|
29777
29848
|
});
|
|
29778
|
-
var WebhooksV2DeliveriesListParamsSchema =
|
|
29779
|
-
id:
|
|
29849
|
+
var WebhooksV2DeliveriesListParamsSchema = z427.object({
|
|
29850
|
+
id: z427.uuid()
|
|
29780
29851
|
});
|
|
29781
29852
|
var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
|
|
29782
29853
|
|
|
29783
29854
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
|
|
29784
|
-
import { z as
|
|
29785
|
-
var WebhooksV2DeliveriesReadInputSchema =
|
|
29786
|
-
id:
|
|
29787
|
-
deliveryId:
|
|
29855
|
+
import { z as z428 } from "zod";
|
|
29856
|
+
var WebhooksV2DeliveriesReadInputSchema = z428.object({
|
|
29857
|
+
id: z428.uuid(),
|
|
29858
|
+
deliveryId: z428.uuid()
|
|
29788
29859
|
});
|
|
29789
29860
|
var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
|
|
29790
|
-
request:
|
|
29791
|
-
payload:
|
|
29792
|
-
signedHeaders:
|
|
29793
|
-
signedStringPreview:
|
|
29861
|
+
request: z428.object({
|
|
29862
|
+
payload: z428.record(z428.string(), z428.json()),
|
|
29863
|
+
signedHeaders: z428.record(z428.string(), z428.union([z428.string(), z428.array(z428.string())])),
|
|
29864
|
+
signedStringPreview: z428.string()
|
|
29794
29865
|
}),
|
|
29795
|
-
response:
|
|
29796
|
-
headers:
|
|
29797
|
-
body:
|
|
29798
|
-
timings:
|
|
29799
|
-
dnsMs:
|
|
29800
|
-
tlsMs:
|
|
29801
|
-
connectMs:
|
|
29802
|
-
ttfbMs:
|
|
29866
|
+
response: z428.object({
|
|
29867
|
+
headers: z428.record(z428.string(), z428.union([z428.string(), z428.array(z428.string())])).nullable(),
|
|
29868
|
+
body: z428.string().nullable(),
|
|
29869
|
+
timings: z428.object({
|
|
29870
|
+
dnsMs: z428.number().int().nullable(),
|
|
29871
|
+
tlsMs: z428.number().int().nullable(),
|
|
29872
|
+
connectMs: z428.number().int().nullable(),
|
|
29873
|
+
ttfbMs: z428.number().int().nullable()
|
|
29803
29874
|
})
|
|
29804
29875
|
})
|
|
29805
29876
|
});
|
|
29806
29877
|
var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
|
|
29807
29878
|
|
|
29808
29879
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
|
|
29809
|
-
import { z as
|
|
29810
|
-
var WebhooksV2DeliveriesRetryInputSchema =
|
|
29811
|
-
id:
|
|
29812
|
-
deliveryId:
|
|
29880
|
+
import { z as z429 } from "zod";
|
|
29881
|
+
var WebhooksV2DeliveriesRetryInputSchema = z429.object({
|
|
29882
|
+
id: z429.uuid(),
|
|
29883
|
+
deliveryId: z429.uuid()
|
|
29813
29884
|
});
|
|
29814
|
-
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(
|
|
29815
|
-
deliveryId:
|
|
29816
|
-
scheduled:
|
|
29885
|
+
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z429.object({
|
|
29886
|
+
deliveryId: z429.uuid(),
|
|
29887
|
+
scheduled: z429.boolean()
|
|
29817
29888
|
}));
|
|
29818
29889
|
|
|
29819
29890
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
|
|
29820
|
-
import { z as
|
|
29821
|
-
var WebhooksV2ReadInputSchema =
|
|
29822
|
-
id:
|
|
29891
|
+
import { z as z430 } from "zod";
|
|
29892
|
+
var WebhooksV2ReadInputSchema = z430.object({
|
|
29893
|
+
id: z430.uuid()
|
|
29823
29894
|
});
|
|
29824
29895
|
var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
|
|
29825
29896
|
|
|
29826
29897
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
|
|
29827
|
-
import { z as
|
|
29828
|
-
var WebhooksV2RecallsParamsSchema =
|
|
29829
|
-
evtId:
|
|
29830
|
-
});
|
|
29831
|
-
var WebhooksV2RecallsBodySchema =
|
|
29832
|
-
reason:
|
|
29833
|
-
});
|
|
29834
|
-
var WebhooksV2RecallsOutputSchema = createSingleResponse(
|
|
29835
|
-
evtId:
|
|
29836
|
-
recalledEvtId:
|
|
29837
|
-
supersedes:
|
|
29838
|
-
reason:
|
|
29839
|
-
recalledByUserId:
|
|
29898
|
+
import { z as z431 } from "zod";
|
|
29899
|
+
var WebhooksV2RecallsParamsSchema = z431.object({
|
|
29900
|
+
evtId: z431.string().trim().min(1)
|
|
29901
|
+
});
|
|
29902
|
+
var WebhooksV2RecallsBodySchema = z431.object({
|
|
29903
|
+
reason: z431.string().trim().min(1).max(2000)
|
|
29904
|
+
});
|
|
29905
|
+
var WebhooksV2RecallsOutputSchema = createSingleResponse(z431.object({
|
|
29906
|
+
evtId: z431.string(),
|
|
29907
|
+
recalledEvtId: z431.string(),
|
|
29908
|
+
supersedes: z431.string(),
|
|
29909
|
+
reason: z431.string(),
|
|
29910
|
+
recalledByUserId: z431.string()
|
|
29840
29911
|
}));
|
|
29841
29912
|
|
|
29842
29913
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
|
|
29843
|
-
import { z as
|
|
29844
|
-
var WebhooksV2ReplayByRangeSchema =
|
|
29845
|
-
fromBlock:
|
|
29846
|
-
toBlock:
|
|
29847
|
-
chainId:
|
|
29848
|
-
confirmLargeRange:
|
|
29914
|
+
import { z as z432 } from "zod";
|
|
29915
|
+
var WebhooksV2ReplayByRangeSchema = z432.object({
|
|
29916
|
+
fromBlock: z432.coerce.bigint(),
|
|
29917
|
+
toBlock: z432.coerce.bigint().optional(),
|
|
29918
|
+
chainId: z432.coerce.number().int().positive(),
|
|
29919
|
+
confirmLargeRange: z432.boolean().default(false)
|
|
29849
29920
|
});
|
|
29850
|
-
var WebhooksV2ReplayByEventSchema =
|
|
29851
|
-
evtId:
|
|
29852
|
-
chainId:
|
|
29921
|
+
var WebhooksV2ReplayByEventSchema = z432.object({
|
|
29922
|
+
evtId: z432.string().trim().min(1),
|
|
29923
|
+
chainId: z432.coerce.number().int().positive().optional()
|
|
29853
29924
|
});
|
|
29854
|
-
var WebhooksV2ReplaysParamsSchema =
|
|
29855
|
-
id:
|
|
29925
|
+
var WebhooksV2ReplaysParamsSchema = z432.object({
|
|
29926
|
+
id: z432.uuid()
|
|
29856
29927
|
});
|
|
29857
|
-
var WebhooksV2ReplaysBodySchema =
|
|
29858
|
-
var WebhooksV2ReplaysOutputSchema = createSingleResponse(
|
|
29859
|
-
replayId:
|
|
29860
|
-
endpointId:
|
|
29861
|
-
eventsEnqueued:
|
|
29862
|
-
snapshotToBlock:
|
|
29928
|
+
var WebhooksV2ReplaysBodySchema = z432.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
|
|
29929
|
+
var WebhooksV2ReplaysOutputSchema = createSingleResponse(z432.object({
|
|
29930
|
+
replayId: z432.uuid(),
|
|
29931
|
+
endpointId: z432.uuid(),
|
|
29932
|
+
eventsEnqueued: z432.number().int().nonnegative(),
|
|
29933
|
+
snapshotToBlock: z432.string().nullable()
|
|
29863
29934
|
}));
|
|
29864
29935
|
|
|
29865
29936
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
|
|
29866
|
-
import { z as
|
|
29867
|
-
var WebhooksV2RevokeSecretInputSchema =
|
|
29868
|
-
id:
|
|
29869
|
-
});
|
|
29870
|
-
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(
|
|
29871
|
-
endpointId:
|
|
29872
|
-
activeVersion:
|
|
29873
|
-
previousVersion:
|
|
29874
|
-
revokedVersion:
|
|
29937
|
+
import { z as z433 } from "zod";
|
|
29938
|
+
var WebhooksV2RevokeSecretInputSchema = z433.object({
|
|
29939
|
+
id: z433.uuid()
|
|
29940
|
+
});
|
|
29941
|
+
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z433.object({
|
|
29942
|
+
endpointId: z433.uuid(),
|
|
29943
|
+
activeVersion: z433.number().int().positive(),
|
|
29944
|
+
previousVersion: z433.number().int().positive().nullable(),
|
|
29945
|
+
revokedVersion: z433.number().int().positive()
|
|
29875
29946
|
}));
|
|
29876
29947
|
|
|
29877
29948
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
|
|
29878
|
-
import { z as
|
|
29879
|
-
var WebhooksV2RotateSecretInputSchema =
|
|
29880
|
-
id:
|
|
29949
|
+
import { z as z434 } from "zod";
|
|
29950
|
+
var WebhooksV2RotateSecretInputSchema = z434.object({
|
|
29951
|
+
id: z434.uuid()
|
|
29881
29952
|
});
|
|
29882
|
-
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(
|
|
29883
|
-
endpointId:
|
|
29884
|
-
activeVersion:
|
|
29885
|
-
previousVersion:
|
|
29886
|
-
previousRevokesAt:
|
|
29887
|
-
signingSecret:
|
|
29953
|
+
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z434.object({
|
|
29954
|
+
endpointId: z434.uuid(),
|
|
29955
|
+
activeVersion: z434.number().int().positive(),
|
|
29956
|
+
previousVersion: z434.number().int().positive().nullable(),
|
|
29957
|
+
previousRevokesAt: z434.coerce.date().nullable(),
|
|
29958
|
+
signingSecret: z434.string().nullable()
|
|
29888
29959
|
}));
|
|
29889
29960
|
|
|
29890
29961
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
|
|
29891
|
-
import { z as
|
|
29892
|
-
var WebhooksV2StatsInputSchema =
|
|
29893
|
-
endpointId:
|
|
29962
|
+
import { z as z435 } from "zod";
|
|
29963
|
+
var WebhooksV2StatsInputSchema = z435.object({
|
|
29964
|
+
endpointId: z435.uuid().optional()
|
|
29894
29965
|
});
|
|
29895
|
-
var WebhooksV2StatsOutputDataSchema =
|
|
29896
|
-
totalDeliveries:
|
|
29897
|
-
delivered:
|
|
29898
|
-
failed:
|
|
29899
|
-
hourlyBuckets:
|
|
29966
|
+
var WebhooksV2StatsOutputDataSchema = z435.object({
|
|
29967
|
+
totalDeliveries: z435.number().int().min(0),
|
|
29968
|
+
delivered: z435.number().int().min(0),
|
|
29969
|
+
failed: z435.number().int().min(0),
|
|
29970
|
+
hourlyBuckets: z435.array(z435.number().int().min(0)).length(24)
|
|
29900
29971
|
});
|
|
29901
29972
|
var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
|
|
29902
29973
|
|
|
29903
29974
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
|
|
29904
|
-
import { z as
|
|
29905
|
-
var WebhooksV2TestEventParamsSchema =
|
|
29906
|
-
id:
|
|
29975
|
+
import { z as z436 } from "zod";
|
|
29976
|
+
var WebhooksV2TestEventParamsSchema = z436.object({
|
|
29977
|
+
id: z436.uuid()
|
|
29907
29978
|
});
|
|
29908
|
-
var WebhooksV2TestEventBodySchema =
|
|
29909
|
-
eventType:
|
|
29979
|
+
var WebhooksV2TestEventBodySchema = z436.object({
|
|
29980
|
+
eventType: z436.string().trim().min(1).default("webhook.test.final")
|
|
29910
29981
|
});
|
|
29911
|
-
var WebhooksV2TestEventOutputSchema = createSingleResponse(
|
|
29912
|
-
evtId:
|
|
29913
|
-
deliveryId:
|
|
29914
|
-
isTest:
|
|
29982
|
+
var WebhooksV2TestEventOutputSchema = createSingleResponse(z436.object({
|
|
29983
|
+
evtId: z436.string(),
|
|
29984
|
+
deliveryId: z436.uuid().nullable(),
|
|
29985
|
+
isTest: z436.literal(true)
|
|
29915
29986
|
}));
|
|
29916
29987
|
|
|
29917
29988
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
|
|
29918
|
-
import { z as
|
|
29919
|
-
var WebhooksV2UpdateParamsSchema =
|
|
29920
|
-
id:
|
|
29989
|
+
import { z as z437 } from "zod";
|
|
29990
|
+
var WebhooksV2UpdateParamsSchema = z437.object({
|
|
29991
|
+
id: z437.uuid()
|
|
29921
29992
|
});
|
|
29922
|
-
var WebhooksV2UpdateBodySchema =
|
|
29923
|
-
url:
|
|
29924
|
-
displayName:
|
|
29925
|
-
subscriptions:
|
|
29993
|
+
var WebhooksV2UpdateBodySchema = z437.object({
|
|
29994
|
+
url: z437.url().optional(),
|
|
29995
|
+
displayName: z437.string().trim().min(1).max(200).nullable().optional(),
|
|
29996
|
+
subscriptions: z437.array(z437.string().trim().min(1)).min(1).optional(),
|
|
29926
29997
|
defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
|
|
29927
|
-
counterSignedReceipts:
|
|
29928
|
-
disabled:
|
|
29929
|
-
disabledReason:
|
|
29998
|
+
counterSignedReceipts: z437.boolean().optional(),
|
|
29999
|
+
disabled: z437.boolean().optional(),
|
|
30000
|
+
disabledReason: z437.string().trim().min(1).max(500).nullable().optional(),
|
|
29930
30001
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
|
|
29931
30002
|
acknowledgedAt: true,
|
|
29932
30003
|
acknowledgedByUserId: true
|
|
29933
30004
|
}).optional()
|
|
29934
30005
|
});
|
|
29935
|
-
var WebhooksV2UpdateQuerySchema =
|
|
29936
|
-
acknowledgePending:
|
|
30006
|
+
var WebhooksV2UpdateQuerySchema = z437.object({
|
|
30007
|
+
acknowledgePending: z437.union([z437.literal("true"), z437.literal(true)]).transform(() => true).optional()
|
|
29937
30008
|
}).optional();
|
|
29938
|
-
var WebhooksV2UpdateInputSchema =
|
|
30009
|
+
var WebhooksV2UpdateInputSchema = z437.object({
|
|
29939
30010
|
params: WebhooksV2UpdateParamsSchema,
|
|
29940
30011
|
body: WebhooksV2UpdateBodySchema,
|
|
29941
30012
|
query: WebhooksV2UpdateQuerySchema
|
|
@@ -30070,21 +30141,21 @@ var webhooksV2Contract = {
|
|
|
30070
30141
|
};
|
|
30071
30142
|
|
|
30072
30143
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
30073
|
-
import { z as
|
|
30144
|
+
import { z as z439 } from "zod";
|
|
30074
30145
|
|
|
30075
30146
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
|
|
30076
|
-
import { z as
|
|
30077
|
-
var WebhookReceiptVerificationFailureClassSchema =
|
|
30078
|
-
var WebhookReceiptSchema =
|
|
30079
|
-
id:
|
|
30080
|
-
deliveryId:
|
|
30081
|
-
evtId:
|
|
30082
|
-
tenantId:
|
|
30083
|
-
endpointId:
|
|
30084
|
-
consumerSignature:
|
|
30085
|
-
innerEventHash:
|
|
30086
|
-
receivedAt:
|
|
30087
|
-
verifiedAt:
|
|
30147
|
+
import { z as z438 } from "zod";
|
|
30148
|
+
var WebhookReceiptVerificationFailureClassSchema = z438.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
|
|
30149
|
+
var WebhookReceiptSchema = z438.object({
|
|
30150
|
+
id: z438.uuid(),
|
|
30151
|
+
deliveryId: z438.uuid(),
|
|
30152
|
+
evtId: z438.string(),
|
|
30153
|
+
tenantId: z438.string(),
|
|
30154
|
+
endpointId: z438.uuid(),
|
|
30155
|
+
consumerSignature: z438.string(),
|
|
30156
|
+
innerEventHash: z438.string(),
|
|
30157
|
+
receivedAt: z438.coerce.date(),
|
|
30158
|
+
verifiedAt: z438.coerce.date().nullable(),
|
|
30088
30159
|
verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
|
|
30089
30160
|
});
|
|
30090
30161
|
var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
|
|
@@ -30101,19 +30172,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
|
|
|
30101
30172
|
var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
|
|
30102
30173
|
|
|
30103
30174
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
30104
|
-
var WebhookReceiptsV2CreateInputSchema =
|
|
30105
|
-
deliveryId:
|
|
30106
|
-
evtId:
|
|
30107
|
-
endpointId:
|
|
30108
|
-
consumerSignature:
|
|
30109
|
-
innerEventHash:
|
|
30175
|
+
var WebhookReceiptsV2CreateInputSchema = z439.object({
|
|
30176
|
+
deliveryId: z439.uuid(),
|
|
30177
|
+
evtId: z439.string().trim().min(1),
|
|
30178
|
+
endpointId: z439.uuid(),
|
|
30179
|
+
consumerSignature: z439.string().trim().min(1),
|
|
30180
|
+
innerEventHash: z439.string().trim().min(1)
|
|
30110
30181
|
});
|
|
30111
30182
|
var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
30112
30183
|
|
|
30113
30184
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
|
|
30114
|
-
import { z as
|
|
30115
|
-
var WebhookReceiptsV2ReadInputSchema =
|
|
30116
|
-
id:
|
|
30185
|
+
import { z as z440 } from "zod";
|
|
30186
|
+
var WebhookReceiptsV2ReadInputSchema = z440.object({
|
|
30187
|
+
id: z440.uuid()
|
|
30117
30188
|
});
|
|
30118
30189
|
var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
30119
30190
|
|
|
@@ -30392,7 +30463,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
30392
30463
|
// package.json
|
|
30393
30464
|
var package_default = {
|
|
30394
30465
|
name: "@settlemint/dalp-sdk",
|
|
30395
|
-
version: "2.1.7-main.
|
|
30466
|
+
version: "2.1.7-main.25738823940",
|
|
30396
30467
|
private: false,
|
|
30397
30468
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
30398
30469
|
homepage: "https://settlemint.com",
|