@settlemint/dalp-cli 2.1.7-main.25573343573 → 2.1.7-main.25577964084
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 +367 -16
- 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({
|
|
@@ -66206,9 +66221,9 @@ var DAPI_ROUTE_ERROR_ENTRIES = [
|
|
|
66206
66221
|
id: "DALP-0195",
|
|
66207
66222
|
category: "permission",
|
|
66208
66223
|
status: 403,
|
|
66209
|
-
message: "You are not a signer on
|
|
66210
|
-
why: "The authenticated
|
|
66211
|
-
fix: "
|
|
66224
|
+
message: "You are not a signer on this multisig wallet.",
|
|
66225
|
+
why: "The authenticated wallet is not registered as a signer on the selected multisig validator.",
|
|
66226
|
+
fix: "Select a wallet that is a registered signer, or ask a wallet owner to add your signer before retrying.",
|
|
66212
66227
|
retryable: false,
|
|
66213
66228
|
expectedClientError: true
|
|
66214
66229
|
})
|
|
@@ -66219,9 +66234,9 @@ var DAPI_ROUTE_ERROR_ENTRIES = [
|
|
|
66219
66234
|
id: "DALP-0196",
|
|
66220
66235
|
category: "permission",
|
|
66221
66236
|
status: 403,
|
|
66222
|
-
message: "
|
|
66223
|
-
why: "The authenticated
|
|
66224
|
-
fix: "
|
|
66237
|
+
message: "Only multisig signers can create approvals for this wallet.",
|
|
66238
|
+
why: "The authenticated wallet is not registered as a signer on the selected multisig validator, so it cannot initiate an approval request.",
|
|
66239
|
+
fix: "Switch to a registered signer wallet, or ask a wallet owner to add your signer before creating the approval.",
|
|
66225
66240
|
retryable: false,
|
|
66226
66241
|
expectedClientError: true
|
|
66227
66242
|
})
|
|
@@ -66232,9 +66247,9 @@ var DAPI_ROUTE_ERROR_ENTRIES = [
|
|
|
66232
66247
|
id: "DALP-0197",
|
|
66233
66248
|
category: "permission",
|
|
66234
66249
|
status: 403,
|
|
66235
|
-
message: "You are not a signer on wallet
|
|
66236
|
-
why: "The authenticated
|
|
66237
|
-
fix: "
|
|
66250
|
+
message: "You are not a signer on this wallet.",
|
|
66251
|
+
why: "The authenticated wallet is not registered as a signer for the selected smart wallet.",
|
|
66252
|
+
fix: "Use a registered signer wallet, or ask a wallet owner to add your signer before retrying.",
|
|
66238
66253
|
retryable: false,
|
|
66239
66254
|
expectedClientError: true
|
|
66240
66255
|
})
|
|
@@ -66278,6 +66293,32 @@ var DAPI_ROUTE_ERROR_ENTRIES = [
|
|
|
66278
66293
|
expectedClientError: true
|
|
66279
66294
|
})
|
|
66280
66295
|
},
|
|
66296
|
+
{
|
|
66297
|
+
code: "SMART_WALLETS_GLOBAL_ACCOUNT_ABSTRACTION_DISABLED_CANNOT_CREATE_WALLET_DEFAULT",
|
|
66298
|
+
definition: dapiError({
|
|
66299
|
+
id: "DALP-0475",
|
|
66300
|
+
category: "domain",
|
|
66301
|
+
status: 409,
|
|
66302
|
+
message: "Platform Account Abstraction routing is disabled; cannot create a smart wallet as default",
|
|
66303
|
+
why: "The platform-wide Account Abstraction feature flag is disabled, so smart wallets cannot be selected as default wallets for routed transactions.",
|
|
66304
|
+
fix: "Enable the platform Account Abstraction feature flag, or create the smart wallet without setting it as default.",
|
|
66305
|
+
retryable: false,
|
|
66306
|
+
expectedClientError: true
|
|
66307
|
+
})
|
|
66308
|
+
},
|
|
66309
|
+
{
|
|
66310
|
+
code: "SMART_WALLETS_GLOBAL_ACCOUNT_ABSTRACTION_DISABLED_CANNOT_SET_WALLET_DEFAULT",
|
|
66311
|
+
definition: dapiError({
|
|
66312
|
+
id: "DALP-0476",
|
|
66313
|
+
category: "domain",
|
|
66314
|
+
status: 409,
|
|
66315
|
+
message: "Platform Account Abstraction routing is disabled; cannot set a smart wallet as default",
|
|
66316
|
+
why: "The platform-wide Account Abstraction feature flag is disabled, so smart wallets cannot be selected as default wallets for routed transactions.",
|
|
66317
|
+
fix: "Enable the platform Account Abstraction feature flag, or update only the smart wallet metadata.",
|
|
66318
|
+
retryable: false,
|
|
66319
|
+
expectedClientError: true
|
|
66320
|
+
})
|
|
66321
|
+
},
|
|
66281
66322
|
{
|
|
66282
66323
|
code: "SMART_WALLETS_RPC_URL_NOT_CONFIGURED_CHAIN_NETWORK_CONFIGURATION",
|
|
66283
66324
|
definition: dapiError({
|
|
@@ -82456,8 +82497,21 @@ var contactsV2Contract = {
|
|
|
82456
82497
|
upsert: upsert3,
|
|
82457
82498
|
delete: del5
|
|
82458
82499
|
};
|
|
82459
|
-
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
|
+
]);
|
|
82460
82513
|
var ComplianceProviderStatusSchema = exports_external2.enum(["pending", "active", "paused", "revoked", "failed"]);
|
|
82514
|
+
var ComplianceProviderWebhookAuthModeSchema = exports_external2.enum(["hmac", "basic_auth_ip_allowlist"]);
|
|
82461
82515
|
var ComplianceProviderLastActivitySchema = exports_external2.discriminatedUnion("kind", [
|
|
82462
82516
|
exports_external2.object({
|
|
82463
82517
|
kind: exports_external2.literal("verdict"),
|
|
@@ -82486,6 +82540,8 @@ var ComplianceProviderIntegrationSchema = exports_external2.object({
|
|
|
82486
82540
|
statusExplanation: exports_external2.string(),
|
|
82487
82541
|
issuerEoaAddress: ethereumAddress,
|
|
82488
82542
|
webhookUrlToken: exports_external2.uuid(),
|
|
82543
|
+
webhookAuthMode: ComplianceProviderWebhookAuthModeSchema,
|
|
82544
|
+
webhookIpAllowlist: exports_external2.array(exports_external2.string()).nullable(),
|
|
82489
82545
|
revocationSeverityThreshold: exports_external2.number().int().min(0).max(100),
|
|
82490
82546
|
pendingSecretExpiresAt: exports_external2.date().nullable(),
|
|
82491
82547
|
lastActivity: ComplianceProviderLastActivitySchema.nullable(),
|
|
@@ -82514,18 +82570,104 @@ var SumsubCredentialsSchema = exports_external2.object({
|
|
|
82514
82570
|
appToken: exports_external2.string().min(1),
|
|
82515
82571
|
secretKey: exports_external2.string().min(1)
|
|
82516
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
|
+
});
|
|
82517
82585
|
var EllipticCredentialsSchema = exports_external2.object({
|
|
82518
82586
|
apiKey: exports_external2.string().min(1),
|
|
82519
82587
|
apiSecret: exports_external2.string().min(1)
|
|
82520
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
|
+
});
|
|
82521
82627
|
var ComplianceProviderCredentialsSchema = exports_external2.discriminatedUnion("providerKind", [
|
|
82522
82628
|
exports_external2.object({
|
|
82523
82629
|
providerKind: exports_external2.literal("sumsub"),
|
|
82524
82630
|
credentials: SumsubCredentialsSchema
|
|
82525
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
|
+
}),
|
|
82526
82640
|
exports_external2.object({
|
|
82527
82641
|
providerKind: exports_external2.literal("elliptic"),
|
|
82528
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
|
|
82529
82671
|
})
|
|
82530
82672
|
]);
|
|
82531
82673
|
var ComplianceProviderValidateCredentialsInputSchema = ComplianceProviderCredentialsSchema;
|
|
@@ -82536,6 +82678,8 @@ var ComplianceProviderValidateCredentialsOutputSchema = createSingleResponse(exp
|
|
|
82536
82678
|
var ComplianceProviderIntegrationCreateInputSchema = ComplianceProviderCredentialsSchema.and(exports_external2.object({
|
|
82537
82679
|
topicName: claimTopicSchema(),
|
|
82538
82680
|
webhookSigningSecret: exports_external2.string().min(1),
|
|
82681
|
+
webhookAuthMode: ComplianceProviderWebhookAuthModeSchema.default("hmac"),
|
|
82682
|
+
webhookIpAllowlist: exports_external2.array(exports_external2.string()).optional(),
|
|
82539
82683
|
revocationSeverityThreshold: exports_external2.number().int().min(0).max(100).default(80)
|
|
82540
82684
|
}));
|
|
82541
82685
|
var ComplianceProviderIntegrationCreateOutputSchema = ComplianceProviderIntegrationReadOutputSchema;
|
|
@@ -82550,7 +82694,9 @@ var ComplianceProviderIntegrationRevokeOutputSchema = createSingleResponse(expor
|
|
|
82550
82694
|
}));
|
|
82551
82695
|
var ComplianceProviderIntegrationUpdatePolicyInputSchema = exports_external2.object({
|
|
82552
82696
|
integrationId: exports_external2.uuid(),
|
|
82553
|
-
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()
|
|
82554
82700
|
});
|
|
82555
82701
|
var ComplianceProviderIntegrationRotateSecretInputSchema = exports_external2.object({
|
|
82556
82702
|
integrationId: exports_external2.uuid(),
|
|
@@ -82593,15 +82739,49 @@ var ComplianceSubjectCreateApplicantResultSchema = exports_external2.object({
|
|
|
82593
82739
|
redirectUrl: exports_external2.string().url().optional()
|
|
82594
82740
|
});
|
|
82595
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
|
+
});
|
|
82596
82748
|
var ComplianceSubjectRegisterWalletInputSchema = exports_external2.object({
|
|
82597
82749
|
integrationId: exports_external2.uuid(),
|
|
82598
|
-
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
|
+
}
|
|
82599
82760
|
});
|
|
82600
82761
|
var ComplianceSubjectRegisterWalletResultSchema = exports_external2.object({
|
|
82601
82762
|
externalId: exports_external2.string().min(1),
|
|
82602
82763
|
identityAddress: ethereumAddress
|
|
82603
82764
|
});
|
|
82604
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);
|
|
82605
82785
|
var listIntegrations = v2Contract.route({
|
|
82606
82786
|
method: "GET",
|
|
82607
82787
|
path: "/compliance/integrations",
|
|
@@ -82714,6 +82894,13 @@ var registerWallet = v2Contract.route({
|
|
|
82714
82894
|
successDescription: "Provider wallet subject registered and mapped.",
|
|
82715
82895
|
tags: [V2_TAG.compliance]
|
|
82716
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);
|
|
82717
82904
|
var complianceV2Contract = {
|
|
82718
82905
|
integrations: {
|
|
82719
82906
|
list: listIntegrations,
|
|
@@ -82733,7 +82920,10 @@ var complianceV2Contract = {
|
|
|
82733
82920
|
},
|
|
82734
82921
|
subjects: {
|
|
82735
82922
|
createApplicant,
|
|
82736
|
-
registerWallet
|
|
82923
|
+
registerWallet,
|
|
82924
|
+
transactions: {
|
|
82925
|
+
register: registerTransaction
|
|
82926
|
+
}
|
|
82737
82927
|
}
|
|
82738
82928
|
};
|
|
82739
82929
|
var FX_PROVIDERS = ["er-api", "ECB", "manual"];
|
|
@@ -88560,7 +88750,7 @@ function normalizeDalpBaseUrl(url3) {
|
|
|
88560
88750
|
}
|
|
88561
88751
|
var package_default = {
|
|
88562
88752
|
name: "@settlemint/dalp-sdk",
|
|
88563
|
-
version: "2.1.7-main.
|
|
88753
|
+
version: "2.1.7-main.25577964084",
|
|
88564
88754
|
private: false,
|
|
88565
88755
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
88566
88756
|
homepage: "https://settlemint.com",
|
|
@@ -89119,7 +89309,7 @@ function trimConfigValue(name, value3) {
|
|
|
89119
89309
|
// package.json
|
|
89120
89310
|
var package_default2 = {
|
|
89121
89311
|
name: "@settlemint/dalp-cli",
|
|
89122
|
-
version: "2.1.7-main.
|
|
89312
|
+
version: "2.1.7-main.25577964084",
|
|
89123
89313
|
private: false,
|
|
89124
89314
|
description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
|
|
89125
89315
|
homepage: "https://settlemint.com",
|
|
@@ -89517,6 +89707,167 @@ assetTypeTemplatesCommand.command("delete", {
|
|
|
89517
89707
|
}
|
|
89518
89708
|
});
|
|
89519
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
|
+
|
|
89520
89871
|
// src/commands/compliance-templates.ts
|
|
89521
89872
|
var complianceTemplatesCommand = exports_Cli.create("compliance-templates", {
|
|
89522
89873
|
description: "Compliance template management",
|
|
@@ -93612,5 +93963,5 @@ Fix: Run 'dalp login' against the DALP instance you want to manage, then retry t
|
|
|
93612
93963
|
c.set("orpc", createOrpcClient(credentials.apiUrl, credentials));
|
|
93613
93964
|
return next();
|
|
93614
93965
|
});
|
|
93615
|
-
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);
|
|
93616
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.25577964084",
|
|
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",
|