@settlemint/dalp-sdk 2.1.7-main.26370007136 → 2.1.7-main.26370309209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +636 -495
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13163,6 +13163,10 @@ var TokenSchema = z67.object({
|
|
|
13163
13163
|
description: "Whether the user can execute the removeAuthorizedConverter action",
|
|
13164
13164
|
examples: [true, false]
|
|
13165
13165
|
}),
|
|
13166
|
+
featureConversionMinterCreate: z67.boolean().meta({
|
|
13167
|
+
description: "Whether the user can execute the featureConversionMinterCreate action",
|
|
13168
|
+
examples: [true, false]
|
|
13169
|
+
}),
|
|
13166
13170
|
setPrice: z67.boolean().meta({
|
|
13167
13171
|
description: "Whether the user can execute the setPrice action",
|
|
13168
13172
|
examples: [true, false]
|
|
@@ -28483,6 +28487,7 @@ var TokenCollectAumFeeInputSchema = TokenMutationInputSchema.extend({});
|
|
|
28483
28487
|
var TokenFreezeAumFeeRateInputSchema = TokenMutationInputSchema.extend({});
|
|
28484
28488
|
|
|
28485
28489
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.conversion.schema.ts
|
|
28490
|
+
import { zeroAddress as zeroAddress2 } from "viem";
|
|
28486
28491
|
import { z as z414 } from "zod";
|
|
28487
28492
|
var conversionMinterTargetTokenAddress = ethereumAddress.meta({
|
|
28488
28493
|
description: "Must be the target token's address (where the conversion-minter feature lives).",
|
|
@@ -28571,9 +28576,38 @@ var TokenRemoveAuthorizedConverterInputSchema = TokenConversionMinterMutationInp
|
|
|
28571
28576
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28572
28577
|
})
|
|
28573
28578
|
});
|
|
28579
|
+
var conversionMinterConverterAddress = ethereumAddress.refine((address) => address !== zeroAddress2, "Converter cannot be the zero address");
|
|
28580
|
+
var TokenFeatureConversionMinterCreateBaseSchema = TokenMutationInputSchema.extend({
|
|
28581
|
+
converters: z414.array(conversionMinterConverterAddress).optional().meta({
|
|
28582
|
+
description: "Initial list of authorized converter addresses. Omit or empty for no initial converters.",
|
|
28583
|
+
examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
|
|
28584
|
+
})
|
|
28585
|
+
});
|
|
28586
|
+
var refineNoDuplicates = (value3, ctx) => {
|
|
28587
|
+
if (!value3.converters || value3.converters.length < 2) {
|
|
28588
|
+
return;
|
|
28589
|
+
}
|
|
28590
|
+
const seen = new Set;
|
|
28591
|
+
for (const [index, address] of value3.converters.entries()) {
|
|
28592
|
+
const key = address.toLowerCase();
|
|
28593
|
+
if (seen.has(key)) {
|
|
28594
|
+
ctx.addIssue({
|
|
28595
|
+
code: "custom",
|
|
28596
|
+
message: "Duplicate converter address",
|
|
28597
|
+
path: ["converters", index]
|
|
28598
|
+
});
|
|
28599
|
+
return;
|
|
28600
|
+
}
|
|
28601
|
+
seen.add(key);
|
|
28602
|
+
}
|
|
28603
|
+
};
|
|
28604
|
+
var TokenFeatureConversionMinterCreateInputSchema = TokenFeatureConversionMinterCreateBaseSchema.superRefine(refineNoDuplicates);
|
|
28605
|
+
var TokenFeatureConversionMinterCreateBodySchema = TokenFeatureConversionMinterCreateBaseSchema.omit({
|
|
28606
|
+
tokenAddress: true
|
|
28607
|
+
}).superRefine(refineNoDuplicates);
|
|
28574
28608
|
|
|
28575
28609
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.external-transaction-fee.schema.ts
|
|
28576
|
-
import { zeroAddress as
|
|
28610
|
+
import { zeroAddress as zeroAddress3 } from "viem";
|
|
28577
28611
|
var TokenSetExternalTransactionFeesInputSchema = TokenMutationInputSchema.extend({
|
|
28578
28612
|
mintFee: assetAmount.meta({
|
|
28579
28613
|
description: "Mint fee amount in wei",
|
|
@@ -28602,7 +28636,7 @@ var TokenSetExternalTransactionFeeTokenInputSchema = TokenMutationInputSchema.ex
|
|
|
28602
28636
|
});
|
|
28603
28637
|
var TokenFreezeExternalTransactionFeesInputSchema = TokenMutationInputSchema.extend({});
|
|
28604
28638
|
var featureExternalTransactionFeeCreateRefiner = (value3, ctx) => {
|
|
28605
|
-
if (value3.feeToken ===
|
|
28639
|
+
if (value3.feeToken === zeroAddress3 && (value3.mintFee > 0n || value3.burnFee > 0n || value3.transferFee > 0n)) {
|
|
28606
28640
|
ctx.addIssue({
|
|
28607
28641
|
code: "custom",
|
|
28608
28642
|
message: "feeToken must be set when any fee amount is non-zero",
|
|
@@ -28825,7 +28859,7 @@ var TokenFeaturePermitDetachInputSchema = TokenMutationInputSchema;
|
|
|
28825
28859
|
var TokenFeaturePermitDetachBodySchema = TokenFeaturePermitDetachInputSchema.omit({ tokenAddress: true });
|
|
28826
28860
|
|
|
28827
28861
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.yield-ops.schema.ts
|
|
28828
|
-
import { zeroAddress as
|
|
28862
|
+
import { zeroAddress as zeroAddress4 } from "viem";
|
|
28829
28863
|
var TokenClaimYieldInputSchema = TokenMutationInputSchema.extend({});
|
|
28830
28864
|
var TokenSetYieldTreasuryInputSchema = TokenMutationInputSchema.extend({
|
|
28831
28865
|
treasury: ethereumAddress.meta({
|
|
@@ -28847,7 +28881,7 @@ var TokenFeatureApproveYieldAllowanceInputSchema = TokenMutationInputSchema.exte
|
|
|
28847
28881
|
});
|
|
28848
28882
|
var MAX_UINT2564 = (1n << 256n) - 1n;
|
|
28849
28883
|
var TokenFeatureFixedTreasuryYieldCreateBaseSchema = TokenMutationInputSchema.extend({
|
|
28850
|
-
denominationAsset: ethereumAddress.refine((v) => v !==
|
|
28884
|
+
denominationAsset: ethereumAddress.refine((v) => v !== zeroAddress4, "denominationAsset must not be the zero address").meta({
|
|
28851
28885
|
description: "ERC20 address whose decimals back the yield payouts.",
|
|
28852
28886
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28853
28887
|
}),
|
|
@@ -28857,7 +28891,7 @@ var TokenFeatureFixedTreasuryYieldCreateBaseSchema = TokenMutationInputSchema.ex
|
|
|
28857
28891
|
description: "The basis (in denomination-asset base units) per one token unit used to size yield accrual.",
|
|
28858
28892
|
examples: ["1000000000000000000"]
|
|
28859
28893
|
}),
|
|
28860
|
-
treasury: ethereumAddress.refine((v) => v !==
|
|
28894
|
+
treasury: ethereumAddress.refine((v) => v !== zeroAddress4, "treasury must not be the zero address").meta({
|
|
28861
28895
|
description: "Treasury address from which yield distributions are funded.",
|
|
28862
28896
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28863
28897
|
}),
|
|
@@ -29357,6 +29391,13 @@ var featureFixedTreasuryYieldCreate = v2Contract.route({
|
|
|
29357
29391
|
successDescription: "Fixed-treasury-yield feature deployed successfully.",
|
|
29358
29392
|
tags: [V2_TAG.token]
|
|
29359
29393
|
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureFixedTreasuryYieldCreateBodySchema)).output(mutationOutput);
|
|
29394
|
+
var featureConversionMinterCreate = v2Contract.route({
|
|
29395
|
+
method: "POST",
|
|
29396
|
+
path: "/tokens/{tokenAddress}/conversion-minter/features",
|
|
29397
|
+
description: "Deploy a conversion-minter feature on a CONFIGURABLE token via the DALPConversionMinterFeatureFactory. The feature mints the target token in response to conversions on a paired loan token. Initial authorized converters can be supplied here or added later via addAuthorizedConverter.",
|
|
29398
|
+
successDescription: "Conversion-minter feature deployed successfully.",
|
|
29399
|
+
tags: [V2_TAG.token]
|
|
29400
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureConversionMinterCreateBodySchema)).output(mutationOutput);
|
|
29360
29401
|
var featurePermitCreate = v2Contract.route({
|
|
29361
29402
|
method: "POST",
|
|
29362
29403
|
path: "/tokens/{tokenAddress}/permit/features",
|
|
@@ -29673,6 +29714,7 @@ var tokenV2MutationsContract = {
|
|
|
29673
29714
|
claimYield,
|
|
29674
29715
|
setYieldTreasury,
|
|
29675
29716
|
featureFixedTreasuryYieldCreate,
|
|
29717
|
+
featureConversionMinterCreate,
|
|
29676
29718
|
featurePermitCreate,
|
|
29677
29719
|
featurePermitDetach,
|
|
29678
29720
|
featureMature,
|
|
@@ -29713,7 +29755,7 @@ var tokenV2MutationsContract = {
|
|
|
29713
29755
|
};
|
|
29714
29756
|
|
|
29715
29757
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
29716
|
-
import { z as
|
|
29758
|
+
import { z as z448 } from "zod";
|
|
29717
29759
|
|
|
29718
29760
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
29719
29761
|
import { z as z422 } from "zod";
|
|
@@ -30316,6 +30358,75 @@ var ConversionRecordV2ItemSchema = z429.object({
|
|
|
30316
30358
|
});
|
|
30317
30359
|
var ConversionRecordsV2OutputSchema = createPaginatedResponse(ConversionRecordV2ItemSchema);
|
|
30318
30360
|
|
|
30361
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.conversion-trigger-events.schema.ts
|
|
30362
|
+
import { z as z430 } from "zod";
|
|
30363
|
+
var CONVERSION_TRIGGER_EVENT_KIND_OPTIONS = ["published", "disabled", "republished"];
|
|
30364
|
+
var CONVERSION_TRIGGER_EVENTS_COLLECTION_FIELDS = {
|
|
30365
|
+
kind: enumField(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS, { facetable: true }),
|
|
30366
|
+
blockTimestamp: dateField()
|
|
30367
|
+
};
|
|
30368
|
+
var ConversionTriggerEventsV2InputSchema = createCollectionInputSchema(CONVERSION_TRIGGER_EVENTS_COLLECTION_FIELDS, {
|
|
30369
|
+
defaultSort: "-blockTimestamp",
|
|
30370
|
+
globalSearch: false
|
|
30371
|
+
});
|
|
30372
|
+
var ConversionTriggerEventV2ItemSchema = z430.object({
|
|
30373
|
+
triggerId: z430.string(),
|
|
30374
|
+
kind: z430.enum(CONVERSION_TRIGGER_EVENT_KIND_OPTIONS),
|
|
30375
|
+
eventIndex: z430.number().int().nonnegative(),
|
|
30376
|
+
denominationAsset: ethereumAddress.nullable(),
|
|
30377
|
+
roundPricePerShareWad: bigDecimal().nullable(),
|
|
30378
|
+
roundPricePerShareWadExact: apiBigInt.nullable(),
|
|
30379
|
+
expiresAt: timestamp().nullable(),
|
|
30380
|
+
metadataHash: z430.string().nullable(),
|
|
30381
|
+
blockNumber: apiBigInt,
|
|
30382
|
+
blockTimestamp: timestamp(),
|
|
30383
|
+
txHash: z430.string(),
|
|
30384
|
+
logIndex: z430.number().int().nonnegative()
|
|
30385
|
+
});
|
|
30386
|
+
var ConversionTriggerEventsV2OutputSchema = createPaginatedResponse(ConversionTriggerEventV2ItemSchema);
|
|
30387
|
+
|
|
30388
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.converts-to.schema.ts
|
|
30389
|
+
import { z as z431 } from "zod";
|
|
30390
|
+
var CONVERTS_TO_COLLECTION_FIELDS = {
|
|
30391
|
+
isAuthorized: booleanField({ facetable: true }),
|
|
30392
|
+
authorizedAt: dateField()
|
|
30393
|
+
};
|
|
30394
|
+
var ConvertsToV2InputSchema = createCollectionInputSchema(CONVERTS_TO_COLLECTION_FIELDS, {
|
|
30395
|
+
defaultSort: "-authorizedAt",
|
|
30396
|
+
globalSearch: false
|
|
30397
|
+
});
|
|
30398
|
+
var ConvertsToV2ItemSchema = z431.object({
|
|
30399
|
+
targetTokenAddress: ethereumAddress,
|
|
30400
|
+
conversionFeatureAddress: ethereumAddress.nullable(),
|
|
30401
|
+
minterFeatureAddress: ethereumAddress.nullable(),
|
|
30402
|
+
isAuthorized: z431.boolean(),
|
|
30403
|
+
authorizedAt: timestamp(),
|
|
30404
|
+
revokedAt: timestamp().nullable(),
|
|
30405
|
+
updatedAt: timestamp()
|
|
30406
|
+
});
|
|
30407
|
+
var ConvertsToV2OutputSchema = createPaginatedResponse(ConvertsToV2ItemSchema);
|
|
30408
|
+
|
|
30409
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.converted-from.schema.ts
|
|
30410
|
+
import { z as z432 } from "zod";
|
|
30411
|
+
var CONVERTED_FROM_COLLECTION_FIELDS = {
|
|
30412
|
+
isAuthorized: booleanField({ facetable: true }),
|
|
30413
|
+
authorizedAt: dateField()
|
|
30414
|
+
};
|
|
30415
|
+
var ConvertedFromV2InputSchema = createCollectionInputSchema(CONVERTED_FROM_COLLECTION_FIELDS, {
|
|
30416
|
+
defaultSort: "-authorizedAt",
|
|
30417
|
+
globalSearch: false
|
|
30418
|
+
});
|
|
30419
|
+
var ConvertedFromV2ItemSchema = z432.object({
|
|
30420
|
+
sourceTokenAddress: ethereumAddress,
|
|
30421
|
+
conversionFeatureAddress: ethereumAddress.nullable(),
|
|
30422
|
+
minterFeatureAddress: ethereumAddress.nullable(),
|
|
30423
|
+
isAuthorized: z432.boolean(),
|
|
30424
|
+
authorizedAt: timestamp(),
|
|
30425
|
+
revokedAt: timestamp().nullable(),
|
|
30426
|
+
updatedAt: timestamp()
|
|
30427
|
+
});
|
|
30428
|
+
var ConvertedFromV2OutputSchema = createPaginatedResponse(ConvertedFromV2ItemSchema);
|
|
30429
|
+
|
|
30319
30430
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.denomination-assets.schema.ts
|
|
30320
30431
|
var DenominationAssetV2ItemSchema = DenominationAssetListSchema.element;
|
|
30321
30432
|
var DENOMINATION_ASSETS_COLLECTION_FIELDS = {
|
|
@@ -30331,26 +30442,26 @@ var DenominationAssetsV2InputSchema = createCollectionInputSchema(DENOMINATION_A
|
|
|
30331
30442
|
var DenominationAssetsV2OutputSchema = createPaginatedResponse(DenominationAssetV2ItemSchema);
|
|
30332
30443
|
|
|
30333
30444
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.events.schema.ts
|
|
30334
|
-
import { z as
|
|
30335
|
-
var TokenEventV2ValueSchema =
|
|
30336
|
-
id:
|
|
30337
|
-
name:
|
|
30338
|
-
value:
|
|
30445
|
+
import { z as z433 } from "zod";
|
|
30446
|
+
var TokenEventV2ValueSchema = z433.object({
|
|
30447
|
+
id: z433.string().meta({ description: "Unique identifier for the parameter value", examples: ["evt_val_123"] }),
|
|
30448
|
+
name: z433.string().meta({ description: "Name of the event parameter", examples: ["from", "to", "amount"] }),
|
|
30449
|
+
value: z433.string().meta({
|
|
30339
30450
|
description: "Value of the event parameter (address, hex hash, decimal-string number, or arbitrary text)",
|
|
30340
30451
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F", "1000000000000000000"]
|
|
30341
30452
|
})
|
|
30342
30453
|
});
|
|
30343
|
-
var TokenEventV2ItemSchema =
|
|
30344
|
-
id:
|
|
30345
|
-
eventName:
|
|
30454
|
+
var TokenEventV2ItemSchema = z433.object({
|
|
30455
|
+
id: z433.string().meta({ description: "Unique identifier for the event", examples: ["evt_123abc"] }),
|
|
30456
|
+
eventName: z433.string().meta({
|
|
30346
30457
|
description: "The event name",
|
|
30347
30458
|
examples: ["TransferCompleted", "MintCompleted", "BurnCompleted"]
|
|
30348
30459
|
}),
|
|
30349
|
-
txIndex:
|
|
30460
|
+
txIndex: z433.string().meta({
|
|
30350
30461
|
description: "Log index within the transaction (string for parity with v1)",
|
|
30351
30462
|
examples: ["0", "1", "5"]
|
|
30352
30463
|
}),
|
|
30353
|
-
blockNumber:
|
|
30464
|
+
blockNumber: z433.string().meta({
|
|
30354
30465
|
description: "Block number when the event occurred (decimal string for bigint precision)",
|
|
30355
30466
|
examples: ["12345678", "20000000"]
|
|
30356
30467
|
}),
|
|
@@ -30362,19 +30473,19 @@ var TokenEventV2ItemSchema = z430.object({
|
|
|
30362
30473
|
description: "Transaction hash",
|
|
30363
30474
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]
|
|
30364
30475
|
}),
|
|
30365
|
-
emitter:
|
|
30476
|
+
emitter: z433.object({
|
|
30366
30477
|
id: ethereumAddress.meta({
|
|
30367
30478
|
description: "Address of the contract that emitted the event",
|
|
30368
30479
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30369
30480
|
})
|
|
30370
30481
|
}),
|
|
30371
|
-
sender:
|
|
30482
|
+
sender: z433.object({
|
|
30372
30483
|
id: ethereumAddress.meta({
|
|
30373
30484
|
description: "Address that triggered the event (account or sender, falling back to the contract address)",
|
|
30374
30485
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30375
30486
|
})
|
|
30376
30487
|
}),
|
|
30377
|
-
values:
|
|
30488
|
+
values: z433.array(TokenEventV2ValueSchema).meta({
|
|
30378
30489
|
description: "Event parameter values",
|
|
30379
30490
|
examples: []
|
|
30380
30491
|
})
|
|
@@ -30395,15 +30506,15 @@ var TokenEventsV2InputSchema = createCollectionInputSchema(TOKEN_EVENTS_COLLECTI
|
|
|
30395
30506
|
var TokenEventsV2OutputSchema = createPaginatedResponse(TokenEventV2ItemSchema);
|
|
30396
30507
|
|
|
30397
30508
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.transfer-approvals.schema.ts
|
|
30398
|
-
import { z as
|
|
30399
|
-
var TransferApprovalSchema =
|
|
30400
|
-
id:
|
|
30509
|
+
import { z as z434 } from "zod";
|
|
30510
|
+
var TransferApprovalSchema = z434.object({
|
|
30511
|
+
id: z434.string().meta({
|
|
30401
30512
|
description: "Unique approval ID: {moduleAddress}-{token}-{fromIdentity}-{toIdentity}-{value}",
|
|
30402
30513
|
examples: ["0xabc...-0xtoken...-0xfrom...-0xto...-1000000000000000000"]
|
|
30403
30514
|
}),
|
|
30404
|
-
token:
|
|
30405
|
-
fromIdentity:
|
|
30406
|
-
toIdentity:
|
|
30515
|
+
token: z434.object({ id: ethereumAddress }),
|
|
30516
|
+
fromIdentity: z434.object({ id: ethereumAddress }),
|
|
30517
|
+
toIdentity: z434.object({ id: ethereumAddress }),
|
|
30407
30518
|
value: assetAmount.meta({
|
|
30408
30519
|
description: "Approved transfer amount in base units",
|
|
30409
30520
|
examples: ["1000000000000000000"]
|
|
@@ -30413,7 +30524,7 @@ var TransferApprovalSchema = z431.object({
|
|
|
30413
30524
|
description: "Timestamp when approval expires. Epoch zero means no expiry.",
|
|
30414
30525
|
examples: ["0", "1893456000"]
|
|
30415
30526
|
}),
|
|
30416
|
-
status:
|
|
30527
|
+
status: z434.enum(["pending", "consumed", "revoked"]).meta({
|
|
30417
30528
|
description: "Current status of the approval",
|
|
30418
30529
|
examples: ["pending"]
|
|
30419
30530
|
}),
|
|
@@ -30426,17 +30537,17 @@ var TransferApprovalSchema = z431.object({
|
|
|
30426
30537
|
examples: ["2023-11-14T12:05:00.000Z"]
|
|
30427
30538
|
})
|
|
30428
30539
|
});
|
|
30429
|
-
var TransferApprovalsResponseSchema =
|
|
30430
|
-
transferApprovals:
|
|
30540
|
+
var TransferApprovalsResponseSchema = z434.object({
|
|
30541
|
+
transferApprovals: z434.array(TransferApprovalSchema).meta({
|
|
30431
30542
|
description: "List of transfer approvals ordered by creation time descending",
|
|
30432
30543
|
examples: []
|
|
30433
30544
|
}),
|
|
30434
|
-
totalCount:
|
|
30545
|
+
totalCount: z434.number().int().nonnegative().meta({
|
|
30435
30546
|
description: "Total number of transfer approvals for this token",
|
|
30436
30547
|
examples: [3]
|
|
30437
30548
|
})
|
|
30438
30549
|
});
|
|
30439
|
-
var TransferApprovalsInputSchema =
|
|
30550
|
+
var TransferApprovalsInputSchema = z434.object({
|
|
30440
30551
|
tokenAddress: ethereumAddress.meta({
|
|
30441
30552
|
description: "The token contract address",
|
|
30442
30553
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30444,20 +30555,20 @@ var TransferApprovalsInputSchema = z431.object({
|
|
|
30444
30555
|
});
|
|
30445
30556
|
|
|
30446
30557
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.price.schema.ts
|
|
30447
|
-
import { z as
|
|
30448
|
-
var TokenPriceInputParamsSchema =
|
|
30558
|
+
import { z as z435 } from "zod";
|
|
30559
|
+
var TokenPriceInputParamsSchema = z435.object({
|
|
30449
30560
|
tokenAddress: ethereumAddress.meta({
|
|
30450
30561
|
description: "The token contract address",
|
|
30451
30562
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30452
30563
|
})
|
|
30453
30564
|
});
|
|
30454
|
-
var TokenPriceInputQuerySchema =
|
|
30565
|
+
var TokenPriceInputQuerySchema = z435.object({
|
|
30455
30566
|
currency: fiatCurrency().default("USD").meta({
|
|
30456
30567
|
description: "Target ISO 4217 currency code for price conversion",
|
|
30457
30568
|
examples: ["USD", "EUR", "GBP", "AED"]
|
|
30458
30569
|
})
|
|
30459
30570
|
});
|
|
30460
|
-
var ConversionHopSchema =
|
|
30571
|
+
var ConversionHopSchema = z435.object({
|
|
30461
30572
|
from: fiatCurrency().meta({
|
|
30462
30573
|
description: "Source currency of this hop",
|
|
30463
30574
|
examples: ["AED"]
|
|
@@ -30466,7 +30577,7 @@ var ConversionHopSchema = z432.object({
|
|
|
30466
30577
|
description: "Target currency of this hop",
|
|
30467
30578
|
examples: ["USD"]
|
|
30468
30579
|
}),
|
|
30469
|
-
rate:
|
|
30580
|
+
rate: z435.string().meta({
|
|
30470
30581
|
description: "Exchange rate (18-decimal string)",
|
|
30471
30582
|
examples: ["272300000000000000"]
|
|
30472
30583
|
}),
|
|
@@ -30478,17 +30589,17 @@ var ConversionHopSchema = z432.object({
|
|
|
30478
30589
|
description: "When the feed was last updated",
|
|
30479
30590
|
examples: ["2024-03-22T12:00:00.000Z"]
|
|
30480
30591
|
}),
|
|
30481
|
-
inverse:
|
|
30592
|
+
inverse: z435.boolean().meta({
|
|
30482
30593
|
description: "Whether this hop uses an inverse rate (1/rate of the registered feed)",
|
|
30483
30594
|
examples: [false]
|
|
30484
30595
|
})
|
|
30485
30596
|
});
|
|
30486
|
-
var TokenPriceResponseSchema =
|
|
30597
|
+
var TokenPriceResponseSchema = z435.object({
|
|
30487
30598
|
tokenAddress: ethereumAddress.meta({
|
|
30488
30599
|
description: "The token contract address",
|
|
30489
30600
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30490
30601
|
}),
|
|
30491
|
-
price:
|
|
30602
|
+
price: z435.string().meta({
|
|
30492
30603
|
description: "The resolved price as a decimal string (18-decimal normalized)",
|
|
30493
30604
|
examples: ["27230000000000000000"]
|
|
30494
30605
|
}),
|
|
@@ -30496,11 +30607,11 @@ var TokenPriceResponseSchema = z432.object({
|
|
|
30496
30607
|
description: "The currency of the returned price",
|
|
30497
30608
|
examples: ["USD"]
|
|
30498
30609
|
}),
|
|
30499
|
-
decimals:
|
|
30610
|
+
decimals: z435.number().meta({
|
|
30500
30611
|
description: "Decimal precision of the price (always 18)",
|
|
30501
30612
|
examples: [18]
|
|
30502
30613
|
}),
|
|
30503
|
-
source:
|
|
30614
|
+
source: z435.enum(["feed", "claim"]).meta({
|
|
30504
30615
|
description: "Whether the base price came from a feed or identity claim",
|
|
30505
30616
|
examples: ["feed"]
|
|
30506
30617
|
}),
|
|
@@ -30508,7 +30619,7 @@ var TokenPriceResponseSchema = z432.object({
|
|
|
30508
30619
|
description: "The native currency of the base price before conversion",
|
|
30509
30620
|
examples: ["AED"]
|
|
30510
30621
|
}),
|
|
30511
|
-
convertible:
|
|
30622
|
+
convertible: z435.boolean().meta({
|
|
30512
30623
|
description: "Whether the price was successfully converted to the target currency",
|
|
30513
30624
|
examples: [true]
|
|
30514
30625
|
}),
|
|
@@ -30516,15 +30627,15 @@ var TokenPriceResponseSchema = z432.object({
|
|
|
30516
30627
|
description: "The requested target currency (only present when convertible is false)",
|
|
30517
30628
|
examples: ["USD"]
|
|
30518
30629
|
}),
|
|
30519
|
-
reason:
|
|
30630
|
+
reason: z435.string().optional().meta({
|
|
30520
30631
|
description: "Reason for conversion failure (only present when convertible is false)",
|
|
30521
30632
|
examples: ["no_fx_path"]
|
|
30522
30633
|
}),
|
|
30523
|
-
message:
|
|
30634
|
+
message: z435.string().optional().meta({
|
|
30524
30635
|
description: "Human-readable explanation (only present when convertible is false)",
|
|
30525
30636
|
examples: ["No conversion path from AED to USD. Register FX feeds for intermediate pairs."]
|
|
30526
30637
|
}),
|
|
30527
|
-
availableCurrencies:
|
|
30638
|
+
availableCurrencies: z435.array(fiatCurrency()).optional().meta({
|
|
30528
30639
|
description: "Currencies reachable from the source currency (only present when convertible is false)",
|
|
30529
30640
|
examples: [["AED", "EUR"]]
|
|
30530
30641
|
}),
|
|
@@ -30532,7 +30643,7 @@ var TokenPriceResponseSchema = z432.object({
|
|
|
30532
30643
|
description: "When the price data was last updated (ISO 8601)",
|
|
30533
30644
|
examples: ["2026-03-22T10:30:00.000Z"]
|
|
30534
30645
|
}),
|
|
30535
|
-
conversionPath:
|
|
30646
|
+
conversionPath: z435.array(ConversionHopSchema).meta({
|
|
30536
30647
|
description: "The FX conversion hops applied (empty if no conversion needed)",
|
|
30537
30648
|
examples: [[]]
|
|
30538
30649
|
})
|
|
@@ -30548,24 +30659,30 @@ var HOLDER_COLLECTION_FIELDS = {
|
|
|
30548
30659
|
var HoldersV2InputSchema = createCollectionInputSchema(HOLDER_COLLECTION_FIELDS, {
|
|
30549
30660
|
defaultSort: "-lastUpdatedAt"
|
|
30550
30661
|
});
|
|
30551
|
-
var
|
|
30662
|
+
var HoldersV2EntrySchema = assetBalance().extend({
|
|
30663
|
+
transferableBalance: bigDecimal().meta({
|
|
30664
|
+
description: "`balanceOf` minus principal already converted via a ConversionFeature. Equals `balanceOf` (i.e. `value`) when no conversion feature is attached or when no conversions have occurred for this holder.",
|
|
30665
|
+
examples: ["1000000000000000000", "0"]
|
|
30666
|
+
})
|
|
30667
|
+
});
|
|
30668
|
+
var HoldersV2OutputSchema = createPaginatedResponse(HoldersV2EntrySchema);
|
|
30552
30669
|
|
|
30553
30670
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.participant-roles-view.contract.ts
|
|
30554
|
-
import { z as
|
|
30671
|
+
import { z as z437 } from "zod";
|
|
30555
30672
|
|
|
30556
30673
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.participant-roles-view.schema.ts
|
|
30557
|
-
import { z as
|
|
30558
|
-
var TokenParticipantRolesViewItemSchema =
|
|
30559
|
-
participantId:
|
|
30560
|
-
displayName:
|
|
30674
|
+
import { z as z436 } from "zod";
|
|
30675
|
+
var TokenParticipantRolesViewItemSchema = z436.object({
|
|
30676
|
+
participantId: z436.string().nullable(),
|
|
30677
|
+
displayName: z436.string(),
|
|
30561
30678
|
signingAddress: ethereumAddress.nullable(),
|
|
30562
30679
|
operationsAddress: ethereumAddress.nullable(),
|
|
30563
30680
|
accountAddress: ethereumAddress.nullable(),
|
|
30564
|
-
isContract:
|
|
30565
|
-
eoaRoles:
|
|
30566
|
-
smartWalletRoles:
|
|
30567
|
-
missingRoles:
|
|
30568
|
-
drift:
|
|
30681
|
+
isContract: z436.boolean(),
|
|
30682
|
+
eoaRoles: z436.array(assetAccessControlRole),
|
|
30683
|
+
smartWalletRoles: z436.array(assetAccessControlRole),
|
|
30684
|
+
missingRoles: z436.array(assetAccessControlRole),
|
|
30685
|
+
drift: z436.boolean()
|
|
30569
30686
|
});
|
|
30570
30687
|
var TOKEN_PARTICIPANT_ROLES_VIEW_COLLECTION_FIELDS = {
|
|
30571
30688
|
participantId: textField({ sortable: true, defaultOperator: "iLike" }),
|
|
@@ -30592,7 +30709,7 @@ var participantRolesView2 = v2Contract.route({
|
|
|
30592
30709
|
description: "List participant role assignments for a token across signing and operations addresses.",
|
|
30593
30710
|
successDescription: "Paginated token participant role assignments retrieved successfully.",
|
|
30594
30711
|
tags: [V2_TAG.token]
|
|
30595
|
-
}).input(v2Input.paramsQuery(
|
|
30712
|
+
}).input(v2Input.paramsQuery(z437.object({
|
|
30596
30713
|
tokenAddress: ethereumAddress.meta({
|
|
30597
30714
|
description: "The token contract address",
|
|
30598
30715
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30600,7 +30717,7 @@ var participantRolesView2 = v2Contract.route({
|
|
|
30600
30717
|
}), TokenParticipantRolesViewV2InputSchema)).output(TokenParticipantRolesViewV2OutputSchema);
|
|
30601
30718
|
|
|
30602
30719
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balances.schema.ts
|
|
30603
|
-
import { z as
|
|
30720
|
+
import { z as z438 } from "zod";
|
|
30604
30721
|
var HISTORICAL_BALANCE_KIND_OPTIONS = ["account", "totalSupply"];
|
|
30605
30722
|
var TOKEN_HISTORICAL_BALANCES_COLLECTION_FIELDS = {
|
|
30606
30723
|
account: addressField({ defaultOperator: "eq" }),
|
|
@@ -30625,10 +30742,10 @@ var TokenHistoricalBalancesV2InputSchema = createCollectionInputSchema(TOKEN_HIS
|
|
|
30625
30742
|
}
|
|
30626
30743
|
}
|
|
30627
30744
|
});
|
|
30628
|
-
var TokenHistoricalBalanceV2ItemSchema =
|
|
30629
|
-
id:
|
|
30745
|
+
var TokenHistoricalBalanceV2ItemSchema = z438.object({
|
|
30746
|
+
id: z438.string().uuid(),
|
|
30630
30747
|
account: ethereumAddress,
|
|
30631
|
-
kind:
|
|
30748
|
+
kind: z438.enum(HISTORICAL_BALANCE_KIND_OPTIONS),
|
|
30632
30749
|
sender: ethereumAddress,
|
|
30633
30750
|
oldBalance: bigDecimal(),
|
|
30634
30751
|
oldBalanceExact: apiBigInt,
|
|
@@ -30637,14 +30754,14 @@ var TokenHistoricalBalanceV2ItemSchema = z435.object({
|
|
|
30637
30754
|
blockNumber: apiBigInt,
|
|
30638
30755
|
blockTimestamp: timestamp(),
|
|
30639
30756
|
txHash: ethereumHash,
|
|
30640
|
-
logIndex:
|
|
30757
|
+
logIndex: z438.number().int().nonnegative()
|
|
30641
30758
|
});
|
|
30642
30759
|
var TokenHistoricalBalancesV2OutputSchema = createPaginatedResponse(TokenHistoricalBalanceV2ItemSchema);
|
|
30643
|
-
var strictHistoricalLookup =
|
|
30760
|
+
var strictHistoricalLookup = z438.union([z438.boolean(), z438.enum(["true", "false"]).transform((value3) => value3 === "true")]).optional().default(true);
|
|
30644
30761
|
var historicalTimepoint = apiBigInt.refine((value3) => value3 >= 0n, {
|
|
30645
30762
|
message: "timepoint must be greater than or equal to 0"
|
|
30646
30763
|
});
|
|
30647
|
-
var TokenHistoricalBalanceAtBlockV2InputQuerySchema =
|
|
30764
|
+
var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z438.object({
|
|
30648
30765
|
account: ethereumAddress.meta({
|
|
30649
30766
|
description: "Holder account to read from the historical-balances feature",
|
|
30650
30767
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30658,7 +30775,7 @@ var TokenHistoricalBalanceAtBlockV2InputQuerySchema = z435.object({
|
|
|
30658
30775
|
examples: [true]
|
|
30659
30776
|
})
|
|
30660
30777
|
});
|
|
30661
|
-
var TokenHistoricalBalanceAtBlockV2DataSchema =
|
|
30778
|
+
var TokenHistoricalBalanceAtBlockV2DataSchema = z438.object({
|
|
30662
30779
|
account: ethereumAddress,
|
|
30663
30780
|
balance: bigDecimal(),
|
|
30664
30781
|
balanceExact: apiBigInt,
|
|
@@ -30673,12 +30790,12 @@ var TOKEN_HISTORICAL_HOLDERS_AT_BLOCK_COLLECTION_FIELDS = {
|
|
|
30673
30790
|
balance: bigintField({ filterable: false }),
|
|
30674
30791
|
lastUpdatedAt: dateField({ filterable: false })
|
|
30675
30792
|
};
|
|
30676
|
-
var TokenHistoricalHoldersAtBlockV2InputSchema =
|
|
30677
|
-
sortBy:
|
|
30678
|
-
sortDirection:
|
|
30679
|
-
offset:
|
|
30680
|
-
limit:
|
|
30681
|
-
filters:
|
|
30793
|
+
var TokenHistoricalHoldersAtBlockV2InputSchema = z438.object({
|
|
30794
|
+
sortBy: z438.enum(["accountAddress", "balance", "lastUpdatedAt"]).default("balance"),
|
|
30795
|
+
sortDirection: z438.enum(["asc", "desc"]).default("desc"),
|
|
30796
|
+
offset: z438.coerce.number().int().nonnegative().default(0),
|
|
30797
|
+
limit: z438.coerce.number().int().positive().max(200).default(50),
|
|
30798
|
+
filters: z438.array(DataTableFilterSchema).default([]),
|
|
30682
30799
|
timepoint: historicalTimepoint.meta({
|
|
30683
30800
|
description: "Historical feature clock timepoint, expressed as Unix seconds for timestamp-mode tokens",
|
|
30684
30801
|
examples: ["1767225600"]
|
|
@@ -30691,8 +30808,8 @@ var TokenHistoricalHoldersAtBlockV2InputSchema = z435.object({
|
|
|
30691
30808
|
var TokenHistoricalHoldersAtBlockV2OutputSchema = createPaginatedResponse(assetBalance());
|
|
30692
30809
|
|
|
30693
30810
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.historical-balance-at-block.schema.ts
|
|
30694
|
-
import { z as
|
|
30695
|
-
var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema =
|
|
30811
|
+
import { z as z439 } from "zod";
|
|
30812
|
+
var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z439.object({
|
|
30696
30813
|
tokenAddress: ethereumAddress.meta({
|
|
30697
30814
|
description: "The token contract address",
|
|
30698
30815
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30702,13 +30819,13 @@ var TokenHistoricalBalanceAtBlockByHolderV2InputParamsSchema = z436.object({
|
|
|
30702
30819
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30703
30820
|
})
|
|
30704
30821
|
});
|
|
30705
|
-
var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema =
|
|
30706
|
-
atBlock:
|
|
30822
|
+
var TokenHistoricalBalanceAtBlockByHolderV2InputQuerySchema = z439.object({
|
|
30823
|
+
atBlock: z439.coerce.bigint().positive().meta({
|
|
30707
30824
|
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.",
|
|
30708
30825
|
examples: ["21040117"]
|
|
30709
30826
|
})
|
|
30710
30827
|
});
|
|
30711
|
-
var TokenHistoricalBalanceAtBlockByHolderV2DataSchema =
|
|
30828
|
+
var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z439.object({
|
|
30712
30829
|
tokenAddress: ethereumAddress,
|
|
30713
30830
|
holderAddress: ethereumAddress,
|
|
30714
30831
|
balance: bigDecimal(),
|
|
@@ -30716,13 +30833,13 @@ var TokenHistoricalBalanceAtBlockByHolderV2DataSchema = z436.object({
|
|
|
30716
30833
|
asOfBlockNumber: apiBigInt,
|
|
30717
30834
|
asOfBlockTimestamp: timestamp().nullable(),
|
|
30718
30835
|
asOfTxHash: ethereumHash.nullable(),
|
|
30719
|
-
asOfLogIndex:
|
|
30836
|
+
asOfLogIndex: z439.number().int().nonnegative().nullable(),
|
|
30720
30837
|
requestedBlock: apiBigInt
|
|
30721
30838
|
});
|
|
30722
30839
|
var TokenHistoricalBalanceAtBlockByHolderV2OutputSchema = createSingleResponse(TokenHistoricalBalanceAtBlockByHolderV2DataSchema);
|
|
30723
30840
|
|
|
30724
30841
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.transaction-fee-collections.list.schema.ts
|
|
30725
|
-
import { z as
|
|
30842
|
+
import { z as z440 } from "zod";
|
|
30726
30843
|
var OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "redeem"];
|
|
30727
30844
|
var TOKEN_TRANSACTION_FEE_COLLECTIONS_COLLECTION_FIELDS = {
|
|
30728
30845
|
collectedAt: dateField(),
|
|
@@ -30735,21 +30852,21 @@ var TokenTransactionFeeCollectionsV2InputSchema = createCollectionInputSchema(TO
|
|
|
30735
30852
|
defaultSort: "-collectedAt",
|
|
30736
30853
|
globalSearch: false
|
|
30737
30854
|
});
|
|
30738
|
-
var TokenTransactionFeeCollectionV2ItemSchema =
|
|
30739
|
-
id:
|
|
30855
|
+
var TokenTransactionFeeCollectionV2ItemSchema = z440.object({
|
|
30856
|
+
id: z440.string().uuid(),
|
|
30740
30857
|
counterpartyAddress: ethereumAddress,
|
|
30741
|
-
operationType:
|
|
30858
|
+
operationType: z440.enum(OPERATION_TYPE_OPTIONS),
|
|
30742
30859
|
feeAmount: bigDecimal(),
|
|
30743
30860
|
feeAmountExact: apiBigInt,
|
|
30744
30861
|
blockNumber: apiBigInt,
|
|
30745
30862
|
blockTimestamp: timestamp(),
|
|
30746
30863
|
txHash: ethereumHash,
|
|
30747
|
-
logIndex:
|
|
30864
|
+
logIndex: z440.number().int().nonnegative()
|
|
30748
30865
|
});
|
|
30749
30866
|
var TokenTransactionFeeCollectionsV2OutputSchema = createPaginatedResponse(TokenTransactionFeeCollectionV2ItemSchema);
|
|
30750
30867
|
|
|
30751
30868
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-events.list.schema.ts
|
|
30752
|
-
import { z as
|
|
30869
|
+
import { z as z441 } from "zod";
|
|
30753
30870
|
var FEE_ACCRUAL_OPERATION_TYPE_OPTIONS = [...OPERATION_TYPE_OPTIONS, "unknown"];
|
|
30754
30871
|
var TOKEN_FEE_ACCRUAL_EVENTS_COLLECTION_FIELDS = {
|
|
30755
30872
|
accruedAt: dateField(),
|
|
@@ -30765,56 +30882,56 @@ var TokenFeeAccrualEventsV2InputSchema = createCollectionInputSchema(TOKEN_FEE_A
|
|
|
30765
30882
|
defaultSort: "-accruedAt",
|
|
30766
30883
|
globalSearch: false
|
|
30767
30884
|
});
|
|
30768
|
-
var TokenFeeAccrualEventV2ItemSchema =
|
|
30769
|
-
id:
|
|
30885
|
+
var TokenFeeAccrualEventV2ItemSchema = z441.object({
|
|
30886
|
+
id: z441.uuid(),
|
|
30770
30887
|
payer: ethereumAddress,
|
|
30771
30888
|
fromAddress: ethereumAddress,
|
|
30772
30889
|
toAddress: ethereumAddress,
|
|
30773
|
-
operationType:
|
|
30890
|
+
operationType: z441.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
|
|
30774
30891
|
operationAmount: bigDecimal(),
|
|
30775
30892
|
operationAmountExact: apiBigInt,
|
|
30776
|
-
feeBps:
|
|
30893
|
+
feeBps: z441.number().int().nonnegative(),
|
|
30777
30894
|
feeAmount: bigDecimal(),
|
|
30778
30895
|
feeAmountExact: apiBigInt,
|
|
30779
30896
|
blockNumber: apiBigInt,
|
|
30780
30897
|
blockTimestamp: timestamp(),
|
|
30781
30898
|
eventTimestamp: timestamp(),
|
|
30782
30899
|
txHash: ethereumHash,
|
|
30783
|
-
logIndex:
|
|
30900
|
+
logIndex: z441.number().int().nonnegative()
|
|
30784
30901
|
});
|
|
30785
30902
|
var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
|
|
30786
30903
|
|
|
30787
30904
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-payer.schema.ts
|
|
30788
|
-
import { z as
|
|
30789
|
-
var TokenFeeAccrualPayerV2InputSchema =
|
|
30905
|
+
import { z as z442 } from "zod";
|
|
30906
|
+
var TokenFeeAccrualPayerV2InputSchema = z442.object({
|
|
30790
30907
|
payer: ethereumAddress.meta({
|
|
30791
30908
|
description: "Payer address whose accrued fees to summarise.",
|
|
30792
30909
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30793
30910
|
})
|
|
30794
30911
|
});
|
|
30795
|
-
var TokenFeeAccrualPayerBreakdownItemSchema =
|
|
30796
|
-
operationType:
|
|
30797
|
-
eventCount:
|
|
30912
|
+
var TokenFeeAccrualPayerBreakdownItemSchema = z442.object({
|
|
30913
|
+
operationType: z442.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
|
|
30914
|
+
eventCount: z442.number().int().nonnegative(),
|
|
30798
30915
|
totalOperationAmount: bigDecimal(),
|
|
30799
30916
|
totalOperationAmountExact: apiBigInt,
|
|
30800
30917
|
totalFeeAmount: bigDecimal(),
|
|
30801
30918
|
totalFeeAmountExact: apiBigInt
|
|
30802
30919
|
});
|
|
30803
|
-
var TokenFeeAccrualPayerV2OutputSchema =
|
|
30804
|
-
data:
|
|
30920
|
+
var TokenFeeAccrualPayerV2OutputSchema = z442.object({
|
|
30921
|
+
data: z442.object({
|
|
30805
30922
|
payer: ethereumAddress,
|
|
30806
|
-
totalEvents:
|
|
30923
|
+
totalEvents: z442.number().int().nonnegative(),
|
|
30807
30924
|
totalFeeAmount: bigDecimal(),
|
|
30808
30925
|
totalFeeAmountExact: apiBigInt,
|
|
30809
30926
|
totalOperationAmount: bigDecimal(),
|
|
30810
30927
|
totalOperationAmountExact: apiBigInt,
|
|
30811
|
-
breakdown:
|
|
30812
|
-
recentEvents:
|
|
30928
|
+
breakdown: z442.array(TokenFeeAccrualPayerBreakdownItemSchema),
|
|
30929
|
+
recentEvents: z442.array(TokenFeeAccrualEventV2ItemSchema)
|
|
30813
30930
|
})
|
|
30814
30931
|
});
|
|
30815
30932
|
|
|
30816
30933
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
|
|
30817
|
-
import { z as
|
|
30934
|
+
import { z as z443 } from "zod";
|
|
30818
30935
|
var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
|
|
30819
30936
|
var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
|
|
30820
30937
|
collectedAt: dateField(),
|
|
@@ -30828,22 +30945,22 @@ var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(
|
|
|
30828
30945
|
defaultSort: "-collectedAt",
|
|
30829
30946
|
globalSearch: false
|
|
30830
30947
|
});
|
|
30831
|
-
var TokenExternalFeeCollectionEventV2ItemSchema =
|
|
30832
|
-
id:
|
|
30948
|
+
var TokenExternalFeeCollectionEventV2ItemSchema = z443.object({
|
|
30949
|
+
id: z443.uuid(),
|
|
30833
30950
|
payer: ethereumAddress,
|
|
30834
30951
|
feeToken: ethereumAddress,
|
|
30835
|
-
operationType:
|
|
30952
|
+
operationType: z443.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
|
|
30836
30953
|
feeAmount: bigDecimal(),
|
|
30837
30954
|
feeAmountExact: apiBigInt,
|
|
30838
30955
|
blockNumber: apiBigInt,
|
|
30839
30956
|
blockTimestamp: timestamp(),
|
|
30840
30957
|
txHash: ethereumHash,
|
|
30841
|
-
logIndex:
|
|
30958
|
+
logIndex: z443.number().int().nonnegative()
|
|
30842
30959
|
});
|
|
30843
30960
|
var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
|
|
30844
30961
|
|
|
30845
30962
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.feature-permit-replay-history.schema.ts
|
|
30846
|
-
import { z as
|
|
30963
|
+
import { z as z444 } from "zod";
|
|
30847
30964
|
var PERMIT_REPLAY_HISTORY_COLLECTION_FIELDS = {
|
|
30848
30965
|
blockTime: dateField()
|
|
30849
30966
|
};
|
|
@@ -30851,7 +30968,7 @@ var TokenFeaturePermitReplayHistoryV2InputSchema = createCollectionInputSchema(P
|
|
|
30851
30968
|
defaultSort: "-blockTime",
|
|
30852
30969
|
globalSearch: false
|
|
30853
30970
|
});
|
|
30854
|
-
var TokenFeaturePermitReplayHistoryV2ItemSchema =
|
|
30971
|
+
var TokenFeaturePermitReplayHistoryV2ItemSchema = z444.object({
|
|
30855
30972
|
nonce: apiBigInt.meta({
|
|
30856
30973
|
description: "Per-owner sequence number derived from the count of prior projection rows for the same (chainId, tokenAddress, owner) tuple.",
|
|
30857
30974
|
examples: ["0"]
|
|
@@ -30883,10 +31000,10 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
|
|
|
30883
31000
|
var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
|
|
30884
31001
|
|
|
30885
31002
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.treasury-health.schema.ts
|
|
30886
|
-
import { z as
|
|
31003
|
+
import { z as z445 } from "zod";
|
|
30887
31004
|
var TreasuryHealthInputSchema = TokenReadInputSchema;
|
|
30888
|
-
var TreasuryHealthApprovalSchema =
|
|
30889
|
-
kind:
|
|
31005
|
+
var TreasuryHealthApprovalSchema = z445.object({
|
|
31006
|
+
kind: z445.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
|
|
30890
31007
|
description: "Which feature this approval row gates.",
|
|
30891
31008
|
examples: ["maturity-redemption"]
|
|
30892
31009
|
}),
|
|
@@ -30910,21 +31027,21 @@ var TreasuryHealthApprovalSchema = z442.object({
|
|
|
30910
31027
|
description: "Required allowance ceiling for the feature, scaled by denomination asset decimals.",
|
|
30911
31028
|
examples: ["1000.00"]
|
|
30912
31029
|
}),
|
|
30913
|
-
satisfied:
|
|
31030
|
+
satisfied: z445.boolean().meta({
|
|
30914
31031
|
description: "True when the indexed allowance is greater than or equal to the required ceiling.",
|
|
30915
31032
|
examples: [true, false]
|
|
30916
31033
|
})
|
|
30917
31034
|
});
|
|
30918
|
-
var TreasuryHealthImplementationSchema =
|
|
30919
|
-
treasuryIsContract:
|
|
31035
|
+
var TreasuryHealthImplementationSchema = z445.object({
|
|
31036
|
+
treasuryIsContract: z445.boolean().nullable().meta({
|
|
30920
31037
|
description: "Whether the configured treasury address is a contract (`true`), an EOA (`false`), or has not yet been classified by the indexer (`null`).",
|
|
30921
31038
|
examples: [false, true, null]
|
|
30922
31039
|
})
|
|
30923
31040
|
}).nullable().meta({
|
|
30924
31041
|
description: "Treasury implementation classification. `null` when no maturity / yield feature is attached."
|
|
30925
31042
|
});
|
|
30926
|
-
var TreasuryHealthResponseSchema =
|
|
30927
|
-
approvals:
|
|
31043
|
+
var TreasuryHealthResponseSchema = z445.object({
|
|
31044
|
+
approvals: z445.array(TreasuryHealthApprovalSchema).meta({
|
|
30928
31045
|
description: "Per-feature approval rows. Empty when the token has neither a maturity-redemption nor a fixed-treasury-yield feature attached."
|
|
30929
31046
|
}),
|
|
30930
31047
|
implementation: TreasuryHealthImplementationSchema,
|
|
@@ -30936,11 +31053,11 @@ var TreasuryHealthResponseSchema = z442.object({
|
|
|
30936
31053
|
description: "Projected next-period denomination need (next scheduled redemption / unclaimed yield), scaled by denomination asset decimals. Used to set the `yellow` threshold.",
|
|
30937
31054
|
examples: ["1000.00"]
|
|
30938
31055
|
}),
|
|
30939
|
-
status:
|
|
31056
|
+
status: z445.enum(["green", "yellow", "red"]).meta({
|
|
30940
31057
|
description: "Badge status. `green` = approvals satisfy ceilings AND balance covers projected need. `yellow` = approvals satisfy but balance is below projected need. `red` = at least one approval is below its ceiling.",
|
|
30941
31058
|
examples: ["green", "yellow", "red"]
|
|
30942
31059
|
}),
|
|
30943
|
-
reason:
|
|
31060
|
+
reason: z445.string().nullable().meta({
|
|
30944
31061
|
description: "Human-readable reason for the non-green status. `null` for `green`.",
|
|
30945
31062
|
examples: ["balance below projected", "approval below ceiling", null]
|
|
30946
31063
|
}),
|
|
@@ -30951,7 +31068,7 @@ var TreasuryHealthResponseSchema = z442.object({
|
|
|
30951
31068
|
});
|
|
30952
31069
|
|
|
30953
31070
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
|
|
30954
|
-
import { z as
|
|
31071
|
+
import { z as z446 } from "zod";
|
|
30955
31072
|
var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
|
|
30956
31073
|
account: addressField({ defaultOperator: "iLike" }),
|
|
30957
31074
|
delegate: addressField({ defaultOperator: "iLike" }),
|
|
@@ -30965,49 +31082,49 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
|
|
|
30965
31082
|
defaultSort: "-delegatedAt",
|
|
30966
31083
|
globalSearch: false
|
|
30967
31084
|
});
|
|
30968
|
-
var VotingDelegationV2ItemSchema =
|
|
30969
|
-
id:
|
|
31085
|
+
var VotingDelegationV2ItemSchema = z446.object({
|
|
31086
|
+
id: z446.string().uuid(),
|
|
30970
31087
|
delegator: ethereumAddress,
|
|
30971
31088
|
fromDelegate: ethereumAddress.nullable(),
|
|
30972
31089
|
toDelegate: ethereumAddress,
|
|
30973
31090
|
delegatedAt: timestamp(),
|
|
30974
31091
|
delegatedBlockNumber: apiBigInt,
|
|
30975
31092
|
delegatedTxHash: ethereumHash,
|
|
30976
|
-
delegatedLogIndex:
|
|
31093
|
+
delegatedLogIndex: z446.number().int().nonnegative(),
|
|
30977
31094
|
undelegatedAt: timestamp().nullable(),
|
|
30978
31095
|
undelegatedBlockNumber: apiBigInt.nullable(),
|
|
30979
31096
|
undelegatedTxHash: ethereumHash.nullable(),
|
|
30980
|
-
undelegatedLogIndex:
|
|
30981
|
-
isActive:
|
|
31097
|
+
undelegatedLogIndex: z446.number().int().nonnegative().nullable(),
|
|
31098
|
+
isActive: z446.boolean()
|
|
30982
31099
|
});
|
|
30983
31100
|
var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
|
|
30984
31101
|
|
|
30985
31102
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-power-distribution.schema.ts
|
|
30986
|
-
import { z as
|
|
31103
|
+
import { z as z447 } from "zod";
|
|
30987
31104
|
var DEFAULT_TOP_N = 50;
|
|
30988
31105
|
var MAX_TOP_N = 200;
|
|
30989
|
-
var VotingPowerDistributionV2InputSchema =
|
|
30990
|
-
topN:
|
|
31106
|
+
var VotingPowerDistributionV2InputSchema = z447.object({
|
|
31107
|
+
topN: z447.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
|
|
30991
31108
|
description: `Number of top holders to return individually (1-${MAX_TOP_N}). Remaining holders aggregate into the "other" bucket.`,
|
|
30992
31109
|
examples: [DEFAULT_TOP_N]
|
|
30993
31110
|
})
|
|
30994
31111
|
});
|
|
30995
|
-
var VotingPowerDistributionHolderSchema =
|
|
31112
|
+
var VotingPowerDistributionHolderSchema = z447.object({
|
|
30996
31113
|
account: ethereumAddress,
|
|
30997
|
-
votes:
|
|
31114
|
+
votes: z447.string(),
|
|
30998
31115
|
votesExact: apiBigInt
|
|
30999
31116
|
});
|
|
31000
|
-
var VotingPowerDistributionOtherSchema =
|
|
31001
|
-
holders:
|
|
31002
|
-
votes:
|
|
31117
|
+
var VotingPowerDistributionOtherSchema = z447.object({
|
|
31118
|
+
holders: z447.number().int().nonnegative(),
|
|
31119
|
+
votes: z447.string(),
|
|
31003
31120
|
votesExact: apiBigInt
|
|
31004
31121
|
});
|
|
31005
|
-
var VotingPowerDistributionV2DataSchema =
|
|
31006
|
-
total:
|
|
31007
|
-
topN:
|
|
31008
|
-
totalVotes:
|
|
31122
|
+
var VotingPowerDistributionV2DataSchema = z447.object({
|
|
31123
|
+
total: z447.number().int().nonnegative(),
|
|
31124
|
+
topN: z447.number().int().nonnegative(),
|
|
31125
|
+
totalVotes: z447.string(),
|
|
31009
31126
|
totalVotesExact: apiBigInt,
|
|
31010
|
-
holders:
|
|
31127
|
+
holders: z447.array(VotingPowerDistributionHolderSchema),
|
|
31011
31128
|
other: VotingPowerDistributionOtherSchema
|
|
31012
31129
|
});
|
|
31013
31130
|
var VotingPowerDistributionV2OutputSchema = createSingleResponse(VotingPowerDistributionV2DataSchema);
|
|
@@ -31026,21 +31143,21 @@ var allowance = v2Contract.route({
|
|
|
31026
31143
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
31027
31144
|
successDescription: "Token allowance details retrieved successfully.",
|
|
31028
31145
|
tags: [V2_TAG.token]
|
|
31029
|
-
}).input(v2Input.paramsQuery(
|
|
31146
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z448.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
31030
31147
|
var holder = v2Contract.route({
|
|
31031
31148
|
method: "GET",
|
|
31032
31149
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
31033
31150
|
description: "Get a specific token holder's balance information.",
|
|
31034
31151
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
31035
31152
|
tags: [V2_TAG.token]
|
|
31036
|
-
}).input(v2Input.paramsQuery(
|
|
31153
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z448.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
31037
31154
|
var holders = v2Contract.route({
|
|
31038
31155
|
method: "GET",
|
|
31039
31156
|
path: "/tokens/{tokenAddress}/holders",
|
|
31040
31157
|
description: "Get token holders and their balances.",
|
|
31041
31158
|
successDescription: "List of token holders with balance information.",
|
|
31042
31159
|
tags: [V2_TAG.token]
|
|
31043
|
-
}).input(v2Input.paramsQuery(
|
|
31160
|
+
}).input(v2Input.paramsQuery(z448.object({
|
|
31044
31161
|
tokenAddress: ethereumAddress.meta({
|
|
31045
31162
|
description: "The token contract address",
|
|
31046
31163
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31052,7 +31169,7 @@ var actions = v2Contract.route({
|
|
|
31052
31169
|
description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31053
31170
|
successDescription: "Paginated list of actions targeting the specified token.",
|
|
31054
31171
|
tags: [V2_TAG.token]
|
|
31055
|
-
}).input(v2Input.paramsQuery(
|
|
31172
|
+
}).input(v2Input.paramsQuery(z448.object({
|
|
31056
31173
|
tokenAddress: ethereumAddress.meta({
|
|
31057
31174
|
description: "The token contract address to filter actions by",
|
|
31058
31175
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31064,7 +31181,7 @@ var events2 = v2Contract.route({
|
|
|
31064
31181
|
description: "List token events with pagination, filtering, sorting, and faceted counts.",
|
|
31065
31182
|
successDescription: "Paginated list of token events with metadata and pagination links.",
|
|
31066
31183
|
tags: [V2_TAG.token]
|
|
31067
|
-
}).input(v2Input.paramsQuery(
|
|
31184
|
+
}).input(v2Input.paramsQuery(z448.object({
|
|
31068
31185
|
tokenAddress: ethereumAddress.meta({
|
|
31069
31186
|
description: "The token contract address",
|
|
31070
31187
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31076,7 +31193,7 @@ var denominationAssets = v2Contract.route({
|
|
|
31076
31193
|
description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31077
31194
|
successDescription: "Paginated list of denomination assets used by the specified bond.",
|
|
31078
31195
|
tags: [V2_TAG.token]
|
|
31079
|
-
}).input(v2Input.paramsQuery(
|
|
31196
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
|
|
31080
31197
|
var compliance = v2Contract.route({
|
|
31081
31198
|
method: "GET",
|
|
31082
31199
|
path: "/tokens/{tokenAddress}/compliance-modules",
|
|
@@ -31118,7 +31235,7 @@ var transferApprovals = v2Contract.route({
|
|
|
31118
31235
|
description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
|
|
31119
31236
|
successDescription: "List of transfer approvals with their current status.",
|
|
31120
31237
|
tags: [V2_TAG.compliance]
|
|
31121
|
-
}).input(v2Input.paramsQuery(
|
|
31238
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
|
|
31122
31239
|
var price = v2Contract.route({
|
|
31123
31240
|
method: "GET",
|
|
31124
31241
|
path: "/tokens/{tokenAddress}/price",
|
|
@@ -31132,49 +31249,70 @@ var conversionTriggers = v2Contract.route({
|
|
|
31132
31249
|
description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31133
31250
|
successDescription: "Paginated list of conversion triggers with effective pricing.",
|
|
31134
31251
|
tags: [V2_TAG.token]
|
|
31135
|
-
}).input(v2Input.paramsQuery(
|
|
31252
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
|
|
31136
31253
|
var conversionRecords = v2Contract.route({
|
|
31137
31254
|
method: "GET",
|
|
31138
31255
|
path: "/tokens/{tokenAddress}/conversion/records",
|
|
31139
31256
|
description: "List conversion lifecycle records for a token. Includes conversion-minter issuance details when available. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31140
31257
|
successDescription: "Paginated list of conversion records.",
|
|
31141
31258
|
tags: [V2_TAG.token]
|
|
31142
|
-
}).input(v2Input.paramsQuery(
|
|
31259
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
|
|
31260
|
+
var conversionTriggerEvents = v2Contract.route({
|
|
31261
|
+
method: "GET",
|
|
31262
|
+
path: "/tokens/{tokenAddress}/conversion/events",
|
|
31263
|
+
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.",
|
|
31264
|
+
successDescription: "Paginated list of conversion trigger lifecycle events.",
|
|
31265
|
+
tags: [V2_TAG.token]
|
|
31266
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
|
|
31267
|
+
var convertsTo = v2Contract.route({
|
|
31268
|
+
method: "GET",
|
|
31269
|
+
path: "/tokens/{tokenAddress}/conversion/converts-to",
|
|
31270
|
+
description: "List target tokens that this token has been authorized to convert into. Reads the forward direction of the bidirectional conversion authorization edges.",
|
|
31271
|
+
successDescription: "Paginated list of forward conversion authorization edges.",
|
|
31272
|
+
tags: [V2_TAG.token]
|
|
31273
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
|
|
31274
|
+
var convertedFrom = v2Contract.route({
|
|
31275
|
+
method: "GET",
|
|
31276
|
+
path: "/tokens/{tokenAddress}/conversion/converted-from",
|
|
31277
|
+
description: "List source tokens that have been authorized to convert into this token. Reads the reverse direction of the bidirectional conversion authorization edges.",
|
|
31278
|
+
successDescription: "Paginated list of reverse conversion authorization edges.",
|
|
31279
|
+
tags: [V2_TAG.token]
|
|
31280
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
|
|
31143
31281
|
var conversionHolderState = v2Contract.route({
|
|
31144
31282
|
method: "GET",
|
|
31145
31283
|
path: "/tokens/{tokenAddress}/conversion/holder-state",
|
|
31146
31284
|
description: "Read holder-specific conversion state from the token's attached conversion feature. Returns null when no conversion feature is attached.",
|
|
31147
31285
|
successDescription: "Conversion holder state retrieved successfully.",
|
|
31148
31286
|
tags: [V2_TAG.token]
|
|
31149
|
-
}).input(v2Input.paramsQuery(
|
|
31287
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z448.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
|
|
31150
31288
|
var votingDelegations = v2Contract.route({
|
|
31151
31289
|
method: "GET",
|
|
31152
31290
|
path: "/tokens/{tokenAddress}/voting-delegations",
|
|
31153
31291
|
description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
|
|
31154
31292
|
successDescription: "Paginated list of voting delegation lifecycle rows.",
|
|
31155
31293
|
tags: [V2_TAG.token]
|
|
31156
|
-
}).input(v2Input.paramsQuery(
|
|
31294
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
|
|
31157
31295
|
var votingPowerDistribution = v2Contract.route({
|
|
31158
31296
|
method: "GET",
|
|
31159
31297
|
path: "/tokens/{tokenAddress}/voting-power/distribution",
|
|
31160
31298
|
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.",
|
|
31161
31299
|
successDescription: "Voting-power distribution summary retrieved successfully.",
|
|
31162
31300
|
tags: [V2_TAG.token]
|
|
31163
|
-
}).input(v2Input.paramsQuery(
|
|
31301
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
|
|
31164
31302
|
var permitInfo = v2Contract.route({
|
|
31165
31303
|
method: "GET",
|
|
31166
31304
|
path: "/tokens/{tokenAddress}/permit-info",
|
|
31167
31305
|
description: "Read EIP-2612 permit metadata from the token's attached permit feature, including the domain separator and optional owner nonce.",
|
|
31168
31306
|
successDescription: "Permit feature metadata retrieved successfully.",
|
|
31169
31307
|
tags: [V2_TAG.token]
|
|
31170
|
-
}).input(v2Input.paramsQuery(
|
|
31308
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z448.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
|
|
31171
31309
|
var featurePermitReplayHistory = v2Contract.route({
|
|
31172
31310
|
method: "GET",
|
|
31173
31311
|
path: "/tokens/{tokenAddress}/permit/replay-history/{owner}",
|
|
31174
31312
|
description: "List relayed `permit()` calls scoped to a single holder for a token's attached Permit feature. Forensic/audit view derived from the indexer projection that filters Approval events on the EIP-2612 permit function selector. History begins at the U2 selector bump landing date — pre-bump events do not appear because their `selector` column is NULL. Permits routed through ERC-4337 `EntryPoint.handleOps` (smart-wallet / UserOp paths) are conservatively excluded in this backend slice because the outer transaction selector reflects the EntryPoint, not the EIP-2612 selector; promoting AA-routed permits requires inner-call decoding tracked as a follow-up.",
|
|
31175
31313
|
successDescription: "Paginated list of permit replay events for the specified owner.",
|
|
31176
31314
|
tags: [V2_TAG.token]
|
|
31177
|
-
}).input(v2Input.paramsQuery(
|
|
31315
|
+
}).input(v2Input.paramsQuery(z448.object({
|
|
31178
31316
|
tokenAddress: TokenReadInputSchema.shape.tokenAddress,
|
|
31179
31317
|
owner: ethereumAddress.meta({
|
|
31180
31318
|
description: "Token holder whose permit replay history is being requested.",
|
|
@@ -31187,21 +31325,21 @@ var historicalBalances = v2Contract.route({
|
|
|
31187
31325
|
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.",
|
|
31188
31326
|
successDescription: "Paginated list of historical balance checkpoints.",
|
|
31189
31327
|
tags: [V2_TAG.token]
|
|
31190
|
-
}).input(v2Input.paramsQuery(
|
|
31328
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
|
|
31191
31329
|
var historicalBalanceAtBlock = v2Contract.route({
|
|
31192
31330
|
method: "GET",
|
|
31193
31331
|
path: "/tokens/{tokenAddress}/historical-balances/balance-at-block",
|
|
31194
31332
|
description: "Read a holder balance and total supply from the token's attached historical-balances feature at a specific feature clock timepoint.",
|
|
31195
31333
|
successDescription: "Historical balance snapshot retrieved successfully.",
|
|
31196
31334
|
tags: [V2_TAG.token]
|
|
31197
|
-
}).input(v2Input.paramsQuery(
|
|
31335
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
|
|
31198
31336
|
var historicalHoldersAtBlock = v2Contract.route({
|
|
31199
31337
|
method: "GET",
|
|
31200
31338
|
path: "/tokens/{tokenAddress}/historical-balances/holders-at-block",
|
|
31201
31339
|
description: "List holder balances read from the token's attached historical-balances feature at a specific feature clock timepoint.",
|
|
31202
31340
|
successDescription: "Paginated historical holder snapshot retrieved successfully.",
|
|
31203
31341
|
tags: [V2_TAG.token]
|
|
31204
|
-
}).input(v2Input.paramsQuery(
|
|
31342
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
|
|
31205
31343
|
var historicalBalanceAtBlockByHolder = v2Contract.route({
|
|
31206
31344
|
method: "GET",
|
|
31207
31345
|
path: "/tokens/{tokenAddress}/historical-balances/{holderAddress}",
|
|
@@ -31215,28 +31353,28 @@ var transactionFeeCollections = v2Contract.route({
|
|
|
31215
31353
|
description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
|
|
31216
31354
|
successDescription: "Paginated list of transaction-fee collections.",
|
|
31217
31355
|
tags: [V2_TAG.token]
|
|
31218
|
-
}).input(v2Input.paramsQuery(
|
|
31356
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
|
|
31219
31357
|
var feeAccrualEvents = v2Contract.route({
|
|
31220
31358
|
method: "GET",
|
|
31221
31359
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
|
|
31222
31360
|
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.",
|
|
31223
31361
|
successDescription: "Paginated list of fee-accrual events.",
|
|
31224
31362
|
tags: [V2_TAG.token]
|
|
31225
|
-
}).input(v2Input.paramsQuery(
|
|
31363
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
|
|
31226
31364
|
var feeAccrualPayer = v2Contract.route({
|
|
31227
31365
|
method: "GET",
|
|
31228
31366
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/payers/{payer}",
|
|
31229
31367
|
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.",
|
|
31230
31368
|
successDescription: "Per-payer accrual summary.",
|
|
31231
31369
|
tags: [V2_TAG.token]
|
|
31232
|
-
}).input(v2Input.params(
|
|
31370
|
+
}).input(v2Input.params(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
|
|
31233
31371
|
var externalFeeCollectionEvents = v2Contract.route({
|
|
31234
31372
|
method: "GET",
|
|
31235
31373
|
path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
|
|
31236
31374
|
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.",
|
|
31237
31375
|
successDescription: "Paginated list of external-fee collection events.",
|
|
31238
31376
|
tags: [V2_TAG.token]
|
|
31239
|
-
}).input(v2Input.paramsQuery(
|
|
31377
|
+
}).input(v2Input.paramsQuery(z448.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
|
|
31240
31378
|
var treasuryHealth = v2Contract.route({
|
|
31241
31379
|
method: "GET",
|
|
31242
31380
|
path: "/tokens/{tokenAddress}/treasury/health",
|
|
@@ -31260,6 +31398,9 @@ var tokenV2ReadsContract = {
|
|
|
31260
31398
|
transferApprovals,
|
|
31261
31399
|
conversionTriggers,
|
|
31262
31400
|
conversionRecords,
|
|
31401
|
+
conversionTriggerEvents,
|
|
31402
|
+
convertsTo,
|
|
31403
|
+
convertedFrom,
|
|
31263
31404
|
conversionHolderState,
|
|
31264
31405
|
votingDelegations,
|
|
31265
31406
|
votingPowerDistribution,
|
|
@@ -31279,7 +31420,7 @@ var tokenV2ReadsContract = {
|
|
|
31279
31420
|
};
|
|
31280
31421
|
|
|
31281
31422
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
31282
|
-
import { z as
|
|
31423
|
+
import { z as z449 } from "zod";
|
|
31283
31424
|
var statsBondStatus = v2Contract.route({
|
|
31284
31425
|
method: "GET",
|
|
31285
31426
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -31300,25 +31441,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
31300
31441
|
description: "Get total supply history statistics for a specific token.",
|
|
31301
31442
|
successDescription: "Token total supply history statistics.",
|
|
31302
31443
|
tags: [V2_TAG.tokenStats]
|
|
31303
|
-
}).input(v2Input.paramsQuery(
|
|
31444
|
+
}).input(v2Input.paramsQuery(z449.object({
|
|
31304
31445
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
31305
|
-
}),
|
|
31446
|
+
}), z449.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
31306
31447
|
var statsSupplyChanges = v2Contract.route({
|
|
31307
31448
|
method: "GET",
|
|
31308
31449
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
31309
31450
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
31310
31451
|
successDescription: "Token supply changes history statistics.",
|
|
31311
31452
|
tags: [V2_TAG.tokenStats]
|
|
31312
|
-
}).input(v2Input.paramsQuery(
|
|
31453
|
+
}).input(v2Input.paramsQuery(z449.object({
|
|
31313
31454
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
31314
|
-
}),
|
|
31455
|
+
}), z449.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
31315
31456
|
var statsVolume = v2Contract.route({
|
|
31316
31457
|
method: "GET",
|
|
31317
31458
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
31318
31459
|
description: "Get total volume history statistics for a specific token.",
|
|
31319
31460
|
successDescription: "Token total volume history statistics.",
|
|
31320
31461
|
tags: [V2_TAG.tokenStats]
|
|
31321
|
-
}).input(v2Input.paramsQuery(
|
|
31462
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z449.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
31322
31463
|
var statsWalletDistribution = v2Contract.route({
|
|
31323
31464
|
method: "GET",
|
|
31324
31465
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -31352,46 +31493,46 @@ var tokenV2StatsContract = {
|
|
|
31352
31493
|
};
|
|
31353
31494
|
|
|
31354
31495
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.contract.ts
|
|
31355
|
-
import { z as
|
|
31496
|
+
import { z as z453 } from "zod";
|
|
31356
31497
|
|
|
31357
31498
|
// ../../packages/dalp/api-contract/src/routes/token/topic-schemes/routes/topic-scheme.list.schema.ts
|
|
31358
|
-
import { z as
|
|
31359
|
-
var TokenTopicSchemeInheritanceLevelSchema =
|
|
31499
|
+
import { z as z450 } from "zod";
|
|
31500
|
+
var TokenTopicSchemeInheritanceLevelSchema = z450.enum(["token", "system", "global"]).meta({
|
|
31360
31501
|
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.",
|
|
31361
31502
|
examples: ["token"]
|
|
31362
31503
|
});
|
|
31363
|
-
var TokenTopicSchemeSchema =
|
|
31364
|
-
id:
|
|
31504
|
+
var TokenTopicSchemeSchema = z450.object({
|
|
31505
|
+
id: z450.string().meta({
|
|
31365
31506
|
description: "Synthetic identifier for the topic scheme row (registry + topicId).",
|
|
31366
31507
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F#1"]
|
|
31367
31508
|
}),
|
|
31368
|
-
topicId:
|
|
31509
|
+
topicId: z450.string().meta({
|
|
31369
31510
|
description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
|
|
31370
31511
|
examples: ["1", "100"]
|
|
31371
31512
|
}),
|
|
31372
|
-
name:
|
|
31513
|
+
name: z450.string().meta({
|
|
31373
31514
|
description: "Human-readable topic-scheme name registered on the registry.",
|
|
31374
31515
|
examples: ["Know Your Customer", "Accredited Investor"]
|
|
31375
31516
|
}),
|
|
31376
|
-
signature:
|
|
31517
|
+
signature: z450.string().meta({
|
|
31377
31518
|
description: "ABI signature describing the claim data shape verified by this scheme.",
|
|
31378
31519
|
examples: ["(string)", "(uint256,bool)"]
|
|
31379
31520
|
}),
|
|
31380
|
-
registry:
|
|
31521
|
+
registry: z450.object({
|
|
31381
31522
|
id: ethereumAddress.meta({
|
|
31382
31523
|
description: "Topic Scheme Registry contract address that holds this row.",
|
|
31383
31524
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31384
31525
|
})
|
|
31385
31526
|
}),
|
|
31386
31527
|
inheritanceLevel: TokenTopicSchemeInheritanceLevelSchema,
|
|
31387
|
-
isShadowed:
|
|
31528
|
+
isShadowed: z450.boolean().meta({
|
|
31388
31529
|
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.",
|
|
31389
31530
|
examples: [false]
|
|
31390
31531
|
})
|
|
31391
31532
|
});
|
|
31392
31533
|
|
|
31393
31534
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.list.schema.ts
|
|
31394
|
-
import { z as
|
|
31535
|
+
import { z as z451 } from "zod";
|
|
31395
31536
|
var TOKEN_TOPIC_SCHEMES_COLLECTION_FIELDS = {
|
|
31396
31537
|
topicId: bigintField({ defaultOperator: "eq" }),
|
|
31397
31538
|
name: textField({ defaultOperator: "iLike" }),
|
|
@@ -31403,14 +31544,14 @@ var TokenTopicSchemesV2ListInputSchema = createCollectionInputSchema(TOKEN_TOPIC
|
|
|
31403
31544
|
globalSearch: true
|
|
31404
31545
|
});
|
|
31405
31546
|
var TokenTopicSchemesV2ListOutputSchema = createPaginatedResponse(TokenTopicSchemeSchema, {
|
|
31406
|
-
hasTokenRegistry:
|
|
31547
|
+
hasTokenRegistry: z451.boolean().meta({
|
|
31407
31548
|
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."
|
|
31408
31549
|
})
|
|
31409
31550
|
});
|
|
31410
31551
|
|
|
31411
31552
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.mutations.schema.ts
|
|
31412
31553
|
import { parseAbiParameters } from "viem";
|
|
31413
|
-
import { z as
|
|
31554
|
+
import { z as z452 } from "zod";
|
|
31414
31555
|
function normalizeClaimDataSignature(signature) {
|
|
31415
31556
|
return `(${signature.trim()})`;
|
|
31416
31557
|
}
|
|
@@ -31424,7 +31565,7 @@ function isAbiTypeList(typeList) {
|
|
|
31424
31565
|
return false;
|
|
31425
31566
|
}
|
|
31426
31567
|
}
|
|
31427
|
-
var ClaimDataSignatureSchema =
|
|
31568
|
+
var ClaimDataSignatureSchema = z452.string().min(1, "Signature is required").superRefine((value3, ctx) => {
|
|
31428
31569
|
if (value3.length === 0) {
|
|
31429
31570
|
return;
|
|
31430
31571
|
}
|
|
@@ -31437,7 +31578,7 @@ var ClaimDataSignatureSchema = z449.string().min(1, "Signature is required").sup
|
|
|
31437
31578
|
}
|
|
31438
31579
|
});
|
|
31439
31580
|
var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
|
|
31440
|
-
name:
|
|
31581
|
+
name: z452.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
|
|
31441
31582
|
description: "Human-readable name for the token-level topic scheme.",
|
|
31442
31583
|
examples: ["Custom Compliance", "Asset Origin"]
|
|
31443
31584
|
}),
|
|
@@ -31447,20 +31588,20 @@ var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
|
|
|
31447
31588
|
})
|
|
31448
31589
|
});
|
|
31449
31590
|
var TokenTopicSchemeCreateOutputSchema = BaseMutationOutputSchema.extend({
|
|
31450
|
-
name:
|
|
31591
|
+
name: z452.string().meta({
|
|
31451
31592
|
description: "Name of the created token-level topic scheme.",
|
|
31452
31593
|
examples: ["Custom Compliance", "Asset Origin"]
|
|
31453
31594
|
})
|
|
31454
31595
|
});
|
|
31455
|
-
var TokenTopicSchemeDeleteParamsSchema =
|
|
31456
|
-
topicId:
|
|
31596
|
+
var TokenTopicSchemeDeleteParamsSchema = z452.object({
|
|
31597
|
+
topicId: z452.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
|
|
31457
31598
|
description: "Numeric topic id of the token-level scheme to remove (decimal string).",
|
|
31458
31599
|
examples: ["1", "100"]
|
|
31459
31600
|
})
|
|
31460
31601
|
});
|
|
31461
31602
|
var TokenTopicSchemeDeleteInputSchema = MutationInputSchema;
|
|
31462
31603
|
var TokenTopicSchemeDeleteOutputSchema = BaseMutationOutputSchema.extend({
|
|
31463
|
-
topicId:
|
|
31604
|
+
topicId: z452.string().meta({
|
|
31464
31605
|
description: "Numeric topic id of the removed token-level scheme.",
|
|
31465
31606
|
examples: ["1", "100"]
|
|
31466
31607
|
})
|
|
@@ -31489,7 +31630,7 @@ var del12 = v2Contract.route({
|
|
|
31489
31630
|
description: "Remove a token-specific topic scheme from the token-level Topic Scheme Registry by topic id.",
|
|
31490
31631
|
successDescription: "Token topic scheme removed successfully.",
|
|
31491
31632
|
tags: [V2_TAG.claimTopics]
|
|
31492
|
-
}).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(
|
|
31633
|
+
}).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z453.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
|
|
31493
31634
|
var tokenV2TopicSchemesContract = {
|
|
31494
31635
|
list: list40,
|
|
31495
31636
|
create: create21,
|
|
@@ -31497,54 +31638,54 @@ var tokenV2TopicSchemesContract = {
|
|
|
31497
31638
|
};
|
|
31498
31639
|
|
|
31499
31640
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
31500
|
-
import { z as
|
|
31641
|
+
import { z as z457 } from "zod";
|
|
31501
31642
|
|
|
31502
31643
|
// ../../packages/dalp/api-contract/src/routes/token/trusted-issuers/routes/trusted-issuer.list.schema.ts
|
|
31503
|
-
import { z as
|
|
31504
|
-
var TokenTrustedIssuerInheritanceLevelSchema =
|
|
31644
|
+
import { z as z454 } from "zod";
|
|
31645
|
+
var TokenTrustedIssuerInheritanceLevelSchema = z454.enum(["token", "system", "global"]).meta({
|
|
31505
31646
|
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.",
|
|
31506
31647
|
examples: ["token"]
|
|
31507
31648
|
});
|
|
31508
|
-
var TokenTrustedIssuerClaimTopicSchema =
|
|
31509
|
-
topicId:
|
|
31649
|
+
var TokenTrustedIssuerClaimTopicSchema = z454.object({
|
|
31650
|
+
topicId: z454.string().meta({
|
|
31510
31651
|
description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
|
|
31511
31652
|
examples: ["1", "100"]
|
|
31512
31653
|
}),
|
|
31513
|
-
name:
|
|
31654
|
+
name: z454.string().meta({
|
|
31514
31655
|
description: "Human-readable topic-scheme name resolved from the token's topic-scheme registry chain.",
|
|
31515
31656
|
examples: ["Know Your Customer", "Accredited Investor"]
|
|
31516
31657
|
})
|
|
31517
31658
|
});
|
|
31518
|
-
var TokenTrustedIssuerSchema =
|
|
31659
|
+
var TokenTrustedIssuerSchema = z454.object({
|
|
31519
31660
|
id: ethereumAddress.meta({
|
|
31520
31661
|
description: "Issuer identity address — the on-chain key for the trusted issuer.",
|
|
31521
31662
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31522
31663
|
}),
|
|
31523
|
-
account:
|
|
31664
|
+
account: z454.object({
|
|
31524
31665
|
id: ethereumAddress.meta({
|
|
31525
31666
|
description: "Issuer wallet address.",
|
|
31526
31667
|
examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
|
|
31527
31668
|
})
|
|
31528
31669
|
}).nullable().optional().meta({ description: "Identity account associated with the issuer, when resolvable." }),
|
|
31529
|
-
claimTopics:
|
|
31670
|
+
claimTopics: z454.array(TokenTrustedIssuerClaimTopicSchema).meta({
|
|
31530
31671
|
description: "Claim topics this issuer is trusted for at its registry tier.",
|
|
31531
31672
|
examples: [[]]
|
|
31532
31673
|
}),
|
|
31533
|
-
registry:
|
|
31674
|
+
registry: z454.object({
|
|
31534
31675
|
id: ethereumAddress.meta({
|
|
31535
31676
|
description: "Trusted Issuer Registry contract address that holds this row.",
|
|
31536
31677
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31537
31678
|
})
|
|
31538
31679
|
}),
|
|
31539
31680
|
inheritanceLevel: TokenTrustedIssuerInheritanceLevelSchema,
|
|
31540
|
-
isInheritedElsewhere:
|
|
31681
|
+
isInheritedElsewhere: z454.boolean().meta({
|
|
31541
31682
|
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.",
|
|
31542
31683
|
examples: [false]
|
|
31543
31684
|
})
|
|
31544
31685
|
});
|
|
31545
31686
|
|
|
31546
31687
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.list.schema.ts
|
|
31547
|
-
import { z as
|
|
31688
|
+
import { z as z455 } from "zod";
|
|
31548
31689
|
var TOKEN_TRUSTED_ISSUERS_COLLECTION_FIELDS = {
|
|
31549
31690
|
account: textField({ defaultOperator: "iLike" }),
|
|
31550
31691
|
source: enumField(["token", "system", "global"], { sortable: false })
|
|
@@ -31554,18 +31695,18 @@ var TokenTrustedIssuersV2ListInputSchema = createCollectionInputSchema(TOKEN_TRU
|
|
|
31554
31695
|
globalSearch: true
|
|
31555
31696
|
});
|
|
31556
31697
|
var TokenTrustedIssuersV2ListOutputSchema = createPaginatedResponse(TokenTrustedIssuerSchema, {
|
|
31557
|
-
hasTrustedIssuersRegistry:
|
|
31698
|
+
hasTrustedIssuersRegistry: z455.boolean().meta({
|
|
31558
31699
|
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."
|
|
31559
31700
|
})
|
|
31560
31701
|
});
|
|
31561
31702
|
|
|
31562
31703
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.mutations.schema.ts
|
|
31563
|
-
import { z as
|
|
31704
|
+
import { z as z456 } from "zod";
|
|
31564
31705
|
var MAX_UINT2565 = 2n ** 256n - 1n;
|
|
31565
31706
|
var MAX_CLAIM_TOPIC_IDS = 50;
|
|
31566
31707
|
var CLAIM_TOPIC_ID_FORMAT_MESSAGE = "Each claim topic id must be a non-negative decimal integer.";
|
|
31567
31708
|
var CLAIM_TOPIC_ID_RANGE_MESSAGE = "Each claim topic id must fit within uint256.";
|
|
31568
|
-
var ClaimTopicIdSchema =
|
|
31709
|
+
var ClaimTopicIdSchema = z456.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
|
|
31569
31710
|
if (!/^\d+$/.test(value3)) {
|
|
31570
31711
|
ctx.addIssue({ code: "custom", message: CLAIM_TOPIC_ID_FORMAT_MESSAGE });
|
|
31571
31712
|
return;
|
|
@@ -31579,7 +31720,7 @@ var TokenTrustedIssuerCreateInputSchema = MutationInputSchema.extend({
|
|
|
31579
31720
|
description: "Identity address of the trusted issuer to add to the token-level registry.",
|
|
31580
31721
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31581
31722
|
}),
|
|
31582
|
-
claimTopicIds:
|
|
31723
|
+
claimTopicIds: z456.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({
|
|
31583
31724
|
description: "Decimal-string topic ids the issuer is trusted for, passed as the on-chain uint256[] argument.",
|
|
31584
31725
|
examples: [["1", "2", "100"]]
|
|
31585
31726
|
})
|
|
@@ -31590,7 +31731,7 @@ var TokenTrustedIssuerCreateOutputSchema = BaseMutationOutputSchema.extend({
|
|
|
31590
31731
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31591
31732
|
})
|
|
31592
31733
|
});
|
|
31593
|
-
var TokenTrustedIssuerDeleteParamsSchema =
|
|
31734
|
+
var TokenTrustedIssuerDeleteParamsSchema = z456.object({
|
|
31594
31735
|
issuerAddress: ethereumAddress.meta({
|
|
31595
31736
|
description: "Identity address of the token-level trusted issuer to remove.",
|
|
31596
31737
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31627,7 +31768,7 @@ var del13 = v2Contract.route({
|
|
|
31627
31768
|
description: "Remove a token-specific trusted issuer from the token-level Trusted Issuer Registry by issuer address.",
|
|
31628
31769
|
successDescription: "Token trusted issuer removed successfully.",
|
|
31629
31770
|
tags: [V2_TAG.trustedIssuers]
|
|
31630
|
-
}).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(
|
|
31771
|
+
}).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z457.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
|
|
31631
31772
|
var tokenV2TrustedIssuersContract = {
|
|
31632
31773
|
list: list41,
|
|
31633
31774
|
create: create22,
|
|
@@ -31653,7 +31794,7 @@ var tokenV2Contract = {
|
|
|
31653
31794
|
};
|
|
31654
31795
|
|
|
31655
31796
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
31656
|
-
import { z as
|
|
31797
|
+
import { z as z458 } from "zod";
|
|
31657
31798
|
var transactionRequestStates = [
|
|
31658
31799
|
"RECEIVED",
|
|
31659
31800
|
"QUEUED",
|
|
@@ -31668,7 +31809,7 @@ var transactionRequestStates = [
|
|
|
31668
31809
|
"CANCELLED"
|
|
31669
31810
|
];
|
|
31670
31811
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
31671
|
-
var TransactionRequestStateSchema =
|
|
31812
|
+
var TransactionRequestStateSchema = z458.enum(transactionRequestStates).meta({
|
|
31672
31813
|
description: "Current state in the transaction request lifecycle",
|
|
31673
31814
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
31674
31815
|
});
|
|
@@ -31710,96 +31851,96 @@ var transactionSubStatuses = [
|
|
|
31710
31851
|
"WORKFLOW_BATCH_COMPLETED",
|
|
31711
31852
|
"WORKFLOW_BATCH_FAILED"
|
|
31712
31853
|
];
|
|
31713
|
-
var TransactionSubStatusSchema =
|
|
31854
|
+
var TransactionSubStatusSchema = z458.enum(transactionSubStatuses).meta({
|
|
31714
31855
|
description: "Detailed sub-status for transaction failures",
|
|
31715
31856
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
31716
31857
|
});
|
|
31717
31858
|
|
|
31718
31859
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
31719
|
-
import { z as
|
|
31720
|
-
var TransactionForceRetryInputSchema =
|
|
31721
|
-
transactionId:
|
|
31860
|
+
import { z as z459 } from "zod";
|
|
31861
|
+
var TransactionForceRetryInputSchema = z459.object({
|
|
31862
|
+
transactionId: z459.uuid().meta({
|
|
31722
31863
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
31723
31864
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31724
31865
|
})
|
|
31725
31866
|
});
|
|
31726
|
-
var TransactionForceRetryBodySchema =
|
|
31727
|
-
gasPrice:
|
|
31867
|
+
var TransactionForceRetryBodySchema = z459.object({
|
|
31868
|
+
gasPrice: z459.string().optional().meta({
|
|
31728
31869
|
description: "Override gas price in wei (decimal string)",
|
|
31729
31870
|
examples: ["20000000000"]
|
|
31730
31871
|
}),
|
|
31731
|
-
nonce:
|
|
31872
|
+
nonce: z459.number().int().nonnegative().optional().meta({
|
|
31732
31873
|
description: "Override nonce for the retried transaction",
|
|
31733
31874
|
examples: [42]
|
|
31734
31875
|
})
|
|
31735
31876
|
}).default({});
|
|
31736
|
-
var TransactionForceRetryResultSchema =
|
|
31737
|
-
transactionId:
|
|
31877
|
+
var TransactionForceRetryResultSchema = z459.object({
|
|
31878
|
+
transactionId: z459.uuid().meta({ description: "The requeued transaction ID" }),
|
|
31738
31879
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
31739
31880
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
31740
31881
|
});
|
|
31741
31882
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
31742
|
-
var TransactionForceFailInputSchema =
|
|
31743
|
-
transactionId:
|
|
31883
|
+
var TransactionForceFailInputSchema = z459.object({
|
|
31884
|
+
transactionId: z459.uuid().meta({
|
|
31744
31885
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
31745
31886
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31746
31887
|
})
|
|
31747
31888
|
});
|
|
31748
|
-
var TransactionForceFailBodySchema =
|
|
31749
|
-
reason:
|
|
31889
|
+
var TransactionForceFailBodySchema = z459.object({
|
|
31890
|
+
reason: z459.string().min(1).max(1000).meta({
|
|
31750
31891
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
31751
31892
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
31752
31893
|
})
|
|
31753
31894
|
});
|
|
31754
|
-
var TransactionForceFailResultSchema =
|
|
31755
|
-
transactionId:
|
|
31895
|
+
var TransactionForceFailResultSchema = z459.object({
|
|
31896
|
+
transactionId: z459.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
31756
31897
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
31757
31898
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
31758
|
-
reason:
|
|
31899
|
+
reason: z459.string().meta({ description: "The reason provided for the force-fail" })
|
|
31759
31900
|
});
|
|
31760
31901
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
31761
|
-
var TransactionForceNonceInputSchema =
|
|
31762
|
-
transactionId:
|
|
31902
|
+
var TransactionForceNonceInputSchema = z459.object({
|
|
31903
|
+
transactionId: z459.uuid().meta({
|
|
31763
31904
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
31764
31905
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31765
31906
|
})
|
|
31766
31907
|
});
|
|
31767
|
-
var TransactionForceNonceBodySchema =
|
|
31768
|
-
nonce:
|
|
31908
|
+
var TransactionForceNonceBodySchema = z459.object({
|
|
31909
|
+
nonce: z459.number().int().nonnegative().meta({
|
|
31769
31910
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
31770
31911
|
examples: [42]
|
|
31771
31912
|
})
|
|
31772
31913
|
});
|
|
31773
|
-
var TransactionForceNonceResultSchema =
|
|
31774
|
-
previous:
|
|
31775
|
-
new:
|
|
31914
|
+
var TransactionForceNonceResultSchema = z459.object({
|
|
31915
|
+
previous: z459.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
31916
|
+
new: z459.number().meta({ description: "New nonce value after force-set" })
|
|
31776
31917
|
});
|
|
31777
31918
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
31778
31919
|
|
|
31779
31920
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
31780
|
-
import { z as
|
|
31781
|
-
var TransactionV2CancelInputSchema =
|
|
31782
|
-
transactionId:
|
|
31921
|
+
import { z as z460 } from "zod";
|
|
31922
|
+
var TransactionV2CancelInputSchema = z460.object({
|
|
31923
|
+
transactionId: z460.uuid().meta({
|
|
31783
31924
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
31784
31925
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31785
31926
|
})
|
|
31786
31927
|
});
|
|
31787
|
-
var TransactionCancelResultSchema =
|
|
31788
|
-
status:
|
|
31928
|
+
var TransactionCancelResultSchema = z460.object({
|
|
31929
|
+
status: z460.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
31789
31930
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
31790
31931
|
examples: ["cancelled", "cancellation_pending"]
|
|
31791
31932
|
}),
|
|
31792
|
-
cancelTransactionId:
|
|
31933
|
+
cancelTransactionId: z460.string().optional().meta({
|
|
31793
31934
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
31794
31935
|
}),
|
|
31795
|
-
message:
|
|
31936
|
+
message: z460.string().optional().meta({
|
|
31796
31937
|
description: "Human-readable error or status message"
|
|
31797
31938
|
})
|
|
31798
31939
|
});
|
|
31799
31940
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
31800
31941
|
|
|
31801
31942
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
31802
|
-
import { z as
|
|
31943
|
+
import { z as z461 } from "zod";
|
|
31803
31944
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
31804
31945
|
status: enumField([...transactionRequestStates]),
|
|
31805
31946
|
operationType: textField(),
|
|
@@ -31812,12 +31953,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
|
|
|
31812
31953
|
defaultSort: "createdAt",
|
|
31813
31954
|
globalSearch: true
|
|
31814
31955
|
});
|
|
31815
|
-
var TransactionListItemSchema =
|
|
31816
|
-
transactionId:
|
|
31956
|
+
var TransactionListItemSchema = z461.object({
|
|
31957
|
+
transactionId: z461.uuid().meta({
|
|
31817
31958
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31818
31959
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31819
31960
|
}),
|
|
31820
|
-
kind:
|
|
31961
|
+
kind: z461.string().meta({
|
|
31821
31962
|
description: "Mutation kind submitted to the queue",
|
|
31822
31963
|
examples: ["token.create", "token.mint"]
|
|
31823
31964
|
}),
|
|
@@ -31825,19 +31966,19 @@ var TransactionListItemSchema = z458.object({
|
|
|
31825
31966
|
description: "Current transaction queue state",
|
|
31826
31967
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
31827
31968
|
}),
|
|
31828
|
-
subStatus:
|
|
31969
|
+
subStatus: z461.string().nullable().meta({
|
|
31829
31970
|
description: "Optional queue sub-status with finer-grained detail",
|
|
31830
31971
|
examples: ["TIMEOUT", null]
|
|
31831
31972
|
}),
|
|
31832
|
-
fromAddress:
|
|
31973
|
+
fromAddress: z461.string().meta({
|
|
31833
31974
|
description: "Sender wallet address",
|
|
31834
31975
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31835
31976
|
}),
|
|
31836
|
-
chainId:
|
|
31977
|
+
chainId: z461.number().int().meta({
|
|
31837
31978
|
description: "Target chain ID",
|
|
31838
31979
|
examples: [1]
|
|
31839
31980
|
}),
|
|
31840
|
-
transactionHash:
|
|
31981
|
+
transactionHash: z461.string().nullable().meta({
|
|
31841
31982
|
description: "Primary transaction hash once broadcast",
|
|
31842
31983
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
31843
31984
|
}),
|
|
@@ -31857,19 +31998,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
31857
31998
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
31858
31999
|
|
|
31859
32000
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
31860
|
-
import { z as
|
|
31861
|
-
var TransactionStatusInputSchema =
|
|
31862
|
-
transactionId:
|
|
32001
|
+
import { z as z462 } from "zod";
|
|
32002
|
+
var TransactionStatusInputSchema = z462.object({
|
|
32003
|
+
transactionId: z462.uuid().meta({
|
|
31863
32004
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31864
32005
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31865
32006
|
})
|
|
31866
32007
|
});
|
|
31867
|
-
var TransactionStatusOutputSchema =
|
|
31868
|
-
transactionId:
|
|
32008
|
+
var TransactionStatusOutputSchema = z462.object({
|
|
32009
|
+
transactionId: z462.uuid().meta({
|
|
31869
32010
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31870
32011
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31871
32012
|
}),
|
|
31872
|
-
kind:
|
|
32013
|
+
kind: z462.string().meta({
|
|
31873
32014
|
description: "Mutation kind submitted to the queue",
|
|
31874
32015
|
examples: ["token.create", "token.mint"]
|
|
31875
32016
|
}),
|
|
@@ -31877,23 +32018,23 @@ var TransactionStatusOutputSchema = z459.object({
|
|
|
31877
32018
|
description: "Current transaction queue state",
|
|
31878
32019
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
31879
32020
|
}),
|
|
31880
|
-
subStatus:
|
|
32021
|
+
subStatus: z462.string().nullable().meta({
|
|
31881
32022
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
31882
32023
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
31883
32024
|
}),
|
|
31884
|
-
transactionHash:
|
|
32025
|
+
transactionHash: z462.string().nullable().meta({
|
|
31885
32026
|
description: "Primary transaction hash once broadcast",
|
|
31886
32027
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
31887
32028
|
}),
|
|
31888
|
-
transactionHashes:
|
|
32029
|
+
transactionHashes: z462.array(z462.string()).optional().meta({
|
|
31889
32030
|
description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
|
|
31890
32031
|
examples: [["0xabc...", "0xdef..."]]
|
|
31891
32032
|
}),
|
|
31892
|
-
blockNumber:
|
|
32033
|
+
blockNumber: z462.string().nullable().meta({
|
|
31893
32034
|
description: "Confirmed block number when available",
|
|
31894
32035
|
examples: ["12345678", null]
|
|
31895
32036
|
}),
|
|
31896
|
-
errorMessage:
|
|
32037
|
+
errorMessage: z462.string().nullable().meta({
|
|
31897
32038
|
description: "Human-readable error or timeout detail when available",
|
|
31898
32039
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
31899
32040
|
}),
|
|
@@ -31972,12 +32113,12 @@ var transactionV2Contract = {
|
|
|
31972
32113
|
};
|
|
31973
32114
|
|
|
31974
32115
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
31975
|
-
import { z as
|
|
32116
|
+
import { z as z468 } from "zod";
|
|
31976
32117
|
|
|
31977
32118
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
31978
|
-
import { z as
|
|
31979
|
-
var UserReadByNationalIdInputSchema =
|
|
31980
|
-
nationalId:
|
|
32119
|
+
import { z as z463 } from "zod";
|
|
32120
|
+
var UserReadByNationalIdInputSchema = z463.object({
|
|
32121
|
+
nationalId: z463.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
31981
32122
|
});
|
|
31982
32123
|
|
|
31983
32124
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
|
|
@@ -31995,13 +32136,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
|
|
|
31995
32136
|
var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
31996
32137
|
|
|
31997
32138
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
|
|
31998
|
-
import { z as
|
|
31999
|
-
var TokenAssetV2Schema =
|
|
32139
|
+
import { z as z464 } from "zod";
|
|
32140
|
+
var TokenAssetV2Schema = z464.object({
|
|
32000
32141
|
id: ethereumAddress.meta({
|
|
32001
32142
|
description: "The token contract address",
|
|
32002
32143
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
32003
32144
|
}),
|
|
32004
|
-
name:
|
|
32145
|
+
name: z464.string().meta({
|
|
32005
32146
|
description: "The token name",
|
|
32006
32147
|
examples: ["Bond Token", "Equity Share"]
|
|
32007
32148
|
}),
|
|
@@ -32021,19 +32162,19 @@ var TokenAssetV2Schema = z461.object({
|
|
|
32021
32162
|
description: "The total supply of the token (raw on-chain uint256)",
|
|
32022
32163
|
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
32023
32164
|
}),
|
|
32024
|
-
bond:
|
|
32025
|
-
isMatured:
|
|
32165
|
+
bond: z464.object({
|
|
32166
|
+
isMatured: z464.boolean().meta({
|
|
32026
32167
|
description: "Whether the bond is matured",
|
|
32027
32168
|
examples: [true, false]
|
|
32028
32169
|
})
|
|
32029
32170
|
}).optional().nullable().meta({ description: "The bond details", examples: [] }),
|
|
32030
|
-
yield:
|
|
32031
|
-
schedule:
|
|
32171
|
+
yield: z464.object({
|
|
32172
|
+
schedule: z464.object({
|
|
32032
32173
|
id: ethereumAddress.meta({
|
|
32033
32174
|
description: "The yield schedule contract address",
|
|
32034
32175
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
32035
32176
|
}),
|
|
32036
|
-
denominationAsset:
|
|
32177
|
+
denominationAsset: z464.object({
|
|
32037
32178
|
id: ethereumAddress.meta({
|
|
32038
32179
|
description: "The denomination asset contract address",
|
|
32039
32180
|
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
@@ -32053,8 +32194,8 @@ var TokenAssetV2Schema = z461.object({
|
|
|
32053
32194
|
}).nullable().meta({ description: "The yield schedule details", examples: [] })
|
|
32054
32195
|
}).nullable().meta({ description: "The yield details", examples: [] })
|
|
32055
32196
|
});
|
|
32056
|
-
var UserAssetBalanceV2ItemSchema =
|
|
32057
|
-
id:
|
|
32197
|
+
var UserAssetBalanceV2ItemSchema = z464.object({
|
|
32198
|
+
id: z464.uuid().meta({
|
|
32058
32199
|
description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
|
|
32059
32200
|
examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
|
|
32060
32201
|
}),
|
|
@@ -32074,7 +32215,7 @@ var UserAssetBalanceV2ItemSchema = z461.object({
|
|
|
32074
32215
|
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.",
|
|
32075
32216
|
examples: ["5.00", null]
|
|
32076
32217
|
}),
|
|
32077
|
-
priceInBaseCurrencyReliable:
|
|
32218
|
+
priceInBaseCurrencyReliable: z464.boolean().meta({
|
|
32078
32219
|
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.",
|
|
32079
32220
|
examples: [true, false]
|
|
32080
32221
|
}),
|
|
@@ -32126,10 +32267,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
|
|
|
32126
32267
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
32127
32268
|
|
|
32128
32269
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
32129
|
-
import { z as
|
|
32270
|
+
import { z as z467 } from "zod";
|
|
32130
32271
|
|
|
32131
32272
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
|
|
32132
|
-
import { z as
|
|
32273
|
+
import { z as z465 } from "zod";
|
|
32133
32274
|
var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
32134
32275
|
fileName: textField(),
|
|
32135
32276
|
documentType: enumField(kycDocumentTypes, { facetable: true }),
|
|
@@ -32140,19 +32281,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
32140
32281
|
var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
|
|
32141
32282
|
defaultSort: "uploadedAt"
|
|
32142
32283
|
});
|
|
32143
|
-
var KycProfileVersionDocumentsV2ListItemSchema =
|
|
32144
|
-
id:
|
|
32284
|
+
var KycProfileVersionDocumentsV2ListItemSchema = z465.object({
|
|
32285
|
+
id: z465.string(),
|
|
32145
32286
|
documentType: kycDocumentType(),
|
|
32146
|
-
fileName:
|
|
32147
|
-
fileSize:
|
|
32148
|
-
mimeType:
|
|
32287
|
+
fileName: z465.string(),
|
|
32288
|
+
fileSize: z465.number(),
|
|
32289
|
+
mimeType: z465.string(),
|
|
32149
32290
|
uploadedAt: timestamp(),
|
|
32150
|
-
uploadedBy:
|
|
32291
|
+
uploadedBy: z465.string().nullable()
|
|
32151
32292
|
});
|
|
32152
32293
|
var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
|
|
32153
32294
|
|
|
32154
32295
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
|
|
32155
|
-
import { z as
|
|
32296
|
+
import { z as z466 } from "zod";
|
|
32156
32297
|
var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
|
|
32157
32298
|
var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
|
|
32158
32299
|
var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
@@ -32165,21 +32306,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
|
32165
32306
|
var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
|
|
32166
32307
|
defaultSort: "versionNumber"
|
|
32167
32308
|
});
|
|
32168
|
-
var KycProfileVersionsV2ListItemSchema =
|
|
32169
|
-
id:
|
|
32170
|
-
versionNumber:
|
|
32309
|
+
var KycProfileVersionsV2ListItemSchema = z466.object({
|
|
32310
|
+
id: z466.string(),
|
|
32311
|
+
versionNumber: z466.number(),
|
|
32171
32312
|
status: kycVersionStatus(),
|
|
32172
32313
|
createdAt: timestamp(),
|
|
32173
|
-
createdBy:
|
|
32314
|
+
createdBy: z466.string().nullable(),
|
|
32174
32315
|
submittedAt: timestamp().nullable(),
|
|
32175
|
-
submittedBy:
|
|
32316
|
+
submittedBy: z466.string().nullable(),
|
|
32176
32317
|
reviewedAt: timestamp().nullable(),
|
|
32177
|
-
reviewedBy:
|
|
32178
|
-
reviewOutcome:
|
|
32179
|
-
isDraft:
|
|
32180
|
-
isUnderReview:
|
|
32181
|
-
isApproved:
|
|
32182
|
-
isCurrent:
|
|
32318
|
+
reviewedBy: z466.string().nullable(),
|
|
32319
|
+
reviewOutcome: z466.enum(KYC_REVIEW_OUTCOMES).nullable(),
|
|
32320
|
+
isDraft: z466.boolean(),
|
|
32321
|
+
isUnderReview: z466.boolean(),
|
|
32322
|
+
isApproved: z466.boolean(),
|
|
32323
|
+
isCurrent: z466.boolean()
|
|
32183
32324
|
});
|
|
32184
32325
|
var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
|
|
32185
32326
|
|
|
@@ -32197,14 +32338,14 @@ var versionsList = v2Contract.route({
|
|
|
32197
32338
|
description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
|
|
32198
32339
|
successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
|
|
32199
32340
|
tags: [V2_TAG.userKyc]
|
|
32200
|
-
}).input(v2Input.paramsQuery(
|
|
32341
|
+
}).input(v2Input.paramsQuery(z467.object({ userId: z467.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
|
|
32201
32342
|
var versionsCreate = v2Contract.route({
|
|
32202
32343
|
method: "POST",
|
|
32203
32344
|
path: "/kyc-profiles/{userId}/versions",
|
|
32204
32345
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
32205
32346
|
successDescription: "KYC profile version created successfully.",
|
|
32206
32347
|
tags: [V2_TAG.userKyc]
|
|
32207
|
-
}).input(v2Input.paramsBody(
|
|
32348
|
+
}).input(v2Input.paramsBody(z467.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
32208
32349
|
var versionRead = v2Contract.route({
|
|
32209
32350
|
method: "GET",
|
|
32210
32351
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -32218,7 +32359,7 @@ var versionUpdate = v2Contract.route({
|
|
|
32218
32359
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
32219
32360
|
successDescription: "KYC profile version updated successfully.",
|
|
32220
32361
|
tags: [V2_TAG.userKyc]
|
|
32221
|
-
}).input(v2Input.paramsBody(
|
|
32362
|
+
}).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
32222
32363
|
var versionSubmit = v2Contract.route({
|
|
32223
32364
|
method: "POST",
|
|
32224
32365
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -32232,28 +32373,28 @@ var versionApprove = v2Contract.route({
|
|
|
32232
32373
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
32233
32374
|
successDescription: "KYC profile version approved.",
|
|
32234
32375
|
tags: [V2_TAG.userKyc]
|
|
32235
|
-
}).input(v2Input.paramsBody(
|
|
32376
|
+
}).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
32236
32377
|
var versionReject = v2Contract.route({
|
|
32237
32378
|
method: "POST",
|
|
32238
32379
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
32239
32380
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
32240
32381
|
successDescription: "KYC profile version rejected.",
|
|
32241
32382
|
tags: [V2_TAG.userKyc]
|
|
32242
|
-
}).input(v2Input.paramsBody(
|
|
32383
|
+
}).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
32243
32384
|
var versionRequestUpdate = v2Contract.route({
|
|
32244
32385
|
method: "POST",
|
|
32245
32386
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
32246
32387
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
32247
32388
|
successDescription: "Update request created successfully.",
|
|
32248
32389
|
tags: [V2_TAG.userKyc]
|
|
32249
|
-
}).input(v2Input.paramsBody(
|
|
32390
|
+
}).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
32250
32391
|
var documentsList = v2Contract.route({
|
|
32251
32392
|
method: "GET",
|
|
32252
32393
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
32253
32394
|
description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
|
|
32254
32395
|
successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
|
|
32255
32396
|
tags: [V2_TAG.userKyc]
|
|
32256
|
-
}).input(v2Input.paramsQuery(
|
|
32397
|
+
}).input(v2Input.paramsQuery(z467.object({ versionId: z467.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
|
|
32257
32398
|
var documentsDelete = v2Contract.route({
|
|
32258
32399
|
method: "DELETE",
|
|
32259
32400
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
|
|
@@ -32267,7 +32408,7 @@ var documentsConfirmUpload = v2Contract.route({
|
|
|
32267
32408
|
description: "Upload a KYC document through DAPI so the payload is encrypted before object storage.",
|
|
32268
32409
|
successDescription: "Document uploaded successfully.",
|
|
32269
32410
|
tags: [V2_TAG.userKyc]
|
|
32270
|
-
}).input(v2Input.paramsBody(
|
|
32411
|
+
}).input(v2Input.paramsBody(z467.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
32271
32412
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
32272
32413
|
method: "POST",
|
|
32273
32414
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -32344,14 +32485,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
32344
32485
|
description: "Read a single user by their internal database ID.",
|
|
32345
32486
|
successDescription: "User retrieved successfully.",
|
|
32346
32487
|
tags: [V2_TAG.user]
|
|
32347
|
-
}).input(v2Input.params(
|
|
32488
|
+
}).input(v2Input.params(z468.object({ userId: z468.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
32348
32489
|
var readByWallet3 = v2Contract.route({
|
|
32349
32490
|
method: "GET",
|
|
32350
32491
|
path: "/wallets/{wallet}/user",
|
|
32351
32492
|
description: "Read a single user by their Ethereum wallet address.",
|
|
32352
32493
|
successDescription: "User retrieved successfully.",
|
|
32353
32494
|
tags: [V2_TAG.user]
|
|
32354
|
-
}).input(v2Input.params(
|
|
32495
|
+
}).input(v2Input.params(z468.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
32355
32496
|
var readByNationalId = v2Contract.route({
|
|
32356
32497
|
method: "GET",
|
|
32357
32498
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -32460,30 +32601,30 @@ var userV2Contract = {
|
|
|
32460
32601
|
};
|
|
32461
32602
|
|
|
32462
32603
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
|
|
32463
|
-
import { z as
|
|
32464
|
-
var WebhooksV2ChainOfCustodyInputSchema =
|
|
32465
|
-
evtId:
|
|
32466
|
-
});
|
|
32467
|
-
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(
|
|
32468
|
-
evtId:
|
|
32469
|
-
hops:
|
|
32470
|
-
stage:
|
|
32471
|
-
contentHash:
|
|
32472
|
-
signedBy:
|
|
32473
|
-
recordedAt:
|
|
32604
|
+
import { z as z469 } from "zod";
|
|
32605
|
+
var WebhooksV2ChainOfCustodyInputSchema = z469.object({
|
|
32606
|
+
evtId: z469.string().trim().min(1)
|
|
32607
|
+
});
|
|
32608
|
+
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z469.object({
|
|
32609
|
+
evtId: z469.string(),
|
|
32610
|
+
hops: z469.array(z469.object({
|
|
32611
|
+
stage: z469.string(),
|
|
32612
|
+
contentHash: z469.string(),
|
|
32613
|
+
signedBy: z469.string().optional(),
|
|
32614
|
+
recordedAt: z469.coerce.date()
|
|
32474
32615
|
})),
|
|
32475
|
-
merkleRoot:
|
|
32476
|
-
platformSignature:
|
|
32616
|
+
merkleRoot: z469.string(),
|
|
32617
|
+
platformSignature: z469.string()
|
|
32477
32618
|
}));
|
|
32478
32619
|
|
|
32479
32620
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
32480
|
-
import { z as
|
|
32621
|
+
import { z as z471 } from "zod";
|
|
32481
32622
|
|
|
32482
32623
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
|
|
32483
|
-
import { z as
|
|
32484
|
-
var WebhookPayloadShapeSchema =
|
|
32485
|
-
var WebhookBreakerStateSchema =
|
|
32486
|
-
var WebhookDeliveryFailureClassSchema =
|
|
32624
|
+
import { z as z470 } from "zod";
|
|
32625
|
+
var WebhookPayloadShapeSchema = z470.enum(["thin", "fat"]);
|
|
32626
|
+
var WebhookBreakerStateSchema = z470.enum(["closed", "half_open", "open"]);
|
|
32627
|
+
var WebhookDeliveryFailureClassSchema = z470.enum([
|
|
32487
32628
|
"DNS_FAIL",
|
|
32488
32629
|
"TLS_FAIL",
|
|
32489
32630
|
"CONNECT_TIMEOUT",
|
|
@@ -32495,35 +32636,35 @@ var WebhookDeliveryFailureClassSchema = z467.enum([
|
|
|
32495
32636
|
"RECEIPT_INVALID_SIG",
|
|
32496
32637
|
"RECEIPT_HASH_MISMATCH"
|
|
32497
32638
|
]);
|
|
32498
|
-
var WebhookFinalityStateSchema =
|
|
32499
|
-
var WebhookSigningSecretStatusSchema =
|
|
32500
|
-
var WebhookFatEventsAcknowledgmentSchema =
|
|
32501
|
-
acknowledgedAt:
|
|
32502
|
-
acknowledgedByUserId:
|
|
32503
|
-
fieldsAcknowledged:
|
|
32504
|
-
});
|
|
32505
|
-
var WebhookEndpointSchema =
|
|
32506
|
-
id:
|
|
32507
|
-
tenantId:
|
|
32508
|
-
systemId:
|
|
32509
|
-
url:
|
|
32510
|
-
displayName:
|
|
32511
|
-
subscriptions:
|
|
32639
|
+
var WebhookFinalityStateSchema = z470.enum(["pending", "provisional", "final", "retracted", "recalled"]);
|
|
32640
|
+
var WebhookSigningSecretStatusSchema = z470.enum(["active", "previous", "revoked"]);
|
|
32641
|
+
var WebhookFatEventsAcknowledgmentSchema = z470.object({
|
|
32642
|
+
acknowledgedAt: z470.coerce.date(),
|
|
32643
|
+
acknowledgedByUserId: z470.string(),
|
|
32644
|
+
fieldsAcknowledged: z470.array(z470.string())
|
|
32645
|
+
});
|
|
32646
|
+
var WebhookEndpointSchema = z470.object({
|
|
32647
|
+
id: z470.uuid(),
|
|
32648
|
+
tenantId: z470.string(),
|
|
32649
|
+
systemId: z470.string(),
|
|
32650
|
+
url: z470.url(),
|
|
32651
|
+
displayName: z470.string().nullable(),
|
|
32652
|
+
subscriptions: z470.array(z470.string()),
|
|
32512
32653
|
defaultPayloadShape: WebhookPayloadShapeSchema,
|
|
32513
|
-
counterSignedReceipts:
|
|
32654
|
+
counterSignedReceipts: z470.boolean(),
|
|
32514
32655
|
breakerState: WebhookBreakerStateSchema,
|
|
32515
|
-
disabledAt:
|
|
32516
|
-
disabledReason:
|
|
32656
|
+
disabledAt: z470.coerce.date().nullable(),
|
|
32657
|
+
disabledReason: z470.string().nullable(),
|
|
32517
32658
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
|
|
32518
|
-
secret:
|
|
32519
|
-
activeVersion:
|
|
32520
|
-
previousVersion:
|
|
32521
|
-
previousRevokesAt:
|
|
32522
|
-
lastUsedAt:
|
|
32659
|
+
secret: z470.object({
|
|
32660
|
+
activeVersion: z470.number().int().positive().nullable(),
|
|
32661
|
+
previousVersion: z470.number().int().positive().nullable(),
|
|
32662
|
+
previousRevokesAt: z470.coerce.date().nullable(),
|
|
32663
|
+
lastUsedAt: z470.coerce.date().nullable()
|
|
32523
32664
|
}),
|
|
32524
|
-
createdAt:
|
|
32525
|
-
updatedAt:
|
|
32526
|
-
createdByUserId:
|
|
32665
|
+
createdAt: z470.coerce.date(),
|
|
32666
|
+
updatedAt: z470.coerce.date(),
|
|
32667
|
+
createdByUserId: z470.string().nullable()
|
|
32527
32668
|
});
|
|
32528
32669
|
var WEBHOOKS_COLLECTION_FIELDS = {
|
|
32529
32670
|
displayName: textField(),
|
|
@@ -32542,44 +32683,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
|
|
|
32542
32683
|
var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
|
|
32543
32684
|
|
|
32544
32685
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
32545
|
-
var WebhooksV2CreateInputSchema =
|
|
32546
|
-
url:
|
|
32547
|
-
displayName:
|
|
32548
|
-
subscriptions:
|
|
32686
|
+
var WebhooksV2CreateInputSchema = z471.object({
|
|
32687
|
+
url: z471.url(),
|
|
32688
|
+
displayName: z471.string().trim().min(1).max(200).optional(),
|
|
32689
|
+
subscriptions: z471.array(z471.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
|
|
32549
32690
|
defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
|
|
32550
|
-
counterSignedReceipts:
|
|
32691
|
+
counterSignedReceipts: z471.boolean().default(false)
|
|
32551
32692
|
});
|
|
32552
32693
|
var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
|
|
32553
|
-
signingSecret:
|
|
32694
|
+
signingSecret: z471.string().nullable()
|
|
32554
32695
|
});
|
|
32555
32696
|
var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
|
|
32556
32697
|
|
|
32557
32698
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
|
|
32558
|
-
import { z as
|
|
32559
|
-
var WebhooksV2DeleteInputSchema =
|
|
32560
|
-
id:
|
|
32699
|
+
import { z as z472 } from "zod";
|
|
32700
|
+
var WebhooksV2DeleteInputSchema = z472.object({
|
|
32701
|
+
id: z472.uuid()
|
|
32561
32702
|
});
|
|
32562
32703
|
var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
|
|
32563
32704
|
|
|
32564
32705
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
|
|
32565
|
-
import { z as
|
|
32566
|
-
var WebhookDeliveryStatusSchema =
|
|
32567
|
-
var WebhookDeliverySchema =
|
|
32568
|
-
id:
|
|
32569
|
-
eventOutboxId:
|
|
32570
|
-
endpointId:
|
|
32571
|
-
tenantId:
|
|
32572
|
-
evtId:
|
|
32573
|
-
eventType:
|
|
32574
|
-
attemptN:
|
|
32575
|
-
attemptedAt:
|
|
32576
|
-
responseStatus:
|
|
32706
|
+
import { z as z473 } from "zod";
|
|
32707
|
+
var WebhookDeliveryStatusSchema = z473.enum(["pending", "delivered", "failed"]);
|
|
32708
|
+
var WebhookDeliverySchema = z473.object({
|
|
32709
|
+
id: z473.uuid(),
|
|
32710
|
+
eventOutboxId: z473.uuid(),
|
|
32711
|
+
endpointId: z473.uuid(),
|
|
32712
|
+
tenantId: z473.string(),
|
|
32713
|
+
evtId: z473.string(),
|
|
32714
|
+
eventType: z473.string(),
|
|
32715
|
+
attemptN: z473.number().int().nonnegative(),
|
|
32716
|
+
attemptedAt: z473.coerce.date(),
|
|
32717
|
+
responseStatus: z473.number().int().nullable(),
|
|
32577
32718
|
failureClass: WebhookDeliveryFailureClassSchema.nullable(),
|
|
32578
32719
|
status: WebhookDeliveryStatusSchema,
|
|
32579
|
-
deliveredAt:
|
|
32580
|
-
isReplay:
|
|
32581
|
-
isTest:
|
|
32582
|
-
traceId:
|
|
32720
|
+
deliveredAt: z473.coerce.date().nullable(),
|
|
32721
|
+
isReplay: z473.boolean(),
|
|
32722
|
+
isTest: z473.boolean(),
|
|
32723
|
+
traceId: z473.string().nullable()
|
|
32583
32724
|
});
|
|
32584
32725
|
var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
|
|
32585
32726
|
status: enumField(["pending", "delivered", "failed"]),
|
|
@@ -32605,167 +32746,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
|
|
|
32605
32746
|
defaultSort: "attemptedAt",
|
|
32606
32747
|
globalSearch: false
|
|
32607
32748
|
});
|
|
32608
|
-
var WebhooksV2DeliveriesListParamsSchema =
|
|
32609
|
-
id:
|
|
32749
|
+
var WebhooksV2DeliveriesListParamsSchema = z473.object({
|
|
32750
|
+
id: z473.uuid()
|
|
32610
32751
|
});
|
|
32611
32752
|
var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
|
|
32612
32753
|
|
|
32613
32754
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
|
|
32614
|
-
import { z as
|
|
32615
|
-
var WebhooksV2DeliveriesReadInputSchema =
|
|
32616
|
-
id:
|
|
32617
|
-
deliveryId:
|
|
32755
|
+
import { z as z474 } from "zod";
|
|
32756
|
+
var WebhooksV2DeliveriesReadInputSchema = z474.object({
|
|
32757
|
+
id: z474.uuid(),
|
|
32758
|
+
deliveryId: z474.uuid()
|
|
32618
32759
|
});
|
|
32619
32760
|
var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
|
|
32620
|
-
request:
|
|
32621
|
-
payload:
|
|
32622
|
-
signedHeaders:
|
|
32623
|
-
signedStringPreview:
|
|
32761
|
+
request: z474.object({
|
|
32762
|
+
payload: z474.record(z474.string(), z474.json()),
|
|
32763
|
+
signedHeaders: z474.record(z474.string(), z474.union([z474.string(), z474.array(z474.string())])),
|
|
32764
|
+
signedStringPreview: z474.string()
|
|
32624
32765
|
}),
|
|
32625
|
-
response:
|
|
32626
|
-
headers:
|
|
32627
|
-
body:
|
|
32628
|
-
timings:
|
|
32629
|
-
dnsMs:
|
|
32630
|
-
tlsMs:
|
|
32631
|
-
connectMs:
|
|
32632
|
-
ttfbMs:
|
|
32766
|
+
response: z474.object({
|
|
32767
|
+
headers: z474.record(z474.string(), z474.union([z474.string(), z474.array(z474.string())])).nullable(),
|
|
32768
|
+
body: z474.string().nullable(),
|
|
32769
|
+
timings: z474.object({
|
|
32770
|
+
dnsMs: z474.number().int().nullable(),
|
|
32771
|
+
tlsMs: z474.number().int().nullable(),
|
|
32772
|
+
connectMs: z474.number().int().nullable(),
|
|
32773
|
+
ttfbMs: z474.number().int().nullable()
|
|
32633
32774
|
})
|
|
32634
32775
|
})
|
|
32635
32776
|
});
|
|
32636
32777
|
var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
|
|
32637
32778
|
|
|
32638
32779
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
|
|
32639
|
-
import { z as
|
|
32640
|
-
var WebhooksV2DeliveriesRetryInputSchema =
|
|
32641
|
-
id:
|
|
32642
|
-
deliveryId:
|
|
32780
|
+
import { z as z475 } from "zod";
|
|
32781
|
+
var WebhooksV2DeliveriesRetryInputSchema = z475.object({
|
|
32782
|
+
id: z475.uuid(),
|
|
32783
|
+
deliveryId: z475.uuid()
|
|
32643
32784
|
});
|
|
32644
|
-
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(
|
|
32645
|
-
deliveryId:
|
|
32646
|
-
scheduled:
|
|
32785
|
+
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z475.object({
|
|
32786
|
+
deliveryId: z475.uuid(),
|
|
32787
|
+
scheduled: z475.boolean()
|
|
32647
32788
|
}));
|
|
32648
32789
|
|
|
32649
32790
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
|
|
32650
|
-
import { z as
|
|
32651
|
-
var WebhooksV2ReadInputSchema =
|
|
32652
|
-
id:
|
|
32791
|
+
import { z as z476 } from "zod";
|
|
32792
|
+
var WebhooksV2ReadInputSchema = z476.object({
|
|
32793
|
+
id: z476.uuid()
|
|
32653
32794
|
});
|
|
32654
32795
|
var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
|
|
32655
32796
|
|
|
32656
32797
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
|
|
32657
|
-
import { z as
|
|
32658
|
-
var WebhooksV2RecallsParamsSchema =
|
|
32659
|
-
evtId:
|
|
32660
|
-
});
|
|
32661
|
-
var WebhooksV2RecallsBodySchema =
|
|
32662
|
-
reason:
|
|
32663
|
-
});
|
|
32664
|
-
var WebhooksV2RecallsOutputSchema = createSingleResponse(
|
|
32665
|
-
evtId:
|
|
32666
|
-
recalledEvtId:
|
|
32667
|
-
supersedes:
|
|
32668
|
-
reason:
|
|
32669
|
-
recalledByUserId:
|
|
32798
|
+
import { z as z477 } from "zod";
|
|
32799
|
+
var WebhooksV2RecallsParamsSchema = z477.object({
|
|
32800
|
+
evtId: z477.string().trim().min(1)
|
|
32801
|
+
});
|
|
32802
|
+
var WebhooksV2RecallsBodySchema = z477.object({
|
|
32803
|
+
reason: z477.string().trim().min(1).max(2000)
|
|
32804
|
+
});
|
|
32805
|
+
var WebhooksV2RecallsOutputSchema = createSingleResponse(z477.object({
|
|
32806
|
+
evtId: z477.string(),
|
|
32807
|
+
recalledEvtId: z477.string(),
|
|
32808
|
+
supersedes: z477.string(),
|
|
32809
|
+
reason: z477.string(),
|
|
32810
|
+
recalledByUserId: z477.string()
|
|
32670
32811
|
}));
|
|
32671
32812
|
|
|
32672
32813
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
|
|
32673
|
-
import { z as
|
|
32674
|
-
var WebhooksV2ReplayByRangeSchema =
|
|
32675
|
-
fromBlock:
|
|
32676
|
-
toBlock:
|
|
32677
|
-
chainId:
|
|
32678
|
-
confirmLargeRange:
|
|
32679
|
-
});
|
|
32680
|
-
var WebhooksV2ReplayByEventSchema =
|
|
32681
|
-
evtId:
|
|
32682
|
-
chainId:
|
|
32683
|
-
});
|
|
32684
|
-
var WebhooksV2ReplaysParamsSchema =
|
|
32685
|
-
id:
|
|
32686
|
-
});
|
|
32687
|
-
var WebhooksV2ReplaysBodySchema =
|
|
32688
|
-
var WebhooksV2ReplaysOutputSchema = createSingleResponse(
|
|
32689
|
-
replayId:
|
|
32690
|
-
endpointId:
|
|
32691
|
-
eventsEnqueued:
|
|
32692
|
-
snapshotToBlock:
|
|
32814
|
+
import { z as z478 } from "zod";
|
|
32815
|
+
var WebhooksV2ReplayByRangeSchema = z478.object({
|
|
32816
|
+
fromBlock: z478.coerce.bigint(),
|
|
32817
|
+
toBlock: z478.coerce.bigint().optional(),
|
|
32818
|
+
chainId: z478.coerce.number().int().positive(),
|
|
32819
|
+
confirmLargeRange: z478.boolean().default(false)
|
|
32820
|
+
});
|
|
32821
|
+
var WebhooksV2ReplayByEventSchema = z478.object({
|
|
32822
|
+
evtId: z478.string().trim().min(1),
|
|
32823
|
+
chainId: z478.coerce.number().int().positive().optional()
|
|
32824
|
+
});
|
|
32825
|
+
var WebhooksV2ReplaysParamsSchema = z478.object({
|
|
32826
|
+
id: z478.uuid()
|
|
32827
|
+
});
|
|
32828
|
+
var WebhooksV2ReplaysBodySchema = z478.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
|
|
32829
|
+
var WebhooksV2ReplaysOutputSchema = createSingleResponse(z478.object({
|
|
32830
|
+
replayId: z478.uuid(),
|
|
32831
|
+
endpointId: z478.uuid(),
|
|
32832
|
+
eventsEnqueued: z478.number().int().nonnegative(),
|
|
32833
|
+
snapshotToBlock: z478.string().nullable()
|
|
32693
32834
|
}));
|
|
32694
32835
|
|
|
32695
32836
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
|
|
32696
|
-
import { z as
|
|
32697
|
-
var WebhooksV2RevokeSecretInputSchema =
|
|
32698
|
-
id:
|
|
32837
|
+
import { z as z479 } from "zod";
|
|
32838
|
+
var WebhooksV2RevokeSecretInputSchema = z479.object({
|
|
32839
|
+
id: z479.uuid()
|
|
32699
32840
|
});
|
|
32700
|
-
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(
|
|
32701
|
-
endpointId:
|
|
32702
|
-
activeVersion:
|
|
32703
|
-
previousVersion:
|
|
32704
|
-
revokedVersion:
|
|
32841
|
+
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z479.object({
|
|
32842
|
+
endpointId: z479.uuid(),
|
|
32843
|
+
activeVersion: z479.number().int().positive(),
|
|
32844
|
+
previousVersion: z479.number().int().positive().nullable(),
|
|
32845
|
+
revokedVersion: z479.number().int().positive()
|
|
32705
32846
|
}));
|
|
32706
32847
|
|
|
32707
32848
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
|
|
32708
|
-
import { z as
|
|
32709
|
-
var WebhooksV2RotateSecretInputSchema =
|
|
32710
|
-
id:
|
|
32711
|
-
});
|
|
32712
|
-
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(
|
|
32713
|
-
endpointId:
|
|
32714
|
-
activeVersion:
|
|
32715
|
-
previousVersion:
|
|
32716
|
-
previousRevokesAt:
|
|
32717
|
-
signingSecret:
|
|
32849
|
+
import { z as z480 } from "zod";
|
|
32850
|
+
var WebhooksV2RotateSecretInputSchema = z480.object({
|
|
32851
|
+
id: z480.uuid()
|
|
32852
|
+
});
|
|
32853
|
+
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z480.object({
|
|
32854
|
+
endpointId: z480.uuid(),
|
|
32855
|
+
activeVersion: z480.number().int().positive(),
|
|
32856
|
+
previousVersion: z480.number().int().positive().nullable(),
|
|
32857
|
+
previousRevokesAt: z480.coerce.date().nullable(),
|
|
32858
|
+
signingSecret: z480.string().nullable()
|
|
32718
32859
|
}));
|
|
32719
32860
|
|
|
32720
32861
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
|
|
32721
|
-
import { z as
|
|
32722
|
-
var WebhooksV2StatsInputSchema =
|
|
32723
|
-
endpointId:
|
|
32862
|
+
import { z as z481 } from "zod";
|
|
32863
|
+
var WebhooksV2StatsInputSchema = z481.object({
|
|
32864
|
+
endpointId: z481.uuid().optional()
|
|
32724
32865
|
});
|
|
32725
|
-
var WebhooksV2StatsOutputDataSchema =
|
|
32726
|
-
totalDeliveries:
|
|
32727
|
-
delivered:
|
|
32728
|
-
failed:
|
|
32729
|
-
hourlyBuckets:
|
|
32866
|
+
var WebhooksV2StatsOutputDataSchema = z481.object({
|
|
32867
|
+
totalDeliveries: z481.number().int().min(0),
|
|
32868
|
+
delivered: z481.number().int().min(0),
|
|
32869
|
+
failed: z481.number().int().min(0),
|
|
32870
|
+
hourlyBuckets: z481.array(z481.number().int().min(0)).length(24)
|
|
32730
32871
|
});
|
|
32731
32872
|
var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
|
|
32732
32873
|
|
|
32733
32874
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
|
|
32734
|
-
import { z as
|
|
32735
|
-
var WebhooksV2TestEventParamsSchema =
|
|
32736
|
-
id:
|
|
32875
|
+
import { z as z482 } from "zod";
|
|
32876
|
+
var WebhooksV2TestEventParamsSchema = z482.object({
|
|
32877
|
+
id: z482.uuid()
|
|
32737
32878
|
});
|
|
32738
|
-
var WebhooksV2TestEventBodySchema =
|
|
32739
|
-
eventType:
|
|
32879
|
+
var WebhooksV2TestEventBodySchema = z482.object({
|
|
32880
|
+
eventType: z482.string().trim().min(1).default("webhook.test.final")
|
|
32740
32881
|
});
|
|
32741
|
-
var WebhooksV2TestEventOutputSchema = createSingleResponse(
|
|
32742
|
-
evtId:
|
|
32743
|
-
deliveryId:
|
|
32744
|
-
isTest:
|
|
32882
|
+
var WebhooksV2TestEventOutputSchema = createSingleResponse(z482.object({
|
|
32883
|
+
evtId: z482.string(),
|
|
32884
|
+
deliveryId: z482.uuid().nullable(),
|
|
32885
|
+
isTest: z482.literal(true)
|
|
32745
32886
|
}));
|
|
32746
32887
|
|
|
32747
32888
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
|
|
32748
|
-
import { z as
|
|
32749
|
-
var WebhooksV2UpdateParamsSchema =
|
|
32750
|
-
id:
|
|
32889
|
+
import { z as z483 } from "zod";
|
|
32890
|
+
var WebhooksV2UpdateParamsSchema = z483.object({
|
|
32891
|
+
id: z483.uuid()
|
|
32751
32892
|
});
|
|
32752
|
-
var WebhooksV2UpdateBodySchema =
|
|
32753
|
-
url:
|
|
32754
|
-
displayName:
|
|
32755
|
-
subscriptions:
|
|
32893
|
+
var WebhooksV2UpdateBodySchema = z483.object({
|
|
32894
|
+
url: z483.url().optional(),
|
|
32895
|
+
displayName: z483.string().trim().min(1).max(200).nullable().optional(),
|
|
32896
|
+
subscriptions: z483.array(z483.string().trim().min(1)).min(1).optional(),
|
|
32756
32897
|
defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
|
|
32757
|
-
counterSignedReceipts:
|
|
32758
|
-
disabled:
|
|
32759
|
-
disabledReason:
|
|
32898
|
+
counterSignedReceipts: z483.boolean().optional(),
|
|
32899
|
+
disabled: z483.boolean().optional(),
|
|
32900
|
+
disabledReason: z483.string().trim().min(1).max(500).nullable().optional(),
|
|
32760
32901
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
|
|
32761
32902
|
acknowledgedAt: true,
|
|
32762
32903
|
acknowledgedByUserId: true
|
|
32763
32904
|
}).optional()
|
|
32764
32905
|
});
|
|
32765
|
-
var WebhooksV2UpdateQuerySchema =
|
|
32766
|
-
acknowledgePending:
|
|
32906
|
+
var WebhooksV2UpdateQuerySchema = z483.object({
|
|
32907
|
+
acknowledgePending: z483.union([z483.literal("true"), z483.literal(true)]).transform(() => true).optional()
|
|
32767
32908
|
}).optional();
|
|
32768
|
-
var WebhooksV2UpdateInputSchema =
|
|
32909
|
+
var WebhooksV2UpdateInputSchema = z483.object({
|
|
32769
32910
|
params: WebhooksV2UpdateParamsSchema,
|
|
32770
32911
|
body: WebhooksV2UpdateBodySchema,
|
|
32771
32912
|
query: WebhooksV2UpdateQuerySchema
|
|
@@ -32900,21 +33041,21 @@ var webhooksV2Contract = {
|
|
|
32900
33041
|
};
|
|
32901
33042
|
|
|
32902
33043
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
32903
|
-
import { z as
|
|
33044
|
+
import { z as z485 } from "zod";
|
|
32904
33045
|
|
|
32905
33046
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
|
|
32906
|
-
import { z as
|
|
32907
|
-
var WebhookReceiptVerificationFailureClassSchema =
|
|
32908
|
-
var WebhookReceiptSchema =
|
|
32909
|
-
id:
|
|
32910
|
-
deliveryId:
|
|
32911
|
-
evtId:
|
|
32912
|
-
tenantId:
|
|
32913
|
-
endpointId:
|
|
32914
|
-
consumerSignature:
|
|
32915
|
-
innerEventHash:
|
|
32916
|
-
receivedAt:
|
|
32917
|
-
verifiedAt:
|
|
33047
|
+
import { z as z484 } from "zod";
|
|
33048
|
+
var WebhookReceiptVerificationFailureClassSchema = z484.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
|
|
33049
|
+
var WebhookReceiptSchema = z484.object({
|
|
33050
|
+
id: z484.uuid(),
|
|
33051
|
+
deliveryId: z484.uuid(),
|
|
33052
|
+
evtId: z484.string(),
|
|
33053
|
+
tenantId: z484.string(),
|
|
33054
|
+
endpointId: z484.uuid(),
|
|
33055
|
+
consumerSignature: z484.string(),
|
|
33056
|
+
innerEventHash: z484.string(),
|
|
33057
|
+
receivedAt: z484.coerce.date(),
|
|
33058
|
+
verifiedAt: z484.coerce.date().nullable(),
|
|
32918
33059
|
verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
|
|
32919
33060
|
});
|
|
32920
33061
|
var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
|
|
@@ -32931,19 +33072,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
|
|
|
32931
33072
|
var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
|
|
32932
33073
|
|
|
32933
33074
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
32934
|
-
var WebhookReceiptsV2CreateInputSchema =
|
|
32935
|
-
deliveryId:
|
|
32936
|
-
evtId:
|
|
32937
|
-
endpointId:
|
|
32938
|
-
consumerSignature:
|
|
32939
|
-
innerEventHash:
|
|
33075
|
+
var WebhookReceiptsV2CreateInputSchema = z485.object({
|
|
33076
|
+
deliveryId: z485.uuid(),
|
|
33077
|
+
evtId: z485.string().trim().min(1),
|
|
33078
|
+
endpointId: z485.uuid(),
|
|
33079
|
+
consumerSignature: z485.string().trim().min(1),
|
|
33080
|
+
innerEventHash: z485.string().trim().min(1)
|
|
32940
33081
|
});
|
|
32941
33082
|
var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
32942
33083
|
|
|
32943
33084
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
|
|
32944
|
-
import { z as
|
|
32945
|
-
var WebhookReceiptsV2ReadInputSchema =
|
|
32946
|
-
id:
|
|
33085
|
+
import { z as z486 } from "zod";
|
|
33086
|
+
var WebhookReceiptsV2ReadInputSchema = z486.object({
|
|
33087
|
+
id: z486.uuid()
|
|
32947
33088
|
});
|
|
32948
33089
|
var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
32949
33090
|
|
|
@@ -33225,7 +33366,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
33225
33366
|
// package.json
|
|
33226
33367
|
var package_default = {
|
|
33227
33368
|
name: "@settlemint/dalp-sdk",
|
|
33228
|
-
version: "2.1.7-main.
|
|
33369
|
+
version: "2.1.7-main.26370309209",
|
|
33229
33370
|
private: false,
|
|
33230
33371
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
33231
33372
|
homepage: "https://settlemint.com",
|