@settlemint/dalp-cli 2.1.7-main.25494900150 → 2.1.7-main.25495284694

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.
Files changed (2) hide show
  1. package/dist/dalp.js +72 -2
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -69889,6 +69889,49 @@ var ClaimsHistoryV2InputSchema = createCollectionInputSchema(CLAIM_HISTORY_COLLE
69889
69889
  globalSearch: false
69890
69890
  });
69891
69891
  var ClaimsHistoryV2OutputSchema = createPaginatedResponse(ClaimsHistoryV2ItemSchema);
69892
+ var KEY_PURPOSE_VALUES = ["management", "deposit", "claimSigner", "encryption", "unknown"];
69893
+ var KEY_TYPE_VALUES = ["ecdsa", "rsa", "unknown"];
69894
+ var IdentityV2KeysItemSchema = exports_external.object({
69895
+ keyHash: exports_external.string().meta({
69896
+ description: "ERC-734 key hash — typically `keccak256(abi.encode(eoaAddress))` for an ECDSA key",
69897
+ examples: ["0x9d8a5b6f3a7f8e2c1d4b5a6e7f8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c"]
69898
+ }),
69899
+ purpose: exports_external.enum(KEY_PURPOSE_VALUES).meta({
69900
+ description: "ERC-734 key purpose label, decoded by the indexer. `management` = admin (purpose 1), `deposit` = action/signing (purpose 2), `claimSigner` = claim issuer (purpose 3), `encryption` = encryption (purpose 4).",
69901
+ examples: ["management"]
69902
+ }),
69903
+ keyType: exports_external.enum(KEY_TYPE_VALUES).meta({
69904
+ description: "ERC-734 key type label, decoded by the indexer.",
69905
+ examples: ["ecdsa"]
69906
+ }),
69907
+ createdAt: exports_external.coerce.date().meta({
69908
+ description: "Indexer ingestion timestamp (UTC)",
69909
+ examples: ["2026-05-06T12:34:56.000Z"]
69910
+ }),
69911
+ createdAtBlock: exports_external.string().meta({
69912
+ description: "Block number at which the `KeyAdded` event was emitted, as a decimal string",
69913
+ examples: ["12345678"]
69914
+ }),
69915
+ createdAtTxHash: exports_external.string().meta({
69916
+ description: "Transaction hash that emitted the `KeyAdded` event",
69917
+ examples: ["0xabc..."]
69918
+ })
69919
+ });
69920
+ var IDENTITY_KEYS_COLLECTION_FIELDS = {
69921
+ purpose: enumField(KEY_PURPOSE_VALUES, { defaultOperator: "eq", facetable: true }),
69922
+ keyType: enumField(KEY_TYPE_VALUES, { defaultOperator: "eq", facetable: true }),
69923
+ createdAt: dateField({ sortable: true, facetable: false })
69924
+ };
69925
+ var IdentityV2KeysParamsSchema = exports_external.object({
69926
+ identityAddress: ethereumAddress.meta({
69927
+ description: "Address of an indexed identity contract (organisation identity, user wallet identity, or any other contract identity).",
69928
+ examples: ["0x71C7656EC7ab88b098defB751B7401B5f6d8976F"]
69929
+ })
69930
+ });
69931
+ var IdentityV2KeysInputSchema = createCollectionInputSchema(IDENTITY_KEYS_COLLECTION_FIELDS, {
69932
+ defaultSort: "createdAt"
69933
+ });
69934
+ var IdentityV2KeysOutputSchema = createPaginatedResponse(IdentityV2KeysItemSchema);
69892
69935
  var KYC_STATUS_VALUES = ["pending", "registered"];
69893
69936
  var IdentityV2ListItemSchema = exports_external.object({
69894
69937
  id: ethereumAddress.meta({
@@ -70023,6 +70066,13 @@ var list31 = v2Contract.route({
70023
70066
  successDescription: "Identities fetched successfully.",
70024
70067
  tags: TAGS30
70025
70068
  }).input(v2Input.query(IdentityV2ListInputSchema)).output(IdentityV2ListOutputSchema);
70069
+ var keys = v2Contract.route({
70070
+ method: "GET",
70071
+ path: "/system/identities/{identityAddress}/keys",
70072
+ description: "List ERC-734 keys registered on a contract identity (typically the system organisation identity). Indexer-backed, role-gated.",
70073
+ successDescription: "Identity keys retrieved successfully.",
70074
+ tags: TAGS30
70075
+ }).input(v2Input.paramsQuery(IdentityV2KeysParamsSchema, IdentityV2KeysInputSchema)).output(IdentityV2KeysOutputSchema);
70026
70076
  var identityDelete2 = v2Contract.route({
70027
70077
  method: "DELETE",
70028
70078
  path: "/system/wallets/{wallet}/identity",
@@ -70074,6 +70124,7 @@ var identityV2Contract = {
70074
70124
  search: search3,
70075
70125
  me: me2,
70076
70126
  list: list31,
70127
+ keys,
70077
70128
  delete: identityDelete2,
70078
70129
  updateCountry,
70079
70130
  registrationStatus,
@@ -73634,7 +73685,7 @@ function normalizeDalpBaseUrl(url2) {
73634
73685
  }
73635
73686
  var package_default = {
73636
73687
  name: "@settlemint/dalp-sdk",
73637
- version: "2.1.7-main.25494900150",
73688
+ version: "2.1.7-main.25495284694",
73638
73689
  private: false,
73639
73690
  description: "Fully typed SDK for the DALP tokenization platform API",
73640
73691
  homepage: "https://settlemint.com",
@@ -74185,7 +74236,7 @@ function trimConfigValue(name, value3) {
74185
74236
  // package.json
74186
74237
  var package_default2 = {
74187
74238
  name: "@settlemint/dalp-cli",
74188
- version: "2.1.7-main.25494900150",
74239
+ version: "2.1.7-main.25495284694",
74189
74240
  private: false,
74190
74241
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
74191
74242
  homepage: "https://settlemint.com",
@@ -75094,6 +75145,25 @@ identitiesCommand.command("registration-status", {
75094
75145
  });
75095
75146
  }
75096
75147
  });
75148
+ identitiesCommand.command("keys", {
75149
+ description: "List ERC-734 keys registered on an identity",
75150
+ args: exports_external.object({ identityAddress: exports_external.string().describe("Identity address") }),
75151
+ options: paginationOptionsSchema,
75152
+ examples: [
75153
+ { args: { identityAddress: "0x1234...abcd" }, description: "All keys on an identity" },
75154
+ {
75155
+ args: { identityAddress: "0x1234...abcd" },
75156
+ options: { filter: ["purpose=management"] },
75157
+ description: "Only management keys"
75158
+ }
75159
+ ],
75160
+ run(c) {
75161
+ return c.var.orpc.system.identity.keys({
75162
+ params: { identityAddress: c.args.identityAddress },
75163
+ query: toCanonicalQuery(c.options)
75164
+ });
75165
+ }
75166
+ });
75097
75167
  identitiesCommand.command("claim-history", {
75098
75168
  description: "View identity claim history",
75099
75169
  args: exports_external.object({ identityAddress: exports_external.string().describe("Identity address") }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "2.1.7-main.25494900150",
3
+ "version": "2.1.7-main.25495284694",
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",