@settlemint/dalp-cli 2.1.7-main.25573399350 → 2.1.7-main.25578066369
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 +332 -7
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -64728,6 +64728,21 @@ var DAPI_ROUTE_ERROR_ENTRIES = [
|
|
|
64728
64728
|
transports: ["orpc-rest", "orpc-rpc"]
|
|
64729
64729
|
})
|
|
64730
64730
|
},
|
|
64731
|
+
{
|
|
64732
|
+
code: "COMPLIANCE_TRANSACTION_REGISTER_FAILED",
|
|
64733
|
+
definition: dapiError({
|
|
64734
|
+
id: "DALP-0502",
|
|
64735
|
+
category: "dependency",
|
|
64736
|
+
status: 502,
|
|
64737
|
+
message: "Compliance provider rejected transaction registration.",
|
|
64738
|
+
why: "The provider transaction-registration call (Sumsub KYT) failed before DALP could persist the transaction-id mapping.",
|
|
64739
|
+
fix: "Verify provider credentials and the submitted transaction fields, then retry transaction registration.",
|
|
64740
|
+
retryable: false,
|
|
64741
|
+
expectedClientError: false,
|
|
64742
|
+
surfaces: ["orpc-v2-rest", "orpc-rpc"],
|
|
64743
|
+
transports: ["orpc-rest", "orpc-rpc"]
|
|
64744
|
+
})
|
|
64745
|
+
},
|
|
64731
64746
|
{
|
|
64732
64747
|
code: "CONTACT_NOT_FOUND",
|
|
64733
64748
|
definition: dapiError({
|
|
@@ -82482,8 +82497,21 @@ var contactsV2Contract = {
|
|
|
82482
82497
|
upsert: upsert3,
|
|
82483
82498
|
delete: del5
|
|
82484
82499
|
};
|
|
82485
|
-
var ComplianceProviderKindSchema = exports_external2.enum([
|
|
82500
|
+
var ComplianceProviderKindSchema = exports_external2.enum([
|
|
82501
|
+
"sumsub",
|
|
82502
|
+
"sumsub-aml",
|
|
82503
|
+
"sumsub-kyt",
|
|
82504
|
+
"complyadvantage",
|
|
82505
|
+
"elliptic",
|
|
82506
|
+
"jumio",
|
|
82507
|
+
"middesk",
|
|
82508
|
+
"onfido",
|
|
82509
|
+
"persona",
|
|
82510
|
+
"trulioo",
|
|
82511
|
+
"veriff"
|
|
82512
|
+
]);
|
|
82486
82513
|
var ComplianceProviderStatusSchema = exports_external2.enum(["pending", "active", "paused", "revoked", "failed"]);
|
|
82514
|
+
var ComplianceProviderWebhookAuthModeSchema = exports_external2.enum(["hmac", "basic_auth_ip_allowlist"]);
|
|
82487
82515
|
var ComplianceProviderLastActivitySchema = exports_external2.discriminatedUnion("kind", [
|
|
82488
82516
|
exports_external2.object({
|
|
82489
82517
|
kind: exports_external2.literal("verdict"),
|
|
@@ -82512,6 +82540,8 @@ var ComplianceProviderIntegrationSchema = exports_external2.object({
|
|
|
82512
82540
|
statusExplanation: exports_external2.string(),
|
|
82513
82541
|
issuerEoaAddress: ethereumAddress,
|
|
82514
82542
|
webhookUrlToken: exports_external2.uuid(),
|
|
82543
|
+
webhookAuthMode: ComplianceProviderWebhookAuthModeSchema,
|
|
82544
|
+
webhookIpAllowlist: exports_external2.array(exports_external2.string()).nullable(),
|
|
82515
82545
|
revocationSeverityThreshold: exports_external2.number().int().min(0).max(100),
|
|
82516
82546
|
pendingSecretExpiresAt: exports_external2.date().nullable(),
|
|
82517
82547
|
lastActivity: ComplianceProviderLastActivitySchema.nullable(),
|
|
@@ -82540,18 +82570,104 @@ var SumsubCredentialsSchema = exports_external2.object({
|
|
|
82540
82570
|
appToken: exports_external2.string().min(1),
|
|
82541
82571
|
secretKey: exports_external2.string().min(1)
|
|
82542
82572
|
});
|
|
82573
|
+
var SumsubAmlCredentialsSchema = exports_external2.object({
|
|
82574
|
+
apiToken: exports_external2.string().min(1),
|
|
82575
|
+
secretKey: exports_external2.string().min(1),
|
|
82576
|
+
webhookSigningSecret: exports_external2.string().min(1),
|
|
82577
|
+
levelName: exports_external2.string().min(1)
|
|
82578
|
+
});
|
|
82579
|
+
var SumsubKytCredentialsSchema = exports_external2.object({
|
|
82580
|
+
apiToken: exports_external2.string().min(1),
|
|
82581
|
+
secretKey: exports_external2.string().min(1),
|
|
82582
|
+
webhookSigningSecret: exports_external2.string().min(1),
|
|
82583
|
+
levelName: exports_external2.string().min(1)
|
|
82584
|
+
});
|
|
82543
82585
|
var EllipticCredentialsSchema = exports_external2.object({
|
|
82544
82586
|
apiKey: exports_external2.string().min(1),
|
|
82545
82587
|
apiSecret: exports_external2.string().min(1)
|
|
82546
82588
|
});
|
|
82589
|
+
var ComplyAdvantageCredentialsSchema = exports_external2.object({
|
|
82590
|
+
apiToken: exports_external2.string().min(1),
|
|
82591
|
+
webhookSigningSecret: exports_external2.string().min(1),
|
|
82592
|
+
meshClientId: exports_external2.string().min(1).optional(),
|
|
82593
|
+
meshClientSecret: exports_external2.string().min(1).optional()
|
|
82594
|
+
});
|
|
82595
|
+
var JumioRegionSchema = exports_external2.enum(["amer-1", "eu-1", "sg-1"]);
|
|
82596
|
+
var JumioCredentialsSchema = exports_external2.object({
|
|
82597
|
+
apiToken: exports_external2.string().min(1),
|
|
82598
|
+
apiSecret: exports_external2.string().min(1),
|
|
82599
|
+
region: JumioRegionSchema,
|
|
82600
|
+
basicAuthCredentials: exports_external2.string().min(1)
|
|
82601
|
+
});
|
|
82602
|
+
var MiddeskCredentialsSchema = exports_external2.object({
|
|
82603
|
+
apiKey: exports_external2.string().min(1),
|
|
82604
|
+
webhookSigningSecret: exports_external2.string().min(1)
|
|
82605
|
+
});
|
|
82606
|
+
var OnfidoRegionSchema = exports_external2.enum(["us", "eu", "ca"]);
|
|
82607
|
+
var OnfidoCredentialsSchema = exports_external2.object({
|
|
82608
|
+
apiToken: exports_external2.string().min(1),
|
|
82609
|
+
webhookSigningSecret: exports_external2.string().min(1),
|
|
82610
|
+
region: OnfidoRegionSchema.default("eu")
|
|
82611
|
+
});
|
|
82612
|
+
var PersonaCredentialsSchema = exports_external2.object({
|
|
82613
|
+
apiToken: exports_external2.string().min(1),
|
|
82614
|
+
webhookSigningSecret: exports_external2.string().min(1),
|
|
82615
|
+
inquiryTemplateId: exports_external2.string().min(1).optional()
|
|
82616
|
+
});
|
|
82617
|
+
var TruliooCredentialsSchema = exports_external2.object({
|
|
82618
|
+
apiKey: exports_external2.string().min(1),
|
|
82619
|
+
apiSecret: exports_external2.string().min(1),
|
|
82620
|
+
webhookSigningSecret: exports_external2.string().min(1)
|
|
82621
|
+
});
|
|
82622
|
+
var VeriffCredentialsSchema = exports_external2.object({
|
|
82623
|
+
apiKey: exports_external2.string().min(1),
|
|
82624
|
+
apiSecret: exports_external2.string().min(1),
|
|
82625
|
+
webhookSigningSecret: exports_external2.string().min(1)
|
|
82626
|
+
});
|
|
82547
82627
|
var ComplianceProviderCredentialsSchema = exports_external2.discriminatedUnion("providerKind", [
|
|
82548
82628
|
exports_external2.object({
|
|
82549
82629
|
providerKind: exports_external2.literal("sumsub"),
|
|
82550
82630
|
credentials: SumsubCredentialsSchema
|
|
82551
82631
|
}),
|
|
82632
|
+
exports_external2.object({
|
|
82633
|
+
providerKind: exports_external2.literal("sumsub-aml"),
|
|
82634
|
+
credentials: SumsubAmlCredentialsSchema
|
|
82635
|
+
}),
|
|
82636
|
+
exports_external2.object({
|
|
82637
|
+
providerKind: exports_external2.literal("sumsub-kyt"),
|
|
82638
|
+
credentials: SumsubKytCredentialsSchema
|
|
82639
|
+
}),
|
|
82552
82640
|
exports_external2.object({
|
|
82553
82641
|
providerKind: exports_external2.literal("elliptic"),
|
|
82554
82642
|
credentials: EllipticCredentialsSchema
|
|
82643
|
+
}),
|
|
82644
|
+
exports_external2.object({
|
|
82645
|
+
providerKind: exports_external2.literal("complyadvantage"),
|
|
82646
|
+
credentials: ComplyAdvantageCredentialsSchema
|
|
82647
|
+
}),
|
|
82648
|
+
exports_external2.object({
|
|
82649
|
+
providerKind: exports_external2.literal("jumio"),
|
|
82650
|
+
credentials: JumioCredentialsSchema
|
|
82651
|
+
}),
|
|
82652
|
+
exports_external2.object({
|
|
82653
|
+
providerKind: exports_external2.literal("middesk"),
|
|
82654
|
+
credentials: MiddeskCredentialsSchema
|
|
82655
|
+
}),
|
|
82656
|
+
exports_external2.object({
|
|
82657
|
+
providerKind: exports_external2.literal("onfido"),
|
|
82658
|
+
credentials: OnfidoCredentialsSchema
|
|
82659
|
+
}),
|
|
82660
|
+
exports_external2.object({
|
|
82661
|
+
providerKind: exports_external2.literal("persona"),
|
|
82662
|
+
credentials: PersonaCredentialsSchema
|
|
82663
|
+
}),
|
|
82664
|
+
exports_external2.object({
|
|
82665
|
+
providerKind: exports_external2.literal("trulioo"),
|
|
82666
|
+
credentials: TruliooCredentialsSchema
|
|
82667
|
+
}),
|
|
82668
|
+
exports_external2.object({
|
|
82669
|
+
providerKind: exports_external2.literal("veriff"),
|
|
82670
|
+
credentials: VeriffCredentialsSchema
|
|
82555
82671
|
})
|
|
82556
82672
|
]);
|
|
82557
82673
|
var ComplianceProviderValidateCredentialsInputSchema = ComplianceProviderCredentialsSchema;
|
|
@@ -82562,6 +82678,8 @@ var ComplianceProviderValidateCredentialsOutputSchema = createSingleResponse(exp
|
|
|
82562
82678
|
var ComplianceProviderIntegrationCreateInputSchema = ComplianceProviderCredentialsSchema.and(exports_external2.object({
|
|
82563
82679
|
topicName: claimTopicSchema(),
|
|
82564
82680
|
webhookSigningSecret: exports_external2.string().min(1),
|
|
82681
|
+
webhookAuthMode: ComplianceProviderWebhookAuthModeSchema.default("hmac"),
|
|
82682
|
+
webhookIpAllowlist: exports_external2.array(exports_external2.string()).optional(),
|
|
82565
82683
|
revocationSeverityThreshold: exports_external2.number().int().min(0).max(100).default(80)
|
|
82566
82684
|
}));
|
|
82567
82685
|
var ComplianceProviderIntegrationCreateOutputSchema = ComplianceProviderIntegrationReadOutputSchema;
|
|
@@ -82576,7 +82694,9 @@ var ComplianceProviderIntegrationRevokeOutputSchema = createSingleResponse(expor
|
|
|
82576
82694
|
}));
|
|
82577
82695
|
var ComplianceProviderIntegrationUpdatePolicyInputSchema = exports_external2.object({
|
|
82578
82696
|
integrationId: exports_external2.uuid(),
|
|
82579
|
-
revocationSeverityThreshold: exports_external2.number().int().min(0).max(100).optional()
|
|
82697
|
+
revocationSeverityThreshold: exports_external2.number().int().min(0).max(100).optional(),
|
|
82698
|
+
webhookAuthMode: ComplianceProviderWebhookAuthModeSchema.optional(),
|
|
82699
|
+
webhookIpAllowlist: exports_external2.array(exports_external2.string()).nullable().optional()
|
|
82580
82700
|
});
|
|
82581
82701
|
var ComplianceProviderIntegrationRotateSecretInputSchema = exports_external2.object({
|
|
82582
82702
|
integrationId: exports_external2.uuid(),
|
|
@@ -82619,15 +82739,49 @@ var ComplianceSubjectCreateApplicantResultSchema = exports_external2.object({
|
|
|
82619
82739
|
redirectUrl: exports_external2.string().url().optional()
|
|
82620
82740
|
});
|
|
82621
82741
|
var ComplianceSubjectCreateApplicantOutputSchema = createSingleResponse(ComplianceSubjectCreateApplicantResultSchema);
|
|
82742
|
+
var ComplyAdvantageSubjectHintsSchema = exports_external2.object({
|
|
82743
|
+
searchTerm: exports_external2.string().min(1),
|
|
82744
|
+
clientRef: exports_external2.string().min(1).optional(),
|
|
82745
|
+
entityType: exports_external2.enum(["person", "company"]).default("person"),
|
|
82746
|
+
types: exports_external2.array(exports_external2.string().min(1)).default(["sanction", "warning"])
|
|
82747
|
+
});
|
|
82622
82748
|
var ComplianceSubjectRegisterWalletInputSchema = exports_external2.object({
|
|
82623
82749
|
integrationId: exports_external2.uuid(),
|
|
82624
|
-
walletAddress: ethereumAddress
|
|
82750
|
+
walletAddress: ethereumAddress.optional(),
|
|
82751
|
+
identityAddress: ethereumAddress.optional(),
|
|
82752
|
+
subjectHints: ComplyAdvantageSubjectHintsSchema.optional()
|
|
82753
|
+
}).superRefine((value22, ctx) => {
|
|
82754
|
+
if (!value22.walletAddress && !(value22.identityAddress && value22.subjectHints)) {
|
|
82755
|
+
ctx.addIssue({
|
|
82756
|
+
code: exports_external2.ZodIssueCode.custom,
|
|
82757
|
+
message: "Provide either walletAddress or identityAddress with subjectHints."
|
|
82758
|
+
});
|
|
82759
|
+
}
|
|
82625
82760
|
});
|
|
82626
82761
|
var ComplianceSubjectRegisterWalletResultSchema = exports_external2.object({
|
|
82627
82762
|
externalId: exports_external2.string().min(1),
|
|
82628
82763
|
identityAddress: ethereumAddress
|
|
82629
82764
|
});
|
|
82630
82765
|
var ComplianceSubjectRegisterWalletOutputSchema = createSingleResponse(ComplianceSubjectRegisterWalletResultSchema);
|
|
82766
|
+
var SumsubKytTransactionPartySchema = exports_external2.object({
|
|
82767
|
+
address: ethereumAddress.optional()
|
|
82768
|
+
}).passthrough();
|
|
82769
|
+
var SumsubKytTransactionSchema = exports_external2.object({
|
|
82770
|
+
applicantId: exports_external2.string().min(1).optional(),
|
|
82771
|
+
info: SumsubKytTransactionPartySchema.optional(),
|
|
82772
|
+
counterparty: SumsubKytTransactionPartySchema.optional()
|
|
82773
|
+
}).passthrough();
|
|
82774
|
+
var ComplianceSubjectRegisterTransactionInputSchema = exports_external2.object({
|
|
82775
|
+
integrationId: exports_external2.uuid(),
|
|
82776
|
+
kytDataTxnId: exports_external2.string().min(1),
|
|
82777
|
+
txn: SumsubKytTransactionSchema
|
|
82778
|
+
});
|
|
82779
|
+
var ComplianceSubjectRegisterTransactionResultSchema = exports_external2.object({
|
|
82780
|
+
kytDataTxnId: exports_external2.string().min(1),
|
|
82781
|
+
kytTxnId: exports_external2.string().min(1),
|
|
82782
|
+
identityAddress: ethereumAddress.optional()
|
|
82783
|
+
});
|
|
82784
|
+
var ComplianceSubjectRegisterTransactionOutputSchema = createSingleResponse(ComplianceSubjectRegisterTransactionResultSchema);
|
|
82631
82785
|
var listIntegrations = v2Contract.route({
|
|
82632
82786
|
method: "GET",
|
|
82633
82787
|
path: "/compliance/integrations",
|
|
@@ -82740,6 +82894,13 @@ var registerWallet = v2Contract.route({
|
|
|
82740
82894
|
successDescription: "Provider wallet subject registered and mapped.",
|
|
82741
82895
|
tags: [V2_TAG.compliance]
|
|
82742
82896
|
}).input(v2Input.body(ComplianceSubjectRegisterWalletInputSchema)).output(ComplianceSubjectRegisterWalletOutputSchema);
|
|
82897
|
+
var registerTransaction = v2Contract.route({
|
|
82898
|
+
method: "POST",
|
|
82899
|
+
path: "/compliance/subjects/transactions/register",
|
|
82900
|
+
description: "Register a Sumsub KYT transaction and persist the transaction-level subject mapping.",
|
|
82901
|
+
successDescription: "Sumsub KYT transaction registered and mapped.",
|
|
82902
|
+
tags: [V2_TAG.compliance]
|
|
82903
|
+
}).input(v2Input.body(ComplianceSubjectRegisterTransactionInputSchema)).output(ComplianceSubjectRegisterTransactionOutputSchema);
|
|
82743
82904
|
var complianceV2Contract = {
|
|
82744
82905
|
integrations: {
|
|
82745
82906
|
list: listIntegrations,
|
|
@@ -82759,7 +82920,10 @@ var complianceV2Contract = {
|
|
|
82759
82920
|
},
|
|
82760
82921
|
subjects: {
|
|
82761
82922
|
createApplicant,
|
|
82762
|
-
registerWallet
|
|
82923
|
+
registerWallet,
|
|
82924
|
+
transactions: {
|
|
82925
|
+
register: registerTransaction
|
|
82926
|
+
}
|
|
82763
82927
|
}
|
|
82764
82928
|
};
|
|
82765
82929
|
var FX_PROVIDERS = ["er-api", "ECB", "manual"];
|
|
@@ -88586,7 +88750,7 @@ function normalizeDalpBaseUrl(url3) {
|
|
|
88586
88750
|
}
|
|
88587
88751
|
var package_default = {
|
|
88588
88752
|
name: "@settlemint/dalp-sdk",
|
|
88589
|
-
version: "2.1.7-main.
|
|
88753
|
+
version: "2.1.7-main.25578066369",
|
|
88590
88754
|
private: false,
|
|
88591
88755
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
88592
88756
|
homepage: "https://settlemint.com",
|
|
@@ -89145,7 +89309,7 @@ function trimConfigValue(name, value3) {
|
|
|
89145
89309
|
// package.json
|
|
89146
89310
|
var package_default2 = {
|
|
89147
89311
|
name: "@settlemint/dalp-cli",
|
|
89148
|
-
version: "2.1.7-main.
|
|
89312
|
+
version: "2.1.7-main.25578066369",
|
|
89149
89313
|
private: false,
|
|
89150
89314
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
89151
89315
|
homepage: "https://settlemint.com",
|
|
@@ -89543,6 +89707,167 @@ assetTypeTemplatesCommand.command("delete", {
|
|
|
89543
89707
|
}
|
|
89544
89708
|
});
|
|
89545
89709
|
|
|
89710
|
+
// src/commands/compliance-providers.ts
|
|
89711
|
+
var integrationIdArg = exports_external.object({ integrationId: exports_external.string().describe("Compliance integration UUID") });
|
|
89712
|
+
function parseCliPayload(payload) {
|
|
89713
|
+
return JSON.parse(payload);
|
|
89714
|
+
}
|
|
89715
|
+
var complianceProvidersCommand = exports_Cli.create("compliance-providers", {
|
|
89716
|
+
description: "Compliance provider integration management",
|
|
89717
|
+
vars: cliVars
|
|
89718
|
+
});
|
|
89719
|
+
complianceProvidersCommand.command("list", {
|
|
89720
|
+
description: "List compliance provider integrations",
|
|
89721
|
+
run(c) {
|
|
89722
|
+
return c.var.orpc.compliance.integrations.list({ query: {} });
|
|
89723
|
+
}
|
|
89724
|
+
});
|
|
89725
|
+
complianceProvidersCommand.command("read", {
|
|
89726
|
+
description: "Read a compliance provider integration",
|
|
89727
|
+
args: integrationIdArg,
|
|
89728
|
+
run(c) {
|
|
89729
|
+
return c.var.orpc.compliance.integrations.read({ params: { integrationId: c.args.integrationId } });
|
|
89730
|
+
}
|
|
89731
|
+
});
|
|
89732
|
+
complianceProvidersCommand.command("validate-credentials", {
|
|
89733
|
+
description: "Validate provider credentials before creating an integration",
|
|
89734
|
+
options: exports_external.object({
|
|
89735
|
+
payload: exports_external.string().describe("JSON body matching ComplianceProviderCredentialsSchema")
|
|
89736
|
+
}),
|
|
89737
|
+
run(c) {
|
|
89738
|
+
const body = parseCliPayload(c.options.payload);
|
|
89739
|
+
return c.var.orpc.compliance.integrations.validateCredentials({ body });
|
|
89740
|
+
}
|
|
89741
|
+
});
|
|
89742
|
+
complianceProvidersCommand.command("create", {
|
|
89743
|
+
description: "Create a compliance provider integration",
|
|
89744
|
+
options: exports_external.object({
|
|
89745
|
+
payload: exports_external.string().describe("JSON body matching ComplianceProviderIntegrationCreateInputSchema")
|
|
89746
|
+
}),
|
|
89747
|
+
run(c) {
|
|
89748
|
+
const body = parseCliPayload(c.options.payload);
|
|
89749
|
+
return c.var.orpc.compliance.integrations.create({ body });
|
|
89750
|
+
}
|
|
89751
|
+
});
|
|
89752
|
+
complianceProvidersCommand.command("update-policy", {
|
|
89753
|
+
description: "Update revocation severity threshold for an integration",
|
|
89754
|
+
options: exports_external.object({
|
|
89755
|
+
integrationId: exports_external.string().describe("Compliance integration UUID"),
|
|
89756
|
+
revocationSeverityThreshold: exports_external.coerce.number().describe("New threshold (0-100)")
|
|
89757
|
+
}),
|
|
89758
|
+
run(c) {
|
|
89759
|
+
return c.var.orpc.compliance.integrations.updatePolicy({
|
|
89760
|
+
params: { integrationId: c.options.integrationId },
|
|
89761
|
+
body: { revocationSeverityThreshold: c.options.revocationSeverityThreshold }
|
|
89762
|
+
});
|
|
89763
|
+
}
|
|
89764
|
+
});
|
|
89765
|
+
complianceProvidersCommand.command("rotate-secret", {
|
|
89766
|
+
description: "Begin webhook signing secret rotation",
|
|
89767
|
+
args: integrationIdArg,
|
|
89768
|
+
options: exports_external.object({ secret: exports_external.string().describe("New webhook signing secret") }),
|
|
89769
|
+
run(c) {
|
|
89770
|
+
return c.var.orpc.compliance.integrations.rotateSecret({
|
|
89771
|
+
params: { integrationId: c.args.integrationId },
|
|
89772
|
+
body: { webhookSigningSecret: c.options.secret }
|
|
89773
|
+
});
|
|
89774
|
+
}
|
|
89775
|
+
});
|
|
89776
|
+
complianceProvidersCommand.command("promote-secret", {
|
|
89777
|
+
description: "Promote the pending webhook signing secret to active",
|
|
89778
|
+
args: integrationIdArg,
|
|
89779
|
+
run(c) {
|
|
89780
|
+
return c.var.orpc.compliance.integrations.promoteSecret({ params: { integrationId: c.args.integrationId } });
|
|
89781
|
+
}
|
|
89782
|
+
});
|
|
89783
|
+
complianceProvidersCommand.command("cancel-secret-rotation", {
|
|
89784
|
+
description: "Cancel pending webhook signing secret rotation",
|
|
89785
|
+
args: integrationIdArg,
|
|
89786
|
+
run(c) {
|
|
89787
|
+
return c.var.orpc.compliance.integrations.cancelSecretRotation({
|
|
89788
|
+
params: { integrationId: c.args.integrationId }
|
|
89789
|
+
});
|
|
89790
|
+
}
|
|
89791
|
+
});
|
|
89792
|
+
complianceProvidersCommand.command("revoke", {
|
|
89793
|
+
description: "Revoke a compliance provider integration",
|
|
89794
|
+
args: integrationIdArg,
|
|
89795
|
+
run(c) {
|
|
89796
|
+
return c.var.orpc.compliance.integrations.revoke({
|
|
89797
|
+
params: { integrationId: c.args.integrationId },
|
|
89798
|
+
body: {}
|
|
89799
|
+
});
|
|
89800
|
+
}
|
|
89801
|
+
});
|
|
89802
|
+
complianceProvidersCommand.command("retry-provisioning", {
|
|
89803
|
+
description: "Retry a failed compliance integration provisioning",
|
|
89804
|
+
args: integrationIdArg,
|
|
89805
|
+
run(c) {
|
|
89806
|
+
return c.var.orpc.compliance.integrations.retryProvisioning({ params: { integrationId: c.args.integrationId } });
|
|
89807
|
+
}
|
|
89808
|
+
});
|
|
89809
|
+
complianceProvidersCommand.command("pause", {
|
|
89810
|
+
description: "Pause an active compliance provider integration",
|
|
89811
|
+
args: integrationIdArg,
|
|
89812
|
+
run(c) {
|
|
89813
|
+
return c.var.orpc.compliance.integrations.pause({ params: { integrationId: c.args.integrationId } });
|
|
89814
|
+
}
|
|
89815
|
+
});
|
|
89816
|
+
complianceProvidersCommand.command("resume", {
|
|
89817
|
+
description: "Resume a paused compliance provider integration",
|
|
89818
|
+
args: integrationIdArg,
|
|
89819
|
+
run(c) {
|
|
89820
|
+
return c.var.orpc.compliance.integrations.resume({ params: { integrationId: c.args.integrationId } });
|
|
89821
|
+
}
|
|
89822
|
+
});
|
|
89823
|
+
complianceProvidersCommand.command("health", {
|
|
89824
|
+
description: "Health-check stored credentials for an integration",
|
|
89825
|
+
args: integrationIdArg,
|
|
89826
|
+
run(c) {
|
|
89827
|
+
return c.var.orpc.compliance.integrations.health({ params: { integrationId: c.args.integrationId } });
|
|
89828
|
+
}
|
|
89829
|
+
});
|
|
89830
|
+
complianceProvidersCommand.command("monitoring", {
|
|
89831
|
+
description: "List monitoring alerts for an integration",
|
|
89832
|
+
args: integrationIdArg,
|
|
89833
|
+
run(c) {
|
|
89834
|
+
return c.var.orpc.compliance.integrations.monitoring({
|
|
89835
|
+
params: { integrationId: c.args.integrationId },
|
|
89836
|
+
query: {}
|
|
89837
|
+
});
|
|
89838
|
+
}
|
|
89839
|
+
});
|
|
89840
|
+
complianceProvidersCommand.command("create-applicant", {
|
|
89841
|
+
description: "Create a Surface-A provider applicant + persist the DALP subject mapping",
|
|
89842
|
+
options: exports_external.object({
|
|
89843
|
+
payload: exports_external.string().describe("JSON body matching ComplianceSubjectCreateApplicantInputSchema")
|
|
89844
|
+
}),
|
|
89845
|
+
run(c) {
|
|
89846
|
+
const body = parseCliPayload(c.options.payload);
|
|
89847
|
+
return c.var.orpc.compliance.subjects.createApplicant({ body });
|
|
89848
|
+
}
|
|
89849
|
+
});
|
|
89850
|
+
complianceProvidersCommand.command("register-wallet", {
|
|
89851
|
+
description: "Register a Surface-B wallet subject with a continuous-monitoring provider",
|
|
89852
|
+
options: exports_external.object({
|
|
89853
|
+
payload: exports_external.string().describe("JSON body matching ComplianceSubjectRegisterWalletInputSchema")
|
|
89854
|
+
}),
|
|
89855
|
+
run(c) {
|
|
89856
|
+
const body = parseCliPayload(c.options.payload);
|
|
89857
|
+
return c.var.orpc.compliance.subjects.registerWallet({ body });
|
|
89858
|
+
}
|
|
89859
|
+
});
|
|
89860
|
+
complianceProvidersCommand.command("register-transaction", {
|
|
89861
|
+
description: "Register a Sumsub-KYT transaction for monitoring",
|
|
89862
|
+
options: exports_external.object({
|
|
89863
|
+
payload: exports_external.string().describe("JSON body matching ComplianceSubjectRegisterTransactionInputSchema")
|
|
89864
|
+
}),
|
|
89865
|
+
run(c) {
|
|
89866
|
+
const body = parseCliPayload(c.options.payload);
|
|
89867
|
+
return c.var.orpc.compliance.subjects.transactions.register({ body });
|
|
89868
|
+
}
|
|
89869
|
+
});
|
|
89870
|
+
|
|
89546
89871
|
// src/commands/compliance-templates.ts
|
|
89547
89872
|
var complianceTemplatesCommand = exports_Cli.create("compliance-templates", {
|
|
89548
89873
|
description: "Compliance template management",
|
|
@@ -93638,5 +93963,5 @@ Fix: Run 'dalp login' against the DALP instance you want to manage, then retry t
|
|
|
93638
93963
|
c.set("orpc", createOrpcClient(credentials.apiUrl, credentials));
|
|
93639
93964
|
return next();
|
|
93640
93965
|
});
|
|
93641
|
-
cli.command(loginCommand).command(logoutCommand).command(configCommand).command(whoamiCommand).command(accountCommand).command(actionsCommand).command(adminCommand).command(tokensCommand).command(tokenSalesCommand).command(fixedYieldSchedulesCommand).command(xvpSettlementsCommand).command(contactsCommand).command(exchangeRatesCommand).command(externalTokensCommand).command(identitiesCommand).command(identityRecoveriesCommand).command(kycCommand).command(usersCommand).command(settingsCommand).command(assetTypeTemplatesCommand).command(complianceTemplatesCommand).command(monitoringCommand).command(systemCommand).command(blockchainTransactionsCommand).command(searchResultsCommand).command(authCommand);
|
|
93966
|
+
cli.command(loginCommand).command(logoutCommand).command(configCommand).command(whoamiCommand).command(accountCommand).command(actionsCommand).command(adminCommand).command(tokensCommand).command(tokenSalesCommand).command(fixedYieldSchedulesCommand).command(xvpSettlementsCommand).command(contactsCommand).command(exchangeRatesCommand).command(externalTokensCommand).command(identitiesCommand).command(identityRecoveriesCommand).command(kycCommand).command(usersCommand).command(settingsCommand).command(assetTypeTemplatesCommand).command(complianceTemplatesCommand).command(complianceProvidersCommand).command(monitoringCommand).command(systemCommand).command(blockchainTransactionsCommand).command(searchResultsCommand).command(authCommand);
|
|
93642
93967
|
cli.serve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "2.1.7-main.
|
|
3
|
+
"version": "2.1.7-main.25578066369",
|
|
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",
|