@settlemint/dalp-cli 3.0.8 → 3.0.10-release.29318451174
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 +146 -6
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -91301,6 +91301,62 @@ var ENTRIES_INDEX = {
|
|
|
91301
91301
|
owner: "dapi",
|
|
91302
91302
|
orpcCode: "SIGNED_PERMIT_DEADLINE_EXPIRED"
|
|
91303
91303
|
},
|
|
91304
|
+
"DALP-9083": {
|
|
91305
|
+
id: "DALP-9083",
|
|
91306
|
+
kind: "route",
|
|
91307
|
+
category: "domain",
|
|
91308
|
+
status: 409,
|
|
91309
|
+
retryable: false,
|
|
91310
|
+
expectedClientError: true,
|
|
91311
|
+
public: {
|
|
91312
|
+
message: "A member of this organization is already KYC-approved with this national ID",
|
|
91313
|
+
why: "Within an organization an approved national ID can belong to only one person. Another member of this organization already holds an approved KYC record with the same national ID and country, so approving this one would leave the organization with two people sharing it and would break national-ID lookups for both.",
|
|
91314
|
+
fix: "Confirm whether the two records describe the same person. If they are different people from different countries, set the correct country on each record before approving. If they are the same person, resolve the existing record instead of approving a second one."
|
|
91315
|
+
},
|
|
91316
|
+
observability: {
|
|
91317
|
+
severity: "info",
|
|
91318
|
+
otelEventName: "dapi.error",
|
|
91319
|
+
metricAttributeKey: "dapi.error.id",
|
|
91320
|
+
dimensions: [
|
|
91321
|
+
"error.id",
|
|
91322
|
+
"error.category",
|
|
91323
|
+
"surface",
|
|
91324
|
+
"route",
|
|
91325
|
+
"status_class",
|
|
91326
|
+
"retryable"
|
|
91327
|
+
]
|
|
91328
|
+
},
|
|
91329
|
+
owner: "dapi",
|
|
91330
|
+
orpcCode: "USER_KYC_DUPLICATE_NATIONAL_ID_IN_ORG"
|
|
91331
|
+
},
|
|
91332
|
+
"DALP-9084": {
|
|
91333
|
+
id: "DALP-9084",
|
|
91334
|
+
kind: "route",
|
|
91335
|
+
category: "domain",
|
|
91336
|
+
status: 409,
|
|
91337
|
+
retryable: false,
|
|
91338
|
+
expectedClientError: true,
|
|
91339
|
+
public: {
|
|
91340
|
+
message: "This organization already has a member with this national ID",
|
|
91341
|
+
why: "The person accepting this invitation is KYC-approved with a national ID that a current member of this organization also holds. Adding them would leave two people sharing the same approved national ID in one organization and would break national-ID lookups for both.",
|
|
91342
|
+
fix: "Confirm whether the two records describe the same person. If they are different people, resolve which record should stay approved in this organization before the invitation is accepted."
|
|
91343
|
+
},
|
|
91344
|
+
observability: {
|
|
91345
|
+
severity: "info",
|
|
91346
|
+
otelEventName: "dapi.error",
|
|
91347
|
+
metricAttributeKey: "dapi.error.id",
|
|
91348
|
+
dimensions: [
|
|
91349
|
+
"error.id",
|
|
91350
|
+
"error.category",
|
|
91351
|
+
"surface",
|
|
91352
|
+
"route",
|
|
91353
|
+
"status_class",
|
|
91354
|
+
"retryable"
|
|
91355
|
+
]
|
|
91356
|
+
},
|
|
91357
|
+
owner: "dapi",
|
|
91358
|
+
orpcCode: "USER_KYC_DUPLICATE_NATIONAL_ID_ON_INVITE"
|
|
91359
|
+
},
|
|
91304
91360
|
"DALP-CHAIN-EMPTY-REVERT": {
|
|
91305
91361
|
id: "DALP-CHAIN-EMPTY-REVERT",
|
|
91306
91362
|
kind: "contract",
|
|
@@ -101609,6 +101665,8 @@ var DALP_ERROR_TYPED_FIELD_NAMES = {
|
|
|
101609
101665
|
"suggestedAction"
|
|
101610
101666
|
],
|
|
101611
101667
|
"DALP-9082": [],
|
|
101668
|
+
"DALP-9083": [],
|
|
101669
|
+
"DALP-9084": [],
|
|
101612
101670
|
"DALP-CHAIN-EMPTY-REVERT": [
|
|
101613
101671
|
"args",
|
|
101614
101672
|
"correlationId",
|
|
@@ -111613,6 +111671,8 @@ var DALP_ERROR_DATA_SCHEMA_BY_ID = {
|
|
|
111613
111671
|
suggestedAction: exports_external.string()
|
|
111614
111672
|
}).catchall(DALP_ORPC_JSON_VALUE_SCHEMA),
|
|
111615
111673
|
"DALP-9082": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA,
|
|
111674
|
+
"DALP-9083": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA,
|
|
111675
|
+
"DALP-9084": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA,
|
|
111616
111676
|
"DALP-CHAIN-EMPTY-REVERT": DALP_ORPC_ERROR_DATA_BASE_SCHEMA.extend({
|
|
111617
111677
|
args: exports_external.record(exports_external.string(), exports_external.string()),
|
|
111618
111678
|
correlationId: exports_external.string(),
|
|
@@ -116411,6 +116471,14 @@ var CUSTOM_ERRORS = {
|
|
|
116411
116471
|
status: 409,
|
|
116412
116472
|
message: "Document upload requires a draft version"
|
|
116413
116473
|
},
|
|
116474
|
+
USER_KYC_DUPLICATE_NATIONAL_ID_IN_ORG: {
|
|
116475
|
+
status: 409,
|
|
116476
|
+
message: "A member of this organization is already KYC-approved with this national ID"
|
|
116477
|
+
},
|
|
116478
|
+
USER_KYC_DUPLICATE_NATIONAL_ID_ON_INVITE: {
|
|
116479
|
+
status: 409,
|
|
116480
|
+
message: "This organization already has a member with this national ID"
|
|
116481
|
+
},
|
|
116414
116482
|
USER_KYC_FAILED_TO_APPROVE_VERSION: {
|
|
116415
116483
|
status: 500,
|
|
116416
116484
|
message: "Failed to approve KYC version"
|
|
@@ -139354,6 +139422,12 @@ var transactionV2Contract = {
|
|
|
139354
139422
|
var UserReadByNationalIdInputSchema = exports_external.object({
|
|
139355
139423
|
nationalId: exports_external.string().min(1).max(50).trim().meta({ description: "The national ID to look up (exact match against approved KYC)", examples: ["AB123456"] })
|
|
139356
139424
|
});
|
|
139425
|
+
var UserReadByNationalIdQuerySchema = exports_external.object({
|
|
139426
|
+
country: exports_external.string().min(1).max(100).trim().optional().meta({
|
|
139427
|
+
description: "Optional issuing country to disambiguate when a national ID is shared across countries within the organization.",
|
|
139428
|
+
examples: ["DE"]
|
|
139429
|
+
})
|
|
139430
|
+
});
|
|
139357
139431
|
var USER_ADMIN_LIST_COLLECTION_FIELDS = {
|
|
139358
139432
|
name: textField(),
|
|
139359
139433
|
email: textField(),
|
|
@@ -139754,10 +139828,10 @@ var readByWallet3 = v2Contract.route({
|
|
|
139754
139828
|
var readByNationalId = v2Contract.route({
|
|
139755
139829
|
method: "GET",
|
|
139756
139830
|
path: "/national-ids/{nationalId}/user",
|
|
139757
|
-
description: "Look up a single user by their approved national ID. Performs an exact, case-sensitive match against KYC-verified identities only.
|
|
139831
|
+
description: "Look up a single user by their approved national ID. Performs an exact, case-sensitive match against KYC-verified identities only. Pass the optional `country` query param to disambiguate when a national ID is shared across countries within the organization; without it, a genuine in-org duplicate returns CONFLICT.",
|
|
139758
139832
|
successDescription: "User retrieved successfully.",
|
|
139759
139833
|
tags: [V2_TAG.user]
|
|
139760
|
-
}).input(v2Input.
|
|
139834
|
+
}).input(v2Input.paramsQuery(UserReadByNationalIdInputSchema, UserReadByNationalIdQuerySchema.optional())).output(createSingleResponse(UserReadOutputSchema));
|
|
139761
139835
|
var assets3 = v2Contract.route({
|
|
139762
139836
|
method: "GET",
|
|
139763
139837
|
path: "/user-asset-balances",
|
|
@@ -140563,7 +140637,7 @@ function normalizeDalpBaseUrl(url2) {
|
|
|
140563
140637
|
}
|
|
140564
140638
|
var package_default = {
|
|
140565
140639
|
name: "@settlemint/dalp-sdk",
|
|
140566
|
-
version: "3.0.
|
|
140640
|
+
version: "3.0.10-release.29318451174",
|
|
140567
140641
|
private: false,
|
|
140568
140642
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
140569
140643
|
homepage: "https://settlemint.com",
|
|
@@ -141737,7 +141811,9 @@ var DAPI_ROUTE_ERROR_IDS = {
|
|
|
141737
141811
|
"DALP-9078": "DALP-9078",
|
|
141738
141812
|
"DALP-9079": "DALP-9079",
|
|
141739
141813
|
"DALP-9080": "DALP-9080",
|
|
141740
|
-
"DALP-9082": "DALP-9082"
|
|
141814
|
+
"DALP-9082": "DALP-9082",
|
|
141815
|
+
"DALP-9083": "DALP-9083",
|
|
141816
|
+
"DALP-9084": "DALP-9084"
|
|
141741
141817
|
};
|
|
141742
141818
|
var DAPI_ERROR_IDS = {
|
|
141743
141819
|
...DAPI_ROUTE_ERROR_IDS,
|
|
@@ -141760,7 +141836,7 @@ var failedStateSet = new Set(FAILED_TRANSACTION_STATES);
|
|
|
141760
141836
|
// package.json
|
|
141761
141837
|
var package_default2 = {
|
|
141762
141838
|
name: "@settlemint/dalp-cli",
|
|
141763
|
-
version: "3.0.
|
|
141839
|
+
version: "3.0.10-release.29318451174",
|
|
141764
141840
|
private: false,
|
|
141765
141841
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
141766
141842
|
homepage: "https://settlemint.com",
|
|
@@ -182789,6 +182865,62 @@ var ENTRIES_INDEX2 = {
|
|
|
182789
182865
|
owner: "dapi",
|
|
182790
182866
|
orpcCode: "SIGNED_PERMIT_DEADLINE_EXPIRED"
|
|
182791
182867
|
},
|
|
182868
|
+
"DALP-9083": {
|
|
182869
|
+
id: "DALP-9083",
|
|
182870
|
+
kind: "route",
|
|
182871
|
+
category: "domain",
|
|
182872
|
+
status: 409,
|
|
182873
|
+
retryable: false,
|
|
182874
|
+
expectedClientError: true,
|
|
182875
|
+
public: {
|
|
182876
|
+
message: "A member of this organization is already KYC-approved with this national ID",
|
|
182877
|
+
why: "Within an organization an approved national ID can belong to only one person. Another member of this organization already holds an approved KYC record with the same national ID and country, so approving this one would leave the organization with two people sharing it and would break national-ID lookups for both.",
|
|
182878
|
+
fix: "Confirm whether the two records describe the same person. If they are different people from different countries, set the correct country on each record before approving. If they are the same person, resolve the existing record instead of approving a second one."
|
|
182879
|
+
},
|
|
182880
|
+
observability: {
|
|
182881
|
+
severity: "info",
|
|
182882
|
+
otelEventName: "dapi.error",
|
|
182883
|
+
metricAttributeKey: "dapi.error.id",
|
|
182884
|
+
dimensions: [
|
|
182885
|
+
"error.id",
|
|
182886
|
+
"error.category",
|
|
182887
|
+
"surface",
|
|
182888
|
+
"route",
|
|
182889
|
+
"status_class",
|
|
182890
|
+
"retryable"
|
|
182891
|
+
]
|
|
182892
|
+
},
|
|
182893
|
+
owner: "dapi",
|
|
182894
|
+
orpcCode: "USER_KYC_DUPLICATE_NATIONAL_ID_IN_ORG"
|
|
182895
|
+
},
|
|
182896
|
+
"DALP-9084": {
|
|
182897
|
+
id: "DALP-9084",
|
|
182898
|
+
kind: "route",
|
|
182899
|
+
category: "domain",
|
|
182900
|
+
status: 409,
|
|
182901
|
+
retryable: false,
|
|
182902
|
+
expectedClientError: true,
|
|
182903
|
+
public: {
|
|
182904
|
+
message: "This organization already has a member with this national ID",
|
|
182905
|
+
why: "The person accepting this invitation is KYC-approved with a national ID that a current member of this organization also holds. Adding them would leave two people sharing the same approved national ID in one organization and would break national-ID lookups for both.",
|
|
182906
|
+
fix: "Confirm whether the two records describe the same person. If they are different people, resolve which record should stay approved in this organization before the invitation is accepted."
|
|
182907
|
+
},
|
|
182908
|
+
observability: {
|
|
182909
|
+
severity: "info",
|
|
182910
|
+
otelEventName: "dapi.error",
|
|
182911
|
+
metricAttributeKey: "dapi.error.id",
|
|
182912
|
+
dimensions: [
|
|
182913
|
+
"error.id",
|
|
182914
|
+
"error.category",
|
|
182915
|
+
"surface",
|
|
182916
|
+
"route",
|
|
182917
|
+
"status_class",
|
|
182918
|
+
"retryable"
|
|
182919
|
+
]
|
|
182920
|
+
},
|
|
182921
|
+
owner: "dapi",
|
|
182922
|
+
orpcCode: "USER_KYC_DUPLICATE_NATIONAL_ID_ON_INVITE"
|
|
182923
|
+
},
|
|
182792
182924
|
"DALP-CHAIN-EMPTY-REVERT": {
|
|
182793
182925
|
id: "DALP-CHAIN-EMPTY-REVERT",
|
|
182794
182926
|
kind: "contract",
|
|
@@ -193114,6 +193246,8 @@ var DALP_ERROR_TYPED_FIELD_NAMES2 = {
|
|
|
193114
193246
|
"suggestedAction"
|
|
193115
193247
|
],
|
|
193116
193248
|
"DALP-9082": [],
|
|
193249
|
+
"DALP-9083": [],
|
|
193250
|
+
"DALP-9084": [],
|
|
193117
193251
|
"DALP-CHAIN-EMPTY-REVERT": [
|
|
193118
193252
|
"args",
|
|
193119
193253
|
"correlationId",
|
|
@@ -203120,6 +203254,8 @@ var DALP_ERROR_DATA_SCHEMA_BY_ID2 = {
|
|
|
203120
203254
|
suggestedAction: exports_external.string()
|
|
203121
203255
|
}).catchall(DALP_ORPC_JSON_VALUE_SCHEMA2),
|
|
203122
203256
|
"DALP-9082": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA2,
|
|
203257
|
+
"DALP-9083": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA2,
|
|
203258
|
+
"DALP-9084": DALP_ORPC_ERROR_DATA_WIRE_SCHEMA2,
|
|
203123
203259
|
"DALP-CHAIN-EMPTY-REVERT": DALP_ORPC_ERROR_DATA_BASE_SCHEMA2.extend({
|
|
203124
203260
|
args: exports_external.record(exports_external.string(), exports_external.string()),
|
|
203125
203261
|
correlationId: exports_external.string(),
|
|
@@ -209719,9 +209855,13 @@ usersCommand.command("read-by-wallet", {
|
|
|
209719
209855
|
usersCommand.command("read-by-national-id", {
|
|
209720
209856
|
description: "Read user by national ID",
|
|
209721
209857
|
args: exports_external.object({ nationalId: exports_external.string().describe("National ID") }),
|
|
209858
|
+
options: exports_external.object({
|
|
209859
|
+
country: exports_external.string().optional().describe("Optional issuing country to disambiguate a national ID shared across countries")
|
|
209860
|
+
}),
|
|
209722
209861
|
run(c) {
|
|
209723
209862
|
return c.var.orpc.user.readByNationalId({
|
|
209724
|
-
params: { nationalId: c.args.nationalId }
|
|
209863
|
+
params: { nationalId: c.args.nationalId },
|
|
209864
|
+
query: { country: c.options.country }
|
|
209725
209865
|
});
|
|
209726
209866
|
}
|
|
209727
209867
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10-release.29318451174",
|
|
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",
|