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