@compass-labs/api-sdk 0.5.64 → 0.5.66
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/README.md +0 -2
- package/bin/mcp-server.js +113 -174
- package/bin/mcp-server.js.map +11 -13
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +2 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +18 -0
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +26 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/components/vaultdepositparams.d.ts +68 -0
- package/dist/commonjs/models/components/vaultdepositparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/vaultdepositparams.js +109 -0
- package/dist/commonjs/models/components/vaultdepositparams.js.map +1 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.d.ts +44 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.js +86 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/universal.d.ts +0 -11
- package/dist/commonjs/sdk/universal.d.ts.map +1 -1
- package/dist/commonjs/sdk/universal.js +0 -14
- package/dist/commonjs/sdk/universal.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +2 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +18 -0
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +26 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/components/vaultdepositparams.d.ts +68 -0
- package/dist/esm/models/components/vaultdepositparams.d.ts.map +1 -0
- package/dist/esm/models/components/vaultdepositparams.js +69 -0
- package/dist/esm/models/components/vaultdepositparams.js.map +1 -0
- package/dist/esm/models/components/vaultwithdrawparams.d.ts +44 -0
- package/dist/esm/models/components/vaultwithdrawparams.d.ts.map +1 -0
- package/dist/esm/models/components/vaultwithdrawparams.js +48 -0
- package/dist/esm/models/components/vaultwithdrawparams.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/universal.d.ts +0 -11
- package/dist/esm/sdk/universal.d.ts.map +1 -1
- package/dist/esm/sdk/universal.js +0 -14
- package/dist/esm/sdk/universal.js.map +1 -1
- package/docs/sdks/universal/README.md +0 -75
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -3
- package/src/models/components/index.ts +2 -1
- package/src/models/components/useroperation.ts +60 -0
- package/src/models/components/vaultdepositparams.ts +151 -0
- package/src/models/components/vaultwithdrawparams.ts +98 -0
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/universal.ts +0 -22
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts +0 -23
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.js +0 -127
- package/dist/commonjs/funcs/universalVisualizePortfolio.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js +0 -68
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js.map +0 -1
- package/dist/commonjs/models/components/image.d.ts +0 -32
- package/dist/commonjs/models/components/image.d.ts.map +0 -1
- package/dist/commonjs/models/components/image.js +0 -70
- package/dist/commonjs/models/components/image.js.map +0 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +0 -63
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +0 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js +0 -91
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +0 -1
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts +0 -23
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/esm/funcs/universalVisualizePortfolio.js +0 -91
- package/dist/esm/funcs/universalVisualizePortfolio.js.map +0 -1
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.d.ts +0 -8
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js +0 -32
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js.map +0 -1
- package/dist/esm/models/components/image.d.ts +0 -32
- package/dist/esm/models/components/image.d.ts.map +0 -1
- package/dist/esm/models/components/image.js +0 -32
- package/dist/esm/models/components/image.js.map +0 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +0 -63
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +0 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js +0 -53
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +0 -1
- package/src/funcs/universalVisualizePortfolio.ts +0 -180
- package/src/mcp-server/tools/universalVisualizePortfolio.ts +0 -41
- package/src/models/components/image.ts +0 -62
- package/src/models/operations/genericvisualizeportfolio.ts +0 -110
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CompassApiSDKCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
|
-
import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
|
|
5
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
-
import * as errors from "../models/errors/index.js";
|
|
7
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { APIPromise } from "../types/async.js";
|
|
11
|
-
import { Result } from "../types/fp.js";
|
|
12
|
-
/**
|
|
13
|
-
* Visualize User Portfolio
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Generate a visual representation of the token portfolio for a wallet address.
|
|
17
|
-
*
|
|
18
|
-
* The response is an SVG image of a pie chart depicting the relative distribution of
|
|
19
|
-
* tokens held, colored and labeled with token symbols, percentages and token values in
|
|
20
|
-
* USD.
|
|
21
|
-
*/
|
|
22
|
-
export declare function universalVisualizePortfolio(client: CompassApiSDKCore, request: operations.GenericVisualizePortfolioRequest, options?: RequestOptions): APIPromise<Result<components.Image, errors.HTTPValidationError | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
23
|
-
//# sourceMappingURL=universalVisualizePortfolio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universalVisualizePortfolio.d.ts","sourceRoot":"","sources":["../../../src/funcs/universalVisualizePortfolio.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,KAAK,EACd,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.universalVisualizePortfolio = universalVisualizePortfolio;
|
|
40
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
-
const security_js_1 = require("../lib/security.js");
|
|
45
|
-
const url_js_1 = require("../lib/url.js");
|
|
46
|
-
const components = __importStar(require("../models/components/index.js"));
|
|
47
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
-
const async_js_1 = require("../types/async.js");
|
|
50
|
-
/**
|
|
51
|
-
* Visualize User Portfolio
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Generate a visual representation of the token portfolio for a wallet address.
|
|
55
|
-
*
|
|
56
|
-
* The response is an SVG image of a pie chart depicting the relative distribution of
|
|
57
|
-
* tokens held, colored and labeled with token symbols, percentages and token values in
|
|
58
|
-
* USD.
|
|
59
|
-
*/
|
|
60
|
-
function universalVisualizePortfolio(client, request, options) {
|
|
61
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
62
|
-
}
|
|
63
|
-
async function $do(client, request, options) {
|
|
64
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65
|
-
if (!parsed.ok) {
|
|
66
|
-
return [parsed, { status: "invalid" }];
|
|
67
|
-
}
|
|
68
|
-
const payload = parsed.value;
|
|
69
|
-
const body = null;
|
|
70
|
-
const path = (0, url_js_1.pathToFunc)("/v0/generic/visualize_portfolio/get")();
|
|
71
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
72
|
-
"chain": payload.chain,
|
|
73
|
-
"user": payload.user,
|
|
74
|
-
});
|
|
75
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
76
|
-
Accept: "application/json",
|
|
77
|
-
}));
|
|
78
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyAuth);
|
|
79
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
80
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
81
|
-
const context = {
|
|
82
|
-
options: client._options,
|
|
83
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
-
operationID: "generic_visualize_portfolio",
|
|
85
|
-
oAuth2Scopes: [],
|
|
86
|
-
resolvedSecurity: requestSecurity,
|
|
87
|
-
securitySource: client._options.apiKeyAuth,
|
|
88
|
-
retryConfig: options?.retries
|
|
89
|
-
|| client._options.retryConfig
|
|
90
|
-
|| { strategy: "none" },
|
|
91
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
-
};
|
|
93
|
-
const requestRes = client._createRequest(context, {
|
|
94
|
-
security: requestSecurity,
|
|
95
|
-
method: "GET",
|
|
96
|
-
baseURL: options?.serverURL,
|
|
97
|
-
path: path,
|
|
98
|
-
headers: headers,
|
|
99
|
-
query: query,
|
|
100
|
-
body: body,
|
|
101
|
-
userAgent: client._options.userAgent,
|
|
102
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
|
-
}, options);
|
|
104
|
-
if (!requestRes.ok) {
|
|
105
|
-
return [requestRes, { status: "invalid" }];
|
|
106
|
-
}
|
|
107
|
-
const req = requestRes.value;
|
|
108
|
-
const doResult = await client._do(req, {
|
|
109
|
-
context,
|
|
110
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
111
|
-
retryConfig: context.retryConfig,
|
|
112
|
-
retryCodes: context.retryCodes,
|
|
113
|
-
});
|
|
114
|
-
if (!doResult.ok) {
|
|
115
|
-
return [doResult, { status: "request-error", request: req }];
|
|
116
|
-
}
|
|
117
|
-
const response = doResult.value;
|
|
118
|
-
const responseFields = {
|
|
119
|
-
HttpMeta: { Response: response, Request: req },
|
|
120
|
-
};
|
|
121
|
-
const [result] = await M.match(M.json(200, components.Image$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
122
|
-
if (!result.ok) {
|
|
123
|
-
return [result, { status: "complete", request: req, response }];
|
|
124
|
-
}
|
|
125
|
-
return [result, { status: "complete", request: req, response }];
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=universalVisualizePortfolio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universalVisualizePortfolio.js","sourceRoot":"","sources":["../../../src/funcs/universalVisualizePortfolio.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,kEAuBC;AAxDD,sDAAsD;AACtD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAS5D,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;;;GASG;AACH,SAAgB,2BAA2B,CACzC,MAAyB,EACzB,OAAoD,EACpD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAoD,EACpD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,+CAA+C,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,IAAI,GAAG,IA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CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.GenericVisualizePortfolioRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$universalVisualizePortfolio: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=universalVisualizePortfolio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universalVisualizePortfolio.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/universalVisualizePortfolio.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,cAAc,CAAC,OAAO,IAAI,CA4BxE,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tool$universalVisualizePortfolio = void 0;
|
|
40
|
-
const universalVisualizePortfolio_js_1 = require("../../funcs/universalVisualizePortfolio.js");
|
|
41
|
-
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
-
const tools_js_1 = require("../tools.js");
|
|
43
|
-
const args = {
|
|
44
|
-
request: operations.GenericVisualizePortfolioRequest$inboundSchema,
|
|
45
|
-
};
|
|
46
|
-
exports.tool$universalVisualizePortfolio = {
|
|
47
|
-
name: "universal-visualize-portfolio",
|
|
48
|
-
description: `Visualize User Portfolio
|
|
49
|
-
|
|
50
|
-
Generate a visual representation of the token portfolio for a wallet address.
|
|
51
|
-
|
|
52
|
-
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
53
|
-
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
54
|
-
USD.`,
|
|
55
|
-
args,
|
|
56
|
-
tool: async (client, args, ctx) => {
|
|
57
|
-
const [result, apiCall] = await (0, universalVisualizePortfolio_js_1.universalVisualizePortfolio)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58
|
-
if (!result.ok) {
|
|
59
|
-
return {
|
|
60
|
-
content: [{ type: "text", text: result.error.message }],
|
|
61
|
-
isError: true,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
const value = result.value;
|
|
65
|
-
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=universalVisualizePortfolio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universalVisualizePortfolio.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/universalVisualizePortfolio.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+FAAyF;AACzF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,8CAA8C;CACnE,CAAC;AAEW,QAAA,gCAAgC,GAAgC;IAC3E,IAAI,EAAE,+BAA+B;IACrC,WAAW,EAAE;;;;;;KAMV;IACH,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,4DAA2B,EACzD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type Image = {
|
|
5
|
-
/**
|
|
6
|
-
* Base64 encoded SVG image
|
|
7
|
-
*/
|
|
8
|
-
image: string;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const Image$inboundSchema: z.ZodType<Image, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type Image$Outbound = {
|
|
14
|
-
image: string;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const Image$outboundSchema: z.ZodType<Image$Outbound, z.ZodTypeDef, Image>;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export declare namespace Image$ {
|
|
23
|
-
/** @deprecated use `Image$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodType<Image, z.ZodTypeDef, unknown>;
|
|
25
|
-
/** @deprecated use `Image$outboundSchema` instead. */
|
|
26
|
-
const outboundSchema: z.ZodType<Image$Outbound, z.ZodTypeDef, Image>;
|
|
27
|
-
/** @deprecated use `Image$Outbound` instead. */
|
|
28
|
-
type Outbound = Image$Outbound;
|
|
29
|
-
}
|
|
30
|
-
export declare function imageToJSON(image: Image): string;
|
|
31
|
-
export declare function imageFromJSON(jsonString: string): SafeParseResult<Image, SDKValidationError>;
|
|
32
|
-
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/models/components/image.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAGpE,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAC1C,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,KAAK,CAGL,CAAC;AAEH;;;GAGG;AACH,yBAAiB,MAAM,CAAC;IACtB,qDAAqD;IAC9C,MAAM,aAAa,yCAAsB,CAAC;IACjD,sDAAsD;IAC/C,MAAM,cAAc,gDAAuB,CAAC;IACnD,gDAAgD;IAChD,KAAY,QAAQ,GAAG,cAAc,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Image$ = exports.Image$outboundSchema = exports.Image$inboundSchema = void 0;
|
|
40
|
-
exports.imageToJSON = imageToJSON;
|
|
41
|
-
exports.imageFromJSON = imageFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.Image$inboundSchema = z
|
|
46
|
-
.object({
|
|
47
|
-
image: z.string(),
|
|
48
|
-
});
|
|
49
|
-
/** @internal */
|
|
50
|
-
exports.Image$outboundSchema = z.object({
|
|
51
|
-
image: z.string(),
|
|
52
|
-
});
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
var Image$;
|
|
58
|
-
(function (Image$) {
|
|
59
|
-
/** @deprecated use `Image$inboundSchema` instead. */
|
|
60
|
-
Image$.inboundSchema = exports.Image$inboundSchema;
|
|
61
|
-
/** @deprecated use `Image$outboundSchema` instead. */
|
|
62
|
-
Image$.outboundSchema = exports.Image$outboundSchema;
|
|
63
|
-
})(Image$ || (exports.Image$ = Image$ = {}));
|
|
64
|
-
function imageToJSON(image) {
|
|
65
|
-
return JSON.stringify(exports.Image$outboundSchema.parse(image));
|
|
66
|
-
}
|
|
67
|
-
function imageFromJSON(jsonString) {
|
|
68
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Image$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Image' from JSON`);
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=image.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../../src/models/components/image.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,kCAEC;AAED,sCAQC;AAzDD,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC;KAC1E,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,oBAAoB,GAI7B,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,2BAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,4BAAoB,CAAC;AAGrD,CAAC,EAPgB,MAAM,sBAAN,MAAM,QAOtB;AAED,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,4BAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,aAAa,CAC3B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const GenericVisualizePortfolioChain: {
|
|
6
|
-
readonly ArbitrumMainnet: "arbitrum:mainnet";
|
|
7
|
-
readonly BaseMainnet: "base:mainnet";
|
|
8
|
-
readonly EthereumMainnet: "ethereum:mainnet";
|
|
9
|
-
};
|
|
10
|
-
export type GenericVisualizePortfolioChain = ClosedEnum<typeof GenericVisualizePortfolioChain>;
|
|
11
|
-
export type GenericVisualizePortfolioRequest = {
|
|
12
|
-
chain?: GenericVisualizePortfolioChain | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The user to get portfolio for.
|
|
15
|
-
*/
|
|
16
|
-
user?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const GenericVisualizePortfolioChain$inboundSchema: z.ZodNativeEnum<typeof GenericVisualizePortfolioChain>;
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const GenericVisualizePortfolioChain$outboundSchema: z.ZodNativeEnum<typeof GenericVisualizePortfolioChain>;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace GenericVisualizePortfolioChain$ {
|
|
27
|
-
/** @deprecated use `GenericVisualizePortfolioChain$inboundSchema` instead. */
|
|
28
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
29
|
-
readonly ArbitrumMainnet: "arbitrum:mainnet";
|
|
30
|
-
readonly BaseMainnet: "base:mainnet";
|
|
31
|
-
readonly EthereumMainnet: "ethereum:mainnet";
|
|
32
|
-
}>;
|
|
33
|
-
/** @deprecated use `GenericVisualizePortfolioChain$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
35
|
-
readonly ArbitrumMainnet: "arbitrum:mainnet";
|
|
36
|
-
readonly BaseMainnet: "base:mainnet";
|
|
37
|
-
readonly EthereumMainnet: "ethereum:mainnet";
|
|
38
|
-
}>;
|
|
39
|
-
}
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const GenericVisualizePortfolioRequest$inboundSchema: z.ZodType<GenericVisualizePortfolioRequest, z.ZodTypeDef, unknown>;
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type GenericVisualizePortfolioRequest$Outbound = {
|
|
44
|
-
chain: string;
|
|
45
|
-
user: string;
|
|
46
|
-
};
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const GenericVisualizePortfolioRequest$outboundSchema: z.ZodType<GenericVisualizePortfolioRequest$Outbound, z.ZodTypeDef, GenericVisualizePortfolioRequest>;
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export declare namespace GenericVisualizePortfolioRequest$ {
|
|
54
|
-
/** @deprecated use `GenericVisualizePortfolioRequest$inboundSchema` instead. */
|
|
55
|
-
const inboundSchema: z.ZodType<GenericVisualizePortfolioRequest, z.ZodTypeDef, unknown>;
|
|
56
|
-
/** @deprecated use `GenericVisualizePortfolioRequest$outboundSchema` instead. */
|
|
57
|
-
const outboundSchema: z.ZodType<GenericVisualizePortfolioRequest$Outbound, z.ZodTypeDef, GenericVisualizePortfolioRequest>;
|
|
58
|
-
/** @deprecated use `GenericVisualizePortfolioRequest$Outbound` instead. */
|
|
59
|
-
type Outbound = GenericVisualizePortfolioRequest$Outbound;
|
|
60
|
-
}
|
|
61
|
-
export declare function genericVisualizePortfolioRequestToJSON(genericVisualizePortfolioRequest: GenericVisualizePortfolioRequest): string;
|
|
62
|
-
export declare function genericVisualizePortfolioRequestFromJSON(jsonString: string): SafeParseResult<GenericVisualizePortfolioRequest, SDKValidationError>;
|
|
63
|
-
//# sourceMappingURL=genericvisualizeportfolio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"genericvisualizeportfolio.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/genericvisualizeportfolio.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,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C;IAC5E,iFAAiF;IAC1E,MAAM,cAAc,sGAAkD,CAAC;IAC9E,2EAA2E;IAC3E,KAAY,QAAQ,GAAG,yCAAyC,CAAC;CAClE;AAED,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AAED,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.GenericVisualizePortfolioRequest$ = exports.GenericVisualizePortfolioRequest$outboundSchema = exports.GenericVisualizePortfolioRequest$inboundSchema = exports.GenericVisualizePortfolioChain$ = exports.GenericVisualizePortfolioChain$outboundSchema = exports.GenericVisualizePortfolioChain$inboundSchema = exports.GenericVisualizePortfolioChain = void 0;
|
|
40
|
-
exports.genericVisualizePortfolioRequestToJSON = genericVisualizePortfolioRequestToJSON;
|
|
41
|
-
exports.genericVisualizePortfolioRequestFromJSON = genericVisualizePortfolioRequestFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
exports.GenericVisualizePortfolioChain = {
|
|
45
|
-
ArbitrumMainnet: "arbitrum:mainnet",
|
|
46
|
-
BaseMainnet: "base:mainnet",
|
|
47
|
-
EthereumMainnet: "ethereum:mainnet",
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
exports.GenericVisualizePortfolioChain$inboundSchema = z.nativeEnum(exports.GenericVisualizePortfolioChain);
|
|
51
|
-
/** @internal */
|
|
52
|
-
exports.GenericVisualizePortfolioChain$outboundSchema = exports.GenericVisualizePortfolioChain$inboundSchema;
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
var GenericVisualizePortfolioChain$;
|
|
58
|
-
(function (GenericVisualizePortfolioChain$) {
|
|
59
|
-
/** @deprecated use `GenericVisualizePortfolioChain$inboundSchema` instead. */
|
|
60
|
-
GenericVisualizePortfolioChain$.inboundSchema = exports.GenericVisualizePortfolioChain$inboundSchema;
|
|
61
|
-
/** @deprecated use `GenericVisualizePortfolioChain$outboundSchema` instead. */
|
|
62
|
-
GenericVisualizePortfolioChain$.outboundSchema = exports.GenericVisualizePortfolioChain$outboundSchema;
|
|
63
|
-
})(GenericVisualizePortfolioChain$ || (exports.GenericVisualizePortfolioChain$ = GenericVisualizePortfolioChain$ = {}));
|
|
64
|
-
/** @internal */
|
|
65
|
-
exports.GenericVisualizePortfolioRequest$inboundSchema = z.object({
|
|
66
|
-
chain: exports.GenericVisualizePortfolioChain$inboundSchema.default("arbitrum:mainnet"),
|
|
67
|
-
user: z.string().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
68
|
-
});
|
|
69
|
-
/** @internal */
|
|
70
|
-
exports.GenericVisualizePortfolioRequest$outboundSchema = z.object({
|
|
71
|
-
chain: exports.GenericVisualizePortfolioChain$outboundSchema.default("arbitrum:mainnet"),
|
|
72
|
-
user: z.string().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
73
|
-
});
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
var GenericVisualizePortfolioRequest$;
|
|
79
|
-
(function (GenericVisualizePortfolioRequest$) {
|
|
80
|
-
/** @deprecated use `GenericVisualizePortfolioRequest$inboundSchema` instead. */
|
|
81
|
-
GenericVisualizePortfolioRequest$.inboundSchema = exports.GenericVisualizePortfolioRequest$inboundSchema;
|
|
82
|
-
/** @deprecated use `GenericVisualizePortfolioRequest$outboundSchema` instead. */
|
|
83
|
-
GenericVisualizePortfolioRequest$.outboundSchema = exports.GenericVisualizePortfolioRequest$outboundSchema;
|
|
84
|
-
})(GenericVisualizePortfolioRequest$ || (exports.GenericVisualizePortfolioRequest$ = GenericVisualizePortfolioRequest$ = {}));
|
|
85
|
-
function genericVisualizePortfolioRequestToJSON(genericVisualizePortfolioRequest) {
|
|
86
|
-
return JSON.stringify(exports.GenericVisualizePortfolioRequest$outboundSchema.parse(genericVisualizePortfolioRequest));
|
|
87
|
-
}
|
|
88
|
-
function genericVisualizePortfolioRequestFromJSON(jsonString) {
|
|
89
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GenericVisualizePortfolioRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GenericVisualizePortfolioRequest' from JSON`);
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=genericvisualizeportfolio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"genericvisualizeportfolio.js","sourceRoot":"","sources":["../../../../src/models/operations/genericvisualizeportfolio.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFH,wFAQC;AAED,4FAQC;AAzGD,uCAAyB;AACzB,qDAAiD;AAKpC,QAAA,8BAA8B,GAAG;IAC5C,eAAe,EAAE,kBAAkB;IACnC,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAaX,gBAAgB;AACH,QAAA,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC;AAEjD,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,oDAA4C,CAAC;AAEjD;;;GAGG;AACH,IAAiB,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC9C,8EAA8E;IACjE,6CAAa,GAAG,oDAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,qDAA6C,CAAC;AAC9E,CAAC,EALgB,+BAA+B,+CAA/B,+BAA+B,QAK/C;AAED,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,oDAA4C,CAAC,OAAO,CACzD,kBAAkB,CACnB;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,4CAA4C,CAAC;CACvE,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,qDAA6C,CAAC,OAAO,CAC1D,kBAAkB,CACnB;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,4CAA4C,CAAC;CACvE,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CompassApiSDKCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
|
-
import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
|
|
5
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
6
|
-
import * as errors from "../models/errors/index.js";
|
|
7
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { APIPromise } from "../types/async.js";
|
|
11
|
-
import { Result } from "../types/fp.js";
|
|
12
|
-
/**
|
|
13
|
-
* Visualize User Portfolio
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Generate a visual representation of the token portfolio for a wallet address.
|
|
17
|
-
*
|
|
18
|
-
* The response is an SVG image of a pie chart depicting the relative distribution of
|
|
19
|
-
* tokens held, colored and labeled with token symbols, percentages and token values in
|
|
20
|
-
* USD.
|
|
21
|
-
*/
|
|
22
|
-
export declare function universalVisualizePortfolio(client: CompassApiSDKCore, request: operations.GenericVisualizePortfolioRequest, options?: RequestOptions): APIPromise<Result<components.Image, errors.HTTPValidationError | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
23
|
-
//# sourceMappingURL=universalVisualizePortfolio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universalVisualizePortfolio.d.ts","sourceRoot":"","sources":["../../../src/funcs/universalVisualizePortfolio.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,KAAK,EACd,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|