@settlemint/dalp-sdk 2.1.7-main.26362483911 → 2.1.7-main.26362629665
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 +494 -380
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28720,6 +28720,25 @@ var TokenSetFeeExemptionInputSchema = TokenMutationInputSchema.extend({
|
|
|
28720
28720
|
examples: [true, false]
|
|
28721
28721
|
})
|
|
28722
28722
|
});
|
|
28723
|
+
var TokenFeatureTransactionFeeAccountingCreateBaseSchema = TokenMutationInputSchema.extend({
|
|
28724
|
+
mintFeeBps: feeRateBps().meta({
|
|
28725
|
+
description: "Mint fee rate in basis points (e.g. 200 = 2%).",
|
|
28726
|
+
examples: [200, 0, 1e4]
|
|
28727
|
+
}),
|
|
28728
|
+
burnFeeBps: feeRateBps().meta({
|
|
28729
|
+
description: "Burn fee rate in basis points (e.g. 200 = 2%).",
|
|
28730
|
+
examples: [200, 0, 1e4]
|
|
28731
|
+
}),
|
|
28732
|
+
transferFeeBps: feeRateBps().meta({
|
|
28733
|
+
description: "Transfer fee rate in basis points (e.g. 200 = 2%).",
|
|
28734
|
+
examples: [200, 0, 1e4]
|
|
28735
|
+
}),
|
|
28736
|
+
feeRecipient: nonZeroEthereumAddress.meta({
|
|
28737
|
+
description: "Address that receives reconciled fees (rejects the zero address).",
|
|
28738
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
28739
|
+
})
|
|
28740
|
+
});
|
|
28741
|
+
var TokenFeatureTransactionFeeAccountingCreateBodySchema = TokenFeatureTransactionFeeAccountingCreateBaseSchema.omit({ tokenAddress: true });
|
|
28723
28742
|
|
|
28724
28743
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.voting.schema.ts
|
|
28725
28744
|
import { z as z416 } from "zod";
|
|
@@ -28756,6 +28775,10 @@ var TokenDelegateBySigInputSchema = TokenDelegateInputSchema.extend({
|
|
|
28756
28775
|
examples: ["0x71c7656ec7ab88b098defb751b7401b5f6d8976f71c7656ec7ab88b098defb75"]
|
|
28757
28776
|
})
|
|
28758
28777
|
});
|
|
28778
|
+
var TokenFeatureVotingPowerCreateInputSchema = TokenMutationInputSchema.extend({});
|
|
28779
|
+
var TokenFeatureVotingPowerCreateBodySchema = TokenFeatureVotingPowerCreateInputSchema.omit({
|
|
28780
|
+
tokenAddress: true
|
|
28781
|
+
});
|
|
28759
28782
|
|
|
28760
28783
|
// ../../packages/dalp/api-contract/src/routes/token/routes/mutations/features/token.permit.schema.ts
|
|
28761
28784
|
import { z as z417 } from "zod";
|
|
@@ -29473,6 +29496,13 @@ var featureExternalTransactionFeeCreate = v2Contract.route({
|
|
|
29473
29496
|
successDescription: "External-transaction-fee feature deployed successfully.",
|
|
29474
29497
|
tags: [V2_TAG.token]
|
|
29475
29498
|
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureExternalTransactionFeeCreateBodySchema)).output(mutationOutput);
|
|
29499
|
+
var featureTransactionFeeAccountingCreate = v2Contract.route({
|
|
29500
|
+
method: "POST",
|
|
29501
|
+
path: "/tokens/{tokenAddress}/transaction-fee-accounting/features",
|
|
29502
|
+
description: "Deploy a transaction-fee-accounting feature on a CONFIGURABLE token via the DALPTransactionFeeAccountingFeatureFactory. Encodes ((mintFeeBps, burnFeeBps, transferFeeBps), feeRecipient) as configData and attaches the predicted feature via ISMARTConfigurable.setFeatures.",
|
|
29503
|
+
successDescription: "Transaction-fee-accounting feature deployed successfully.",
|
|
29504
|
+
tags: [V2_TAG.token]
|
|
29505
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureTransactionFeeAccountingCreateBodySchema)).output(mutationOutput);
|
|
29476
29506
|
var setTransactionFeeAccountingRates = v2Contract.route({
|
|
29477
29507
|
method: "PATCH",
|
|
29478
29508
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/rates",
|
|
@@ -29521,6 +29551,13 @@ var delegate = v2Contract.route({
|
|
|
29521
29551
|
successDescription: "Voting power delegated successfully.",
|
|
29522
29552
|
tags: [V2_TAG.token]
|
|
29523
29553
|
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenDelegateInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
29554
|
+
var featureVotingPowerCreate = v2Contract.route({
|
|
29555
|
+
method: "POST",
|
|
29556
|
+
path: "/tokens/{tokenAddress}/voting-power/features",
|
|
29557
|
+
description: "Deploy a voting-power feature on a CONFIGURABLE token via the DALPVotingPowerFeatureFactory. Mirrors the dual-tx Yield create: transaction 1 creates the feature, transaction 2 attaches it through ISMARTConfigurable.setFeatures.",
|
|
29558
|
+
successDescription: "Voting-power feature deployed successfully.",
|
|
29559
|
+
tags: [V2_TAG.token]
|
|
29560
|
+
}).meta({ contractErrors: [...COMMON_CONTRACT_ERRORS] }).input(v2Input.paramsBody(TokenReadInputSchema, TokenFeatureVotingPowerCreateBodySchema)).output(mutationOutput);
|
|
29524
29561
|
var delegateBySig = v2Contract.route({
|
|
29525
29562
|
method: "POST",
|
|
29526
29563
|
path: "/tokens/{tokenAddress}/voting-power/delegations/by-signature",
|
|
@@ -29655,6 +29692,7 @@ var tokenV2MutationsContract = {
|
|
|
29655
29692
|
setExternalTransactionFeeToken,
|
|
29656
29693
|
freezeExternalTransactionFees,
|
|
29657
29694
|
featureExternalTransactionFeeCreate,
|
|
29695
|
+
featureTransactionFeeAccountingCreate,
|
|
29658
29696
|
setTransactionFeeAccountingRates,
|
|
29659
29697
|
setTransactionFeeAccountingRecipient,
|
|
29660
29698
|
freezeTransactionFeeAccountingRates,
|
|
@@ -29662,6 +29700,7 @@ var tokenV2MutationsContract = {
|
|
|
29662
29700
|
setFeeExemption,
|
|
29663
29701
|
delegate,
|
|
29664
29702
|
delegateBySig,
|
|
29703
|
+
featureVotingPowerCreate,
|
|
29665
29704
|
permit,
|
|
29666
29705
|
publishTrigger,
|
|
29667
29706
|
disableTrigger,
|
|
@@ -29674,7 +29713,7 @@ var tokenV2MutationsContract = {
|
|
|
29674
29713
|
};
|
|
29675
29714
|
|
|
29676
29715
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
29677
|
-
import { z as
|
|
29716
|
+
import { z as z445 } from "zod";
|
|
29678
29717
|
|
|
29679
29718
|
// ../../packages/dalp/api-contract/src/routes/token/routes/token.features.schema.ts
|
|
29680
29719
|
import { z as z422 } from "zod";
|
|
@@ -30745,8 +30784,37 @@ var TokenFeeAccrualEventV2ItemSchema = z438.object({
|
|
|
30745
30784
|
});
|
|
30746
30785
|
var TokenFeeAccrualEventsV2OutputSchema = createPaginatedResponse(TokenFeeAccrualEventV2ItemSchema);
|
|
30747
30786
|
|
|
30748
|
-
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.
|
|
30787
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.fee-accrual-payer.schema.ts
|
|
30749
30788
|
import { z as z439 } from "zod";
|
|
30789
|
+
var TokenFeeAccrualPayerV2InputSchema = z439.object({
|
|
30790
|
+
payer: ethereumAddress.meta({
|
|
30791
|
+
description: "Payer address whose accrued fees to summarise.",
|
|
30792
|
+
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
30793
|
+
})
|
|
30794
|
+
});
|
|
30795
|
+
var TokenFeeAccrualPayerBreakdownItemSchema = z439.object({
|
|
30796
|
+
operationType: z439.enum(FEE_ACCRUAL_OPERATION_TYPE_OPTIONS),
|
|
30797
|
+
eventCount: z439.number().int().nonnegative(),
|
|
30798
|
+
totalOperationAmount: bigDecimal(),
|
|
30799
|
+
totalOperationAmountExact: apiBigInt,
|
|
30800
|
+
totalFeeAmount: bigDecimal(),
|
|
30801
|
+
totalFeeAmountExact: apiBigInt
|
|
30802
|
+
});
|
|
30803
|
+
var TokenFeeAccrualPayerV2OutputSchema = z439.object({
|
|
30804
|
+
data: z439.object({
|
|
30805
|
+
payer: ethereumAddress,
|
|
30806
|
+
totalEvents: z439.number().int().nonnegative(),
|
|
30807
|
+
totalFeeAmount: bigDecimal(),
|
|
30808
|
+
totalFeeAmountExact: apiBigInt,
|
|
30809
|
+
totalOperationAmount: bigDecimal(),
|
|
30810
|
+
totalOperationAmountExact: apiBigInt,
|
|
30811
|
+
breakdown: z439.array(TokenFeeAccrualPayerBreakdownItemSchema),
|
|
30812
|
+
recentEvents: z439.array(TokenFeeAccrualEventV2ItemSchema)
|
|
30813
|
+
})
|
|
30814
|
+
});
|
|
30815
|
+
|
|
30816
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.external-fee-collection-events.list.schema.ts
|
|
30817
|
+
import { z as z440 } from "zod";
|
|
30750
30818
|
var EXTERNAL_OPERATION_TYPE_OPTIONS = ["mint", "burn", "transfer", "unknown"];
|
|
30751
30819
|
var TOKEN_EXTERNAL_FEE_COLLECTION_EVENTS_COLLECTION_FIELDS = {
|
|
30752
30820
|
collectedAt: dateField(),
|
|
@@ -30760,22 +30828,22 @@ var TokenExternalFeeCollectionEventsV2InputSchema = createCollectionInputSchema(
|
|
|
30760
30828
|
defaultSort: "-collectedAt",
|
|
30761
30829
|
globalSearch: false
|
|
30762
30830
|
});
|
|
30763
|
-
var TokenExternalFeeCollectionEventV2ItemSchema =
|
|
30764
|
-
id:
|
|
30831
|
+
var TokenExternalFeeCollectionEventV2ItemSchema = z440.object({
|
|
30832
|
+
id: z440.uuid(),
|
|
30765
30833
|
payer: ethereumAddress,
|
|
30766
30834
|
feeToken: ethereumAddress,
|
|
30767
|
-
operationType:
|
|
30835
|
+
operationType: z440.enum(EXTERNAL_OPERATION_TYPE_OPTIONS),
|
|
30768
30836
|
feeAmount: bigDecimal(),
|
|
30769
30837
|
feeAmountExact: apiBigInt,
|
|
30770
30838
|
blockNumber: apiBigInt,
|
|
30771
30839
|
blockTimestamp: timestamp(),
|
|
30772
30840
|
txHash: ethereumHash,
|
|
30773
|
-
logIndex:
|
|
30841
|
+
logIndex: z440.number().int().nonnegative()
|
|
30774
30842
|
});
|
|
30775
30843
|
var TokenExternalFeeCollectionEventsV2OutputSchema = createPaginatedResponse(TokenExternalFeeCollectionEventV2ItemSchema);
|
|
30776
30844
|
|
|
30777
30845
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.feature-permit-replay-history.schema.ts
|
|
30778
|
-
import { z as
|
|
30846
|
+
import { z as z441 } from "zod";
|
|
30779
30847
|
var PERMIT_REPLAY_HISTORY_COLLECTION_FIELDS = {
|
|
30780
30848
|
blockTime: dateField()
|
|
30781
30849
|
};
|
|
@@ -30783,7 +30851,7 @@ var TokenFeaturePermitReplayHistoryV2InputSchema = createCollectionInputSchema(P
|
|
|
30783
30851
|
defaultSort: "-blockTime",
|
|
30784
30852
|
globalSearch: false
|
|
30785
30853
|
});
|
|
30786
|
-
var TokenFeaturePermitReplayHistoryV2ItemSchema =
|
|
30854
|
+
var TokenFeaturePermitReplayHistoryV2ItemSchema = z441.object({
|
|
30787
30855
|
nonce: apiBigInt.meta({
|
|
30788
30856
|
description: "Per-owner sequence number derived from the count of prior projection rows for the same (chainId, tokenAddress, owner) tuple.",
|
|
30789
30857
|
examples: ["0"]
|
|
@@ -30815,10 +30883,10 @@ var TransferApprovalsV2InputSchema = createCollectionInputSchema(TRANSFER_APPROV
|
|
|
30815
30883
|
var TransferApprovalsV2OutputSchema = createPaginatedResponse(TransferApprovalSchema);
|
|
30816
30884
|
|
|
30817
30885
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.treasury-health.schema.ts
|
|
30818
|
-
import { z as
|
|
30886
|
+
import { z as z442 } from "zod";
|
|
30819
30887
|
var TreasuryHealthInputSchema = TokenReadInputSchema;
|
|
30820
|
-
var TreasuryHealthApprovalSchema =
|
|
30821
|
-
kind:
|
|
30888
|
+
var TreasuryHealthApprovalSchema = z442.object({
|
|
30889
|
+
kind: z442.enum(["maturity-redemption", "fixed-treasury-yield"]).meta({
|
|
30822
30890
|
description: "Which feature this approval row gates.",
|
|
30823
30891
|
examples: ["maturity-redemption"]
|
|
30824
30892
|
}),
|
|
@@ -30842,21 +30910,21 @@ var TreasuryHealthApprovalSchema = z441.object({
|
|
|
30842
30910
|
description: "Required allowance ceiling for the feature, scaled by denomination asset decimals.",
|
|
30843
30911
|
examples: ["1000.00"]
|
|
30844
30912
|
}),
|
|
30845
|
-
satisfied:
|
|
30913
|
+
satisfied: z442.boolean().meta({
|
|
30846
30914
|
description: "True when the indexed allowance is greater than or equal to the required ceiling.",
|
|
30847
30915
|
examples: [true, false]
|
|
30848
30916
|
})
|
|
30849
30917
|
});
|
|
30850
|
-
var TreasuryHealthImplementationSchema =
|
|
30851
|
-
treasuryIsContract:
|
|
30918
|
+
var TreasuryHealthImplementationSchema = z442.object({
|
|
30919
|
+
treasuryIsContract: z442.boolean().nullable().meta({
|
|
30852
30920
|
description: "Whether the configured treasury address is a contract (`true`), an EOA (`false`), or has not yet been classified by the indexer (`null`).",
|
|
30853
30921
|
examples: [false, true, null]
|
|
30854
30922
|
})
|
|
30855
30923
|
}).nullable().meta({
|
|
30856
30924
|
description: "Treasury implementation classification. `null` when no maturity / yield feature is attached."
|
|
30857
30925
|
});
|
|
30858
|
-
var TreasuryHealthResponseSchema =
|
|
30859
|
-
approvals:
|
|
30926
|
+
var TreasuryHealthResponseSchema = z442.object({
|
|
30927
|
+
approvals: z442.array(TreasuryHealthApprovalSchema).meta({
|
|
30860
30928
|
description: "Per-feature approval rows. Empty when the token has neither a maturity-redemption nor a fixed-treasury-yield feature attached."
|
|
30861
30929
|
}),
|
|
30862
30930
|
implementation: TreasuryHealthImplementationSchema,
|
|
@@ -30868,11 +30936,11 @@ var TreasuryHealthResponseSchema = z441.object({
|
|
|
30868
30936
|
description: "Projected next-period denomination need (next scheduled redemption / unclaimed yield), scaled by denomination asset decimals. Used to set the `yellow` threshold.",
|
|
30869
30937
|
examples: ["1000.00"]
|
|
30870
30938
|
}),
|
|
30871
|
-
status:
|
|
30939
|
+
status: z442.enum(["green", "yellow", "red"]).meta({
|
|
30872
30940
|
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.",
|
|
30873
30941
|
examples: ["green", "yellow", "red"]
|
|
30874
30942
|
}),
|
|
30875
|
-
reason:
|
|
30943
|
+
reason: z442.string().nullable().meta({
|
|
30876
30944
|
description: "Human-readable reason for the non-green status. `null` for `green`.",
|
|
30877
30945
|
examples: ["balance below projected", "approval below ceiling", null]
|
|
30878
30946
|
}),
|
|
@@ -30883,7 +30951,7 @@ var TreasuryHealthResponseSchema = z441.object({
|
|
|
30883
30951
|
});
|
|
30884
30952
|
|
|
30885
30953
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-delegations.schema.ts
|
|
30886
|
-
import { z as
|
|
30954
|
+
import { z as z443 } from "zod";
|
|
30887
30955
|
var VOTING_DELEGATIONS_COLLECTION_FIELDS = {
|
|
30888
30956
|
account: addressField({ defaultOperator: "iLike" }),
|
|
30889
30957
|
delegate: addressField({ defaultOperator: "iLike" }),
|
|
@@ -30897,23 +30965,53 @@ var VotingDelegationsV2InputSchema = createCollectionInputSchema(VOTING_DELEGATI
|
|
|
30897
30965
|
defaultSort: "-delegatedAt",
|
|
30898
30966
|
globalSearch: false
|
|
30899
30967
|
});
|
|
30900
|
-
var VotingDelegationV2ItemSchema =
|
|
30901
|
-
id:
|
|
30968
|
+
var VotingDelegationV2ItemSchema = z443.object({
|
|
30969
|
+
id: z443.string().uuid(),
|
|
30902
30970
|
delegator: ethereumAddress,
|
|
30903
30971
|
fromDelegate: ethereumAddress.nullable(),
|
|
30904
30972
|
toDelegate: ethereumAddress,
|
|
30905
30973
|
delegatedAt: timestamp(),
|
|
30906
30974
|
delegatedBlockNumber: apiBigInt,
|
|
30907
30975
|
delegatedTxHash: ethereumHash,
|
|
30908
|
-
delegatedLogIndex:
|
|
30976
|
+
delegatedLogIndex: z443.number().int().nonnegative(),
|
|
30909
30977
|
undelegatedAt: timestamp().nullable(),
|
|
30910
30978
|
undelegatedBlockNumber: apiBigInt.nullable(),
|
|
30911
30979
|
undelegatedTxHash: ethereumHash.nullable(),
|
|
30912
|
-
undelegatedLogIndex:
|
|
30913
|
-
isActive:
|
|
30980
|
+
undelegatedLogIndex: z443.number().int().nonnegative().nullable(),
|
|
30981
|
+
isActive: z443.boolean()
|
|
30914
30982
|
});
|
|
30915
30983
|
var VotingDelegationsV2OutputSchema = createPaginatedResponse(VotingDelegationV2ItemSchema);
|
|
30916
30984
|
|
|
30985
|
+
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.voting-power-distribution.schema.ts
|
|
30986
|
+
import { z as z444 } from "zod";
|
|
30987
|
+
var DEFAULT_TOP_N = 50;
|
|
30988
|
+
var MAX_TOP_N = 200;
|
|
30989
|
+
var VotingPowerDistributionV2InputSchema = z444.object({
|
|
30990
|
+
topN: z444.coerce.number().int().min(1).max(MAX_TOP_N).default(DEFAULT_TOP_N).meta({
|
|
30991
|
+
description: `Number of top holders to return individually (1-${MAX_TOP_N}). Remaining holders aggregate into the "other" bucket.`,
|
|
30992
|
+
examples: [DEFAULT_TOP_N]
|
|
30993
|
+
})
|
|
30994
|
+
});
|
|
30995
|
+
var VotingPowerDistributionHolderSchema = z444.object({
|
|
30996
|
+
account: ethereumAddress,
|
|
30997
|
+
votes: z444.string(),
|
|
30998
|
+
votesExact: apiBigInt
|
|
30999
|
+
});
|
|
31000
|
+
var VotingPowerDistributionOtherSchema = z444.object({
|
|
31001
|
+
holders: z444.number().int().nonnegative(),
|
|
31002
|
+
votes: z444.string(),
|
|
31003
|
+
votesExact: apiBigInt
|
|
31004
|
+
});
|
|
31005
|
+
var VotingPowerDistributionV2DataSchema = z444.object({
|
|
31006
|
+
total: z444.number().int().nonnegative(),
|
|
31007
|
+
topN: z444.number().int().nonnegative(),
|
|
31008
|
+
totalVotes: z444.string(),
|
|
31009
|
+
totalVotesExact: apiBigInt,
|
|
31010
|
+
holders: z444.array(VotingPowerDistributionHolderSchema),
|
|
31011
|
+
other: VotingPowerDistributionOtherSchema
|
|
31012
|
+
});
|
|
31013
|
+
var VotingPowerDistributionV2OutputSchema = createSingleResponse(VotingPowerDistributionV2DataSchema);
|
|
31014
|
+
|
|
30917
31015
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
30918
31016
|
var read30 = v2Contract.route({
|
|
30919
31017
|
method: "GET",
|
|
@@ -30928,21 +31026,21 @@ var allowance = v2Contract.route({
|
|
|
30928
31026
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
30929
31027
|
successDescription: "Token allowance details retrieved successfully.",
|
|
30930
31028
|
tags: [V2_TAG.token]
|
|
30931
|
-
}).input(v2Input.paramsQuery(
|
|
31029
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z445.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
30932
31030
|
var holder = v2Contract.route({
|
|
30933
31031
|
method: "GET",
|
|
30934
31032
|
path: "/tokens/{tokenAddress}/holder-balances",
|
|
30935
31033
|
description: "Get a specific token holder's balance information.",
|
|
30936
31034
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
30937
31035
|
tags: [V2_TAG.token]
|
|
30938
|
-
}).input(v2Input.paramsQuery(
|
|
31036
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z445.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
30939
31037
|
var holders = v2Contract.route({
|
|
30940
31038
|
method: "GET",
|
|
30941
31039
|
path: "/tokens/{tokenAddress}/holders",
|
|
30942
31040
|
description: "Get token holders and their balances.",
|
|
30943
31041
|
successDescription: "List of token holders with balance information.",
|
|
30944
31042
|
tags: [V2_TAG.token]
|
|
30945
|
-
}).input(v2Input.paramsQuery(
|
|
31043
|
+
}).input(v2Input.paramsQuery(z445.object({
|
|
30946
31044
|
tokenAddress: ethereumAddress.meta({
|
|
30947
31045
|
description: "The token contract address",
|
|
30948
31046
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30954,7 +31052,7 @@ var actions = v2Contract.route({
|
|
|
30954
31052
|
description: "List actions targeting a specific token. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
30955
31053
|
successDescription: "Paginated list of actions targeting the specified token.",
|
|
30956
31054
|
tags: [V2_TAG.token]
|
|
30957
|
-
}).input(v2Input.paramsQuery(
|
|
31055
|
+
}).input(v2Input.paramsQuery(z445.object({
|
|
30958
31056
|
tokenAddress: ethereumAddress.meta({
|
|
30959
31057
|
description: "The token contract address to filter actions by",
|
|
30960
31058
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30966,7 +31064,7 @@ var events2 = v2Contract.route({
|
|
|
30966
31064
|
description: "List token events with pagination, filtering, sorting, and faceted counts.",
|
|
30967
31065
|
successDescription: "Paginated list of token events with metadata and pagination links.",
|
|
30968
31066
|
tags: [V2_TAG.token]
|
|
30969
|
-
}).input(v2Input.paramsQuery(
|
|
31067
|
+
}).input(v2Input.paramsQuery(z445.object({
|
|
30970
31068
|
tokenAddress: ethereumAddress.meta({
|
|
30971
31069
|
description: "The token contract address",
|
|
30972
31070
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -30978,7 +31076,7 @@ var denominationAssets = v2Contract.route({
|
|
|
30978
31076
|
description: "List denomination asset(s) used by the specified bond. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
30979
31077
|
successDescription: "Paginated list of denomination assets used by the specified bond.",
|
|
30980
31078
|
tags: [V2_TAG.token]
|
|
30981
|
-
}).input(v2Input.paramsQuery(
|
|
31079
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), DenominationAssetsV2InputSchema)).output(DenominationAssetsV2OutputSchema);
|
|
30982
31080
|
var compliance = v2Contract.route({
|
|
30983
31081
|
method: "GET",
|
|
30984
31082
|
path: "/tokens/{tokenAddress}/compliance-modules",
|
|
@@ -31020,7 +31118,7 @@ var transferApprovals = v2Contract.route({
|
|
|
31020
31118
|
description: "List transfer approvals created on the TransferApprovalComplianceModule for this token. Includes pending, consumed, and revoked approvals.",
|
|
31021
31119
|
successDescription: "List of transfer approvals with their current status.",
|
|
31022
31120
|
tags: [V2_TAG.compliance]
|
|
31023
|
-
}).input(v2Input.paramsQuery(
|
|
31121
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TransferApprovalsInputSchema.shape.tokenAddress }), TransferApprovalsV2InputSchema)).output(TransferApprovalsV2OutputSchema);
|
|
31024
31122
|
var price = v2Contract.route({
|
|
31025
31123
|
method: "GET",
|
|
31026
31124
|
path: "/tokens/{tokenAddress}/price",
|
|
@@ -31034,42 +31132,49 @@ var conversionTriggers = v2Contract.route({
|
|
|
31034
31132
|
description: "List conversion triggers for a token. Includes computed effective price (after discount and cap). Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31035
31133
|
successDescription: "Paginated list of conversion triggers with effective pricing.",
|
|
31036
31134
|
tags: [V2_TAG.token]
|
|
31037
|
-
}).input(v2Input.paramsQuery(
|
|
31135
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionTriggersV2InputSchema)).output(ConversionTriggersV2OutputSchema);
|
|
31038
31136
|
var conversionRecords = v2Contract.route({
|
|
31039
31137
|
method: "GET",
|
|
31040
31138
|
path: "/tokens/{tokenAddress}/conversion/records",
|
|
31041
31139
|
description: "List conversion lifecycle records for a token. Includes conversion-minter issuance details when available. Supports JSON:API pagination, sorting, filtering, and faceted counts.",
|
|
31042
31140
|
successDescription: "Paginated list of conversion records.",
|
|
31043
31141
|
tags: [V2_TAG.token]
|
|
31044
|
-
}).input(v2Input.paramsQuery(
|
|
31142
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), ConversionRecordsV2InputSchema)).output(ConversionRecordsV2OutputSchema);
|
|
31045
31143
|
var conversionHolderState = v2Contract.route({
|
|
31046
31144
|
method: "GET",
|
|
31047
31145
|
path: "/tokens/{tokenAddress}/conversion/holder-state",
|
|
31048
31146
|
description: "Read holder-specific conversion state from the token's attached conversion feature. Returns null when no conversion feature is attached.",
|
|
31049
31147
|
successDescription: "Conversion holder state retrieved successfully.",
|
|
31050
31148
|
tags: [V2_TAG.token]
|
|
31051
|
-
}).input(v2Input.paramsQuery(
|
|
31149
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenConversionHolderStateInputSchema.shape.tokenAddress }), z445.object(TokenConversionHolderStateInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenConversionHolderStateResponseSchema));
|
|
31052
31150
|
var votingDelegations = v2Contract.route({
|
|
31053
31151
|
method: "GET",
|
|
31054
31152
|
path: "/tokens/{tokenAddress}/voting-delegations",
|
|
31055
31153
|
description: "List voting delegation lifecycle rows for a token's voting-power feature. Supports JSON:API pagination, sorting, filtering, and faceted active counts.",
|
|
31056
31154
|
successDescription: "Paginated list of voting delegation lifecycle rows.",
|
|
31057
31155
|
tags: [V2_TAG.token]
|
|
31058
|
-
}).input(v2Input.paramsQuery(
|
|
31156
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingDelegationsV2InputSchema)).output(VotingDelegationsV2OutputSchema);
|
|
31157
|
+
var votingPowerDistribution = v2Contract.route({
|
|
31158
|
+
method: "GET",
|
|
31159
|
+
path: "/tokens/{tokenAddress}/voting-power/distribution",
|
|
31160
|
+
description: "Histogram of current voting power per delegate for a token's voting-power feature. Returns the top-N holders by latest votes plus a single aggregated 'other' bucket covering remaining holders.",
|
|
31161
|
+
successDescription: "Voting-power distribution summary retrieved successfully.",
|
|
31162
|
+
tags: [V2_TAG.token]
|
|
31163
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), VotingPowerDistributionV2InputSchema)).output(VotingPowerDistributionV2OutputSchema);
|
|
31059
31164
|
var permitInfo = v2Contract.route({
|
|
31060
31165
|
method: "GET",
|
|
31061
31166
|
path: "/tokens/{tokenAddress}/permit-info",
|
|
31062
31167
|
description: "Read EIP-2612 permit metadata from the token's attached permit feature, including the domain separator and optional owner nonce.",
|
|
31063
31168
|
successDescription: "Permit feature metadata retrieved successfully.",
|
|
31064
31169
|
tags: [V2_TAG.token]
|
|
31065
|
-
}).input(v2Input.paramsQuery(
|
|
31170
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenPermitInfoInputSchema.shape.tokenAddress }), z445.object(TokenPermitInfoInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenPermitInfoResponseSchema));
|
|
31066
31171
|
var featurePermitReplayHistory = v2Contract.route({
|
|
31067
31172
|
method: "GET",
|
|
31068
31173
|
path: "/tokens/{tokenAddress}/permit/replay-history/{owner}",
|
|
31069
31174
|
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.",
|
|
31070
31175
|
successDescription: "Paginated list of permit replay events for the specified owner.",
|
|
31071
31176
|
tags: [V2_TAG.token]
|
|
31072
|
-
}).input(v2Input.paramsQuery(
|
|
31177
|
+
}).input(v2Input.paramsQuery(z445.object({
|
|
31073
31178
|
tokenAddress: TokenReadInputSchema.shape.tokenAddress,
|
|
31074
31179
|
owner: ethereumAddress.meta({
|
|
31075
31180
|
description: "Token holder whose permit replay history is being requested.",
|
|
@@ -31082,21 +31187,21 @@ var historicalBalances = v2Contract.route({
|
|
|
31082
31187
|
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.",
|
|
31083
31188
|
successDescription: "Paginated list of historical balance checkpoints.",
|
|
31084
31189
|
tags: [V2_TAG.token]
|
|
31085
|
-
}).input(v2Input.paramsQuery(
|
|
31190
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalancesV2InputSchema)).output(TokenHistoricalBalancesV2OutputSchema);
|
|
31086
31191
|
var historicalBalanceAtBlock = v2Contract.route({
|
|
31087
31192
|
method: "GET",
|
|
31088
31193
|
path: "/tokens/{tokenAddress}/historical-balances/balance-at-block",
|
|
31089
31194
|
description: "Read a holder balance and total supply from the token's attached historical-balances feature at a specific feature clock timepoint.",
|
|
31090
31195
|
successDescription: "Historical balance snapshot retrieved successfully.",
|
|
31091
31196
|
tags: [V2_TAG.token]
|
|
31092
|
-
}).input(v2Input.paramsQuery(
|
|
31197
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalBalanceAtBlockV2InputQuerySchema)).output(TokenHistoricalBalanceAtBlockV2OutputSchema);
|
|
31093
31198
|
var historicalHoldersAtBlock = v2Contract.route({
|
|
31094
31199
|
method: "GET",
|
|
31095
31200
|
path: "/tokens/{tokenAddress}/historical-balances/holders-at-block",
|
|
31096
31201
|
description: "List holder balances read from the token's attached historical-balances feature at a specific feature clock timepoint.",
|
|
31097
31202
|
successDescription: "Paginated historical holder snapshot retrieved successfully.",
|
|
31098
31203
|
tags: [V2_TAG.token]
|
|
31099
|
-
}).input(v2Input.paramsQuery(
|
|
31204
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenHistoricalHoldersAtBlockV2InputSchema)).output(TokenHistoricalHoldersAtBlockV2OutputSchema);
|
|
31100
31205
|
var historicalBalanceAtBlockByHolder = v2Contract.route({
|
|
31101
31206
|
method: "GET",
|
|
31102
31207
|
path: "/tokens/{tokenAddress}/historical-balances/{holderAddress}",
|
|
@@ -31110,21 +31215,28 @@ var transactionFeeCollections = v2Contract.route({
|
|
|
31110
31215
|
description: "List transaction-fee collections for a token's transaction-fee feature. Supports JSON:API pagination, sorting, filtering, and faceted operation counts.",
|
|
31111
31216
|
successDescription: "Paginated list of transaction-fee collections.",
|
|
31112
31217
|
tags: [V2_TAG.token]
|
|
31113
|
-
}).input(v2Input.paramsQuery(
|
|
31218
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenTransactionFeeCollectionsV2InputSchema)).output(TokenTransactionFeeCollectionsV2OutputSchema);
|
|
31114
31219
|
var feeAccrualEvents = v2Contract.route({
|
|
31115
31220
|
method: "GET",
|
|
31116
31221
|
path: "/tokens/{tokenAddress}/transaction-fee-accounting/accrual-events",
|
|
31117
31222
|
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.",
|
|
31118
31223
|
successDescription: "Paginated list of fee-accrual events.",
|
|
31119
31224
|
tags: [V2_TAG.token]
|
|
31120
|
-
}).input(v2Input.paramsQuery(
|
|
31225
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenFeeAccrualEventsV2InputSchema)).output(TokenFeeAccrualEventsV2OutputSchema);
|
|
31226
|
+
var feeAccrualPayer = v2Contract.route({
|
|
31227
|
+
method: "GET",
|
|
31228
|
+
path: "/tokens/{tokenAddress}/transaction-fee-accounting/payers/{payer}",
|
|
31229
|
+
description: "Per-payer summary of accrued transaction fees on a token's transaction-fee-accounting feature — totals, per-operation-type breakdown, and the most recent accrual events for the payer.",
|
|
31230
|
+
successDescription: "Per-payer accrual summary.",
|
|
31231
|
+
tags: [V2_TAG.token]
|
|
31232
|
+
}).input(v2Input.params(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }).extend(TokenFeeAccrualPayerV2InputSchema.shape))).output(TokenFeeAccrualPayerV2OutputSchema);
|
|
31121
31233
|
var externalFeeCollectionEvents = v2Contract.route({
|
|
31122
31234
|
method: "GET",
|
|
31123
31235
|
path: "/tokens/{tokenAddress}/external-transaction-fee/collection-events",
|
|
31124
31236
|
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.",
|
|
31125
31237
|
successDescription: "Paginated list of external-fee collection events.",
|
|
31126
31238
|
tags: [V2_TAG.token]
|
|
31127
|
-
}).input(v2Input.paramsQuery(
|
|
31239
|
+
}).input(v2Input.paramsQuery(z445.object({ tokenAddress: TokenReadInputSchema.shape.tokenAddress }), TokenExternalFeeCollectionEventsV2InputSchema)).output(TokenExternalFeeCollectionEventsV2OutputSchema);
|
|
31128
31240
|
var treasuryHealth = v2Contract.route({
|
|
31129
31241
|
method: "GET",
|
|
31130
31242
|
path: "/tokens/{tokenAddress}/treasury/health",
|
|
@@ -31150,6 +31262,7 @@ var tokenV2ReadsContract = {
|
|
|
31150
31262
|
conversionRecords,
|
|
31151
31263
|
conversionHolderState,
|
|
31152
31264
|
votingDelegations,
|
|
31265
|
+
votingPowerDistribution,
|
|
31153
31266
|
permitInfo,
|
|
31154
31267
|
featurePermitReplayHistory,
|
|
31155
31268
|
historicalBalances,
|
|
@@ -31158,6 +31271,7 @@ var tokenV2ReadsContract = {
|
|
|
31158
31271
|
historicalHoldersAtBlock,
|
|
31159
31272
|
transactionFeeCollections,
|
|
31160
31273
|
feeAccrualEvents,
|
|
31274
|
+
feeAccrualPayer,
|
|
31161
31275
|
externalFeeCollectionEvents,
|
|
31162
31276
|
participantRolesView: participantRolesView2,
|
|
31163
31277
|
price,
|
|
@@ -31165,7 +31279,7 @@ var tokenV2ReadsContract = {
|
|
|
31165
31279
|
};
|
|
31166
31280
|
|
|
31167
31281
|
// ../../packages/dalp/api-contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
31168
|
-
import { z as
|
|
31282
|
+
import { z as z446 } from "zod";
|
|
31169
31283
|
var statsBondStatus = v2Contract.route({
|
|
31170
31284
|
method: "GET",
|
|
31171
31285
|
path: "/tokens/{tokenAddress}/stats/bond-status",
|
|
@@ -31186,25 +31300,25 @@ var statsTotalSupply = v2Contract.route({
|
|
|
31186
31300
|
description: "Get total supply history statistics for a specific token.",
|
|
31187
31301
|
successDescription: "Token total supply history statistics.",
|
|
31188
31302
|
tags: [V2_TAG.tokenStats]
|
|
31189
|
-
}).input(v2Input.paramsQuery(
|
|
31303
|
+
}).input(v2Input.paramsQuery(z446.object({
|
|
31190
31304
|
tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress
|
|
31191
|
-
}),
|
|
31305
|
+
}), z446.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
31192
31306
|
var statsSupplyChanges = v2Contract.route({
|
|
31193
31307
|
method: "GET",
|
|
31194
31308
|
path: "/tokens/{tokenAddress}/stats/supply-changes",
|
|
31195
31309
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
31196
31310
|
successDescription: "Token supply changes history statistics.",
|
|
31197
31311
|
tags: [V2_TAG.tokenStats]
|
|
31198
|
-
}).input(v2Input.paramsQuery(
|
|
31312
|
+
}).input(v2Input.paramsQuery(z446.object({
|
|
31199
31313
|
tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress
|
|
31200
|
-
}),
|
|
31314
|
+
}), z446.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
31201
31315
|
var statsVolume = v2Contract.route({
|
|
31202
31316
|
method: "GET",
|
|
31203
31317
|
path: "/tokens/{tokenAddress}/stats/volume",
|
|
31204
31318
|
description: "Get total volume history statistics for a specific token.",
|
|
31205
31319
|
successDescription: "Token total volume history statistics.",
|
|
31206
31320
|
tags: [V2_TAG.tokenStats]
|
|
31207
|
-
}).input(v2Input.paramsQuery(
|
|
31321
|
+
}).input(v2Input.paramsQuery(z446.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z446.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
31208
31322
|
var statsWalletDistribution = v2Contract.route({
|
|
31209
31323
|
method: "GET",
|
|
31210
31324
|
path: "/tokens/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -31238,46 +31352,46 @@ var tokenV2StatsContract = {
|
|
|
31238
31352
|
};
|
|
31239
31353
|
|
|
31240
31354
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.contract.ts
|
|
31241
|
-
import { z as
|
|
31355
|
+
import { z as z450 } from "zod";
|
|
31242
31356
|
|
|
31243
31357
|
// ../../packages/dalp/api-contract/src/routes/token/topic-schemes/routes/topic-scheme.list.schema.ts
|
|
31244
|
-
import { z as
|
|
31245
|
-
var TokenTopicSchemeInheritanceLevelSchema =
|
|
31358
|
+
import { z as z447 } from "zod";
|
|
31359
|
+
var TokenTopicSchemeInheritanceLevelSchema = z447.enum(["token", "system", "global"]).meta({
|
|
31246
31360
|
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.",
|
|
31247
31361
|
examples: ["token"]
|
|
31248
31362
|
});
|
|
31249
|
-
var TokenTopicSchemeSchema =
|
|
31250
|
-
id:
|
|
31363
|
+
var TokenTopicSchemeSchema = z447.object({
|
|
31364
|
+
id: z447.string().meta({
|
|
31251
31365
|
description: "Synthetic identifier for the topic scheme row (registry + topicId).",
|
|
31252
31366
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F#1"]
|
|
31253
31367
|
}),
|
|
31254
|
-
topicId:
|
|
31368
|
+
topicId: z447.string().meta({
|
|
31255
31369
|
description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
|
|
31256
31370
|
examples: ["1", "100"]
|
|
31257
31371
|
}),
|
|
31258
|
-
name:
|
|
31372
|
+
name: z447.string().meta({
|
|
31259
31373
|
description: "Human-readable topic-scheme name registered on the registry.",
|
|
31260
31374
|
examples: ["Know Your Customer", "Accredited Investor"]
|
|
31261
31375
|
}),
|
|
31262
|
-
signature:
|
|
31376
|
+
signature: z447.string().meta({
|
|
31263
31377
|
description: "ABI signature describing the claim data shape verified by this scheme.",
|
|
31264
31378
|
examples: ["(string)", "(uint256,bool)"]
|
|
31265
31379
|
}),
|
|
31266
|
-
registry:
|
|
31380
|
+
registry: z447.object({
|
|
31267
31381
|
id: ethereumAddress.meta({
|
|
31268
31382
|
description: "Topic Scheme Registry contract address that holds this row.",
|
|
31269
31383
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31270
31384
|
})
|
|
31271
31385
|
}),
|
|
31272
31386
|
inheritanceLevel: TokenTopicSchemeInheritanceLevelSchema,
|
|
31273
|
-
isShadowed:
|
|
31387
|
+
isShadowed: z447.boolean().meta({
|
|
31274
31388
|
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.",
|
|
31275
31389
|
examples: [false]
|
|
31276
31390
|
})
|
|
31277
31391
|
});
|
|
31278
31392
|
|
|
31279
31393
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.list.schema.ts
|
|
31280
|
-
import { z as
|
|
31394
|
+
import { z as z448 } from "zod";
|
|
31281
31395
|
var TOKEN_TOPIC_SCHEMES_COLLECTION_FIELDS = {
|
|
31282
31396
|
topicId: bigintField({ defaultOperator: "eq" }),
|
|
31283
31397
|
name: textField({ defaultOperator: "iLike" }),
|
|
@@ -31289,14 +31403,14 @@ var TokenTopicSchemesV2ListInputSchema = createCollectionInputSchema(TOKEN_TOPIC
|
|
|
31289
31403
|
globalSearch: true
|
|
31290
31404
|
});
|
|
31291
31405
|
var TokenTopicSchemesV2ListOutputSchema = createPaginatedResponse(TokenTopicSchemeSchema, {
|
|
31292
|
-
hasTokenRegistry:
|
|
31406
|
+
hasTokenRegistry: z448.boolean().meta({
|
|
31293
31407
|
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."
|
|
31294
31408
|
})
|
|
31295
31409
|
});
|
|
31296
31410
|
|
|
31297
31411
|
// ../../packages/dalp/api-contract/src/routes/v2/token/topic-schemes/topic-schemes.v2.mutations.schema.ts
|
|
31298
31412
|
import { parseAbiParameters } from "viem";
|
|
31299
|
-
import { z as
|
|
31413
|
+
import { z as z449 } from "zod";
|
|
31300
31414
|
function normalizeClaimDataSignature(signature) {
|
|
31301
31415
|
return `(${signature.trim()})`;
|
|
31302
31416
|
}
|
|
@@ -31310,7 +31424,7 @@ function isAbiTypeList(typeList) {
|
|
|
31310
31424
|
return false;
|
|
31311
31425
|
}
|
|
31312
31426
|
}
|
|
31313
|
-
var ClaimDataSignatureSchema =
|
|
31427
|
+
var ClaimDataSignatureSchema = z449.string().min(1, "Signature is required").superRefine((value3, ctx) => {
|
|
31314
31428
|
if (value3.length === 0) {
|
|
31315
31429
|
return;
|
|
31316
31430
|
}
|
|
@@ -31323,7 +31437,7 @@ var ClaimDataSignatureSchema = z447.string().min(1, "Signature is required").sup
|
|
|
31323
31437
|
}
|
|
31324
31438
|
});
|
|
31325
31439
|
var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
|
|
31326
|
-
name:
|
|
31440
|
+
name: z449.string().min(1, "Topic scheme name is required").max(100, "Topic scheme name must be less than 100 characters").meta({
|
|
31327
31441
|
description: "Human-readable name for the token-level topic scheme.",
|
|
31328
31442
|
examples: ["Custom Compliance", "Asset Origin"]
|
|
31329
31443
|
}),
|
|
@@ -31333,20 +31447,20 @@ var TokenTopicSchemeCreateInputSchema = MutationInputSchema.extend({
|
|
|
31333
31447
|
})
|
|
31334
31448
|
});
|
|
31335
31449
|
var TokenTopicSchemeCreateOutputSchema = BaseMutationOutputSchema.extend({
|
|
31336
|
-
name:
|
|
31450
|
+
name: z449.string().meta({
|
|
31337
31451
|
description: "Name of the created token-level topic scheme.",
|
|
31338
31452
|
examples: ["Custom Compliance", "Asset Origin"]
|
|
31339
31453
|
})
|
|
31340
31454
|
});
|
|
31341
|
-
var TokenTopicSchemeDeleteParamsSchema =
|
|
31342
|
-
topicId:
|
|
31455
|
+
var TokenTopicSchemeDeleteParamsSchema = z449.object({
|
|
31456
|
+
topicId: z449.string().min(1, "topicId is required").regex(/^\d+$/, "topicId must be a numeric decimal string").meta({
|
|
31343
31457
|
description: "Numeric topic id of the token-level scheme to remove (decimal string).",
|
|
31344
31458
|
examples: ["1", "100"]
|
|
31345
31459
|
})
|
|
31346
31460
|
});
|
|
31347
31461
|
var TokenTopicSchemeDeleteInputSchema = MutationInputSchema;
|
|
31348
31462
|
var TokenTopicSchemeDeleteOutputSchema = BaseMutationOutputSchema.extend({
|
|
31349
|
-
topicId:
|
|
31463
|
+
topicId: z449.string().meta({
|
|
31350
31464
|
description: "Numeric topic id of the removed token-level scheme.",
|
|
31351
31465
|
examples: ["1", "100"]
|
|
31352
31466
|
})
|
|
@@ -31375,7 +31489,7 @@ var del12 = v2Contract.route({
|
|
|
31375
31489
|
description: "Remove a token-specific topic scheme from the token-level Topic Scheme Registry by topic id.",
|
|
31376
31490
|
successDescription: "Token topic scheme removed successfully.",
|
|
31377
31491
|
tags: [V2_TAG.claimTopics]
|
|
31378
|
-
}).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(
|
|
31492
|
+
}).meta({ contractErrors: [...TOKEN_TOPIC_SCHEME_DELETE_ERRORS] }).input(v2Input.paramsBody(z450.object({ ...TokenReadInputSchema.shape, ...TokenTopicSchemeDeleteParamsSchema.shape }), TokenTopicSchemeDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTopicSchemeDeleteOutputSchema));
|
|
31379
31493
|
var tokenV2TopicSchemesContract = {
|
|
31380
31494
|
list: list40,
|
|
31381
31495
|
create: create21,
|
|
@@ -31383,54 +31497,54 @@ var tokenV2TopicSchemesContract = {
|
|
|
31383
31497
|
};
|
|
31384
31498
|
|
|
31385
31499
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
31386
|
-
import { z as
|
|
31500
|
+
import { z as z454 } from "zod";
|
|
31387
31501
|
|
|
31388
31502
|
// ../../packages/dalp/api-contract/src/routes/token/trusted-issuers/routes/trusted-issuer.list.schema.ts
|
|
31389
|
-
import { z as
|
|
31390
|
-
var TokenTrustedIssuerInheritanceLevelSchema =
|
|
31503
|
+
import { z as z451 } from "zod";
|
|
31504
|
+
var TokenTrustedIssuerInheritanceLevelSchema = z451.enum(["token", "system", "global"]).meta({
|
|
31391
31505
|
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.",
|
|
31392
31506
|
examples: ["token"]
|
|
31393
31507
|
});
|
|
31394
|
-
var TokenTrustedIssuerClaimTopicSchema =
|
|
31395
|
-
topicId:
|
|
31508
|
+
var TokenTrustedIssuerClaimTopicSchema = z451.object({
|
|
31509
|
+
topicId: z451.string().meta({
|
|
31396
31510
|
description: "Numeric topic id as a decimal string (matches the on-chain uint256).",
|
|
31397
31511
|
examples: ["1", "100"]
|
|
31398
31512
|
}),
|
|
31399
|
-
name:
|
|
31513
|
+
name: z451.string().meta({
|
|
31400
31514
|
description: "Human-readable topic-scheme name resolved from the token's topic-scheme registry chain.",
|
|
31401
31515
|
examples: ["Know Your Customer", "Accredited Investor"]
|
|
31402
31516
|
})
|
|
31403
31517
|
});
|
|
31404
|
-
var TokenTrustedIssuerSchema =
|
|
31518
|
+
var TokenTrustedIssuerSchema = z451.object({
|
|
31405
31519
|
id: ethereumAddress.meta({
|
|
31406
31520
|
description: "Issuer identity address — the on-chain key for the trusted issuer.",
|
|
31407
31521
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31408
31522
|
}),
|
|
31409
|
-
account:
|
|
31523
|
+
account: z451.object({
|
|
31410
31524
|
id: ethereumAddress.meta({
|
|
31411
31525
|
description: "Issuer wallet address.",
|
|
31412
31526
|
examples: ["0x2546BcD3c84621e976D8185a91A922aE77ECEc30"]
|
|
31413
31527
|
})
|
|
31414
31528
|
}).nullable().optional().meta({ description: "Identity account associated with the issuer, when resolvable." }),
|
|
31415
|
-
claimTopics:
|
|
31529
|
+
claimTopics: z451.array(TokenTrustedIssuerClaimTopicSchema).meta({
|
|
31416
31530
|
description: "Claim topics this issuer is trusted for at its registry tier.",
|
|
31417
31531
|
examples: [[]]
|
|
31418
31532
|
}),
|
|
31419
|
-
registry:
|
|
31533
|
+
registry: z451.object({
|
|
31420
31534
|
id: ethereumAddress.meta({
|
|
31421
31535
|
description: "Trusted Issuer Registry contract address that holds this row.",
|
|
31422
31536
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31423
31537
|
})
|
|
31424
31538
|
}),
|
|
31425
31539
|
inheritanceLevel: TokenTrustedIssuerInheritanceLevelSchema,
|
|
31426
|
-
isInheritedElsewhere:
|
|
31540
|
+
isInheritedElsewhere: z451.boolean().meta({
|
|
31427
31541
|
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.",
|
|
31428
31542
|
examples: [false]
|
|
31429
31543
|
})
|
|
31430
31544
|
});
|
|
31431
31545
|
|
|
31432
31546
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.list.schema.ts
|
|
31433
|
-
import { z as
|
|
31547
|
+
import { z as z452 } from "zod";
|
|
31434
31548
|
var TOKEN_TRUSTED_ISSUERS_COLLECTION_FIELDS = {
|
|
31435
31549
|
account: textField({ defaultOperator: "iLike" }),
|
|
31436
31550
|
source: enumField(["token", "system", "global"], { sortable: false })
|
|
@@ -31440,18 +31554,18 @@ var TokenTrustedIssuersV2ListInputSchema = createCollectionInputSchema(TOKEN_TRU
|
|
|
31440
31554
|
globalSearch: true
|
|
31441
31555
|
});
|
|
31442
31556
|
var TokenTrustedIssuersV2ListOutputSchema = createPaginatedResponse(TokenTrustedIssuerSchema, {
|
|
31443
|
-
hasTrustedIssuersRegistry:
|
|
31557
|
+
hasTrustedIssuersRegistry: z452.boolean().meta({
|
|
31444
31558
|
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."
|
|
31445
31559
|
})
|
|
31446
31560
|
});
|
|
31447
31561
|
|
|
31448
31562
|
// ../../packages/dalp/api-contract/src/routes/v2/token/trusted-issuers/trusted-issuers.v2.mutations.schema.ts
|
|
31449
|
-
import { z as
|
|
31563
|
+
import { z as z453 } from "zod";
|
|
31450
31564
|
var MAX_UINT2565 = 2n ** 256n - 1n;
|
|
31451
31565
|
var MAX_CLAIM_TOPIC_IDS = 50;
|
|
31452
31566
|
var CLAIM_TOPIC_ID_FORMAT_MESSAGE = "Each claim topic id must be a non-negative decimal integer.";
|
|
31453
31567
|
var CLAIM_TOPIC_ID_RANGE_MESSAGE = "Each claim topic id must fit within uint256.";
|
|
31454
|
-
var ClaimTopicIdSchema =
|
|
31568
|
+
var ClaimTopicIdSchema = z453.string().min(1, "Claim topic id is required").superRefine((value3, ctx) => {
|
|
31455
31569
|
if (!/^\d+$/.test(value3)) {
|
|
31456
31570
|
ctx.addIssue({ code: "custom", message: CLAIM_TOPIC_ID_FORMAT_MESSAGE });
|
|
31457
31571
|
return;
|
|
@@ -31465,7 +31579,7 @@ var TokenTrustedIssuerCreateInputSchema = MutationInputSchema.extend({
|
|
|
31465
31579
|
description: "Identity address of the trusted issuer to add to the token-level registry.",
|
|
31466
31580
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31467
31581
|
}),
|
|
31468
|
-
claimTopicIds:
|
|
31582
|
+
claimTopicIds: z453.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({
|
|
31469
31583
|
description: "Decimal-string topic ids the issuer is trusted for, passed as the on-chain uint256[] argument.",
|
|
31470
31584
|
examples: [["1", "2", "100"]]
|
|
31471
31585
|
})
|
|
@@ -31476,7 +31590,7 @@ var TokenTrustedIssuerCreateOutputSchema = BaseMutationOutputSchema.extend({
|
|
|
31476
31590
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31477
31591
|
})
|
|
31478
31592
|
});
|
|
31479
|
-
var TokenTrustedIssuerDeleteParamsSchema =
|
|
31593
|
+
var TokenTrustedIssuerDeleteParamsSchema = z453.object({
|
|
31480
31594
|
issuerAddress: ethereumAddress.meta({
|
|
31481
31595
|
description: "Identity address of the token-level trusted issuer to remove.",
|
|
31482
31596
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -31513,7 +31627,7 @@ var del13 = v2Contract.route({
|
|
|
31513
31627
|
description: "Remove a token-specific trusted issuer from the token-level Trusted Issuer Registry by issuer address.",
|
|
31514
31628
|
successDescription: "Token trusted issuer removed successfully.",
|
|
31515
31629
|
tags: [V2_TAG.trustedIssuers]
|
|
31516
|
-
}).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(
|
|
31630
|
+
}).meta({ contractErrors: [...TOKEN_TRUSTED_ISSUER_DELETE_ERRORS] }).input(v2Input.paramsBody(z454.object({ ...TokenReadInputSchema.shape, ...TokenTrustedIssuerDeleteParamsSchema.shape }), TokenTrustedIssuerDeleteInputSchema)).output(createAsyncBlockchainMutationResponse(TokenTrustedIssuerDeleteOutputSchema));
|
|
31517
31631
|
var tokenV2TrustedIssuersContract = {
|
|
31518
31632
|
list: list41,
|
|
31519
31633
|
create: create22,
|
|
@@ -31539,7 +31653,7 @@ var tokenV2Contract = {
|
|
|
31539
31653
|
};
|
|
31540
31654
|
|
|
31541
31655
|
// ../../packages/core/validation/src/transaction-request-state.ts
|
|
31542
|
-
import { z as
|
|
31656
|
+
import { z as z455 } from "zod";
|
|
31543
31657
|
var transactionRequestStates = [
|
|
31544
31658
|
"RECEIVED",
|
|
31545
31659
|
"QUEUED",
|
|
@@ -31554,7 +31668,7 @@ var transactionRequestStates = [
|
|
|
31554
31668
|
"CANCELLED"
|
|
31555
31669
|
];
|
|
31556
31670
|
var TERMINAL_STATES = ["COMPLETED", "FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
31557
|
-
var TransactionRequestStateSchema =
|
|
31671
|
+
var TransactionRequestStateSchema = z455.enum(transactionRequestStates).meta({
|
|
31558
31672
|
description: "Current state in the transaction request lifecycle",
|
|
31559
31673
|
examples: ["RECEIVED", "QUEUED", "BROADCASTING", "COMPLETED", "FAILED"]
|
|
31560
31674
|
});
|
|
@@ -31596,96 +31710,96 @@ var transactionSubStatuses = [
|
|
|
31596
31710
|
"WORKFLOW_BATCH_COMPLETED",
|
|
31597
31711
|
"WORKFLOW_BATCH_FAILED"
|
|
31598
31712
|
];
|
|
31599
|
-
var TransactionSubStatusSchema =
|
|
31713
|
+
var TransactionSubStatusSchema = z455.enum(transactionSubStatuses).meta({
|
|
31600
31714
|
description: "Detailed sub-status for transaction failures",
|
|
31601
31715
|
examples: ["REVERTED", "NONCE_CONFLICT", "INSUFFICIENT_BALANCE"]
|
|
31602
31716
|
});
|
|
31603
31717
|
|
|
31604
31718
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.admin.schema.ts
|
|
31605
|
-
import { z as
|
|
31606
|
-
var TransactionForceRetryInputSchema =
|
|
31607
|
-
transactionId:
|
|
31719
|
+
import { z as z456 } from "zod";
|
|
31720
|
+
var TransactionForceRetryInputSchema = z456.object({
|
|
31721
|
+
transactionId: z456.uuid().meta({
|
|
31608
31722
|
description: "Queue transaction identifier (UUIDv7) to retry",
|
|
31609
31723
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31610
31724
|
})
|
|
31611
31725
|
});
|
|
31612
|
-
var TransactionForceRetryBodySchema =
|
|
31613
|
-
gasPrice:
|
|
31726
|
+
var TransactionForceRetryBodySchema = z456.object({
|
|
31727
|
+
gasPrice: z456.string().optional().meta({
|
|
31614
31728
|
description: "Override gas price in wei (decimal string)",
|
|
31615
31729
|
examples: ["20000000000"]
|
|
31616
31730
|
}),
|
|
31617
|
-
nonce:
|
|
31731
|
+
nonce: z456.number().int().nonnegative().optional().meta({
|
|
31618
31732
|
description: "Override nonce for the retried transaction",
|
|
31619
31733
|
examples: [42]
|
|
31620
31734
|
})
|
|
31621
31735
|
}).default({});
|
|
31622
|
-
var TransactionForceRetryResultSchema =
|
|
31623
|
-
transactionId:
|
|
31736
|
+
var TransactionForceRetryResultSchema = z456.object({
|
|
31737
|
+
transactionId: z456.uuid().meta({ description: "The requeued transaction ID" }),
|
|
31624
31738
|
previousStatus: transactionRequestState().meta({ description: "State before force retry" }),
|
|
31625
31739
|
status: transactionRequestState().meta({ description: "New state after force retry (QUEUED)" })
|
|
31626
31740
|
});
|
|
31627
31741
|
var TransactionV2ForceRetryOutputSchema = createSingleResponse(TransactionForceRetryResultSchema);
|
|
31628
|
-
var TransactionForceFailInputSchema =
|
|
31629
|
-
transactionId:
|
|
31742
|
+
var TransactionForceFailInputSchema = z456.object({
|
|
31743
|
+
transactionId: z456.uuid().meta({
|
|
31630
31744
|
description: "Queue transaction identifier (UUIDv7) to force-fail",
|
|
31631
31745
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31632
31746
|
})
|
|
31633
31747
|
});
|
|
31634
|
-
var TransactionForceFailBodySchema =
|
|
31635
|
-
reason:
|
|
31748
|
+
var TransactionForceFailBodySchema = z456.object({
|
|
31749
|
+
reason: z456.string().min(1).max(1000).meta({
|
|
31636
31750
|
description: "Human-readable reason for forcing this transaction to failed state",
|
|
31637
31751
|
examples: ["Manual intervention: stuck transaction after nonce conflict"]
|
|
31638
31752
|
})
|
|
31639
31753
|
});
|
|
31640
|
-
var TransactionForceFailResultSchema =
|
|
31641
|
-
transactionId:
|
|
31754
|
+
var TransactionForceFailResultSchema = z456.object({
|
|
31755
|
+
transactionId: z456.uuid().meta({ description: "The force-failed transaction ID" }),
|
|
31642
31756
|
previousStatus: transactionRequestState().meta({ description: "State before force fail" }),
|
|
31643
31757
|
status: transactionRequestState().meta({ description: "New state (FAILED)" }),
|
|
31644
|
-
reason:
|
|
31758
|
+
reason: z456.string().meta({ description: "The reason provided for the force-fail" })
|
|
31645
31759
|
});
|
|
31646
31760
|
var TransactionV2ForceFailOutputSchema = createSingleResponse(TransactionForceFailResultSchema);
|
|
31647
|
-
var TransactionForceNonceInputSchema =
|
|
31648
|
-
transactionId:
|
|
31761
|
+
var TransactionForceNonceInputSchema = z456.object({
|
|
31762
|
+
transactionId: z456.uuid().meta({
|
|
31649
31763
|
description: "Queue transaction identifier — the nonce is forced on its sender wallet",
|
|
31650
31764
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31651
31765
|
})
|
|
31652
31766
|
});
|
|
31653
|
-
var TransactionForceNonceBodySchema =
|
|
31654
|
-
nonce:
|
|
31767
|
+
var TransactionForceNonceBodySchema = z456.object({
|
|
31768
|
+
nonce: z456.number().int().nonnegative().meta({
|
|
31655
31769
|
description: "Nonce value to force-set on the sender's nonce tracker",
|
|
31656
31770
|
examples: [42]
|
|
31657
31771
|
})
|
|
31658
31772
|
});
|
|
31659
|
-
var TransactionForceNonceResultSchema =
|
|
31660
|
-
previous:
|
|
31661
|
-
new:
|
|
31773
|
+
var TransactionForceNonceResultSchema = z456.object({
|
|
31774
|
+
previous: z456.number().nullable().meta({ description: "Previous nonce value (null if uninitialized)" }),
|
|
31775
|
+
new: z456.number().meta({ description: "New nonce value after force-set" })
|
|
31662
31776
|
});
|
|
31663
31777
|
var TransactionV2ForceNonceOutputSchema = createSingleResponse(TransactionForceNonceResultSchema);
|
|
31664
31778
|
|
|
31665
31779
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.cancel.schema.ts
|
|
31666
|
-
import { z as
|
|
31667
|
-
var TransactionV2CancelInputSchema =
|
|
31668
|
-
transactionId:
|
|
31780
|
+
import { z as z457 } from "zod";
|
|
31781
|
+
var TransactionV2CancelInputSchema = z457.object({
|
|
31782
|
+
transactionId: z457.uuid().meta({
|
|
31669
31783
|
description: "Queue transaction identifier (UUIDv7) to cancel",
|
|
31670
31784
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31671
31785
|
})
|
|
31672
31786
|
});
|
|
31673
|
-
var TransactionCancelResultSchema =
|
|
31674
|
-
status:
|
|
31787
|
+
var TransactionCancelResultSchema = z457.object({
|
|
31788
|
+
status: z457.enum(["cancelled", "cancellation_pending", "error"]).meta({
|
|
31675
31789
|
description: "Cancel result: 'cancelled' for immediate cancel, " + "'cancellation_pending' for post-broadcast RBF cancel, 'error' if cancel failed",
|
|
31676
31790
|
examples: ["cancelled", "cancellation_pending"]
|
|
31677
31791
|
}),
|
|
31678
|
-
cancelTransactionId:
|
|
31792
|
+
cancelTransactionId: z457.string().optional().meta({
|
|
31679
31793
|
description: "RBF replacement transaction ID when cancellation is pending on-chain"
|
|
31680
31794
|
}),
|
|
31681
|
-
message:
|
|
31795
|
+
message: z457.string().optional().meta({
|
|
31682
31796
|
description: "Human-readable error or status message"
|
|
31683
31797
|
})
|
|
31684
31798
|
});
|
|
31685
31799
|
var TransactionV2CancelOutputSchema = createSingleResponse(TransactionCancelResultSchema);
|
|
31686
31800
|
|
|
31687
31801
|
// ../../packages/dalp/api-contract/src/routes/v2/transaction/transaction.v2.list.schema.ts
|
|
31688
|
-
import { z as
|
|
31802
|
+
import { z as z458 } from "zod";
|
|
31689
31803
|
var TRANSACTION_COLLECTION_FIELDS = {
|
|
31690
31804
|
status: enumField([...transactionRequestStates]),
|
|
31691
31805
|
operationType: textField(),
|
|
@@ -31698,12 +31812,12 @@ var TransactionV2ListInputSchema = createCollectionInputSchema(TRANSACTION_COLLE
|
|
|
31698
31812
|
defaultSort: "createdAt",
|
|
31699
31813
|
globalSearch: true
|
|
31700
31814
|
});
|
|
31701
|
-
var TransactionListItemSchema =
|
|
31702
|
-
transactionId:
|
|
31815
|
+
var TransactionListItemSchema = z458.object({
|
|
31816
|
+
transactionId: z458.uuid().meta({
|
|
31703
31817
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31704
31818
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31705
31819
|
}),
|
|
31706
|
-
kind:
|
|
31820
|
+
kind: z458.string().meta({
|
|
31707
31821
|
description: "Mutation kind submitted to the queue",
|
|
31708
31822
|
examples: ["token.create", "token.mint"]
|
|
31709
31823
|
}),
|
|
@@ -31711,19 +31825,19 @@ var TransactionListItemSchema = z456.object({
|
|
|
31711
31825
|
description: "Current transaction queue state",
|
|
31712
31826
|
examples: ["QUEUED", "COMPLETED", "FAILED"]
|
|
31713
31827
|
}),
|
|
31714
|
-
subStatus:
|
|
31828
|
+
subStatus: z458.string().nullable().meta({
|
|
31715
31829
|
description: "Optional queue sub-status with finer-grained detail",
|
|
31716
31830
|
examples: ["TIMEOUT", null]
|
|
31717
31831
|
}),
|
|
31718
|
-
fromAddress:
|
|
31832
|
+
fromAddress: z458.string().meta({
|
|
31719
31833
|
description: "Sender wallet address",
|
|
31720
31834
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31721
31835
|
}),
|
|
31722
|
-
chainId:
|
|
31836
|
+
chainId: z458.number().int().meta({
|
|
31723
31837
|
description: "Target chain ID",
|
|
31724
31838
|
examples: [1]
|
|
31725
31839
|
}),
|
|
31726
|
-
transactionHash:
|
|
31840
|
+
transactionHash: z458.string().nullable().meta({
|
|
31727
31841
|
description: "Primary transaction hash once broadcast",
|
|
31728
31842
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
31729
31843
|
}),
|
|
@@ -31743,19 +31857,19 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
31743
31857
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
31744
31858
|
|
|
31745
31859
|
// ../../packages/dalp/api-contract/src/routes/transaction/routes/transaction.status.schema.ts
|
|
31746
|
-
import { z as
|
|
31747
|
-
var TransactionStatusInputSchema =
|
|
31748
|
-
transactionId:
|
|
31860
|
+
import { z as z459 } from "zod";
|
|
31861
|
+
var TransactionStatusInputSchema = z459.object({
|
|
31862
|
+
transactionId: z459.uuid().meta({
|
|
31749
31863
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31750
31864
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31751
31865
|
})
|
|
31752
31866
|
});
|
|
31753
|
-
var TransactionStatusOutputSchema =
|
|
31754
|
-
transactionId:
|
|
31867
|
+
var TransactionStatusOutputSchema = z459.object({
|
|
31868
|
+
transactionId: z459.uuid().meta({
|
|
31755
31869
|
description: "Queue transaction identifier (UUIDv7)",
|
|
31756
31870
|
examples: ["01934567-89ab-7def-8123-456789abcdef"]
|
|
31757
31871
|
}),
|
|
31758
|
-
kind:
|
|
31872
|
+
kind: z459.string().meta({
|
|
31759
31873
|
description: "Mutation kind submitted to the queue",
|
|
31760
31874
|
examples: ["token.create", "token.mint"]
|
|
31761
31875
|
}),
|
|
@@ -31763,23 +31877,23 @@ var TransactionStatusOutputSchema = z457.object({
|
|
|
31763
31877
|
description: "Current transaction queue state",
|
|
31764
31878
|
examples: ["QUEUED", "PREPARING", "CONFIRMING", "COMPLETED", "FAILED"]
|
|
31765
31879
|
}),
|
|
31766
|
-
subStatus:
|
|
31880
|
+
subStatus: z459.string().nullable().meta({
|
|
31767
31881
|
description: "Optional queue sub-status with finer-grained progress or failure detail",
|
|
31768
31882
|
examples: ["TIMEOUT", "WORKFLOW_GRANTING_PERMISSIONS", null]
|
|
31769
31883
|
}),
|
|
31770
|
-
transactionHash:
|
|
31884
|
+
transactionHash: z459.string().nullable().meta({
|
|
31771
31885
|
description: "Primary transaction hash once broadcast",
|
|
31772
31886
|
examples: ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", null]
|
|
31773
31887
|
}),
|
|
31774
|
-
transactionHashes:
|
|
31888
|
+
transactionHashes: z459.array(z459.string()).optional().meta({
|
|
31775
31889
|
description: "All transaction hashes for batch operations. Only present when the operation produced multiple transactions.",
|
|
31776
31890
|
examples: [["0xabc...", "0xdef..."]]
|
|
31777
31891
|
}),
|
|
31778
|
-
blockNumber:
|
|
31892
|
+
blockNumber: z459.string().nullable().meta({
|
|
31779
31893
|
description: "Confirmed block number when available",
|
|
31780
31894
|
examples: ["12345678", null]
|
|
31781
31895
|
}),
|
|
31782
|
-
errorMessage:
|
|
31896
|
+
errorMessage: z459.string().nullable().meta({
|
|
31783
31897
|
description: "Human-readable error or timeout detail when available",
|
|
31784
31898
|
examples: ["Execution reverted", "Receipt not found after repeated checks", null]
|
|
31785
31899
|
}),
|
|
@@ -31858,12 +31972,12 @@ var transactionV2Contract = {
|
|
|
31858
31972
|
};
|
|
31859
31973
|
|
|
31860
31974
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.contract.ts
|
|
31861
|
-
import { z as
|
|
31975
|
+
import { z as z465 } from "zod";
|
|
31862
31976
|
|
|
31863
31977
|
// ../../packages/dalp/api-contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
31864
|
-
import { z as
|
|
31865
|
-
var UserReadByNationalIdInputSchema =
|
|
31866
|
-
nationalId:
|
|
31978
|
+
import { z as z460 } from "zod";
|
|
31979
|
+
var UserReadByNationalIdInputSchema = z460.object({
|
|
31980
|
+
nationalId: z460.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
31867
31981
|
});
|
|
31868
31982
|
|
|
31869
31983
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.admin-list.schema.ts
|
|
@@ -31881,13 +31995,13 @@ var UserAdminListV2InputSchema = createCollectionInputSchema(USER_ADMIN_LIST_COL
|
|
|
31881
31995
|
var UserAdminListV2OutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
31882
31996
|
|
|
31883
31997
|
// ../../packages/dalp/api-contract/src/routes/v2/user/user.v2.assets.schema.ts
|
|
31884
|
-
import { z as
|
|
31885
|
-
var TokenAssetV2Schema =
|
|
31998
|
+
import { z as z461 } from "zod";
|
|
31999
|
+
var TokenAssetV2Schema = z461.object({
|
|
31886
32000
|
id: ethereumAddress.meta({
|
|
31887
32001
|
description: "The token contract address",
|
|
31888
32002
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
31889
32003
|
}),
|
|
31890
|
-
name:
|
|
32004
|
+
name: z461.string().meta({
|
|
31891
32005
|
description: "The token name",
|
|
31892
32006
|
examples: ["Bond Token", "Equity Share"]
|
|
31893
32007
|
}),
|
|
@@ -31907,19 +32021,19 @@ var TokenAssetV2Schema = z459.object({
|
|
|
31907
32021
|
description: "The total supply of the token (raw on-chain uint256)",
|
|
31908
32022
|
examples: ["1000000000000000000000", "101000000000000000000000000"]
|
|
31909
32023
|
}),
|
|
31910
|
-
bond:
|
|
31911
|
-
isMatured:
|
|
32024
|
+
bond: z461.object({
|
|
32025
|
+
isMatured: z461.boolean().meta({
|
|
31912
32026
|
description: "Whether the bond is matured",
|
|
31913
32027
|
examples: [true, false]
|
|
31914
32028
|
})
|
|
31915
32029
|
}).optional().nullable().meta({ description: "The bond details", examples: [] }),
|
|
31916
|
-
yield:
|
|
31917
|
-
schedule:
|
|
32030
|
+
yield: z461.object({
|
|
32031
|
+
schedule: z461.object({
|
|
31918
32032
|
id: ethereumAddress.meta({
|
|
31919
32033
|
description: "The yield schedule contract address",
|
|
31920
32034
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
31921
32035
|
}),
|
|
31922
|
-
denominationAsset:
|
|
32036
|
+
denominationAsset: z461.object({
|
|
31923
32037
|
id: ethereumAddress.meta({
|
|
31924
32038
|
description: "The denomination asset contract address",
|
|
31925
32039
|
examples: ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
|
|
@@ -31939,8 +32053,8 @@ var TokenAssetV2Schema = z459.object({
|
|
|
31939
32053
|
}).nullable().meta({ description: "The yield schedule details", examples: [] })
|
|
31940
32054
|
}).nullable().meta({ description: "The yield details", examples: [] })
|
|
31941
32055
|
});
|
|
31942
|
-
var UserAssetBalanceV2ItemSchema =
|
|
31943
|
-
id:
|
|
32056
|
+
var UserAssetBalanceV2ItemSchema = z461.object({
|
|
32057
|
+
id: z461.uuid().meta({
|
|
31944
32058
|
description: "The balance record ID (idxr_token_balances.id, UUIDv7).",
|
|
31945
32059
|
examples: ["019283bc-7e0a-7c3d-9b1f-3f4d2c5e6a7b"]
|
|
31946
32060
|
}),
|
|
@@ -31960,7 +32074,7 @@ var UserAssetBalanceV2ItemSchema = z459.object({
|
|
|
31960
32074
|
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.",
|
|
31961
32075
|
examples: ["5.00", null]
|
|
31962
32076
|
}),
|
|
31963
|
-
priceInBaseCurrencyReliable:
|
|
32077
|
+
priceInBaseCurrencyReliable: z461.boolean().meta({
|
|
31964
32078
|
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.",
|
|
31965
32079
|
examples: [true, false]
|
|
31966
32080
|
}),
|
|
@@ -32012,10 +32126,10 @@ var UserV2ListInputSchema = createCollectionInputSchema(USERS_COLLECTION_FIELDS,
|
|
|
32012
32126
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
32013
32127
|
|
|
32014
32128
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
32015
|
-
import { z as
|
|
32129
|
+
import { z as z464 } from "zod";
|
|
32016
32130
|
|
|
32017
32131
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-version-documents.v2.list.schema.ts
|
|
32018
|
-
import { z as
|
|
32132
|
+
import { z as z462 } from "zod";
|
|
32019
32133
|
var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
32020
32134
|
fileName: textField(),
|
|
32021
32135
|
documentType: enumField(kycDocumentTypes, { facetable: true }),
|
|
@@ -32026,19 +32140,19 @@ var KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS = {
|
|
|
32026
32140
|
var KycProfileVersionDocumentsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSION_DOCUMENTS_COLLECTION_FIELDS, {
|
|
32027
32141
|
defaultSort: "uploadedAt"
|
|
32028
32142
|
});
|
|
32029
|
-
var KycProfileVersionDocumentsV2ListItemSchema =
|
|
32030
|
-
id:
|
|
32143
|
+
var KycProfileVersionDocumentsV2ListItemSchema = z462.object({
|
|
32144
|
+
id: z462.string(),
|
|
32031
32145
|
documentType: kycDocumentType(),
|
|
32032
|
-
fileName:
|
|
32033
|
-
fileSize:
|
|
32034
|
-
mimeType:
|
|
32146
|
+
fileName: z462.string(),
|
|
32147
|
+
fileSize: z462.number(),
|
|
32148
|
+
mimeType: z462.string(),
|
|
32035
32149
|
uploadedAt: timestamp(),
|
|
32036
|
-
uploadedBy:
|
|
32150
|
+
uploadedBy: z462.string().nullable()
|
|
32037
32151
|
});
|
|
32038
32152
|
var KycProfileVersionDocumentsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionDocumentsV2ListItemSchema);
|
|
32039
32153
|
|
|
32040
32154
|
// ../../packages/dalp/api-contract/src/routes/v2/user/kyc/kyc-profile-versions.v2.list.schema.ts
|
|
32041
|
-
import { z as
|
|
32155
|
+
import { z as z463 } from "zod";
|
|
32042
32156
|
var KYC_VERSION_STATUSES = ["draft", "submitted", "under_review", "approved", "rejected"];
|
|
32043
32157
|
var KYC_REVIEW_OUTCOMES = ["approved", "rejected", "changes_requested"];
|
|
32044
32158
|
var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
@@ -32051,21 +32165,21 @@ var KYC_PROFILE_VERSIONS_COLLECTION_FIELDS = {
|
|
|
32051
32165
|
var KycProfileVersionsV2ListInputSchema = createCollectionInputSchema(KYC_PROFILE_VERSIONS_COLLECTION_FIELDS, {
|
|
32052
32166
|
defaultSort: "versionNumber"
|
|
32053
32167
|
});
|
|
32054
|
-
var KycProfileVersionsV2ListItemSchema =
|
|
32055
|
-
id:
|
|
32056
|
-
versionNumber:
|
|
32168
|
+
var KycProfileVersionsV2ListItemSchema = z463.object({
|
|
32169
|
+
id: z463.string(),
|
|
32170
|
+
versionNumber: z463.number(),
|
|
32057
32171
|
status: kycVersionStatus(),
|
|
32058
32172
|
createdAt: timestamp(),
|
|
32059
|
-
createdBy:
|
|
32173
|
+
createdBy: z463.string().nullable(),
|
|
32060
32174
|
submittedAt: timestamp().nullable(),
|
|
32061
|
-
submittedBy:
|
|
32175
|
+
submittedBy: z463.string().nullable(),
|
|
32062
32176
|
reviewedAt: timestamp().nullable(),
|
|
32063
|
-
reviewedBy:
|
|
32064
|
-
reviewOutcome:
|
|
32065
|
-
isDraft:
|
|
32066
|
-
isUnderReview:
|
|
32067
|
-
isApproved:
|
|
32068
|
-
isCurrent:
|
|
32177
|
+
reviewedBy: z463.string().nullable(),
|
|
32178
|
+
reviewOutcome: z463.enum(KYC_REVIEW_OUTCOMES).nullable(),
|
|
32179
|
+
isDraft: z463.boolean(),
|
|
32180
|
+
isUnderReview: z463.boolean(),
|
|
32181
|
+
isApproved: z463.boolean(),
|
|
32182
|
+
isCurrent: z463.boolean()
|
|
32069
32183
|
});
|
|
32070
32184
|
var KycProfileVersionsV2ListOutputSchema = createPaginatedResponse(KycProfileVersionsV2ListItemSchema);
|
|
32071
32185
|
|
|
@@ -32083,14 +32197,14 @@ var versionsList = v2Contract.route({
|
|
|
32083
32197
|
description: "List KYC profile versions for a user with pagination, sorting, and filtering. Sortable by versionNumber, status, createdAt, submittedAt, reviewedAt.",
|
|
32084
32198
|
successDescription: "Paginated array of KYC profile versions with total count and faceted filter values.",
|
|
32085
32199
|
tags: [V2_TAG.userKyc]
|
|
32086
|
-
}).input(v2Input.paramsQuery(
|
|
32200
|
+
}).input(v2Input.paramsQuery(z464.object({ userId: z464.string().min(1) }), KycProfileVersionsV2ListInputSchema)).output(KycProfileVersionsV2ListOutputSchema);
|
|
32087
32201
|
var versionsCreate = v2Contract.route({
|
|
32088
32202
|
method: "POST",
|
|
32089
32203
|
path: "/kyc-profiles/{userId}/versions",
|
|
32090
32204
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
32091
32205
|
successDescription: "KYC profile version created successfully.",
|
|
32092
32206
|
tags: [V2_TAG.userKyc]
|
|
32093
|
-
}).input(v2Input.paramsBody(
|
|
32207
|
+
}).input(v2Input.paramsBody(z464.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
32094
32208
|
var versionRead = v2Contract.route({
|
|
32095
32209
|
method: "GET",
|
|
32096
32210
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -32104,7 +32218,7 @@ var versionUpdate = v2Contract.route({
|
|
|
32104
32218
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
32105
32219
|
successDescription: "KYC profile version updated successfully.",
|
|
32106
32220
|
tags: [V2_TAG.userKyc]
|
|
32107
|
-
}).input(v2Input.paramsBody(
|
|
32221
|
+
}).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
32108
32222
|
var versionSubmit = v2Contract.route({
|
|
32109
32223
|
method: "POST",
|
|
32110
32224
|
path: "/kyc-profile-versions/{versionId}/submissions",
|
|
@@ -32118,28 +32232,28 @@ var versionApprove = v2Contract.route({
|
|
|
32118
32232
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
32119
32233
|
successDescription: "KYC profile version approved.",
|
|
32120
32234
|
tags: [V2_TAG.userKyc]
|
|
32121
|
-
}).input(v2Input.paramsBody(
|
|
32235
|
+
}).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
32122
32236
|
var versionReject = v2Contract.route({
|
|
32123
32237
|
method: "POST",
|
|
32124
32238
|
path: "/kyc-profile-versions/{versionId}/rejections",
|
|
32125
32239
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
32126
32240
|
successDescription: "KYC profile version rejected.",
|
|
32127
32241
|
tags: [V2_TAG.userKyc]
|
|
32128
|
-
}).input(v2Input.paramsBody(
|
|
32242
|
+
}).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
32129
32243
|
var versionRequestUpdate = v2Contract.route({
|
|
32130
32244
|
method: "POST",
|
|
32131
32245
|
path: "/kyc-profile-versions/{versionId}/update-requests",
|
|
32132
32246
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
32133
32247
|
successDescription: "Update request created successfully.",
|
|
32134
32248
|
tags: [V2_TAG.userKyc]
|
|
32135
|
-
}).input(v2Input.paramsBody(
|
|
32249
|
+
}).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
32136
32250
|
var documentsList = v2Contract.route({
|
|
32137
32251
|
method: "GET",
|
|
32138
32252
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
32139
32253
|
description: "List documents attached to a KYC profile version with pagination, sorting, and filtering. Sortable by fileName, documentType, fileSize, uploadedAt.",
|
|
32140
32254
|
successDescription: "Paginated array of KYC documents with total count and faceted filter values.",
|
|
32141
32255
|
tags: [V2_TAG.userKyc]
|
|
32142
|
-
}).input(v2Input.paramsQuery(
|
|
32256
|
+
}).input(v2Input.paramsQuery(z464.object({ versionId: z464.string().min(1) }), KycProfileVersionDocumentsV2ListInputSchema)).output(KycProfileVersionDocumentsV2ListOutputSchema);
|
|
32143
32257
|
var documentsDelete = v2Contract.route({
|
|
32144
32258
|
method: "DELETE",
|
|
32145
32259
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}",
|
|
@@ -32153,7 +32267,7 @@ var documentsConfirmUpload = v2Contract.route({
|
|
|
32153
32267
|
description: "Upload a KYC document through DAPI so the payload is encrypted before object storage.",
|
|
32154
32268
|
successDescription: "Document uploaded successfully.",
|
|
32155
32269
|
tags: [V2_TAG.userKyc]
|
|
32156
|
-
}).input(v2Input.paramsBody(
|
|
32270
|
+
}).input(v2Input.paramsBody(z464.object({ versionId: KycProfileVersionDocumentConfirmUploadV2InputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadV2InputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
32157
32271
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
32158
32272
|
method: "POST",
|
|
32159
32273
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/downloads",
|
|
@@ -32230,14 +32344,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
32230
32344
|
description: "Read a single user by their internal database ID.",
|
|
32231
32345
|
successDescription: "User retrieved successfully.",
|
|
32232
32346
|
tags: [V2_TAG.user]
|
|
32233
|
-
}).input(v2Input.params(
|
|
32347
|
+
}).input(v2Input.params(z465.object({ userId: z465.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
32234
32348
|
var readByWallet3 = v2Contract.route({
|
|
32235
32349
|
method: "GET",
|
|
32236
32350
|
path: "/wallets/{wallet}/user",
|
|
32237
32351
|
description: "Read a single user by their Ethereum wallet address.",
|
|
32238
32352
|
successDescription: "User retrieved successfully.",
|
|
32239
32353
|
tags: [V2_TAG.user]
|
|
32240
|
-
}).input(v2Input.params(
|
|
32354
|
+
}).input(v2Input.params(z465.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
32241
32355
|
var readByNationalId = v2Contract.route({
|
|
32242
32356
|
method: "GET",
|
|
32243
32357
|
path: "/national-ids/{nationalId}/user",
|
|
@@ -32346,30 +32460,30 @@ var userV2Contract = {
|
|
|
32346
32460
|
};
|
|
32347
32461
|
|
|
32348
32462
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.chain-of-custody.schema.ts
|
|
32349
|
-
import { z as
|
|
32350
|
-
var WebhooksV2ChainOfCustodyInputSchema =
|
|
32351
|
-
evtId:
|
|
32352
|
-
});
|
|
32353
|
-
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(
|
|
32354
|
-
evtId:
|
|
32355
|
-
hops:
|
|
32356
|
-
stage:
|
|
32357
|
-
contentHash:
|
|
32358
|
-
signedBy:
|
|
32359
|
-
recordedAt:
|
|
32463
|
+
import { z as z466 } from "zod";
|
|
32464
|
+
var WebhooksV2ChainOfCustodyInputSchema = z466.object({
|
|
32465
|
+
evtId: z466.string().trim().min(1)
|
|
32466
|
+
});
|
|
32467
|
+
var WebhooksV2ChainOfCustodyOutputSchema = createSingleResponse(z466.object({
|
|
32468
|
+
evtId: z466.string(),
|
|
32469
|
+
hops: z466.array(z466.object({
|
|
32470
|
+
stage: z466.string(),
|
|
32471
|
+
contentHash: z466.string(),
|
|
32472
|
+
signedBy: z466.string().optional(),
|
|
32473
|
+
recordedAt: z466.coerce.date()
|
|
32360
32474
|
})),
|
|
32361
|
-
merkleRoot:
|
|
32362
|
-
platformSignature:
|
|
32475
|
+
merkleRoot: z466.string(),
|
|
32476
|
+
platformSignature: z466.string()
|
|
32363
32477
|
}));
|
|
32364
32478
|
|
|
32365
32479
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
32366
|
-
import { z as
|
|
32480
|
+
import { z as z468 } from "zod";
|
|
32367
32481
|
|
|
32368
32482
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.list.schema.ts
|
|
32369
|
-
import { z as
|
|
32370
|
-
var WebhookPayloadShapeSchema =
|
|
32371
|
-
var WebhookBreakerStateSchema =
|
|
32372
|
-
var WebhookDeliveryFailureClassSchema =
|
|
32483
|
+
import { z as z467 } from "zod";
|
|
32484
|
+
var WebhookPayloadShapeSchema = z467.enum(["thin", "fat"]);
|
|
32485
|
+
var WebhookBreakerStateSchema = z467.enum(["closed", "half_open", "open"]);
|
|
32486
|
+
var WebhookDeliveryFailureClassSchema = z467.enum([
|
|
32373
32487
|
"DNS_FAIL",
|
|
32374
32488
|
"TLS_FAIL",
|
|
32375
32489
|
"CONNECT_TIMEOUT",
|
|
@@ -32381,35 +32495,35 @@ var WebhookDeliveryFailureClassSchema = z465.enum([
|
|
|
32381
32495
|
"RECEIPT_INVALID_SIG",
|
|
32382
32496
|
"RECEIPT_HASH_MISMATCH"
|
|
32383
32497
|
]);
|
|
32384
|
-
var WebhookFinalityStateSchema =
|
|
32385
|
-
var WebhookSigningSecretStatusSchema =
|
|
32386
|
-
var WebhookFatEventsAcknowledgmentSchema =
|
|
32387
|
-
acknowledgedAt:
|
|
32388
|
-
acknowledgedByUserId:
|
|
32389
|
-
fieldsAcknowledged:
|
|
32390
|
-
});
|
|
32391
|
-
var WebhookEndpointSchema =
|
|
32392
|
-
id:
|
|
32393
|
-
tenantId:
|
|
32394
|
-
systemId:
|
|
32395
|
-
url:
|
|
32396
|
-
displayName:
|
|
32397
|
-
subscriptions:
|
|
32498
|
+
var WebhookFinalityStateSchema = z467.enum(["pending", "provisional", "final", "retracted", "recalled"]);
|
|
32499
|
+
var WebhookSigningSecretStatusSchema = z467.enum(["active", "previous", "revoked"]);
|
|
32500
|
+
var WebhookFatEventsAcknowledgmentSchema = z467.object({
|
|
32501
|
+
acknowledgedAt: z467.coerce.date(),
|
|
32502
|
+
acknowledgedByUserId: z467.string(),
|
|
32503
|
+
fieldsAcknowledged: z467.array(z467.string())
|
|
32504
|
+
});
|
|
32505
|
+
var WebhookEndpointSchema = z467.object({
|
|
32506
|
+
id: z467.uuid(),
|
|
32507
|
+
tenantId: z467.string(),
|
|
32508
|
+
systemId: z467.string(),
|
|
32509
|
+
url: z467.url(),
|
|
32510
|
+
displayName: z467.string().nullable(),
|
|
32511
|
+
subscriptions: z467.array(z467.string()),
|
|
32398
32512
|
defaultPayloadShape: WebhookPayloadShapeSchema,
|
|
32399
|
-
counterSignedReceipts:
|
|
32513
|
+
counterSignedReceipts: z467.boolean(),
|
|
32400
32514
|
breakerState: WebhookBreakerStateSchema,
|
|
32401
|
-
disabledAt:
|
|
32402
|
-
disabledReason:
|
|
32515
|
+
disabledAt: z467.coerce.date().nullable(),
|
|
32516
|
+
disabledReason: z467.string().nullable(),
|
|
32403
32517
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.nullable(),
|
|
32404
|
-
secret:
|
|
32405
|
-
activeVersion:
|
|
32406
|
-
previousVersion:
|
|
32407
|
-
previousRevokesAt:
|
|
32408
|
-
lastUsedAt:
|
|
32518
|
+
secret: z467.object({
|
|
32519
|
+
activeVersion: z467.number().int().positive().nullable(),
|
|
32520
|
+
previousVersion: z467.number().int().positive().nullable(),
|
|
32521
|
+
previousRevokesAt: z467.coerce.date().nullable(),
|
|
32522
|
+
lastUsedAt: z467.coerce.date().nullable()
|
|
32409
32523
|
}),
|
|
32410
|
-
createdAt:
|
|
32411
|
-
updatedAt:
|
|
32412
|
-
createdByUserId:
|
|
32524
|
+
createdAt: z467.coerce.date(),
|
|
32525
|
+
updatedAt: z467.coerce.date(),
|
|
32526
|
+
createdByUserId: z467.string().nullable()
|
|
32413
32527
|
});
|
|
32414
32528
|
var WEBHOOKS_COLLECTION_FIELDS = {
|
|
32415
32529
|
displayName: textField(),
|
|
@@ -32428,44 +32542,44 @@ var WebhooksV2ListInputSchema = createCollectionInputSchema(WEBHOOKS_COLLECTION_
|
|
|
32428
32542
|
var WebhooksV2ListOutputSchema = createPaginatedResponse(WebhookEndpointSchema);
|
|
32429
32543
|
|
|
32430
32544
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.create.schema.ts
|
|
32431
|
-
var WebhooksV2CreateInputSchema =
|
|
32432
|
-
url:
|
|
32433
|
-
displayName:
|
|
32434
|
-
subscriptions:
|
|
32545
|
+
var WebhooksV2CreateInputSchema = z468.object({
|
|
32546
|
+
url: z468.url(),
|
|
32547
|
+
displayName: z468.string().trim().min(1).max(200).optional(),
|
|
32548
|
+
subscriptions: z468.array(z468.string().trim().min(1)).min(1).default(["*.final", "*.retracted", "*.recalled"]),
|
|
32435
32549
|
defaultPayloadShape: WebhookPayloadShapeSchema.default("thin"),
|
|
32436
|
-
counterSignedReceipts:
|
|
32550
|
+
counterSignedReceipts: z468.boolean().default(false)
|
|
32437
32551
|
});
|
|
32438
32552
|
var WebhookEndpointCreateResultSchema = WebhookEndpointSchema.extend({
|
|
32439
|
-
signingSecret:
|
|
32553
|
+
signingSecret: z468.string().nullable()
|
|
32440
32554
|
});
|
|
32441
32555
|
var WebhooksV2CreateOutputSchema = createSingleResponse(WebhookEndpointCreateResultSchema);
|
|
32442
32556
|
|
|
32443
32557
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.delete.schema.ts
|
|
32444
|
-
import { z as
|
|
32445
|
-
var WebhooksV2DeleteInputSchema =
|
|
32446
|
-
id:
|
|
32558
|
+
import { z as z469 } from "zod";
|
|
32559
|
+
var WebhooksV2DeleteInputSchema = z469.object({
|
|
32560
|
+
id: z469.uuid()
|
|
32447
32561
|
});
|
|
32448
32562
|
var WebhooksV2DeleteOutputSchema = DeleteResponseSchema;
|
|
32449
32563
|
|
|
32450
32564
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.list.schema.ts
|
|
32451
|
-
import { z as
|
|
32452
|
-
var WebhookDeliveryStatusSchema =
|
|
32453
|
-
var WebhookDeliverySchema =
|
|
32454
|
-
id:
|
|
32455
|
-
eventOutboxId:
|
|
32456
|
-
endpointId:
|
|
32457
|
-
tenantId:
|
|
32458
|
-
evtId:
|
|
32459
|
-
eventType:
|
|
32460
|
-
attemptN:
|
|
32461
|
-
attemptedAt:
|
|
32462
|
-
responseStatus:
|
|
32565
|
+
import { z as z470 } from "zod";
|
|
32566
|
+
var WebhookDeliveryStatusSchema = z470.enum(["pending", "delivered", "failed"]);
|
|
32567
|
+
var WebhookDeliverySchema = z470.object({
|
|
32568
|
+
id: z470.uuid(),
|
|
32569
|
+
eventOutboxId: z470.uuid(),
|
|
32570
|
+
endpointId: z470.uuid(),
|
|
32571
|
+
tenantId: z470.string(),
|
|
32572
|
+
evtId: z470.string(),
|
|
32573
|
+
eventType: z470.string(),
|
|
32574
|
+
attemptN: z470.number().int().nonnegative(),
|
|
32575
|
+
attemptedAt: z470.coerce.date(),
|
|
32576
|
+
responseStatus: z470.number().int().nullable(),
|
|
32463
32577
|
failureClass: WebhookDeliveryFailureClassSchema.nullable(),
|
|
32464
32578
|
status: WebhookDeliveryStatusSchema,
|
|
32465
|
-
deliveredAt:
|
|
32466
|
-
isReplay:
|
|
32467
|
-
isTest:
|
|
32468
|
-
traceId:
|
|
32579
|
+
deliveredAt: z470.coerce.date().nullable(),
|
|
32580
|
+
isReplay: z470.boolean(),
|
|
32581
|
+
isTest: z470.boolean(),
|
|
32582
|
+
traceId: z470.string().nullable()
|
|
32469
32583
|
});
|
|
32470
32584
|
var WEBHOOK_DELIVERIES_COLLECTION_FIELDS = {
|
|
32471
32585
|
status: enumField(["pending", "delivered", "failed"]),
|
|
@@ -32491,167 +32605,167 @@ var WebhooksV2DeliveriesListInputSchema = createCollectionInputSchema(WEBHOOK_DE
|
|
|
32491
32605
|
defaultSort: "attemptedAt",
|
|
32492
32606
|
globalSearch: false
|
|
32493
32607
|
});
|
|
32494
|
-
var WebhooksV2DeliveriesListParamsSchema =
|
|
32495
|
-
id:
|
|
32608
|
+
var WebhooksV2DeliveriesListParamsSchema = z470.object({
|
|
32609
|
+
id: z470.uuid()
|
|
32496
32610
|
});
|
|
32497
32611
|
var WebhooksV2DeliveriesListOutputSchema = createPaginatedResponse(WebhookDeliverySchema);
|
|
32498
32612
|
|
|
32499
32613
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.read.schema.ts
|
|
32500
|
-
import { z as
|
|
32501
|
-
var WebhooksV2DeliveriesReadInputSchema =
|
|
32502
|
-
id:
|
|
32503
|
-
deliveryId:
|
|
32614
|
+
import { z as z471 } from "zod";
|
|
32615
|
+
var WebhooksV2DeliveriesReadInputSchema = z471.object({
|
|
32616
|
+
id: z471.uuid(),
|
|
32617
|
+
deliveryId: z471.uuid()
|
|
32504
32618
|
});
|
|
32505
32619
|
var WebhookDeliveryDetailSchema = WebhookDeliverySchema.extend({
|
|
32506
|
-
request:
|
|
32507
|
-
payload:
|
|
32508
|
-
signedHeaders:
|
|
32509
|
-
signedStringPreview:
|
|
32620
|
+
request: z471.object({
|
|
32621
|
+
payload: z471.record(z471.string(), z471.json()),
|
|
32622
|
+
signedHeaders: z471.record(z471.string(), z471.union([z471.string(), z471.array(z471.string())])),
|
|
32623
|
+
signedStringPreview: z471.string()
|
|
32510
32624
|
}),
|
|
32511
|
-
response:
|
|
32512
|
-
headers:
|
|
32513
|
-
body:
|
|
32514
|
-
timings:
|
|
32515
|
-
dnsMs:
|
|
32516
|
-
tlsMs:
|
|
32517
|
-
connectMs:
|
|
32518
|
-
ttfbMs:
|
|
32625
|
+
response: z471.object({
|
|
32626
|
+
headers: z471.record(z471.string(), z471.union([z471.string(), z471.array(z471.string())])).nullable(),
|
|
32627
|
+
body: z471.string().nullable(),
|
|
32628
|
+
timings: z471.object({
|
|
32629
|
+
dnsMs: z471.number().int().nullable(),
|
|
32630
|
+
tlsMs: z471.number().int().nullable(),
|
|
32631
|
+
connectMs: z471.number().int().nullable(),
|
|
32632
|
+
ttfbMs: z471.number().int().nullable()
|
|
32519
32633
|
})
|
|
32520
32634
|
})
|
|
32521
32635
|
});
|
|
32522
32636
|
var WebhooksV2DeliveriesReadOutputSchema = createSingleResponse(WebhookDeliveryDetailSchema);
|
|
32523
32637
|
|
|
32524
32638
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.deliveries.retry.schema.ts
|
|
32525
|
-
import { z as
|
|
32526
|
-
var WebhooksV2DeliveriesRetryInputSchema =
|
|
32527
|
-
id:
|
|
32528
|
-
deliveryId:
|
|
32639
|
+
import { z as z472 } from "zod";
|
|
32640
|
+
var WebhooksV2DeliveriesRetryInputSchema = z472.object({
|
|
32641
|
+
id: z472.uuid(),
|
|
32642
|
+
deliveryId: z472.uuid()
|
|
32529
32643
|
});
|
|
32530
|
-
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(
|
|
32531
|
-
deliveryId:
|
|
32532
|
-
scheduled:
|
|
32644
|
+
var WebhooksV2DeliveriesRetryOutputSchema = createSingleResponse(z472.object({
|
|
32645
|
+
deliveryId: z472.uuid(),
|
|
32646
|
+
scheduled: z472.boolean()
|
|
32533
32647
|
}));
|
|
32534
32648
|
|
|
32535
32649
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.read.schema.ts
|
|
32536
|
-
import { z as
|
|
32537
|
-
var WebhooksV2ReadInputSchema =
|
|
32538
|
-
id:
|
|
32650
|
+
import { z as z473 } from "zod";
|
|
32651
|
+
var WebhooksV2ReadInputSchema = z473.object({
|
|
32652
|
+
id: z473.uuid()
|
|
32539
32653
|
});
|
|
32540
32654
|
var WebhooksV2ReadOutputSchema = createSingleResponse(WebhookEndpointSchema);
|
|
32541
32655
|
|
|
32542
32656
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.recalls.schema.ts
|
|
32543
|
-
import { z as
|
|
32544
|
-
var WebhooksV2RecallsParamsSchema =
|
|
32545
|
-
evtId:
|
|
32546
|
-
});
|
|
32547
|
-
var WebhooksV2RecallsBodySchema =
|
|
32548
|
-
reason:
|
|
32549
|
-
});
|
|
32550
|
-
var WebhooksV2RecallsOutputSchema = createSingleResponse(
|
|
32551
|
-
evtId:
|
|
32552
|
-
recalledEvtId:
|
|
32553
|
-
supersedes:
|
|
32554
|
-
reason:
|
|
32555
|
-
recalledByUserId:
|
|
32657
|
+
import { z as z474 } from "zod";
|
|
32658
|
+
var WebhooksV2RecallsParamsSchema = z474.object({
|
|
32659
|
+
evtId: z474.string().trim().min(1)
|
|
32660
|
+
});
|
|
32661
|
+
var WebhooksV2RecallsBodySchema = z474.object({
|
|
32662
|
+
reason: z474.string().trim().min(1).max(2000)
|
|
32663
|
+
});
|
|
32664
|
+
var WebhooksV2RecallsOutputSchema = createSingleResponse(z474.object({
|
|
32665
|
+
evtId: z474.string(),
|
|
32666
|
+
recalledEvtId: z474.string(),
|
|
32667
|
+
supersedes: z474.string(),
|
|
32668
|
+
reason: z474.string(),
|
|
32669
|
+
recalledByUserId: z474.string()
|
|
32556
32670
|
}));
|
|
32557
32671
|
|
|
32558
32672
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.replays.schema.ts
|
|
32559
|
-
import { z as
|
|
32560
|
-
var WebhooksV2ReplayByRangeSchema =
|
|
32561
|
-
fromBlock:
|
|
32562
|
-
toBlock:
|
|
32563
|
-
chainId:
|
|
32564
|
-
confirmLargeRange:
|
|
32673
|
+
import { z as z475 } from "zod";
|
|
32674
|
+
var WebhooksV2ReplayByRangeSchema = z475.object({
|
|
32675
|
+
fromBlock: z475.coerce.bigint(),
|
|
32676
|
+
toBlock: z475.coerce.bigint().optional(),
|
|
32677
|
+
chainId: z475.coerce.number().int().positive(),
|
|
32678
|
+
confirmLargeRange: z475.boolean().default(false)
|
|
32565
32679
|
});
|
|
32566
|
-
var WebhooksV2ReplayByEventSchema =
|
|
32567
|
-
evtId:
|
|
32568
|
-
chainId:
|
|
32680
|
+
var WebhooksV2ReplayByEventSchema = z475.object({
|
|
32681
|
+
evtId: z475.string().trim().min(1),
|
|
32682
|
+
chainId: z475.coerce.number().int().positive().optional()
|
|
32569
32683
|
});
|
|
32570
|
-
var WebhooksV2ReplaysParamsSchema =
|
|
32571
|
-
id:
|
|
32684
|
+
var WebhooksV2ReplaysParamsSchema = z475.object({
|
|
32685
|
+
id: z475.uuid()
|
|
32572
32686
|
});
|
|
32573
|
-
var WebhooksV2ReplaysBodySchema =
|
|
32574
|
-
var WebhooksV2ReplaysOutputSchema = createSingleResponse(
|
|
32575
|
-
replayId:
|
|
32576
|
-
endpointId:
|
|
32577
|
-
eventsEnqueued:
|
|
32578
|
-
snapshotToBlock:
|
|
32687
|
+
var WebhooksV2ReplaysBodySchema = z475.union([WebhooksV2ReplayByRangeSchema, WebhooksV2ReplayByEventSchema]);
|
|
32688
|
+
var WebhooksV2ReplaysOutputSchema = createSingleResponse(z475.object({
|
|
32689
|
+
replayId: z475.uuid(),
|
|
32690
|
+
endpointId: z475.uuid(),
|
|
32691
|
+
eventsEnqueued: z475.number().int().nonnegative(),
|
|
32692
|
+
snapshotToBlock: z475.string().nullable()
|
|
32579
32693
|
}));
|
|
32580
32694
|
|
|
32581
32695
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.revoke-secret.schema.ts
|
|
32582
|
-
import { z as
|
|
32583
|
-
var WebhooksV2RevokeSecretInputSchema =
|
|
32584
|
-
id:
|
|
32585
|
-
});
|
|
32586
|
-
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(
|
|
32587
|
-
endpointId:
|
|
32588
|
-
activeVersion:
|
|
32589
|
-
previousVersion:
|
|
32590
|
-
revokedVersion:
|
|
32696
|
+
import { z as z476 } from "zod";
|
|
32697
|
+
var WebhooksV2RevokeSecretInputSchema = z476.object({
|
|
32698
|
+
id: z476.uuid()
|
|
32699
|
+
});
|
|
32700
|
+
var WebhooksV2RevokeSecretOutputSchema = createSingleResponse(z476.object({
|
|
32701
|
+
endpointId: z476.uuid(),
|
|
32702
|
+
activeVersion: z476.number().int().positive(),
|
|
32703
|
+
previousVersion: z476.number().int().positive().nullable(),
|
|
32704
|
+
revokedVersion: z476.number().int().positive()
|
|
32591
32705
|
}));
|
|
32592
32706
|
|
|
32593
32707
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.rotate-secret.schema.ts
|
|
32594
|
-
import { z as
|
|
32595
|
-
var WebhooksV2RotateSecretInputSchema =
|
|
32596
|
-
id:
|
|
32708
|
+
import { z as z477 } from "zod";
|
|
32709
|
+
var WebhooksV2RotateSecretInputSchema = z477.object({
|
|
32710
|
+
id: z477.uuid()
|
|
32597
32711
|
});
|
|
32598
|
-
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(
|
|
32599
|
-
endpointId:
|
|
32600
|
-
activeVersion:
|
|
32601
|
-
previousVersion:
|
|
32602
|
-
previousRevokesAt:
|
|
32603
|
-
signingSecret:
|
|
32712
|
+
var WebhooksV2RotateSecretOutputSchema = createSingleResponse(z477.object({
|
|
32713
|
+
endpointId: z477.uuid(),
|
|
32714
|
+
activeVersion: z477.number().int().positive(),
|
|
32715
|
+
previousVersion: z477.number().int().positive().nullable(),
|
|
32716
|
+
previousRevokesAt: z477.coerce.date().nullable(),
|
|
32717
|
+
signingSecret: z477.string().nullable()
|
|
32604
32718
|
}));
|
|
32605
32719
|
|
|
32606
32720
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.stats.schema.ts
|
|
32607
|
-
import { z as
|
|
32608
|
-
var WebhooksV2StatsInputSchema =
|
|
32609
|
-
endpointId:
|
|
32721
|
+
import { z as z478 } from "zod";
|
|
32722
|
+
var WebhooksV2StatsInputSchema = z478.object({
|
|
32723
|
+
endpointId: z478.uuid().optional()
|
|
32610
32724
|
});
|
|
32611
|
-
var WebhooksV2StatsOutputDataSchema =
|
|
32612
|
-
totalDeliveries:
|
|
32613
|
-
delivered:
|
|
32614
|
-
failed:
|
|
32615
|
-
hourlyBuckets:
|
|
32725
|
+
var WebhooksV2StatsOutputDataSchema = z478.object({
|
|
32726
|
+
totalDeliveries: z478.number().int().min(0),
|
|
32727
|
+
delivered: z478.number().int().min(0),
|
|
32728
|
+
failed: z478.number().int().min(0),
|
|
32729
|
+
hourlyBuckets: z478.array(z478.number().int().min(0)).length(24)
|
|
32616
32730
|
});
|
|
32617
32731
|
var WebhooksV2StatsOutputSchema = createSingleResponse(WebhooksV2StatsOutputDataSchema);
|
|
32618
32732
|
|
|
32619
32733
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.test-event.schema.ts
|
|
32620
|
-
import { z as
|
|
32621
|
-
var WebhooksV2TestEventParamsSchema =
|
|
32622
|
-
id:
|
|
32734
|
+
import { z as z479 } from "zod";
|
|
32735
|
+
var WebhooksV2TestEventParamsSchema = z479.object({
|
|
32736
|
+
id: z479.uuid()
|
|
32623
32737
|
});
|
|
32624
|
-
var WebhooksV2TestEventBodySchema =
|
|
32625
|
-
eventType:
|
|
32738
|
+
var WebhooksV2TestEventBodySchema = z479.object({
|
|
32739
|
+
eventType: z479.string().trim().min(1).default("webhook.test.final")
|
|
32626
32740
|
});
|
|
32627
|
-
var WebhooksV2TestEventOutputSchema = createSingleResponse(
|
|
32628
|
-
evtId:
|
|
32629
|
-
deliveryId:
|
|
32630
|
-
isTest:
|
|
32741
|
+
var WebhooksV2TestEventOutputSchema = createSingleResponse(z479.object({
|
|
32742
|
+
evtId: z479.string(),
|
|
32743
|
+
deliveryId: z479.uuid().nullable(),
|
|
32744
|
+
isTest: z479.literal(true)
|
|
32631
32745
|
}));
|
|
32632
32746
|
|
|
32633
32747
|
// ../../packages/dalp/api-contract/src/routes/v2/webhooks/webhooks.v2.update.schema.ts
|
|
32634
|
-
import { z as
|
|
32635
|
-
var WebhooksV2UpdateParamsSchema =
|
|
32636
|
-
id:
|
|
32748
|
+
import { z as z480 } from "zod";
|
|
32749
|
+
var WebhooksV2UpdateParamsSchema = z480.object({
|
|
32750
|
+
id: z480.uuid()
|
|
32637
32751
|
});
|
|
32638
|
-
var WebhooksV2UpdateBodySchema =
|
|
32639
|
-
url:
|
|
32640
|
-
displayName:
|
|
32641
|
-
subscriptions:
|
|
32752
|
+
var WebhooksV2UpdateBodySchema = z480.object({
|
|
32753
|
+
url: z480.url().optional(),
|
|
32754
|
+
displayName: z480.string().trim().min(1).max(200).nullable().optional(),
|
|
32755
|
+
subscriptions: z480.array(z480.string().trim().min(1)).min(1).optional(),
|
|
32642
32756
|
defaultPayloadShape: WebhookPayloadShapeSchema.optional(),
|
|
32643
|
-
counterSignedReceipts:
|
|
32644
|
-
disabled:
|
|
32645
|
-
disabledReason:
|
|
32757
|
+
counterSignedReceipts: z480.boolean().optional(),
|
|
32758
|
+
disabled: z480.boolean().optional(),
|
|
32759
|
+
disabledReason: z480.string().trim().min(1).max(500).nullable().optional(),
|
|
32646
32760
|
fatEventsAcknowledgment: WebhookFatEventsAcknowledgmentSchema.omit({
|
|
32647
32761
|
acknowledgedAt: true,
|
|
32648
32762
|
acknowledgedByUserId: true
|
|
32649
32763
|
}).optional()
|
|
32650
32764
|
});
|
|
32651
|
-
var WebhooksV2UpdateQuerySchema =
|
|
32652
|
-
acknowledgePending:
|
|
32765
|
+
var WebhooksV2UpdateQuerySchema = z480.object({
|
|
32766
|
+
acknowledgePending: z480.union([z480.literal("true"), z480.literal(true)]).transform(() => true).optional()
|
|
32653
32767
|
}).optional();
|
|
32654
|
-
var WebhooksV2UpdateInputSchema =
|
|
32768
|
+
var WebhooksV2UpdateInputSchema = z480.object({
|
|
32655
32769
|
params: WebhooksV2UpdateParamsSchema,
|
|
32656
32770
|
body: WebhooksV2UpdateBodySchema,
|
|
32657
32771
|
query: WebhooksV2UpdateQuerySchema
|
|
@@ -32786,21 +32900,21 @@ var webhooksV2Contract = {
|
|
|
32786
32900
|
};
|
|
32787
32901
|
|
|
32788
32902
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
32789
|
-
import { z as
|
|
32903
|
+
import { z as z482 } from "zod";
|
|
32790
32904
|
|
|
32791
32905
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.list.schema.ts
|
|
32792
|
-
import { z as
|
|
32793
|
-
var WebhookReceiptVerificationFailureClassSchema =
|
|
32794
|
-
var WebhookReceiptSchema =
|
|
32795
|
-
id:
|
|
32796
|
-
deliveryId:
|
|
32797
|
-
evtId:
|
|
32798
|
-
tenantId:
|
|
32799
|
-
endpointId:
|
|
32800
|
-
consumerSignature:
|
|
32801
|
-
innerEventHash:
|
|
32802
|
-
receivedAt:
|
|
32803
|
-
verifiedAt:
|
|
32906
|
+
import { z as z481 } from "zod";
|
|
32907
|
+
var WebhookReceiptVerificationFailureClassSchema = z481.enum(["RECEIPT_INVALID_SIG", "RECEIPT_HASH_MISMATCH"]);
|
|
32908
|
+
var WebhookReceiptSchema = z481.object({
|
|
32909
|
+
id: z481.uuid(),
|
|
32910
|
+
deliveryId: z481.uuid(),
|
|
32911
|
+
evtId: z481.string(),
|
|
32912
|
+
tenantId: z481.string(),
|
|
32913
|
+
endpointId: z481.uuid(),
|
|
32914
|
+
consumerSignature: z481.string(),
|
|
32915
|
+
innerEventHash: z481.string(),
|
|
32916
|
+
receivedAt: z481.coerce.date(),
|
|
32917
|
+
verifiedAt: z481.coerce.date().nullable(),
|
|
32804
32918
|
verificationFailureClass: WebhookReceiptVerificationFailureClassSchema.nullable()
|
|
32805
32919
|
});
|
|
32806
32920
|
var WEBHOOK_RECEIPTS_COLLECTION_FIELDS = {
|
|
@@ -32817,19 +32931,19 @@ var WebhookReceiptsV2ListInputSchema = createCollectionInputSchema(WEBHOOK_RECEI
|
|
|
32817
32931
|
var WebhookReceiptsV2ListOutputSchema = createPaginatedResponse(WebhookReceiptSchema);
|
|
32818
32932
|
|
|
32819
32933
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.create.schema.ts
|
|
32820
|
-
var WebhookReceiptsV2CreateInputSchema =
|
|
32821
|
-
deliveryId:
|
|
32822
|
-
evtId:
|
|
32823
|
-
endpointId:
|
|
32824
|
-
consumerSignature:
|
|
32825
|
-
innerEventHash:
|
|
32934
|
+
var WebhookReceiptsV2CreateInputSchema = z482.object({
|
|
32935
|
+
deliveryId: z482.uuid(),
|
|
32936
|
+
evtId: z482.string().trim().min(1),
|
|
32937
|
+
endpointId: z482.uuid(),
|
|
32938
|
+
consumerSignature: z482.string().trim().min(1),
|
|
32939
|
+
innerEventHash: z482.string().trim().min(1)
|
|
32826
32940
|
});
|
|
32827
32941
|
var WebhookReceiptsV2CreateOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
32828
32942
|
|
|
32829
32943
|
// ../../packages/dalp/api-contract/src/routes/v2/webhook-receipts/webhook-receipts.v2.read.schema.ts
|
|
32830
|
-
import { z as
|
|
32831
|
-
var WebhookReceiptsV2ReadInputSchema =
|
|
32832
|
-
id:
|
|
32944
|
+
import { z as z483 } from "zod";
|
|
32945
|
+
var WebhookReceiptsV2ReadInputSchema = z483.object({
|
|
32946
|
+
id: z483.uuid()
|
|
32833
32947
|
});
|
|
32834
32948
|
var WebhookReceiptsV2ReadOutputSchema = createSingleResponse(WebhookReceiptSchema);
|
|
32835
32949
|
|
|
@@ -33111,7 +33225,7 @@ function normalizeDalpBaseUrl(url) {
|
|
|
33111
33225
|
// package.json
|
|
33112
33226
|
var package_default = {
|
|
33113
33227
|
name: "@settlemint/dalp-sdk",
|
|
33114
|
-
version: "2.1.7-main.
|
|
33228
|
+
version: "2.1.7-main.26362629665",
|
|
33115
33229
|
private: false,
|
|
33116
33230
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
33117
33231
|
homepage: "https://settlemint.com",
|