@settlemint/dalp-cli 3.1.19-release.34353850971 → 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 +36 -104
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -118918,14 +118918,22 @@ var XvpExecuteInputSchema = XvpSettlementMutationInputSchema;
118918
118918
  var XvpExecuteOutputSchema = exports_external.object({
118919
118919
  transactionHash: exports_external.string()
118920
118920
  });
118921
- var EmailRecipientsSchema = exports_external.array(exports_external.email("Invalid email address")).max(10, "Maximum 10 email recipients allowed").optional().default([]);
118921
+ var ATEXT = "A-Za-z0-9!#$%&'*+/=?^_`{|}~-";
118922
+ var DOT_ATOM = `[${ATEXT}]+(?:\\.[${ATEXT}]+)*`;
118923
+ var QUOTED_STRING = `"(?!${DOT_ATOM}")(?:[\\x20\\x21\\x23-\\x5B\\x5D-\\x7E]|\\\\[\\x22\\x5C])*"`;
118924
+ var DOMAIN = String.raw`(?:[A-Za-z0-9][A-Za-z0-9-]*\.)+[A-Za-z]{2,}`;
118925
+ var EMAIL_PATTERN = new RegExp(`^(?:${DOT_ATOM}|${QUOTED_STRING})@${DOMAIN}$`);
118926
+ function emailAddress(message = "Invalid email address") {
118927
+ return exports_external.email({ pattern: EMAIL_PATTERN, error: message });
118928
+ }
118929
+ var EmailRecipientsSchema = exports_external.array(emailAddress()).max(10, "Maximum 10 email recipients allowed").optional().default([]);
118922
118930
  var XvpRevealSecretInputSchema = XvpSettlementMutationInputSchema.extend({
118923
118931
  secret: RawSecretSchema,
118924
118932
  emailRecipients: EmailRecipientsSchema,
118925
118933
  settlementName: exports_external.string().optional()
118926
118934
  });
118927
118935
  var EmailSendResultSchema = exports_external.object({
118928
- recipient: exports_external.email(),
118936
+ recipient: emailAddress(),
118929
118937
  success: exports_external.boolean(),
118930
118938
  error: exports_external.string().optional()
118931
118939
  });
@@ -119239,7 +119247,7 @@ var OrganizationListItemSchema = exports_external.object({
119239
119247
  description: "Number of owners in the organization",
119240
119248
  examples: [2]
119241
119249
  }),
119242
- ownerEmails: exports_external.array(exports_external.string().email()).meta({
119250
+ ownerEmails: exports_external.array(emailAddress()).meta({
119243
119251
  description: "Email addresses for all organization owners",
119244
119252
  examples: [["owner@company.com", "owner2@company.com"]]
119245
119253
  }),
@@ -121966,7 +121974,7 @@ var PublicConfigGetOutputSchema = exports_external.object({
121966
121974
  enabled: exports_external.boolean()
121967
121975
  }),
121968
121976
  support: exports_external.object({
121969
- email: exports_external.email(),
121977
+ email: emailAddress(),
121970
121978
  consentTitle: exports_external.string(),
121971
121979
  consentDescription: exports_external.string()
121972
121980
  }),
@@ -128377,7 +128385,7 @@ var onboardingStateSchema = exports_external.object({
128377
128385
  var UserSchema = exports_external.object({
128378
128386
  id: exports_external.string(),
128379
128387
  name: exports_external.string(),
128380
- email: exports_external.email().optional(),
128388
+ email: emailAddress().optional(),
128381
128389
  role: userRoles().default("member"),
128382
128390
  wallet: ethereumAddress.nullable().meta({
128383
128391
  description: "User's Ethereum wallet address",
@@ -128453,7 +128461,7 @@ var CreateUserInputSchema = exports_external.object({
128453
128461
  description: "Display name (person or company)",
128454
128462
  examples: ["John Doe", "Acme Corporation"]
128455
128463
  }),
128456
- email: exports_external.string().email("Invalid email address").meta({
128464
+ email: emailAddress().meta({
128457
128465
  description: "Email address for the account",
128458
128466
  examples: ["john@example.com", "admin@company.org"]
128459
128467
  }),
@@ -128468,7 +128476,7 @@ var CreateUserOutputSchema = exports_external.object({
128468
128476
  description: "Display name",
128469
128477
  examples: ["John Doe", "Acme Corporation"]
128470
128478
  }),
128471
- email: exports_external.string().meta({
128479
+ email: emailAddress().meta({
128472
128480
  description: "Email address",
128473
128481
  examples: ["john@example.com", "admin@company.org"]
128474
128482
  }),
@@ -132720,7 +132728,7 @@ var InvitationV2RetryOutputSchema = exports_external.object({
132720
132728
  });
132721
132729
  var InviteWithRolesPlatformRoleSchema = exports_external.enum(["owner", "member"]);
132722
132730
  var InvitationV2InviteWithRolesInputSchema = exports_external.object({
132723
- email: exports_external.string().email("A valid email address is required"),
132731
+ email: emailAddress("A valid email address is required"),
132724
132732
  role: InviteWithRolesPlatformRoleSchema.default("member"),
132725
132733
  onChainRoles: exports_external.array(systemAccessControlRole).min(1, "Select at least one on-chain role"),
132726
132734
  walletVerification: UserVerificationSchema.optional()
@@ -141823,6 +141831,7 @@ var v2Contract2 = {
141823
141831
  webhookReceipts: webhookReceiptsV2Contract
141824
141832
  };
141825
141833
  var rpcContract = v2Contract2;
141834
+ var rpcContract2 = rpcContract;
141826
141835
  var DALP_SDK_ERROR_CODE = "DALP_SDK_ERROR";
141827
141836
  var DALP_SDK_ERROR_CATEGORY = "sdk.configuration";
141828
141837
 
@@ -142035,89 +142044,11 @@ function normalizeDalpBaseUrl(url2) {
142035
142044
  }
142036
142045
  return `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}`;
142037
142046
  }
142038
- var package_default = {
142039
- name: "@settlemint/dalp-sdk",
142040
- version: "3.1.19-release.34353850971",
142041
- private: false,
142042
- description: "Fully typed SDK for the DALP tokenization platform API",
142043
- homepage: "https://settlemint.com",
142044
- bugs: {
142045
- email: "support@settlemint.com"
142046
- },
142047
- license: "SEE LICENSE IN LICENSE",
142048
- author: {
142049
- name: "SettleMint",
142050
- email: "support@settlemint.com",
142051
- url: "https://settlemint.com"
142052
- },
142053
- files: [
142054
- "dist",
142055
- "README.md",
142056
- "LICENSE"
142057
- ],
142058
- type: "module",
142059
- exports: {
142060
- "./package.json": "./package.json",
142061
- ".": {
142062
- types: "./dist/index.d.ts",
142063
- import: "./dist/index.js",
142064
- default: "./dist/index.js"
142065
- },
142066
- "./types": {
142067
- types: "./dist/types.d.ts",
142068
- import: "./dist/types.js",
142069
- default: "./dist/types.js"
142070
- },
142071
- "./plugins": {
142072
- types: "./dist/plugins/index.d.ts",
142073
- import: "./dist/plugins/index.js",
142074
- default: "./dist/plugins/index.js"
142075
- }
142076
- },
142077
- publishConfig: {
142078
- access: "public"
142079
- },
142080
- scripts: {
142081
- build: "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/fix-dts-extensions.js",
142082
- publint: "publint run --strict --pack npm",
142083
- attw: "attw --pack . --profile esm-only",
142084
- publish: "cp ../../LICENSE . && npm publish --ignore-scripts --tag ${TAG:-latest} --access public",
142085
- prepack: "cp ../../LICENSE .",
142086
- test: "bun test --parallel=2 tests",
142087
- typecheck: "tsgo"
142088
- },
142089
- dependencies: {
142090
- "@better-auth/api-key": "1.6.19",
142091
- "@better-auth/passkey": "1.6.19",
142092
- "@orpc/client": "1.14.6",
142093
- "@orpc/contract": "1.14.6",
142094
- "@orpc/openapi-client": "1.14.6",
142095
- "better-auth": "1.6.19",
142096
- "currency-codes": "2.2.0",
142097
- "date-fns": "4.4.0",
142098
- dnum: "2.17.0",
142099
- "iso-3166": "4.4.0",
142100
- standardwebhooks: "1.0.0",
142101
- viem: "2.52.2",
142102
- zod: "4.4.3"
142103
- },
142104
- devDependencies: {
142105
- "@arethetypeswrong/cli": "0.18.3",
142106
- "@dalp/api-contract": "workspace:*",
142107
- "@dalp/errors": "workspace:*",
142108
- "@tools/typescript-config": "workspace:*",
142109
- "@types/bun": "1.3.14",
142110
- publint: "0.3.21",
142111
- typescript: "6.0.3"
142112
- },
142113
- engines: {
142114
- node: ">=20"
142115
- }
142116
- };
142117
- var SDK_VERSION = package_default.version;
142047
+ var SDK_PACKAGE_VERSION = "3.1.19-release.34482856023";
142048
+ var SDK_VERSION = SDK_PACKAGE_VERSION;
142118
142049
  var SDK_USER_AGENT = `DALP SDK v${SDK_VERSION}`;
142119
142050
  var DEFAULT_MUTATION_PREFER = "wait=99";
142120
- var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract);
142051
+ var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract2);
142121
142052
  function hasHeader(headers, headerName) {
142122
142053
  const normalizedHeaderName = headerName.toLowerCase();
142123
142054
  return Object.keys(headers).some((key) => key.toLowerCase() === normalizedHeaderName);
@@ -142150,14 +142081,14 @@ function createDalpClient(config3) {
142150
142081
  const baseUrl = normalizeDalpBaseUrl(url2);
142151
142082
  const plugins = [];
142152
142083
  if (requestValidation) {
142153
- plugins.push(new RequestValidationPlugin(rpcContract));
142084
+ plugins.push(new RequestValidationPlugin(rpcContract2));
142154
142085
  }
142155
142086
  if (responseValidation) {
142156
- plugins.push(new ResponseValidationPlugin(rpcContract));
142087
+ plugins.push(new ResponseValidationPlugin(rpcContract2));
142157
142088
  }
142158
142089
  const innerFetch = customFetch ?? globalThis.fetch.bind(globalThis);
142159
142090
  const wrappedFetch = (request, init) => fetchWithAttemptHeader(request, init, innerFetch);
142160
- const link = new OpenAPILink(rpcContract, {
142091
+ const link = new OpenAPILink(rpcContract2, {
142161
142092
  url: `${baseUrl}/api/v2`,
142162
142093
  headers: async (options, path4) => {
142163
142094
  const method = await Promise.resolve(resolveSdkRpcMethod(options, path4));
@@ -143261,9 +143192,9 @@ var FAILED_TRANSACTION_STATES = ["FAILED", "DEAD_LETTER", "CANCELLED"];
143261
143192
  var terminalStateSet2 = new Set(TERMINAL_TRANSACTION_STATES);
143262
143193
  var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
143263
143194
  // package.json
143264
- var package_default2 = {
143195
+ var package_default = {
143265
143196
  name: "@settlemint/dalp-cli",
143266
- version: "3.1.19-release.34353850971",
143197
+ version: "3.1.19-release.34482856023",
143267
143198
  private: false,
143268
143199
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
143269
143200
  homepage: "https://settlemint.com",
@@ -143322,7 +143253,7 @@ var package_default2 = {
143322
143253
  };
143323
143254
 
143324
143255
  // src/lib/vars.ts
143325
- var CLI_VERSION = package_default2.version;
143256
+ var CLI_VERSION = package_default.version;
143326
143257
  var CLI_USER_AGENT = `DALP CLI v${CLI_VERSION}`;
143327
143258
  function middlewareInjectedVar() {
143328
143259
  return exports_external.custom().optional().transform((value3) => value3);
@@ -206090,15 +206021,16 @@ identitiesCommand.command("register", {
206090
206021
  description: "Register an identity on-chain",
206091
206022
  options: exports_external.object({
206092
206023
  wallet: exports_external.string().describe("Wallet address"),
206093
- country: exports_external.string().describe("Country code")
206024
+ country: exports_external.string().describe("ISO 3166-1 alpha-2 country code (e.g. DE, US)")
206094
206025
  }),
206095
206026
  examples: [
206096
- { options: { wallet: "0x1234...abcd", country: "276" }, description: "Register a German investor identity" },
206097
- { 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" }
206098
206029
  ],
206099
206030
  run(c) {
206031
+ const country = c.options.country.toUpperCase();
206100
206032
  return c.var.orpc.system.identity.register({
206101
- body: { wallet: c.options.wallet, country: c.options.country }
206033
+ body: { wallet: c.options.wallet, country }
206102
206034
  });
206103
206035
  }
206104
206036
  });
@@ -207556,12 +207488,11 @@ settingsCommand.command("theme-get", {
207556
207488
  settingsCommand.command("theme-update", {
207557
207489
  description: "Update theme",
207558
207490
  options: exports_external.object({
207559
- baseVersion: exports_external.coerce.number().describe("Base version for optimistic concurrency"),
207560
- diff: exports_external.string().optional().describe("Theme diff as JSON")
207491
+ theme: exports_external.string().describe("Full theme configuration as JSON")
207561
207492
  }),
207562
207493
  run(c) {
207563
- const diff = c.options.diff ? parseJsonOption(c.options.diff, "diff") : undefined;
207564
- 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 });
207565
207496
  }
207566
207497
  });
207567
207498
  settingsCommand.command("theme-preview", {
@@ -212541,7 +212472,8 @@ usersCommand.command("assets", {
212541
212472
  wallet: exports_external.string().optional().describe("Wallet address")
212542
212473
  }),
212543
212474
  run(c) {
212544
- 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 } } : {} });
212545
212477
  }
212546
212478
  });
212547
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.34353850971",
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",