@settlemint/dalp-sdk 2.1.7-main.23264510883 → 2.1.7-main.23285169551

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 +20 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4356,7 +4356,13 @@ var deployableAssetTypes = [
4356
4356
  "real-estate",
4357
4357
  "precious-metal"
4358
4358
  ];
4359
+ var DeployableAssetTypeSchema = z60.enum(deployableAssetTypes).meta({
4360
+ description: "Concrete deployable asset type for pricing/UI model",
4361
+ examples: ["bond", "equity", "deposit"]
4362
+ });
4363
+ var deployableAssetType = () => DeployableAssetTypeSchema;
4359
4364
  var templateAssetTypeIds = [...deployableAssetTypes, "dalp-asset"];
4365
+ var DEPLOYABLE_TYPE_SET = new Set(deployableAssetTypes);
4360
4366
 
4361
4367
  // ../../packages/core/validation/src/asset-extensions.ts
4362
4368
  var AssetExtensionEnum = {
@@ -14425,7 +14431,8 @@ var AssetTypeTemplateSchema = z322.object({
14425
14431
  name: z322.string().min(1).max(255),
14426
14432
  description: z322.string().nullable(),
14427
14433
  assetClass: assetClassSlug(),
14428
- typeId: z322.enum(assetFactoryTypeIds),
14434
+ typeId: z322.string().min(1),
14435
+ baseAssetType: deployableAssetType(),
14429
14436
  isSystem: z322.boolean(),
14430
14437
  isDraft: z322.boolean(),
14431
14438
  organizationId: z322.string().nullable(),
@@ -14447,7 +14454,11 @@ import { z as z323 } from "zod";
14447
14454
  var CreateInputSchema = z323.object({
14448
14455
  name: z323.string().min(1).max(255),
14449
14456
  description: z323.string().optional(),
14450
- typeId: z323.enum(templateAssetTypeIds),
14457
+ typeId: z323.string().min(1).meta({ description: "Concrete asset type slug (e.g. 'bond', 'kbc-deposit')" }),
14458
+ baseAssetType: deployableAssetType().optional().meta({
14459
+ description: "Concrete deployable asset type that determines pricing fields. " + "Derived automatically from typeId or asset class when omitted.",
14460
+ examples: ["bond", "deposit"]
14461
+ }),
14451
14462
  assetClassId: z323.string().min(1).optional().meta({
14452
14463
  description: "Reference to an asset class definition. When provided, links the template to a managed asset class.",
14453
14464
  examples: ["acd-system-fixed-income"]
@@ -14506,9 +14517,13 @@ var UpdateInputSchema2 = z327.object({
14506
14517
  id: z327.string().min(1).meta({ description: "Template ID" }),
14507
14518
  name: z327.string().min(1).max(255).optional(),
14508
14519
  description: z327.string().nullable().optional(),
14509
- typeId: z327.enum(templateAssetTypeIds).optional(),
14520
+ typeId: z327.string().min(1).meta({ description: "Concrete asset type slug (e.g. 'bond', 'kbc-deposit')" }).optional(),
14521
+ baseAssetType: deployableAssetType().optional().meta({
14522
+ description: "Concrete deployable asset type. Cannot be changed after publish.",
14523
+ examples: ["bond", "deposit"]
14524
+ }),
14510
14525
  assetClassId: z327.string().min(1).nullable().optional().meta({
14511
- description: "Reference to an asset class definition. Set to null to clear the link, or omit to leave unchanged.",
14526
+ description: "Reference to an asset class definition. Omit to leave unchanged. " + "Set to null to clear the link and revert to the system class mapping — " + `only valid when typeId is a recognized factory type (${assetFactoryTypeIds.join(", ")}). ` + "For org templates with custom typeId slugs, provide a valid assetClassId instead of null.",
14512
14527
  examples: ["acd-system-fixed-income"]
14513
14528
  }),
14514
14529
  requiredFeatures: z327.array(tokenFeatureIdSchema).optional(),
@@ -22860,7 +22875,7 @@ var dalpSerializers = [
22860
22875
  // package.json
22861
22876
  var package_default = {
22862
22877
  name: "@settlemint/dalp-sdk",
22863
- version: "2.1.7-main.23264510883",
22878
+ version: "2.1.7-main.23285169551",
22864
22879
  private: false,
22865
22880
  description: "Fully typed SDK for the DALP tokenization platform API",
22866
22881
  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.23264510883",
3
+ "version": "2.1.7-main.23285169551",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",