@settlemint/dalp-cli 3.1.19-release.34456469550 → 3.1.19-release.34482856023

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 +20 -96
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -141831,6 +141831,7 @@ var v2Contract2 = {
141831
141831
  webhookReceipts: webhookReceiptsV2Contract
141832
141832
  };
141833
141833
  var rpcContract = v2Contract2;
141834
+ var rpcContract2 = rpcContract;
141834
141835
  var DALP_SDK_ERROR_CODE = "DALP_SDK_ERROR";
141835
141836
  var DALP_SDK_ERROR_CATEGORY = "sdk.configuration";
141836
141837
 
@@ -142043,89 +142044,11 @@ function normalizeDalpBaseUrl(url2) {
142043
142044
  }
142044
142045
  return `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}`;
142045
142046
  }
142046
- var package_default = {
142047
- name: "@settlemint/dalp-sdk",
142048
- version: "3.1.19-release.34456469550",
142049
- private: false,
142050
- description: "Fully typed SDK for the DALP tokenization platform API",
142051
- homepage: "https://settlemint.com",
142052
- bugs: {
142053
- email: "support@settlemint.com"
142054
- },
142055
- license: "SEE LICENSE IN LICENSE",
142056
- author: {
142057
- name: "SettleMint",
142058
- email: "support@settlemint.com",
142059
- url: "https://settlemint.com"
142060
- },
142061
- files: [
142062
- "dist",
142063
- "README.md",
142064
- "LICENSE"
142065
- ],
142066
- type: "module",
142067
- exports: {
142068
- "./package.json": "./package.json",
142069
- ".": {
142070
- types: "./dist/index.d.ts",
142071
- import: "./dist/index.js",
142072
- default: "./dist/index.js"
142073
- },
142074
- "./types": {
142075
- types: "./dist/types.d.ts",
142076
- import: "./dist/types.js",
142077
- default: "./dist/types.js"
142078
- },
142079
- "./plugins": {
142080
- types: "./dist/plugins/index.d.ts",
142081
- import: "./dist/plugins/index.js",
142082
- default: "./dist/plugins/index.js"
142083
- }
142084
- },
142085
- publishConfig: {
142086
- access: "public"
142087
- },
142088
- scripts: {
142089
- build: "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/fix-dts-extensions.js",
142090
- publint: "publint run --strict --pack npm",
142091
- attw: "attw --pack . --profile esm-only",
142092
- publish: "cp ../../LICENSE . && npm publish --ignore-scripts --tag ${TAG:-latest} --access public",
142093
- prepack: "cp ../../LICENSE .",
142094
- test: "bun test --parallel=2 tests",
142095
- typecheck: "tsgo"
142096
- },
142097
- dependencies: {
142098
- "@better-auth/api-key": "1.6.19",
142099
- "@better-auth/passkey": "1.6.19",
142100
- "@orpc/client": "1.14.6",
142101
- "@orpc/contract": "1.14.6",
142102
- "@orpc/openapi-client": "1.14.6",
142103
- "better-auth": "1.6.19",
142104
- "currency-codes": "2.2.0",
142105
- "date-fns": "4.4.0",
142106
- dnum: "2.17.0",
142107
- "iso-3166": "4.4.0",
142108
- standardwebhooks: "1.0.0",
142109
- viem: "2.52.2",
142110
- zod: "4.4.3"
142111
- },
142112
- devDependencies: {
142113
- "@arethetypeswrong/cli": "0.18.3",
142114
- "@dalp/api-contract": "workspace:*",
142115
- "@dalp/errors": "workspace:*",
142116
- "@tools/typescript-config": "workspace:*",
142117
- "@types/bun": "1.3.14",
142118
- publint: "0.3.21",
142119
- typescript: "6.0.3"
142120
- },
142121
- engines: {
142122
- node: ">=20"
142123
- }
142124
- };
142125
- var SDK_VERSION = package_default.version;
142047
+ var SDK_PACKAGE_VERSION = "3.1.19-release.34482856023";
142048
+ var SDK_VERSION = SDK_PACKAGE_VERSION;
142126
142049
  var SDK_USER_AGENT = `DALP SDK v${SDK_VERSION}`;
142127
142050
  var DEFAULT_MUTATION_PREFER = "wait=99";
142128
- var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract);
142051
+ var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract2);
142129
142052
  function hasHeader(headers, headerName) {
142130
142053
  const normalizedHeaderName = headerName.toLowerCase();
142131
142054
  return Object.keys(headers).some((key) => key.toLowerCase() === normalizedHeaderName);
@@ -142158,14 +142081,14 @@ function createDalpClient(config3) {
142158
142081
  const baseUrl = normalizeDalpBaseUrl(url2);
142159
142082
  const plugins = [];
142160
142083
  if (requestValidation) {
142161
- plugins.push(new RequestValidationPlugin(rpcContract));
142084
+ plugins.push(new RequestValidationPlugin(rpcContract2));
142162
142085
  }
142163
142086
  if (responseValidation) {
142164
- plugins.push(new ResponseValidationPlugin(rpcContract));
142087
+ plugins.push(new ResponseValidationPlugin(rpcContract2));
142165
142088
  }
142166
142089
  const innerFetch = customFetch ?? globalThis.fetch.bind(globalThis);
142167
142090
  const wrappedFetch = (request, init) => fetchWithAttemptHeader(request, init, innerFetch);
142168
- const link = new OpenAPILink(rpcContract, {
142091
+ const link = new OpenAPILink(rpcContract2, {
142169
142092
  url: `${baseUrl}/api/v2`,
142170
142093
  headers: async (options, path4) => {
142171
142094
  const method = await Promise.resolve(resolveSdkRpcMethod(options, path4));
@@ -143269,9 +143192,9 @@ var FAILED_TRANSACTION_STATES = ["FAILED", "DEAD_LETTER", "CANCELLED"];
143269
143192
  var terminalStateSet2 = new Set(TERMINAL_TRANSACTION_STATES);
143270
143193
  var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
143271
143194
  // package.json
143272
- var package_default2 = {
143195
+ var package_default = {
143273
143196
  name: "@settlemint/dalp-cli",
143274
- version: "3.1.19-release.34456469550",
143197
+ version: "3.1.19-release.34482856023",
143275
143198
  private: false,
143276
143199
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
143277
143200
  homepage: "https://settlemint.com",
@@ -143330,7 +143253,7 @@ var package_default2 = {
143330
143253
  };
143331
143254
 
143332
143255
  // src/lib/vars.ts
143333
- var CLI_VERSION = package_default2.version;
143256
+ var CLI_VERSION = package_default.version;
143334
143257
  var CLI_USER_AGENT = `DALP CLI v${CLI_VERSION}`;
143335
143258
  function middlewareInjectedVar() {
143336
143259
  return exports_external.custom().optional().transform((value3) => value3);
@@ -206098,15 +206021,16 @@ identitiesCommand.command("register", {
206098
206021
  description: "Register an identity on-chain",
206099
206022
  options: exports_external.object({
206100
206023
  wallet: exports_external.string().describe("Wallet address"),
206101
- country: exports_external.string().describe("Country code")
206024
+ country: exports_external.string().describe("ISO 3166-1 alpha-2 country code (e.g. DE, US)")
206102
206025
  }),
206103
206026
  examples: [
206104
- { options: { wallet: "0x1234...abcd", country: "276" }, description: "Register a German investor identity" },
206105
- { options: { wallet: "0x5678...efgh", country: "840" }, description: "Register a US investor identity" }
206027
+ { options: { wallet: "0x1234...abcd", country: "DE" }, description: "Register a German investor identity" },
206028
+ { options: { wallet: "0x5678...efgh", country: "US" }, description: "Register a US investor identity" }
206106
206029
  ],
206107
206030
  run(c) {
206031
+ const country = c.options.country.toUpperCase();
206108
206032
  return c.var.orpc.system.identity.register({
206109
- body: { wallet: c.options.wallet, country: c.options.country }
206033
+ body: { wallet: c.options.wallet, country }
206110
206034
  });
206111
206035
  }
206112
206036
  });
@@ -207564,12 +207488,11 @@ settingsCommand.command("theme-get", {
207564
207488
  settingsCommand.command("theme-update", {
207565
207489
  description: "Update theme",
207566
207490
  options: exports_external.object({
207567
- baseVersion: exports_external.coerce.number().describe("Base version for optimistic concurrency"),
207568
- diff: exports_external.string().optional().describe("Theme diff as JSON")
207491
+ theme: exports_external.string().describe("Full theme configuration as JSON")
207569
207492
  }),
207570
207493
  run(c) {
207571
- const diff = c.options.diff ? parseJsonOption(c.options.diff, "diff") : undefined;
207572
- return c.var.orpc.settings.theme.update({ body: { baseVersion: c.options.baseVersion, diff } });
207494
+ const theme = parseJsonOption(c.options.theme, "theme");
207495
+ return c.var.orpc.settings.theme.update({ body: theme });
207573
207496
  }
207574
207497
  });
207575
207498
  settingsCommand.command("theme-preview", {
@@ -212549,7 +212472,8 @@ usersCommand.command("assets", {
212549
212472
  wallet: exports_external.string().optional().describe("Wallet address")
212550
212473
  }),
212551
212474
  run(c) {
212552
- return c.var.orpc.user.assets({ query: { wallet: c.options.wallet } });
212475
+ const { wallet } = c.options;
212476
+ return c.var.orpc.user.assets({ query: wallet ? { filter: { wallet } } : {} });
212553
212477
  }
212554
212478
  });
212555
212479
  usersCommand.command("stats", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "3.1.19-release.34456469550",
3
+ "version": "3.1.19-release.34482856023",
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",