@settlemint/dalp-cli 3.1.33-main.43077216272 → 3.1.33-main.43102496977
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.
|
@@ -12267,6 +12267,56 @@
|
|
|
12267
12267
|
}
|
|
12268
12268
|
]
|
|
12269
12269
|
},
|
|
12270
|
+
"bankRail/tokenLinkActivationPreflight": {
|
|
12271
|
+
"name": "bankRail/tokenLinkActivationPreflight",
|
|
12272
|
+
"method": "POST",
|
|
12273
|
+
"url": "/api/v2/bank-rail/connections/{connectionId}/token-links/{tokenLinkId}/activation/preflights",
|
|
12274
|
+
"summary": "Check a token link's activation",
|
|
12275
|
+
"description": "Runs the checks activation runs, for the token and the rail wallet as they stand now, and grants, signs and stores nothing, so the Console can show a refusal before the manager's wallet verification. A refusal is the one activation returns: another account holds the token's supply management role (`supply-role-held`) or is a supply delegate (`supply-delegate-held`), each with those accounts in `data.accounts`, the token has supply, the rail wallet cannot pay gas or the token's compliance blocks it. When nothing stands in the way, `action` says what activation does: grant the rail wallet the supply management role (`grant-supply-role`), add it as the token's supply delegate (`add-supply-delegate`), set the link active because the rail wallet already holds the authority (`activate`), reinstate a suspended link (`reinstate`), or nothing for an active link (`none`).",
|
|
12276
|
+
"help": "Runs the checks activation runs, for the token and the rail wallet as they stand now, and grants, signs and stores nothing, so the Console can show a refusal before the manager's wallet verification. A refusal is the one activation returns: another account holds the token's supply management role (`supply-role-held`) or is a supply delegate (`supply-delegate-held`), each with those accounts in `data.accounts`, the token has supply, the rail wallet cannot pay gas or the token's compliance blocks it. When nothing stands in the way, `action` says what activation does: grant the rail wallet the supply management role (`grant-supply-role`), add it as the token's supply delegate (`add-supply-delegate`), set the link active because the rail wallet already holds the authority (`activate`), reinstate a suspended link (`reinstate`), or nothing for an active link (`none`).",
|
|
12277
|
+
"tags": [
|
|
12278
|
+
"Bank rail"
|
|
12279
|
+
],
|
|
12280
|
+
"pathParams": [
|
|
12281
|
+
{
|
|
12282
|
+
"name": "connectionId",
|
|
12283
|
+
"in": "path",
|
|
12284
|
+
"required": true,
|
|
12285
|
+
"description": null,
|
|
12286
|
+
"type": "string",
|
|
12287
|
+
"enum": null,
|
|
12288
|
+
"pattern": "^([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})$",
|
|
12289
|
+
"examples": [],
|
|
12290
|
+
"fields": []
|
|
12291
|
+
},
|
|
12292
|
+
{
|
|
12293
|
+
"name": "tokenLinkId",
|
|
12294
|
+
"in": "path",
|
|
12295
|
+
"required": true,
|
|
12296
|
+
"description": null,
|
|
12297
|
+
"type": "string",
|
|
12298
|
+
"enum": null,
|
|
12299
|
+
"pattern": "^([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})$",
|
|
12300
|
+
"examples": [],
|
|
12301
|
+
"fields": []
|
|
12302
|
+
}
|
|
12303
|
+
],
|
|
12304
|
+
"queryParams": [],
|
|
12305
|
+
"headerParams": [],
|
|
12306
|
+
"requestBodyDescription": null,
|
|
12307
|
+
"hasRequestBody": false,
|
|
12308
|
+
"bodyIsComplex": false,
|
|
12309
|
+
"bodyFields": [],
|
|
12310
|
+
"examples": [
|
|
12311
|
+
{
|
|
12312
|
+
"description": "Runs the checks activation runs, for the token and the rail wallet as they stand now, and grants, signs and stores nothing, so the Console can show a refusal before the manager's wallet verification. A refusal is the one activation returns: another account holds the token's supply management role (`supply-role-held`) or is a supply delegate (`supply-delegate-held`), each with those accounts in `data.accounts`, the token has supply, the rail wallet cannot pay gas or the token's compliance blocks it. When nothing stands in the way, `action` says what activation does: grant the rail wallet the supply management role (`grant-supply-role`), add it as the token's supply delegate (`add-supply-delegate`), set the link active because the rail wallet already holds the authority (`activate`), reinstate a suspended link (`reinstate`), or nothing for an active link (`none`).",
|
|
12313
|
+
"path": {
|
|
12314
|
+
"connectionId": "<connectionId>",
|
|
12315
|
+
"tokenLinkId": "<tokenLinkId>"
|
|
12316
|
+
}
|
|
12317
|
+
}
|
|
12318
|
+
]
|
|
12319
|
+
},
|
|
12270
12320
|
"bankRail/tokenLinkCreate": {
|
|
12271
12321
|
"name": "bankRail/tokenLinkCreate",
|
|
12272
12322
|
"method": "POST",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "3.1.33-main.
|
|
3
|
+
"version": "3.1.33-main.43102496977",
|
|
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",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@modelcontextprotocol/server": "2.4.0",
|
|
53
|
-
"@settlemint/dalp-sdk": "3.1.33-main.
|
|
53
|
+
"@settlemint/dalp-sdk": "3.1.33-main.43102496977",
|
|
54
54
|
"incur": "0.7.1",
|
|
55
55
|
"zod": "4.6.7"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@arethetypeswrong/cli": "0.18.5",
|
|
59
|
-
"@testkit/effect-bun-test": "3.1.33-main.
|
|
60
|
-
"@tools/typescript-config": "3.1.33-main.
|
|
59
|
+
"@testkit/effect-bun-test": "3.1.33-main.43102496977",
|
|
60
|
+
"@tools/typescript-config": "3.1.33-main.43102496977",
|
|
61
61
|
"@types/bun": "1.4.4",
|
|
62
62
|
"publint": "0.3.25"
|
|
63
63
|
},
|
|
@@ -12267,6 +12267,56 @@
|
|
|
12267
12267
|
}
|
|
12268
12268
|
]
|
|
12269
12269
|
},
|
|
12270
|
+
"bankRail/tokenLinkActivationPreflight": {
|
|
12271
|
+
"name": "bankRail/tokenLinkActivationPreflight",
|
|
12272
|
+
"method": "POST",
|
|
12273
|
+
"url": "/api/v2/bank-rail/connections/{connectionId}/token-links/{tokenLinkId}/activation/preflights",
|
|
12274
|
+
"summary": "Check a token link's activation",
|
|
12275
|
+
"description": "Runs the checks activation runs, for the token and the rail wallet as they stand now, and grants, signs and stores nothing, so the Console can show a refusal before the manager's wallet verification. A refusal is the one activation returns: another account holds the token's supply management role (`supply-role-held`) or is a supply delegate (`supply-delegate-held`), each with those accounts in `data.accounts`, the token has supply, the rail wallet cannot pay gas or the token's compliance blocks it. When nothing stands in the way, `action` says what activation does: grant the rail wallet the supply management role (`grant-supply-role`), add it as the token's supply delegate (`add-supply-delegate`), set the link active because the rail wallet already holds the authority (`activate`), reinstate a suspended link (`reinstate`), or nothing for an active link (`none`).",
|
|
12276
|
+
"help": "Runs the checks activation runs, for the token and the rail wallet as they stand now, and grants, signs and stores nothing, so the Console can show a refusal before the manager's wallet verification. A refusal is the one activation returns: another account holds the token's supply management role (`supply-role-held`) or is a supply delegate (`supply-delegate-held`), each with those accounts in `data.accounts`, the token has supply, the rail wallet cannot pay gas or the token's compliance blocks it. When nothing stands in the way, `action` says what activation does: grant the rail wallet the supply management role (`grant-supply-role`), add it as the token's supply delegate (`add-supply-delegate`), set the link active because the rail wallet already holds the authority (`activate`), reinstate a suspended link (`reinstate`), or nothing for an active link (`none`).",
|
|
12277
|
+
"tags": [
|
|
12278
|
+
"Bank rail"
|
|
12279
|
+
],
|
|
12280
|
+
"pathParams": [
|
|
12281
|
+
{
|
|
12282
|
+
"name": "connectionId",
|
|
12283
|
+
"in": "path",
|
|
12284
|
+
"required": true,
|
|
12285
|
+
"description": null,
|
|
12286
|
+
"type": "string",
|
|
12287
|
+
"enum": null,
|
|
12288
|
+
"pattern": "^([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})$",
|
|
12289
|
+
"examples": [],
|
|
12290
|
+
"fields": []
|
|
12291
|
+
},
|
|
12292
|
+
{
|
|
12293
|
+
"name": "tokenLinkId",
|
|
12294
|
+
"in": "path",
|
|
12295
|
+
"required": true,
|
|
12296
|
+
"description": null,
|
|
12297
|
+
"type": "string",
|
|
12298
|
+
"enum": null,
|
|
12299
|
+
"pattern": "^([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})$",
|
|
12300
|
+
"examples": [],
|
|
12301
|
+
"fields": []
|
|
12302
|
+
}
|
|
12303
|
+
],
|
|
12304
|
+
"queryParams": [],
|
|
12305
|
+
"headerParams": [],
|
|
12306
|
+
"requestBodyDescription": null,
|
|
12307
|
+
"hasRequestBody": false,
|
|
12308
|
+
"bodyIsComplex": false,
|
|
12309
|
+
"bodyFields": [],
|
|
12310
|
+
"examples": [
|
|
12311
|
+
{
|
|
12312
|
+
"description": "Runs the checks activation runs, for the token and the rail wallet as they stand now, and grants, signs and stores nothing, so the Console can show a refusal before the manager's wallet verification. A refusal is the one activation returns: another account holds the token's supply management role (`supply-role-held`) or is a supply delegate (`supply-delegate-held`), each with those accounts in `data.accounts`, the token has supply, the rail wallet cannot pay gas or the token's compliance blocks it. When nothing stands in the way, `action` says what activation does: grant the rail wallet the supply management role (`grant-supply-role`), add it as the token's supply delegate (`add-supply-delegate`), set the link active because the rail wallet already holds the authority (`activate`), reinstate a suspended link (`reinstate`), or nothing for an active link (`none`).",
|
|
12313
|
+
"path": {
|
|
12314
|
+
"connectionId": "<connectionId>",
|
|
12315
|
+
"tokenLinkId": "<tokenLinkId>"
|
|
12316
|
+
}
|
|
12317
|
+
}
|
|
12318
|
+
]
|
|
12319
|
+
},
|
|
12270
12320
|
"bankRail/tokenLinkCreate": {
|
|
12271
12321
|
"name": "bankRail/tokenLinkCreate",
|
|
12272
12322
|
"method": "POST",
|
package/src/lib/api-client.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { CLI_USER_AGENT } from "./vars.ts";
|
|
|
4
4
|
|
|
5
5
|
export interface CliGeneratedClientOptions {
|
|
6
6
|
readonly fetch?: typeof globalThis.fetch;
|
|
7
|
-
readonly organizationId?: string;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
const withCliUserAgent = (fetchImpl: typeof globalThis.fetch): typeof globalThis.fetch =>
|
|
@@ -17,33 +16,14 @@ const withCliUserAgent = (fetchImpl: typeof globalThis.fetch): typeof globalThis
|
|
|
17
16
|
return fetchImpl(new Request(request, { headers }), transportInit);
|
|
18
17
|
}, fetchImpl);
|
|
19
18
|
|
|
20
|
-
export function resolveActiveOrganizationId(
|
|
21
|
-
credentials: StoredCredentials,
|
|
22
|
-
defaultOrg?: string,
|
|
23
|
-
override?: string
|
|
24
|
-
): string | undefined {
|
|
25
|
-
if (override !== undefined && override.trim() !== "") {
|
|
26
|
-
return override;
|
|
27
|
-
}
|
|
28
|
-
if (credentials.activeOrgId !== undefined && credentials.activeOrgId.trim() !== "") {
|
|
29
|
-
return credentials.activeOrgId;
|
|
30
|
-
}
|
|
31
|
-
if (defaultOrg !== undefined && defaultOrg.trim() !== "") {
|
|
32
|
-
return defaultOrg;
|
|
33
|
-
}
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
19
|
export function makeCliClient(
|
|
38
20
|
apiUrl: string,
|
|
39
21
|
credentials: StoredCredentials,
|
|
40
|
-
options: CliGeneratedClientOptions
|
|
22
|
+
options: CliGeneratedClientOptions = {}
|
|
41
23
|
): DalpClient {
|
|
42
|
-
const organizationId = resolveActiveOrganizationId(credentials, options.defaultOrg, options.organizationId);
|
|
43
24
|
return createDalpClient({
|
|
44
25
|
apiKey: credentials.apiKey,
|
|
45
26
|
baseUrl: apiUrl,
|
|
46
|
-
context: organizationId === undefined ? {} : { organizationId },
|
|
47
27
|
fetch: withCliUserAgent(options.fetch ?? globalThis.fetch),
|
|
48
28
|
runtime: "server",
|
|
49
29
|
});
|
package/src/main.ts
CHANGED
|
@@ -64,10 +64,7 @@ export const makeCli = (): Cli.Cli<Record<string, never>, typeof cliVars> => {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
const
|
|
68
|
-
const client = makeCliClient(credentials.apiUrl, credentials, {
|
|
69
|
-
defaultOrg: config.defaultOrg,
|
|
70
|
-
});
|
|
67
|
+
const client = makeCliClient(credentials.apiUrl, credentials);
|
|
71
68
|
c.set("apiUrl", credentials.apiUrl);
|
|
72
69
|
c.set("credentials", credentials);
|
|
73
70
|
c.set("client", client);
|