@settlemint/dalp-cli 3.1.32-main.42350939226 → 3.1.32-main.42359394065
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.
|
@@ -17615,8 +17615,8 @@
|
|
|
17615
17615
|
"method": "GET",
|
|
17616
17616
|
"url": "/api/v2/custody/provider-configurations",
|
|
17617
17617
|
"summary": "List provider configurations available for account creation",
|
|
17618
|
-
"description": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17619
|
-
"help": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17618
|
+
"description": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog lists configurations that serve one network: the Canton network named by `cantonNetwork`, else the EVM chain named by `chainId`, else the request's chain (the `X-Chain-Id` header, or the organization's default chain). An invitation read without `chainId` uses the inviting organization's default chain. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17619
|
+
"help": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog lists configurations that serve one network: the Canton network named by `cantonNetwork`, else the EVM chain named by `chainId`, else the request's chain (the `X-Chain-Id` header, or the organization's default chain). An invitation read without `chainId` uses the inviting organization's default chain. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17620
17620
|
"tags": [
|
|
17621
17621
|
"Custody"
|
|
17622
17622
|
],
|
|
@@ -17632,6 +17632,28 @@
|
|
|
17632
17632
|
"pattern": null,
|
|
17633
17633
|
"examples": [],
|
|
17634
17634
|
"fields": []
|
|
17635
|
+
},
|
|
17636
|
+
{
|
|
17637
|
+
"name": "chainId",
|
|
17638
|
+
"in": "query",
|
|
17639
|
+
"required": false,
|
|
17640
|
+
"description": null,
|
|
17641
|
+
"type": "string",
|
|
17642
|
+
"enum": null,
|
|
17643
|
+
"pattern": null,
|
|
17644
|
+
"examples": [],
|
|
17645
|
+
"fields": []
|
|
17646
|
+
},
|
|
17647
|
+
{
|
|
17648
|
+
"name": "cantonNetwork",
|
|
17649
|
+
"in": "query",
|
|
17650
|
+
"required": false,
|
|
17651
|
+
"description": "Canton network the listed configurations must serve. Takes precedence over `chainId`.",
|
|
17652
|
+
"type": "string",
|
|
17653
|
+
"enum": null,
|
|
17654
|
+
"pattern": null,
|
|
17655
|
+
"examples": [],
|
|
17656
|
+
"fields": []
|
|
17635
17657
|
}
|
|
17636
17658
|
],
|
|
17637
17659
|
"headerParams": [],
|
|
@@ -17646,8 +17668,8 @@
|
|
|
17646
17668
|
"method": "GET",
|
|
17647
17669
|
"url": "/api/v2/custody/investor-provider",
|
|
17648
17670
|
"summary": "Read the custody options offered to investors",
|
|
17649
|
-
"description": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list
|
|
17650
|
-
"help": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list
|
|
17671
|
+
"description": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list the providers the organization enabled for new accounts on a network, use `GET /api/v2/custody/provider-configurations`.",
|
|
17672
|
+
"help": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list the providers the organization enabled for new accounts on a network, use `GET /api/v2/custody/provider-configurations`.",
|
|
17651
17673
|
"tags": [
|
|
17652
17674
|
"Custody"
|
|
17653
17675
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-cli",
|
|
3
|
-
"version": "3.1.32-main.
|
|
3
|
+
"version": "3.1.32-main.42359394065",
|
|
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.0.0-alpha.4",
|
|
53
|
-
"@settlemint/dalp-sdk": "3.1.32-main.
|
|
53
|
+
"@settlemint/dalp-sdk": "3.1.32-main.42359394065",
|
|
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.32-main.
|
|
60
|
-
"@tools/typescript-config": "3.1.32-main.
|
|
59
|
+
"@testkit/effect-bun-test": "3.1.32-main.42359394065",
|
|
60
|
+
"@tools/typescript-config": "3.1.32-main.42359394065",
|
|
61
61
|
"@types/bun": "1.4.4",
|
|
62
62
|
"publint": "0.3.25"
|
|
63
63
|
},
|
package/src/commands/login.ts
CHANGED
|
@@ -174,12 +174,23 @@ export async function pollForToken(
|
|
|
174
174
|
|
|
175
175
|
while (now() < deadline) {
|
|
176
176
|
await sleep(pollInterval);
|
|
177
|
+
if (now() >= deadline) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
177
180
|
const response = await postJson(`${baseUrl}/api/auth/device/token`, {
|
|
178
181
|
grant_type: "urn:ietf:params:oauth:grant-type:device_code",
|
|
179
182
|
device_code: deviceCode,
|
|
180
183
|
client_id: DEVICE_CLIENT_ID,
|
|
181
184
|
});
|
|
182
185
|
|
|
186
|
+
if (now() >= deadline) {
|
|
187
|
+
throw makeCliError({
|
|
188
|
+
code: "kit.cli.DEVICE_AUTHORIZATION_TIMEOUT",
|
|
189
|
+
message: "Device code expired. Run 'dalp login' again.",
|
|
190
|
+
retryable: true,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
183
194
|
if (response.ok) {
|
|
184
195
|
return readBoundedJson(response, tokenResponseSchema);
|
|
185
196
|
}
|
|
@@ -17615,8 +17615,8 @@
|
|
|
17615
17615
|
"method": "GET",
|
|
17616
17616
|
"url": "/api/v2/custody/provider-configurations",
|
|
17617
17617
|
"summary": "List provider configurations available for account creation",
|
|
17618
|
-
"description": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17619
|
-
"help": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17618
|
+
"description": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog lists configurations that serve one network: the Canton network named by `cantonNetwork`, else the EVM chain named by `chainId`, else the request's chain (the `X-Chain-Id` header, or the organization's default chain). An invitation read without `chainId` uses the inviting organization's default chain. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17619
|
+
"help": "Returns only healthy, enabled provider capabilities, with credential provenance and execution diagnostics excluded. The catalog lists configurations that serve one network: the Canton network named by `cantonNetwork`, else the EVM chain named by `chainId`, else the request's chain (the `X-Chain-Id` header, or the organization's default chain). An invitation read without `chainId` uses the inviting organization's default chain. The catalog answers for the active organization. A caller whose session names none reads the inviting organization catalog by naming an open invitation addressed to them.",
|
|
17620
17620
|
"tags": [
|
|
17621
17621
|
"Custody"
|
|
17622
17622
|
],
|
|
@@ -17632,6 +17632,28 @@
|
|
|
17632
17632
|
"pattern": null,
|
|
17633
17633
|
"examples": [],
|
|
17634
17634
|
"fields": []
|
|
17635
|
+
},
|
|
17636
|
+
{
|
|
17637
|
+
"name": "chainId",
|
|
17638
|
+
"in": "query",
|
|
17639
|
+
"required": false,
|
|
17640
|
+
"description": null,
|
|
17641
|
+
"type": "string",
|
|
17642
|
+
"enum": null,
|
|
17643
|
+
"pattern": null,
|
|
17644
|
+
"examples": [],
|
|
17645
|
+
"fields": []
|
|
17646
|
+
},
|
|
17647
|
+
{
|
|
17648
|
+
"name": "cantonNetwork",
|
|
17649
|
+
"in": "query",
|
|
17650
|
+
"required": false,
|
|
17651
|
+
"description": "Canton network the listed configurations must serve. Takes precedence over `chainId`.",
|
|
17652
|
+
"type": "string",
|
|
17653
|
+
"enum": null,
|
|
17654
|
+
"pattern": null,
|
|
17655
|
+
"examples": [],
|
|
17656
|
+
"fields": []
|
|
17635
17657
|
}
|
|
17636
17658
|
],
|
|
17637
17659
|
"headerParams": [],
|
|
@@ -17646,8 +17668,8 @@
|
|
|
17646
17668
|
"method": "GET",
|
|
17647
17669
|
"url": "/api/v2/custody/investor-provider",
|
|
17648
17670
|
"summary": "Read the custody options offered to investors",
|
|
17649
|
-
"description": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list
|
|
17650
|
-
"help": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list
|
|
17671
|
+
"description": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list the providers the organization enabled for new accounts on a network, use `GET /api/v2/custody/provider-configurations`.",
|
|
17672
|
+
"help": "Returns how this organization lets its investors hold assets, and which option is the default, so you can show the investor's choice after KYC. `options` lists each healthy provider configuration that is enabled for new accounts, serves the request's chain (the `X-Chain-Id` header, or the organization's default chain), and is either the investor default or offered to investors. `data` is the default: the configuration the organization designated for investors. `data` is `null` when the organization designated none, or when that configuration is not listed in `options` (this deployment does not enable its provider kind, or it does not serve the chain); in that case show `options` with nothing preselected. When `data` is set, it is also `options[0]`. `custody` says how the investor holds: `managed-account` means the platform creates an account and signs for it, `browser-wallet` means the investor links their own browser wallet, and `embedded-wallet` means the provider's embedded SDK creates the wallet. To list the providers the organization enabled for new accounts on a network, use `GET /api/v2/custody/provider-configurations`.",
|
|
17651
17673
|
"tags": [
|
|
17652
17674
|
"Custody"
|
|
17653
17675
|
],
|