@settlemint/dalp-cli 3.1.19 → 3.1.20-release.34580153911
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.
- package/dist/dalp.js +42 -105
- 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
|
|
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:
|
|
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(
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
128479
|
+
email: emailAddress().meta({
|
|
128472
128480
|
description: "Email address",
|
|
128473
128481
|
examples: ["john@example.com", "admin@company.org"]
|
|
128474
128482
|
}),
|
|
@@ -130413,11 +130421,16 @@ var OrganizationArchiveStateSchema = exports_external.object({
|
|
|
130413
130421
|
})
|
|
130414
130422
|
});
|
|
130415
130423
|
var OrganizationV2ArchiveOutputSchema = createSingleResponse(OrganizationArchiveStateSchema);
|
|
130424
|
+
var ORGANIZATION_STATUS_VALUES = ["active", "archived"];
|
|
130416
130425
|
var ORGANIZATIONS_COLLECTION_FIELDS = {
|
|
130417
130426
|
name: textField(),
|
|
130418
130427
|
slug: textField(),
|
|
130419
130428
|
createdAt: dateField(),
|
|
130420
|
-
archivedAt: dateField()
|
|
130429
|
+
archivedAt: dateField(),
|
|
130430
|
+
status: enumField(ORGANIZATION_STATUS_VALUES, {
|
|
130431
|
+
sortable: false,
|
|
130432
|
+
facetable: false
|
|
130433
|
+
})
|
|
130421
130434
|
};
|
|
130422
130435
|
var OrganizationV2ListInputSchema = createCollectionInputSchema(ORGANIZATIONS_COLLECTION_FIELDS, {
|
|
130423
130436
|
defaultSort: "createdAt",
|
|
@@ -132715,7 +132728,7 @@ var InvitationV2RetryOutputSchema = exports_external.object({
|
|
|
132715
132728
|
});
|
|
132716
132729
|
var InviteWithRolesPlatformRoleSchema = exports_external.enum(["owner", "member"]);
|
|
132717
132730
|
var InvitationV2InviteWithRolesInputSchema = exports_external.object({
|
|
132718
|
-
email:
|
|
132731
|
+
email: emailAddress("A valid email address is required"),
|
|
132719
132732
|
role: InviteWithRolesPlatformRoleSchema.default("member"),
|
|
132720
132733
|
onChainRoles: exports_external.array(systemAccessControlRole).min(1, "Select at least one on-chain role"),
|
|
132721
132734
|
walletVerification: UserVerificationSchema.optional()
|
|
@@ -141818,6 +141831,7 @@ var v2Contract2 = {
|
|
|
141818
141831
|
webhookReceipts: webhookReceiptsV2Contract
|
|
141819
141832
|
};
|
|
141820
141833
|
var rpcContract = v2Contract2;
|
|
141834
|
+
var rpcContract2 = rpcContract;
|
|
141821
141835
|
var DALP_SDK_ERROR_CODE = "DALP_SDK_ERROR";
|
|
141822
141836
|
var DALP_SDK_ERROR_CATEGORY = "sdk.configuration";
|
|
141823
141837
|
|
|
@@ -142030,89 +142044,11 @@ function normalizeDalpBaseUrl(url2) {
|
|
|
142030
142044
|
}
|
|
142031
142045
|
return `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}`;
|
|
142032
142046
|
}
|
|
142033
|
-
var
|
|
142034
|
-
|
|
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;
|
|
142047
|
+
var SDK_PACKAGE_VERSION = "3.1.20-release.34580153911";
|
|
142048
|
+
var SDK_VERSION = SDK_PACKAGE_VERSION;
|
|
142113
142049
|
var SDK_USER_AGENT = `DALP SDK v${SDK_VERSION}`;
|
|
142114
142050
|
var DEFAULT_MUTATION_PREFER = "wait=99";
|
|
142115
|
-
var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(
|
|
142051
|
+
var resolveSdkRpcMethod = inferRPCMethodFromContractRouter(rpcContract2);
|
|
142116
142052
|
function hasHeader(headers, headerName) {
|
|
142117
142053
|
const normalizedHeaderName = headerName.toLowerCase();
|
|
142118
142054
|
return Object.keys(headers).some((key) => key.toLowerCase() === normalizedHeaderName);
|
|
@@ -142145,14 +142081,14 @@ function createDalpClient(config3) {
|
|
|
142145
142081
|
const baseUrl = normalizeDalpBaseUrl(url2);
|
|
142146
142082
|
const plugins = [];
|
|
142147
142083
|
if (requestValidation) {
|
|
142148
|
-
plugins.push(new RequestValidationPlugin(
|
|
142084
|
+
plugins.push(new RequestValidationPlugin(rpcContract2));
|
|
142149
142085
|
}
|
|
142150
142086
|
if (responseValidation) {
|
|
142151
|
-
plugins.push(new ResponseValidationPlugin(
|
|
142087
|
+
plugins.push(new ResponseValidationPlugin(rpcContract2));
|
|
142152
142088
|
}
|
|
142153
142089
|
const innerFetch = customFetch ?? globalThis.fetch.bind(globalThis);
|
|
142154
142090
|
const wrappedFetch = (request, init) => fetchWithAttemptHeader(request, init, innerFetch);
|
|
142155
|
-
const link = new OpenAPILink(
|
|
142091
|
+
const link = new OpenAPILink(rpcContract2, {
|
|
142156
142092
|
url: `${baseUrl}/api/v2`,
|
|
142157
142093
|
headers: async (options, path4) => {
|
|
142158
142094
|
const method = await Promise.resolve(resolveSdkRpcMethod(options, path4));
|
|
@@ -143256,9 +143192,9 @@ var FAILED_TRANSACTION_STATES = ["FAILED", "DEAD_LETTER", "CANCELLED"];
|
|
|
143256
143192
|
var terminalStateSet2 = new Set(TERMINAL_TRANSACTION_STATES);
|
|
143257
143193
|
var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
|
|
143258
143194
|
// package.json
|
|
143259
|
-
var
|
|
143195
|
+
var package_default = {
|
|
143260
143196
|
name: "@settlemint/dalp-cli",
|
|
143261
|
-
version: "3.1.
|
|
143197
|
+
version: "3.1.20-release.34580153911",
|
|
143262
143198
|
private: false,
|
|
143263
143199
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
143264
143200
|
homepage: "https://settlemint.com",
|
|
@@ -143317,7 +143253,7 @@ var package_default2 = {
|
|
|
143317
143253
|
};
|
|
143318
143254
|
|
|
143319
143255
|
// src/lib/vars.ts
|
|
143320
|
-
var CLI_VERSION =
|
|
143256
|
+
var CLI_VERSION = package_default.version;
|
|
143321
143257
|
var CLI_USER_AGENT = `DALP CLI v${CLI_VERSION}`;
|
|
143322
143258
|
function middlewareInjectedVar() {
|
|
143323
143259
|
return exports_external.custom().optional().transform((value3) => value3);
|
|
@@ -206085,15 +206021,16 @@ identitiesCommand.command("register", {
|
|
|
206085
206021
|
description: "Register an identity on-chain",
|
|
206086
206022
|
options: exports_external.object({
|
|
206087
206023
|
wallet: exports_external.string().describe("Wallet address"),
|
|
206088
|
-
country: exports_external.string().describe("
|
|
206024
|
+
country: exports_external.string().describe("ISO 3166-1 alpha-2 country code (e.g. DE, US)")
|
|
206089
206025
|
}),
|
|
206090
206026
|
examples: [
|
|
206091
|
-
{ options: { wallet: "0x1234...abcd", country: "
|
|
206092
|
-
{ options: { wallet: "0x5678...efgh", country: "
|
|
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" }
|
|
206093
206029
|
],
|
|
206094
206030
|
run(c) {
|
|
206031
|
+
const country = c.options.country.toUpperCase();
|
|
206095
206032
|
return c.var.orpc.system.identity.register({
|
|
206096
|
-
body: { wallet: c.options.wallet, country
|
|
206033
|
+
body: { wallet: c.options.wallet, country }
|
|
206097
206034
|
});
|
|
206098
206035
|
}
|
|
206099
206036
|
});
|
|
@@ -207551,12 +207488,11 @@ settingsCommand.command("theme-get", {
|
|
|
207551
207488
|
settingsCommand.command("theme-update", {
|
|
207552
207489
|
description: "Update theme",
|
|
207553
207490
|
options: exports_external.object({
|
|
207554
|
-
|
|
207555
|
-
diff: exports_external.string().optional().describe("Theme diff as JSON")
|
|
207491
|
+
theme: exports_external.string().describe("Full theme configuration as JSON")
|
|
207556
207492
|
}),
|
|
207557
207493
|
run(c) {
|
|
207558
|
-
const
|
|
207559
|
-
return c.var.orpc.settings.theme.update({ body:
|
|
207494
|
+
const theme = parseJsonOption(c.options.theme, "theme");
|
|
207495
|
+
return c.var.orpc.settings.theme.update({ body: theme });
|
|
207560
207496
|
}
|
|
207561
207497
|
});
|
|
207562
207498
|
settingsCommand.command("theme-preview", {
|
|
@@ -212536,7 +212472,8 @@ usersCommand.command("assets", {
|
|
|
212536
212472
|
wallet: exports_external.string().optional().describe("Wallet address")
|
|
212537
212473
|
}),
|
|
212538
212474
|
run(c) {
|
|
212539
|
-
|
|
212475
|
+
const { wallet } = c.options;
|
|
212476
|
+
return c.var.orpc.user.assets({ query: wallet ? { filter: { wallet } } : {} });
|
|
212540
212477
|
}
|
|
212541
212478
|
});
|
|
212542
212479
|
usersCommand.command("stats", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.20-release.34580153911",
|
|
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",
|