@settlemint/dalp-cli 3.1.32-main.42494365949 → 3.1.32-main.42509611913
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.
|
@@ -43078,6 +43078,114 @@
|
|
|
43078
43078
|
}
|
|
43079
43079
|
]
|
|
43080
43080
|
},
|
|
43081
|
+
"reporting.filings.transactionReportsList": {
|
|
43082
|
+
"name": "reporting.filings.transactionReportsList",
|
|
43083
|
+
"method": "GET",
|
|
43084
|
+
"url": "/api/v2/reporting/transaction-reports",
|
|
43085
|
+
"summary": null,
|
|
43086
|
+
"description": null,
|
|
43087
|
+
"help": "reporting.filings.transactionReportsList",
|
|
43088
|
+
"tags": [
|
|
43089
|
+
"Regulatory reporting"
|
|
43090
|
+
],
|
|
43091
|
+
"pathParams": [],
|
|
43092
|
+
"queryParams": [
|
|
43093
|
+
{
|
|
43094
|
+
"name": "filter",
|
|
43095
|
+
"in": "query",
|
|
43096
|
+
"required": false,
|
|
43097
|
+
"description": null,
|
|
43098
|
+
"type": "object",
|
|
43099
|
+
"enum": null,
|
|
43100
|
+
"pattern": null,
|
|
43101
|
+
"examples": [],
|
|
43102
|
+
"fields": [
|
|
43103
|
+
{
|
|
43104
|
+
"name": "q",
|
|
43105
|
+
"in": "query",
|
|
43106
|
+
"required": false,
|
|
43107
|
+
"description": null,
|
|
43108
|
+
"type": "string",
|
|
43109
|
+
"enum": null,
|
|
43110
|
+
"pattern": null,
|
|
43111
|
+
"examples": [],
|
|
43112
|
+
"fields": []
|
|
43113
|
+
},
|
|
43114
|
+
{
|
|
43115
|
+
"name": "state",
|
|
43116
|
+
"in": "query",
|
|
43117
|
+
"required": false,
|
|
43118
|
+
"description": null,
|
|
43119
|
+
"type": "string",
|
|
43120
|
+
"enum": [
|
|
43121
|
+
"queued",
|
|
43122
|
+
"submitted",
|
|
43123
|
+
"acknowledged",
|
|
43124
|
+
"rejected"
|
|
43125
|
+
],
|
|
43126
|
+
"pattern": null,
|
|
43127
|
+
"examples": [
|
|
43128
|
+
"queued",
|
|
43129
|
+
"submitted",
|
|
43130
|
+
"acknowledged"
|
|
43131
|
+
],
|
|
43132
|
+
"fields": []
|
|
43133
|
+
},
|
|
43134
|
+
{
|
|
43135
|
+
"name": "obligationVersionId",
|
|
43136
|
+
"in": "query",
|
|
43137
|
+
"required": false,
|
|
43138
|
+
"description": null,
|
|
43139
|
+
"type": "string",
|
|
43140
|
+
"enum": null,
|
|
43141
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
43142
|
+
"examples": [],
|
|
43143
|
+
"fields": []
|
|
43144
|
+
}
|
|
43145
|
+
]
|
|
43146
|
+
},
|
|
43147
|
+
{
|
|
43148
|
+
"name": "page",
|
|
43149
|
+
"in": "query",
|
|
43150
|
+
"required": false,
|
|
43151
|
+
"description": "Keyset page window. Send `page[limit]` and continue with the opaque `page[cursor]` from `meta.nextCursor`.",
|
|
43152
|
+
"type": "object",
|
|
43153
|
+
"enum": null,
|
|
43154
|
+
"pattern": null,
|
|
43155
|
+
"examples": [],
|
|
43156
|
+
"fields": [
|
|
43157
|
+
{
|
|
43158
|
+
"name": "limit",
|
|
43159
|
+
"in": "query",
|
|
43160
|
+
"required": false,
|
|
43161
|
+
"description": null,
|
|
43162
|
+
"type": "number",
|
|
43163
|
+
"enum": null,
|
|
43164
|
+
"pattern": null,
|
|
43165
|
+
"examples": [],
|
|
43166
|
+
"fields": []
|
|
43167
|
+
},
|
|
43168
|
+
{
|
|
43169
|
+
"name": "cursor",
|
|
43170
|
+
"in": "query",
|
|
43171
|
+
"required": false,
|
|
43172
|
+
"description": "Opaque cursor from `meta.nextCursor` of the previous page. Send it with the same `sort` and filters to read the next page without an offset scan. When present, `page[offset]` is ignored.",
|
|
43173
|
+
"type": "string",
|
|
43174
|
+
"enum": null,
|
|
43175
|
+
"pattern": null,
|
|
43176
|
+
"examples": [],
|
|
43177
|
+
"fields": []
|
|
43178
|
+
}
|
|
43179
|
+
]
|
|
43180
|
+
}
|
|
43181
|
+
],
|
|
43182
|
+
"headerParams": [],
|
|
43183
|
+
"requestBodyDescription": null,
|
|
43184
|
+
"hasRequestBody": false,
|
|
43185
|
+
"bodyIsComplex": false,
|
|
43186
|
+
"bodyFields": [],
|
|
43187
|
+
"examples": []
|
|
43188
|
+
},
|
|
43081
43189
|
"reporting.filings.transactionReportsTransition": {
|
|
43082
43190
|
"name": "reporting.filings.transactionReportsTransition",
|
|
43083
43191
|
"method": "POST",
|
|
@@ -44721,14 +44829,15 @@
|
|
|
44721
44829
|
"type": "string",
|
|
44722
44830
|
"enum": [
|
|
44723
44831
|
"admin",
|
|
44832
|
+
"agent",
|
|
44724
44833
|
"participant",
|
|
44725
44834
|
"system"
|
|
44726
44835
|
],
|
|
44727
44836
|
"pattern": null,
|
|
44728
44837
|
"examples": [
|
|
44729
44838
|
"admin",
|
|
44730
|
-
"
|
|
44731
|
-
"
|
|
44839
|
+
"agent",
|
|
44840
|
+
"participant"
|
|
44732
44841
|
],
|
|
44733
44842
|
"fields": []
|
|
44734
44843
|
},
|
|
@@ -44935,14 +45044,15 @@
|
|
|
44935
45044
|
"type": "string",
|
|
44936
45045
|
"enum": [
|
|
44937
45046
|
"admin",
|
|
45047
|
+
"agent",
|
|
44938
45048
|
"participant",
|
|
44939
45049
|
"system"
|
|
44940
45050
|
],
|
|
44941
45051
|
"pattern": null,
|
|
44942
45052
|
"examples": [
|
|
44943
45053
|
"admin",
|
|
44944
|
-
"
|
|
44945
|
-
"
|
|
45054
|
+
"agent",
|
|
45055
|
+
"participant"
|
|
44946
45056
|
],
|
|
44947
45057
|
"fields": []
|
|
44948
45058
|
},
|
|
@@ -45076,14 +45186,15 @@
|
|
|
45076
45186
|
"type": "string",
|
|
45077
45187
|
"enum": [
|
|
45078
45188
|
"admin",
|
|
45189
|
+
"agent",
|
|
45079
45190
|
"participant",
|
|
45080
45191
|
"system"
|
|
45081
45192
|
],
|
|
45082
45193
|
"pattern": null,
|
|
45083
45194
|
"examples": [
|
|
45084
45195
|
"admin",
|
|
45085
|
-
"
|
|
45086
|
-
"
|
|
45196
|
+
"agent",
|
|
45197
|
+
"participant"
|
|
45087
45198
|
],
|
|
45088
45199
|
"fields": []
|
|
45089
45200
|
},
|
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.42509611913",
|
|
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",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"typecheck": "taskguard effect-tsgo tsrs --customConditions dalp-types"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@modelcontextprotocol/server": "2.
|
|
53
|
-
"@settlemint/dalp-sdk": "3.1.32-main.
|
|
52
|
+
"@modelcontextprotocol/server": "2.4.0",
|
|
53
|
+
"@settlemint/dalp-sdk": "3.1.32-main.42509611913",
|
|
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.42509611913",
|
|
60
|
+
"@tools/typescript-config": "3.1.32-main.42509611913",
|
|
61
61
|
"@types/bun": "1.4.4",
|
|
62
62
|
"publint": "0.3.25"
|
|
63
63
|
},
|
|
@@ -43078,6 +43078,114 @@
|
|
|
43078
43078
|
}
|
|
43079
43079
|
]
|
|
43080
43080
|
},
|
|
43081
|
+
"reporting.filings.transactionReportsList": {
|
|
43082
|
+
"name": "reporting.filings.transactionReportsList",
|
|
43083
|
+
"method": "GET",
|
|
43084
|
+
"url": "/api/v2/reporting/transaction-reports",
|
|
43085
|
+
"summary": null,
|
|
43086
|
+
"description": null,
|
|
43087
|
+
"help": "reporting.filings.transactionReportsList",
|
|
43088
|
+
"tags": [
|
|
43089
|
+
"Regulatory reporting"
|
|
43090
|
+
],
|
|
43091
|
+
"pathParams": [],
|
|
43092
|
+
"queryParams": [
|
|
43093
|
+
{
|
|
43094
|
+
"name": "filter",
|
|
43095
|
+
"in": "query",
|
|
43096
|
+
"required": false,
|
|
43097
|
+
"description": null,
|
|
43098
|
+
"type": "object",
|
|
43099
|
+
"enum": null,
|
|
43100
|
+
"pattern": null,
|
|
43101
|
+
"examples": [],
|
|
43102
|
+
"fields": [
|
|
43103
|
+
{
|
|
43104
|
+
"name": "q",
|
|
43105
|
+
"in": "query",
|
|
43106
|
+
"required": false,
|
|
43107
|
+
"description": null,
|
|
43108
|
+
"type": "string",
|
|
43109
|
+
"enum": null,
|
|
43110
|
+
"pattern": null,
|
|
43111
|
+
"examples": [],
|
|
43112
|
+
"fields": []
|
|
43113
|
+
},
|
|
43114
|
+
{
|
|
43115
|
+
"name": "state",
|
|
43116
|
+
"in": "query",
|
|
43117
|
+
"required": false,
|
|
43118
|
+
"description": null,
|
|
43119
|
+
"type": "string",
|
|
43120
|
+
"enum": [
|
|
43121
|
+
"queued",
|
|
43122
|
+
"submitted",
|
|
43123
|
+
"acknowledged",
|
|
43124
|
+
"rejected"
|
|
43125
|
+
],
|
|
43126
|
+
"pattern": null,
|
|
43127
|
+
"examples": [
|
|
43128
|
+
"queued",
|
|
43129
|
+
"submitted",
|
|
43130
|
+
"acknowledged"
|
|
43131
|
+
],
|
|
43132
|
+
"fields": []
|
|
43133
|
+
},
|
|
43134
|
+
{
|
|
43135
|
+
"name": "obligationVersionId",
|
|
43136
|
+
"in": "query",
|
|
43137
|
+
"required": false,
|
|
43138
|
+
"description": null,
|
|
43139
|
+
"type": "string",
|
|
43140
|
+
"enum": null,
|
|
43141
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
43142
|
+
"examples": [],
|
|
43143
|
+
"fields": []
|
|
43144
|
+
}
|
|
43145
|
+
]
|
|
43146
|
+
},
|
|
43147
|
+
{
|
|
43148
|
+
"name": "page",
|
|
43149
|
+
"in": "query",
|
|
43150
|
+
"required": false,
|
|
43151
|
+
"description": "Keyset page window. Send `page[limit]` and continue with the opaque `page[cursor]` from `meta.nextCursor`.",
|
|
43152
|
+
"type": "object",
|
|
43153
|
+
"enum": null,
|
|
43154
|
+
"pattern": null,
|
|
43155
|
+
"examples": [],
|
|
43156
|
+
"fields": [
|
|
43157
|
+
{
|
|
43158
|
+
"name": "limit",
|
|
43159
|
+
"in": "query",
|
|
43160
|
+
"required": false,
|
|
43161
|
+
"description": null,
|
|
43162
|
+
"type": "number",
|
|
43163
|
+
"enum": null,
|
|
43164
|
+
"pattern": null,
|
|
43165
|
+
"examples": [],
|
|
43166
|
+
"fields": []
|
|
43167
|
+
},
|
|
43168
|
+
{
|
|
43169
|
+
"name": "cursor",
|
|
43170
|
+
"in": "query",
|
|
43171
|
+
"required": false,
|
|
43172
|
+
"description": "Opaque cursor from `meta.nextCursor` of the previous page. Send it with the same `sort` and filters to read the next page without an offset scan. When present, `page[offset]` is ignored.",
|
|
43173
|
+
"type": "string",
|
|
43174
|
+
"enum": null,
|
|
43175
|
+
"pattern": null,
|
|
43176
|
+
"examples": [],
|
|
43177
|
+
"fields": []
|
|
43178
|
+
}
|
|
43179
|
+
]
|
|
43180
|
+
}
|
|
43181
|
+
],
|
|
43182
|
+
"headerParams": [],
|
|
43183
|
+
"requestBodyDescription": null,
|
|
43184
|
+
"hasRequestBody": false,
|
|
43185
|
+
"bodyIsComplex": false,
|
|
43186
|
+
"bodyFields": [],
|
|
43187
|
+
"examples": []
|
|
43188
|
+
},
|
|
43081
43189
|
"reporting.filings.transactionReportsTransition": {
|
|
43082
43190
|
"name": "reporting.filings.transactionReportsTransition",
|
|
43083
43191
|
"method": "POST",
|
|
@@ -44721,14 +44829,15 @@
|
|
|
44721
44829
|
"type": "string",
|
|
44722
44830
|
"enum": [
|
|
44723
44831
|
"admin",
|
|
44832
|
+
"agent",
|
|
44724
44833
|
"participant",
|
|
44725
44834
|
"system"
|
|
44726
44835
|
],
|
|
44727
44836
|
"pattern": null,
|
|
44728
44837
|
"examples": [
|
|
44729
44838
|
"admin",
|
|
44730
|
-
"
|
|
44731
|
-
"
|
|
44839
|
+
"agent",
|
|
44840
|
+
"participant"
|
|
44732
44841
|
],
|
|
44733
44842
|
"fields": []
|
|
44734
44843
|
},
|
|
@@ -44935,14 +45044,15 @@
|
|
|
44935
45044
|
"type": "string",
|
|
44936
45045
|
"enum": [
|
|
44937
45046
|
"admin",
|
|
45047
|
+
"agent",
|
|
44938
45048
|
"participant",
|
|
44939
45049
|
"system"
|
|
44940
45050
|
],
|
|
44941
45051
|
"pattern": null,
|
|
44942
45052
|
"examples": [
|
|
44943
45053
|
"admin",
|
|
44944
|
-
"
|
|
44945
|
-
"
|
|
45054
|
+
"agent",
|
|
45055
|
+
"participant"
|
|
44946
45056
|
],
|
|
44947
45057
|
"fields": []
|
|
44948
45058
|
},
|
|
@@ -45076,14 +45186,15 @@
|
|
|
45076
45186
|
"type": "string",
|
|
45077
45187
|
"enum": [
|
|
45078
45188
|
"admin",
|
|
45189
|
+
"agent",
|
|
45079
45190
|
"participant",
|
|
45080
45191
|
"system"
|
|
45081
45192
|
],
|
|
45082
45193
|
"pattern": null,
|
|
45083
45194
|
"examples": [
|
|
45084
45195
|
"admin",
|
|
45085
|
-
"
|
|
45086
|
-
"
|
|
45196
|
+
"agent",
|
|
45197
|
+
"participant"
|
|
45087
45198
|
],
|
|
45088
45199
|
"fields": []
|
|
45089
45200
|
},
|
package/src/hosted-mcp.ts
CHANGED
|
@@ -31,6 +31,8 @@ export interface PrepareCall {
|
|
|
31
31
|
readonly assetId: string;
|
|
32
32
|
readonly fields: Readonly<Record<string, string>>;
|
|
33
33
|
readonly execution: HostedExecutionMode;
|
|
34
|
+
readonly agentId: string | undefined;
|
|
35
|
+
readonly idempotencyKey: string | undefined;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export type PrepareOutcome =
|
|
@@ -73,13 +75,23 @@ const prepareCommand = (tool: PrepareTool) => ({
|
|
|
73
75
|
assetId: z.string().describe("The asset the write acts on: its contract address."),
|
|
74
76
|
...Object.fromEntries(Object.entries(tool.fields).map(([name, field]) => [name, fieldOption(field)])),
|
|
75
77
|
execution: executionOption,
|
|
78
|
+
agentId: z
|
|
79
|
+
.string()
|
|
80
|
+
.optional()
|
|
81
|
+
.describe("With execution mandate only: the agent principal that acts, its pp_ id from the Agents page."),
|
|
82
|
+
idempotencyKey: z
|
|
83
|
+
.string()
|
|
84
|
+
.optional()
|
|
85
|
+
.describe(
|
|
86
|
+
"Required with execution mandate: a key you choose for this write and send again, unchanged, on a retry, so the write never runs twice."
|
|
87
|
+
),
|
|
76
88
|
}),
|
|
77
89
|
run: async (context: {
|
|
78
90
|
readonly options: PrepareOptions;
|
|
79
91
|
readonly var: { readonly prepare?: PrepareExecutor | undefined };
|
|
80
92
|
readonly error: (error: { readonly code: string; readonly message: string }) => unknown;
|
|
81
93
|
}) => {
|
|
82
|
-
const { assetId, execution, ...rest } = context.options;
|
|
94
|
+
const { assetId, execution, agentId, idempotencyKey, ...rest } = context.options;
|
|
83
95
|
if (context.var.prepare === undefined || typeof assetId !== "string") {
|
|
84
96
|
return context.error({ code: "PREPARE_UNAVAILABLE", message: "This server does not prepare writes." });
|
|
85
97
|
}
|
|
@@ -91,6 +103,8 @@ const prepareCommand = (tool: PrepareTool) => ({
|
|
|
91
103
|
assetId,
|
|
92
104
|
fields,
|
|
93
105
|
execution: execution === "mandate" ? "mandate" : "inbox",
|
|
106
|
+
agentId,
|
|
107
|
+
idempotencyKey,
|
|
94
108
|
});
|
|
95
109
|
return "refused" in outcome ? context.error(outcome.refused) : outcome.prepared;
|
|
96
110
|
},
|