@settlemint/dalp-cli 3.1.7-main.33327370788 → 3.1.7-main.33336103897
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 +96 -23
- package/dist/dalp.js.map +9 -9
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -50624,7 +50624,7 @@ var API_ERROR_CATEGORIES = new Set([
|
|
|
50624
50624
|
// ../sdk/package.json
|
|
50625
50625
|
var package_default = {
|
|
50626
50626
|
name: "@settlemint/dalp-sdk",
|
|
50627
|
-
version: "3.1.7-main.
|
|
50627
|
+
version: "3.1.7-main.33336103897",
|
|
50628
50628
|
private: false,
|
|
50629
50629
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
50630
50630
|
homepage: "https://settlemint.com",
|
|
@@ -62775,7 +62775,14 @@ var zComplianceProviderHealth = strictObject({
|
|
|
62775
62775
|
message: string2().nullable()
|
|
62776
62776
|
});
|
|
62777
62777
|
var zOptionalComplianceProviderHealth = zComplianceProviderHealth.nullable();
|
|
62778
|
-
var
|
|
62778
|
+
var zJsonValue = union([
|
|
62779
|
+
boolean2(),
|
|
62780
|
+
number2(),
|
|
62781
|
+
string2(),
|
|
62782
|
+
array(lazy(() => zJsonValue)),
|
|
62783
|
+
record(string2(), lazy(() => zJsonValue))
|
|
62784
|
+
]).nullable();
|
|
62785
|
+
var zComplianceNotificationChannel = record(string2(), zJsonValue);
|
|
62779
62786
|
var zComplianceProviderTopic = strictObject({
|
|
62780
62787
|
providerId: uuid2().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/),
|
|
62781
62788
|
topicName: zClaimTopic1,
|
|
@@ -62821,7 +62828,15 @@ var zSumsubCredentials = strictObject({
|
|
|
62821
62828
|
});
|
|
62822
62829
|
var zComplianceProviderWebhookAuthModeEncoded = zComplianceProviderWebhookAuthMode.nullable();
|
|
62823
62830
|
var zComplianceWebhookIpAllowlist1 = array(string2());
|
|
62824
|
-
var
|
|
62831
|
+
var zJsonValue1 = union([
|
|
62832
|
+
boolean2(),
|
|
62833
|
+
number2(),
|
|
62834
|
+
string2(),
|
|
62835
|
+
array(lazy(() => zJsonValue1)),
|
|
62836
|
+
record(string2(), lazy(() => zJsonValue1))
|
|
62837
|
+
]).nullable();
|
|
62838
|
+
var zComplianceNotificationChannel1 = record(string2(), zJsonValue1);
|
|
62839
|
+
var zComplianceNotificationChannels = array(zComplianceNotificationChannel1);
|
|
62825
62840
|
var zComplianceNotificationChannelsEncoded = zComplianceNotificationChannels.nullable();
|
|
62826
62841
|
var zComplianceProviderTopicRequest = strictObject({
|
|
62827
62842
|
topicName: zClaimTopic1,
|
|
@@ -63000,6 +63015,26 @@ var zCreateVeriffProviderRequest = strictObject({
|
|
|
63000
63015
|
firstTopic: zComplianceProviderTopicRequest,
|
|
63001
63016
|
walletVerification: zComplianceProviderWalletVerification.optional()
|
|
63002
63017
|
});
|
|
63018
|
+
var zJsonValue2 = union([
|
|
63019
|
+
boolean2(),
|
|
63020
|
+
number2(),
|
|
63021
|
+
string2(),
|
|
63022
|
+
array(lazy(() => zJsonValue2)),
|
|
63023
|
+
record(string2(), lazy(() => zJsonValue2))
|
|
63024
|
+
]).nullable();
|
|
63025
|
+
var zComplianceNotificationChannel2 = record(string2(), zJsonValue2);
|
|
63026
|
+
var zComplianceProviderTopic1 = strictObject({
|
|
63027
|
+
providerId: uuid2().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/),
|
|
63028
|
+
topicName: zClaimTopic1,
|
|
63029
|
+
topicId: string2(),
|
|
63030
|
+
webhookUrlToken: uuid2().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/),
|
|
63031
|
+
status: zComplianceProviderStatus,
|
|
63032
|
+
revocationSeverityThreshold: int(),
|
|
63033
|
+
notificationChannels: array(zComplianceNotificationChannel2),
|
|
63034
|
+
lastActivity: zComplianceProviderLastActivity.nullable(),
|
|
63035
|
+
createdAt: string2(),
|
|
63036
|
+
updatedAt: string2()
|
|
63037
|
+
});
|
|
63003
63038
|
var zComplianceProviderWithTopics = strictObject({
|
|
63004
63039
|
id: uuid2().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/),
|
|
63005
63040
|
providerKind: zComplianceProviderKind,
|
|
@@ -63016,7 +63051,7 @@ var zComplianceProviderWithTopics = strictObject({
|
|
|
63016
63051
|
lastHealthCheck: zOptionalComplianceProviderHealth,
|
|
63017
63052
|
createdAt: string2(),
|
|
63018
63053
|
updatedAt: string2(),
|
|
63019
|
-
topics: array(
|
|
63054
|
+
topics: array(zComplianceProviderTopic1)
|
|
63020
63055
|
});
|
|
63021
63056
|
var zComplianceProviderWithTopicsResponse = strictObject({
|
|
63022
63057
|
data: zComplianceProviderWithTopics,
|
|
@@ -63122,14 +63157,14 @@ var zComplianceProviderHealth1 = strictObject({
|
|
|
63122
63157
|
message: string2().nullable()
|
|
63123
63158
|
});
|
|
63124
63159
|
var zOptionalComplianceProviderHealth1 = zComplianceProviderHealth1.nullable();
|
|
63125
|
-
var
|
|
63160
|
+
var zComplianceProviderTopic2 = strictObject({
|
|
63126
63161
|
providerId: uuid2().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/),
|
|
63127
63162
|
topicName: zClaimTopic1,
|
|
63128
63163
|
topicId: string2(),
|
|
63129
63164
|
webhookUrlToken: uuid2().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$/),
|
|
63130
63165
|
status: zComplianceProviderStatus,
|
|
63131
63166
|
revocationSeverityThreshold: int(),
|
|
63132
|
-
notificationChannels: array(
|
|
63167
|
+
notificationChannels: array(zComplianceNotificationChannel1),
|
|
63133
63168
|
lastActivity: zComplianceProviderLastActivity1.nullable(),
|
|
63134
63169
|
createdAt: string2(),
|
|
63135
63170
|
updatedAt: string2()
|
|
@@ -63150,7 +63185,7 @@ var zComplianceProviderWithTopics1 = strictObject({
|
|
|
63150
63185
|
lastHealthCheck: zOptionalComplianceProviderHealth1,
|
|
63151
63186
|
createdAt: string2(),
|
|
63152
63187
|
updatedAt: string2(),
|
|
63153
|
-
topics: array(
|
|
63188
|
+
topics: array(zComplianceProviderTopic2)
|
|
63154
63189
|
});
|
|
63155
63190
|
var zComplianceProviderRevokeResult = strictObject({
|
|
63156
63191
|
provider: zComplianceProviderWithTopics1
|
|
@@ -63230,7 +63265,7 @@ var zComplianceProviderWebhookAddRequest = strictObject({
|
|
|
63230
63265
|
walletVerification: zUserVerification1.optional()
|
|
63231
63266
|
});
|
|
63232
63267
|
var zComplianceProviderWebhookAddOutputItem = strictObject({
|
|
63233
|
-
topic:
|
|
63268
|
+
topic: zComplianceProviderTopic2
|
|
63234
63269
|
});
|
|
63235
63270
|
var zComplianceProviderWebhookAddOutputItemResponse = strictObject({
|
|
63236
63271
|
data: zComplianceProviderWebhookAddOutputItem,
|
|
@@ -75209,10 +75244,34 @@ var zSystemRoleMutationAccounts1Writable = union([
|
|
|
75209
75244
|
]);
|
|
75210
75245
|
var zAssetExtensionArrayWritable = array(zAssetExtension);
|
|
75211
75246
|
var zOptionalComplianceWebhookIpAllowlistWritable = zComplianceWebhookIpAllowlist.nullable();
|
|
75247
|
+
var zJsonValueWritable = union([
|
|
75248
|
+
boolean2(),
|
|
75249
|
+
number2(),
|
|
75250
|
+
string2(),
|
|
75251
|
+
array(lazy(() => zJsonValueWritable)),
|
|
75252
|
+
record(string2(), lazy(() => zJsonValueWritable))
|
|
75253
|
+
]).nullable();
|
|
75254
|
+
var zComplianceNotificationChannelWritable = record(string2(), zJsonValueWritable);
|
|
75212
75255
|
var zComplianceProviderWebhookAuthModeEncodedWritable = zComplianceProviderWebhookAuthMode.nullable();
|
|
75213
|
-
var
|
|
75256
|
+
var zJsonValue1Writable = union([
|
|
75257
|
+
boolean2(),
|
|
75258
|
+
number2(),
|
|
75259
|
+
string2(),
|
|
75260
|
+
array(lazy(() => zJsonValue1Writable)),
|
|
75261
|
+
record(string2(), lazy(() => zJsonValue1Writable))
|
|
75262
|
+
]).nullable();
|
|
75263
|
+
var zComplianceNotificationChannel1Writable = record(string2(), zJsonValue1Writable);
|
|
75264
|
+
var zComplianceNotificationChannelsWritable = array(zComplianceNotificationChannel1Writable);
|
|
75214
75265
|
var zComplianceNotificationChannelsEncodedWritable = zComplianceNotificationChannelsWritable.nullable();
|
|
75215
75266
|
var zOnfidoRegionEncodedWritable = zOnfidoRegion.nullable();
|
|
75267
|
+
var zJsonValue2Writable = union([
|
|
75268
|
+
boolean2(),
|
|
75269
|
+
number2(),
|
|
75270
|
+
string2(),
|
|
75271
|
+
array(lazy(() => zJsonValue2Writable)),
|
|
75272
|
+
record(string2(), lazy(() => zJsonValue2Writable))
|
|
75273
|
+
]).nullable();
|
|
75274
|
+
var zComplianceNotificationChannel2Writable = record(string2(), zJsonValue2Writable);
|
|
75216
75275
|
var zAssetTypeOrSlug1Writable = union([
|
|
75217
75276
|
zAssetType,
|
|
75218
75277
|
zAssetTypeTemplateSlug
|
|
@@ -109379,6 +109438,11 @@ __export(exports_schemas3, {
|
|
|
109379
109438
|
zComplianceModuleV2ItemCollectionResponse: () => zComplianceModuleV2ItemCollectionResponse,
|
|
109380
109439
|
zComplianceModuleV2ItemEncoded: () => zComplianceModuleV2ItemEncoded,
|
|
109381
109440
|
zComplianceNotificationChannel: () => zComplianceNotificationChannel,
|
|
109441
|
+
zComplianceNotificationChannel1: () => zComplianceNotificationChannel1,
|
|
109442
|
+
zComplianceNotificationChannel1Writable: () => zComplianceNotificationChannel1Writable,
|
|
109443
|
+
zComplianceNotificationChannel2: () => zComplianceNotificationChannel2,
|
|
109444
|
+
zComplianceNotificationChannel2Writable: () => zComplianceNotificationChannel2Writable,
|
|
109445
|
+
zComplianceNotificationChannelWritable: () => zComplianceNotificationChannelWritable,
|
|
109382
109446
|
zComplianceNotificationChannels: () => zComplianceNotificationChannels,
|
|
109383
109447
|
zComplianceNotificationChannelsEncoded: () => zComplianceNotificationChannelsEncoded,
|
|
109384
109448
|
zComplianceNotificationChannelsEncodedWritable: () => zComplianceNotificationChannelsEncodedWritable,
|
|
@@ -109404,6 +109468,7 @@ __export(exports_schemas3, {
|
|
|
109404
109468
|
zComplianceProviderStatus: () => zComplianceProviderStatus,
|
|
109405
109469
|
zComplianceProviderTopic: () => zComplianceProviderTopic,
|
|
109406
109470
|
zComplianceProviderTopic1: () => zComplianceProviderTopic1,
|
|
109471
|
+
zComplianceProviderTopic2: () => zComplianceProviderTopic2,
|
|
109407
109472
|
zComplianceProviderTopicRequest: () => zComplianceProviderTopicRequest,
|
|
109408
109473
|
zComplianceProviderVerdictActivity: () => zComplianceProviderVerdictActivity,
|
|
109409
109474
|
zComplianceProviderVerdictActivity1: () => zComplianceProviderVerdictActivity1,
|
|
@@ -110591,6 +110656,12 @@ __export(exports_schemas3, {
|
|
|
110591
110656
|
zJsonRpcRequest: () => zJsonRpcRequest,
|
|
110592
110657
|
zJsonRpcResponse: () => zJsonRpcResponse,
|
|
110593
110658
|
zJsonRpcSuccessResponse: () => zJsonRpcSuccessResponse,
|
|
110659
|
+
zJsonValue: () => zJsonValue,
|
|
110660
|
+
zJsonValue1: () => zJsonValue1,
|
|
110661
|
+
zJsonValue1Writable: () => zJsonValue1Writable,
|
|
110662
|
+
zJsonValue2: () => zJsonValue2,
|
|
110663
|
+
zJsonValue2Writable: () => zJsonValue2Writable,
|
|
110664
|
+
zJsonValueWritable: () => zJsonValueWritable,
|
|
110594
110665
|
zJumioCredentials: () => zJumioCredentials,
|
|
110595
110666
|
zJumioCredentialsSet: () => zJumioCredentialsSet,
|
|
110596
110667
|
zJumioRegion: () => zJumioRegion,
|
|
@@ -183263,20 +183334,19 @@ var REL_DESCRIPTION = {
|
|
|
183263
183334
|
self: "Re-fetch this resource",
|
|
183264
183335
|
history: "Fetch related history"
|
|
183265
183336
|
};
|
|
183266
|
-
|
|
183267
|
-
|
|
183268
|
-
}
|
|
183337
|
+
var jsonBagSchema = exports_external.record(exports_external.string(), exports_external.json());
|
|
183338
|
+
var isJsonBag = (value) => jsonBagSchema.safeParse(value).success;
|
|
183269
183339
|
function extractResourceLinks(value) {
|
|
183270
|
-
if (!
|
|
183340
|
+
if (!isJsonBag(value)) {
|
|
183271
183341
|
return;
|
|
183272
183342
|
}
|
|
183273
183343
|
const { links: direct, data } = value;
|
|
183274
|
-
if (
|
|
183344
|
+
if (isJsonBag(direct)) {
|
|
183275
183345
|
return linksFromRecord(direct);
|
|
183276
183346
|
}
|
|
183277
|
-
if (
|
|
183347
|
+
if (isJsonBag(data)) {
|
|
183278
183348
|
const { links: nested } = data;
|
|
183279
|
-
if (
|
|
183349
|
+
if (isJsonBag(nested)) {
|
|
183280
183350
|
return linksFromRecord(nested);
|
|
183281
183351
|
}
|
|
183282
183352
|
}
|
|
@@ -183436,16 +183506,16 @@ function makeCliError(options) {
|
|
|
183436
183506
|
function isCliFailure(error61) {
|
|
183437
183507
|
return typeof error61 === "object" && error61 !== null && Reflect.get(error61, "name") === "CliError" && typeof Reflect.get(error61, "code") === "string" && typeof Reflect.get(error61, "message") === "string";
|
|
183438
183508
|
}
|
|
183439
|
-
function
|
|
183509
|
+
function isRecord2(value) {
|
|
183440
183510
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
183441
183511
|
}
|
|
183442
183512
|
function extractWireFailure(error61) {
|
|
183443
|
-
if (!
|
|
183513
|
+
if (!isRecord2(error61)) {
|
|
183444
183514
|
return;
|
|
183445
183515
|
}
|
|
183446
183516
|
const message2 = typeof error61.message === "string" ? error61.message : undefined;
|
|
183447
183517
|
const code = typeof error61.code === "string" ? error61.code : undefined;
|
|
183448
|
-
const data =
|
|
183518
|
+
const data = isRecord2(error61.data) ? error61.data : undefined;
|
|
183449
183519
|
const whyFromData = data !== undefined && typeof data.why === "string" ? data.why : undefined;
|
|
183450
183520
|
const fixFromData = data !== undefined && typeof data.fix === "string" ? data.fix : undefined;
|
|
183451
183521
|
const whyTop = typeof error61.why === "string" ? error61.why : undefined;
|
|
@@ -183632,7 +183702,7 @@ async function runCommand(context, operation, errorContext = UNKNOWN_COMMAND_ERR
|
|
|
183632
183702
|
// package.json
|
|
183633
183703
|
var package_default2 = {
|
|
183634
183704
|
name: "@settlemint/dalp-cli",
|
|
183635
|
-
version: "3.1.7-main.
|
|
183705
|
+
version: "3.1.7-main.33336103897",
|
|
183636
183706
|
private: false,
|
|
183637
183707
|
description: "CLI for the Digital Asset Lifecycle Platform \u2014 manage tokens, identities, compliance, and more from the command line.",
|
|
183638
183708
|
homepage: "https://settlemint.com",
|
|
@@ -184614,6 +184684,9 @@ async function settleIfNeeded(options) {
|
|
|
184614
184684
|
}
|
|
184615
184685
|
|
|
184616
184686
|
// src/lib/sdk-cli-schema.ts
|
|
184687
|
+
var cliValueSchema = exports_external.union([exports_external.json(), exports_external.date(), exports_external.bigint(), exports_external.undefined()]);
|
|
184688
|
+
var looseBagSchema = exports_external.record(exports_external.string(), cliValueSchema);
|
|
184689
|
+
var parseLooseBag = (value) => looseBagSchema.parse(value);
|
|
184617
184690
|
function zodDefType(schema) {
|
|
184618
184691
|
const def = Reflect.get(schema, "def");
|
|
184619
184692
|
return def?.type ?? Reflect.get(schema, "type");
|
|
@@ -185001,8 +185074,8 @@ function makeLeafHandler(ops) {
|
|
|
185001
185074
|
})
|
|
185002
185075
|
});
|
|
185003
185076
|
}
|
|
185004
|
-
const argsBag = c.args ?? {};
|
|
185005
|
-
const optionsBag = c.options ?? {};
|
|
185077
|
+
const argsBag = parseLooseBag(c.args ?? {});
|
|
185078
|
+
const optionsBag = parseLooseBag(c.options ?? {});
|
|
185006
185079
|
const agent = c.agent === true;
|
|
185007
185080
|
const status = createCliStatus({ agent });
|
|
185008
185081
|
const label = ops.map((op) => op.commandPath.join(" ")).join(" | ");
|
|
@@ -185371,4 +185444,4 @@ if (false) {}
|
|
|
185371
185444
|
// src/bin.ts
|
|
185372
185445
|
await cli.serve();
|
|
185373
185446
|
|
|
185374
|
-
//# debugId=
|
|
185447
|
+
//# debugId=177D762BBEC4ECA364756E2164756E21
|