@settlemint/dalp-sdk 2.1.7-main.22848081291 → 2.1.7-main.22859747573
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 +538 -395
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4852,6 +4852,8 @@ import { z as z85 } from "zod";
|
|
|
4852
4852
|
import { z as z84 } from "zod";
|
|
4853
4853
|
var assetTypes = [
|
|
4854
4854
|
"bond",
|
|
4855
|
+
"convertible-loan",
|
|
4856
|
+
"convertible-target-equity",
|
|
4855
4857
|
"equity",
|
|
4856
4858
|
"fund",
|
|
4857
4859
|
"stablecoin",
|
|
@@ -4863,6 +4865,8 @@ var assetTypes = [
|
|
|
4863
4865
|
var assetClasses = ["fixedIncome", "flexibleIncome", "cashEquivalent", "realWorldAsset"];
|
|
4864
4866
|
var AssetTypeEnum = {
|
|
4865
4867
|
bond: "bond",
|
|
4868
|
+
convertibleLoan: "convertible-loan",
|
|
4869
|
+
convertibleTargetEquity: "convertible-target-equity",
|
|
4866
4870
|
equity: "equity",
|
|
4867
4871
|
fund: "fund",
|
|
4868
4872
|
stablecoin: "stablecoin",
|
|
@@ -4873,6 +4877,8 @@ var AssetTypeEnum = {
|
|
|
4873
4877
|
};
|
|
4874
4878
|
var assetFactoryTypeIds = [
|
|
4875
4879
|
"bond",
|
|
4880
|
+
"convertible-loan",
|
|
4881
|
+
"convertible-target-equity",
|
|
4876
4882
|
"equity",
|
|
4877
4883
|
"fund",
|
|
4878
4884
|
"stablecoin",
|
|
@@ -4883,6 +4889,8 @@ var assetFactoryTypeIds = [
|
|
|
4883
4889
|
];
|
|
4884
4890
|
var AssetFactoryTypeIdEnum = {
|
|
4885
4891
|
bond: "bond",
|
|
4892
|
+
convertibleLoan: "convertible-loan",
|
|
4893
|
+
convertibleTargetEquity: "convertible-target-equity",
|
|
4886
4894
|
equity: "equity",
|
|
4887
4895
|
fund: "fund",
|
|
4888
4896
|
stablecoin: "stablecoin",
|
|
@@ -4909,6 +4917,8 @@ var AssetTypeSetSchema = z84.set(AssetTypeSchema).min(1, "At least one asset typ
|
|
|
4909
4917
|
var AssetFactoryTypeIdSetSchema = z84.set(AssetFactoryTypeIdSchema).min(1, "At least one factory typeId must be selected").meta({ description: "Set of unique asset factory typeIds", examples: [["bond", "equity"]] });
|
|
4910
4918
|
var deployableAssetTypes = [
|
|
4911
4919
|
"bond",
|
|
4920
|
+
"convertible-loan",
|
|
4921
|
+
"convertible-target-equity",
|
|
4912
4922
|
"equity",
|
|
4913
4923
|
"fund",
|
|
4914
4924
|
"stablecoin",
|
|
@@ -4916,6 +4926,7 @@ var deployableAssetTypes = [
|
|
|
4916
4926
|
"real-estate",
|
|
4917
4927
|
"precious-metal"
|
|
4918
4928
|
];
|
|
4929
|
+
var templateAssetTypeIds = [...deployableAssetTypes, "dalp-asset"];
|
|
4919
4930
|
|
|
4920
4931
|
// ../../packages/core/validation/src/asset-extensions.ts
|
|
4921
4932
|
var AssetExtensionEnum = {
|
|
@@ -5445,7 +5456,10 @@ var TokenSchema = z93.object({
|
|
|
5445
5456
|
description: "The token contract address",
|
|
5446
5457
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
5447
5458
|
}),
|
|
5448
|
-
type: assetType()
|
|
5459
|
+
type: assetType().or(z93.string().min(1)).meta({
|
|
5460
|
+
description: "Asset type — known system types or custom template slugs",
|
|
5461
|
+
examples: ["bond", "equity", "fund", "custom-deposit"]
|
|
5462
|
+
}),
|
|
5449
5463
|
createdAt: timestamp().meta({
|
|
5450
5464
|
description: "The timestamp of the token creation",
|
|
5451
5465
|
examples: ["2024-01-01T00:00:00Z"]
|
|
@@ -8772,7 +8786,10 @@ var StatsPortfolioDetailsTokenFactoryBreakdownSchema = z174.object({
|
|
|
8772
8786
|
description: "Factory type identifier (e.g., bond, equity)",
|
|
8773
8787
|
examples: ["bond", "equity"]
|
|
8774
8788
|
}),
|
|
8775
|
-
assetType:
|
|
8789
|
+
assetType: z174.string().meta({
|
|
8790
|
+
description: "Asset type derived from factory typeId. Known types (bond, equity, …) or custom template slugs (e.g. kbc-deposit).",
|
|
8791
|
+
examples: ["bond", "equity", "kbc-deposit"]
|
|
8792
|
+
}),
|
|
8776
8793
|
totalValue: bigDecimal().meta({ description: "Factory value in base currency", examples: ["1000000.00"] }),
|
|
8777
8794
|
tokenBalancesCount: z174.number().int().min(0).meta({ description: "Number of tokens held from this factory", examples: [5, 10] }),
|
|
8778
8795
|
percentage: z174.number().min(0).max(100).meta({ description: "Percentage of total portfolio value", examples: [25.5, 50] })
|
|
@@ -8782,8 +8799,14 @@ var StatsPortfolioDetailsOutputSchema = z174.object({
|
|
|
8782
8799
|
totalTokenFactories: z174.number().int().min(0).meta({ description: "Number of token factories with balances", examples: [3, 10] }),
|
|
8783
8800
|
totalAssetsHeld: z174.number().int().min(0).meta({ description: "Number of assets held", examples: [15, 50] }),
|
|
8784
8801
|
tokenFactoryBreakdown: z174.array(StatsPortfolioDetailsTokenFactoryBreakdownSchema),
|
|
8785
|
-
valueBreakdown: z174.record(
|
|
8786
|
-
|
|
8802
|
+
valueBreakdown: z174.record(z174.string(), bigDecimal()).meta({
|
|
8803
|
+
description: "Total value held per asset type. Keys are known types (bond, equity, …) or custom template slugs (e.g. kbc-deposit).",
|
|
8804
|
+
examples: [{ bond: "1000000.00", equity: "2000000.00", "kbc-deposit": "500000.00" }]
|
|
8805
|
+
}),
|
|
8806
|
+
holdingsBreakdown: z174.record(z174.string(), z174.number().int().min(0)).meta({
|
|
8807
|
+
description: "Holdings count per asset type. Keys are known types or custom template slugs.",
|
|
8808
|
+
examples: [{ bond: 5, equity: 10, "kbc-deposit": 2 }]
|
|
8809
|
+
}),
|
|
8787
8810
|
valueBreakdownByClass: z174.record(assetClass(), bigDecimal()).meta({
|
|
8788
8811
|
description: "Total value held per asset class",
|
|
8789
8812
|
examples: [{ security: "3000000.00", commodity: "500000.00" }]
|
|
@@ -9170,6 +9193,8 @@ var factoryAvailableContract = v1Contract.route({
|
|
|
9170
9193
|
import { z as z187 } from "zod";
|
|
9171
9194
|
var TokenTypeEnum = z187.enum([
|
|
9172
9195
|
"bond",
|
|
9196
|
+
"convertible-loan",
|
|
9197
|
+
"convertible-target-equity",
|
|
9173
9198
|
"equity",
|
|
9174
9199
|
"fund",
|
|
9175
9200
|
"stablecoin",
|
|
@@ -10014,9 +10039,9 @@ var TokenBaseSchema = MutationInputSchema.extend({
|
|
|
10014
10039
|
description: "Deprecated: no longer used for routing. All templates now route through DALPAssetFactory " + "when type is 'dalp-asset'. Kept for backward compatibility with existing API consumers.",
|
|
10015
10040
|
examples: [true, false]
|
|
10016
10041
|
}),
|
|
10017
|
-
assetTypeName: z210.
|
|
10018
|
-
description: "The actual asset type for tokens created via DALPAssetFactory from organisation templates. " + "Overrides the discriminated-union type field for the contract event's assetTypeName parameter, " + "so the subgraph stores the correct type
|
|
10019
|
-
examples: ["deposit", "bond"]
|
|
10042
|
+
assetTypeName: z210.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "assetTypeName must be kebab-case").optional().meta({
|
|
10043
|
+
description: "The actual asset type for tokens created via DALPAssetFactory from organisation templates. " + "Overrides the discriminated-union type field for the contract event's assetTypeName parameter, " + "so the subgraph stores the correct type instead of 'dalp-asset'. " + "For new templates, this is the kebab-cased template name.",
|
|
10044
|
+
examples: ["deposit", "bond", "corporate-bond"]
|
|
10020
10045
|
}),
|
|
10021
10046
|
requiredFeatures: z210.array(z210.string()).optional().default([]).meta({
|
|
10022
10047
|
description: "DALPAsset feature types required by the template",
|
|
@@ -13634,13 +13659,123 @@ var searchV2Contract = {
|
|
|
13634
13659
|
};
|
|
13635
13660
|
|
|
13636
13661
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/settings.v2.contract.ts
|
|
13637
|
-
import { z as
|
|
13662
|
+
import { z as z337 } from "zod";
|
|
13638
13663
|
|
|
13639
|
-
// ../../packages/core/validation/src/asset-
|
|
13664
|
+
// ../../packages/core/validation/src/asset-class-definition.ts
|
|
13665
|
+
import { z as z319 } from "zod";
|
|
13666
|
+
var AssetClassDefinitionSchema = z319.object({
|
|
13667
|
+
id: z319.string().min(1),
|
|
13668
|
+
name: z319.string().min(1).max(255),
|
|
13669
|
+
description: z319.string().max(1000).nullable(),
|
|
13670
|
+
slug: z319.string().min(1).max(255),
|
|
13671
|
+
isSystem: z319.boolean(),
|
|
13672
|
+
organizationId: z319.string().nullable(),
|
|
13673
|
+
createdBy: z319.string().nullable(),
|
|
13674
|
+
createdAt: timestamp(),
|
|
13675
|
+
updatedAt: timestamp()
|
|
13676
|
+
});
|
|
13677
|
+
|
|
13678
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.contract.ts
|
|
13679
|
+
import { z as z325 } from "zod";
|
|
13680
|
+
|
|
13681
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.create.schema.ts
|
|
13640
13682
|
import { z as z320 } from "zod";
|
|
13683
|
+
var CreateAssetClassInputSchema = z320.object({
|
|
13684
|
+
name: z320.string().min(1).max(255).meta({ description: "Display name for the asset class", examples: ["Derivatives"] }),
|
|
13685
|
+
description: z320.string().max(1000).nullable().optional().meta({
|
|
13686
|
+
description: "Optional description for the asset class",
|
|
13687
|
+
examples: ["Financial instruments whose value derives from underlying assets"]
|
|
13688
|
+
}),
|
|
13689
|
+
slug: z320.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Slug must be kebab-case").optional().meta({
|
|
13690
|
+
description: "URL-safe identifier. Auto-derived from name if not provided.",
|
|
13691
|
+
examples: ["derivatives"]
|
|
13692
|
+
})
|
|
13693
|
+
}).meta({
|
|
13694
|
+
description: "Input schema for creating an asset class definition"
|
|
13695
|
+
});
|
|
13696
|
+
|
|
13697
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.delete.schema.ts
|
|
13698
|
+
import { z as z321 } from "zod";
|
|
13699
|
+
var DeleteAssetClassInputSchema = z321.object({
|
|
13700
|
+
id: z321.string().min(1).meta({ description: "Asset class definition ID" })
|
|
13701
|
+
});
|
|
13702
|
+
|
|
13703
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.list.schema.ts
|
|
13704
|
+
import { z as z322 } from "zod";
|
|
13705
|
+
var AssetClassDefinitionsV2ListInputSchema = DataTableInputSchema.extend({
|
|
13706
|
+
sortBy: z322.enum(["name", "createdAt", "updatedAt"]).default("name").meta({ description: "Column to sort asset class definitions by" }),
|
|
13707
|
+
search: z322.string().max(200).optional(),
|
|
13708
|
+
includeSystem: z322.boolean().optional(),
|
|
13709
|
+
isSystem: z322.boolean().optional()
|
|
13710
|
+
});
|
|
13711
|
+
var AssetClassDefinitionsV2ListOutputSchema = createPaginatedResponse(AssetClassDefinitionSchema);
|
|
13712
|
+
|
|
13713
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.read.schema.ts
|
|
13714
|
+
import { z as z323 } from "zod";
|
|
13715
|
+
var ReadAssetClassInputSchema = z323.object({
|
|
13716
|
+
id: z323.string().min(1).meta({ description: "Asset class definition ID" })
|
|
13717
|
+
});
|
|
13718
|
+
|
|
13719
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.update.schema.ts
|
|
13720
|
+
import { z as z324 } from "zod";
|
|
13721
|
+
var UpdateAssetClassInputSchema = z324.object({
|
|
13722
|
+
id: z324.string().min(1).meta({ description: "Asset class definition ID" }),
|
|
13723
|
+
name: z324.string().min(1).max(255).optional().meta({ description: "Updated display name" }),
|
|
13724
|
+
description: z324.string().max(1000).nullable().optional().meta({ description: "Updated description" }),
|
|
13725
|
+
slug: z324.string().min(1).max(255).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Slug must be kebab-case").optional().meta({ description: "Updated slug" })
|
|
13726
|
+
}).meta({
|
|
13727
|
+
description: "Input schema for updating an asset class definition"
|
|
13728
|
+
});
|
|
13729
|
+
|
|
13730
|
+
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-class-definitions/asset-class-definitions.v2.contract.ts
|
|
13731
|
+
var list19 = v2Contract.route({
|
|
13732
|
+
method: "GET",
|
|
13733
|
+
path: "/settings/asset-class-definitions",
|
|
13734
|
+
description: "List asset class definitions with pagination, sorting, and filtering. Sortable by name, createdAt, updatedAt.",
|
|
13735
|
+
successDescription: "Paginated array of asset class definitions with total count and faceted filter values.",
|
|
13736
|
+
tags: ["v2-asset-class-definitions"]
|
|
13737
|
+
}).input(v2Input.query(AssetClassDefinitionsV2ListInputSchema)).output(AssetClassDefinitionsV2ListOutputSchema);
|
|
13738
|
+
var create10 = v2Contract.route({
|
|
13739
|
+
method: "POST",
|
|
13740
|
+
path: "/settings/asset-class-definitions",
|
|
13741
|
+
description: "Create a new asset class definition.",
|
|
13742
|
+
successDescription: "Asset class definition created successfully.",
|
|
13743
|
+
tags: ["v2-asset-class-definitions"]
|
|
13744
|
+
}).input(v2Input.body(CreateAssetClassInputSchema)).output(createSingleResponse(AssetClassDefinitionSchema));
|
|
13745
|
+
var read15 = v2Contract.route({
|
|
13746
|
+
method: "GET",
|
|
13747
|
+
path: "/settings/asset-class-definitions/{id}",
|
|
13748
|
+
description: "Read a single asset class definition by ID.",
|
|
13749
|
+
successDescription: "Asset class definition retrieved successfully.",
|
|
13750
|
+
tags: ["v2-asset-class-definitions"]
|
|
13751
|
+
}).input(v2Input.params(ReadAssetClassInputSchema)).output(createSingleResponse(AssetClassDefinitionSchema));
|
|
13752
|
+
var update6 = v2Contract.route({
|
|
13753
|
+
method: "PUT",
|
|
13754
|
+
path: "/settings/asset-class-definitions/{id}",
|
|
13755
|
+
description: "Update an existing asset class definition.",
|
|
13756
|
+
successDescription: "Asset class definition updated successfully.",
|
|
13757
|
+
tags: ["v2-asset-class-definitions"]
|
|
13758
|
+
}).input(v2Input.paramsBody(z325.object({ id: UpdateAssetClassInputSchema.shape.id }), z325.object(UpdateAssetClassInputSchema.shape).omit({ id: true }))).output(createSingleResponse(AssetClassDefinitionSchema));
|
|
13759
|
+
var del7 = v2Contract.route({
|
|
13760
|
+
method: "DELETE",
|
|
13761
|
+
path: "/settings/asset-class-definitions/{id}",
|
|
13762
|
+
description: "Delete an asset class definition.",
|
|
13763
|
+
successDescription: "Asset class definition deleted successfully.",
|
|
13764
|
+
tags: ["v2-asset-class-definitions"]
|
|
13765
|
+
}).input(v2Input.params(DeleteAssetClassInputSchema)).output(DeleteResponseSchema);
|
|
13766
|
+
var assetClassDefinitionsV2Contract = {
|
|
13767
|
+
list: list19,
|
|
13768
|
+
create: create10,
|
|
13769
|
+
read: read15,
|
|
13770
|
+
update: update6,
|
|
13771
|
+
delete: del7
|
|
13772
|
+
};
|
|
13773
|
+
|
|
13774
|
+
// ../../packages/core/validation/src/asset-type-template.ts
|
|
13775
|
+
import { z as z327 } from "zod";
|
|
13641
13776
|
|
|
13642
13777
|
// ../../packages/core/validation/src/asset-type-template-features.ts
|
|
13643
|
-
import { z as
|
|
13778
|
+
import { z as z326 } from "zod";
|
|
13644
13779
|
var tokenFeatureIds = [
|
|
13645
13780
|
"historical-balances",
|
|
13646
13781
|
"maturity-redemption",
|
|
@@ -13663,69 +13798,71 @@ var addonIds = [
|
|
|
13663
13798
|
"token-sale",
|
|
13664
13799
|
"vault"
|
|
13665
13800
|
];
|
|
13666
|
-
var tokenFeatureIdSchema =
|
|
13667
|
-
var addonIdSchema =
|
|
13801
|
+
var tokenFeatureIdSchema = z326.enum(tokenFeatureIds);
|
|
13802
|
+
var addonIdSchema = z326.enum(addonIds);
|
|
13668
13803
|
var CONFIGURABLE_FEATURES = new Set(["aum-fee", "maturity-redemption"]);
|
|
13669
13804
|
|
|
13670
13805
|
// ../../packages/core/validation/src/asset-type-template.ts
|
|
13671
|
-
var metadataFieldMutability =
|
|
13672
|
-
var MetadataFieldBaseSchema =
|
|
13806
|
+
var metadataFieldMutability = z327.enum(["immutable", "restricted-mutable"]);
|
|
13807
|
+
var MetadataFieldBaseSchema = z327.object({
|
|
13673
13808
|
mutability: metadataFieldMutability,
|
|
13674
|
-
label:
|
|
13675
|
-
description:
|
|
13676
|
-
required:
|
|
13677
|
-
defaultValue:
|
|
13678
|
-
configurableInDesigner:
|
|
13809
|
+
label: z327.string().min(1),
|
|
13810
|
+
description: z327.string().optional(),
|
|
13811
|
+
required: z327.boolean().optional(),
|
|
13812
|
+
defaultValue: z327.string().optional(),
|
|
13813
|
+
configurableInDesigner: z327.boolean().optional()
|
|
13679
13814
|
});
|
|
13680
|
-
var MetadataFieldSchema =
|
|
13815
|
+
var MetadataFieldSchema = z327.discriminatedUnion("type", [
|
|
13681
13816
|
MetadataFieldBaseSchema.extend({
|
|
13682
|
-
type:
|
|
13683
|
-
minLength:
|
|
13684
|
-
maxLength:
|
|
13817
|
+
type: z327.literal("string"),
|
|
13818
|
+
minLength: z327.number().int().nonnegative().optional(),
|
|
13819
|
+
maxLength: z327.number().int().positive().optional()
|
|
13685
13820
|
}),
|
|
13686
13821
|
MetadataFieldBaseSchema.extend({
|
|
13687
|
-
type:
|
|
13688
|
-
lowerBound:
|
|
13689
|
-
upperBound:
|
|
13822
|
+
type: z327.literal("number"),
|
|
13823
|
+
lowerBound: z327.string().optional(),
|
|
13824
|
+
upperBound: z327.string().optional()
|
|
13690
13825
|
}),
|
|
13691
13826
|
MetadataFieldBaseSchema.extend({
|
|
13692
|
-
type:
|
|
13693
|
-
lowerBound:
|
|
13694
|
-
upperBound:
|
|
13827
|
+
type: z327.literal("date"),
|
|
13828
|
+
lowerBound: z327.string().optional(),
|
|
13829
|
+
upperBound: z327.string().optional()
|
|
13695
13830
|
}),
|
|
13696
13831
|
MetadataFieldBaseSchema.extend({
|
|
13697
|
-
type:
|
|
13698
|
-
options:
|
|
13832
|
+
type: z327.literal("enum"),
|
|
13833
|
+
options: z327.array(z327.string().min(1)).min(1).optional()
|
|
13699
13834
|
}),
|
|
13700
13835
|
MetadataFieldBaseSchema.extend({
|
|
13701
|
-
type:
|
|
13836
|
+
type: z327.literal("isin")
|
|
13702
13837
|
})
|
|
13703
13838
|
]);
|
|
13704
|
-
var MetadataSchemaSchema =
|
|
13705
|
-
var FeatureConfigPropertySchema =
|
|
13706
|
-
type:
|
|
13707
|
-
required:
|
|
13708
|
-
value:
|
|
13709
|
-
upperBound:
|
|
13710
|
-
});
|
|
13711
|
-
var FeatureConfigEntryValueSchema =
|
|
13712
|
-
var FeatureConfigEntrySchema =
|
|
13713
|
-
var FeatureConfigSchema =
|
|
13714
|
-
var AssetClassFilterSchema =
|
|
13715
|
-
var AssetTypeTemplateSchema =
|
|
13716
|
-
id:
|
|
13717
|
-
name:
|
|
13718
|
-
description:
|
|
13719
|
-
assetClass:
|
|
13720
|
-
typeId:
|
|
13721
|
-
isSystem:
|
|
13722
|
-
isDraft:
|
|
13723
|
-
organizationId:
|
|
13724
|
-
version:
|
|
13725
|
-
requiredFeatures:
|
|
13839
|
+
var MetadataSchemaSchema = z327.record(z327.string().min(1), MetadataFieldSchema);
|
|
13840
|
+
var FeatureConfigPropertySchema = z327.object({
|
|
13841
|
+
type: z327.enum(["string", "number", "date"]).optional(),
|
|
13842
|
+
required: z327.boolean().optional(),
|
|
13843
|
+
value: z327.union([z327.string(), z327.number()]).optional(),
|
|
13844
|
+
upperBound: z327.number().optional()
|
|
13845
|
+
});
|
|
13846
|
+
var FeatureConfigEntryValueSchema = z327.union([z327.boolean(), FeatureConfigPropertySchema]);
|
|
13847
|
+
var FeatureConfigEntrySchema = z327.record(z327.string(), FeatureConfigEntryValueSchema);
|
|
13848
|
+
var FeatureConfigSchema = z327.record(z327.string().min(1), FeatureConfigEntrySchema);
|
|
13849
|
+
var AssetClassFilterSchema = z327.enum(assetClasses).meta({ description: "Asset class filter for template queries" });
|
|
13850
|
+
var AssetTypeTemplateSchema = z327.object({
|
|
13851
|
+
id: z327.string().min(1),
|
|
13852
|
+
name: z327.string().min(1).max(255),
|
|
13853
|
+
description: z327.string().nullable(),
|
|
13854
|
+
assetClass: z327.enum(assetClasses),
|
|
13855
|
+
typeId: z327.enum(assetFactoryTypeIds),
|
|
13856
|
+
isSystem: z327.boolean(),
|
|
13857
|
+
isDraft: z327.boolean(),
|
|
13858
|
+
organizationId: z327.string().nullable(),
|
|
13859
|
+
version: z327.number().int().min(1),
|
|
13860
|
+
requiredFeatures: z327.array(tokenFeatureIdSchema),
|
|
13726
13861
|
metadataSchema: MetadataSchemaSchema.nullable(),
|
|
13727
13862
|
featureConfig: FeatureConfigSchema.nullable(),
|
|
13728
|
-
|
|
13863
|
+
hiddenFromSidebar: z327.boolean().optional(),
|
|
13864
|
+
assetClassId: z327.string().nullable().optional(),
|
|
13865
|
+
createdBy: z327.string().nullable(),
|
|
13729
13866
|
createdAt: timestamp(),
|
|
13730
13867
|
updatedAt: timestamp()
|
|
13731
13868
|
}).meta({
|
|
@@ -13733,12 +13870,16 @@ var AssetTypeTemplateSchema = z320.object({
|
|
|
13733
13870
|
});
|
|
13734
13871
|
|
|
13735
13872
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.create.schema.ts
|
|
13736
|
-
import { z as
|
|
13737
|
-
var CreateInputSchema =
|
|
13738
|
-
name:
|
|
13739
|
-
description:
|
|
13740
|
-
typeId:
|
|
13741
|
-
|
|
13873
|
+
import { z as z328 } from "zod";
|
|
13874
|
+
var CreateInputSchema = z328.object({
|
|
13875
|
+
name: z328.string().min(1).max(255),
|
|
13876
|
+
description: z328.string().optional(),
|
|
13877
|
+
typeId: z328.enum(templateAssetTypeIds),
|
|
13878
|
+
assetClassId: z328.string().min(1).optional().meta({
|
|
13879
|
+
description: "Reference to an asset class definition. When provided, links the template to a managed asset class.",
|
|
13880
|
+
examples: ["acd-system-fixed-income"]
|
|
13881
|
+
}),
|
|
13882
|
+
requiredFeatures: z328.array(tokenFeatureIdSchema).default([]),
|
|
13742
13883
|
metadataSchema: MetadataSchemaSchema.optional(),
|
|
13743
13884
|
featureConfig: FeatureConfigSchema.optional()
|
|
13744
13885
|
}).meta({
|
|
@@ -13746,85 +13887,86 @@ var CreateInputSchema = z321.object({
|
|
|
13746
13887
|
});
|
|
13747
13888
|
|
|
13748
13889
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.contract.ts
|
|
13749
|
-
import { z as
|
|
13890
|
+
import { z as z334 } from "zod";
|
|
13750
13891
|
|
|
13751
13892
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.delete.schema.ts
|
|
13752
|
-
import { z as
|
|
13753
|
-
var DeleteInputSchema2 =
|
|
13754
|
-
id:
|
|
13893
|
+
import { z as z329 } from "zod";
|
|
13894
|
+
var DeleteInputSchema2 = z329.object({
|
|
13895
|
+
id: z329.string().min(1).meta({ description: "Template ID" })
|
|
13755
13896
|
});
|
|
13756
|
-
var DeleteOutputSchema2 =
|
|
13757
|
-
success:
|
|
13897
|
+
var DeleteOutputSchema2 = z329.object({
|
|
13898
|
+
success: z329.boolean()
|
|
13758
13899
|
});
|
|
13759
13900
|
|
|
13760
13901
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.list.schema.ts
|
|
13761
|
-
import { z as
|
|
13902
|
+
import { z as z330 } from "zod";
|
|
13762
13903
|
var AssetTypeTemplatesV2ListInputSchema = DataTableInputSchema.extend({
|
|
13763
|
-
sortBy:
|
|
13904
|
+
sortBy: z330.enum(["name", "createdAt", "updatedAt"]).default("name").meta({ description: "Column to sort asset type templates by" }),
|
|
13764
13905
|
assetClass: AssetClassFilterSchema.optional(),
|
|
13765
|
-
typeId:
|
|
13766
|
-
search:
|
|
13767
|
-
includeSystem:
|
|
13768
|
-
isDraft:
|
|
13769
|
-
isSystem:
|
|
13906
|
+
typeId: z330.enum(templateAssetTypeIds).optional(),
|
|
13907
|
+
search: z330.string().max(200).optional(),
|
|
13908
|
+
includeSystem: z330.boolean().optional(),
|
|
13909
|
+
isDraft: z330.boolean().optional(),
|
|
13910
|
+
isSystem: z330.boolean().optional()
|
|
13770
13911
|
});
|
|
13771
13912
|
var AssetTypeTemplatesV2ListOutputSchema = createPaginatedResponse(AssetTypeTemplateSchema);
|
|
13772
13913
|
|
|
13773
13914
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.publish.schema.ts
|
|
13774
|
-
import { z as
|
|
13775
|
-
var PublishInputSchema2 =
|
|
13776
|
-
id:
|
|
13915
|
+
import { z as z331 } from "zod";
|
|
13916
|
+
var PublishInputSchema2 = z331.object({
|
|
13917
|
+
id: z331.string().min(1).meta({ description: "Template ID" })
|
|
13777
13918
|
});
|
|
13778
13919
|
|
|
13779
13920
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.read.schema.ts
|
|
13780
|
-
import { z as
|
|
13781
|
-
var ReadInputSchema2 =
|
|
13782
|
-
id:
|
|
13921
|
+
import { z as z332 } from "zod";
|
|
13922
|
+
var ReadInputSchema2 = z332.object({
|
|
13923
|
+
id: z332.string().min(1).meta({ description: "Template ID" })
|
|
13783
13924
|
});
|
|
13784
13925
|
|
|
13785
13926
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.update.schema.ts
|
|
13786
|
-
import { z as
|
|
13787
|
-
var UpdateInputSchema2 =
|
|
13788
|
-
id:
|
|
13789
|
-
name:
|
|
13790
|
-
description:
|
|
13791
|
-
typeId:
|
|
13792
|
-
requiredFeatures:
|
|
13927
|
+
import { z as z333 } from "zod";
|
|
13928
|
+
var UpdateInputSchema2 = z333.object({
|
|
13929
|
+
id: z333.string().min(1).meta({ description: "Template ID" }),
|
|
13930
|
+
name: z333.string().min(1).max(255).optional(),
|
|
13931
|
+
description: z333.string().nullable().optional(),
|
|
13932
|
+
typeId: z333.enum(templateAssetTypeIds).optional(),
|
|
13933
|
+
requiredFeatures: z333.array(tokenFeatureIdSchema).optional(),
|
|
13793
13934
|
metadataSchema: MetadataSchemaSchema.nullable().optional(),
|
|
13794
|
-
featureConfig: FeatureConfigSchema.nullable().optional()
|
|
13935
|
+
featureConfig: FeatureConfigSchema.nullable().optional(),
|
|
13936
|
+
hiddenFromSidebar: z333.boolean().optional()
|
|
13795
13937
|
}).meta({
|
|
13796
13938
|
description: "Input schema for updating an asset type template"
|
|
13797
13939
|
});
|
|
13798
13940
|
|
|
13799
13941
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/asset-type-templates/asset-type-templates.v2.contract.ts
|
|
13800
|
-
var
|
|
13942
|
+
var list20 = v2Contract.route({
|
|
13801
13943
|
method: "GET",
|
|
13802
13944
|
path: "/settings/asset-type-templates",
|
|
13803
13945
|
description: "List asset type templates with pagination, sorting, and filtering. Sortable by name, createdAt, updatedAt.",
|
|
13804
13946
|
successDescription: "Paginated array of asset type templates with total count and faceted filter values.",
|
|
13805
13947
|
tags: ["v2-asset-type-templates"]
|
|
13806
13948
|
}).input(v2Input.query(AssetTypeTemplatesV2ListInputSchema)).output(AssetTypeTemplatesV2ListOutputSchema);
|
|
13807
|
-
var
|
|
13949
|
+
var create11 = v2Contract.route({
|
|
13808
13950
|
method: "POST",
|
|
13809
13951
|
path: "/settings/asset-type-templates",
|
|
13810
13952
|
description: "Create a new asset type template.",
|
|
13811
13953
|
successDescription: "Template created successfully.",
|
|
13812
13954
|
tags: ["v2-asset-type-templates"]
|
|
13813
13955
|
}).input(v2Input.body(CreateInputSchema)).output(createSingleResponse(AssetTypeTemplateSchema));
|
|
13814
|
-
var
|
|
13956
|
+
var read16 = v2Contract.route({
|
|
13815
13957
|
method: "GET",
|
|
13816
13958
|
path: "/settings/asset-type-templates/{id}",
|
|
13817
13959
|
description: "Read a single asset type template by ID.",
|
|
13818
13960
|
successDescription: "Template retrieved successfully.",
|
|
13819
13961
|
tags: ["v2-asset-type-templates"]
|
|
13820
13962
|
}).input(v2Input.params(ReadInputSchema2)).output(createSingleResponse(AssetTypeTemplateSchema));
|
|
13821
|
-
var
|
|
13963
|
+
var update7 = v2Contract.route({
|
|
13822
13964
|
method: "PUT",
|
|
13823
13965
|
path: "/settings/asset-type-templates/{id}",
|
|
13824
13966
|
description: "Update an existing asset type template.",
|
|
13825
13967
|
successDescription: "Template updated successfully.",
|
|
13826
13968
|
tags: ["v2-asset-type-templates"]
|
|
13827
|
-
}).input(v2Input.paramsBody(
|
|
13969
|
+
}).input(v2Input.paramsBody(z334.object({ id: UpdateInputSchema2.shape.id }), z334.object(UpdateInputSchema2.shape).omit({ id: true }))).output(createSingleResponse(AssetTypeTemplateSchema));
|
|
13828
13970
|
var publish2 = v2Contract.route({
|
|
13829
13971
|
method: "PUT",
|
|
13830
13972
|
path: "/settings/asset-type-templates/{id}/publish",
|
|
@@ -13832,7 +13974,7 @@ var publish2 = v2Contract.route({
|
|
|
13832
13974
|
successDescription: "Template published successfully.",
|
|
13833
13975
|
tags: ["v2-asset-type-templates"]
|
|
13834
13976
|
}).input(v2Input.params(PublishInputSchema2)).output(createSingleResponse(AssetTypeTemplateSchema));
|
|
13835
|
-
var
|
|
13977
|
+
var del8 = v2Contract.route({
|
|
13836
13978
|
method: "DELETE",
|
|
13837
13979
|
path: "/settings/asset-type-templates/{id}",
|
|
13838
13980
|
description: "Delete an asset type template.",
|
|
@@ -13840,58 +13982,58 @@ var del7 = v2Contract.route({
|
|
|
13840
13982
|
tags: ["v2-asset-type-templates"]
|
|
13841
13983
|
}).input(v2Input.params(DeleteInputSchema2)).output(DeleteResponseSchema);
|
|
13842
13984
|
var assetTypeTemplatesV2Contract = {
|
|
13843
|
-
list:
|
|
13844
|
-
create:
|
|
13845
|
-
read:
|
|
13846
|
-
update:
|
|
13985
|
+
list: list20,
|
|
13986
|
+
create: create11,
|
|
13987
|
+
read: read16,
|
|
13988
|
+
update: update7,
|
|
13847
13989
|
publish: publish2,
|
|
13848
|
-
delete:
|
|
13990
|
+
delete: del8
|
|
13849
13991
|
};
|
|
13850
13992
|
|
|
13851
13993
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/compliance-templates/compliance-templates.v2.contract.ts
|
|
13852
|
-
import { z as
|
|
13994
|
+
import { z as z336 } from "zod";
|
|
13853
13995
|
|
|
13854
13996
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/compliance-templates/compliance-templates.v2.list.schema.ts
|
|
13855
|
-
import { z as
|
|
13997
|
+
import { z as z335 } from "zod";
|
|
13856
13998
|
var ComplianceTemplatesV2ListInputSchema = DataTableInputSchema.extend({
|
|
13857
|
-
sortBy:
|
|
13999
|
+
sortBy: z335.enum(["name", "createdAt", "updatedAt"]).default("name").meta({ description: "Column to sort compliance templates by" }),
|
|
13858
14000
|
jurisdiction: JurisdictionFilterSchema.optional(),
|
|
13859
|
-
search:
|
|
13860
|
-
includeSystem:
|
|
13861
|
-
isDraft:
|
|
13862
|
-
isSystem:
|
|
14001
|
+
search: z335.string().max(200).optional(),
|
|
14002
|
+
includeSystem: z335.boolean().optional(),
|
|
14003
|
+
isDraft: z335.boolean().optional(),
|
|
14004
|
+
isSystem: z335.boolean().optional()
|
|
13863
14005
|
});
|
|
13864
14006
|
var ComplianceTemplatesV2ListOutputSchema = createPaginatedResponse(ComplianceTemplateSchema);
|
|
13865
14007
|
|
|
13866
14008
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/compliance-templates/compliance-templates.v2.contract.ts
|
|
13867
|
-
var
|
|
14009
|
+
var list21 = v2Contract.route({
|
|
13868
14010
|
method: "GET",
|
|
13869
14011
|
path: "/settings/compliance-templates",
|
|
13870
14012
|
description: "List compliance templates with pagination, sorting, and filtering. Sortable by name, createdAt, updatedAt.",
|
|
13871
14013
|
successDescription: "Paginated array of compliance templates with total count and faceted filter values.",
|
|
13872
14014
|
tags: ["v2-compliance-templates"]
|
|
13873
14015
|
}).input(v2Input.query(ComplianceTemplatesV2ListInputSchema)).output(ComplianceTemplatesV2ListOutputSchema);
|
|
13874
|
-
var
|
|
14016
|
+
var create12 = v2Contract.route({
|
|
13875
14017
|
method: "POST",
|
|
13876
14018
|
path: "/settings/compliance-templates",
|
|
13877
14019
|
description: "Create a new compliance template.",
|
|
13878
14020
|
successDescription: "Template created successfully.",
|
|
13879
14021
|
tags: ["v2-compliance-templates"]
|
|
13880
14022
|
}).input(v2Input.body(ComplianceTemplateCreateInputSchema)).output(createSingleResponse(ComplianceTemplateSchema));
|
|
13881
|
-
var
|
|
14023
|
+
var read17 = v2Contract.route({
|
|
13882
14024
|
method: "GET",
|
|
13883
14025
|
path: "/settings/compliance-templates/{id}",
|
|
13884
14026
|
description: "Read a single compliance template by ID.",
|
|
13885
14027
|
successDescription: "Template retrieved successfully.",
|
|
13886
14028
|
tags: ["v2-compliance-templates"]
|
|
13887
14029
|
}).input(v2Input.params(ReadInputSchema)).output(createSingleResponse(ComplianceTemplateSchema));
|
|
13888
|
-
var
|
|
14030
|
+
var update8 = v2Contract.route({
|
|
13889
14031
|
method: "PUT",
|
|
13890
14032
|
path: "/settings/compliance-templates/{id}",
|
|
13891
14033
|
description: "Update an existing compliance template.",
|
|
13892
14034
|
successDescription: "Template updated successfully.",
|
|
13893
14035
|
tags: ["v2-compliance-templates"]
|
|
13894
|
-
}).input(v2Input.paramsBody(
|
|
14036
|
+
}).input(v2Input.paramsBody(z336.object({ id: UpdateInputSchema.shape.id }), z336.object(UpdateInputSchema.shape).omit({ id: true }))).output(createSingleResponse(ComplianceTemplateSchema));
|
|
13895
14037
|
var publish3 = v2Contract.route({
|
|
13896
14038
|
method: "PUT",
|
|
13897
14039
|
path: "/settings/compliance-templates/{id}/publish",
|
|
@@ -13899,7 +14041,7 @@ var publish3 = v2Contract.route({
|
|
|
13899
14041
|
successDescription: "Template published successfully.",
|
|
13900
14042
|
tags: ["v2-compliance-templates"]
|
|
13901
14043
|
}).input(v2Input.params(PublishInputSchema)).output(createSingleResponse(ComplianceTemplateSchema));
|
|
13902
|
-
var
|
|
14044
|
+
var del9 = v2Contract.route({
|
|
13903
14045
|
method: "DELETE",
|
|
13904
14046
|
path: "/settings/compliance-templates/{id}",
|
|
13905
14047
|
description: "Delete a compliance template.",
|
|
@@ -13907,23 +14049,23 @@ var del8 = v2Contract.route({
|
|
|
13907
14049
|
tags: ["v2-compliance-templates"]
|
|
13908
14050
|
}).input(v2Input.params(DeleteInputSchema)).output(DeleteResponseSchema);
|
|
13909
14051
|
var complianceTemplatesV2Contract = {
|
|
13910
|
-
list:
|
|
13911
|
-
create:
|
|
13912
|
-
read:
|
|
13913
|
-
update:
|
|
14052
|
+
list: list21,
|
|
14053
|
+
create: create12,
|
|
14054
|
+
read: read17,
|
|
14055
|
+
update: update8,
|
|
13914
14056
|
publish: publish3,
|
|
13915
|
-
delete:
|
|
14057
|
+
delete: del9
|
|
13916
14058
|
};
|
|
13917
14059
|
|
|
13918
14060
|
// ../../packages/dalp/dapi/contract/src/routes/v2/settings/settings.v2.contract.ts
|
|
13919
|
-
var
|
|
14061
|
+
var read18 = v2Contract.route({
|
|
13920
14062
|
method: "GET",
|
|
13921
14063
|
path: "/settings/{key}",
|
|
13922
14064
|
description: "Read a single setting by key.",
|
|
13923
14065
|
successDescription: "Setting retrieved successfully.",
|
|
13924
14066
|
tags: ["v2-settings"]
|
|
13925
|
-
}).input(v2Input.params(SettingsReadSchema)).output(createSingleResponse(
|
|
13926
|
-
var
|
|
14067
|
+
}).input(v2Input.params(SettingsReadSchema)).output(createSingleResponse(z337.object({ value: z337.string().nullable() })));
|
|
14068
|
+
var list22 = v2Contract.route({
|
|
13927
14069
|
method: "GET",
|
|
13928
14070
|
path: "/settings",
|
|
13929
14071
|
description: "List all settings with pagination.",
|
|
@@ -13936,8 +14078,8 @@ var upsert4 = v2Contract.route({
|
|
|
13936
14078
|
description: "Create or update a setting by key.",
|
|
13937
14079
|
successDescription: "Setting upserted successfully.",
|
|
13938
14080
|
tags: ["v2-settings"]
|
|
13939
|
-
}).input(v2Input.body(SettingsUpsertSchema)).output(createSingleResponse(
|
|
13940
|
-
var
|
|
14081
|
+
}).input(v2Input.body(SettingsUpsertSchema)).output(createSingleResponse(z337.object({ value: z337.string() })));
|
|
14082
|
+
var del10 = v2Contract.route({
|
|
13941
14083
|
method: "DELETE",
|
|
13942
14084
|
path: "/settings/{key}",
|
|
13943
14085
|
description: "Delete a setting by key.",
|
|
@@ -13999,12 +14141,12 @@ var globalThemeSet2 = v2Contract.route({
|
|
|
13999
14141
|
description: "Set or clear the global theme organization.",
|
|
14000
14142
|
successDescription: "Global theme setting updated successfully.",
|
|
14001
14143
|
tags: ["v2-settings"]
|
|
14002
|
-
}).input(v2Input.body(GlobalThemeSetSchema)).output(createSingleResponse(
|
|
14144
|
+
}).input(v2Input.body(GlobalThemeSetSchema)).output(createSingleResponse(z337.object({ success: z337.boolean() })));
|
|
14003
14145
|
var settingsV2Contract = {
|
|
14004
|
-
read:
|
|
14005
|
-
list:
|
|
14146
|
+
read: read18,
|
|
14147
|
+
list: list22,
|
|
14006
14148
|
upsert: upsert4,
|
|
14007
|
-
delete:
|
|
14149
|
+
delete: del10,
|
|
14008
14150
|
publicConfig: {
|
|
14009
14151
|
get: publicConfigGet2
|
|
14010
14152
|
},
|
|
@@ -14019,12 +14161,13 @@ var settingsV2Contract = {
|
|
|
14019
14161
|
uploadLogo: themeUploadLogo2,
|
|
14020
14162
|
proxyUploadLogo: themeProxyUploadLogo2
|
|
14021
14163
|
},
|
|
14164
|
+
assetClassDefinitions: assetClassDefinitionsV2Contract,
|
|
14022
14165
|
assetTypeTemplates: assetTypeTemplatesV2Contract,
|
|
14023
14166
|
complianceTemplates: complianceTemplatesV2Contract
|
|
14024
14167
|
};
|
|
14025
14168
|
|
|
14026
14169
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/access-manager/access-manager.v2.contract.ts
|
|
14027
|
-
import { z as
|
|
14170
|
+
import { z as z338 } from "zod";
|
|
14028
14171
|
var rolesList = v2Contract.route({
|
|
14029
14172
|
method: "GET",
|
|
14030
14173
|
path: "/system/roles",
|
|
@@ -14038,21 +14181,21 @@ var rolesRead = v2Contract.route({
|
|
|
14038
14181
|
description: "Get the roles assigned to a specific account.",
|
|
14039
14182
|
successDescription: "Roles retrieved successfully.",
|
|
14040
14183
|
tags: ["v2-access-manager"]
|
|
14041
|
-
}).input(v2Input.params(
|
|
14184
|
+
}).input(v2Input.params(z338.object({ address: SystemRolesReadInputSchema.shape.account }))).output(createSingleResponse(SystemRolesReadOutputSchema));
|
|
14042
14185
|
var grantRole = v2Contract.route({
|
|
14043
14186
|
method: "POST",
|
|
14044
14187
|
path: "/system/roles/{address}/grant",
|
|
14045
14188
|
description: "Grant a role to multiple accounts.",
|
|
14046
14189
|
successDescription: "Roles granted successfully.",
|
|
14047
14190
|
tags: ["v2-access-manager"]
|
|
14048
|
-
}).input(v2Input.paramsBody(
|
|
14191
|
+
}).input(v2Input.paramsBody(z338.object({ address: GrantRoleInputSchema.shape.account }), GrantRoleInputSchema.omit({ account: true }))).output(createBlockchainMutationResponse(GrantRoleOutputSchema));
|
|
14049
14192
|
var revokeRole = v2Contract.route({
|
|
14050
14193
|
method: "DELETE",
|
|
14051
14194
|
path: "/system/roles/{address}/revoke",
|
|
14052
14195
|
description: "Revoke a role from multiple accounts.",
|
|
14053
14196
|
successDescription: "Roles revoked successfully.",
|
|
14054
14197
|
tags: ["v2-access-manager"]
|
|
14055
|
-
}).input(v2Input.paramsBody(
|
|
14198
|
+
}).input(v2Input.paramsBody(z338.object({ address: RevokeRoleInputSchema.shape.account }), RevokeRoleInputSchema.omit({ account: true }))).output(createBlockchainMutationResponse(RevokeRoleOutputSchema));
|
|
14056
14199
|
var accessManagerV2Contract = {
|
|
14057
14200
|
rolesList,
|
|
14058
14201
|
rolesRead,
|
|
@@ -14061,119 +14204,119 @@ var accessManagerV2Contract = {
|
|
|
14061
14204
|
};
|
|
14062
14205
|
|
|
14063
14206
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/activity/activity.v2.contract.ts
|
|
14064
|
-
import { z as
|
|
14065
|
-
var
|
|
14207
|
+
import { z as z339 } from "zod";
|
|
14208
|
+
var list23 = v2Contract.route({
|
|
14066
14209
|
method: "GET",
|
|
14067
14210
|
path: "/system/activity/{accountAddress}",
|
|
14068
14211
|
description: "Retrieve blockchain events where the specified" + " account address is involved. Provides a" + " paginated activity feed for any wallet or" + " contract address.",
|
|
14069
14212
|
successDescription: "Activity events retrieved successfully with pagination metadata",
|
|
14070
14213
|
tags: ["v2-system"]
|
|
14071
|
-
}).input(v2Input.paramsQuery(
|
|
14214
|
+
}).input(v2Input.paramsQuery(z339.object({ accountAddress: ActivityListInputSchema.shape.accountAddress }), ActivityListInputSchema.omit({ accountAddress: true }))).output(createSingleResponse(ActivityListOutputSchema));
|
|
14072
14215
|
var stats3 = v2Contract.route({
|
|
14073
14216
|
method: "GET",
|
|
14074
14217
|
path: "/system/activity/{accountAddress}/stats",
|
|
14075
14218
|
description: "Retrieve activity statistics for the specified" + " account address. Provides time series data" + " for charting and event counts.",
|
|
14076
14219
|
successDescription: "Activity statistics retrieved successfully",
|
|
14077
14220
|
tags: ["v2-system"]
|
|
14078
|
-
}).input(v2Input.paramsQuery(
|
|
14221
|
+
}).input(v2Input.paramsQuery(z339.object({ accountAddress: ActivityStatsInputSchema.shape.accountAddress }), ActivityStatsInputSchema.omit({ accountAddress: true }))).output(createSingleResponse(ActivityStatsOutputSchema));
|
|
14079
14222
|
var activityV2Contract = {
|
|
14080
|
-
list:
|
|
14223
|
+
list: list23,
|
|
14081
14224
|
stats: stats3
|
|
14082
14225
|
};
|
|
14083
14226
|
|
|
14084
14227
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/addon-factory/addon-factory.v2.contract.ts
|
|
14085
|
-
import { z as
|
|
14228
|
+
import { z as z340 } from "zod";
|
|
14086
14229
|
var TAGS23 = ["v2-addon-factory"];
|
|
14087
|
-
var
|
|
14230
|
+
var list24 = v2Contract.route({
|
|
14088
14231
|
method: "GET",
|
|
14089
14232
|
path: "/system/addon-factories",
|
|
14090
14233
|
description: "List system addon factories (extensions that add functionality to tokens)",
|
|
14091
14234
|
successDescription: "List of system addon factories with their types and deployment info",
|
|
14092
14235
|
tags: [...TAGS23]
|
|
14093
14236
|
}).input(v2Input.query(SystemAddonListSchema)).output(createSingleResponse(SystemAddonSchema2.array()));
|
|
14094
|
-
var
|
|
14237
|
+
var create13 = v2Contract.route({
|
|
14095
14238
|
method: "POST",
|
|
14096
14239
|
path: "/system/addon-factories",
|
|
14097
14240
|
description: "Register system addon factory to extend SMART system functionality",
|
|
14098
14241
|
successDescription: "System addon factory registered successfully",
|
|
14099
14242
|
tags: [...TAGS23]
|
|
14100
14243
|
}).input(v2Input.body(SystemAddonCreateSchema)).output(createBlockchainMutationResponse(SystemSchema));
|
|
14101
|
-
var
|
|
14244
|
+
var read19 = v2Contract.route({
|
|
14102
14245
|
method: "GET",
|
|
14103
14246
|
path: "/system/addon-factories/{factoryAddress}",
|
|
14104
14247
|
description: "Get an addon factory by address",
|
|
14105
14248
|
successDescription: "Addon factory data with type information",
|
|
14106
14249
|
tags: [...TAGS23]
|
|
14107
|
-
}).input(v2Input.params(
|
|
14250
|
+
}).input(v2Input.params(z340.object({ factoryAddress: AddonFactoryReadInputSchema.shape.addonFactoryAddress }))).output(createSingleResponse(AddonFactoryReadOutputSchema));
|
|
14108
14251
|
var addonFactoryV2Contract = {
|
|
14109
|
-
list:
|
|
14110
|
-
create:
|
|
14111
|
-
read:
|
|
14252
|
+
list: list24,
|
|
14253
|
+
create: create13,
|
|
14254
|
+
read: read19
|
|
14112
14255
|
};
|
|
14113
14256
|
|
|
14114
14257
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/claim-topics/claim-topics.v2.contract.ts
|
|
14115
|
-
import { z as
|
|
14258
|
+
import { z as z342 } from "zod";
|
|
14116
14259
|
|
|
14117
14260
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/claim-topics/claim-topics.v2.list.schema.ts
|
|
14118
|
-
import { z as
|
|
14261
|
+
import { z as z341 } from "zod";
|
|
14119
14262
|
var ClaimTopicsV2ListInputSchema = DataTableInputSchema.extend({
|
|
14120
|
-
sortBy:
|
|
14263
|
+
sortBy: z341.enum(["topicId", "name"]).default("topicId").meta({ description: "Column to sort claim topics by" })
|
|
14121
14264
|
});
|
|
14122
14265
|
var ClaimTopicsV2ListOutputSchema = createPaginatedResponse(TopicSchemeSchema);
|
|
14123
14266
|
|
|
14124
14267
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/claim-topics/claim-topics.v2.contract.ts
|
|
14125
|
-
var
|
|
14268
|
+
var list25 = v2Contract.route({
|
|
14126
14269
|
method: "GET",
|
|
14127
14270
|
path: "/system/claim-topics",
|
|
14128
14271
|
description: "List identity claim topics registered in the on-chain claim topic registry. Sortable by topicId, name.",
|
|
14129
14272
|
successDescription: "Paginated array of claim topics with total count and faceted filter values.",
|
|
14130
14273
|
tags: ["v2-claim-topics"]
|
|
14131
14274
|
}).input(v2Input.query(ClaimTopicsV2ListInputSchema)).output(ClaimTopicsV2ListOutputSchema);
|
|
14132
|
-
var
|
|
14275
|
+
var create14 = v2Contract.route({
|
|
14133
14276
|
method: "POST",
|
|
14134
14277
|
path: "/system/claim-topics",
|
|
14135
14278
|
description: "Register a new topic scheme for identity claims.",
|
|
14136
14279
|
successDescription: "Topic scheme registered successfully.",
|
|
14137
14280
|
tags: ["v2-claim-topics"]
|
|
14138
14281
|
}).input(v2Input.body(TopicCreateInputSchema)).output(createBlockchainMutationResponse(TopicCreateOutputSchema));
|
|
14139
|
-
var
|
|
14282
|
+
var read20 = v2Contract.route({
|
|
14140
14283
|
method: "GET",
|
|
14141
14284
|
path: "/system/claim-topics/{name}",
|
|
14142
14285
|
description: "Get detailed information about a specific claim topic including its trusted issuers.",
|
|
14143
14286
|
successDescription: "Topic details retrieved successfully.",
|
|
14144
14287
|
tags: ["v2-claim-topics"]
|
|
14145
14288
|
}).input(v2Input.params(TopicReadInputSchema)).output(createSingleResponse(TopicReadOutputSchema));
|
|
14146
|
-
var
|
|
14289
|
+
var update9 = v2Contract.route({
|
|
14147
14290
|
method: "PUT",
|
|
14148
14291
|
path: "/system/claim-topics/{name}",
|
|
14149
14292
|
description: "Update the signature of an existing topic scheme.",
|
|
14150
14293
|
successDescription: "Topic scheme signature updated successfully.",
|
|
14151
14294
|
tags: ["v2-claim-topics"]
|
|
14152
|
-
}).input(v2Input.paramsBody(
|
|
14153
|
-
var
|
|
14295
|
+
}).input(v2Input.paramsBody(z342.object({ name: TopicUpdateInputSchema.shape.name }), TopicUpdateInputSchema.omit({ name: true }))).output(createBlockchainMutationResponse(TopicUpdateOutputSchema));
|
|
14296
|
+
var del11 = v2Contract.route({
|
|
14154
14297
|
method: "DELETE",
|
|
14155
14298
|
path: "/system/claim-topics/{name}",
|
|
14156
14299
|
description: "Remove a topic scheme from the registry.",
|
|
14157
14300
|
successDescription: "Topic scheme removed successfully.",
|
|
14158
14301
|
tags: ["v2-claim-topics"]
|
|
14159
|
-
}).input(v2Input.paramsBody(
|
|
14302
|
+
}).input(v2Input.paramsBody(z342.object({ name: TopicDeleteInputSchema.shape.name }), TopicDeleteInputSchema.omit({ name: true }))).output(createBlockchainMutationResponse(TopicDeleteOutputSchema));
|
|
14160
14303
|
var claimTopicsV2Contract = {
|
|
14161
|
-
list:
|
|
14162
|
-
create:
|
|
14163
|
-
read:
|
|
14164
|
-
update:
|
|
14165
|
-
delete:
|
|
14304
|
+
list: list25,
|
|
14305
|
+
create: create14,
|
|
14306
|
+
read: read20,
|
|
14307
|
+
update: update9,
|
|
14308
|
+
delete: del11
|
|
14166
14309
|
};
|
|
14167
14310
|
|
|
14168
14311
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/compliance-module/compliance-module.v2.contract.ts
|
|
14169
|
-
var
|
|
14312
|
+
var list26 = v2Contract.route({
|
|
14170
14313
|
method: "GET",
|
|
14171
14314
|
path: "/system/compliance-modules",
|
|
14172
14315
|
description: "List all compliance modules registered in the system",
|
|
14173
14316
|
successDescription: "Compliance modules retrieved successfully",
|
|
14174
14317
|
tags: ["v2-compliance"]
|
|
14175
14318
|
}).output(createSingleResponse(ComplianceModulesListOutputSchema));
|
|
14176
|
-
var
|
|
14319
|
+
var create15 = v2Contract.route({
|
|
14177
14320
|
method: "POST",
|
|
14178
14321
|
path: "/system/compliance-modules",
|
|
14179
14322
|
description: "Register system compliance modules",
|
|
@@ -14188,35 +14331,35 @@ var removeGlobal = v2Contract.route({
|
|
|
14188
14331
|
tags: ["v2-compliance"]
|
|
14189
14332
|
}).input(v2Input.body(ComplianceModuleRemoveGlobalSchema)).output(createBlockchainMutationResponse(SystemSchema));
|
|
14190
14333
|
var complianceModuleV2Contract = {
|
|
14191
|
-
list:
|
|
14192
|
-
create:
|
|
14334
|
+
list: list26,
|
|
14335
|
+
create: create15,
|
|
14193
14336
|
removeGlobal
|
|
14194
14337
|
};
|
|
14195
14338
|
|
|
14196
14339
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/core/core.v2.contract.ts
|
|
14197
|
-
import { z as
|
|
14198
|
-
var
|
|
14340
|
+
import { z as z343 } from "zod";
|
|
14341
|
+
var list27 = v2Contract.route({
|
|
14199
14342
|
method: "GET",
|
|
14200
14343
|
path: "/systems",
|
|
14201
14344
|
description: "List all SMART systems deployed on the blockchain with their registry contracts and configuration",
|
|
14202
14345
|
successDescription: "List of SMART systems with deployment details and registry addresses",
|
|
14203
14346
|
tags: ["v2-system"]
|
|
14204
|
-
}).input(v2Input.query(SystemListInputSchema)).output(createSingleResponse(
|
|
14205
|
-
var
|
|
14347
|
+
}).input(v2Input.query(SystemListInputSchema)).output(createSingleResponse(z343.array(SystemListItemSchema)));
|
|
14348
|
+
var create16 = v2Contract.route({
|
|
14206
14349
|
method: "POST",
|
|
14207
14350
|
path: "/systems",
|
|
14208
14351
|
description: "Deploy a new SMART system with identity registry, compliance engine, and token factory registry contracts",
|
|
14209
14352
|
successDescription: "SMART system deployed successfully with all registry contracts and configuration",
|
|
14210
14353
|
tags: ["v2-system"]
|
|
14211
14354
|
}).input(v2Input.body(SystemCreateSchema)).output(createBlockchainMutationResponse(SystemCreateOutputSchema));
|
|
14212
|
-
var
|
|
14355
|
+
var read21 = v2Contract.route({
|
|
14213
14356
|
method: "GET",
|
|
14214
14357
|
path: "/system/{systemAddress}",
|
|
14215
14358
|
description: "Get details of a specific SMART system (use 'default' for the dApp system)",
|
|
14216
14359
|
successDescription: "SMART system details with token factories",
|
|
14217
14360
|
tags: ["v2-system"]
|
|
14218
|
-
}).input(v2Input.params(
|
|
14219
|
-
systemAddress:
|
|
14361
|
+
}).input(v2Input.params(z343.object({
|
|
14362
|
+
systemAddress: z343.literal("default").or(ethereumAddress)
|
|
14220
14363
|
}))).output(createSingleResponse(SystemSchema));
|
|
14221
14364
|
var resume2 = v2Contract.route({
|
|
14222
14365
|
method: "POST",
|
|
@@ -14226,14 +14369,14 @@ var resume2 = v2Contract.route({
|
|
|
14226
14369
|
tags: ["v2-system"]
|
|
14227
14370
|
}).input(v2Input.body(SystemResumeInputSchema)).output(createBlockchainMutationResponse(SystemResumeOutputSchema));
|
|
14228
14371
|
var coreV2Contract = {
|
|
14229
|
-
list:
|
|
14230
|
-
create:
|
|
14231
|
-
read:
|
|
14372
|
+
list: list27,
|
|
14373
|
+
create: create16,
|
|
14374
|
+
read: read21,
|
|
14232
14375
|
resume: resume2
|
|
14233
14376
|
};
|
|
14234
14377
|
|
|
14235
14378
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/directory/directory.v2.contract.ts
|
|
14236
|
-
var
|
|
14379
|
+
var read22 = v2Contract.route({
|
|
14237
14380
|
method: "GET",
|
|
14238
14381
|
path: "/system/directory",
|
|
14239
14382
|
description: "Get the Directory configuration including" + " system implementations, registered asset" + " types, compliance modules, and addons",
|
|
@@ -14241,18 +14384,18 @@ var read21 = v2Contract.route({
|
|
|
14241
14384
|
tags: ["v2-directory"]
|
|
14242
14385
|
}).input(v2Input.query(DirectoryReadInputSchema)).output(createSingleResponse(DirectoryReadOutputSchema.nullable()));
|
|
14243
14386
|
var directoryV2Contract = {
|
|
14244
|
-
read:
|
|
14387
|
+
read: read22
|
|
14245
14388
|
};
|
|
14246
14389
|
|
|
14247
14390
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/entity/entity.v2.list.schema.ts
|
|
14248
|
-
import { z as
|
|
14391
|
+
import { z as z344 } from "zod";
|
|
14249
14392
|
var EntityV2ListInputSchema = DataTableInputSchema.extend({
|
|
14250
|
-
sortBy:
|
|
14393
|
+
sortBy: z344.enum(["lastActivity", "identityAddress"]).default("lastActivity").meta({ description: "Column to sort entities by" })
|
|
14251
14394
|
});
|
|
14252
14395
|
var EntityV2ListOutputSchema = createPaginatedResponse(EntityItemSchema);
|
|
14253
14396
|
|
|
14254
14397
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/entity/entity.v2.contract.ts
|
|
14255
|
-
var
|
|
14398
|
+
var list28 = v2Contract.route({
|
|
14256
14399
|
method: "GET",
|
|
14257
14400
|
path: "/system/entities",
|
|
14258
14401
|
description: "List on-chain registered identities from the identity registry. Filterable by entityType. Sortable by lastActivity, identityAddress.",
|
|
@@ -14260,11 +14403,11 @@ var list27 = v2Contract.route({
|
|
|
14260
14403
|
tags: ["v2-entity"]
|
|
14261
14404
|
}).input(v2Input.query(EntityV2ListInputSchema)).output(EntityV2ListOutputSchema);
|
|
14262
14405
|
var entityV2Contract = {
|
|
14263
|
-
list:
|
|
14406
|
+
list: list28
|
|
14264
14407
|
};
|
|
14265
14408
|
|
|
14266
14409
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/feeds/feeds.v2.contract.ts
|
|
14267
|
-
import { z as
|
|
14410
|
+
import { z as z345 } from "zod";
|
|
14268
14411
|
var TAGS24 = ["v2-feeds"];
|
|
14269
14412
|
var capabilities2 = v2Contract.route({
|
|
14270
14413
|
method: "GET",
|
|
@@ -14273,7 +14416,7 @@ var capabilities2 = v2Contract.route({
|
|
|
14273
14416
|
successDescription: "Feed capabilities with addon installation status",
|
|
14274
14417
|
tags: [...TAGS24]
|
|
14275
14418
|
}).output(createSingleResponse(FeedsCapabilitiesOutputSchema));
|
|
14276
|
-
var
|
|
14419
|
+
var list29 = v2Contract.route({
|
|
14277
14420
|
method: "GET",
|
|
14278
14421
|
path: "/system/feeds",
|
|
14279
14422
|
description: "List all feeds registered in the feeds directory with optional filtering",
|
|
@@ -14287,7 +14430,7 @@ var resolve2 = v2Contract.route({
|
|
|
14287
14430
|
successDescription: "Feed resolution result",
|
|
14288
14431
|
tags: [...TAGS24]
|
|
14289
14432
|
}).input(v2Input.query(FeedResolveInputSchema)).output(createSingleResponse(FeedResolveOutputSchema));
|
|
14290
|
-
var
|
|
14433
|
+
var read23 = v2Contract.route({
|
|
14291
14434
|
method: "GET",
|
|
14292
14435
|
path: "/system/feeds/{feedAddress}",
|
|
14293
14436
|
description: "Read a single feed by its contract address",
|
|
@@ -14336,7 +14479,7 @@ var staleness2 = v2Contract.route({
|
|
|
14336
14479
|
description: "Evaluate whether a feed value is stale based on a maximum age threshold",
|
|
14337
14480
|
successDescription: "Staleness evaluation result",
|
|
14338
14481
|
tags: [...TAGS24]
|
|
14339
|
-
}).input(v2Input.paramsQuery(
|
|
14482
|
+
}).input(v2Input.paramsQuery(z345.object({ feedAddress: FeedStalenessInputSchema.shape.feedAddress }), z345.object(FeedStalenessInputSchema.shape).omit({ feedAddress: true }))).output(createSingleResponse(FeedStalenessOutputSchema));
|
|
14340
14483
|
var config2 = v2Contract.route({
|
|
14341
14484
|
method: "GET",
|
|
14342
14485
|
path: "/system/feeds/{feedAddress}/config",
|
|
@@ -14357,7 +14500,7 @@ var submit2 = v2Contract.route({
|
|
|
14357
14500
|
description: "Sign and submit a feed update using the backend-managed signer (EIP-712)",
|
|
14358
14501
|
successDescription: "Feed update submitted",
|
|
14359
14502
|
tags: [...TAGS24]
|
|
14360
|
-
}).input(v2Input.paramsBody(
|
|
14503
|
+
}).input(v2Input.paramsBody(z345.object({ feedAddress: FeedSubmitInputSchema.shape.feedAddress }), z345.object(FeedSubmitInputSchema.shape).omit({ feedAddress: true }))).output(createBlockchainMutationResponse(FeedSubmitOutputSchema));
|
|
14361
14504
|
var issuerSignedCreate2 = v2Contract.route({
|
|
14362
14505
|
method: "POST",
|
|
14363
14506
|
path: "/system/feeds/issuer-signed/create",
|
|
@@ -14390,9 +14533,9 @@ var adapterList2 = v2Contract.route({
|
|
|
14390
14533
|
}).input(v2Input.query(AdapterListInputSchema)).output(createSingleResponse(AdapterListOutputSchema));
|
|
14391
14534
|
var feedsV2Contract = {
|
|
14392
14535
|
capabilities: capabilities2,
|
|
14393
|
-
list:
|
|
14536
|
+
list: list29,
|
|
14394
14537
|
resolve: resolve2,
|
|
14395
|
-
read:
|
|
14538
|
+
read: read23,
|
|
14396
14539
|
registerExternal: registerExternal2,
|
|
14397
14540
|
replace: replace2,
|
|
14398
14541
|
remove: remove3,
|
|
@@ -14413,10 +14556,10 @@ var feedsV2Contract = {
|
|
|
14413
14556
|
};
|
|
14414
14557
|
|
|
14415
14558
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/identity/identity.v2.contract.ts
|
|
14416
|
-
import { z as
|
|
14559
|
+
import { z as z346 } from "zod";
|
|
14417
14560
|
var TAGS25 = ["v2-identity"];
|
|
14418
14561
|
var identityMutationOutput = createBlockchainMutationResponse(IdentitySchema);
|
|
14419
|
-
var
|
|
14562
|
+
var create17 = v2Contract.route({
|
|
14420
14563
|
method: "POST",
|
|
14421
14564
|
path: "/identity",
|
|
14422
14565
|
description: "Create a new blockchain identity contract for the authenticated user.",
|
|
@@ -14443,12 +14586,12 @@ var readByWallet2 = v2Contract.route({
|
|
|
14443
14586
|
description: "Read identity information by wallet address with claim validation.",
|
|
14444
14587
|
successDescription: "Identity information retrieved successfully.",
|
|
14445
14588
|
tags: TAGS25
|
|
14446
|
-
}).input(v2Input.paramsQuery(
|
|
14589
|
+
}).input(v2Input.paramsQuery(z346.object({
|
|
14447
14590
|
wallet: ethereumAddress.meta({
|
|
14448
14591
|
description: "The wallet address of the user",
|
|
14449
14592
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
14450
14593
|
})
|
|
14451
|
-
}),
|
|
14594
|
+
}), z346.object({
|
|
14452
14595
|
tokenAddress: ethereumAddress.optional().meta({
|
|
14453
14596
|
description: "Optional token address for token-specific trusted issuer validation.",
|
|
14454
14597
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
@@ -14460,12 +14603,12 @@ var readById = v2Contract.route({
|
|
|
14460
14603
|
description: "Read identity information by identity contract address.",
|
|
14461
14604
|
successDescription: "Identity information retrieved successfully.",
|
|
14462
14605
|
tags: TAGS25
|
|
14463
|
-
}).input(v2Input.paramsQuery(
|
|
14606
|
+
}).input(v2Input.paramsQuery(z346.object({
|
|
14464
14607
|
identityAddress: ethereumAddress.meta({
|
|
14465
14608
|
description: "The address of the identity contract to read",
|
|
14466
14609
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
14467
14610
|
})
|
|
14468
|
-
}),
|
|
14611
|
+
}), z346.object({
|
|
14469
14612
|
tokenAddress: ethereumAddress.optional().meta({
|
|
14470
14613
|
description: "Optional token address for token-specific trusted issuer validation.",
|
|
14471
14614
|
examples: ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"]
|
|
@@ -14485,7 +14628,7 @@ var me2 = v2Contract.route({
|
|
|
14485
14628
|
successDescription: "Identity retrieved successfully.",
|
|
14486
14629
|
tags: TAGS25
|
|
14487
14630
|
}).output(createSingleResponse(IdentitySchema));
|
|
14488
|
-
var
|
|
14631
|
+
var list30 = v2Contract.route({
|
|
14489
14632
|
method: "GET",
|
|
14490
14633
|
path: "/system/identity/list",
|
|
14491
14634
|
description: "Retrieve a paginated list of blockchain identities with metadata.",
|
|
@@ -14498,7 +14641,7 @@ var identityDelete2 = v2Contract.route({
|
|
|
14498
14641
|
description: "Delete an identity from the system's identity registry.",
|
|
14499
14642
|
successDescription: "Identity deleted successfully.",
|
|
14500
14643
|
tags: TAGS25
|
|
14501
|
-
}).input(v2Input.paramsBody(
|
|
14644
|
+
}).input(v2Input.paramsBody(z346.object({ wallet: IdentityDeleteInputSchema.shape.wallet }), IdentityDeleteInputSchema.omit({ wallet: true }))).output(createBlockchainMutationResponse(IdentityDeleteOutputSchema));
|
|
14502
14645
|
var updateCountry = v2Contract.route({
|
|
14503
14646
|
method: "PUT",
|
|
14504
14647
|
path: "/system/identity/country",
|
|
@@ -14535,14 +14678,14 @@ var claimRevoke = v2Contract.route({
|
|
|
14535
14678
|
tags: TAGS25
|
|
14536
14679
|
}).input(v2Input.body(ClaimsRevokeInputSchema)).output(createBlockchainMutationResponse(ClaimsRevokeOutputSchema));
|
|
14537
14680
|
var identityV2Contract = {
|
|
14538
|
-
create:
|
|
14681
|
+
create: create17,
|
|
14539
14682
|
register: register2,
|
|
14540
14683
|
registerPending,
|
|
14541
14684
|
readByWallet: readByWallet2,
|
|
14542
14685
|
readById,
|
|
14543
14686
|
search: search5,
|
|
14544
14687
|
me: me2,
|
|
14545
|
-
list:
|
|
14688
|
+
list: list30,
|
|
14546
14689
|
delete: identityDelete2,
|
|
14547
14690
|
updateCountry,
|
|
14548
14691
|
registrationStatus,
|
|
@@ -14554,7 +14697,7 @@ var identityV2Contract = {
|
|
|
14554
14697
|
};
|
|
14555
14698
|
|
|
14556
14699
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/stats/stats.v2.contract.ts
|
|
14557
|
-
import { z as
|
|
14700
|
+
import { z as z347 } from "zod";
|
|
14558
14701
|
var assets2 = v2Contract.route({
|
|
14559
14702
|
method: "GET",
|
|
14560
14703
|
path: "/system/stats/assets",
|
|
@@ -14568,10 +14711,10 @@ var assetLifecycleByRange = v2Contract.route({
|
|
|
14568
14711
|
description: "Retrieve counts for created and launched assets over custom time range",
|
|
14569
14712
|
successDescription: "System asset lifecycle metrics retrieved successfully",
|
|
14570
14713
|
tags: ["v2-system-stats"]
|
|
14571
|
-
}).input(v2Input.query(
|
|
14572
|
-
interval:
|
|
14573
|
-
from:
|
|
14574
|
-
to:
|
|
14714
|
+
}).input(v2Input.query(z347.object({
|
|
14715
|
+
interval: z347.enum(["hour", "day"]),
|
|
14716
|
+
from: z347.date(),
|
|
14717
|
+
to: z347.date()
|
|
14575
14718
|
}))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
|
|
14576
14719
|
var assetLifecycleByPreset = v2Contract.route({
|
|
14577
14720
|
method: "GET",
|
|
@@ -14579,8 +14722,8 @@ var assetLifecycleByPreset = v2Contract.route({
|
|
|
14579
14722
|
description: "Retrieve counts for created and launched assets using preset range",
|
|
14580
14723
|
successDescription: "System asset lifecycle metrics retrieved successfully",
|
|
14581
14724
|
tags: ["v2-system-stats"]
|
|
14582
|
-
}).input(v2Input.params(
|
|
14583
|
-
preset:
|
|
14725
|
+
}).input(v2Input.params(z347.object({
|
|
14726
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14584
14727
|
}))).output(createSingleResponse(StatsAssetLifecycleOutputSchema));
|
|
14585
14728
|
var assetActivityByRange = v2Contract.route({
|
|
14586
14729
|
method: "GET",
|
|
@@ -14588,10 +14731,10 @@ var assetActivityByRange = v2Contract.route({
|
|
|
14588
14731
|
description: "Retrieve counts for transfer, mint, and burn events over custom time range",
|
|
14589
14732
|
successDescription: "System asset activity metrics retrieved successfully",
|
|
14590
14733
|
tags: ["v2-system-stats"]
|
|
14591
|
-
}).input(v2Input.query(
|
|
14592
|
-
interval:
|
|
14593
|
-
from:
|
|
14594
|
-
to:
|
|
14734
|
+
}).input(v2Input.query(z347.object({
|
|
14735
|
+
interval: z347.enum(["hour", "day"]),
|
|
14736
|
+
from: z347.date(),
|
|
14737
|
+
to: z347.date()
|
|
14595
14738
|
}))).output(createSingleResponse(StatsAssetActivityOutputSchema));
|
|
14596
14739
|
var assetActivityByPreset = v2Contract.route({
|
|
14597
14740
|
method: "GET",
|
|
@@ -14599,8 +14742,8 @@ var assetActivityByPreset = v2Contract.route({
|
|
|
14599
14742
|
description: "Retrieve counts for transfer, mint, and burn events using preset range",
|
|
14600
14743
|
successDescription: "System asset activity metrics retrieved successfully",
|
|
14601
14744
|
tags: ["v2-system-stats"]
|
|
14602
|
-
}).input(v2Input.params(
|
|
14603
|
-
preset:
|
|
14745
|
+
}).input(v2Input.params(z347.object({
|
|
14746
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14604
14747
|
}))).output(createSingleResponse(StatsAssetActivityOutputSchema));
|
|
14605
14748
|
var claimsStatsByRange = v2Contract.route({
|
|
14606
14749
|
method: "GET",
|
|
@@ -14608,10 +14751,10 @@ var claimsStatsByRange = v2Contract.route({
|
|
|
14608
14751
|
description: "Retrieve claims statistics over custom time range including issued, active, removed, and revoked claims",
|
|
14609
14752
|
successDescription: "Claims statistics retrieved successfully",
|
|
14610
14753
|
tags: ["v2-system-stats"]
|
|
14611
|
-
}).input(v2Input.query(
|
|
14612
|
-
interval:
|
|
14613
|
-
from:
|
|
14614
|
-
to:
|
|
14754
|
+
}).input(v2Input.query(z347.object({
|
|
14755
|
+
interval: z347.enum(["hour", "day"]),
|
|
14756
|
+
from: z347.date(),
|
|
14757
|
+
to: z347.date()
|
|
14615
14758
|
}))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
|
|
14616
14759
|
var claimsStatsByPreset = v2Contract.route({
|
|
14617
14760
|
method: "GET",
|
|
@@ -14619,8 +14762,8 @@ var claimsStatsByPreset = v2Contract.route({
|
|
|
14619
14762
|
description: "Retrieve claims statistics using preset range including issued, active, removed, and revoked claims",
|
|
14620
14763
|
successDescription: "Claims statistics retrieved successfully",
|
|
14621
14764
|
tags: ["v2-system-stats"]
|
|
14622
|
-
}).input(v2Input.params(
|
|
14623
|
-
preset:
|
|
14765
|
+
}).input(v2Input.params(z347.object({
|
|
14766
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14624
14767
|
}))).output(createSingleResponse(StatsClaimsStatsOutputSchema));
|
|
14625
14768
|
var claimsStatsState = v2Contract.route({
|
|
14626
14769
|
method: "GET",
|
|
@@ -14649,10 +14792,10 @@ var identityStatsOverTimeByRange = v2Contract.route({
|
|
|
14649
14792
|
description: "Retrieve identity statistics over custom time range for charts",
|
|
14650
14793
|
successDescription: "Identity statistics over time retrieved successfully",
|
|
14651
14794
|
tags: ["v2-system-stats"]
|
|
14652
|
-
}).input(v2Input.query(
|
|
14653
|
-
interval:
|
|
14654
|
-
from:
|
|
14655
|
-
to:
|
|
14795
|
+
}).input(v2Input.query(z347.object({
|
|
14796
|
+
interval: z347.enum(["hour", "day"]),
|
|
14797
|
+
from: z347.date(),
|
|
14798
|
+
to: z347.date()
|
|
14656
14799
|
}))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
|
|
14657
14800
|
var identityStatsOverTimeByPreset = v2Contract.route({
|
|
14658
14801
|
method: "GET",
|
|
@@ -14660,8 +14803,8 @@ var identityStatsOverTimeByPreset = v2Contract.route({
|
|
|
14660
14803
|
description: "Retrieve identity statistics using preset range for charts",
|
|
14661
14804
|
successDescription: "Identity statistics over time retrieved successfully",
|
|
14662
14805
|
tags: ["v2-system-stats"]
|
|
14663
|
-
}).input(v2Input.params(
|
|
14664
|
-
preset:
|
|
14806
|
+
}).input(v2Input.params(z347.object({
|
|
14807
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14665
14808
|
}))).output(createSingleResponse(StatsIdentityStatsOverTimeOutputSchema));
|
|
14666
14809
|
var transactionCount = v2Contract.route({
|
|
14667
14810
|
method: "GET",
|
|
@@ -14683,10 +14826,10 @@ var trustedIssuerStatsByRange = v2Contract.route({
|
|
|
14683
14826
|
description: "Retrieve trusted issuer statistics over custom time range including added, active, and removed issuers",
|
|
14684
14827
|
successDescription: "Trusted issuer statistics retrieved successfully",
|
|
14685
14828
|
tags: ["v2-system-stats"]
|
|
14686
|
-
}).input(v2Input.query(
|
|
14687
|
-
interval:
|
|
14688
|
-
from:
|
|
14689
|
-
to:
|
|
14829
|
+
}).input(v2Input.query(z347.object({
|
|
14830
|
+
interval: z347.enum(["hour", "day"]),
|
|
14831
|
+
from: z347.date(),
|
|
14832
|
+
to: z347.date()
|
|
14690
14833
|
}))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
|
|
14691
14834
|
var trustedIssuerStatsByPreset = v2Contract.route({
|
|
14692
14835
|
method: "GET",
|
|
@@ -14694,8 +14837,8 @@ var trustedIssuerStatsByPreset = v2Contract.route({
|
|
|
14694
14837
|
description: "Retrieve trusted issuer statistics using preset range including added, active, and removed issuers",
|
|
14695
14838
|
successDescription: "Trusted issuer statistics retrieved successfully",
|
|
14696
14839
|
tags: ["v2-system-stats"]
|
|
14697
|
-
}).input(v2Input.params(
|
|
14698
|
-
preset:
|
|
14840
|
+
}).input(v2Input.params(z347.object({
|
|
14841
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14699
14842
|
}))).output(createSingleResponse(StatsTrustedIssuerStatsOutputSchema));
|
|
14700
14843
|
var trustedIssuerStatsState = v2Contract.route({
|
|
14701
14844
|
method: "GET",
|
|
@@ -14717,10 +14860,10 @@ var portfolioByRange = v2Contract.route({
|
|
|
14717
14860
|
description: "Retrieve system-wide portfolio statistics over custom time range",
|
|
14718
14861
|
successDescription: "System portfolio statistics retrieved successfully",
|
|
14719
14862
|
tags: ["v2-system-stats"]
|
|
14720
|
-
}).input(v2Input.query(
|
|
14721
|
-
interval:
|
|
14722
|
-
from:
|
|
14723
|
-
to:
|
|
14863
|
+
}).input(v2Input.query(z347.object({
|
|
14864
|
+
interval: z347.enum(["hour", "day"]),
|
|
14865
|
+
from: z347.date(),
|
|
14866
|
+
to: z347.date()
|
|
14724
14867
|
}))).output(createSingleResponse(StatsPortfolioOutputSchema));
|
|
14725
14868
|
var portfolioByPreset = v2Contract.route({
|
|
14726
14869
|
method: "GET",
|
|
@@ -14728,8 +14871,8 @@ var portfolioByPreset = v2Contract.route({
|
|
|
14728
14871
|
description: "Retrieve system-wide portfolio statistics using preset range",
|
|
14729
14872
|
successDescription: "System portfolio statistics retrieved successfully",
|
|
14730
14873
|
tags: ["v2-system-stats"]
|
|
14731
|
-
}).input(v2Input.params(
|
|
14732
|
-
preset:
|
|
14874
|
+
}).input(v2Input.params(z347.object({
|
|
14875
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14733
14876
|
}))).output(createSingleResponse(StatsPortfolioOutputSchema));
|
|
14734
14877
|
var portfolioDetails = v2Contract.route({
|
|
14735
14878
|
method: "GET",
|
|
@@ -14744,10 +14887,10 @@ var topicSchemesStatsByRange = v2Contract.route({
|
|
|
14744
14887
|
description: "Retrieve topic schemes statistics over custom time range including registered, active, and removed schemes",
|
|
14745
14888
|
successDescription: "Topic schemes statistics retrieved successfully",
|
|
14746
14889
|
tags: ["v2-system-stats"]
|
|
14747
|
-
}).input(v2Input.query(
|
|
14748
|
-
interval:
|
|
14749
|
-
from:
|
|
14750
|
-
to:
|
|
14890
|
+
}).input(v2Input.query(z347.object({
|
|
14891
|
+
interval: z347.enum(["hour", "day"]),
|
|
14892
|
+
from: z347.date(),
|
|
14893
|
+
to: z347.date()
|
|
14751
14894
|
}))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
|
|
14752
14895
|
var topicSchemesStatsByPreset = v2Contract.route({
|
|
14753
14896
|
method: "GET",
|
|
@@ -14755,8 +14898,8 @@ var topicSchemesStatsByPreset = v2Contract.route({
|
|
|
14755
14898
|
description: "Retrieve topic schemes statistics using preset range including registered, active, and removed schemes",
|
|
14756
14899
|
successDescription: "Topic schemes statistics retrieved successfully",
|
|
14757
14900
|
tags: ["v2-system-stats"]
|
|
14758
|
-
}).input(v2Input.params(
|
|
14759
|
-
preset:
|
|
14901
|
+
}).input(v2Input.params(z347.object({
|
|
14902
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14760
14903
|
}))).output(createSingleResponse(StatsTopicSchemesStatsOutputSchema));
|
|
14761
14904
|
var topicSchemesStatsState = v2Contract.route({
|
|
14762
14905
|
method: "GET",
|
|
@@ -14778,10 +14921,10 @@ var systemValueHistoryByRange = v2Contract.route({
|
|
|
14778
14921
|
description: "Retrieve total system value history over custom time range",
|
|
14779
14922
|
successDescription: "System value history retrieved successfully",
|
|
14780
14923
|
tags: ["v2-system-stats"]
|
|
14781
|
-
}).input(v2Input.query(
|
|
14782
|
-
interval:
|
|
14783
|
-
from:
|
|
14784
|
-
to:
|
|
14924
|
+
}).input(v2Input.query(z347.object({
|
|
14925
|
+
interval: z347.enum(["hour", "day"]),
|
|
14926
|
+
from: z347.date(),
|
|
14927
|
+
to: z347.date()
|
|
14785
14928
|
}))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
|
|
14786
14929
|
var systemValueHistoryByPreset = v2Contract.route({
|
|
14787
14930
|
method: "GET",
|
|
@@ -14789,8 +14932,8 @@ var systemValueHistoryByPreset = v2Contract.route({
|
|
|
14789
14932
|
description: "Retrieve total system value history using preset range",
|
|
14790
14933
|
successDescription: "System value history retrieved successfully",
|
|
14791
14934
|
tags: ["v2-system-stats"]
|
|
14792
|
-
}).input(v2Input.params(
|
|
14793
|
-
preset:
|
|
14935
|
+
}).input(v2Input.params(z347.object({
|
|
14936
|
+
preset: z347.enum(["trailing24Hours", "trailing7Days"])
|
|
14794
14937
|
}))).output(createSingleResponse(StatsSystemValueHistoryOutputSchema));
|
|
14795
14938
|
var statsV2Contract = {
|
|
14796
14939
|
assets: assets2,
|
|
@@ -14824,21 +14967,21 @@ var statsV2Contract = {
|
|
|
14824
14967
|
|
|
14825
14968
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/token-factory/token-factory.v2.contract.ts
|
|
14826
14969
|
var TAGS26 = ["v2-token-factory"];
|
|
14827
|
-
var
|
|
14970
|
+
var list31 = v2Contract.route({
|
|
14828
14971
|
method: "GET",
|
|
14829
14972
|
path: "/system/factories",
|
|
14830
14973
|
description: "List all token factories",
|
|
14831
14974
|
successDescription: "List of token factories",
|
|
14832
14975
|
tags: [...TAGS26]
|
|
14833
14976
|
}).input(v2Input.query(TokenFactoryListSchema)).output(createSingleResponse(FactoryListSchema));
|
|
14834
|
-
var
|
|
14977
|
+
var create18 = v2Contract.route({
|
|
14835
14978
|
method: "POST",
|
|
14836
14979
|
path: "/system/factories",
|
|
14837
14980
|
description: "Deploy one or more token factory contracts for creating specific token types",
|
|
14838
14981
|
successDescription: "Token factory deployed successfully",
|
|
14839
14982
|
tags: [...TAGS26]
|
|
14840
14983
|
}).input(v2Input.body(FactoryCreateSchema)).output(createBlockchainMutationResponse(SystemSchema));
|
|
14841
|
-
var
|
|
14984
|
+
var read24 = v2Contract.route({
|
|
14842
14985
|
method: "GET",
|
|
14843
14986
|
path: "/system/factories/{factoryAddress}",
|
|
14844
14987
|
description: "Get a token factory by address",
|
|
@@ -14860,66 +15003,66 @@ var predictAddress = v2Contract.route({
|
|
|
14860
15003
|
tags: [...TAGS26]
|
|
14861
15004
|
}).input(v2Input.body(PredictAddressInputSchema)).output(createSingleResponse(PredictAddressOutputSchema));
|
|
14862
15005
|
var tokenFactoryV2Contract = {
|
|
14863
|
-
list:
|
|
14864
|
-
create:
|
|
14865
|
-
read:
|
|
15006
|
+
list: list31,
|
|
15007
|
+
create: create18,
|
|
15008
|
+
read: read24,
|
|
14866
15009
|
available,
|
|
14867
15010
|
predictAddress
|
|
14868
15011
|
};
|
|
14869
15012
|
|
|
14870
15013
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
14871
|
-
import { z as
|
|
15014
|
+
import { z as z349 } from "zod";
|
|
14872
15015
|
|
|
14873
15016
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.list.schema.ts
|
|
14874
|
-
import { z as
|
|
15017
|
+
import { z as z348 } from "zod";
|
|
14875
15018
|
var TrustedIssuersV2ListInputSchema = DataTableInputSchema.extend({
|
|
14876
|
-
sortBy:
|
|
15019
|
+
sortBy: z348.enum(["id"]).default("id").meta({ description: "Column to sort trusted issuers by" })
|
|
14877
15020
|
});
|
|
14878
15021
|
var TrustedIssuersV2ListOutputSchema = createPaginatedResponse(TrustedIssuerSchema2);
|
|
14879
15022
|
|
|
14880
15023
|
// ../../packages/dalp/dapi/contract/src/routes/v2/system/trusted-issuers/trusted-issuers.v2.contract.ts
|
|
14881
|
-
var
|
|
15024
|
+
var list32 = v2Contract.route({
|
|
14882
15025
|
method: "GET",
|
|
14883
15026
|
path: "/system/trusted-issuers",
|
|
14884
15027
|
description: "List trusted claim issuers registered in the on-chain trusted issuers registry. Sortable by id.",
|
|
14885
15028
|
successDescription: "Paginated array of trusted issuers with total count and faceted filter values.",
|
|
14886
15029
|
tags: ["v2-trusted-issuers"]
|
|
14887
15030
|
}).input(v2Input.query(TrustedIssuersV2ListInputSchema)).output(TrustedIssuersV2ListOutputSchema);
|
|
14888
|
-
var
|
|
15031
|
+
var read25 = v2Contract.route({
|
|
14889
15032
|
method: "GET",
|
|
14890
15033
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
14891
15034
|
description: "Get details for a trusted issuer by identity address.",
|
|
14892
15035
|
successDescription: "Trusted issuer retrieved successfully.",
|
|
14893
15036
|
tags: ["v2-trusted-issuers"]
|
|
14894
15037
|
}).input(v2Input.params(TrustedIssuerReadInputSchema)).output(createSingleResponse(TrustedIssuerReadOutputSchema));
|
|
14895
|
-
var
|
|
15038
|
+
var create19 = v2Contract.route({
|
|
14896
15039
|
method: "POST",
|
|
14897
15040
|
path: "/system/trusted-issuers",
|
|
14898
15041
|
description: "Create a new trusted issuer in the registry.",
|
|
14899
15042
|
successDescription: "Trusted issuer created successfully.",
|
|
14900
15043
|
tags: ["v2-trusted-issuers"]
|
|
14901
15044
|
}).input(v2Input.body(TrustedIssuerCreateInputSchema)).output(createBlockchainMutationResponse(TrustedIssuerCreateOutputSchema));
|
|
14902
|
-
var
|
|
15045
|
+
var update10 = v2Contract.route({
|
|
14903
15046
|
method: "PUT",
|
|
14904
15047
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
14905
15048
|
description: "Update the claim topics for a trusted issuer.",
|
|
14906
15049
|
successDescription: "Trusted issuer topics updated successfully.",
|
|
14907
15050
|
tags: ["v2-trusted-issuers"]
|
|
14908
|
-
}).input(v2Input.paramsBody(
|
|
15051
|
+
}).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerUpdateInputSchema.shape.issuerAddress }), TrustedIssuerUpdateInputSchema.omit({ issuerAddress: true }))).output(createBlockchainMutationResponse(TrustedIssuerUpdateOutputSchema));
|
|
14909
15052
|
var upsert5 = v2Contract.route({
|
|
14910
15053
|
method: "PUT",
|
|
14911
15054
|
path: "/system/trusted-issuers/{issuerAddress}/upsert",
|
|
14912
15055
|
description: "Create or update a trusted issuer in the registry.",
|
|
14913
15056
|
successDescription: "Trusted issuer upserted successfully.",
|
|
14914
15057
|
tags: ["v2-trusted-issuers"]
|
|
14915
|
-
}).input(v2Input.paramsBody(
|
|
14916
|
-
var
|
|
15058
|
+
}).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerUpsertInputSchema.shape.issuerAddress }), TrustedIssuerUpsertInputSchema.omit({ issuerAddress: true }))).output(createBlockchainMutationResponse(TrustedIssuerUpsertOutputSchema));
|
|
15059
|
+
var del12 = v2Contract.route({
|
|
14917
15060
|
method: "DELETE",
|
|
14918
15061
|
path: "/system/trusted-issuers/{issuerAddress}",
|
|
14919
15062
|
description: "Delete a trusted issuer from the registry.",
|
|
14920
15063
|
successDescription: "Trusted issuer deleted successfully.",
|
|
14921
15064
|
tags: ["v2-trusted-issuers"]
|
|
14922
|
-
}).input(v2Input.paramsBody(
|
|
15065
|
+
}).input(v2Input.paramsBody(z349.object({ issuerAddress: TrustedIssuerDeleteInputSchema.shape.issuerAddress }), TrustedIssuerDeleteInputSchema.omit({ issuerAddress: true }))).output(createBlockchainMutationResponse(TrustedIssuerDeleteOutputSchema));
|
|
14923
15066
|
var topics = v2Contract.route({
|
|
14924
15067
|
method: "GET",
|
|
14925
15068
|
path: "/system/trusted-issuers/{issuerAddress}/topics",
|
|
@@ -14928,12 +15071,12 @@ var topics = v2Contract.route({
|
|
|
14928
15071
|
tags: ["v2-trusted-issuers"]
|
|
14929
15072
|
}).input(v2Input.params(TrustedIssuerTopicsInputSchema)).output(createSingleResponse(TrustedIssuerTopicsOutputSchema));
|
|
14930
15073
|
var trustedIssuersV2Contract = {
|
|
14931
|
-
list:
|
|
14932
|
-
read:
|
|
14933
|
-
create:
|
|
14934
|
-
update:
|
|
15074
|
+
list: list32,
|
|
15075
|
+
read: read25,
|
|
15076
|
+
create: create19,
|
|
15077
|
+
update: update10,
|
|
14935
15078
|
upsert: upsert5,
|
|
14936
|
-
delete:
|
|
15079
|
+
delete: del12,
|
|
14937
15080
|
topics
|
|
14938
15081
|
};
|
|
14939
15082
|
|
|
@@ -14955,15 +15098,15 @@ var systemV2Contract = {
|
|
|
14955
15098
|
};
|
|
14956
15099
|
|
|
14957
15100
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.documents.contract.ts
|
|
14958
|
-
import { z as
|
|
14959
|
-
var
|
|
15101
|
+
import { z as z350 } from "zod";
|
|
15102
|
+
var list33 = v2Contract.route({
|
|
14960
15103
|
method: "GET",
|
|
14961
15104
|
path: "/token/{tokenAddress}/documents",
|
|
14962
15105
|
description: "List all documents for a token.",
|
|
14963
15106
|
successDescription: "List of token documents.",
|
|
14964
15107
|
tags: ["v2-token-documents"]
|
|
14965
|
-
}).input(v2Input.paramsQuery(TokenReadInputSchema,
|
|
14966
|
-
var
|
|
15108
|
+
}).input(v2Input.paramsQuery(TokenReadInputSchema, z350.object(TokenDocumentListInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenDocumentListOutputSchema));
|
|
15109
|
+
var del13 = v2Contract.route({
|
|
14967
15110
|
method: "DELETE",
|
|
14968
15111
|
path: "/token/{tokenAddress}/documents/{documentId}",
|
|
14969
15112
|
description: "Delete a token document.",
|
|
@@ -14992,30 +15135,30 @@ var getDownloadUrl = v2Contract.route({
|
|
|
14992
15135
|
tags: ["v2-token-documents"]
|
|
14993
15136
|
}).input(v2Input.params(TokenDocumentGetDownloadUrlInputSchema)).output(createSingleResponse(TokenDocumentGetDownloadUrlOutputSchema));
|
|
14994
15137
|
var tokenV2DocumentsContract = {
|
|
14995
|
-
list:
|
|
14996
|
-
delete:
|
|
15138
|
+
list: list33,
|
|
15139
|
+
delete: del13,
|
|
14997
15140
|
getUploadUrl,
|
|
14998
15141
|
confirmUpload,
|
|
14999
15142
|
getDownloadUrl
|
|
15000
15143
|
};
|
|
15001
15144
|
|
|
15002
15145
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.list.schema.ts
|
|
15003
|
-
import { z as
|
|
15146
|
+
import { z as z351 } from "zod";
|
|
15004
15147
|
var TokenV2ListInputSchema = DataTableInputSchema.extend({
|
|
15005
|
-
sortBy:
|
|
15148
|
+
sortBy: z351.enum(["name", "symbol", "decimals", "createdAt"]).default("createdAt").meta({ description: "Column to sort tokens by", examples: ["createdAt", "name"] }),
|
|
15006
15149
|
tokenFactory: ethereumAddress.optional().meta({
|
|
15007
15150
|
description: "Filter tokens by factory contract address",
|
|
15008
15151
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15009
15152
|
}),
|
|
15010
|
-
tokenType:
|
|
15011
|
-
description: "Filter the token list to a specific asset type. " + "
|
|
15012
|
-
examples: ["bond", "deposit"]
|
|
15153
|
+
tokenType: z351.string().max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "tokenType must be kebab-case").optional().meta({
|
|
15154
|
+
description: "Filter the token list to a specific asset type or organisation template slug. " + "System types: bond, equity, fund, stablecoin, deposit, real-estate, precious-metal. " + "Organisation template slugs (e.g. 'kbc-deposit') are also accepted. " + "Omit to return all token types.",
|
|
15155
|
+
examples: ["bond", "deposit", "kbc-deposit"]
|
|
15013
15156
|
})
|
|
15014
15157
|
});
|
|
15015
15158
|
var TokenV2ListOutputSchema = createPaginatedResponse(TokenListItemSchema);
|
|
15016
15159
|
|
|
15017
15160
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
15018
|
-
import { z as
|
|
15161
|
+
import { z as z352 } from "zod";
|
|
15019
15162
|
|
|
15020
15163
|
// ../../packages/dalp/dapi/contract/src/routes/token/routes/mutations/features/token.set-aum-fee.schema.ts
|
|
15021
15164
|
import { z as zod } from "zod";
|
|
@@ -15060,7 +15203,7 @@ var TokenRemoveMetadataInputSchema = TokenMutationInputSchema.extend({
|
|
|
15060
15203
|
|
|
15061
15204
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.mutations.contract.ts
|
|
15062
15205
|
var mutationOutput = createBlockchainMutationResponse(TokenSchema);
|
|
15063
|
-
var
|
|
15206
|
+
var create20 = v2Contract.route({
|
|
15064
15207
|
method: "POST",
|
|
15065
15208
|
path: "/token",
|
|
15066
15209
|
description: "Create a new token (deposit, bond, equity, fund, or stablecoin) and deploy it to the blockchain.",
|
|
@@ -15073,28 +15216,28 @@ var mint = v2Contract.route({
|
|
|
15073
15216
|
description: "Mint new tokens to one or more addresses.",
|
|
15074
15217
|
successDescription: "Tokens minted successfully.",
|
|
15075
15218
|
tags: ["v2-token"]
|
|
15076
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15219
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenMintInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
15077
15220
|
var burn = v2Contract.route({
|
|
15078
15221
|
method: "POST",
|
|
15079
15222
|
path: "/token/{tokenAddress}/burn",
|
|
15080
15223
|
description: "Burn tokens from one or more addresses.",
|
|
15081
15224
|
successDescription: "Tokens burned successfully.",
|
|
15082
15225
|
tags: ["v2-token"]
|
|
15083
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15226
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenBurnInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
15084
15227
|
var transfer = v2Contract.route({
|
|
15085
15228
|
method: "POST",
|
|
15086
15229
|
path: "/token/{tokenAddress}/transfer",
|
|
15087
15230
|
description: "Transfer tokens using the holder's balance or via allowance (transferFrom).",
|
|
15088
15231
|
successDescription: "Tokens transferred successfully.",
|
|
15089
15232
|
tags: ["v2-token"]
|
|
15090
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15233
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
15091
15234
|
var forcedTransfer = v2Contract.route({
|
|
15092
15235
|
method: "POST",
|
|
15093
15236
|
path: "/token/{tokenAddress}/forced-transfer",
|
|
15094
15237
|
description: "Force transfer tokens from specific holders as a custodian (single or batch).",
|
|
15095
15238
|
successDescription: "Forced transfer executed successfully.",
|
|
15096
15239
|
tags: ["v2-token"]
|
|
15097
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15240
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenForcedTransferSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
15098
15241
|
var approve3 = v2Contract.route({
|
|
15099
15242
|
method: "POST",
|
|
15100
15243
|
path: "/token/{tokenAddress}/approve",
|
|
@@ -15108,7 +15251,7 @@ var redeem = v2Contract.route({
|
|
|
15108
15251
|
description: "Redeem tokens from one or more addresses.",
|
|
15109
15252
|
successDescription: "Tokens redeemed successfully.",
|
|
15110
15253
|
tags: ["v2-token"]
|
|
15111
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15254
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.object(TokenRedeemInputSchema.shape).omit({ tokenAddress: true }))).output(mutationOutput);
|
|
15112
15255
|
var mature = v2Contract.route({
|
|
15113
15256
|
method: "POST",
|
|
15114
15257
|
path: "/token/{tokenAddress}/mature",
|
|
@@ -15220,9 +15363,9 @@ var grantRole2 = v2Contract.route({
|
|
|
15220
15363
|
description: "Grant a role to multiple accounts on a token.",
|
|
15221
15364
|
successDescription: "Role granted successfully to accounts.",
|
|
15222
15365
|
tags: ["v2-token"]
|
|
15223
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15224
|
-
|
|
15225
|
-
|
|
15366
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
|
|
15367
|
+
z352.object(TokenGrantRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
15368
|
+
z352.object(TokenGrantRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
15226
15369
|
]))).output(createBlockchainMutationResponse(TokenGrantRoleOutputSchema));
|
|
15227
15370
|
var revokeRole2 = v2Contract.route({
|
|
15228
15371
|
method: "POST",
|
|
@@ -15230,9 +15373,9 @@ var revokeRole2 = v2Contract.route({
|
|
|
15230
15373
|
description: "Revoke role(s) from account(s) on a token.",
|
|
15231
15374
|
successDescription: "Roles revoked successfully from the specified accounts.",
|
|
15232
15375
|
tags: ["v2-token"]
|
|
15233
|
-
}).input(v2Input.paramsBody(TokenReadInputSchema,
|
|
15234
|
-
|
|
15235
|
-
|
|
15376
|
+
}).input(v2Input.paramsBody(TokenReadInputSchema, z352.union([
|
|
15377
|
+
z352.object(TokenRevokeRoleInputSchema.options[0].shape).omit({ tokenAddress: true }),
|
|
15378
|
+
z352.object(TokenRevokeRoleInputSchema.options[1].shape).omit({ tokenAddress: true })
|
|
15236
15379
|
]))).output(createBlockchainMutationResponse(TokenRevokeRoleOutputSchema));
|
|
15237
15380
|
var claimIssue2 = v2Contract.route({
|
|
15238
15381
|
method: "POST",
|
|
@@ -15277,7 +15420,7 @@ var setAumFeeRecipient = v2Contract.route({
|
|
|
15277
15420
|
tags: ["v2-token"]
|
|
15278
15421
|
}).input(v2Input.paramsBody(TokenReadInputSchema, TokenSetAumFeeRecipientInputSchema.omit({ tokenAddress: true }))).output(mutationOutput);
|
|
15279
15422
|
var tokenV2MutationsContract = {
|
|
15280
|
-
create:
|
|
15423
|
+
create: create20,
|
|
15281
15424
|
mint,
|
|
15282
15425
|
burn,
|
|
15283
15426
|
transfer,
|
|
@@ -15310,13 +15453,13 @@ var tokenV2MutationsContract = {
|
|
|
15310
15453
|
};
|
|
15311
15454
|
|
|
15312
15455
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
15313
|
-
import { z as
|
|
15456
|
+
import { z as z355 } from "zod";
|
|
15314
15457
|
|
|
15315
15458
|
// ../../packages/dalp/dapi/contract/src/routes/token/routes/token.features.schema.ts
|
|
15316
|
-
import { z as
|
|
15459
|
+
import { z as z353 } from "zod";
|
|
15317
15460
|
var TokenFeaturesInputSchema = TokenReadInputSchema;
|
|
15318
|
-
var TokenFeatureAUMFeeSchema =
|
|
15319
|
-
feeBps:
|
|
15461
|
+
var TokenFeatureAUMFeeSchema = z353.object({
|
|
15462
|
+
feeBps: z353.number().int().meta({
|
|
15320
15463
|
description: "Fee rate in basis points (e.g. 200 = 2%)",
|
|
15321
15464
|
examples: [200]
|
|
15322
15465
|
}),
|
|
@@ -15324,7 +15467,7 @@ var TokenFeatureAUMFeeSchema = z346.object({
|
|
|
15324
15467
|
description: "Address receiving the collected AUM fee",
|
|
15325
15468
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15326
15469
|
}),
|
|
15327
|
-
isFrozen:
|
|
15470
|
+
isFrozen: z353.boolean().meta({
|
|
15328
15471
|
description: "Whether fee collection is frozen",
|
|
15329
15472
|
examples: [false]
|
|
15330
15473
|
}),
|
|
@@ -15332,7 +15475,7 @@ var TokenFeatureAUMFeeSchema = z346.object({
|
|
|
15332
15475
|
description: "Unix timestamp of the last fee collection",
|
|
15333
15476
|
examples: ["1700000000"]
|
|
15334
15477
|
}),
|
|
15335
|
-
totalCollected:
|
|
15478
|
+
totalCollected: z353.string().meta({
|
|
15336
15479
|
description: "Total fees collected (human-readable decimal)",
|
|
15337
15480
|
examples: ["1000.50"]
|
|
15338
15481
|
}),
|
|
@@ -15341,12 +15484,12 @@ var TokenFeatureAUMFeeSchema = z346.object({
|
|
|
15341
15484
|
examples: ["1000500000000000000000"]
|
|
15342
15485
|
})
|
|
15343
15486
|
}).nullable();
|
|
15344
|
-
var TokenFeatureMaturityRedemptionSchema =
|
|
15487
|
+
var TokenFeatureMaturityRedemptionSchema = z353.object({
|
|
15345
15488
|
maturityDate: apiBigInt.meta({
|
|
15346
15489
|
description: "Unix timestamp of the maturity date",
|
|
15347
15490
|
examples: ["1735689600"]
|
|
15348
15491
|
}),
|
|
15349
|
-
faceValue:
|
|
15492
|
+
faceValue: z353.string().meta({
|
|
15350
15493
|
description: "Face value of the bond (human-readable decimal)",
|
|
15351
15494
|
examples: ["1000.00"]
|
|
15352
15495
|
}),
|
|
@@ -15362,7 +15505,7 @@ var TokenFeatureMaturityRedemptionSchema = z346.object({
|
|
|
15362
15505
|
description: "Treasury address holding denomination assets for redemption",
|
|
15363
15506
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15364
15507
|
}),
|
|
15365
|
-
isMatured:
|
|
15508
|
+
isMatured: z353.boolean().meta({
|
|
15366
15509
|
description: "Whether the bond has reached maturity",
|
|
15367
15510
|
examples: [false]
|
|
15368
15511
|
}),
|
|
@@ -15370,7 +15513,7 @@ var TokenFeatureMaturityRedemptionSchema = z346.object({
|
|
|
15370
15513
|
description: "Unix timestamp when the bond matured, null if not yet matured",
|
|
15371
15514
|
examples: ["1735689600", null]
|
|
15372
15515
|
}),
|
|
15373
|
-
totalRedeemed:
|
|
15516
|
+
totalRedeemed: z353.string().meta({
|
|
15374
15517
|
description: "Total amount redeemed (human-readable decimal)",
|
|
15375
15518
|
examples: ["500.00"]
|
|
15376
15519
|
}),
|
|
@@ -15379,16 +15522,16 @@ var TokenFeatureMaturityRedemptionSchema = z346.object({
|
|
|
15379
15522
|
examples: ["500000000000000000000"]
|
|
15380
15523
|
})
|
|
15381
15524
|
}).nullable();
|
|
15382
|
-
var TokenFeatureTransactionFeeSchema =
|
|
15383
|
-
mintFeeBps:
|
|
15525
|
+
var TokenFeatureTransactionFeeSchema = z353.object({
|
|
15526
|
+
mintFeeBps: z353.number().int().meta({
|
|
15384
15527
|
description: "Mint fee rate in basis points",
|
|
15385
15528
|
examples: [100]
|
|
15386
15529
|
}),
|
|
15387
|
-
burnFeeBps:
|
|
15530
|
+
burnFeeBps: z353.number().int().meta({
|
|
15388
15531
|
description: "Burn fee rate in basis points",
|
|
15389
15532
|
examples: [50]
|
|
15390
15533
|
}),
|
|
15391
|
-
transferFeeBps:
|
|
15534
|
+
transferFeeBps: z353.number().int().meta({
|
|
15392
15535
|
description: "Transfer fee rate in basis points",
|
|
15393
15536
|
examples: [25]
|
|
15394
15537
|
}),
|
|
@@ -15396,11 +15539,11 @@ var TokenFeatureTransactionFeeSchema = z346.object({
|
|
|
15396
15539
|
description: "Address receiving the collected transaction fees",
|
|
15397
15540
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15398
15541
|
}),
|
|
15399
|
-
isFrozen:
|
|
15542
|
+
isFrozen: z353.boolean().meta({
|
|
15400
15543
|
description: "Whether fee collection is frozen",
|
|
15401
15544
|
examples: [false]
|
|
15402
15545
|
}),
|
|
15403
|
-
totalFeesCollected:
|
|
15546
|
+
totalFeesCollected: z353.string().meta({
|
|
15404
15547
|
description: "Total transaction fees collected (human-readable decimal)",
|
|
15405
15548
|
examples: ["250.75"]
|
|
15406
15549
|
}),
|
|
@@ -15409,12 +15552,12 @@ var TokenFeatureTransactionFeeSchema = z346.object({
|
|
|
15409
15552
|
examples: ["250750000000000000000"]
|
|
15410
15553
|
})
|
|
15411
15554
|
}).nullable();
|
|
15412
|
-
var TokenFeatureHistoricalBalancesSchema =
|
|
15555
|
+
var TokenFeatureHistoricalBalancesSchema = z353.object({
|
|
15413
15556
|
enabledAt: apiBigInt.meta({
|
|
15414
15557
|
description: "Unix timestamp when historical balance tracking was enabled",
|
|
15415
15558
|
examples: ["1700000000"]
|
|
15416
15559
|
}),
|
|
15417
|
-
initialTotalSupply:
|
|
15560
|
+
initialTotalSupply: z353.string().meta({
|
|
15418
15561
|
description: "Total supply at the time historical tracking was enabled (human-readable decimal)",
|
|
15419
15562
|
examples: ["1000000.00"]
|
|
15420
15563
|
}),
|
|
@@ -15423,7 +15566,7 @@ var TokenFeatureHistoricalBalancesSchema = z346.object({
|
|
|
15423
15566
|
examples: ["1000000000000000000000000"]
|
|
15424
15567
|
})
|
|
15425
15568
|
}).nullable();
|
|
15426
|
-
var TokenFeatureFixedTreasuryYieldSchema =
|
|
15569
|
+
var TokenFeatureFixedTreasuryYieldSchema = z353.object({
|
|
15427
15570
|
startDate: apiBigInt.meta({
|
|
15428
15571
|
description: "Unix timestamp of the yield schedule start",
|
|
15429
15572
|
examples: ["1700000000"]
|
|
@@ -15432,7 +15575,7 @@ var TokenFeatureFixedTreasuryYieldSchema = z346.object({
|
|
|
15432
15575
|
description: "Unix timestamp of the yield schedule end",
|
|
15433
15576
|
examples: ["1735689600"]
|
|
15434
15577
|
}),
|
|
15435
|
-
rate:
|
|
15578
|
+
rate: z353.number().finite().meta({
|
|
15436
15579
|
description: "Yield rate (annual percentage as a decimal, e.g. 5.5 = 5.5%)",
|
|
15437
15580
|
examples: [5.5]
|
|
15438
15581
|
}),
|
|
@@ -15448,7 +15591,7 @@ var TokenFeatureFixedTreasuryYieldSchema = z346.object({
|
|
|
15448
15591
|
description: "Treasury address funding the yield payouts",
|
|
15449
15592
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15450
15593
|
}),
|
|
15451
|
-
totalClaimed:
|
|
15594
|
+
totalClaimed: z353.string().meta({
|
|
15452
15595
|
description: "Total yield claimed (human-readable decimal)",
|
|
15453
15596
|
examples: ["5000.00"]
|
|
15454
15597
|
}),
|
|
@@ -15457,18 +15600,18 @@ var TokenFeatureFixedTreasuryYieldSchema = z346.object({
|
|
|
15457
15600
|
examples: ["5000000000000000000000"]
|
|
15458
15601
|
})
|
|
15459
15602
|
}).nullable();
|
|
15460
|
-
var TokenFeatureVotingPowerSchema =
|
|
15603
|
+
var TokenFeatureVotingPowerSchema = z353.object({
|
|
15461
15604
|
enabledAt: apiBigInt.meta({
|
|
15462
15605
|
description: "Unix timestamp when voting power was enabled",
|
|
15463
15606
|
examples: ["1700000000"]
|
|
15464
15607
|
})
|
|
15465
15608
|
}).nullable();
|
|
15466
|
-
var TokenFeatureExternalTransactionFeeSchema =
|
|
15609
|
+
var TokenFeatureExternalTransactionFeeSchema = z353.object({
|
|
15467
15610
|
feeToken: ethereumAddress.meta({
|
|
15468
15611
|
description: "Address of the token used to pay fees",
|
|
15469
15612
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15470
15613
|
}),
|
|
15471
|
-
mintFee:
|
|
15614
|
+
mintFee: z353.string().meta({
|
|
15472
15615
|
description: "Mint fee amount (human-readable decimal)",
|
|
15473
15616
|
examples: ["1.00"]
|
|
15474
15617
|
}),
|
|
@@ -15476,7 +15619,7 @@ var TokenFeatureExternalTransactionFeeSchema = z346.object({
|
|
|
15476
15619
|
description: "Mint fee amount (raw BigInt)",
|
|
15477
15620
|
examples: ["1000000000000000000"]
|
|
15478
15621
|
}),
|
|
15479
|
-
burnFee:
|
|
15622
|
+
burnFee: z353.string().meta({
|
|
15480
15623
|
description: "Burn fee amount (human-readable decimal)",
|
|
15481
15624
|
examples: ["0.50"]
|
|
15482
15625
|
}),
|
|
@@ -15484,7 +15627,7 @@ var TokenFeatureExternalTransactionFeeSchema = z346.object({
|
|
|
15484
15627
|
description: "Burn fee amount (raw BigInt)",
|
|
15485
15628
|
examples: ["500000000000000000"]
|
|
15486
15629
|
}),
|
|
15487
|
-
transferFee:
|
|
15630
|
+
transferFee: z353.string().meta({
|
|
15488
15631
|
description: "Transfer fee amount (human-readable decimal)",
|
|
15489
15632
|
examples: ["0.25"]
|
|
15490
15633
|
}),
|
|
@@ -15496,11 +15639,11 @@ var TokenFeatureExternalTransactionFeeSchema = z346.object({
|
|
|
15496
15639
|
description: "Address receiving the collected external fees",
|
|
15497
15640
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15498
15641
|
}),
|
|
15499
|
-
isFrozen:
|
|
15642
|
+
isFrozen: z353.boolean().meta({
|
|
15500
15643
|
description: "Whether fee collection is frozen",
|
|
15501
15644
|
examples: [false]
|
|
15502
15645
|
}),
|
|
15503
|
-
totalFeesCollected:
|
|
15646
|
+
totalFeesCollected: z353.string().meta({
|
|
15504
15647
|
description: "Total external fees collected (human-readable decimal)",
|
|
15505
15648
|
examples: ["100.00"]
|
|
15506
15649
|
}),
|
|
@@ -15509,16 +15652,16 @@ var TokenFeatureExternalTransactionFeeSchema = z346.object({
|
|
|
15509
15652
|
examples: ["100000000000000000000"]
|
|
15510
15653
|
})
|
|
15511
15654
|
}).nullable();
|
|
15512
|
-
var TokenFeatureTransactionFeeAccountingSchema =
|
|
15513
|
-
mintFeeBps:
|
|
15655
|
+
var TokenFeatureTransactionFeeAccountingSchema = z353.object({
|
|
15656
|
+
mintFeeBps: z353.number().int().meta({
|
|
15514
15657
|
description: "Mint fee rate in basis points (accounting mode)",
|
|
15515
15658
|
examples: [100]
|
|
15516
15659
|
}),
|
|
15517
|
-
burnFeeBps:
|
|
15660
|
+
burnFeeBps: z353.number().int().meta({
|
|
15518
15661
|
description: "Burn fee rate in basis points (accounting mode)",
|
|
15519
15662
|
examples: [50]
|
|
15520
15663
|
}),
|
|
15521
|
-
transferFeeBps:
|
|
15664
|
+
transferFeeBps: z353.number().int().meta({
|
|
15522
15665
|
description: "Transfer fee rate in basis points (accounting mode)",
|
|
15523
15666
|
examples: [25]
|
|
15524
15667
|
}),
|
|
@@ -15526,11 +15669,11 @@ var TokenFeatureTransactionFeeAccountingSchema = z346.object({
|
|
|
15526
15669
|
description: "Address receiving accrued fees upon reconciliation",
|
|
15527
15670
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15528
15671
|
}),
|
|
15529
|
-
isFrozen:
|
|
15672
|
+
isFrozen: z353.boolean().meta({
|
|
15530
15673
|
description: "Whether fee accrual is frozen",
|
|
15531
15674
|
examples: [false]
|
|
15532
15675
|
}),
|
|
15533
|
-
totalAccruedFees:
|
|
15676
|
+
totalAccruedFees: z353.string().meta({
|
|
15534
15677
|
description: "Total accrued fees pending reconciliation (human-readable decimal)",
|
|
15535
15678
|
examples: ["150.00"]
|
|
15536
15679
|
}),
|
|
@@ -15538,7 +15681,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z346.object({
|
|
|
15538
15681
|
description: "Total accrued fees pending reconciliation (raw BigInt)",
|
|
15539
15682
|
examples: ["150000000000000000000"]
|
|
15540
15683
|
}),
|
|
15541
|
-
totalReconciledFees:
|
|
15684
|
+
totalReconciledFees: z353.string().meta({
|
|
15542
15685
|
description: "Total fees already reconciled (human-readable decimal)",
|
|
15543
15686
|
examples: ["100.00"]
|
|
15544
15687
|
}),
|
|
@@ -15547,7 +15690,7 @@ var TokenFeatureTransactionFeeAccountingSchema = z346.object({
|
|
|
15547
15690
|
examples: ["100000000000000000000"]
|
|
15548
15691
|
})
|
|
15549
15692
|
}).nullable();
|
|
15550
|
-
var TokenFeatureConversionSchema =
|
|
15693
|
+
var TokenFeatureConversionSchema = z353.object({
|
|
15551
15694
|
targetToken: ethereumAddress.meta({
|
|
15552
15695
|
description: "Address of the token that holders can convert to",
|
|
15553
15696
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
@@ -15560,25 +15703,25 @@ var TokenFeatureConversionSchema = z346.object({
|
|
|
15560
15703
|
description: "Address of the denomination asset for conversion pricing",
|
|
15561
15704
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15562
15705
|
}),
|
|
15563
|
-
discountBps:
|
|
15706
|
+
discountBps: z353.number().int().meta({
|
|
15564
15707
|
description: "Conversion discount rate in basis points",
|
|
15565
15708
|
examples: [500]
|
|
15566
15709
|
}),
|
|
15567
|
-
partialAllowed:
|
|
15710
|
+
partialAllowed: z353.boolean().meta({
|
|
15568
15711
|
description: "Whether partial conversions are allowed",
|
|
15569
15712
|
examples: [true]
|
|
15570
15713
|
})
|
|
15571
15714
|
}).nullable();
|
|
15572
|
-
var TokenFeatureConversionMinterSchema =
|
|
15573
|
-
authorizedConverters:
|
|
15715
|
+
var TokenFeatureConversionMinterSchema = z353.object({
|
|
15716
|
+
authorizedConverters: z353.array(ethereumAddress).meta({
|
|
15574
15717
|
description: "Addresses authorized to perform conversions",
|
|
15575
15718
|
examples: [["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]]
|
|
15576
15719
|
}),
|
|
15577
|
-
totalIssuances:
|
|
15720
|
+
totalIssuances: z353.number().int().meta({
|
|
15578
15721
|
description: "Total number of conversion issuances performed",
|
|
15579
15722
|
examples: [42]
|
|
15580
15723
|
}),
|
|
15581
|
-
totalAmountMinted:
|
|
15724
|
+
totalAmountMinted: z353.string().meta({
|
|
15582
15725
|
description: "Total amount minted through conversions (human-readable decimal)",
|
|
15583
15726
|
examples: ["50000.00"]
|
|
15584
15727
|
}),
|
|
@@ -15587,26 +15730,26 @@ var TokenFeatureConversionMinterSchema = z346.object({
|
|
|
15587
15730
|
examples: ["50000000000000000000000"]
|
|
15588
15731
|
})
|
|
15589
15732
|
}).nullable();
|
|
15590
|
-
var TokenFeatureSchema =
|
|
15733
|
+
var TokenFeatureSchema = z353.object({
|
|
15591
15734
|
featureAddress: ethereumAddress.meta({
|
|
15592
15735
|
description: "Address of the feature contract",
|
|
15593
15736
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15594
15737
|
}),
|
|
15595
|
-
typeId:
|
|
15738
|
+
typeId: z353.string().meta({
|
|
15596
15739
|
description: "Feature type identifier",
|
|
15597
15740
|
examples: ["aum-fee", "maturity-redemption", "transaction-fee"]
|
|
15598
15741
|
}),
|
|
15599
|
-
featureFactory:
|
|
15600
|
-
typeId:
|
|
15742
|
+
featureFactory: z353.object({
|
|
15743
|
+
typeId: z353.string().meta({
|
|
15601
15744
|
description: "Feature factory type identifier",
|
|
15602
15745
|
examples: ["aum-fee", "maturity-redemption"]
|
|
15603
15746
|
}),
|
|
15604
|
-
name:
|
|
15747
|
+
name: z353.string().meta({
|
|
15605
15748
|
description: "Human-readable name of the feature factory",
|
|
15606
15749
|
examples: ["AUM Fee Feature Factory"]
|
|
15607
15750
|
})
|
|
15608
15751
|
}),
|
|
15609
|
-
isAttached:
|
|
15752
|
+
isAttached: z353.boolean().meta({
|
|
15610
15753
|
description: "Whether the feature is currently attached to the token",
|
|
15611
15754
|
examples: [true]
|
|
15612
15755
|
}),
|
|
@@ -15659,13 +15802,13 @@ var TokenFeatureSchema = z346.object({
|
|
|
15659
15802
|
examples: [null]
|
|
15660
15803
|
})
|
|
15661
15804
|
});
|
|
15662
|
-
var TokenFeaturesResponseSchema =
|
|
15663
|
-
configurable:
|
|
15664
|
-
features:
|
|
15805
|
+
var TokenFeaturesResponseSchema = z353.object({
|
|
15806
|
+
configurable: z353.object({
|
|
15807
|
+
features: z353.array(TokenFeatureSchema).meta({
|
|
15665
15808
|
description: "List of feature configurations for the token",
|
|
15666
15809
|
examples: [[]]
|
|
15667
15810
|
}),
|
|
15668
|
-
featuresCount:
|
|
15811
|
+
featuresCount: z353.number().int().meta({
|
|
15669
15812
|
description: "Total number of features attached to the token",
|
|
15670
15813
|
examples: [3]
|
|
15671
15814
|
})
|
|
@@ -15676,22 +15819,22 @@ var TokenFeaturesResponseSchema = z346.object({
|
|
|
15676
15819
|
});
|
|
15677
15820
|
|
|
15678
15821
|
// ../../packages/dalp/dapi/contract/src/routes/token/routes/token.metadata.schema.ts
|
|
15679
|
-
import { z as
|
|
15822
|
+
import { z as z354 } from "zod";
|
|
15680
15823
|
var TokenMetadataInputSchema = TokenReadInputSchema;
|
|
15681
|
-
var TokenMetadataEntrySchema =
|
|
15682
|
-
key:
|
|
15824
|
+
var TokenMetadataEntrySchema = z354.object({
|
|
15825
|
+
key: z354.string().meta({
|
|
15683
15826
|
description: "Keccak256-encoded metadata key (hex string)",
|
|
15684
15827
|
examples: ["0xabc123"]
|
|
15685
15828
|
}),
|
|
15686
|
-
keyString:
|
|
15829
|
+
keyString: z354.string().nullable().meta({
|
|
15687
15830
|
description: "Human-readable string for the key, null if not decodable",
|
|
15688
15831
|
examples: ["issuerName", null]
|
|
15689
15832
|
}),
|
|
15690
|
-
value:
|
|
15833
|
+
value: z354.string().meta({
|
|
15691
15834
|
description: "Raw on-chain value (bytes32 hex string)",
|
|
15692
15835
|
examples: ["0x000000"]
|
|
15693
15836
|
}),
|
|
15694
|
-
valueString:
|
|
15837
|
+
valueString: z354.string().nullable().meta({
|
|
15695
15838
|
description: "Decoded string representation of the value, null if not decodable",
|
|
15696
15839
|
examples: ["Acme Corp", null]
|
|
15697
15840
|
}),
|
|
@@ -15699,7 +15842,7 @@ var TokenMetadataEntrySchema = z347.object({
|
|
|
15699
15842
|
description: "Numeric representation of the value, null if not numeric",
|
|
15700
15843
|
examples: ["1000", null]
|
|
15701
15844
|
}),
|
|
15702
|
-
isImmutable:
|
|
15845
|
+
isImmutable: z354.boolean().meta({
|
|
15703
15846
|
description: "Whether this metadata entry is immutable (cannot be changed after being set)",
|
|
15704
15847
|
examples: [false]
|
|
15705
15848
|
}),
|
|
@@ -15708,26 +15851,26 @@ var TokenMetadataEntrySchema = z347.object({
|
|
|
15708
15851
|
examples: ["1700000000"]
|
|
15709
15852
|
})
|
|
15710
15853
|
});
|
|
15711
|
-
var TokenMetadataResponseSchema =
|
|
15712
|
-
metadata_:
|
|
15713
|
-
entryCount:
|
|
15854
|
+
var TokenMetadataResponseSchema = z354.object({
|
|
15855
|
+
metadata_: z354.object({
|
|
15856
|
+
entryCount: z354.number().int().meta({
|
|
15714
15857
|
description: "Total number of metadata entries",
|
|
15715
15858
|
examples: [5]
|
|
15716
15859
|
}),
|
|
15717
|
-
entries:
|
|
15860
|
+
entries: z354.array(TokenMetadataEntrySchema).meta({
|
|
15718
15861
|
description: "List of metadata entries for the token"
|
|
15719
15862
|
})
|
|
15720
15863
|
}).nullable()
|
|
15721
15864
|
});
|
|
15722
15865
|
|
|
15723
15866
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.reads.contract.ts
|
|
15724
|
-
var TokenActionsInputSchema2 =
|
|
15867
|
+
var TokenActionsInputSchema2 = z355.object({
|
|
15725
15868
|
tokenAddress: ethereumAddress.meta({
|
|
15726
15869
|
description: "The token contract address to filter actions by",
|
|
15727
15870
|
examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
|
|
15728
15871
|
})
|
|
15729
15872
|
}).extend(ActionsListInputSchema.shape);
|
|
15730
|
-
var
|
|
15873
|
+
var read26 = v2Contract.route({
|
|
15731
15874
|
method: "GET",
|
|
15732
15875
|
path: "/token/{tokenAddress}",
|
|
15733
15876
|
description: "Get a token by address.",
|
|
@@ -15747,14 +15890,14 @@ var allowance = v2Contract.route({
|
|
|
15747
15890
|
description: "Get token allowance for a specific owner/spender pair.",
|
|
15748
15891
|
successDescription: "Token allowance details retrieved successfully.",
|
|
15749
15892
|
tags: ["v2-token"]
|
|
15750
|
-
}).input(v2Input.paramsQuery(
|
|
15893
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenAllowanceInputSchema.shape.tokenAddress }), z355.object(TokenAllowanceInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenAllowanceResponseSchema));
|
|
15751
15894
|
var holder = v2Contract.route({
|
|
15752
15895
|
method: "GET",
|
|
15753
15896
|
path: "/token/{tokenAddress}/holder",
|
|
15754
15897
|
description: "Get a specific token holder's balance information.",
|
|
15755
15898
|
successDescription: "Token holder balance details retrieved successfully.",
|
|
15756
15899
|
tags: ["v2-token"]
|
|
15757
|
-
}).input(v2Input.paramsQuery(
|
|
15900
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenHolderInputSchema.shape.tokenAddress }), z355.object(TokenHolderInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(TokenHolderResponseSchema));
|
|
15758
15901
|
var holders = v2Contract.route({
|
|
15759
15902
|
method: "GET",
|
|
15760
15903
|
path: "/token/{tokenAddress}/holders",
|
|
@@ -15768,14 +15911,14 @@ var actions = v2Contract.route({
|
|
|
15768
15911
|
description: "Get actions for a specific token.",
|
|
15769
15912
|
successDescription: "List of actions targeting the specified token.",
|
|
15770
15913
|
tags: ["v2-token"]
|
|
15771
|
-
}).input(v2Input.paramsQuery(
|
|
15914
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenActionsInputSchema2.shape.tokenAddress }), z355.object(TokenActionsInputSchema2.shape).omit({ tokenAddress: true }))).output(createSingleResponse(ActionsListResponseSchema));
|
|
15772
15915
|
var events2 = v2Contract.route({
|
|
15773
15916
|
method: "GET",
|
|
15774
15917
|
path: "/token/{tokenAddress}/events",
|
|
15775
15918
|
description: "Get token events history.",
|
|
15776
15919
|
successDescription: "List of token events with details.",
|
|
15777
15920
|
tags: ["v2-token"]
|
|
15778
|
-
}).input(v2Input.paramsQuery(
|
|
15921
|
+
}).input(v2Input.paramsQuery(z355.object({ tokenAddress: TokenEventsInputSchema.shape.tokenAddress }), z355.object(TokenEventsInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(EventsResponseSchema));
|
|
15779
15922
|
var denominationAssets = v2Contract.route({
|
|
15780
15923
|
method: "GET",
|
|
15781
15924
|
path: "/token/{tokenAddress}/denomination-assets",
|
|
@@ -15805,7 +15948,7 @@ var tokenMetadata = v2Contract.route({
|
|
|
15805
15948
|
tags: ["v2-token"]
|
|
15806
15949
|
}).input(v2Input.params(TokenMetadataInputSchema)).output(createSingleResponse(TokenMetadataResponseSchema));
|
|
15807
15950
|
var tokenV2ReadsContract = {
|
|
15808
|
-
read:
|
|
15951
|
+
read: read26,
|
|
15809
15952
|
search: search6,
|
|
15810
15953
|
allowance,
|
|
15811
15954
|
holder,
|
|
@@ -15819,7 +15962,7 @@ var tokenV2ReadsContract = {
|
|
|
15819
15962
|
};
|
|
15820
15963
|
|
|
15821
15964
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.stats.contract.ts
|
|
15822
|
-
import { z as
|
|
15965
|
+
import { z as z356 } from "zod";
|
|
15823
15966
|
var statsBondStatus = v2Contract.route({
|
|
15824
15967
|
method: "GET",
|
|
15825
15968
|
path: "/token/{tokenAddress}/stats/bond-status",
|
|
@@ -15840,21 +15983,21 @@ var statsTotalSupply = v2Contract.route({
|
|
|
15840
15983
|
description: "Get total supply history statistics for a specific token.",
|
|
15841
15984
|
successDescription: "Token total supply history statistics.",
|
|
15842
15985
|
tags: ["v2-token-stats"]
|
|
15843
|
-
}).input(v2Input.paramsQuery(
|
|
15986
|
+
}).input(v2Input.paramsQuery(z356.object({ tokenAddress: StatsTotalSupplyInputSchema.shape.tokenAddress }), z356.object(StatsTotalSupplyInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsTotalSupplyOutputSchema));
|
|
15844
15987
|
var statsSupplyChanges = v2Contract.route({
|
|
15845
15988
|
method: "GET",
|
|
15846
15989
|
path: "/token/{tokenAddress}/stats/supply-changes",
|
|
15847
15990
|
description: "Get supply changes history (minted/burned) statistics for a specific token.",
|
|
15848
15991
|
successDescription: "Token supply changes history statistics.",
|
|
15849
15992
|
tags: ["v2-token-stats"]
|
|
15850
|
-
}).input(v2Input.paramsQuery(
|
|
15993
|
+
}).input(v2Input.paramsQuery(z356.object({ tokenAddress: StatsSupplyChangesInputSchema.shape.tokenAddress }), z356.object(StatsSupplyChangesInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsSupplyChangesOutputSchema));
|
|
15851
15994
|
var statsVolume = v2Contract.route({
|
|
15852
15995
|
method: "GET",
|
|
15853
15996
|
path: "/token/{tokenAddress}/stats/volume",
|
|
15854
15997
|
description: "Get total volume history statistics for a specific token.",
|
|
15855
15998
|
successDescription: "Token total volume history statistics.",
|
|
15856
15999
|
tags: ["v2-token-stats"]
|
|
15857
|
-
}).input(v2Input.paramsQuery(
|
|
16000
|
+
}).input(v2Input.paramsQuery(z356.object({ tokenAddress: StatsVolumeInputSchema.shape.tokenAddress }), z356.object(StatsVolumeInputSchema.shape).omit({ tokenAddress: true }))).output(createSingleResponse(StatsVolumeOutputSchema));
|
|
15858
16001
|
var statsWalletDistribution = v2Contract.route({
|
|
15859
16002
|
method: "GET",
|
|
15860
16003
|
path: "/token/{tokenAddress}/stats/wallet-distribution",
|
|
@@ -15888,7 +16031,7 @@ var tokenV2StatsContract = {
|
|
|
15888
16031
|
};
|
|
15889
16032
|
|
|
15890
16033
|
// ../../packages/dalp/dapi/contract/src/routes/v2/token/token.v2.contract.ts
|
|
15891
|
-
var
|
|
16034
|
+
var list34 = v2Contract.route({
|
|
15892
16035
|
method: "GET",
|
|
15893
16036
|
path: "/token",
|
|
15894
16037
|
description: "List deployed tokens visible to the authenticated user, optionally filtered by tokenFactory address. Sortable by name, symbol, decimals, createdAt.",
|
|
@@ -15896,7 +16039,7 @@ var list33 = v2Contract.route({
|
|
|
15896
16039
|
tags: ["v2-token"]
|
|
15897
16040
|
}).input(v2Input.query(TokenV2ListInputSchema)).output(TokenV2ListOutputSchema);
|
|
15898
16041
|
var tokenV2Contract = {
|
|
15899
|
-
list:
|
|
16042
|
+
list: list34,
|
|
15900
16043
|
...tokenV2ReadsContract,
|
|
15901
16044
|
...tokenV2MutationsContract,
|
|
15902
16045
|
...tokenV2StatsContract,
|
|
@@ -15908,7 +16051,7 @@ var TransactionV2ReadInputSchema = TransactionReadInputSchema;
|
|
|
15908
16051
|
var TransactionV2ReadOutputSchema = createSingleResponse(TransactionReadOutputSchema);
|
|
15909
16052
|
|
|
15910
16053
|
// ../../packages/dalp/dapi/contract/src/routes/v2/transaction/transaction.v2.contract.ts
|
|
15911
|
-
var
|
|
16054
|
+
var read27 = v2Contract.route({
|
|
15912
16055
|
method: "GET",
|
|
15913
16056
|
path: "/transaction/{transactionHash}",
|
|
15914
16057
|
description: "Get transaction details by hash including receipt data. Receipt is null for pending transactions.",
|
|
@@ -15916,34 +16059,34 @@ var read26 = v2Contract.route({
|
|
|
15916
16059
|
tags: ["v2-transaction"]
|
|
15917
16060
|
}).input(v2Input.params(TransactionV2ReadInputSchema)).output(TransactionV2ReadOutputSchema);
|
|
15918
16061
|
var transactionV2Contract = {
|
|
15919
|
-
read:
|
|
16062
|
+
read: read27
|
|
15920
16063
|
};
|
|
15921
16064
|
|
|
15922
16065
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.contract.ts
|
|
15923
|
-
import { z as
|
|
16066
|
+
import { z as z361 } from "zod";
|
|
15924
16067
|
|
|
15925
16068
|
// ../../packages/dalp/dapi/contract/src/routes/user/routes/user.read-by-national-id.schema.ts
|
|
15926
|
-
import { z as
|
|
15927
|
-
var UserReadByNationalIdInputSchema =
|
|
15928
|
-
nationalId:
|
|
16069
|
+
import { z as z357 } from "zod";
|
|
16070
|
+
var UserReadByNationalIdInputSchema = z357.object({
|
|
16071
|
+
nationalId: z357.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
15929
16072
|
});
|
|
15930
16073
|
|
|
15931
16074
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.events.schema.ts
|
|
15932
|
-
import { z as
|
|
16075
|
+
import { z as z358 } from "zod";
|
|
15933
16076
|
var UserEventsV2InputSchema = DataTableInputSchema.extend({
|
|
15934
|
-
sortBy:
|
|
16077
|
+
sortBy: z358.enum(["blockTimestamp", "eventName", "blockNumber"]).default("blockTimestamp").meta({ description: "Column to sort events by" })
|
|
15935
16078
|
});
|
|
15936
16079
|
var UserEventsV2OutputSchema = createPaginatedResponse(UserEventSchema);
|
|
15937
16080
|
|
|
15938
16081
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.list.schema.ts
|
|
15939
|
-
import { z as
|
|
16082
|
+
import { z as z359 } from "zod";
|
|
15940
16083
|
var UserV2ListInputSchema = DataTableInputSchema.extend({
|
|
15941
|
-
sortBy:
|
|
16084
|
+
sortBy: z359.enum(["createdAt", "name", "email", "wallet"]).default("createdAt").meta({ description: "Column to sort users by" })
|
|
15942
16085
|
});
|
|
15943
16086
|
var UserV2ListOutputSchema = createPaginatedResponse(UserListItemSchema);
|
|
15944
16087
|
|
|
15945
16088
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/kyc/kyc.v2.contract.ts
|
|
15946
|
-
import { z as
|
|
16089
|
+
import { z as z360 } from "zod";
|
|
15947
16090
|
var profileRead = v2Contract.route({
|
|
15948
16091
|
method: "GET",
|
|
15949
16092
|
path: "/kyc-profiles/{userId}",
|
|
@@ -15957,14 +16100,14 @@ var versionsList = v2Contract.route({
|
|
|
15957
16100
|
description: "List all KYC profile versions for a user with pagination and optional status filter.",
|
|
15958
16101
|
successDescription: "KYC profile versions retrieved successfully.",
|
|
15959
16102
|
tags: ["v2-user-kyc"]
|
|
15960
|
-
}).input(v2Input.paramsQuery(
|
|
16103
|
+
}).input(v2Input.paramsQuery(z360.object({ userId: KycProfileVersionsListInputSchema.shape.userId }), KycProfileVersionsListInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsListOutputSchema));
|
|
15961
16104
|
var versionsCreate = v2Contract.route({
|
|
15962
16105
|
method: "POST",
|
|
15963
16106
|
path: "/kyc-profiles/{userId}/versions",
|
|
15964
16107
|
description: "Create a new draft KYC profile version, optionally cloning from an existing version.",
|
|
15965
16108
|
successDescription: "KYC profile version created successfully.",
|
|
15966
16109
|
tags: ["v2-user-kyc"]
|
|
15967
|
-
}).input(v2Input.paramsBody(
|
|
16110
|
+
}).input(v2Input.paramsBody(z360.object({ userId: KycProfileVersionsCreateInputSchema.shape.userId }), KycProfileVersionsCreateInputSchema.omit({ userId: true }))).output(createSingleResponse(KycProfileVersionsCreateOutputSchema));
|
|
15968
16111
|
var versionRead = v2Contract.route({
|
|
15969
16112
|
method: "GET",
|
|
15970
16113
|
path: "/kyc-profile-versions/{versionId}",
|
|
@@ -15978,7 +16121,7 @@ var versionUpdate = v2Contract.route({
|
|
|
15978
16121
|
description: "Update fields on a draft KYC profile version. Only draft versions can be edited.",
|
|
15979
16122
|
successDescription: "KYC profile version updated successfully.",
|
|
15980
16123
|
tags: ["v2-user-kyc"]
|
|
15981
|
-
}).input(v2Input.paramsBody(
|
|
16124
|
+
}).input(v2Input.paramsBody(z360.object({ versionId: KycProfileVersionUpdateInputSchema.shape.versionId }), KycProfileVersionUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionUpdateOutputSchema));
|
|
15982
16125
|
var versionSubmit = v2Contract.route({
|
|
15983
16126
|
method: "POST",
|
|
15984
16127
|
path: "/kyc-profile-versions/{versionId}/submit",
|
|
@@ -15992,21 +16135,21 @@ var versionApprove = v2Contract.route({
|
|
|
15992
16135
|
description: "Approve a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
15993
16136
|
successDescription: "KYC profile version approved.",
|
|
15994
16137
|
tags: ["v2-user-kyc"]
|
|
15995
|
-
}).input(v2Input.paramsBody(
|
|
16138
|
+
}).input(v2Input.paramsBody(z360.object({ versionId: KycProfileVersionApproveInputSchema.shape.versionId }), KycProfileVersionApproveInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionApproveOutputSchema));
|
|
15996
16139
|
var versionReject = v2Contract.route({
|
|
15997
16140
|
method: "POST",
|
|
15998
16141
|
path: "/kyc-profile-versions/{versionId}/reject",
|
|
15999
16142
|
description: "Reject a KYC profile version that is under review. Requires KYC_REVIEWER role.",
|
|
16000
16143
|
successDescription: "KYC profile version rejected.",
|
|
16001
16144
|
tags: ["v2-user-kyc"]
|
|
16002
|
-
}).input(v2Input.paramsBody(
|
|
16145
|
+
}).input(v2Input.paramsBody(z360.object({ versionId: KycProfileVersionRejectInputSchema.shape.versionId }), KycProfileVersionRejectInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRejectOutputSchema));
|
|
16003
16146
|
var versionRequestUpdate = v2Contract.route({
|
|
16004
16147
|
method: "POST",
|
|
16005
16148
|
path: "/kyc-profile-versions/{versionId}/request-update",
|
|
16006
16149
|
description: "Request changes on a KYC version under review. Creates an action request for the user.",
|
|
16007
16150
|
successDescription: "Update request created successfully.",
|
|
16008
16151
|
tags: ["v2-user-kyc"]
|
|
16009
|
-
}).input(v2Input.paramsBody(
|
|
16152
|
+
}).input(v2Input.paramsBody(z360.object({ versionId: KycProfileVersionRequestUpdateInputSchema.shape.versionId }), KycProfileVersionRequestUpdateInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionRequestUpdateOutputSchema));
|
|
16010
16153
|
var documentsList = v2Contract.route({
|
|
16011
16154
|
method: "GET",
|
|
16012
16155
|
path: "/kyc-profile-versions/{versionId}/documents",
|
|
@@ -16027,14 +16170,14 @@ var documentsGetUploadUrl = v2Contract.route({
|
|
|
16027
16170
|
description: "Generate a presigned URL for uploading a KYC document directly to storage.",
|
|
16028
16171
|
successDescription: "Upload URL generated successfully.",
|
|
16029
16172
|
tags: ["v2-user-kyc"]
|
|
16030
|
-
}).input(v2Input.paramsBody(
|
|
16173
|
+
}).input(v2Input.paramsBody(z360.object({ versionId: KycProfileVersionDocumentGetUploadUrlInputSchema.shape.versionId }), KycProfileVersionDocumentGetUploadUrlInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentGetUploadUrlOutputSchema));
|
|
16031
16174
|
var documentsConfirmUpload = v2Contract.route({
|
|
16032
16175
|
method: "POST",
|
|
16033
16176
|
path: "/kyc-profile-versions/{versionId}/documents/confirm",
|
|
16034
16177
|
description: "Confirm a document upload after successfully uploading to the presigned URL.",
|
|
16035
16178
|
successDescription: "Document upload confirmed.",
|
|
16036
16179
|
tags: ["v2-user-kyc"]
|
|
16037
|
-
}).input(v2Input.paramsBody(
|
|
16180
|
+
}).input(v2Input.paramsBody(z360.object({ versionId: KycProfileVersionDocumentConfirmUploadInputSchema.shape.versionId }), KycProfileVersionDocumentConfirmUploadInputSchema.omit({ versionId: true }))).output(createSingleResponse(KycProfileVersionDocumentConfirmUploadOutputSchema));
|
|
16038
16181
|
var documentsGetDownloadUrl = v2Contract.route({
|
|
16039
16182
|
method: "GET",
|
|
16040
16183
|
path: "/kyc-profile-versions/{versionId}/documents/{documentId}/download-url",
|
|
@@ -16071,7 +16214,7 @@ var kycV2Contract = {
|
|
|
16071
16214
|
};
|
|
16072
16215
|
|
|
16073
16216
|
// ../../packages/dalp/dapi/contract/src/routes/v2/user/user.v2.contract.ts
|
|
16074
|
-
var
|
|
16217
|
+
var list35 = v2Contract.route({
|
|
16075
16218
|
method: "GET",
|
|
16076
16219
|
path: "/user",
|
|
16077
16220
|
description: "List all users in the current organization. Sortable by createdAt, name, email, wallet.",
|
|
@@ -16092,7 +16235,7 @@ var me3 = v2Contract.route({
|
|
|
16092
16235
|
successDescription: "Authenticated user profile retrieved successfully.",
|
|
16093
16236
|
tags: ["v2-user"]
|
|
16094
16237
|
}).output(createSingleResponse(UserMeSchema));
|
|
16095
|
-
var
|
|
16238
|
+
var update11 = v2Contract.route({
|
|
16096
16239
|
method: "PATCH",
|
|
16097
16240
|
path: "/user/me",
|
|
16098
16241
|
description: "Update the authenticated user's profile fields.",
|
|
@@ -16119,14 +16262,14 @@ var readByUserId2 = v2Contract.route({
|
|
|
16119
16262
|
description: "Read a single user by their internal database ID.",
|
|
16120
16263
|
successDescription: "User retrieved successfully.",
|
|
16121
16264
|
tags: ["v2-user"]
|
|
16122
|
-
}).input(v2Input.params(
|
|
16265
|
+
}).input(v2Input.params(z361.object({ userId: z361.string() }))).output(createSingleResponse(UserReadOutputSchema));
|
|
16123
16266
|
var readByWallet3 = v2Contract.route({
|
|
16124
16267
|
method: "GET",
|
|
16125
16268
|
path: "/user/by-wallet/{wallet}",
|
|
16126
16269
|
description: "Read a single user by their Ethereum wallet address.",
|
|
16127
16270
|
successDescription: "User retrieved successfully.",
|
|
16128
16271
|
tags: ["v2-user"]
|
|
16129
|
-
}).input(v2Input.params(
|
|
16272
|
+
}).input(v2Input.params(z361.object({ wallet: ethereumAddress }))).output(createSingleResponse(UserReadOutputSchema));
|
|
16130
16273
|
var readByNationalId = v2Contract.route({
|
|
16131
16274
|
method: "GET",
|
|
16132
16275
|
path: "/user/by-national-id/{nationalId}",
|
|
@@ -16162,7 +16305,7 @@ var statsGrowthOverTime2 = v2Contract.route({
|
|
|
16162
16305
|
successDescription: "User growth statistics retrieved successfully.",
|
|
16163
16306
|
tags: ["v2-user"]
|
|
16164
16307
|
}).input(v2Input.query(UserStatsGrowthOverTimeInputSchema)).output(createSingleResponse(UserStatsGrowthOverTimeOutputSchema));
|
|
16165
|
-
var
|
|
16308
|
+
var create21 = v2Contract.route({
|
|
16166
16309
|
method: "POST",
|
|
16167
16310
|
path: "/user/create",
|
|
16168
16311
|
description: "Create a new user with wallet and on-chain identity. Requires admin privileges.",
|
|
@@ -16212,10 +16355,10 @@ var adminTriggerPasswordReset2 = v2Contract.route({
|
|
|
16212
16355
|
tags: ["v2-user-admin"]
|
|
16213
16356
|
}).input(v2Input.params(UserAdminInputSchema)).output(createSingleResponse(AdminMutationOutputSchema));
|
|
16214
16357
|
var userV2Contract = {
|
|
16215
|
-
list:
|
|
16358
|
+
list: list35,
|
|
16216
16359
|
events: events3,
|
|
16217
16360
|
me: me3,
|
|
16218
|
-
update:
|
|
16361
|
+
update: update11,
|
|
16219
16362
|
search: search7,
|
|
16220
16363
|
adminList: adminList2,
|
|
16221
16364
|
readByUserId: readByUserId2,
|
|
@@ -16225,7 +16368,7 @@ var userV2Contract = {
|
|
|
16225
16368
|
stats: stats4,
|
|
16226
16369
|
statsUserCount: statsUserCount2,
|
|
16227
16370
|
statsGrowthOverTime: statsGrowthOverTime2,
|
|
16228
|
-
create:
|
|
16371
|
+
create: create21,
|
|
16229
16372
|
createWallet,
|
|
16230
16373
|
adminGetSecurity: adminGetSecurity2,
|
|
16231
16374
|
adminRevokeSession: adminRevokeSession2,
|
|
@@ -16287,7 +16430,7 @@ var dalpSerializers = [
|
|
|
16287
16430
|
// package.json
|
|
16288
16431
|
var package_default = {
|
|
16289
16432
|
name: "@settlemint/dalp-sdk",
|
|
16290
|
-
version: "2.1.7-main.
|
|
16433
|
+
version: "2.1.7-main.22859747573",
|
|
16291
16434
|
private: false,
|
|
16292
16435
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
16293
16436
|
homepage: "https://settlemint.com",
|