@lightsparkdev/grid-mcp 0.3.0
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/LICENSE +201 -0
- package/README.md +107 -0
- package/code-tool-types.d.mts +14 -0
- package/code-tool-types.d.mts.map +1 -0
- package/code-tool-types.d.ts +14 -0
- package/code-tool-types.d.ts.map +1 -0
- package/code-tool-types.js +4 -0
- package/code-tool-types.js.map +1 -0
- package/code-tool-types.mjs +3 -0
- package/code-tool-types.mjs.map +1 -0
- package/code-tool.d.mts +15 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +15 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +116 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +113 -0
- package/code-tool.mjs.map +1 -0
- package/docs-search-tool.d.mts +51 -0
- package/docs-search-tool.d.mts.map +1 -0
- package/docs-search-tool.d.ts +51 -0
- package/docs-search-tool.d.ts.map +1 -0
- package/docs-search-tool.js +51 -0
- package/docs-search-tool.js.map +1 -0
- package/docs-search-tool.mjs +47 -0
- package/docs-search-tool.mjs.map +1 -0
- package/headers.d.mts +4 -0
- package/headers.d.mts.map +1 -0
- package/headers.d.ts +4 -0
- package/headers.d.ts.map +1 -0
- package/headers.js +35 -0
- package/headers.js.map +1 -0
- package/headers.mjs +31 -0
- package/headers.mjs.map +1 -0
- package/http.d.mts +14 -0
- package/http.d.mts.map +1 -0
- package/http.d.ts +14 -0
- package/http.d.ts.map +1 -0
- package/http.js +105 -0
- package/http.js.map +1 -0
- package/http.mjs +97 -0
- package/http.mjs.map +1 -0
- package/index.d.mts +3 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +59 -0
- package/index.js.map +1 -0
- package/index.mjs +57 -0
- package/index.mjs.map +1 -0
- package/methods.d.mts +10 -0
- package/methods.d.mts.map +1 -0
- package/methods.d.ts +10 -0
- package/methods.d.ts.map +1 -0
- package/methods.js +328 -0
- package/methods.js.map +1 -0
- package/methods.mjs +324 -0
- package/methods.mjs.map +1 -0
- package/options.d.mts +15 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +15 -0
- package/options.d.ts.map +1 -0
- package/options.js +91 -0
- package/options.js.map +1 -0
- package/options.mjs +84 -0
- package/options.mjs.map +1 -0
- package/package.json +174 -0
- package/server.d.mts +30 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +30 -0
- package/server.d.ts.map +1 -0
- package/server.js +160 -0
- package/server.js.map +1 -0
- package/server.mjs +147 -0
- package/server.mjs.map +1 -0
- package/src/code-tool-types.ts +16 -0
- package/src/code-tool.ts +140 -0
- package/src/docs-search-tool.ts +59 -0
- package/src/headers.ts +39 -0
- package/src/http.ts +130 -0
- package/src/index.ts +65 -0
- package/src/methods.ts +348 -0
- package/src/options.ts +118 -0
- package/src/server.ts +195 -0
- package/src/stdio.ts +13 -0
- package/src/tsconfig.json +11 -0
- package/src/types.ts +115 -0
- package/stdio.d.mts +3 -0
- package/stdio.d.mts.map +1 -0
- package/stdio.d.ts +3 -0
- package/stdio.d.ts.map +1 -0
- package/stdio.js +14 -0
- package/stdio.js.map +1 -0
- package/stdio.mjs +10 -0
- package/stdio.mjs.map +1 -0
- package/types.d.mts +52 -0
- package/types.d.mts.map +1 -0
- package/types.d.ts +52 -0
- package/types.d.ts.map +1 -0
- package/types.js +58 -0
- package/types.js.map +1 -0
- package/types.mjs +53 -0
- package/types.mjs.map +1 -0
package/index.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const server_1 = require("./server.js");
|
|
5
|
+
const options_1 = require("./options.js");
|
|
6
|
+
const stdio_1 = require("./stdio.js");
|
|
7
|
+
const http_1 = require("./http.js");
|
|
8
|
+
async function main() {
|
|
9
|
+
const options = parseOptionsOrError();
|
|
10
|
+
const selectedTools = await selectToolsOrError(options);
|
|
11
|
+
console.error(`MCP Server starting with ${selectedTools.length} tools:`, selectedTools.map((e) => e.tool.name));
|
|
12
|
+
switch (options.transport) {
|
|
13
|
+
case 'stdio':
|
|
14
|
+
await (0, stdio_1.launchStdioServer)(options);
|
|
15
|
+
break;
|
|
16
|
+
case 'http':
|
|
17
|
+
await (0, http_1.launchStreamableHTTPServer)({
|
|
18
|
+
mcpOptions: options,
|
|
19
|
+
debug: options.debug,
|
|
20
|
+
port: options.port ?? options.socket,
|
|
21
|
+
});
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (require.main === module) {
|
|
26
|
+
main().catch((error) => {
|
|
27
|
+
console.error('Fatal error in main():', error);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function parseOptionsOrError() {
|
|
32
|
+
try {
|
|
33
|
+
return (0, options_1.parseCLIOptions)();
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.error('Error parsing options:', error);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
async function selectToolsOrError(options) {
|
|
41
|
+
try {
|
|
42
|
+
const includedTools = (0, server_1.selectTools)(options);
|
|
43
|
+
if (includedTools.length === 0) {
|
|
44
|
+
console.error('No tools match the provided filters.');
|
|
45
|
+
process.exit(1);
|
|
46
|
+
}
|
|
47
|
+
return includedTools;
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
if (error instanceof Error) {
|
|
51
|
+
console.error('Error filtering tools:', error.message);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
console.error('Error filtering tools:', error);
|
|
55
|
+
}
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","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C,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,UAAU,kBAAkB,CAAC,OAAmB;IACnD,IAAI,CAAC;QACH,MAAM,aAAa,GAAG,IAAA,oBAAW,EAAC,OAAO,CAAC,CAAC;QAC3C,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,OAAO,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;YACtD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/index.mjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { selectTools } from "./server.mjs";
|
|
3
|
+
import { parseCLIOptions } from "./options.mjs";
|
|
4
|
+
import { launchStdioServer } from "./stdio.mjs";
|
|
5
|
+
import { launchStreamableHTTPServer } from "./http.mjs";
|
|
6
|
+
async function main() {
|
|
7
|
+
const options = parseOptionsOrError();
|
|
8
|
+
const selectedTools = await selectToolsOrError(options);
|
|
9
|
+
console.error(`MCP Server starting with ${selectedTools.length} tools:`, selectedTools.map((e) => e.tool.name));
|
|
10
|
+
switch (options.transport) {
|
|
11
|
+
case 'stdio':
|
|
12
|
+
await launchStdioServer(options);
|
|
13
|
+
break;
|
|
14
|
+
case 'http':
|
|
15
|
+
await launchStreamableHTTPServer({
|
|
16
|
+
mcpOptions: options,
|
|
17
|
+
debug: options.debug,
|
|
18
|
+
port: options.port ?? options.socket,
|
|
19
|
+
});
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (require.main === module) {
|
|
24
|
+
main().catch((error) => {
|
|
25
|
+
console.error('Fatal error in main():', error);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function parseOptionsOrError() {
|
|
30
|
+
try {
|
|
31
|
+
return parseCLIOptions();
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
console.error('Error parsing options:', error);
|
|
35
|
+
process.exit(1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function selectToolsOrError(options) {
|
|
39
|
+
try {
|
|
40
|
+
const includedTools = selectTools(options);
|
|
41
|
+
if (includedTools.length === 0) {
|
|
42
|
+
console.error('No tools match the provided filters.');
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
return includedTools;
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
if (error instanceof Error) {
|
|
49
|
+
console.error('Error filtering tools:', error.message);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.error('Error filtering tools:', error);
|
|
53
|
+
}
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";OAEO,EAAE,WAAW,EAAE;OACf,EAAc,eAAe,EAAE;OAC/B,EAAE,iBAAiB,EAAE;OACrB,EAAE,0BAA0B,EAAE;AAGrC,KAAK,UAAU,IAAI;IACjB,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;IAEtC,MAAM,aAAa,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAExD,OAAO,CAAC,KAAK,CACX,4BAA4B,aAAa,CA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ClB,CAAC;QACD,OAAO,aAAa,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/methods.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { McpOptions } from "./options.mjs";
|
|
2
|
+
export type SdkMethod = {
|
|
3
|
+
clientCallName: string;
|
|
4
|
+
fullyQualifiedName: string;
|
|
5
|
+
httpMethod?: 'get' | 'post' | 'put' | 'patch' | 'delete' | 'query';
|
|
6
|
+
httpPath?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const sdkMethods: SdkMethod[];
|
|
9
|
+
export declare function blockedMethodsForCodeTool(options: McpOptions | undefined): SdkMethod[] | undefined;
|
|
10
|
+
//# sourceMappingURL=methods.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.mts","sourceRoot":"","sources":["src/methods.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,SAAS,EAyQjC,CAAC;AA+DF,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,CAUlG"}
|
package/methods.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { McpOptions } from "./options.js";
|
|
2
|
+
export type SdkMethod = {
|
|
3
|
+
clientCallName: string;
|
|
4
|
+
fullyQualifiedName: string;
|
|
5
|
+
httpMethod?: 'get' | 'post' | 'put' | 'patch' | 'delete' | 'query';
|
|
6
|
+
httpPath?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const sdkMethods: SdkMethod[];
|
|
9
|
+
export declare function blockedMethodsForCodeTool(options: McpOptions | undefined): SdkMethod[] | undefined;
|
|
10
|
+
//# sourceMappingURL=methods.d.ts.map
|
package/methods.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["src/methods.ts"],"names":[],"mappings":"OAAO,EAAE,UAAU,EAAE;AAErB,MAAM,MAAM,SAAS,GAAG;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,SAAS,EAyQjC,CAAC;AA+DF,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,CAUlG"}
|
package/methods.js
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sdkMethods = void 0;
|
|
4
|
+
exports.blockedMethodsForCodeTool = blockedMethodsForCodeTool;
|
|
5
|
+
exports.sdkMethods = [
|
|
6
|
+
{
|
|
7
|
+
clientCallName: 'client.config.retrieve',
|
|
8
|
+
fullyQualifiedName: 'config.retrieve',
|
|
9
|
+
httpMethod: 'get',
|
|
10
|
+
httpPath: '/config',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
clientCallName: 'client.config.update',
|
|
14
|
+
fullyQualifiedName: 'config.update',
|
|
15
|
+
httpMethod: 'patch',
|
|
16
|
+
httpPath: '/config',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
clientCallName: 'client.customers.create',
|
|
20
|
+
fullyQualifiedName: 'customers.create',
|
|
21
|
+
httpMethod: 'post',
|
|
22
|
+
httpPath: '/customers',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
clientCallName: 'client.customers.retrieve',
|
|
26
|
+
fullyQualifiedName: 'customers.retrieve',
|
|
27
|
+
httpMethod: 'get',
|
|
28
|
+
httpPath: '/customers/{customerId}',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
clientCallName: 'client.customers.update',
|
|
32
|
+
fullyQualifiedName: 'customers.update',
|
|
33
|
+
httpMethod: 'patch',
|
|
34
|
+
httpPath: '/customers/{customerId}',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
clientCallName: 'client.customers.list',
|
|
38
|
+
fullyQualifiedName: 'customers.list',
|
|
39
|
+
httpMethod: 'get',
|
|
40
|
+
httpPath: '/customers',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
clientCallName: 'client.customers.delete',
|
|
44
|
+
fullyQualifiedName: 'customers.delete',
|
|
45
|
+
httpMethod: 'delete',
|
|
46
|
+
httpPath: '/customers/{customerId}',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
clientCallName: 'client.customers.getKYCLink',
|
|
50
|
+
fullyQualifiedName: 'customers.getKYCLink',
|
|
51
|
+
httpMethod: 'get',
|
|
52
|
+
httpPath: '/customers/kyc-link',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
clientCallName: 'client.customers.listInternalAccounts',
|
|
56
|
+
fullyQualifiedName: 'customers.listInternalAccounts',
|
|
57
|
+
httpMethod: 'get',
|
|
58
|
+
httpPath: '/customers/internal-accounts',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
clientCallName: 'client.customers.externalAccounts.create',
|
|
62
|
+
fullyQualifiedName: 'customers.externalAccounts.create',
|
|
63
|
+
httpMethod: 'post',
|
|
64
|
+
httpPath: '/customers/external-accounts',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
clientCallName: 'client.customers.externalAccounts.list',
|
|
68
|
+
fullyQualifiedName: 'customers.externalAccounts.list',
|
|
69
|
+
httpMethod: 'get',
|
|
70
|
+
httpPath: '/customers/external-accounts',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
clientCallName: 'client.customers.bulk.getJobStatus',
|
|
74
|
+
fullyQualifiedName: 'customers.bulk.getJobStatus',
|
|
75
|
+
httpMethod: 'get',
|
|
76
|
+
httpPath: '/customers/bulk/jobs/{jobId}',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
clientCallName: 'client.customers.bulk.uploadCsv',
|
|
80
|
+
fullyQualifiedName: 'customers.bulk.uploadCsv',
|
|
81
|
+
httpMethod: 'post',
|
|
82
|
+
httpPath: '/customers/bulk/csv',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
clientCallName: 'client.platform.listInternalAccounts',
|
|
86
|
+
fullyQualifiedName: 'platform.listInternalAccounts',
|
|
87
|
+
httpMethod: 'get',
|
|
88
|
+
httpPath: '/platform/internal-accounts',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
clientCallName: 'client.platform.externalAccounts.create',
|
|
92
|
+
fullyQualifiedName: 'platform.externalAccounts.create',
|
|
93
|
+
httpMethod: 'post',
|
|
94
|
+
httpPath: '/platform/external-accounts',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
clientCallName: 'client.platform.externalAccounts.list',
|
|
98
|
+
fullyQualifiedName: 'platform.externalAccounts.list',
|
|
99
|
+
httpMethod: 'get',
|
|
100
|
+
httpPath: '/platform/external-accounts',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
clientCallName: 'client.plaid.createLinkToken',
|
|
104
|
+
fullyQualifiedName: 'plaid.createLinkToken',
|
|
105
|
+
httpMethod: 'post',
|
|
106
|
+
httpPath: '/plaid/link-tokens',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
clientCallName: 'client.plaid.submitPublicToken',
|
|
110
|
+
fullyQualifiedName: 'plaid.submitPublicToken',
|
|
111
|
+
httpMethod: 'post',
|
|
112
|
+
httpPath: '/plaid/callback/{plaid_link_token}',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
clientCallName: 'client.transferIn.create',
|
|
116
|
+
fullyQualifiedName: 'transferIn.create',
|
|
117
|
+
httpMethod: 'post',
|
|
118
|
+
httpPath: '/transfer-in',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
clientCallName: 'client.transferOut.create',
|
|
122
|
+
fullyQualifiedName: 'transferOut.create',
|
|
123
|
+
httpMethod: 'post',
|
|
124
|
+
httpPath: '/transfer-out',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
clientCallName: 'client.receiver.lookupExternalAccount',
|
|
128
|
+
fullyQualifiedName: 'receiver.lookupExternalAccount',
|
|
129
|
+
httpMethod: 'get',
|
|
130
|
+
httpPath: '/receiver/external-account/{accountId}',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
clientCallName: 'client.receiver.lookupUma',
|
|
134
|
+
fullyQualifiedName: 'receiver.lookupUma',
|
|
135
|
+
httpMethod: 'get',
|
|
136
|
+
httpPath: '/receiver/uma/{receiverUmaAddress}',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
clientCallName: 'client.quotes.create',
|
|
140
|
+
fullyQualifiedName: 'quotes.create',
|
|
141
|
+
httpMethod: 'post',
|
|
142
|
+
httpPath: '/quotes',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
clientCallName: 'client.quotes.retrieve',
|
|
146
|
+
fullyQualifiedName: 'quotes.retrieve',
|
|
147
|
+
httpMethod: 'get',
|
|
148
|
+
httpPath: '/quotes/{quoteId}',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
clientCallName: 'client.quotes.list',
|
|
152
|
+
fullyQualifiedName: 'quotes.list',
|
|
153
|
+
httpMethod: 'get',
|
|
154
|
+
httpPath: '/quotes',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
clientCallName: 'client.quotes.execute',
|
|
158
|
+
fullyQualifiedName: 'quotes.execute',
|
|
159
|
+
httpMethod: 'post',
|
|
160
|
+
httpPath: '/quotes/{quoteId}/execute',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
clientCallName: 'client.transactions.retrieve',
|
|
164
|
+
fullyQualifiedName: 'transactions.retrieve',
|
|
165
|
+
httpMethod: 'get',
|
|
166
|
+
httpPath: '/transactions/{transactionId}',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
clientCallName: 'client.transactions.list',
|
|
170
|
+
fullyQualifiedName: 'transactions.list',
|
|
171
|
+
httpMethod: 'get',
|
|
172
|
+
httpPath: '/transactions',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
clientCallName: 'client.transactions.approve',
|
|
176
|
+
fullyQualifiedName: 'transactions.approve',
|
|
177
|
+
httpMethod: 'post',
|
|
178
|
+
httpPath: '/transactions/{transactionId}/approve',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
clientCallName: 'client.transactions.reject',
|
|
182
|
+
fullyQualifiedName: 'transactions.reject',
|
|
183
|
+
httpMethod: 'post',
|
|
184
|
+
httpPath: '/transactions/{transactionId}/reject',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
clientCallName: 'client.webhooks.sendTest',
|
|
188
|
+
fullyQualifiedName: 'webhooks.sendTest',
|
|
189
|
+
httpMethod: 'post',
|
|
190
|
+
httpPath: '/webhooks/test',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
clientCallName: 'client.invitations.create',
|
|
194
|
+
fullyQualifiedName: 'invitations.create',
|
|
195
|
+
httpMethod: 'post',
|
|
196
|
+
httpPath: '/invitations',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
clientCallName: 'client.invitations.retrieve',
|
|
200
|
+
fullyQualifiedName: 'invitations.retrieve',
|
|
201
|
+
httpMethod: 'get',
|
|
202
|
+
httpPath: '/invitations/{invitationCode}',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
clientCallName: 'client.invitations.cancel',
|
|
206
|
+
fullyQualifiedName: 'invitations.cancel',
|
|
207
|
+
httpMethod: 'post',
|
|
208
|
+
httpPath: '/invitations/{invitationCode}/cancel',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
clientCallName: 'client.invitations.claim',
|
|
212
|
+
fullyQualifiedName: 'invitations.claim',
|
|
213
|
+
httpMethod: 'post',
|
|
214
|
+
httpPath: '/invitations/{invitationCode}/claim',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
clientCallName: 'client.sandbox.sendFunds',
|
|
218
|
+
fullyQualifiedName: 'sandbox.sendFunds',
|
|
219
|
+
httpMethod: 'post',
|
|
220
|
+
httpPath: '/sandbox/send',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
clientCallName: 'client.sandbox.uma.receivePayment',
|
|
224
|
+
fullyQualifiedName: 'sandbox.uma.receivePayment',
|
|
225
|
+
httpMethod: 'post',
|
|
226
|
+
httpPath: '/sandbox/uma/receive',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
clientCallName: 'client.sandbox.internalAccounts.fund',
|
|
230
|
+
fullyQualifiedName: 'sandbox.internalAccounts.fund',
|
|
231
|
+
httpMethod: 'post',
|
|
232
|
+
httpPath: '/sandbox/internal-accounts/{accountId}/fund',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
clientCallName: 'client.umaProviders.list',
|
|
236
|
+
fullyQualifiedName: 'umaProviders.list',
|
|
237
|
+
httpMethod: 'get',
|
|
238
|
+
httpPath: '/uma-providers',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
clientCallName: 'client.tokens.create',
|
|
242
|
+
fullyQualifiedName: 'tokens.create',
|
|
243
|
+
httpMethod: 'post',
|
|
244
|
+
httpPath: '/tokens',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
clientCallName: 'client.tokens.retrieve',
|
|
248
|
+
fullyQualifiedName: 'tokens.retrieve',
|
|
249
|
+
httpMethod: 'get',
|
|
250
|
+
httpPath: '/tokens/{tokenId}',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
clientCallName: 'client.tokens.list',
|
|
254
|
+
fullyQualifiedName: 'tokens.list',
|
|
255
|
+
httpMethod: 'get',
|
|
256
|
+
httpPath: '/tokens',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
clientCallName: 'client.tokens.delete',
|
|
260
|
+
fullyQualifiedName: 'tokens.delete',
|
|
261
|
+
httpMethod: 'delete',
|
|
262
|
+
httpPath: '/tokens/{tokenId}',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
clientCallName: 'client.exchangeRates.list',
|
|
266
|
+
fullyQualifiedName: 'exchangeRates.list',
|
|
267
|
+
httpMethod: 'get',
|
|
268
|
+
httpPath: '/exchange-rates',
|
|
269
|
+
},
|
|
270
|
+
];
|
|
271
|
+
function allowedMethodsForCodeTool(options) {
|
|
272
|
+
if (!options) {
|
|
273
|
+
return undefined;
|
|
274
|
+
}
|
|
275
|
+
let allowedMethods;
|
|
276
|
+
if (options.codeAllowHttpGets || options.codeAllowedMethods) {
|
|
277
|
+
// Start with nothing allowed and then add into it from options
|
|
278
|
+
let allowedMethodsSet = new Set();
|
|
279
|
+
if (options.codeAllowHttpGets) {
|
|
280
|
+
// Add all methods that map to an HTTP GET
|
|
281
|
+
exports.sdkMethods
|
|
282
|
+
.filter((method) => method.httpMethod === 'get')
|
|
283
|
+
.forEach((method) => allowedMethodsSet.add(method));
|
|
284
|
+
}
|
|
285
|
+
if (options.codeAllowedMethods) {
|
|
286
|
+
// Add all methods that match any of the allowed regexps
|
|
287
|
+
const allowedRegexps = options.codeAllowedMethods.map((pattern) => {
|
|
288
|
+
try {
|
|
289
|
+
return new RegExp(pattern);
|
|
290
|
+
}
|
|
291
|
+
catch (e) {
|
|
292
|
+
throw new Error(`Invalid regex pattern for allowed method: "${pattern}": ${e instanceof Error ? e.message : e}`);
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
exports.sdkMethods
|
|
296
|
+
.filter((method) => allowedRegexps.some((regexp) => regexp.test(method.fullyQualifiedName)))
|
|
297
|
+
.forEach((method) => allowedMethodsSet.add(method));
|
|
298
|
+
}
|
|
299
|
+
allowedMethods = Array.from(allowedMethodsSet);
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
// Start with everything allowed
|
|
303
|
+
allowedMethods = [...exports.sdkMethods];
|
|
304
|
+
}
|
|
305
|
+
if (options.codeBlockedMethods) {
|
|
306
|
+
// Filter down based on blocked regexps
|
|
307
|
+
const blockedRegexps = options.codeBlockedMethods.map((pattern) => {
|
|
308
|
+
try {
|
|
309
|
+
return new RegExp(pattern);
|
|
310
|
+
}
|
|
311
|
+
catch (e) {
|
|
312
|
+
throw new Error(`Invalid regex pattern for blocked method: "${pattern}": ${e instanceof Error ? e.message : e}`);
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
allowedMethods = allowedMethods.filter((method) => !blockedRegexps.some((regexp) => regexp.test(method.fullyQualifiedName)));
|
|
316
|
+
}
|
|
317
|
+
return allowedMethods;
|
|
318
|
+
}
|
|
319
|
+
function blockedMethodsForCodeTool(options) {
|
|
320
|
+
const allowedMethods = allowedMethodsForCodeTool(options);
|
|
321
|
+
if (!allowedMethods) {
|
|
322
|
+
return undefined;
|
|
323
|
+
}
|
|
324
|
+
const allowedSet = new Set(allowedMethods.map((method) => method.fullyQualifiedName));
|
|
325
|
+
// Return any methods that are not explicitly allowed
|
|
326
|
+
return exports.sdkMethods.filter((method) => !allowedSet.has(method.fullyQualifiedName));
|
|
327
|
+
}
|
|
328
|
+
//# sourceMappingURL=methods.js.map
|
package/methods.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["src/methods.ts"],"names":[],"mappings":";;;AAiVA,8DAUC;AAlVY,QAAA,UAAU,GAAgB;IACrC;QACE,cAAc,EAAE,wBAAwB;QACxC,kBAAkB,EAAE,iBAAiB;QACrC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,SAAS;KACpB;IACD;QACE,cAAc,EAAE,sBAAsB;QACtC,kBAAkB,EAAE,eAAe;QACnC,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,SAAS;KACpB;IACD;QACE,cAAc,EAAE,yBAAyB;QACzC,kBAAkB,EAAE,kBAAkB;QACtC,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,YAAY;KACvB;IACD;QACE,cAAc,EAAE,2BAA2B;QAC3C,kBAAkB,EAAE,oBAAoB;QACxC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,yBAAyB;KACpC;IACD;QACE,cAAc,EAAE,yBAAyB;QACzC,kBAAkB,EAAE,kBAAkB;QACtC,UAAU,EAAE,OAAO;QACnB,QAAQ,EAAE,yBAAyB;KACpC;IACD;QACE,cAAc,EAAE,uBAAuB;QACvC,kBAAkB,EAAE,gBAAgB;QACpC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,YAAY;KACvB;IACD;QACE,cAAc,EAAE,yBAAyB;QACzC,kBAAkB,EAAE,kBAAkB;QACtC,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,yBAAyB;KACpC;IACD;QACE,cAAc,EAAE,6BAA6B;QAC7C,kBAAkB,EAAE,sBAAsB;QAC1C,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,qBAAqB;KA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