@settlemint/dalp-cli 2.1.7-main.23348208556 → 2.1.7-main.23351042003

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/dalp.js +90 -102
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -61198,16 +61198,40 @@ var AccessControlSchema = exports_external.object({
61198
61198
  }).default([])
61199
61199
  });
61200
61200
  var accessControlSchema = () => AccessControlSchema;
61201
- var assetTypes = [
61202
- "bond",
61203
- "equity",
61204
- "fund",
61205
- "stablecoin",
61206
- "deposit",
61207
- "real-estate",
61208
- "precious-metal",
61209
- "dalp-asset"
61210
- ];
61201
+ var AssetExtensionEnum = {
61202
+ ACCESS_MANAGED: "ACCESS_MANAGED",
61203
+ BOND: "BOND",
61204
+ BURNABLE: "BURNABLE",
61205
+ CAPPED: "CAPPED",
61206
+ COLLATERAL: "COLLATERAL",
61207
+ CONFIGURABLE: "CONFIGURABLE",
61208
+ CUSTODIAN: "CUSTODIAN",
61209
+ FUND: "FUND",
61210
+ HISTORICAL_BALANCES: "HISTORICAL_BALANCES",
61211
+ METADATA: "METADATA",
61212
+ PAUSABLE: "PAUSABLE",
61213
+ REDEEMABLE: "REDEEMABLE",
61214
+ YIELD: "YIELD"
61215
+ };
61216
+ var assetExtensions = Object.values(AssetExtensionEnum);
61217
+ var NON_VISIBLE_ASSET_EXTENSIONS = new Set([
61218
+ AssetExtensionEnum.PAUSABLE,
61219
+ AssetExtensionEnum.BURNABLE,
61220
+ AssetExtensionEnum.CONFIGURABLE,
61221
+ AssetExtensionEnum.HISTORICAL_BALANCES,
61222
+ AssetExtensionEnum.METADATA
61223
+ ]);
61224
+ var AssetExtensionSchema = exports_external.enum(assetExtensions).meta({ description: "Token extension capability", examples: ["BURNABLE", "PAUSABLE", "CUSTODIAN"] });
61225
+ var AssetExtensionArraySchema = exports_external.array(AssetExtensionSchema).meta({
61226
+ description: "List of asset extensions",
61227
+ examples: [
61228
+ ["BURNABLE", "PAUSABLE"],
61229
+ ["CUSTODIAN", "YIELD"]
61230
+ ]
61231
+ });
61232
+ var assetExtensionArray = () => AssetExtensionArraySchema;
61233
+ var AssetExtensionSetSchema = exports_external.set(AssetExtensionSchema).meta({ description: "Set of unique asset extensions", examples: [["BURNABLE", "PAUSABLE"]] });
61234
+ var assetTypes = ["bond", "equity", "fund", "stablecoin", "deposit", "real-estate", "precious-metal"];
61211
61235
  var assetClasses = ["fixedIncome", "flexibleIncome", "cashEquivalent", "realWorldAsset"];
61212
61236
  var assetClassSlug = () => exports_external.string().min(1).meta({ description: "Asset class slug (system or custom)" });
61213
61237
  var AssetTypeEnum = {
@@ -61217,8 +61241,7 @@ var AssetTypeEnum = {
61217
61241
  stablecoin: "stablecoin",
61218
61242
  deposit: "deposit",
61219
61243
  realEstate: "real-estate",
61220
- preciousMetal: "precious-metal",
61221
- dalpAsset: "dalp-asset"
61244
+ preciousMetal: "precious-metal"
61222
61245
  };
61223
61246
  var assetFactoryTypeIds = [
61224
61247
  "bond",
@@ -61240,10 +61263,19 @@ var AssetFactoryTypeIdEnum = {
61240
61263
  preciousMetal: "precious-metal",
61241
61264
  dalpAsset: "dalp-asset"
61242
61265
  };
61243
- var AssetTypeSchema = exports_external.enum(assetTypes).meta({ description: "Type of financial asset", examples: ["bond", "equity", "fund"] });
61266
+ var AssetTypeSchema = exports_external.enum(assetTypes).meta({
61267
+ description: "Type of financial asset",
61268
+ examples: ["bond", "equity", "fund"]
61269
+ });
61244
61270
  var assetType = () => AssetTypeSchema;
61245
- var AssetClassSchema = exports_external.enum(assetClasses).meta({ description: "Class of financial asset", examples: ["fixedIncome", "flexibleIncome", "cashEquivalent"] });
61246
- var AssetFactoryTypeIdSchema = exports_external.enum(assetFactoryTypeIds).meta({ description: "Asset factory typeId identifier", examples: ["bond", "equity", "stablecoin"] });
61271
+ var AssetClassSchema = exports_external.enum(assetClasses).meta({
61272
+ description: "Class of financial asset",
61273
+ examples: ["fixedIncome", "flexibleIncome", "cashEquivalent"]
61274
+ });
61275
+ var AssetFactoryTypeIdSchema = exports_external.enum(assetFactoryTypeIds).meta({
61276
+ description: "Asset factory typeId identifier",
61277
+ examples: ["bond", "equity", "stablecoin"]
61278
+ });
61247
61279
  var assetFactoryTypeId = () => AssetFactoryTypeIdSchema;
61248
61280
  var AssetTypeArraySchema = exports_external.array(AssetTypeSchema).min(1, "At least one asset type must be selected").meta({
61249
61281
  description: "List of asset types",
@@ -61252,58 +61284,19 @@ var AssetTypeArraySchema = exports_external.array(AssetTypeSchema).min(1, "At le
61252
61284
  ["fund", "stablecoin"]
61253
61285
  ]
61254
61286
  });
61255
- var AssetFactoryTypeIdArraySchema = exports_external.array(AssetFactoryTypeIdSchema).min(1, "At least one factory typeId must be selected").meta({ description: "List of asset factory typeIds", examples: [["bond", "equity"], ["stablecoin"]] });
61256
- var AssetTypeSetSchema = exports_external.set(AssetTypeSchema).min(1, "At least one asset type must be selected").meta({ description: "Set of unique asset types", examples: [["bond", "equity"]] });
61257
- var AssetFactoryTypeIdSetSchema = exports_external.set(AssetFactoryTypeIdSchema).min(1, "At least one factory typeId must be selected").meta({ description: "Set of unique asset factory typeIds", examples: [["bond", "equity"]] });
61258
- var deployableAssetTypes = [
61259
- "bond",
61260
- "equity",
61261
- "fund",
61262
- "stablecoin",
61263
- "deposit",
61264
- "real-estate",
61265
- "precious-metal"
61266
- ];
61267
- var DeployableAssetTypeSchema = exports_external.enum(deployableAssetTypes).meta({
61268
- description: "Concrete deployable asset type for pricing/UI model",
61269
- examples: ["bond", "equity", "deposit"]
61287
+ var AssetFactoryTypeIdArraySchema = exports_external.array(AssetFactoryTypeIdSchema).min(1, "At least one factory typeId must be selected").meta({
61288
+ description: "List of asset factory typeIds",
61289
+ examples: [["bond", "equity"], ["stablecoin"]]
61270
61290
  });
61271
- var deployableAssetType = () => DeployableAssetTypeSchema;
61272
- var templateAssetTypeIds = [...deployableAssetTypes, "dalp-asset"];
61273
- var DEPLOYABLE_TYPE_SET = new Set(deployableAssetTypes);
61274
- var AssetExtensionEnum = {
61275
- ACCESS_MANAGED: "ACCESS_MANAGED",
61276
- BOND: "BOND",
61277
- BURNABLE: "BURNABLE",
61278
- CAPPED: "CAPPED",
61279
- COLLATERAL: "COLLATERAL",
61280
- CONFIGURABLE: "CONFIGURABLE",
61281
- CUSTODIAN: "CUSTODIAN",
61282
- FUND: "FUND",
61283
- HISTORICAL_BALANCES: "HISTORICAL_BALANCES",
61284
- METADATA: "METADATA",
61285
- PAUSABLE: "PAUSABLE",
61286
- REDEEMABLE: "REDEEMABLE",
61287
- YIELD: "YIELD"
61288
- };
61289
- var assetExtensions = Object.values(AssetExtensionEnum);
61290
- var NON_VISIBLE_ASSET_EXTENSIONS = new Set([
61291
- AssetExtensionEnum.PAUSABLE,
61292
- AssetExtensionEnum.BURNABLE,
61293
- AssetExtensionEnum.CONFIGURABLE,
61294
- AssetExtensionEnum.HISTORICAL_BALANCES,
61295
- AssetExtensionEnum.METADATA
61296
- ]);
61297
- var AssetExtensionSchema = exports_external.enum(assetExtensions).meta({ description: "Token extension capability", examples: ["BURNABLE", "PAUSABLE", "CUSTODIAN"] });
61298
- var AssetExtensionArraySchema = exports_external.array(AssetExtensionSchema).meta({
61299
- description: "List of asset extensions",
61300
- examples: [
61301
- ["BURNABLE", "PAUSABLE"],
61302
- ["CUSTODIAN", "YIELD"]
61303
- ]
61291
+ var AssetTypeSetSchema = exports_external.set(AssetTypeSchema).min(1, "At least one asset type must be selected").meta({
61292
+ description: "Set of unique asset types",
61293
+ examples: [["bond", "equity"]]
61304
61294
  });
61305
- var assetExtensionArray = () => AssetExtensionArraySchema;
61306
- var AssetExtensionSetSchema = exports_external.set(AssetExtensionSchema).meta({ description: "Set of unique asset extensions", examples: [["BURNABLE", "PAUSABLE"]] });
61295
+ var AssetFactoryTypeIdSetSchema = exports_external.set(AssetFactoryTypeIdSchema).min(1, "At least one factory typeId must be selected").meta({
61296
+ description: "Set of unique asset factory typeIds",
61297
+ examples: [["bond", "equity"]]
61298
+ });
61299
+ var DEPLOYABLE_TYPE_SET = new Set(assetTypes);
61307
61300
  var claimValue = exports_external.object({
61308
61301
  key: exports_external.string().meta({
61309
61302
  description: "The claim value key",
@@ -70275,7 +70268,7 @@ var AssetTypeTemplateSchema = exports_external.object({
70275
70268
  description: exports_external.string().nullable(),
70276
70269
  assetClass: assetClassSlug(),
70277
70270
  typeId: exports_external.string().min(1),
70278
- baseAssetType: deployableAssetType(),
70271
+ baseAssetType: assetType(),
70279
70272
  isSystem: exports_external.boolean(),
70280
70273
  isDraft: exports_external.boolean(),
70281
70274
  organizationId: exports_external.string().nullable(),
@@ -70295,7 +70288,7 @@ var CreateInputSchema = exports_external.object({
70295
70288
  name: exports_external.string().min(1).max(255),
70296
70289
  description: exports_external.string().optional(),
70297
70290
  typeId: exports_external.string().min(1).meta({ description: "Concrete asset type slug (e.g. 'bond', 'kbc-deposit')" }),
70298
- baseAssetType: deployableAssetType().optional().meta({
70291
+ baseAssetType: assetType().optional().meta({
70299
70292
  description: "Concrete deployable asset type that determines pricing fields. " + "Derived automatically from typeId or asset class when omitted.",
70300
70293
  examples: ["bond", "deposit"]
70301
70294
  }),
@@ -70318,7 +70311,7 @@ var DeleteOutputSchema2 = exports_external.object({
70318
70311
  var ASSET_TYPE_TEMPLATES_COLLECTION_FIELDS = {
70319
70312
  name: textField(),
70320
70313
  assetClass: textField(),
70321
- typeId: enumField([...templateAssetTypeIds]),
70314
+ typeId: enumField([...assetTypes]),
70322
70315
  isDraft: booleanField(),
70323
70316
  isSystem: booleanField(),
70324
70317
  createdAt: dateField(),
@@ -70341,7 +70334,7 @@ var UpdateInputSchema2 = exports_external.object({
70341
70334
  name: exports_external.string().min(1).max(255).optional(),
70342
70335
  description: exports_external.string().nullable().optional(),
70343
70336
  typeId: exports_external.string().min(1).meta({ description: "Concrete asset type slug (e.g. 'bond', 'kbc-deposit')" }).optional(),
70344
- baseAssetType: deployableAssetType().optional().meta({
70337
+ baseAssetType: assetType().optional().meta({
70345
70338
  description: "Concrete deployable asset type. Cannot be changed after publish.",
70346
70339
  examples: ["bond", "deposit"]
70347
70340
  }),
@@ -78841,7 +78834,7 @@ var timestampSerializer = {
78841
78834
  };
78842
78835
  var package_default = {
78843
78836
  name: "@settlemint/dalp-sdk",
78844
- version: "2.1.7-main.23348208556",
78837
+ version: "2.1.7-main.23351042003",
78845
78838
  private: false,
78846
78839
  description: "Fully typed SDK for the DALP tokenization platform API",
78847
78840
  homepage: "https://settlemint.com",
@@ -78984,7 +78977,7 @@ function createDalpClient(config3) {
78984
78977
  // package.json
78985
78978
  var package_default2 = {
78986
78979
  name: "@settlemint/dalp-cli",
78987
- version: "2.1.7-main.23348208556",
78980
+ version: "2.1.7-main.23351042003",
78988
78981
  private: false,
78989
78982
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
78990
78983
  homepage: "https://settlemint.com",
@@ -79228,16 +79221,7 @@ adminCommand.command(organizations);
79228
79221
 
79229
79222
  // ../../packages/core/validation/src/asset-types.ts
79230
79223
  init_zod();
79231
- var assetTypes2 = [
79232
- "bond",
79233
- "equity",
79234
- "fund",
79235
- "stablecoin",
79236
- "deposit",
79237
- "real-estate",
79238
- "precious-metal",
79239
- "dalp-asset"
79240
- ];
79224
+ var assetTypes2 = ["bond", "equity", "fund", "stablecoin", "deposit", "real-estate", "precious-metal"];
79241
79225
  var assetClasses2 = ["fixedIncome", "flexibleIncome", "cashEquivalent", "realWorldAsset"];
79242
79226
  var assetFactoryTypeIds2 = [
79243
79227
  "bond",
@@ -79249,10 +79233,19 @@ var assetFactoryTypeIds2 = [
79249
79233
  "precious-metal",
79250
79234
  "dalp-asset"
79251
79235
  ];
79252
- var AssetTypeSchema2 = exports_external.enum(assetTypes2).meta({ description: "Type of financial asset", examples: ["bond", "equity", "fund"] });
79236
+ var AssetTypeSchema2 = exports_external.enum(assetTypes2).meta({
79237
+ description: "Type of financial asset",
79238
+ examples: ["bond", "equity", "fund"]
79239
+ });
79253
79240
  var assetType2 = () => AssetTypeSchema2;
79254
- var AssetClassSchema2 = exports_external.enum(assetClasses2).meta({ description: "Class of financial asset", examples: ["fixedIncome", "flexibleIncome", "cashEquivalent"] });
79255
- var AssetFactoryTypeIdSchema2 = exports_external.enum(assetFactoryTypeIds2).meta({ description: "Asset factory typeId identifier", examples: ["bond", "equity", "stablecoin"] });
79241
+ var AssetClassSchema2 = exports_external.enum(assetClasses2).meta({
79242
+ description: "Class of financial asset",
79243
+ examples: ["fixedIncome", "flexibleIncome", "cashEquivalent"]
79244
+ });
79245
+ var AssetFactoryTypeIdSchema2 = exports_external.enum(assetFactoryTypeIds2).meta({
79246
+ description: "Asset factory typeId identifier",
79247
+ examples: ["bond", "equity", "stablecoin"]
79248
+ });
79256
79249
  var AssetTypeArraySchema2 = exports_external.array(AssetTypeSchema2).min(1, "At least one asset type must be selected").meta({
79257
79250
  description: "List of asset types",
79258
79251
  examples: [
@@ -79260,28 +79253,23 @@ var AssetTypeArraySchema2 = exports_external.array(AssetTypeSchema2).min(1, "At
79260
79253
  ["fund", "stablecoin"]
79261
79254
  ]
79262
79255
  });
79263
- var AssetFactoryTypeIdArraySchema2 = exports_external.array(AssetFactoryTypeIdSchema2).min(1, "At least one factory typeId must be selected").meta({ description: "List of asset factory typeIds", examples: [["bond", "equity"], ["stablecoin"]] });
79264
- var AssetTypeSetSchema2 = exports_external.set(AssetTypeSchema2).min(1, "At least one asset type must be selected").meta({ description: "Set of unique asset types", examples: [["bond", "equity"]] });
79265
- var AssetFactoryTypeIdSetSchema2 = exports_external.set(AssetFactoryTypeIdSchema2).min(1, "At least one factory typeId must be selected").meta({ description: "Set of unique asset factory typeIds", examples: [["bond", "equity"]] });
79266
- var deployableAssetTypes2 = [
79267
- "bond",
79268
- "equity",
79269
- "fund",
79270
- "stablecoin",
79271
- "deposit",
79272
- "real-estate",
79273
- "precious-metal"
79274
- ];
79275
- var DeployableAssetTypeSchema2 = exports_external.enum(deployableAssetTypes2).meta({
79276
- description: "Concrete deployable asset type for pricing/UI model",
79277
- examples: ["bond", "equity", "deposit"]
79256
+ var AssetFactoryTypeIdArraySchema2 = exports_external.array(AssetFactoryTypeIdSchema2).min(1, "At least one factory typeId must be selected").meta({
79257
+ description: "List of asset factory typeIds",
79258
+ examples: [["bond", "equity"], ["stablecoin"]]
79259
+ });
79260
+ var AssetTypeSetSchema2 = exports_external.set(AssetTypeSchema2).min(1, "At least one asset type must be selected").meta({
79261
+ description: "Set of unique asset types",
79262
+ examples: [["bond", "equity"]]
79263
+ });
79264
+ var AssetFactoryTypeIdSetSchema2 = exports_external.set(AssetFactoryTypeIdSchema2).min(1, "At least one factory typeId must be selected").meta({
79265
+ description: "Set of unique asset factory typeIds",
79266
+ examples: [["bond", "equity"]]
79278
79267
  });
79279
- var templateAssetTypeIds2 = [...deployableAssetTypes2, "dalp-asset"];
79280
- var DEPLOYABLE_TYPE_SET2 = new Set(deployableAssetTypes2);
79268
+ var DEPLOYABLE_TYPE_SET2 = new Set(assetTypes2);
79281
79269
 
79282
79270
  // src/commands/asset-type-templates.ts
79283
79271
  var typeIdSchema = exports_external.string().min(1).describe("Concrete asset type slug (e.g. 'bond', 'kbc-deposit')");
79284
- var baseAssetTypeSchema = exports_external.enum(deployableAssetTypes2).optional().describe("Base asset type for pricing/UI model (required for custom typeIds)");
79272
+ var baseAssetTypeSchema = exports_external.enum(assetTypes2).optional().describe("Base asset type for pricing/UI model (required for custom typeIds)");
79285
79273
  var assetClassIdSchema = exports_external.string().min(1).optional().describe("Asset class definition ID (required for custom typeIds not in the known set)");
79286
79274
  var assetTypeTemplatesCommand = exports_Cli.create("asset-type-templates", {
79287
79275
  description: "Asset type template management",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "2.1.7-main.23348208556",
3
+ "version": "2.1.7-main.23351042003",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",