@settlemint/dalp-sdk 2.1.7-main.26372067994 → 2.1.7-main.26372632202
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 +447 -391
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28669,6 +28669,19 @@ var TokenFeatureExternalTransactionFeeCreateBaseSchema = TokenMutationInputSchem
|
|
|
28669
28669
|
var TokenFeatureExternalTransactionFeeCreateInputSchema = TokenFeatureExternalTransactionFeeCreateBaseSchema.superRefine(featureExternalTransactionFeeCreateRefiner);
|
|
28670
28670
|
var TokenFeatureExternalTransactionFeeCreateBodySchema = TokenFeatureExternalTransactionFeeCreateBaseSchema.omit({ tokenAddress: true }).superRefine(featureExternalTransactionFeeCreateRefiner);
|
|
28671
28671
|
|
|
28672
|
+
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.aum-fee-create.schema.ts
|
|
28673
|
+
var TokenFeatureAumFeeCreateBaseSchema = TokenMutationInputSchema.extend({
|
|
28674
|
+
feeBps: feeRateBps().meta({
|
|
28675
|
+
description: "Initial AUM fee rate in basis points (e.g. 200 = 2%).",
|
|
28676
|
+
examples: [200, 0, 1e4]
|
|
28677
|
+
}),
|
|
28678
|
+
feeRecipient: nonZeroEthereumAddress.meta({
|
|
28679
|
+
description: "Address that receives collected AUM fees (rejects the zero address).",
|
|
28680
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28681
|
+
})
|
|
28682
|
+
});
|
|
28683
|
+
var TokenFeatureAumFeeCreateBodySchema = TokenFeatureAumFeeCreateBaseSchema.omit({ tokenAddress: true });
|
|
28684
|
+
|
|
28672
28685
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.maturity-ops.schema.ts
|
|
28673
28686
|
var TokenFeatureMatureInputSchema = TokenMutationInputSchema.extend({});
|
|
28674
28687
|
var TokenMatureEarlyInputSchema = TokenMutationInputSchema.extend({});
|
|
@@ -29537,6 +29550,13 @@ var featureExternalTransactionFeeCreate = v2Contract.route({
|
|
|
29537
29550
|
successDescription: "External-transaction-fee feature deployed successfully.",
|
|
29538
29551
|
tags: [V2_TAG.token]
|
|
29539
29552
|
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureExternalTransactionFeeCreateBodySchema)).output(mutationOutput);
|
|
29553
|
+
var featureAumFeeCreate = v2Contract.route({
|
|
29554
|
+
method: "POST",
|
|
29555
|
+
path: "/tokens/{tokenAddress}/aum-fee/features",
|
|
29556
|
+
description: "Deploy an AUM-fee feature on a CONFIGURABLE token via the DALPAUMFeeFeatureFactory. Encodes (feeBps, recipient) as configData and attaches the predicted feature via ISMARTConfigurable.setFeatures. Before tx 1 the handler reads the live `getFeeRecipient()` on any existing feature row to surface a clear preflight error when a stale configuration would block attachment.",
|
|
29557
|
+
successDescription: "AUM-fee feature deployed successfully.",
|
|
29558
|
+
tags: [V2_TAG.token]
|
|
29559
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureAumFeeCreateBodySchema)).output(mutationOutput);
|
|
29540
29560
|
var featureTransactionFeeAccountingCreate = v2Contract.route({
|
|
29541
29561
|
method: "POST",
|
|
29542
29562
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/features",
|
|
@@ -29734,6 +29754,7 @@ var tokenV2MutationsContract = {
|
|
|
29734
29754
|
setExternalTransactionFeeToken,
|
|
29735
29755
|
freezeExternalTransactionFees,
|
|
29736
29756
|
featureExternalTransactionFeeCreate,
|
|
29757
|
+
featureAumFeeCreate,
|
|
29737
29758
|
featureTransactionFeeAccountingCreate,
|
|
29738
29759
|
setTransactionFeeAccountingRates,
|
|
29739
29760
|
setTransactionFeeAccountingRecipient,
|
|
@@ -29755,7 +29776,7 @@ var tokenV2MutationsContract = {
|
|
|
29755
29776
|
};
|
|
29756
29777
|
|
|
29757
29778
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
29758
|
-
import { z as
|
|
29779
|
+
import { z as z449 } from "zod";
|
|
29759
29780
|
|
|
29760
29781
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
29761
29782
|
import { z as z422 } from "zod";
|
|
@@ -30959,8 +30980,35 @@ var TokenExternalFeeCollectionEventV2ItemSchema = z443.object({
|
|
|
30959
30980
|
});
|
|
30960
30981
|
var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
|
|
30961
30982
|
|
|
30962
|
-
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.
|
|
30983
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.aum-fee-events.list.schema.ts
|
|
30963
30984
|
import { z as z444 } from "zod";
|
|
30985
|
+
var TOKEN_AUM_FEE_EVENTS_COLLECTION_FIELDS = {
|
|
30986
|
+
collectedAt: dateField(),
|
|
30987
|
+
blockNumber: bigintField(),
|
|
30988
|
+
collector: addressField({ defaultOperator: "iLike" }),
|
|
30989
|
+
recipient: addressField({ defaultOperator: "iLike" }),
|
|
30990
|
+
feeAmount: bigintField()
|
|
30991
|
+
};
|
|
30992
|
+
var TokenAumFeeEventsV2InputSchema = createCollectionInputSchema(TOKEN_AUM_FEE_EVENTS_COLLECTION_FIELDS, {
|
|
30993
|
+
defaultSort: "-collectedAt",
|
|
30994
|
+
globalSearch: false
|
|
30995
|
+
});
|
|
30996
|
+
var TokenAumFeeEventV2ItemSchema = z444.object({
|
|
30997
|
+
id: z444.uuid(),
|
|
30998
|
+
collector: ethereumAddress,
|
|
30999
|
+
recipient: ethereumAddress,
|
|
31000
|
+
feeAmount: bigDecimal(),
|
|
31001
|
+
feeAmountExact: apiBigInt,
|
|
31002
|
+
eventTimestamp: timestamp(),
|
|
31003
|
+
blockNumber: apiBigInt,
|
|
31004
|
+
blockTimestamp: timestamp(),
|
|
31005
|
+
txHash: ethereumHash,
|
|
31006
|
+
logIndex: z444.number().int().nonnegative()
|
|
31007
|
+
});
|
|
31008
|
+
var TokenAumFeeEventsV2OutputSchema = createPaginatedResponse(TokenAumFeeEventV2ItemSchema);
|
|
31009
|
+
|
|
31010
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.feature-permit-replay-history.schema.ts
|
|
31011
|
+
import { z as z445 } from "zod";
|
|
30964
31012
|
var PERMIT_REPLAY_HISTORY_COLLECTION_FIELDS = {
|
|
30965
31013
|
blockTime: dateField()
|
|
30966
31014
|
};
|
|
@@ -30968,7 +31016,7 @@ var TokenFeaturePermitReplayHistoryV2InputSchema = createCollectionInputSchema(P
|
|
|
30968
31016
|
defaultSort: "-blockTime",
|
|
30969
31017
|
globalSearch: false
|
|
30970
31018
|
});
|
|
30971
|
-
var TokenFeaturePermitReplayHistoryV2ItemSchema =
|
|
31019
|
+
var TokenFeaturePermitReplayHistoryV2ItemSchema = z445.object({
|
|
30972
31020
|
nonce: apiBigInt.meta({
|
|
30973
31021
|
description: "Per-owner sequence number derived from the count of prior projection rows for the same (chainId, tokenAddress, owner) tuple.",
|
|
30974
31022
|
examples: ["0"]
|
|
@@ -31000,10 +31048,10 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
|
|
|
31000
31048
|
var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
|
|
31001
31049
|
|
|
31002
31050
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.treasury-health.schema.ts
|
|
31003
|
-
import { z as
|
|
31051
|
+
import { z as z446 } from "zod";
|
|
31004
31052
|
var TreasuryHealthInputSchema = TokenReadInputSchema;
|
|
31005
|
-
var TreasuryHealthApprovalSchema =
|
|
31006
|
-
kind:
|
|
31053
|
+
var TreasuryHealthApprovalSchema = z446.object({
|
|
31054
|
+
kind: z446.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
|
|
31007
31055
|
description: "Which feature this approval row gates.",
|
|
31008
31056
|
examples: ["maturity-redemption"]
|
|
31009
31057
|
}),
|
|
@@ -31027,21 +31075,21 @@ var TreasuryHealthApprovalSchema = z445.object({
|
|
|
31027
31075
|
description: "Required allowance ceiling for the feature, scaled by denomination asset decimals.",
|
|
31028
31076
|
examples: ["1000.00"]
|
|
31029
31077
|
}),
|
|
31030
|
-
satisfied:
|
|
31078
|
+
satisfied: z446.boolean().meta({
|
|
31031
31079
|
description: "True when the indexed allowance is greater than or equal to the required ceiling.",
|
|
31032
31080
|
examples: [true, false]
|
|
31033
31081
|
})
|
|
31034
31082
|
});
|
|
31035
|
-
var TreasuryHealthImplementationSchema =
|
|
31036
|
-
treasuryIsContract:
|
|
31083
|
+
var TreasuryHealthImplementationSchema = z446.object({
|
|
31084
|
+
treasuryIsContract: z446.boolean().nullable().meta({
|
|
31037
31085
|
description: "Whether the configured treasury address is a contract (`true`), an EOA (`false`), or has not yet been classified by the indexer (`null`).",
|
|
31038
31086
|
examples: [false, true, null]
|
|
31039
31087
|
})
|
|
31040
31088
|
}).nullable().meta({
|
|
31041
31089
|
description: "Treasury implementation classification. `null` when no maturity / yield feature is attached."
|
|
31042
31090
|
});
|
|
31043
|
-
var TreasuryHealthResponseSchema =
|
|
31044
|
-
approvals:
|
|
31091
|
+
var TreasuryHealthResponseSchema = z446.object({
|
|
31092
|
+
approvals: z446.array(TreasuryHealthApprovalSchema).meta({
|
|
31045
31093
|
description: "Per-feature approval rows. Empty when the token has neither a maturity-redemption nor a fixed-treasury-yield feature attached."
|
|
31046
31094
|
}),
|
|
31047
31095
|
implementation: TreasuryHealthImplementationSchema,
|
|
@@ -31053,11 +31101,11 @@ var TreasuryHealthResponseSchema = z445.object({
|
|
|
31053
31101
|
description: "Projected next-period denomination need (next scheduled redemption / unclaimed yield), scaled by denomination asset decimals. Used to set the `yellow` threshold.",
|
|
31054
31102
|
examples: ["1000.00"]
|
|
31055
31103
|
}),
|
|
31056
|
-
status:
|
|
31104
|
+
status: z446.enum(["green", "yellow", "red"]).meta({
|
|
31057
31105
|
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.",
|
|
31058
31106
|
examples: ["green", "yellow", "red"]
|
|
31059
31107
|
}),
|
|
31060
|
-
reason:
|
|
31108
|
+
reason: z446.string().nullable().meta({
|
|
31061
31109
|
description: "Human-readable reason for the non-green status. `null` for `green`.",
|
|
31062
31110
|
examples: ["balance below projected", "approval below ceiling", null]
|
|
31063
31111
|
}),
|
|
@@ -31068,7 +31116,7 @@ var TreasuryHealthResponseSchema = z445.object({
|
|
|
31068
31116
|
});
|
|
31069
31117
|
|
|
31070
31118
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
|
|
31071
|
-
import { z as
|
|
31119
|
+
import { z as z447 } from "zod";
|
|
31072
31120
|
var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
|
|
31073
31121
|
account: addressField({ defaultOperator: "iLike" }),
|
|
31074
31122
|
delegate: addressField({ defaultOperator: "iLike" }),
|
|
@@ -31082,49 +31130,49 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
|
|
|
31082
31130
|
defaultSort: "-delegatedAt",
|
|
31083
31131
|
globalSearch: false
|
|
31084
31132
|
});
|
|
31085
|
-
var VotingDelegationV2ItemSchema =
|
|
31086
|
-
id:
|
|
31133
|
+
var VotingDelegationV2ItemSchema = z447.object({
|
|
31134
|
+
id: z447.string().uuid(),
|
|
31087
31135
|
delegator: ethereumAddress,
|
|
31088
31136
|
fromDelegate: ethereumAddress.nullable(),
|
|
31089
31137
|
toDelegate: ethereumAddress,
|
|
31090
31138
|
delegatedAt: timestamp(),
|
|
31091
31139
|
delegatedBlockNumber: apiBigInt,
|
|
31092
31140
|
delegatedTxHash: ethereumHash,
|
|
31093
|
-
delegatedLogIndex:
|
|
31141
|
+
delegatedLogIndex: z447.number().int().nonnegative(),
|
|
31094
31142
|
undelegatedAt: timestamp().nullable(),
|
|
31095
31143
|
undelegatedBlockNumber: apiBigInt.nullable(),
|
|
31096
31144
|
undelegatedTxHash: ethereumHash.nullable(),
|
|
31097
|
-
undelegatedLogIndex:
|
|
31098
|
-
isActive:
|
|
31145
|
+
undelegatedLogIndex: z447.number().int().nonnegative().nullable(),
|
|
31146
|
+
isActive: z447.boolean()
|
|
31099
31147
|
});
|
|
31100
31148
|
var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
|
|
31101
31149
|
|
|
31102
31150
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-power-distribution.schema.ts
|
|
31103
|
-
import { z as
|
|
31151
|
+
import { z as z448 } from "zod";
|
|
31104
31152
|
var DEFAULT_TOP_N = 50;
|
|
31105
31153
|
var MAX_TOP_N = 200;
|
|
31106
|
-
var VotingPowerDistributionV2InputSchema =
|
|
31107
|
-
topN:
|
|
31154
|
+
var VotingPowerDistributionV2InputSchema = z448.object({
|
|
31155
|
+
topN: z448.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
|
|
31108
31156
|
description: `Number of top holders to return individually (1-${MAX_TOP_N}). Remaining holders aggregate into the "other" bucket.`,
|
|
31109
31157
|
examples: [DEFAULT_TOP_N]
|
|
31110
31158
|
})
|
|
31111
31159
|
});
|
|
31112
|
-
var VotingPowerDistributionHolderSchema =
|
|
31160
|
+
var VotingPowerDistributionHolderSchema = z448.object({
|
|
31113
31161
|
account: ethereumAddress,
|
|
31114
|
-
votes:
|
|
31162
|
+
votes: z448.string(),
|
|
31115
31163
|
votesExact: apiBigInt
|
|
31116
31164
|
});
|
|
31117
|
-
var VotingPowerDistributionOtherSchema =
|
|
31118
|
-
holders:
|
|
31119
|
-
votes:
|
|
31165
|
+
var VotingPowerDistributionOtherSchema = z448.object({
|
|
31166
|
+
holders: z448.number().int().nonnegative(),
|
|
31167
|
+
votes: z448.string(),
|
|
31120
31168
|
votesExact: apiBigInt
|
|
31121
31169
|
});
|
|
31122
|
-
var VotingPowerDistributionV2DataSchema =
|
|
31123
|
-
total:
|
|
31124
|
-
topN:
|
|
31125
|
-
totalVotes:
|
|
31170
|
+
var VotingPowerDistributionV2DataSchema = z448.object({
|
|
31171
|
+
total: z448.number().int().nonnegative(),
|
|
31172
|
+
topN: z448.number().int().nonnegative(),
|
|
31173
|
+
totalVotes: z448.string(),
|
|
31126
31174
|
totalVotesExact: apiBigInt,
|
|
31127
|
-
holders:
|
|
31175
|
+
holders: z448.array(VotingPowerDistributionHolderSchema),
|
|
31128
31176
|
other: VotingPowerDistributionOtherSchema
|
|
31129
31177
|
});
|
|
31130
31178
|
var VotingPowerDistributionV2OutputSchema = createSingleResponse(VotingPowerDistributionV2DataSchema);
|
|
@@ -31143,21 +31191,21 @@ var allowance = v2Contract.route({
|
|
|
31143
31191
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
31144
31192
|
successDescription: "Token allowance details retrieved successfully.",
|
|
31145
31193
|
tags: [V2_TAG.token]
|
|
31146
|
-
}).input(v2Input.paramsQuery(
|
|
31194
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z449.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
31147
31195
|
var holder = v2Contract.route({
|
|
31148
31196
|
method: "GET",
|
|
31149
31197
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
31150
31198
|
description: "Get a specific token holder's balance information.",
|
|
31151
31199
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
31152
31200
|
tags: [V2_TAG.token]
|
|
31153
|
-
}).input(v2Input.paramsQuery(
|
|
31201
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z449.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
31154
31202
|
var holders = v2Contract.route({
|
|
31155
31203
|
method: "GET",
|
|
31156
31204
|
path: "/tokens/{tokenAddress}/holders",
|
|
31157
31205
|
description: "Get token holders and their balances.",
|
|
31158
31206
|
successDescription: "List of token holders with balance information.",
|
|
31159
31207
|
tags: [V2_TAG.token]
|
|
31160
|
-
}).input(v2Input.paramsQuery(
|
|
31208
|
+
}).input(v2Input.paramsQuery(z449.object({
|
|
31161
31209
|
tokenAddress: ethereumAddress.meta({
|
|
31162
31210
|
description: "The token contract address",
|
|
31163
31211
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31169,7 +31217,7 @@ var actions = v2Contract.route({
|
|
|
31169
31217
|
description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31170
31218
|
successDescription: "Paginated list of actions targeting the specified token.",
|
|
31171
31219
|
tags: [V2_TAG.token]
|
|
31172
|
-
}).input(v2Input.paramsQuery(
|
|
31220
|
+
}).input(v2Input.paramsQuery(z449.object({
|
|
31173
31221
|
tokenAddress: ethereumAddress.meta({
|
|
31174
31222
|
description: "The token contract address to filter actions by",
|
|
31175
31223
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31181,7 +31229,7 @@ var events2 = v2Contract.route({
|
|
|
31181
31229
|
description: "List token events with pagination, filtering, sorting, and faceted counts.",
|
|
31182
31230
|
successDescription: "Paginated list of token events with metadata and pagination links.",
|
|
31183
31231
|
tags: [V2_TAG.token]
|
|
31184
|
-
}).input(v2Input.paramsQuery(
|
|
31232
|
+
}).input(v2Input.paramsQuery(z449.object({
|
|
31185
31233
|
tokenAddress: ethereumAddress.meta({
|
|
31186
31234
|
description: "The token contract address",
|
|
31187
31235
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31193,7 +31241,7 @@ var denominationAssets = v2Contract.route({
|
|
|
31193
31241
|
description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31194
31242
|
successDescription: "Paginated list of denomination assets used by the specified bond.",
|
|
31195
31243
|
tags: [V2_TAG.token]
|
|
31196
|
-
}).input(v2Input.paramsQuery(
|
|
31244
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
|
|
31197
31245
|
var compliance = v2Contract.route({
|
|
31198
31246
|
method: "GET",
|
|
31199
31247
|
path: "/tokens/{tokenAddress}/compliance-modules",
|
|
@@ -31235,7 +31283,7 @@ var transferApprovals = v2Contract.route({
|
|
|
31235
31283
|
description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
|
|
31236
31284
|
successDescription: "List of transfer approvals with their current status.",
|
|
31237
31285
|
tags: [V2_TAG.compliance]
|
|
31238
|
-
}).input(v2Input.paramsQuery(
|
|
31286
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
|
|
31239
31287
|
var price = v2Contract.route({
|
|
31240
31288
|
method: "GET",
|
|
31241
31289
|
path: "/tokens/{tokenAddress}/price",
|
|
@@ -31249,70 +31297,70 @@ var conversionTriggers = v2Contract.route({
|
|
|
31249
31297
|
description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31250
31298
|
successDescription: "Paginated list of conversion triggers with effective pricing.",
|
|
31251
31299
|
tags: [V2_TAG.token]
|
|
31252
|
-
}).input(v2Input.paramsQuery(
|
|
31300
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
|
|
31253
31301
|
var conversionRecords = v2Contract.route({
|
|
31254
31302
|
method: "GET",
|
|
31255
31303
|
path: "/tokens/{tokenAddress}/conversion/records",
|
|
31256
31304
|
description: "List conversion lifecycle records for a token. Includes conversion-minter issuance details when available. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31257
31305
|
successDescription: "Paginated list of conversion records.",
|
|
31258
31306
|
tags: [V2_TAG.token]
|
|
31259
|
-
}).input(v2Input.paramsQuery(
|
|
31307
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
|
|
31260
31308
|
var conversionTriggerEvents = v2Contract.route({
|
|
31261
31309
|
method: "GET",
|
|
31262
31310
|
path: "/tokens/{tokenAddress}/conversion/events",
|
|
31263
31311
|
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
31312
|
successDescription: "Paginated list of conversion trigger lifecycle events.",
|
|
31265
31313
|
tags: [V2_TAG.token]
|
|
31266
|
-
}).input(v2Input.paramsQuery(
|
|
31314
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggerEventsV2InputSchema)).output(ConversionTriggerEventsV2OutputSchema);
|
|
31267
31315
|
var convertsTo = v2Contract.route({
|
|
31268
31316
|
method: "GET",
|
|
31269
31317
|
path: "/tokens/{tokenAddress}/conversion/converts-to",
|
|
31270
31318
|
description: "List target tokens that this token has been authorized to convert into. Reads the forward direction of the bidirectional conversion authorization edges.",
|
|
31271
31319
|
successDescription: "Paginated list of forward conversion authorization edges.",
|
|
31272
31320
|
tags: [V2_TAG.token]
|
|
31273
|
-
}).input(v2Input.paramsQuery(
|
|
31321
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertsToV2InputSchema)).output(ConvertsToV2OutputSchema);
|
|
31274
31322
|
var convertedFrom = v2Contract.route({
|
|
31275
31323
|
method: "GET",
|
|
31276
31324
|
path: "/tokens/{tokenAddress}/conversion/converted-from",
|
|
31277
31325
|
description: "List source tokens that have been authorized to convert into this token. Reads the reverse direction of the bidirectional conversion authorization edges.",
|
|
31278
31326
|
successDescription: "Paginated list of reverse conversion authorization edges.",
|
|
31279
31327
|
tags: [V2_TAG.token]
|
|
31280
|
-
}).input(v2Input.paramsQuery(
|
|
31328
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConvertedFromV2InputSchema)).output(ConvertedFromV2OutputSchema);
|
|
31281
31329
|
var conversionHolderState = v2Contract.route({
|
|
31282
31330
|
method: "GET",
|
|
31283
31331
|
path: "/tokens/{tokenAddress}/conversion/holder-state",
|
|
31284
31332
|
description: "Read holder-specific conversion state from the token's attached conversion feature. Returns null when no conversion feature is attached.",
|
|
31285
31333
|
successDescription: "Conversion holder state retrieved successfully.",
|
|
31286
31334
|
tags: [V2_TAG.token]
|
|
31287
|
-
}).input(v2Input.paramsQuery(
|
|
31335
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z449.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
|
|
31288
31336
|
var votingDelegations = v2Contract.route({
|
|
31289
31337
|
method: "GET",
|
|
31290
31338
|
path: "/tokens/{tokenAddress}/voting-delegations",
|
|
31291
31339
|
description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
|
|
31292
31340
|
successDescription: "Paginated list of voting delegation lifecycle rows.",
|
|
31293
31341
|
tags: [V2_TAG.token]
|
|
31294
|
-
}).input(v2Input.paramsQuery(
|
|
31342
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
|
|
31295
31343
|
var votingPowerDistribution = v2Contract.route({
|
|
31296
31344
|
method: "GET",
|
|
31297
31345
|
path: "/tokens/{tokenAddress}/voting-power/distribution",
|
|
31298
31346
|
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.",
|
|
31299
31347
|
successDescription: "Voting-power distribution summary retrieved successfully.",
|
|
31300
31348
|
tags: [V2_TAG.token]
|
|
31301
|
-
}).input(v2Input.paramsQuery(
|
|
31349
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
|
|
31302
31350
|
var permitInfo = v2Contract.route({
|
|
31303
31351
|
method: "GET",
|
|
31304
31352
|
path: "/tokens/{tokenAddress}/permit-info",
|
|
31305
31353
|
description: "Read EIP-2612 permit metadata from the token's attached permit feature, including the domain separator and optional owner nonce.",
|
|
31306
31354
|
successDescription: "Permit feature metadata retrieved successfully.",
|
|
31307
31355
|
tags: [V2_TAG.token]
|
|
31308
|
-
}).input(v2Input.paramsQuery(
|
|
31356
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z449.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
|
|
31309
31357
|
var featurePermitReplayHistory = v2Contract.route({
|
|
31310
31358
|
method: "GET",
|
|
31311
31359
|
path: "/tokens/{tokenAddress}/permit/replay-history/{owner}",
|
|
31312
31360
|
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.",
|
|
31313
31361
|
successDescription: "Paginated list of permit replay events for the specified owner.",
|
|
31314
31362
|
tags: [V2_TAG.token]
|
|
31315
|
-
}).input(v2Input.paramsQuery(
|
|
31363
|
+
}).input(v2Input.paramsQuery(z449.object({
|
|
31316
31364
|
tokenAddress: TokenReadInputSchema.shape.tokenAddress,
|
|
31317
31365
|
owner: ethereumAddress.meta({
|
|
31318
31366
|
description: "Token holder whose permit replay history is being requested.",
|
|
@@ -31325,21 +31373,21 @@ var historicalBalances = v2Contract.route({
|
|
|
31325
31373
|
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.",
|
|
31326
31374
|
successDescription: "Paginated list of historical balance checkpoints.",
|
|
31327
31375
|
tags: [V2_TAG.token]
|
|
31328
|
-
}).input(v2Input.paramsQuery(
|
|
31376
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
|
|
31329
31377
|
var historicalBalanceAtBlock = v2Contract.route({
|
|
31330
31378
|
method: "GET",
|
|
31331
31379
|
path: "/tokens/{tokenAddress}/historical-balances/balance-at-block",
|
|
31332
31380
|
description: "Read a holder balance and total supply from the token's attached historical-balances feature at a specific feature clock timepoint.",
|
|
31333
31381
|
successDescription: "Historical balance snapshot retrieved successfully.",
|
|
31334
31382
|
tags: [V2_TAG.token]
|
|
31335
|
-
}).input(v2Input.paramsQuery(
|
|
31383
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
|
|
31336
31384
|
var historicalHoldersAtBlock = v2Contract.route({
|
|
31337
31385
|
method: "GET",
|
|
31338
31386
|
path: "/tokens/{tokenAddress}/historical-balances/holders-at-block",
|
|
31339
31387
|
description: "List holder balances read from the token's attached historical-balances feature at a specific feature clock timepoint.",
|
|
31340
31388
|
successDescription: "Paginated historical holder snapshot retrieved successfully.",
|
|
31341
31389
|
tags: [V2_TAG.token]
|
|
31342
|
-
}).input(v2Input.paramsQuery(
|
|
31390
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
|
|
31343
31391
|
var historicalBalanceAtBlockByHolder = v2Contract.route({
|
|
31344
31392
|
method: "GET",
|
|
31345
31393
|
path: "/tokens/{tokenAddress}/historical-balances/{holderAddress}",
|
|
@@ -31353,28 +31401,35 @@ var transactionFeeCollections = v2Contract.route({
|
|
|
31353
31401
|
description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
|
|
31354
31402
|
successDescription: "Paginated list of transaction-fee collections.",
|
|
31355
31403
|
tags: [V2_TAG.token]
|
|
31356
|
-
}).input(v2Input.paramsQuery(
|
|
31404
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
|
|
31357
31405
|
var feeAccrualEvents = v2Contract.route({
|
|
31358
31406
|
method: "GET",
|
|
31359
31407
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
|
|
31360
31408
|
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.",
|
|
31361
31409
|
successDescription: "Paginated list of fee-accrual events.",
|
|
31362
31410
|
tags: [V2_TAG.token]
|
|
31363
|
-
}).input(v2Input.paramsQuery(
|
|
31411
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
|
|
31364
31412
|
var feeAccrualPayer = v2Contract.route({
|
|
31365
31413
|
method: "GET",
|
|
31366
31414
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/payers/{payer}",
|
|
31367
31415
|
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.",
|
|
31368
31416
|
successDescription: "Per-payer accrual summary.",
|
|
31369
31417
|
tags: [V2_TAG.token]
|
|
31370
|
-
}).input(v2Input.params(
|
|
31418
|
+
}).input(v2Input.params(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
|
|
31371
31419
|
var externalFeeCollectionEvents = v2Contract.route({
|
|
31372
31420
|
method: "GET",
|
|
31373
31421
|
path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
|
|
31374
31422
|
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.",
|
|
31375
31423
|
successDescription: "Paginated list of external-fee collection events.",
|
|
31376
31424
|
tags: [V2_TAG.token]
|
|
31377
|
-
}).input(v2Input.paramsQuery(
|
|
31425
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
|
|
31426
|
+
var aumFeeEvents = v2Contract.route({
|
|
31427
|
+
method: "GET",
|
|
31428
|
+
path: "/tokens/{tokenAddress}/aum-fee/collection-events",
|
|
31429
|
+
description: "List AUM-fee collection events for a token's AUM-fee feature. Each row captures the AUMFeeCollected payload (collector, recipient, fee amount, on-chain timestamp). Supports JSON:API pagination, sorting, and filtering by date / recipient / collector / fee amount.",
|
|
31430
|
+
successDescription: "Paginated list of AUM-fee collection events.",
|
|
31431
|
+
tags: [V2_TAG.token]
|
|
31432
|
+
}).input(v2Input.paramsQuery(z449.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenAumFeeEventsV2InputSchema)).output(TokenAumFeeEventsV2OutputSchema);
|
|
31378
31433
|
var treasuryHealth = v2Contract.route({
|
|
31379
31434
|
method: "GET",
|
|
31380
31435
|
path: "/tokens/{tokenAddress}/treasury/health",
|
|
@@ -31414,13 +31469,14 @@ var tokenV2ReadsContract = {
|
|
|
31414
31469
|
feeAccrualEvents,
|
|
31415
31470
|
feeAccrualPayer,
|
|
31416
31471
|
externalFeeCollectionEvents,
|
|
31472
|
+
aumFeeEvents,
|
|
31417
31473
|
participantRolesView: participantRolesView2,
|
|
31418
31474
|
price,
|
|
31419
31475
|
treasuryHealth
|
|
31420
31476
|
};
|
|
31421
31477
|
|
|
31422
31478
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
31423
|
-
import { z as
|
|
31479
|
+
import { z as z450 } from "zod";
|
|
31424
31480
|
var statsBondStatus = v2Contract.route({
|
|
31425
31481
|
method: "GET",
|
|
31426
31482
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -31441,25 +31497,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
31441
31497
|
description: "Get total supply history statistics for a specific token.",
|
|
31442
31498
|
successDescription: "Token total supply history statistics.",
|
|
31443
31499
|
tags: [V2_TAG.tokenStats]
|
|
31444
|
-
}).input(v2Input.paramsQuery(
|
|
31500
|
+
}).input(v2Input.paramsQuery(z450.object({
|
|
31445
31501
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
31446
|
-
}),
|
|
31502
|
+
}), z450.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
31447
31503
|
var statsSupplyChanges = v2Contract.route({
|
|
31448
31504
|
method: "GET",
|
|
31449
31505
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
31450
31506
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
31451
31507
|
successDescription: "Token supply changes history statistics.",
|
|
31452
31508
|
tags: [V2_TAG.tokenStats]
|
|
31453
|
-
}).input(v2Input.paramsQuery(
|
|
31509
|
+
}).input(v2Input.paramsQuery(z450.object({
|
|
31454
31510
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
31455
|
-
}),
|
|
31511
|
+
}), z450.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
31456
31512
|
var statsVolume = v2Contract.route({
|
|
31457
31513
|
method: "GET",
|
|
31458
31514
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
31459
31515
|
description: "Get total volume history statistics for a specific token.",
|
|
31460
31516
|
successDescription: "Token total volume history statistics.",
|
|
31461
31517
|
tags: [V2_TAG.tokenStats]
|
|
31462
|
-
}).input(v2Input.paramsQuery(
|
|
31518
|
+
}).input(v2Input.paramsQuery(z450.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z450.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
31463
31519
|
var statsWalletDistribution = v2Contract.route({
|
|
31464
31520
|
method: "GET",
|
|
31465
31521
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -31493,46 +31549,46 @@ var tokenV2StatsContract = {
|
|
|
31493
31549
|
};
|
|
31494
31550
|
|
|
31495
31551
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.contract.ts
|
|
31496
|
-
import { z as
|
|
31552
|
+
import { z as z454 } from "zod";
|
|
31497
31553
|
|
|
31498
31554
|
// ../../packages/dalp/api-contract/src/routes/token/topic-schemes/routes/topic-scheme.list.schema.ts
|
|
31499
|
-
import { z as
|
|
31500
|
-
var TokenTopicSchemeInheritanceLevelSchema =
|
|
31555
|
+
import { z as z451 } from "zod";
|
|
31556
|
+
var TokenTopicSchemeInheritanceLevelSchema = z451.enum(["token", "system", "global"]).meta({
|
|
31501
31557
|
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.",
|
|
31502
31558
|
examples: ["token"]
|
|
31503
31559
|
});
|
|
31504
|
-
var TokenTopicSchemeSchema =
|
|
31505
|
-
id:
|
|
31560
|
+
var TokenTopicSchemeSchema = z451.object({
|
|
31561
|
+
id: z451.string().meta({
|
|
31506
31562
|
description: "Synthetic identifier for the topic scheme row (registry + topicId).",
|
|
31507
31563
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F#1"]
|
|
31508
31564
|
}),
|
|
31509
|
-
topicId:
|
|
31565
|
+
topicId: z451.string().meta({
|
|
31510
31566
|
description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
|
|
31511
31567
|
examples: ["1", "100"]
|
|
31512
31568
|
}),
|
|
31513
|
-
name:
|
|
31569
|
+
name: z451.string().meta({
|
|
31514
31570
|
description: "Human-readable topic-scheme name registered on the registry.",
|
|
31515
31571
|
examples: ["Know Your Customer", "Accredited Investor"]
|
|
31516
31572
|
}),
|
|
31517
|
-
signature:
|
|
31573
|
+
signature: z451.string().meta({
|
|
31518
31574
|
description: "ABI signature describing the claim data shape verified by this scheme.",
|
|
31519
31575
|
examples: ["(string)", "(uint256,bool)"]
|
|
31520
31576
|
}),
|
|
31521
|
-
registry:
|
|
31577
|
+
registry: z451.object({
|
|
31522
31578
|
id: ethereumAddress.meta({
|
|
31523
31579
|
description: "Topic Scheme Registry contract address that holds this row.",
|
|
31524
31580
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31525
31581
|
})
|
|
31526
31582
|
}),
|
|
31527
31583
|
inheritanceLevel: TokenTopicSchemeInheritanceLevelSchema,
|
|
31528
|
-
isShadowed:
|
|
31584
|
+
isShadowed: z451.boolean().meta({
|
|
31529
31585
|
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.",
|
|
31530
31586
|
examples: [false]
|
|
31531
31587
|
})
|
|
31532
31588
|
});
|
|
31533
31589
|
|
|
31534
31590
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.list.schema.ts
|
|
31535
|
-
import { z as
|
|
31591
|
+
import { z as z452 } from "zod";
|
|
31536
31592
|
var TOKEN_TOPIC_SCHEMES_COLLECTION_FIELDS = {
|
|
31537
31593
|
topicId: bigintField({ defaultOperator: "eq" }),
|
|
31538
31594
|
name: textField({ defaultOperator: "iLike" }),
|
|
@@ -31544,14 +31600,14 @@ var TokenTopicSchemesV2ListInputSchema = createCollectionInputSchema(TOKEN_TOPIC
|
|
|
31544
31600
|
globalSearch: true
|
|
31545
31601
|
});
|
|
31546
31602
|
var TokenTopicSchemesV2ListOutputSchema = createPaginatedResponse(TokenTopicSchemeSchema, {
|
|
31547
|
-
hasTokenRegistry:
|
|
31603
|
+
hasTokenRegistry: z452.boolean().meta({
|
|
31548
31604
|
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."
|
|
31549
31605
|
})
|
|
31550
31606
|
});
|
|
31551
31607
|
|
|
31552
31608
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.mutations.schema.ts
|
|
31553
31609
|
import { parseAbiParameters } from "viem";
|
|
31554
|
-
import { z as
|
|
31610
|
+
import { z as z453 } from "zod";
|
|
31555
31611
|
function normalizeClaimDataSignature(signature) {
|
|
31556
31612
|
return `(${signature.trim()})`;
|
|
31557
31613
|
}
|
|
@@ -31565,7 +31621,7 @@ function isAbiTypeList(typeList) {
|
|
|
31565
31621
|
return false;
|
|
31566
31622
|
}
|
|
31567
31623
|
}
|
|
31568
|
-
var ClaimDataSignatureSchema =
|
|
31624
|
+
var ClaimDataSignatureSchema = z453.string().min(1, "Signature is required").superRefine((value3, ctx) => {
|
|
31569
31625
|
if (value3.length === 0) {
|
|
31570
31626
|
return;
|
|
31571
31627
|
}
|
|
@@ -31578,7 +31634,7 @@ var ClaimDataSignatureSchema = z452.string().min(1, "Signature is required").sup
|
|
|
31578
31634
|
}
|
|
31579
31635
|
});
|
|
31580
31636
|
var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
|
|
31581
|
-
name:
|
|
31637
|
+
name: z453.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
|
|
31582
31638
|
description: "Human-readable name for the token-level topic scheme.",
|
|
31583
31639
|
examples: ["Custom Compliance", "Asset Origin"]
|
|
31584
31640
|
}),
|
|
@@ -31588,20 +31644,20 @@ var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
|
|
|
31588
31644
|
})
|
|
31589
31645
|
});
|
|
31590
31646
|
var TokenTopicSchemeCreateOutputSchema = BaseMutationOutputSchema.extend({
|
|
31591
|
-
name:
|
|
31647
|
+
name: z453.string().meta({
|
|
31592
31648
|
description: "Name of the created token-level topic scheme.",
|
|
31593
31649
|
examples: ["Custom Compliance", "Asset Origin"]
|
|
31594
31650
|
})
|
|
31595
31651
|
});
|
|
31596
|
-
var TokenTopicSchemeDeleteParamsSchema =
|
|
31597
|
-
topicId:
|
|
31652
|
+
var TokenTopicSchemeDeleteParamsSchema = z453.object({
|
|
31653
|
+
topicId: z453.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
|
|
31598
31654
|
description: "Numeric topic id of the token-level scheme to remove (decimal string).",
|
|
31599
31655
|
examples: ["1", "100"]
|
|
31600
31656
|
})
|
|
31601
31657
|
});
|
|
31602
31658
|
var TokenTopicSchemeDeleteInputSchema = MutationInputSchema;
|
|
31603
31659
|
var TokenTopicSchemeDeleteOutputSchema = BaseMutationOutputSchema.extend({
|
|
31604
|
-
topicId:
|
|
31660
|
+
topicId: z453.string().meta({
|
|
31605
31661
|
description: "Numeric topic id of the removed token-level scheme.",
|
|
31606
31662
|
examples: ["1", "100"]
|
|
31607
31663
|
})
|
|
@@ -31630,7 +31686,7 @@ var del12 = v2Contract.route({
|
|
|
31630
31686
|
description: "Remove a token-specific topic scheme from the token-level Topic Scheme Registry by topic id.",
|
|
31631
31687
|
successDescription: "Token topic scheme removed successfully.",
|
|
31632
31688
|
tags: [V2_TAG.claimTopics]
|
|
31633
|
-
}).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(
|
|
31689
|
+
}).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z454.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
|
|
31634
31690
|
var tokenV2TopicSchemesContract = {
|
|
31635
31691
|
list: list40,
|
|
31636
31692
|
create: create21,
|
|
@@ -31638,54 +31694,54 @@ var tokenV2TopicSchemesContract = {
|
|
|
31638
31694
|
};
|
|
31639
31695
|
|
|
31640
31696
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
31641
|
-
import { z as
|
|
31697
|
+
import { z as z458 } from "zod";
|
|
31642
31698
|
|
|
31643
31699
|
// ../../packages/dalp/api-contract/src/routes/token/trusted-issuers/routes/trusted-issuer.list.schema.ts
|
|
31644
|
-
import { z as
|
|
31645
|
-
var TokenTrustedIssuerInheritanceLevelSchema =
|
|
31700
|
+
import { z as z455 } from "zod";
|
|
31701
|
+
var TokenTrustedIssuerInheritanceLevelSchema = z455.enum(["token", "system", "global"]).meta({
|
|
31646
31702
|
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.",
|
|
31647
31703
|
examples: ["token"]
|
|
31648
31704
|
});
|
|
31649
|
-
var TokenTrustedIssuerClaimTopicSchema =
|
|
31650
|
-
topicId:
|
|
31705
|
+
var TokenTrustedIssuerClaimTopicSchema = z455.object({
|
|
31706
|
+
topicId: z455.string().meta({
|
|
31651
31707
|
description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
|
|
31652
31708
|
examples: ["1", "100"]
|
|
31653
31709
|
}),
|
|
31654
|
-
name:
|
|
31710
|
+
name: z455.string().meta({
|
|
31655
31711
|
description: "Human-readable topic-scheme name resolved from the token's topic-scheme registry chain.",
|
|
31656
31712
|
examples: ["Know Your Customer", "Accredited Investor"]
|
|
31657
31713
|
})
|
|
31658
31714
|
});
|
|
31659
|
-
var TokenTrustedIssuerSchema =
|
|
31715
|
+
var TokenTrustedIssuerSchema = z455.object({
|
|
31660
31716
|
id: ethereumAddress.meta({
|
|
31661
31717
|
description: "Issuer identity address — the on-chain key for the trusted issuer.",
|
|
31662
31718
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31663
31719
|
}),
|
|
31664
|
-
account:
|
|
31720
|
+
account: z455.object({
|
|
31665
31721
|
id: ethereumAddress.meta({
|
|
31666
31722
|
description: "Issuer wallet address.",
|
|
31667
31723
|
examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
|
|
31668
31724
|
})
|
|
31669
31725
|
}).nullable().optional().meta({ description: "Identity account associated with the issuer, when resolvable." }),
|
|
31670
|
-
claimTopics:
|
|
31726
|
+
claimTopics: z455.array(TokenTrustedIssuerClaimTopicSchema).meta({
|
|
31671
31727
|
description: "Claim topics this issuer is trusted for at its registry tier.",
|
|
31672
31728
|
examples: [[]]
|
|
31673
31729
|
}),
|
|
31674
|
-
registry:
|
|
31730
|
+
registry: z455.object({
|
|
31675
31731
|
id: ethereumAddress.meta({
|
|
31676
31732
|
description: "Trusted Issuer Registry contract address that holds this row.",
|
|
31677
31733
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31678
31734
|
})
|
|
31679
31735
|
}),
|
|
31680
31736
|
inheritanceLevel: TokenTrustedIssuerInheritanceLevelSchema,
|
|
31681
|
-
isInheritedElsewhere:
|
|
31737
|
+
isInheritedElsewhere: z455.boolean().meta({
|
|
31682
31738
|
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.",
|
|
31683
31739
|
examples: [false]
|
|
31684
31740
|
})
|
|
31685
31741
|
});
|
|
31686
31742
|
|
|
31687
31743
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.list.schema.ts
|
|
31688
|
-
import { z as
|
|
31744
|
+
import { z as z456 } from "zod";
|
|
31689
31745
|
var TOKEN_TRUSTED_ISSUERS_COLLECTION_FIELDS = {
|
|
31690
31746
|
account: textField({ defaultOperator: "iLike" }),
|
|
31691
31747
|
source: enumField(["token", "system", "global"], { sortable: false })
|
|
@@ -31695,18 +31751,18 @@ var TokenTrustedIssuersV2ListInputSchema = createCollectionInputSchema(TOKEN_TRU
|
|
|
31695
31751
|
globalSearch: true
|
|
31696
31752
|
});
|
|
31697
31753
|
var TokenTrustedIssuersV2ListOutputSchema = createPaginatedResponse(TokenTrustedIssuerSchema, {
|
|
31698
|
-
hasTrustedIssuersRegistry:
|
|
31754
|
+
hasTrustedIssuersRegistry: z456.boolean().meta({
|
|
31699
31755
|
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."
|
|
31700
31756
|
})
|
|
31701
31757
|
});
|
|
31702
31758
|
|
|
31703
31759
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.mutations.schema.ts
|
|
31704
|
-
import { z as
|
|
31760
|
+
import { z as z457 } from "zod";
|
|
31705
31761
|
var MAX_UINT2565 = 2n ** 256n - 1n;
|
|
31706
31762
|
var MAX_CLAIM_TOPIC_IDS = 50;
|
|
31707
31763
|
var CLAIM_TOPIC_ID_FORMAT_MESSAGE = "Each claim topic id must be a non-negative decimal integer.";
|
|
31708
31764
|
var CLAIM_TOPIC_ID_RANGE_MESSAGE = "Each claim topic id must fit within uint256.";
|
|
31709
|
-
var ClaimTopicIdSchema =
|
|
31765
|
+
var ClaimTopicIdSchema = z457.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
|
|
31710
31766
|
if (!/^\d+$/.test(value3)) {
|
|
31711
31767
|
ctx.addIssue({ code: "custom", message: CLAIM_TOPIC_ID_FORMAT_MESSAGE });
|
|
31712
31768
|
return;
|
|
@@ -31720,7 +31776,7 @@ var TokenTrustedIssuerCreateInputSchema = MutationInputSchema.extend({
|
|
|
31720
31776
|
description: "Identity address of the trusted issuer to add to the token-level registry.",
|
|
31721
31777
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31722
31778
|
}),
|
|
31723
|
-
claimTopicIds:
|
|
31779
|
+
claimTopicIds: z457.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({
|
|
31724
31780
|
description: "Decimal-string topic ids the issuer is trusted for, passed as the on-chain uint256[] argument.",
|
|
31725
31781
|
examples: [["1", "2", "100"]]
|
|
31726
31782
|
})
|
|
@@ -31731,7 +31787,7 @@ var TokenTrustedIssuerCreateOutputSchema = BaseMutationOutputSchema.extend({
|
|
|
31731
31787
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31732
31788
|
})
|
|
31733
31789
|
});
|
|
31734
|
-
var TokenTrustedIssuerDeleteParamsSchema =
|
|
31790
|
+
var TokenTrustedIssuerDeleteParamsSchema = z457.object({
|
|
31735
31791
|
issuerAddress: ethereumAddress.meta({
|
|
31736
31792
|
description: "Identity address of the token-level trusted issuer to remove.",
|
|
31737
31793
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31768,7 +31824,7 @@ var del13 = v2Contract.route({
|
|
|
31768
31824
|
description: "Remove a token-specific trusted issuer from the token-level Trusted Issuer Registry by issuer address.",
|
|
31769
31825
|
successDescription: "Token trusted issuer removed successfully.",
|
|
31770
31826
|
tags: [V2_TAG.trustedIssuers]
|
|
31771
|
-
}).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(
|
|
31827
|
+
}).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z458.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
|
|
31772
31828
|
var tokenV2TrustedIssuersContract = {
|
|
31773
31829
|
list: list41,
|
|
31774
31830
|
create: create22,
|
|
@@ -31794,7 +31850,7 @@ var tokenV2Contract = {
|
|
|
31794
31850
|
};
|
|
31795
31851
|
|
|
31796
31852
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
31797
|
-
import { z as
|
|
31853
|
+
import { z as z459 } from "zod";
|
|
31798
31854
|
var transactionRequestStates = [
|
|
31799
31855
|
"RECEIVED",
|
|
31800
31856
|
"QUEUED",
|
|
@@ -31809,7 +31865,7 @@ var transactionRequestStates = [
|
|
|
31809
31865
|
"CANCELLED"
|
|
31810
31866
|
];
|
|
31811
31867
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
31812
|
-
var TransactionRequestStateSchema =
|
|
31868
|
+
var TransactionRequestStateSchema = z459.enum(transactionRequestStates).meta({
|
|
31813
31869
|
description: "Current state in the transaction request lifecycle",
|
|
31814
31870
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
31815
31871
|
});
|
|
@@ -31851,96 +31907,96 @@ var transactionSubStatuses = [
|
|
|
31851
31907
|
"WORKFLOW_BATCH_COMPLETED",
|
|
31852
31908
|
"WORKFLOW_BATCH_FAILED"
|
|
31853
31909
|
];
|
|
31854
|
-
var TransactionSubStatusSchema =
|
|
31910
|
+
var TransactionSubStatusSchema = z459.enum(transactionSubStatuses).meta({
|
|
31855
31911
|
description: "Detailed sub-status for transaction failures",
|
|
31856
31912
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
31857
31913
|
});
|
|
31858
31914
|
|
|
31859
31915
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
31860
|
-
import { z as
|
|
31861
|
-
var TransactionForceRetryInputSchema =
|
|
31862
|
-
transactionId:
|
|
31916
|
+
import { z as z460 } from "zod";
|
|
31917
|
+
var TransactionForceRetryInputSchema = z460.object({
|
|
31918
|
+
transactionId: z460.uuid().meta({
|
|
31863
31919
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
31864
31920
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31865
31921
|
})
|
|
31866
31922
|
});
|
|
31867
|
-
var TransactionForceRetryBodySchema =
|
|
31868
|
-
gasPrice:
|
|
31923
|
+
var TransactionForceRetryBodySchema = z460.object({
|
|
31924
|
+
gasPrice: z460.string().optional().meta({
|
|
31869
31925
|
description: "Override gas price in wei (decimal string)",
|
|
31870
31926
|
examples: ["20000000000"]
|
|
31871
31927
|
}),
|
|
31872
|
-
nonce:
|
|
31928
|
+
nonce: z460.number().int().nonnegative().optional().meta({
|
|
31873
31929
|
description: "Override nonce for the retried transaction",
|
|
31874
31930
|
examples: [42]
|
|
31875
31931
|
})
|
|
31876
31932
|
}).default({});
|
|
31877
|
-
var TransactionForceRetryResultSchema =
|
|
31878
|
-
transactionId:
|
|
31933
|
+
var TransactionForceRetryResultSchema = z460.object({
|
|
31934
|
+
transactionId: z460.uuid().meta({ description: "The requeued transaction ID" }),
|
|
31879
31935
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
31880
31936
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
31881
31937
|
});
|
|
31882
31938
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
31883
|
-
var TransactionForceFailInputSchema =
|
|
31884
|
-
transactionId:
|
|
31939
|
+
var TransactionForceFailInputSchema = z460.object({
|
|
31940
|
+
transactionId: z460.uuid().meta({
|
|
31885
31941
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
31886
31942
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31887
31943
|
})
|
|
31888
31944
|
});
|
|
31889
|
-
var TransactionForceFailBodySchema =
|
|
31890
|
-
reason:
|
|
31945
|
+
var TransactionForceFailBodySchema = z460.object({
|
|
31946
|
+
reason: z460.string().min(1).max(1000).meta({
|
|
31891
31947
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
31892
31948
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
31893
31949
|
})
|
|
31894
31950
|
});
|
|
31895
|
-
var TransactionForceFailResultSchema =
|
|
31896
|
-
transactionId:
|
|
31951
|
+
var TransactionForceFailResultSchema = z460.object({
|
|
31952
|
+
transactionId: z460.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
31897
31953
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
31898
31954
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
31899
|
-
reason:
|
|
31955
|
+
reason: z460.string().meta({ description: "The reason provided for the force-fail" })
|
|
31900
31956
|
});
|
|
31901
31957
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
31902
|
-
var TransactionForceNonceInputSchema =
|
|
31903
|
-
transactionId:
|
|
31958
|
+
var TransactionForceNonceInputSchema = z460.object({
|
|
31959
|
+
transactionId: z460.uuid().meta({
|
|
31904
31960
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
31905
31961
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31906
31962
|
})
|
|
31907
31963
|
});
|
|
31908
|
-
var TransactionForceNonceBodySchema =
|
|
31909
|
-
nonce:
|
|
31964
|
+
var TransactionForceNonceBodySchema = z460.object({
|
|
31965
|
+
nonce: z460.number().int().nonnegative().meta({
|
|
31910
31966
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
31911
31967
|
examples: [42]
|
|
31912
31968
|
})
|
|
31913
31969
|
});
|
|
31914
|
-
var TransactionForceNonceResultSchema =
|
|
31915
|
-
previous:
|
|
31916
|
-
new:
|
|
31970
|
+
var TransactionForceNonceResultSchema = z460.object({
|
|
31971
|
+
previous: z460.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
31972
|
+
new: z460.number().meta({ description: "New nonce value after force-set" })
|
|
31917
31973
|
});
|
|
31918
31974
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
31919
31975
|
|
|
31920
31976
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
31921
|
-
import { z as
|
|
31922
|
-
var TransactionV2CancelInputSchema =
|
|
31923
|
-
transactionId:
|
|
31977
|
+
import { z as z461 } from "zod";
|
|
31978
|
+
var TransactionV2CancelInputSchema = z461.object({
|
|
31979
|
+
transactionId: z461.uuid().meta({
|
|
31924
31980
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
31925
31981
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31926
31982
|
})
|
|
31927
31983
|
});
|
|
31928
|
-
var TransactionCancelResultSchema =
|
|
31929
|
-
status:
|
|
31984
|
+
var TransactionCancelResultSchema = z461.object({
|
|
31985
|
+
status: z461.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
31930
31986
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
31931
31987
|
examples: ["cancelled", "cancellation_pending"]
|
|
31932
31988
|
}),
|
|
31933
|
-
cancelTransactionId:
|
|
31989
|
+
cancelTransactionId: z461.string().optional().meta({
|
|
31934
31990
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
31935
31991
|
}),
|
|
31936
|
-
message:
|
|
31992
|
+
message: z461.string().optional().meta({
|
|
31937
31993
|
description: "Human-readable error or status message"
|
|
31938
31994
|
})
|
|
31939
31995
|
});
|
|
31940
31996
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
31941
31997
|
|
|
31942
31998
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
31943
|
-
import { z as
|
|
31999
|
+
import { z as z462 } from "zod";
|
|
31944
32000
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
31945
32001
|
status: enumField([...transactionRequestStates]),
|
|
31946
32002
|
operationType: textField(),
|
|
@@ -31953,12 +32009,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
|
|
|
31953
32009
|
defaultSort: "createdAt",
|
|
31954
32010
|
globalSearch: true
|
|
31955
32011
|
});
|
|
31956
|
-
var TransactionListItemSchema =
|
|
31957
|
-
transactionId:
|
|
32012
|
+
var TransactionListItemSchema = z462.object({
|
|
32013
|
+
transactionId: z462.uuid().meta({
|
|
31958
32014
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31959
32015
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31960
32016
|
}),
|
|
31961
|
-
kind:
|
|
32017
|
+
kind: z462.string().meta({
|
|
31962
32018
|
description: "Mutation kind submitted to the queue",
|
|
31963
32019
|
examples: ["token.create", "token.mint"]
|
|
31964
32020
|
}),
|
|
@@ -31966,19 +32022,19 @@ var TransactionListItemSchema = z461.object({
|
|
|
31966
32022
|
description: "Current transaction queue state",
|
|
31967
32023
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
31968
32024
|
}),
|
|
31969
|
-
subStatus:
|
|
32025
|
+
subStatus: z462.string().nullable().meta({
|
|
31970
32026
|
description: "Optional queue sub-status with finer-grained detail",
|
|
31971
32027
|
examples: ["TIMEOUT", null]
|
|
31972
32028
|
}),
|
|
31973
|
-
fromAddress:
|
|
32029
|
+
fromAddress: z462.string().meta({
|
|
31974
32030
|
description: "Sender wallet address",
|
|
31975
32031
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31976
32032
|
}),
|
|
31977
|
-
chainId:
|
|
32033
|
+
chainId: z462.number().int().meta({
|
|
31978
32034
|
description: "Target chain ID",
|
|
31979
32035
|
examples: [1]
|
|
31980
32036
|
}),
|
|
31981
|
-
transactionHash:
|
|
32037
|
+
transactionHash: z462.string().nullable().meta({
|
|
31982
32038
|
description: "Primary transaction hash once broadcast",
|
|
31983
32039
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
31984
32040
|
}),
|
|
@@ -31998,19 +32054,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
31998
32054
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
31999
32055
|
|
|
32000
32056
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
32001
|
-
import { z as
|
|
32002
|
-
var TransactionStatusInputSchema =
|
|
32003
|
-
transactionId:
|
|
32057
|
+
import { z as z463 } from "zod";
|
|
32058
|
+
var TransactionStatusInputSchema = z463.object({
|
|
32059
|
+
transactionId: z463.uuid().meta({
|
|
32004
32060
|
description: "Queue transaction identifier (UUIDv7)",
|
|
32005
32061
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
32006
32062
|
})
|
|
32007
32063
|
});
|
|
32008
|
-
var TransactionStatusOutputSchema =
|
|
32009
|
-
transactionId:
|
|
32064
|
+
var TransactionStatusOutputSchema = z463.object({
|
|
32065
|
+
transactionId: z463.uuid().meta({
|
|
32010
32066
|
description: "Queue transaction identifier (UUIDv7)",
|
|
32011
32067
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
32012
32068
|
}),
|
|
32013
|
-
kind:
|
|
32069
|
+
kind: z463.string().meta({
|
|
32014
32070
|
description: "Mutation kind submitted to the queue",
|
|
32015
32071
|
examples: ["token.create", "token.mint"]
|
|
32016
32072
|
}),
|
|
@@ -32018,23 +32074,23 @@ var TransactionStatusOutputSchema = z462.object({
|
|
|
32018
32074
|
description: "Current transaction queue state",
|
|
32019
32075
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
32020
32076
|
}),
|
|
32021
|
-
subStatus:
|
|
32077
|
+
subStatus: z463.string().nullable().meta({
|
|
32022
32078
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
32023
32079
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
32024
32080
|
}),
|
|
32025
|
-
transactionHash:
|
|
32081
|
+
transactionHash: z463.string().nullable().meta({
|
|
32026
32082
|
description: "Primary transaction hash once broadcast",
|
|
32027
32083
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
32028
32084
|
}),
|
|
32029
|
-
transactionHashes:
|
|
32085
|
+
transactionHashes: z463.array(z463.string()).optional().meta({
|
|
32030
32086
|
description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
|
|
32031
32087
|
examples: [["0xabc...", "0xdef..."]]
|
|
32032
32088
|
}),
|
|
32033
|
-
blockNumber:
|
|
32089
|
+
blockNumber: z463.string().nullable().meta({
|
|
32034
32090
|
description: "Confirmed block number when available",
|
|
32035
32091
|
examples: ["12345678", null]
|
|
32036
32092
|
}),
|
|
32037
|
-
errorMessage:
|
|
32093
|
+
errorMessage: z463.string().nullable().meta({
|
|
32038
32094
|
description: "Human-readable error or timeout detail when available",
|
|
32039
32095
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
32040
32096
|
}),
|
|
@@ -32113,12 +32169,12 @@ var transactionV2Contract = {
|
|
|
32113
32169
|
};
|
|
32114
32170
|
|
|
32115
32171
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
32116
|
-
import { z as
|
|
32172
|
+
import { z as z469 } from "zod";
|
|
32117
32173
|
|
|
32118
32174
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
32119
|
-
import { z as
|
|
32120
|
-
var UserReadByNationalIdInputSchema =
|
|
32121
|
-
nationalId:
|
|
32175
|
+
import { z as z464 } from "zod";
|
|
32176
|
+
var UserReadByNationalIdInputSchema = z464.object({
|
|
32177
|
+
nationalId: z464.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
32122
32178
|
});
|
|
32123
32179
|
|
|
32124
32180
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
|
|
@@ -32136,13 +32192,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
|
|
|
32136
32192
|
var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
32137
32193
|
|
|
32138
32194
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
|
|
32139
|
-
import { z as
|
|
32140
|
-
var TokenAssetV2Schema =
|
|
32195
|
+
import { z as z465 } from "zod";
|
|
32196
|
+
var TokenAssetV2Schema = z465.object({
|
|
32141
32197
|
id: ethereumAddress.meta({
|
|
32142
32198
|
description: "The token contract address",
|
|
32143
32199
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
32144
32200
|
}),
|
|
32145
|
-
name:
|
|
32201
|
+
name: z465.string().meta({
|
|
32146
32202
|
description: "The token name",
|
|
32147
32203
|
examples: ["Bond Token", "Equity Share"]
|
|
32148
32204
|
}),
|
|
@@ -32162,19 +32218,19 @@ var TokenAssetV2Schema = z464.object({
|
|
|
32162
32218
|
description: "The total supply of the token (raw on-chain uint256)",
|
|
32163
32219
|
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
32164
32220
|
}),
|
|
32165
|
-
bond:
|
|
32166
|
-
isMatured:
|
|
32221
|
+
bond: z465.object({
|
|
32222
|
+
isMatured: z465.boolean().meta({
|
|
32167
32223
|
description: "Whether the bond is matured",
|
|
32168
32224
|
examples: [true, false]
|
|
32169
32225
|
})
|
|
32170
32226
|
}).optional().nullable().meta({ description: "The bond details", examples: [] }),
|
|
32171
|
-
yield:
|
|
32172
|
-
schedule:
|
|
32227
|
+
yield: z465.object({
|
|
32228
|
+
schedule: z465.object({
|
|
32173
32229
|
id: ethereumAddress.meta({
|
|
32174
32230
|
description: "The yield schedule contract address",
|
|
32175
32231
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
32176
32232
|
}),
|
|
32177
|
-
denominationAsset:
|
|
32233
|
+
denominationAsset: z465.object({
|
|
32178
32234
|
id: ethereumAddress.meta({
|
|
32179
32235
|
description: "The denomination asset contract address",
|
|
32180
32236
|
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
@@ -32194,8 +32250,8 @@ var TokenAssetV2Schema = z464.object({
|
|
|
32194
32250
|
}).nullable().meta({ description: "The yield schedule details", examples: [] })
|
|
32195
32251
|
}).nullable().meta({ description: "The yield details", examples: [] })
|
|
32196
32252
|
});
|
|
32197
|
-
var UserAssetBalanceV2ItemSchema =
|
|
32198
|
-
id:
|
|
32253
|
+
var UserAssetBalanceV2ItemSchema = z465.object({
|
|
32254
|
+
id: z465.uuid().meta({
|
|
32199
32255
|
description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
|
|
32200
32256
|
examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
|
|
32201
32257
|
}),
|
|
@@ -32215,7 +32271,7 @@ var UserAssetBalanceV2ItemSchema = z464.object({
|
|
|
32215
32271
|
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.",
|
|
32216
32272
|
examples: ["5.00", null]
|
|
32217
32273
|
}),
|
|
32218
|
-
priceInBaseCurrencyReliable:
|
|
32274
|
+
priceInBaseCurrencyReliable: z465.boolean().meta({
|
|
32219
32275
|
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.",
|
|
32220
32276
|
examples: [true, false]
|
|
32221
32277
|
}),
|
|
@@ -32267,10 +32323,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
|
|
|
32267
32323
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
32268
32324
|
|
|
32269
32325
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
32270
|
-
import { z as
|
|
32326
|
+
import { z as z468 } from "zod";
|
|
32271
32327
|
|
|
32272
32328
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
|
|
32273
|
-
import { z as
|
|
32329
|
+
import { z as z466 } from "zod";
|
|
32274
32330
|
var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
32275
32331
|
fileName: textField(),
|
|
32276
32332
|
documentType: enumField(kycDocumentTypes, { facetable: true }),
|
|
@@ -32281,19 +32337,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
32281
32337
|
var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
|
|
32282
32338
|
defaultSort: "uploadedAt"
|
|
32283
32339
|
});
|
|
32284
|
-
var KycProfileVersionDocumentsV2ListItemSchema =
|
|
32285
|
-
id:
|
|
32340
|
+
var KycProfileVersionDocumentsV2ListItemSchema = z466.object({
|
|
32341
|
+
id: z466.string(),
|
|
32286
32342
|
documentType: kycDocumentType(),
|
|
32287
|
-
fileName:
|
|
32288
|
-
fileSize:
|
|
32289
|
-
mimeType:
|
|
32343
|
+
fileName: z466.string(),
|
|
32344
|
+
fileSize: z466.number(),
|
|
32345
|
+
mimeType: z466.string(),
|
|
32290
32346
|
uploadedAt: timestamp(),
|
|
32291
|
-
uploadedBy:
|
|
32347
|
+
uploadedBy: z466.string().nullable()
|
|
32292
32348
|
});
|
|
32293
32349
|
var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
|
|
32294
32350
|
|
|
32295
32351
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
|
|
32296
|
-
import { z as
|
|
32352
|
+
import { z as z467 } from "zod";
|
|
32297
32353
|
var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
|
|
32298
32354
|
var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
|
|
32299
32355
|
var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
@@ -32306,21 +32362,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
|
32306
32362
|
var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
|
|
32307
32363
|
defaultSort: "versionNumber"
|
|
32308
32364
|
});
|
|
32309
|
-
var KycProfileVersionsV2ListItemSchema =
|
|
32310
|
-
id:
|
|
32311
|
-
versionNumber:
|
|
32365
|
+
var KycProfileVersionsV2ListItemSchema = z467.object({
|
|
32366
|
+
id: z467.string(),
|
|
32367
|
+
versionNumber: z467.number(),
|
|
32312
32368
|
status: kycVersionStatus(),
|
|
32313
32369
|
createdAt: timestamp(),
|
|
32314
|
-
createdBy:
|
|
32370
|
+
createdBy: z467.string().nullable(),
|
|
32315
32371
|
submittedAt: timestamp().nullable(),
|
|
32316
|
-
submittedBy:
|
|
32372
|
+
submittedBy: z467.string().nullable(),
|
|
32317
32373
|
reviewedAt: timestamp().nullable(),
|
|
32318
|
-
reviewedBy:
|
|
32319
|
-
reviewOutcome:
|
|
32320
|
-
isDraft:
|
|
32321
|
-
isUnderReview:
|
|
32322
|
-
isApproved:
|
|
32323
|
-
isCurrent:
|
|
32374
|
+
reviewedBy: z467.string().nullable(),
|
|
32375
|
+
reviewOutcome: z467.enum(KYC_REVIEW_OUTCOMES).nullable(),
|
|
32376
|
+
isDraft: z467.boolean(),
|
|
32377
|
+
isUnderReview: z467.boolean(),
|
|
32378
|
+
isApproved: z467.boolean(),
|
|
32379
|
+
isCurrent: z467.boolean()
|
|
32324
32380
|
});
|
|
32325
32381
|
var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
|
|
32326
32382
|
|
|
@@ -32338,14 +32394,14 @@ var versionsList = v2Contract.route({
|
|
|
32338
32394
|
description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
|
|
32339
32395
|
successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
|
|
32340
32396
|
tags: [V2_TAG.userKyc]
|
|
32341
|
-
}).input(v2Input.paramsQuery(
|
|
32397
|
+
}).input(v2Input.paramsQuery(z468.object({ userId: z468.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
|
|
32342
32398
|
var versionsCreate = v2Contract.route({
|
|
32343
32399
|
method: "POST",
|
|
32344
32400
|
path: "/kyc-profiles/{userId}/versions",
|
|
32345
32401
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
32346
32402
|
successDescription: "KYC profile version created successfully.",
|
|
32347
32403
|
tags: [V2_TAG.userKyc]
|
|
32348
|
-
}).input(v2Input.paramsBody(
|
|
32404
|
+
}).input(v2Input.paramsBody(z468.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
32349
32405
|
var versionRead = v2Contract.route({
|
|
32350
32406
|
method: "GET",
|
|
32351
32407
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -32359,7 +32415,7 @@ var versionUpdate = v2Contract.route({
|
|
|
32359
32415
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
32360
32416
|
successDescription: "KYC profile version updated successfully.",
|
|
32361
32417
|
tags: [V2_TAG.userKyc]
|
|
32362
|
-
}).input(v2Input.paramsBody(
|
|
32418
|
+
}).input(v2Input.paramsBody(z468.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
32363
32419
|
var versionSubmit = v2Contract.route({
|
|
32364
32420
|
method: "POST",
|
|
32365
32421
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -32373,28 +32429,28 @@ var versionApprove = v2Contract.route({
|
|
|
32373
32429
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
32374
32430
|
successDescription: "KYC profile version approved.",
|
|
32375
32431
|
tags: [V2_TAG.userKyc]
|
|
32376
|
-
}).input(v2Input.paramsBody(
|
|
32432
|
+
}).input(v2Input.paramsBody(z468.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
32377
32433
|
var versionReject = v2Contract.route({
|
|
32378
32434
|
method: "POST",
|
|
32379
32435
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
32380
32436
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
32381
32437
|
successDescription: "KYC profile version rejected.",
|
|
32382
32438
|
tags: [V2_TAG.userKyc]
|
|
32383
|
-
}).input(v2Input.paramsBody(
|
|
32439
|
+
}).input(v2Input.paramsBody(z468.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
32384
32440
|
var versionRequestUpdate = v2Contract.route({
|
|
32385
32441
|
method: "POST",
|
|
32386
32442
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
32387
32443
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
32388
32444
|
successDescription: "Update request created successfully.",
|
|
32389
32445
|
tags: [V2_TAG.userKyc]
|
|
32390
|
-
}).input(v2Input.paramsBody(
|
|
32446
|
+
}).input(v2Input.paramsBody(z468.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
32391
32447
|
var documentsList = v2Contract.route({
|
|
32392
32448
|
method: "GET",
|
|
32393
32449
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
32394
32450
|
description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
|
|
32395
32451
|
successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
|
|
32396
32452
|
tags: [V2_TAG.userKyc]
|
|
32397
|
-
}).input(v2Input.paramsQuery(
|
|
32453
|
+
}).input(v2Input.paramsQuery(z468.object({ versionId: z468.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
|
|
32398
32454
|
var documentsDelete = v2Contract.route({
|
|
32399
32455
|
method: "DELETE",
|
|
32400
32456
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
|
|
@@ -32408,7 +32464,7 @@ var documentsConfirmUpload = v2Contract.route({
|
|
|
32408
32464
|
description: "Upload a KYC document through DAPI so the payload is encrypted before object storage.",
|
|
32409
32465
|
successDescription: "Document uploaded successfully.",
|
|
32410
32466
|
tags: [V2_TAG.userKyc]
|
|
32411
|
-
}).input(v2Input.paramsBody(
|
|
32467
|
+
}).input(v2Input.paramsBody(z468.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
32412
32468
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
32413
32469
|
method: "POST",
|
|
32414
32470
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -32485,14 +32541,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
32485
32541
|
description: "Read a single user by their internal database ID.",
|
|
32486
32542
|
successDescription: "User retrieved successfully.",
|
|
32487
32543
|
tags: [V2_TAG.user]
|
|
32488
|
-
}).input(v2Input.params(
|
|
32544
|
+
}).input(v2Input.params(z469.object({ userId: z469.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
32489
32545
|
var readByWallet3 = v2Contract.route({
|
|
32490
32546
|
method: "GET",
|
|
32491
32547
|
path: "/wallets/{wallet}/user",
|
|
32492
32548
|
description: "Read a single user by their Ethereum wallet address.",
|
|
32493
32549
|
successDescription: "User retrieved successfully.",
|
|
32494
32550
|
tags: [V2_TAG.user]
|
|
32495
|
-
}).input(v2Input.params(
|
|
32551
|
+
}).input(v2Input.params(z469.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
32496
32552
|
var readByNationalId = v2Contract.route({
|
|
32497
32553
|
method: "GET",
|
|
32498
32554
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -32601,30 +32657,30 @@ var userV2Contract = {
|
|
|
32601
32657
|
};
|
|
32602
32658
|
|
|
32603
32659
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
|
|
32604
|
-
import { z as
|
|
32605
|
-
var WebhooksV2ChainOfCustodyInputSchema =
|
|
32606
|
-
evtId:
|
|
32607
|
-
});
|
|
32608
|
-
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(
|
|
32609
|
-
evtId:
|
|
32610
|
-
hops:
|
|
32611
|
-
stage:
|
|
32612
|
-
contentHash:
|
|
32613
|
-
signedBy:
|
|
32614
|
-
recordedAt:
|
|
32660
|
+
import { z as z470 } from "zod";
|
|
32661
|
+
var WebhooksV2ChainOfCustodyInputSchema = z470.object({
|
|
32662
|
+
evtId: z470.string().trim().min(1)
|
|
32663
|
+
});
|
|
32664
|
+
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z470.object({
|
|
32665
|
+
evtId: z470.string(),
|
|
32666
|
+
hops: z470.array(z470.object({
|
|
32667
|
+
stage: z470.string(),
|
|
32668
|
+
contentHash: z470.string(),
|
|
32669
|
+
signedBy: z470.string().optional(),
|
|
32670
|
+
recordedAt: z470.coerce.date()
|
|
32615
32671
|
})),
|
|
32616
|
-
merkleRoot:
|
|
32617
|
-
platformSignature:
|
|
32672
|
+
merkleRoot: z470.string(),
|
|
32673
|
+
platformSignature: z470.string()
|
|
32618
32674
|
}));
|
|
32619
32675
|
|
|
32620
32676
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
32621
|
-
import { z as
|
|
32677
|
+
import { z as z472 } from "zod";
|
|
32622
32678
|
|
|
32623
32679
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
|
|
32624
|
-
import { z as
|
|
32625
|
-
var WebhookPayloadShapeSchema =
|
|
32626
|
-
var WebhookBreakerStateSchema =
|
|
32627
|
-
var WebhookDeliveryFailureClassSchema =
|
|
32680
|
+
import { z as z471 } from "zod";
|
|
32681
|
+
var WebhookPayloadShapeSchema = z471.enum(["thin", "fat"]);
|
|
32682
|
+
var WebhookBreakerStateSchema = z471.enum(["closed", "half_open", "open"]);
|
|
32683
|
+
var WebhookDeliveryFailureClassSchema = z471.enum([
|
|
32628
32684
|
"DNS_FAIL",
|
|
32629
32685
|
"TLS_FAIL",
|
|
32630
32686
|
"CONNECT_TIMEOUT",
|
|
@@ -32636,35 +32692,35 @@ var WebhookDeliveryFailureClassSchema = z470.enum([
|
|
|
32636
32692
|
"RECEIPT_INVALID_SIG",
|
|
32637
32693
|
"RECEIPT_HASH_MISMATCH"
|
|
32638
32694
|
]);
|
|
32639
|
-
var WebhookFinalityStateSchema =
|
|
32640
|
-
var WebhookSigningSecretStatusSchema =
|
|
32641
|
-
var WebhookFatEventsAcknowledgmentSchema =
|
|
32642
|
-
acknowledgedAt:
|
|
32643
|
-
acknowledgedByUserId:
|
|
32644
|
-
fieldsAcknowledged:
|
|
32645
|
-
});
|
|
32646
|
-
var WebhookEndpointSchema =
|
|
32647
|
-
id:
|
|
32648
|
-
tenantId:
|
|
32649
|
-
systemId:
|
|
32650
|
-
url:
|
|
32651
|
-
displayName:
|
|
32652
|
-
subscriptions:
|
|
32695
|
+
var WebhookFinalityStateSchema = z471.enum(["pending", "provisional", "final", "retracted", "recalled"]);
|
|
32696
|
+
var WebhookSigningSecretStatusSchema = z471.enum(["active", "previous", "revoked"]);
|
|
32697
|
+
var WebhookFatEventsAcknowledgmentSchema = z471.object({
|
|
32698
|
+
acknowledgedAt: z471.coerce.date(),
|
|
32699
|
+
acknowledgedByUserId: z471.string(),
|
|
32700
|
+
fieldsAcknowledged: z471.array(z471.string())
|
|
32701
|
+
});
|
|
32702
|
+
var WebhookEndpointSchema = z471.object({
|
|
32703
|
+
id: z471.uuid(),
|
|
32704
|
+
tenantId: z471.string(),
|
|
32705
|
+
systemId: z471.string(),
|
|
32706
|
+
url: z471.url(),
|
|
32707
|
+
displayName: z471.string().nullable(),
|
|
32708
|
+
subscriptions: z471.array(z471.string()),
|
|
32653
32709
|
defaultPayloadShape: WebhookPayloadShapeSchema,
|
|
32654
|
-
counterSignedReceipts:
|
|
32710
|
+
counterSignedReceipts: z471.boolean(),
|
|
32655
32711
|
breakerState: WebhookBreakerStateSchema,
|
|
32656
|
-
disabledAt:
|
|
32657
|
-
disabledReason:
|
|
32712
|
+
disabledAt: z471.coerce.date().nullable(),
|
|
32713
|
+
disabledReason: z471.string().nullable(),
|
|
32658
32714
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
|
|
32659
|
-
secret:
|
|
32660
|
-
activeVersion:
|
|
32661
|
-
previousVersion:
|
|
32662
|
-
previousRevokesAt:
|
|
32663
|
-
lastUsedAt:
|
|
32715
|
+
secret: z471.object({
|
|
32716
|
+
activeVersion: z471.number().int().positive().nullable(),
|
|
32717
|
+
previousVersion: z471.number().int().positive().nullable(),
|
|
32718
|
+
previousRevokesAt: z471.coerce.date().nullable(),
|
|
32719
|
+
lastUsedAt: z471.coerce.date().nullable()
|
|
32664
32720
|
}),
|
|
32665
|
-
createdAt:
|
|
32666
|
-
updatedAt:
|
|
32667
|
-
createdByUserId:
|
|
32721
|
+
createdAt: z471.coerce.date(),
|
|
32722
|
+
updatedAt: z471.coerce.date(),
|
|
32723
|
+
createdByUserId: z471.string().nullable()
|
|
32668
32724
|
});
|
|
32669
32725
|
var WEBHOOKS_COLLECTION_FIELDS = {
|
|
32670
32726
|
displayName: textField(),
|
|
@@ -32683,44 +32739,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
|
|
|
32683
32739
|
var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
|
|
32684
32740
|
|
|
32685
32741
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
32686
|
-
var WebhooksV2CreateInputSchema =
|
|
32687
|
-
url:
|
|
32688
|
-
displayName:
|
|
32689
|
-
subscriptions:
|
|
32742
|
+
var WebhooksV2CreateInputSchema = z472.object({
|
|
32743
|
+
url: z472.url(),
|
|
32744
|
+
displayName: z472.string().trim().min(1).max(200).optional(),
|
|
32745
|
+
subscriptions: z472.array(z472.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
|
|
32690
32746
|
defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
|
|
32691
|
-
counterSignedReceipts:
|
|
32747
|
+
counterSignedReceipts: z472.boolean().default(false)
|
|
32692
32748
|
});
|
|
32693
32749
|
var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
|
|
32694
|
-
signingSecret:
|
|
32750
|
+
signingSecret: z472.string().nullable()
|
|
32695
32751
|
});
|
|
32696
32752
|
var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
|
|
32697
32753
|
|
|
32698
32754
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
|
|
32699
|
-
import { z as
|
|
32700
|
-
var WebhooksV2DeleteInputSchema =
|
|
32701
|
-
id:
|
|
32755
|
+
import { z as z473 } from "zod";
|
|
32756
|
+
var WebhooksV2DeleteInputSchema = z473.object({
|
|
32757
|
+
id: z473.uuid()
|
|
32702
32758
|
});
|
|
32703
32759
|
var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
|
|
32704
32760
|
|
|
32705
32761
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
|
|
32706
|
-
import { z as
|
|
32707
|
-
var WebhookDeliveryStatusSchema =
|
|
32708
|
-
var WebhookDeliverySchema =
|
|
32709
|
-
id:
|
|
32710
|
-
eventOutboxId:
|
|
32711
|
-
endpointId:
|
|
32712
|
-
tenantId:
|
|
32713
|
-
evtId:
|
|
32714
|
-
eventType:
|
|
32715
|
-
attemptN:
|
|
32716
|
-
attemptedAt:
|
|
32717
|
-
responseStatus:
|
|
32762
|
+
import { z as z474 } from "zod";
|
|
32763
|
+
var WebhookDeliveryStatusSchema = z474.enum(["pending", "delivered", "failed"]);
|
|
32764
|
+
var WebhookDeliverySchema = z474.object({
|
|
32765
|
+
id: z474.uuid(),
|
|
32766
|
+
eventOutboxId: z474.uuid(),
|
|
32767
|
+
endpointId: z474.uuid(),
|
|
32768
|
+
tenantId: z474.string(),
|
|
32769
|
+
evtId: z474.string(),
|
|
32770
|
+
eventType: z474.string(),
|
|
32771
|
+
attemptN: z474.number().int().nonnegative(),
|
|
32772
|
+
attemptedAt: z474.coerce.date(),
|
|
32773
|
+
responseStatus: z474.number().int().nullable(),
|
|
32718
32774
|
failureClass: WebhookDeliveryFailureClassSchema.nullable(),
|
|
32719
32775
|
status: WebhookDeliveryStatusSchema,
|
|
32720
|
-
deliveredAt:
|
|
32721
|
-
isReplay:
|
|
32722
|
-
isTest:
|
|
32723
|
-
traceId:
|
|
32776
|
+
deliveredAt: z474.coerce.date().nullable(),
|
|
32777
|
+
isReplay: z474.boolean(),
|
|
32778
|
+
isTest: z474.boolean(),
|
|
32779
|
+
traceId: z474.string().nullable()
|
|
32724
32780
|
});
|
|
32725
32781
|
var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
|
|
32726
32782
|
status: enumField(["pending", "delivered", "failed"]),
|
|
@@ -32746,167 +32802,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
|
|
|
32746
32802
|
defaultSort: "attemptedAt",
|
|
32747
32803
|
globalSearch: false
|
|
32748
32804
|
});
|
|
32749
|
-
var WebhooksV2DeliveriesListParamsSchema =
|
|
32750
|
-
id:
|
|
32805
|
+
var WebhooksV2DeliveriesListParamsSchema = z474.object({
|
|
32806
|
+
id: z474.uuid()
|
|
32751
32807
|
});
|
|
32752
32808
|
var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
|
|
32753
32809
|
|
|
32754
32810
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
|
|
32755
|
-
import { z as
|
|
32756
|
-
var WebhooksV2DeliveriesReadInputSchema =
|
|
32757
|
-
id:
|
|
32758
|
-
deliveryId:
|
|
32811
|
+
import { z as z475 } from "zod";
|
|
32812
|
+
var WebhooksV2DeliveriesReadInputSchema = z475.object({
|
|
32813
|
+
id: z475.uuid(),
|
|
32814
|
+
deliveryId: z475.uuid()
|
|
32759
32815
|
});
|
|
32760
32816
|
var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
|
|
32761
|
-
request:
|
|
32762
|
-
payload:
|
|
32763
|
-
signedHeaders:
|
|
32764
|
-
signedStringPreview:
|
|
32817
|
+
request: z475.object({
|
|
32818
|
+
payload: z475.record(z475.string(), z475.json()),
|
|
32819
|
+
signedHeaders: z475.record(z475.string(), z475.union([z475.string(), z475.array(z475.string())])),
|
|
32820
|
+
signedStringPreview: z475.string()
|
|
32765
32821
|
}),
|
|
32766
|
-
response:
|
|
32767
|
-
headers:
|
|
32768
|
-
body:
|
|
32769
|
-
timings:
|
|
32770
|
-
dnsMs:
|
|
32771
|
-
tlsMs:
|
|
32772
|
-
connectMs:
|
|
32773
|
-
ttfbMs:
|
|
32822
|
+
response: z475.object({
|
|
32823
|
+
headers: z475.record(z475.string(), z475.union([z475.string(), z475.array(z475.string())])).nullable(),
|
|
32824
|
+
body: z475.string().nullable(),
|
|
32825
|
+
timings: z475.object({
|
|
32826
|
+
dnsMs: z475.number().int().nullable(),
|
|
32827
|
+
tlsMs: z475.number().int().nullable(),
|
|
32828
|
+
connectMs: z475.number().int().nullable(),
|
|
32829
|
+
ttfbMs: z475.number().int().nullable()
|
|
32774
32830
|
})
|
|
32775
32831
|
})
|
|
32776
32832
|
});
|
|
32777
32833
|
var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
|
|
32778
32834
|
|
|
32779
32835
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
|
|
32780
|
-
import { z as
|
|
32781
|
-
var WebhooksV2DeliveriesRetryInputSchema =
|
|
32782
|
-
id:
|
|
32783
|
-
deliveryId:
|
|
32836
|
+
import { z as z476 } from "zod";
|
|
32837
|
+
var WebhooksV2DeliveriesRetryInputSchema = z476.object({
|
|
32838
|
+
id: z476.uuid(),
|
|
32839
|
+
deliveryId: z476.uuid()
|
|
32784
32840
|
});
|
|
32785
|
-
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(
|
|
32786
|
-
deliveryId:
|
|
32787
|
-
scheduled:
|
|
32841
|
+
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z476.object({
|
|
32842
|
+
deliveryId: z476.uuid(),
|
|
32843
|
+
scheduled: z476.boolean()
|
|
32788
32844
|
}));
|
|
32789
32845
|
|
|
32790
32846
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
|
|
32791
|
-
import { z as
|
|
32792
|
-
var WebhooksV2ReadInputSchema =
|
|
32793
|
-
id:
|
|
32847
|
+
import { z as z477 } from "zod";
|
|
32848
|
+
var WebhooksV2ReadInputSchema = z477.object({
|
|
32849
|
+
id: z477.uuid()
|
|
32794
32850
|
});
|
|
32795
32851
|
var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
|
|
32796
32852
|
|
|
32797
32853
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
|
|
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()
|
|
32811
|
-
}));
|
|
32812
|
-
|
|
32813
|
-
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
|
|
32814
32854
|
import { z as z478 } from "zod";
|
|
32815
|
-
var
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
});
|
|
32821
|
-
var
|
|
32822
|
-
evtId: z478.string()
|
|
32823
|
-
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
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()
|
|
32855
|
+
var WebhooksV2RecallsParamsSchema = z478.object({
|
|
32856
|
+
evtId: z478.string().trim().min(1)
|
|
32857
|
+
});
|
|
32858
|
+
var WebhooksV2RecallsBodySchema = z478.object({
|
|
32859
|
+
reason: z478.string().trim().min(1).max(2000)
|
|
32860
|
+
});
|
|
32861
|
+
var WebhooksV2RecallsOutputSchema = createSingleResponse(z478.object({
|
|
32862
|
+
evtId: z478.string(),
|
|
32863
|
+
recalledEvtId: z478.string(),
|
|
32864
|
+
supersedes: z478.string(),
|
|
32865
|
+
reason: z478.string(),
|
|
32866
|
+
recalledByUserId: z478.string()
|
|
32834
32867
|
}));
|
|
32835
32868
|
|
|
32836
|
-
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.
|
|
32869
|
+
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
|
|
32837
32870
|
import { z as z479 } from "zod";
|
|
32838
|
-
var
|
|
32871
|
+
var WebhooksV2ReplayByRangeSchema = z479.object({
|
|
32872
|
+
fromBlock: z479.coerce.bigint(),
|
|
32873
|
+
toBlock: z479.coerce.bigint().optional(),
|
|
32874
|
+
chainId: z479.coerce.number().int().positive(),
|
|
32875
|
+
confirmLargeRange: z479.boolean().default(false)
|
|
32876
|
+
});
|
|
32877
|
+
var WebhooksV2ReplayByEventSchema = z479.object({
|
|
32878
|
+
evtId: z479.string().trim().min(1),
|
|
32879
|
+
chainId: z479.coerce.number().int().positive().optional()
|
|
32880
|
+
});
|
|
32881
|
+
var WebhooksV2ReplaysParamsSchema = z479.object({
|
|
32839
32882
|
id: z479.uuid()
|
|
32840
32883
|
});
|
|
32841
|
-
var
|
|
32884
|
+
var WebhooksV2ReplaysBodySchema = z479.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
|
|
32885
|
+
var WebhooksV2ReplaysOutputSchema = createSingleResponse(z479.object({
|
|
32886
|
+
replayId: z479.uuid(),
|
|
32842
32887
|
endpointId: z479.uuid(),
|
|
32843
|
-
|
|
32844
|
-
|
|
32845
|
-
revokedVersion: z479.number().int().positive()
|
|
32888
|
+
eventsEnqueued: z479.number().int().nonnegative(),
|
|
32889
|
+
snapshotToBlock: z479.string().nullable()
|
|
32846
32890
|
}));
|
|
32847
32891
|
|
|
32848
|
-
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.
|
|
32892
|
+
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
|
|
32849
32893
|
import { z as z480 } from "zod";
|
|
32850
|
-
var
|
|
32894
|
+
var WebhooksV2RevokeSecretInputSchema = z480.object({
|
|
32851
32895
|
id: z480.uuid()
|
|
32852
32896
|
});
|
|
32853
|
-
var
|
|
32897
|
+
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z480.object({
|
|
32854
32898
|
endpointId: z480.uuid(),
|
|
32855
32899
|
activeVersion: z480.number().int().positive(),
|
|
32856
32900
|
previousVersion: z480.number().int().positive().nullable(),
|
|
32857
|
-
|
|
32858
|
-
signingSecret: z480.string().nullable()
|
|
32901
|
+
revokedVersion: z480.number().int().positive()
|
|
32859
32902
|
}));
|
|
32860
32903
|
|
|
32861
|
-
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.
|
|
32904
|
+
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
|
|
32862
32905
|
import { z as z481 } from "zod";
|
|
32863
|
-
var
|
|
32864
|
-
|
|
32906
|
+
var WebhooksV2RotateSecretInputSchema = z481.object({
|
|
32907
|
+
id: z481.uuid()
|
|
32908
|
+
});
|
|
32909
|
+
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z481.object({
|
|
32910
|
+
endpointId: z481.uuid(),
|
|
32911
|
+
activeVersion: z481.number().int().positive(),
|
|
32912
|
+
previousVersion: z481.number().int().positive().nullable(),
|
|
32913
|
+
previousRevokesAt: z481.coerce.date().nullable(),
|
|
32914
|
+
signingSecret: z481.string().nullable()
|
|
32915
|
+
}));
|
|
32916
|
+
|
|
32917
|
+
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
|
|
32918
|
+
import { z as z482 } from "zod";
|
|
32919
|
+
var WebhooksV2StatsInputSchema = z482.object({
|
|
32920
|
+
endpointId: z482.uuid().optional()
|
|
32865
32921
|
});
|
|
32866
|
-
var WebhooksV2StatsOutputDataSchema =
|
|
32867
|
-
totalDeliveries:
|
|
32868
|
-
delivered:
|
|
32869
|
-
failed:
|
|
32870
|
-
hourlyBuckets:
|
|
32922
|
+
var WebhooksV2StatsOutputDataSchema = z482.object({
|
|
32923
|
+
totalDeliveries: z482.number().int().min(0),
|
|
32924
|
+
delivered: z482.number().int().min(0),
|
|
32925
|
+
failed: z482.number().int().min(0),
|
|
32926
|
+
hourlyBuckets: z482.array(z482.number().int().min(0)).length(24)
|
|
32871
32927
|
});
|
|
32872
32928
|
var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
|
|
32873
32929
|
|
|
32874
32930
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
|
|
32875
|
-
import { z as
|
|
32876
|
-
var WebhooksV2TestEventParamsSchema =
|
|
32877
|
-
id:
|
|
32931
|
+
import { z as z483 } from "zod";
|
|
32932
|
+
var WebhooksV2TestEventParamsSchema = z483.object({
|
|
32933
|
+
id: z483.uuid()
|
|
32878
32934
|
});
|
|
32879
|
-
var WebhooksV2TestEventBodySchema =
|
|
32880
|
-
eventType:
|
|
32935
|
+
var WebhooksV2TestEventBodySchema = z483.object({
|
|
32936
|
+
eventType: z483.string().trim().min(1).default("webhook.test.final")
|
|
32881
32937
|
});
|
|
32882
|
-
var WebhooksV2TestEventOutputSchema = createSingleResponse(
|
|
32883
|
-
evtId:
|
|
32884
|
-
deliveryId:
|
|
32885
|
-
isTest:
|
|
32938
|
+
var WebhooksV2TestEventOutputSchema = createSingleResponse(z483.object({
|
|
32939
|
+
evtId: z483.string(),
|
|
32940
|
+
deliveryId: z483.uuid().nullable(),
|
|
32941
|
+
isTest: z483.literal(true)
|
|
32886
32942
|
}));
|
|
32887
32943
|
|
|
32888
32944
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
|
|
32889
|
-
import { z as
|
|
32890
|
-
var WebhooksV2UpdateParamsSchema =
|
|
32891
|
-
id:
|
|
32945
|
+
import { z as z484 } from "zod";
|
|
32946
|
+
var WebhooksV2UpdateParamsSchema = z484.object({
|
|
32947
|
+
id: z484.uuid()
|
|
32892
32948
|
});
|
|
32893
|
-
var WebhooksV2UpdateBodySchema =
|
|
32894
|
-
url:
|
|
32895
|
-
displayName:
|
|
32896
|
-
subscriptions:
|
|
32949
|
+
var WebhooksV2UpdateBodySchema = z484.object({
|
|
32950
|
+
url: z484.url().optional(),
|
|
32951
|
+
displayName: z484.string().trim().min(1).max(200).nullable().optional(),
|
|
32952
|
+
subscriptions: z484.array(z484.string().trim().min(1)).min(1).optional(),
|
|
32897
32953
|
defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
|
|
32898
|
-
counterSignedReceipts:
|
|
32899
|
-
disabled:
|
|
32900
|
-
disabledReason:
|
|
32954
|
+
counterSignedReceipts: z484.boolean().optional(),
|
|
32955
|
+
disabled: z484.boolean().optional(),
|
|
32956
|
+
disabledReason: z484.string().trim().min(1).max(500).nullable().optional(),
|
|
32901
32957
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
|
|
32902
32958
|
acknowledgedAt: true,
|
|
32903
32959
|
acknowledgedByUserId: true
|
|
32904
32960
|
}).optional()
|
|
32905
32961
|
});
|
|
32906
|
-
var WebhooksV2UpdateQuerySchema =
|
|
32907
|
-
acknowledgePending:
|
|
32962
|
+
var WebhooksV2UpdateQuerySchema = z484.object({
|
|
32963
|
+
acknowledgePending: z484.union([z484.literal("true"), z484.literal(true)]).transform(() => true).optional()
|
|
32908
32964
|
}).optional();
|
|
32909
|
-
var WebhooksV2UpdateInputSchema =
|
|
32965
|
+
var WebhooksV2UpdateInputSchema = z484.object({
|
|
32910
32966
|
params: WebhooksV2UpdateParamsSchema,
|
|
32911
32967
|
body: WebhooksV2UpdateBodySchema,
|
|
32912
32968
|
query: WebhooksV2UpdateQuerySchema
|
|
@@ -33041,21 +33097,21 @@ var webhooksV2Contract = {
|
|
|
33041
33097
|
};
|
|
33042
33098
|
|
|
33043
33099
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
33044
|
-
import { z as
|
|
33100
|
+
import { z as z486 } from "zod";
|
|
33045
33101
|
|
|
33046
33102
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
|
|
33047
|
-
import { z as
|
|
33048
|
-
var WebhookReceiptVerificationFailureClassSchema =
|
|
33049
|
-
var WebhookReceiptSchema =
|
|
33050
|
-
id:
|
|
33051
|
-
deliveryId:
|
|
33052
|
-
evtId:
|
|
33053
|
-
tenantId:
|
|
33054
|
-
endpointId:
|
|
33055
|
-
consumerSignature:
|
|
33056
|
-
innerEventHash:
|
|
33057
|
-
receivedAt:
|
|
33058
|
-
verifiedAt:
|
|
33103
|
+
import { z as z485 } from "zod";
|
|
33104
|
+
var WebhookReceiptVerificationFailureClassSchema = z485.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
|
|
33105
|
+
var WebhookReceiptSchema = z485.object({
|
|
33106
|
+
id: z485.uuid(),
|
|
33107
|
+
deliveryId: z485.uuid(),
|
|
33108
|
+
evtId: z485.string(),
|
|
33109
|
+
tenantId: z485.string(),
|
|
33110
|
+
endpointId: z485.uuid(),
|
|
33111
|
+
consumerSignature: z485.string(),
|
|
33112
|
+
innerEventHash: z485.string(),
|
|
33113
|
+
receivedAt: z485.coerce.date(),
|
|
33114
|
+
verifiedAt: z485.coerce.date().nullable(),
|
|
33059
33115
|
verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
|
|
33060
33116
|
});
|
|
33061
33117
|
var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
|
|
@@ -33072,19 +33128,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
|
|
|
33072
33128
|
var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
|
|
33073
33129
|
|
|
33074
33130
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
33075
|
-
var WebhookReceiptsV2CreateInputSchema =
|
|
33076
|
-
deliveryId:
|
|
33077
|
-
evtId:
|
|
33078
|
-
endpointId:
|
|
33079
|
-
consumerSignature:
|
|
33080
|
-
innerEventHash:
|
|
33131
|
+
var WebhookReceiptsV2CreateInputSchema = z486.object({
|
|
33132
|
+
deliveryId: z486.uuid(),
|
|
33133
|
+
evtId: z486.string().trim().min(1),
|
|
33134
|
+
endpointId: z486.uuid(),
|
|
33135
|
+
consumerSignature: z486.string().trim().min(1),
|
|
33136
|
+
innerEventHash: z486.string().trim().min(1)
|
|
33081
33137
|
});
|
|
33082
33138
|
var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
33083
33139
|
|
|
33084
33140
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
|
|
33085
|
-
import { z as
|
|
33086
|
-
var WebhookReceiptsV2ReadInputSchema =
|
|
33087
|
-
id:
|
|
33141
|
+
import { z as z487 } from "zod";
|
|
33142
|
+
var WebhookReceiptsV2ReadInputSchema = z487.object({
|
|
33143
|
+
id: z487.uuid()
|
|
33088
33144
|
});
|
|
33089
33145
|
var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
33090
33146
|
|
|
@@ -33366,7 +33422,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
33366
33422
|
// package.json
|
|
33367
33423
|
var package_default = {
|
|
33368
33424
|
name: "@settlemint/dalp-sdk",
|
|
33369
|
-
version: "2.1.7-main.
|
|
33425
|
+
version: "2.1.7-main.26372632202",
|
|
33370
33426
|
private: false,
|
|
33371
33427
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
33372
33428
|
homepage: "https://settlemint.com",
|