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

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 +105 -42
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -118918,22 +118918,14 @@ var XvpExecuteInputSchema = XvpSettlementMutationInputSchema;
118918
118918
  var XvpExecuteOutputSchema = exports_external.object({
118919
118919
  transactionHash: exports_external.string()
118920
118920
  });
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([]);
118921
+ var EmailRecipientsSchema = exports_external.array(exports_external.email("Invalid email address")).max(10, "Maximum 10 email recipients allowed").optional().default([]);
118930
118922
  var XvpRevealSecretInputSchema = XvpSettlementMutationInputSchema.extend({
118931
118923
  secret: RawSecretSchema,
118932
118924
  emailRecipients: EmailRecipientsSchema,
118933
118925
  settlementName: exports_external.string().optional()
118934
118926
  });
118935
118927
  var EmailSendResultSchema = exports_external.object({
118936
- recipient: emailAddress(),
118928
+ recipient: exports_external.email(),
118937
118929
  success: exports_external.boolean(),
118938
118930
  error: exports_external.string().optional()
118939
118931
  });
@@ -119247,7 +119239,7 @@ var OrganizationListItemSchema = exports_external.object({
119247
119239
  description: "Number of owners in the organization",
119248
119240
  examples: [2]
119249
119241
  }),
119250
- ownerEmails: exports_external.array(emailAddress()).meta({
119242
+ ownerEmails: exports_external.array(exports_external.string().email()).meta({
119251
119243
  description: "Email addresses for all organization owners",
119252
119244
  examples: [["owner@company.com", "owner2@company.com"]]
119253
119245
  }),
@@ -121974,7 +121966,7 @@ var PublicConfigGetOutputSchema = exports_external.object({
121974
121966
  enabled: exports_external.boolean()
121975
121967
  }),
121976
121968
  support: exports_external.object({
121977
- email: emailAddress(),
121969
+ email: exports_external.email(),
121978
121970
  consentTitle: exports_external.string(),
121979
121971
  consentDescription: exports_external.string()
121980
121972
  }),
@@ -128385,7 +128377,7 @@ var onboardingStateSchema = exports_external.object({
128385
128377
  var UserSchema = exports_external.object({
128386
128378
  id: exports_external.string(),
128387
128379
  name: exports_external.string(),
128388
- email: emailAddress().optional(),
128380
+ email: exports_external.email().optional(),
128389
128381
  role: userRoles().default("member"),
128390
128382
  wallet: ethereumAddress.nullable().meta({
128391
128383
  description: "User's Ethereum wallet address",
@@ -128461,7 +128453,7 @@ var CreateUserInputSchema = exports_external.object({
128461
128453
  description: "Display name (person or company)",
128462
128454
  examples: ["John Doe", "Acme Corporation"]
128463
128455
  }),
128464
- email: emailAddress().meta({
128456
+ email: exports_external.string().email("Invalid email address").meta({
128465
128457
  description: "Email address for the account",
128466
128458
  examples: ["john@example.com", "admin@company.org"]
128467
128459
  }),
@@ -128476,7 +128468,7 @@ var CreateUserOutputSchema = exports_external.object({
128476
128468
  description: "Display name",
128477
128469
  examples: ["John Doe", "Acme Corporation"]
128478
128470
  }),
128479
- email: emailAddress().meta({
128471
+ email: exports_external.string().meta({
128480
128472
  description: "Email address",
128481
128473
  examples: ["john@example.com", "admin@company.org"]
128482
128474
  }),
@@ -130421,16 +130413,11 @@ var OrganizationArchiveStateSchema = exports_external.object({
130421
130413
  })
130422
130414
  });
130423
130415
  var OrganizationV2ArchiveOutputSchema = createSingleResponse(OrganizationArchiveStateSchema);
130424
- var ORGANIZATION_STATUS_VALUES = ["active", "archived"];
130425
130416
  var ORGANIZATIONS_COLLECTION_FIELDS = {
130426
130417
  name: textField(),
130427
130418
  slug: textField(),
130428
130419
  createdAt: dateField(),
130429
- archivedAt: dateField(),
130430
- status: enumField(ORGANIZATION_STATUS_VALUES, {
130431
- sortable: false,
130432
- facetable: false
130433
- })
130420
+ archivedAt: dateField()
130434
130421
  };
130435
130422
  var OrganizationV2ListInputSchema = createCollectionInputSchema(ORGANIZATIONS_COLLECTION_FIELDS, {
130436
130423
  defaultSort: "createdAt",
@@ -132728,7 +132715,7 @@ var InvitationV2RetryOutputSchema = exports_external.object({
132728
132715
  });
132729
132716
  var InviteWithRolesPlatformRoleSchema = exports_external.enum(["owner", "member"]);
132730
132717
  var InvitationV2InviteWithRolesInputSchema = exports_external.object({
132731
- email: emailAddress("A valid email address is required"),
132718
+ email: exports_external.string().email("A valid email address is required"),
132732
132719
  role: InviteWithRolesPlatformRoleSchema.default("member"),
132733
132720
  onChainRoles: exports_external.array(systemAccessControlRole).min(1, "Select at least one on-chain role"),
132734
132721
  walletVerification: UserVerificationSchema.optional()
@@ -141831,7 +141818,6 @@ var v2Contract2 = {
141831
141818
  webhookReceipts: webhookReceiptsV2Contract
141832
141819
  };
141833
141820
  var rpcContract = v2Contract2;
141834
- var rpcContract2 = rpcContract;
141835
141821
  var DALP_SDK_ERROR_CODE = "DALP_SDK_ERROR";
141836
141822
  var DALP_SDK_ERROR_CATEGORY = "sdk.configuration";
141837
141823
 
@@ -142044,11 +142030,89 @@ function normalizeDalpBaseUrl(url2) {
142044
142030
  }
142045
142031
  return `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}`;
142046
142032
  }
142047
- var SDK_PACKAGE_VERSION = "3.1.19-release.34482856023";
142048
- var SDK_VERSION = SDK_PACKAGE_VERSION;
142033
+ var package_default = {
142034
+ name: "@settlemint/dalp-sdk",
142035
+ version: "3.1.19",
142036
+ private: false,
142037
+ description: "Fully typed SDK for the DALP tokenization platform API",
142038
+ homepage: "https://settlemint.com",
142039
+ bugs: {
142040
+ email: "support@settlemint.com"
142041
+ },
142042
+ license: "SEE LICENSE IN LICENSE",
142043
+ author: {
142044
+ name: "SettleMint",
142045
+ email: "support@settlemint.com",
142046
+ url: "https://settlemint.com"
142047
+ },
142048
+ files: [
142049
+ "dist",
142050
+ "README.md",
142051
+ "LICENSE"
142052
+ ],
142053
+ type: "module",
142054
+ exports: {
142055
+ "./package.json": "./package.json",
142056
+ ".": {
142057
+ types: "./dist/index.d.ts",
142058
+ import: "./dist/index.js",
142059
+ default: "./dist/index.js"
142060
+ },
142061
+ "./types": {
142062
+ types: "./dist/types.d.ts",
142063
+ import: "./dist/types.js",
142064
+ default: "./dist/types.js"
142065
+ },
142066
+ "./plugins": {
142067
+ types: "./dist/plugins/index.d.ts",
142068
+ import: "./dist/plugins/index.js",
142069
+ default: "./dist/plugins/index.js"
142070
+ }
142071
+ },
142072
+ publishConfig: {
142073
+ access: "public"
142074
+ },
142075
+ scripts: {
142076
+ build: "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/fix-dts-extensions.js",
142077
+ publint: "publint run --strict --pack npm",
142078
+ attw: "attw --pack . --profile esm-only",
142079
+ publish: "cp ../../LICENSE . && npm publish --ignore-scripts --tag ${TAG:-latest} --access public",
142080
+ prepack: "cp ../../LICENSE .",
142081
+ test: "bun test --parallel=2 tests",
142082
+ typecheck: "tsgo"
142083
+ },
142084
+ dependencies: {
142085
+ "@better-auth/api-key": "1.6.19",
142086
+ "@better-auth/passkey": "1.6.19",
142087
+ "@orpc/client": "1.14.6",
142088
+ "@orpc/contract": "1.14.6",
142089
+ "@orpc/openapi-client": "1.14.6",
142090
+ "better-auth": "1.6.19",
142091
+ "currency-codes": "2.2.0",
142092
+ "date-fns": "4.4.0",
142093
+ dnum: "2.17.0",
142094
+ "iso-3166": "4.4.0",
142095
+ standardwebhooks: "1.0.0",
142096
+ viem: "2.52.2",
142097
+ zod: "4.4.3"
142098
+ },
142099
+ devDependencies: {
142100
+ "@arethetypeswrong/cli": "0.18.3",
142101
+ "@dalp/api-contract": "workspace:*",
142102
+ "@dalp/errors": "workspace:*",
142103
+ "@tools/typescript-config": "workspace:*",
142104
+ "@types/bun": "1.3.14",
142105
+ publint: "0.3.21",
142106
+ typescript: "6.0.3"
142107
+ },
142108
+ engines: {
142109
+ node: ">=20"
142110
+ }
142111
+ };
142112
+ var SDK_VERSION = package_default.version;
142049
142113
  var SDK_USER_AGENT = `DALP SDK v${SDK_VERSION}`;
142050
142114
  var DEFAULT_MUTATION_PREFER = "wait=99";
142051
- var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract2);
142115
+ var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract);
142052
142116
  function hasHeader(headers, headerName) {
142053
142117
  const normalizedHeaderName = headerName.toLowerCase();
142054
142118
  return Object.keys(headers).some((key) => key.toLowerCase() === normalizedHeaderName);
@@ -142081,14 +142145,14 @@ function createDalpClient(config3) {
142081
142145
  const baseUrl = normalizeDalpBaseUrl(url2);
142082
142146
  const plugins = [];
142083
142147
  if (requestValidation) {
142084
- plugins.push(new RequestValidationPlugin(rpcContract2));
142148
+ plugins.push(new RequestValidationPlugin(rpcContract));
142085
142149
  }
142086
142150
  if (responseValidation) {
142087
- plugins.push(new ResponseValidationPlugin(rpcContract2));
142151
+ plugins.push(new ResponseValidationPlugin(rpcContract));
142088
142152
  }
142089
142153
  const innerFetch = customFetch ?? globalThis.fetch.bind(globalThis);
142090
142154
  const wrappedFetch = (request, init) => fetchWithAttemptHeader(request, init, innerFetch);
142091
- const link = new OpenAPILink(rpcContract2, {
142155
+ const link = new OpenAPILink(rpcContract, {
142092
142156
  url: `${baseUrl}/api/v2`,
142093
142157
  headers: async (options, path4) => {
142094
142158
  const method = await Promise.resolve(resolveSdkRpcMethod(options, path4));
@@ -143192,9 +143256,9 @@ var FAILED_TRANSACTION_STATES = ["FAILED", "DEAD_LETTER", "CANCELLED"];
143192
143256
  var terminalStateSet2 = new Set(TERMINAL_TRANSACTION_STATES);
143193
143257
  var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
143194
143258
  // package.json
143195
- var package_default = {
143259
+ var package_default2 = {
143196
143260
  name: "@settlemint/dalp-cli",
143197
- version: "3.1.19-release.34482856023",
143261
+ version: "3.1.19",
143198
143262
  private: false,
143199
143263
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
143200
143264
  homepage: "https://settlemint.com",
@@ -143253,7 +143317,7 @@ var package_default = {
143253
143317
  };
143254
143318
 
143255
143319
  // src/lib/vars.ts
143256
- var CLI_VERSION = package_default.version;
143320
+ var CLI_VERSION = package_default2.version;
143257
143321
  var CLI_USER_AGENT = `DALP CLI v${CLI_VERSION}`;
143258
143322
  function middlewareInjectedVar() {
143259
143323
  return exports_external.custom().optional().transform((value3) => value3);
@@ -206021,16 +206085,15 @@ identitiesCommand.command("register", {
206021
206085
  description: "Register an identity on-chain",
206022
206086
  options: exports_external.object({
206023
206087
  wallet: exports_external.string().describe("Wallet address"),
206024
- country: exports_external.string().describe("ISO 3166-1 alpha-2 country code (e.g. DE, US)")
206088
+ country: exports_external.string().describe("Country code")
206025
206089
  }),
206026
206090
  examples: [
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" }
206091
+ { options: { wallet: "0x1234...abcd", country: "276" }, description: "Register a German investor identity" },
206092
+ { options: { wallet: "0x5678...efgh", country: "840" }, description: "Register a US investor identity" }
206029
206093
  ],
206030
206094
  run(c) {
206031
- const country = c.options.country.toUpperCase();
206032
206095
  return c.var.orpc.system.identity.register({
206033
- body: { wallet: c.options.wallet, country }
206096
+ body: { wallet: c.options.wallet, country: c.options.country }
206034
206097
  });
206035
206098
  }
206036
206099
  });
@@ -207488,11 +207551,12 @@ settingsCommand.command("theme-get", {
207488
207551
  settingsCommand.command("theme-update", {
207489
207552
  description: "Update theme",
207490
207553
  options: exports_external.object({
207491
- theme: exports_external.string().describe("Full theme configuration as JSON")
207554
+ baseVersion: exports_external.coerce.number().describe("Base version for optimistic concurrency"),
207555
+ diff: exports_external.string().optional().describe("Theme diff as JSON")
207492
207556
  }),
207493
207557
  run(c) {
207494
- const theme = parseJsonOption(c.options.theme, "theme");
207495
- return c.var.orpc.settings.theme.update({ body: theme });
207558
+ const diff = c.options.diff ? parseJsonOption(c.options.diff, "diff") : undefined;
207559
+ return c.var.orpc.settings.theme.update({ body: { baseVersion: c.options.baseVersion, diff } });
207496
207560
  }
207497
207561
  });
207498
207562
  settingsCommand.command("theme-preview", {
@@ -212472,8 +212536,7 @@ usersCommand.command("assets", {
212472
212536
  wallet: exports_external.string().optional().describe("Wallet address")
212473
212537
  }),
212474
212538
  run(c) {
212475
- const { wallet } = c.options;
212476
- return c.var.orpc.user.assets({ query: wallet ? { filter: { wallet } } : {} });
212539
+ return c.var.orpc.user.assets({ query: { wallet: c.options.wallet } });
212477
212540
  }
212478
212541
  });
212479
212542
  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.34482856023",
3
+ "version": "3.1.19",
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",