@settlemint/dalp-sdk 2.1.7-main.23082494792 → 2.1.7-main.23086675210

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.
Files changed (2) hide show
  1. package/dist/index.js +41 -39
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4280,8 +4280,6 @@ import { z as z61 } from "zod";
4280
4280
  import { z as z60 } from "zod";
4281
4281
  var assetTypes = [
4282
4282
  "bond",
4283
- "convertible-loan",
4284
- "convertible-target-equity",
4285
4283
  "equity",
4286
4284
  "fund",
4287
4285
  "stablecoin",
@@ -4291,10 +4289,9 @@ var assetTypes = [
4291
4289
  "dalp-asset"
4292
4290
  ];
4293
4291
  var assetClasses = ["fixedIncome", "flexibleIncome", "cashEquivalent", "realWorldAsset"];
4292
+ var assetClassSlug = () => z60.string().min(1).meta({ description: "Asset class slug (system or custom)" });
4294
4293
  var AssetTypeEnum = {
4295
4294
  bond: "bond",
4296
- convertibleLoan: "convertible-loan",
4297
- convertibleTargetEquity: "convertible-target-equity",
4298
4295
  equity: "equity",
4299
4296
  fund: "fund",
4300
4297
  stablecoin: "stablecoin",
@@ -4305,8 +4302,6 @@ var AssetTypeEnum = {
4305
4302
  };
4306
4303
  var assetFactoryTypeIds = [
4307
4304
  "bond",
4308
- "convertible-loan",
4309
- "convertible-target-equity",
4310
4305
  "equity",
4311
4306
  "fund",
4312
4307
  "stablecoin",
@@ -4317,8 +4312,6 @@ var assetFactoryTypeIds = [
4317
4312
  ];
4318
4313
  var AssetFactoryTypeIdEnum = {
4319
4314
  bond: "bond",
4320
- convertibleLoan: "convertible-loan",
4321
- convertibleTargetEquity: "convertible-target-equity",
4322
4315
  equity: "equity",
4323
4316
  fund: "fund",
4324
4317
  stablecoin: "stablecoin",
@@ -4330,7 +4323,6 @@ var AssetFactoryTypeIdEnum = {
4330
4323
  var AssetTypeSchema = z60.enum(assetTypes).meta({ description: "Type of financial asset", examples: ["bond", "equity", "fund"] });
4331
4324
  var assetType = () => AssetTypeSchema;
4332
4325
  var AssetClassSchema = z60.enum(assetClasses).meta({ description: "Class of financial asset", examples: ["fixedIncome", "flexibleIncome", "cashEquivalent"] });
4333
- var assetClass = () => AssetClassSchema;
4334
4326
  var AssetFactoryTypeIdSchema = z60.enum(assetFactoryTypeIds).meta({ description: "Asset factory typeId identifier", examples: ["bond", "equity", "stablecoin"] });
4335
4327
  var assetFactoryTypeId = () => AssetFactoryTypeIdSchema;
4336
4328
  var AssetTypeArraySchema = z60.array(AssetTypeSchema).min(1, "At least one asset type must be selected").meta({
@@ -4345,8 +4337,6 @@ var AssetTypeSetSchema = z60.set(AssetTypeSchema).min(1, "At least one asset typ
4345
4337
  var AssetFactoryTypeIdSetSchema = z60.set(AssetFactoryTypeIdSchema).min(1, "At least one factory typeId must be selected").meta({ description: "Set of unique asset factory typeIds", examples: [["bond", "equity"]] });
4346
4338
  var deployableAssetTypes = [
4347
4339
  "bond",
4348
- "convertible-loan",
4349
- "convertible-target-equity",
4350
4340
  "equity",
4351
4341
  "fund",
4352
4342
  "stablecoin",
@@ -8144,10 +8134,10 @@ import { z as z144 } from "zod";
8144
8134
  var StatsAssetsInputSchema = z144.object({}).strict();
8145
8135
  var StatsAssetsOutputSchema = z144.object({
8146
8136
  totalAssets: z144.number().int().min(0),
8147
- assetBreakdown: z144.record(assetType(), z144.number().int().min(0)),
8137
+ assetBreakdown: z144.record(z144.string(), z144.number().int().min(0)),
8148
8138
  totalValue: bigDecimal(),
8149
- valueBreakdown: z144.record(assetType(), bigDecimal()),
8150
- valueBreakdownByClass: z144.record(assetClass(), bigDecimal()),
8139
+ valueBreakdown: z144.record(z144.string(), bigDecimal()),
8140
+ valueBreakdownByClass: z144.record(z144.string(), bigDecimal()),
8151
8141
  tokensCreatedCount: z144.number().int(),
8152
8142
  tokensLaunchedCount: z144.number().int(),
8153
8143
  pendingLaunchesCount: z144.number().int()
@@ -8214,29 +8204,23 @@ var StatsPortfolioOutputSchema = z150.object({
8214
8204
  // ../../packages/dalp/dapi/contract/src/routes/system/stats/routes/portfolio-details.schema.ts
8215
8205
  import { z as z151 } from "zod";
8216
8206
  var StatsPortfolioDetailsInputSchema = z151.object({}).strict();
8217
- var StatsPortfolioDetailsTokenFactoryBreakdownSchema = z151.object({
8218
- tokenFactoryId: ethereumAddress.meta({
8219
- description: "Factory contract address",
8220
- examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
8221
- }),
8222
- tokenFactoryName: z151.string().meta({ description: "Human readable factory name", examples: ["Acme Bond Factory", "Blue Chip Equity Factory"] }),
8223
- tokenFactoryTypeId: assetFactoryTypeId().meta({
8224
- description: "Factory type identifier (e.g., bond, equity)",
8225
- examples: ["bond", "equity"]
8226
- }),
8207
+ var StatsPortfolioDetailsTypeBreakdownSchema = z151.object({
8227
8208
  assetType: z151.string().meta({
8228
- description: "Asset type derived from factory typeId. Known types (bond, equity, …) or custom template slugs (e.g. kbc-deposit).",
8209
+ description: "Asset type. Known types (bond, equity, …) or custom template slugs (e.g. kbc-deposit).",
8229
8210
  examples: ["bond", "equity", "kbc-deposit"]
8230
8211
  }),
8231
- totalValue: bigDecimal().meta({ description: "Factory value in base currency", examples: ["1000000.00"] }),
8232
- tokenBalancesCount: z151.number().int().min(0).meta({ description: "Number of tokens held from this factory", examples: [5, 10] }),
8212
+ totalValue: bigDecimal().meta({
8213
+ description: "Total value in base currency for this type",
8214
+ examples: ["1000000.00"]
8215
+ }),
8216
+ tokenBalancesCount: z151.number().int().min(0).meta({ description: "Number of tokens held of this type", examples: [5, 10] }),
8233
8217
  percentage: z151.number().min(0).max(100).meta({ description: "Percentage of total portfolio value", examples: [25.5, 50] })
8234
8218
  });
8235
8219
  var StatsPortfolioDetailsOutputSchema = z151.object({
8236
8220
  totalValue: bigDecimal().meta({ description: "Total portfolio value in base currency", examples: ["5000000.00"] }),
8237
- totalTokenFactories: z151.number().int().min(0).meta({ description: "Number of token factories with balances", examples: [3, 10] }),
8221
+ totalAssetTypes: z151.number().int().min(0).meta({ description: "Number of distinct asset types with balances", examples: [3, 5] }),
8238
8222
  totalAssetsHeld: z151.number().int().min(0).meta({ description: "Number of assets held", examples: [15, 50] }),
8239
- tokenFactoryBreakdown: z151.array(StatsPortfolioDetailsTokenFactoryBreakdownSchema),
8223
+ typeBreakdown: z151.array(StatsPortfolioDetailsTypeBreakdownSchema),
8240
8224
  valueBreakdown: z151.record(z151.string(), bigDecimal()).meta({
8241
8225
  description: "Total value held per asset type. Keys are known types (bond, equity, …) or custom template slugs (e.g. kbc-deposit).",
8242
8226
  examples: [{ bond: "1000000.00", equity: "2000000.00", "kbc-deposit": "500000.00" }]
@@ -8245,9 +8229,13 @@ var StatsPortfolioDetailsOutputSchema = z151.object({
8245
8229
  description: "Holdings count per asset type. Keys are known types or custom template slugs.",
8246
8230
  examples: [{ bond: 5, equity: 10, "kbc-deposit": 2 }]
8247
8231
  }),
8248
- valueBreakdownByClass: z151.record(assetClass(), bigDecimal()).meta({
8249
- description: "Total value held per asset class",
8250
- examples: [{ security: "3000000.00", commodity: "500000.00" }]
8232
+ valueBreakdownByClass: z151.record(z151.string(), bigDecimal()).meta({
8233
+ description: "Total value held per asset class. Keys are system slugs (e.g. fixedIncome) or custom org class slugs.",
8234
+ examples: [{ fixedIncome: "3000000.00", cashEquivalent: "500000.00" }]
8235
+ }),
8236
+ holdingsBreakdownByClass: z151.record(z151.string(), z151.number().int().min(0)).meta({
8237
+ description: "Holdings count per asset class. Keys match valueBreakdownByClass.",
8238
+ examples: [{ fixedIncome: 5, cashEquivalent: 2 }]
8251
8239
  })
8252
8240
  });
8253
8241
 
@@ -8514,7 +8502,7 @@ var statsPortfolioByPreset = v1Contract.route({
8514
8502
  var statsPortfolioDetails = v1Contract.route({
8515
8503
  method: "GET",
8516
8504
  path: "/system/stats/portfolio/details",
8517
- description: "Retrieve detailed portfolio breakdown by token factory",
8505
+ description: "Retrieve detailed portfolio breakdown by asset type",
8518
8506
  successDescription: "Portfolio details retrieved successfully",
8519
8507
  tags: ["system-stats"]
8520
8508
  }).input(StatsPortfolioDetailsInputSchema).output(StatsPortfolioDetailsOutputSchema);
@@ -8631,8 +8619,6 @@ var factoryAvailableContract = v1Contract.route({
8631
8619
  import { z as z164 } from "zod";
8632
8620
  var TokenTypeEnum = z164.enum([
8633
8621
  "bond",
8634
- "convertible-loan",
8635
- "convertible-target-equity",
8636
8622
  "equity",
8637
8623
  "fund",
8638
8624
  "stablecoin",
@@ -10624,6 +10610,14 @@ var TokenEventsInputSchema = TokenReadInputSchema.extend({
10624
10610
  transactionHashes: z219.array(ethereumHash).optional().meta({
10625
10611
  description: "Filter events by one or more transaction hashes",
10626
10612
  examples: [["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"]]
10613
+ }),
10614
+ limit: z219.number().int().positive().max(200).optional().meta({
10615
+ description: "Maximum number of events to return. When omitted, all events are returned. Use this for server-side pagination to request only what you need.",
10616
+ examples: [5, 25, 100]
10617
+ }),
10618
+ offset: z219.number().int().nonnegative().optional().default(0).meta({
10619
+ description: "Number of events to skip before returning results. Defaults to 0.",
10620
+ examples: [0, 10, 50]
10627
10621
  })
10628
10622
  });
10629
10623
  var EventsResponseSchema = z219.object({
@@ -13674,6 +13668,8 @@ var tokenFeatureIds = [
13674
13668
  "external-transaction-fee",
13675
13669
  "conversion",
13676
13670
  "conversion-minter",
13671
+ "convertible-loan",
13672
+ "convertible-target-equity",
13677
13673
  "permit"
13678
13674
  ];
13679
13675
  var addonIds = [
@@ -13733,12 +13729,14 @@ var FeatureConfigPropertySchema = z327.object({
13733
13729
  var FeatureConfigEntryValueSchema = z327.union([z327.boolean(), FeatureConfigPropertySchema]);
13734
13730
  var FeatureConfigEntrySchema = z327.record(z327.string(), FeatureConfigEntryValueSchema);
13735
13731
  var FeatureConfigSchema = z327.record(z327.string().min(1), FeatureConfigEntrySchema);
13736
- var AssetClassFilterSchema = z327.enum(assetClasses).meta({ description: "Asset class filter for template queries" });
13732
+ var AssetClassFilterSchema = assetClassSlug().meta({
13733
+ description: "Asset class slug filter for template queries"
13734
+ });
13737
13735
  var AssetTypeTemplateSchema = z327.object({
13738
13736
  id: z327.string().min(1),
13739
13737
  name: z327.string().min(1).max(255),
13740
13738
  description: z327.string().nullable(),
13741
- assetClass: z327.enum(assetClasses),
13739
+ assetClass: assetClassSlug(),
13742
13740
  typeId: z327.enum(assetFactoryTypeIds),
13743
13741
  isSystem: z327.boolean(),
13744
13742
  isDraft: z327.boolean(),
@@ -13817,6 +13815,10 @@ var UpdateInputSchema2 = z333.object({
13817
13815
  name: z333.string().min(1).max(255).optional(),
13818
13816
  description: z333.string().nullable().optional(),
13819
13817
  typeId: z333.enum(templateAssetTypeIds).optional(),
13818
+ assetClassId: z333.string().min(1).nullable().optional().meta({
13819
+ description: "Reference to an asset class definition. Set to null to clear the link, or omit to leave unchanged.",
13820
+ examples: ["acd-system-fixed-income"]
13821
+ }),
13820
13822
  requiredFeatures: z333.array(tokenFeatureIdSchema).optional(),
13821
13823
  metadataSchema: MetadataSchemaSchema.nullable().optional(),
13822
13824
  featureConfig: FeatureConfigSchema.nullable().optional(),
@@ -14769,7 +14771,7 @@ var portfolioByPreset = v2Contract.route({
14769
14771
  var portfolioDetails = v2Contract.route({
14770
14772
  method: "GET",
14771
14773
  path: "/system/stats/portfolio/details",
14772
- description: "Retrieve detailed portfolio breakdown by token factory",
14774
+ description: "Retrieve detailed portfolio breakdown by asset type",
14773
14775
  successDescription: "Portfolio details retrieved successfully",
14774
14776
  tags: ["v2-system-stats"]
14775
14777
  }).input(v2Input.query(StatsPortfolioDetailsInputSchema)).output(createSingleResponse(StatsPortfolioDetailsOutputSchema));
@@ -21723,7 +21725,7 @@ var dalpSerializers = [
21723
21725
  // package.json
21724
21726
  var package_default = {
21725
21727
  name: "@settlemint/dalp-sdk",
21726
- version: "2.1.7-main.23082494792",
21728
+ version: "2.1.7-main.23086675210",
21727
21729
  private: false,
21728
21730
  description: "Fully typed SDK for the DALP tokenization platform API",
21729
21731
  homepage: "https://settlemint.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "2.1.7-main.23082494792",
3
+ "version": "2.1.7-main.23086675210",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",