@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.
Files changed (111) hide show
  1. package/README.md +0 -2
  2. package/bin/mcp-server.js +113 -174
  3. package/bin/mcp-server.js.map +11 -13
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  7. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -3
  9. package/dist/commonjs/mcp-server/server.js.map +1 -1
  10. package/dist/commonjs/models/components/index.d.ts +2 -1
  11. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/index.js +2 -1
  13. package/dist/commonjs/models/components/index.js.map +1 -1
  14. package/dist/commonjs/models/components/useroperation.d.ts +18 -0
  15. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/useroperation.js +26 -0
  17. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  18. package/dist/commonjs/models/components/vaultdepositparams.d.ts +68 -0
  19. package/dist/commonjs/models/components/vaultdepositparams.d.ts.map +1 -0
  20. package/dist/commonjs/models/components/vaultdepositparams.js +109 -0
  21. package/dist/commonjs/models/components/vaultdepositparams.js.map +1 -0
  22. package/dist/commonjs/models/components/vaultwithdrawparams.d.ts +44 -0
  23. package/dist/commonjs/models/components/vaultwithdrawparams.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/vaultwithdrawparams.js +86 -0
  25. package/dist/commonjs/models/components/vaultwithdrawparams.js.map +1 -0
  26. package/dist/commonjs/models/operations/index.d.ts +0 -1
  27. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/index.js +0 -1
  29. package/dist/commonjs/models/operations/index.js.map +1 -1
  30. package/dist/commonjs/sdk/universal.d.ts +0 -11
  31. package/dist/commonjs/sdk/universal.d.ts.map +1 -1
  32. package/dist/commonjs/sdk/universal.js +0 -14
  33. package/dist/commonjs/sdk/universal.js.map +1 -1
  34. package/dist/esm/lib/config.d.ts +3 -3
  35. package/dist/esm/lib/config.js +3 -3
  36. package/dist/esm/mcp-server/mcp-server.js +1 -1
  37. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  38. package/dist/esm/mcp-server/server.js +1 -3
  39. package/dist/esm/mcp-server/server.js.map +1 -1
  40. package/dist/esm/models/components/index.d.ts +2 -1
  41. package/dist/esm/models/components/index.d.ts.map +1 -1
  42. package/dist/esm/models/components/index.js +2 -1
  43. package/dist/esm/models/components/index.js.map +1 -1
  44. package/dist/esm/models/components/useroperation.d.ts +18 -0
  45. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  46. package/dist/esm/models/components/useroperation.js +26 -0
  47. package/dist/esm/models/components/useroperation.js.map +1 -1
  48. package/dist/esm/models/components/vaultdepositparams.d.ts +68 -0
  49. package/dist/esm/models/components/vaultdepositparams.d.ts.map +1 -0
  50. package/dist/esm/models/components/vaultdepositparams.js +69 -0
  51. package/dist/esm/models/components/vaultdepositparams.js.map +1 -0
  52. package/dist/esm/models/components/vaultwithdrawparams.d.ts +44 -0
  53. package/dist/esm/models/components/vaultwithdrawparams.d.ts.map +1 -0
  54. package/dist/esm/models/components/vaultwithdrawparams.js +48 -0
  55. package/dist/esm/models/components/vaultwithdrawparams.js.map +1 -0
  56. package/dist/esm/models/operations/index.d.ts +0 -1
  57. package/dist/esm/models/operations/index.d.ts.map +1 -1
  58. package/dist/esm/models/operations/index.js +0 -1
  59. package/dist/esm/models/operations/index.js.map +1 -1
  60. package/dist/esm/sdk/universal.d.ts +0 -11
  61. package/dist/esm/sdk/universal.d.ts.map +1 -1
  62. package/dist/esm/sdk/universal.js +0 -14
  63. package/dist/esm/sdk/universal.js.map +1 -1
  64. package/docs/sdks/universal/README.md +0 -75
  65. package/jsr.json +1 -1
  66. package/package.json +6 -6
  67. package/src/lib/config.ts +3 -3
  68. package/src/mcp-server/mcp-server.ts +1 -1
  69. package/src/mcp-server/server.ts +1 -3
  70. package/src/models/components/index.ts +2 -1
  71. package/src/models/components/useroperation.ts +60 -0
  72. package/src/models/components/vaultdepositparams.ts +151 -0
  73. package/src/models/components/vaultwithdrawparams.ts +98 -0
  74. package/src/models/operations/index.ts +0 -1
  75. package/src/sdk/universal.ts +0 -22
  76. package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts +0 -23
  77. package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts.map +0 -1
  78. package/dist/commonjs/funcs/universalVisualizePortfolio.js +0 -127
  79. package/dist/commonjs/funcs/universalVisualizePortfolio.js.map +0 -1
  80. package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.d.ts +0 -8
  81. package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.d.ts.map +0 -1
  82. package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js +0 -68
  83. package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js.map +0 -1
  84. package/dist/commonjs/models/components/image.d.ts +0 -32
  85. package/dist/commonjs/models/components/image.d.ts.map +0 -1
  86. package/dist/commonjs/models/components/image.js +0 -70
  87. package/dist/commonjs/models/components/image.js.map +0 -1
  88. package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +0 -63
  89. package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +0 -1
  90. package/dist/commonjs/models/operations/genericvisualizeportfolio.js +0 -91
  91. package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +0 -1
  92. package/dist/esm/funcs/universalVisualizePortfolio.d.ts +0 -23
  93. package/dist/esm/funcs/universalVisualizePortfolio.d.ts.map +0 -1
  94. package/dist/esm/funcs/universalVisualizePortfolio.js +0 -91
  95. package/dist/esm/funcs/universalVisualizePortfolio.js.map +0 -1
  96. package/dist/esm/mcp-server/tools/universalVisualizePortfolio.d.ts +0 -8
  97. package/dist/esm/mcp-server/tools/universalVisualizePortfolio.d.ts.map +0 -1
  98. package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js +0 -32
  99. package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js.map +0 -1
  100. package/dist/esm/models/components/image.d.ts +0 -32
  101. package/dist/esm/models/components/image.d.ts.map +0 -1
  102. package/dist/esm/models/components/image.js +0 -32
  103. package/dist/esm/models/components/image.js.map +0 -1
  104. package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +0 -63
  105. package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +0 -1
  106. package/dist/esm/models/operations/genericvisualizeportfolio.js +0 -53
  107. package/dist/esm/models/operations/genericvisualizeportfolio.js.map +0 -1
  108. package/src/funcs/universalVisualizePortfolio.ts +0 -180
  109. package/src/mcp-server/tools/universalVisualizePortfolio.ts +0 -41
  110. package/src/models/components/image.ts +0 -62
  111. package/src/models/operations/genericvisualizeportfolio.ts +0 -110
package/README.md CHANGED
@@ -322,7 +322,6 @@ run();
322
322
  ### [universal](docs/sdks/universal/README.md)
323
323
 
324
324
  * [portfolio](docs/sdks/universal/README.md#portfolio) - List User Portfolio
325
- * [visualizePortfolio](docs/sdks/universal/README.md#visualizeportfolio) - Visualize User Portfolio
326
325
  * [supportedTokens](docs/sdks/universal/README.md#supportedtokens) - List Supported Tokens
327
326
  * [supportedChains](docs/sdks/universal/README.md#supportedchains) - List Supported Chains
328
327
  * [allowance](docs/sdks/universal/README.md#allowance) - Get Allowance
@@ -427,7 +426,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
427
426
  - [`universalSupportedChains`](docs/sdks/universal/README.md#supportedchains) - List Supported Chains
428
427
  - [`universalSupportedTokens`](docs/sdks/universal/README.md#supportedtokens) - List Supported Tokens
429
428
  - [`universalUnwrapWeth`](docs/sdks/universal/README.md#unwrapweth) - Unwrap WETH
430
- - [`universalVisualizePortfolio`](docs/sdks/universal/README.md#visualizeportfolio) - Visualize User Portfolio
431
429
  - [`universalWrapEth`](docs/sdks/universal/README.md#wrapeth) - Wrap ETH
432
430
 
433
431
  </details>
package/bin/mcp-server.js CHANGED
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
34264
34264
  SDK_METADATA = {
34265
34265
  language: "typescript",
34266
34266
  openapiDocVersion: "0.0.1",
34267
- sdkVersion: "0.5.64",
34268
- genVersion: "2.667.0",
34269
- userAgent: "speakeasy-sdk/typescript 0.5.64 2.667.0 0.0.1 @compass-labs/api-sdk"
34267
+ sdkVersion: "0.5.66",
34268
+ genVersion: "2.668.4",
34269
+ userAgent: "speakeasy-sdk/typescript 0.5.66 2.668.4 0.0.1 @compass-labs/api-sdk"
34270
34270
  };
34271
34271
  });
34272
34272
 
@@ -39251,6 +39251,78 @@ var init_unwrapwethparams = __esm(() => {
39251
39251
  })(UnwrapWethParams$ ||= {});
39252
39252
  });
39253
39253
 
39254
+ // src/models/components/vaultdepositparams.ts
39255
+ var VaultDepositParamsAmount$inboundSchema, VaultDepositParamsAmount$outboundSchema, VaultDepositParamsAmount$, VaultDepositParams$inboundSchema, VaultDepositParams$outboundSchema, VaultDepositParams$;
39256
+ var init_vaultdepositparams = __esm(() => {
39257
+ init_zod();
39258
+ init_primitives();
39259
+ VaultDepositParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
39260
+ VaultDepositParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
39261
+ ((VaultDepositParamsAmount$) => {
39262
+ VaultDepositParamsAmount$.inboundSchema = VaultDepositParamsAmount$inboundSchema;
39263
+ VaultDepositParamsAmount$.outboundSchema = VaultDepositParamsAmount$outboundSchema;
39264
+ })(VaultDepositParamsAmount$ ||= {});
39265
+ VaultDepositParams$inboundSchema = objectType({
39266
+ action_type: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
39267
+ vault_address: stringType(),
39268
+ amount: unionType([numberType(), stringType()]),
39269
+ receiver: nullableType(stringType()).optional()
39270
+ }).transform((v2) => {
39271
+ return remap(v2, {
39272
+ action_type: "actionType",
39273
+ vault_address: "vaultAddress"
39274
+ });
39275
+ });
39276
+ VaultDepositParams$outboundSchema = objectType({
39277
+ actionType: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
39278
+ vaultAddress: stringType(),
39279
+ amount: unionType([numberType(), stringType()]),
39280
+ receiver: nullableType(stringType()).optional()
39281
+ }).transform((v2) => {
39282
+ return remap(v2, {
39283
+ actionType: "action_type",
39284
+ vaultAddress: "vault_address"
39285
+ });
39286
+ });
39287
+ ((VaultDepositParams$) => {
39288
+ VaultDepositParams$.inboundSchema = VaultDepositParams$inboundSchema;
39289
+ VaultDepositParams$.outboundSchema = VaultDepositParams$outboundSchema;
39290
+ })(VaultDepositParams$ ||= {});
39291
+ });
39292
+
39293
+ // src/models/components/vaultwithdrawparams.ts
39294
+ var VaultWithdrawParams$inboundSchema, VaultWithdrawParams$outboundSchema, VaultWithdrawParams$;
39295
+ var init_vaultwithdrawparams = __esm(() => {
39296
+ init_zod();
39297
+ init_primitives();
39298
+ VaultWithdrawParams$inboundSchema = objectType({
39299
+ action_type: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
39300
+ vault_address: stringType(),
39301
+ amount: anyType().optional(),
39302
+ receiver: nullableType(stringType()).optional()
39303
+ }).transform((v2) => {
39304
+ return remap(v2, {
39305
+ action_type: "actionType",
39306
+ vault_address: "vaultAddress"
39307
+ });
39308
+ });
39309
+ VaultWithdrawParams$outboundSchema = objectType({
39310
+ actionType: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
39311
+ vaultAddress: stringType(),
39312
+ amount: anyType().optional(),
39313
+ receiver: nullableType(stringType()).optional()
39314
+ }).transform((v2) => {
39315
+ return remap(v2, {
39316
+ actionType: "action_type",
39317
+ vaultAddress: "vault_address"
39318
+ });
39319
+ });
39320
+ ((VaultWithdrawParams$) => {
39321
+ VaultWithdrawParams$.inboundSchema = VaultWithdrawParams$inboundSchema;
39322
+ VaultWithdrawParams$.outboundSchema = VaultWithdrawParams$outboundSchema;
39323
+ })(VaultWithdrawParams$ ||= {});
39324
+ });
39325
+
39254
39326
  // src/models/components/wrapethparams.ts
39255
39327
  var WrapEthParamsAmount$inboundSchema, WrapEthParamsAmount$outboundSchema, WrapEthParamsAmount$, WrapEthParams$inboundSchema, WrapEthParams$outboundSchema, WrapEthParams$;
39256
39328
  var init_wrapethparams = __esm(() => {
@@ -39324,6 +39396,8 @@ var init_useroperation = __esm(() => {
39324
39396
  init_uniswapsellexactlyparams();
39325
39397
  init_uniswapwithdrawliquidityprovisionparams();
39326
39398
  init_unwrapwethparams();
39399
+ init_vaultdepositparams();
39400
+ init_vaultwithdrawparams();
39327
39401
  init_wrapethparams();
39328
39402
  Body$inboundSchema = unionType([
39329
39403
  AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema.and(objectType({
@@ -39398,6 +39472,12 @@ var init_useroperation = __esm(() => {
39398
39472
  UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
39399
39473
  action_type: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
39400
39474
  }).transform((v2) => ({ actionType: v2.action_type }))),
39475
+ VaultDepositParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
39476
+ actionType: v2.action_type
39477
+ }))),
39478
+ VaultWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
39479
+ actionType: v2.action_type
39480
+ }))),
39401
39481
  PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
39402
39482
  SkyDepositParams$inboundSchema.and(objectType({ action_type: literalType("SKY_DEPOSIT") }).transform((v2) => ({
39403
39483
  actionType: v2.action_type
@@ -39487,6 +39567,12 @@ var init_useroperation = __esm(() => {
39487
39567
  UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
39488
39568
  actionType: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
39489
39569
  }).transform((v2) => ({ action_type: v2.actionType }))),
39570
+ VaultDepositParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
39571
+ action_type: v2.actionType
39572
+ }))),
39573
+ VaultWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
39574
+ action_type: v2.actionType
39575
+ }))),
39490
39576
  PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
39491
39577
  SkyDepositParams$outboundSchema.and(objectType({ actionType: literalType("SKY_DEPOSIT") }).transform((v2) => ({
39492
39578
  action_type: v2.actionType
@@ -39579,6 +39665,12 @@ var init_useroperation = __esm(() => {
39579
39665
  UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
39580
39666
  action_type: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
39581
39667
  }).transform((v2) => ({ actionType: v2.action_type }))),
39668
+ VaultDepositParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
39669
+ actionType: v2.action_type
39670
+ }))),
39671
+ VaultWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
39672
+ actionType: v2.action_type
39673
+ }))),
39582
39674
  PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
39583
39675
  SkyDepositParams$inboundSchema.and(objectType({ action_type: literalType("SKY_DEPOSIT") }).transform((v2) => ({
39584
39676
  actionType: v2.action_type
@@ -39670,6 +39762,12 @@ var init_useroperation = __esm(() => {
39670
39762
  UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
39671
39763
  actionType: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
39672
39764
  }).transform((v2) => ({ action_type: v2.actionType }))),
39765
+ VaultDepositParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
39766
+ action_type: v2.actionType
39767
+ }))),
39768
+ VaultWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
39769
+ action_type: v2.actionType
39770
+ }))),
39673
39771
  PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
39674
39772
  SkyDepositParams$outboundSchema.and(objectType({ actionType: literalType("SKY_DEPOSIT") }).transform((v2) => ({
39675
39773
  action_type: v2.actionType
@@ -40353,22 +40451,6 @@ var init_erc20data = __esm(() => {
40353
40451
  })(Erc20Data$ ||= {});
40354
40452
  });
40355
40453
 
40356
- // src/models/components/image.ts
40357
- var Image$inboundSchema, Image$outboundSchema, Image$;
40358
- var init_image = __esm(() => {
40359
- init_zod();
40360
- Image$inboundSchema = objectType({
40361
- image: stringType()
40362
- });
40363
- Image$outboundSchema = objectType({
40364
- image: stringType()
40365
- });
40366
- ((Image$) => {
40367
- Image$.inboundSchema = Image$inboundSchema;
40368
- Image$.outboundSchema = Image$outboundSchema;
40369
- })(Image$ ||= {});
40370
- });
40371
-
40372
40454
  // src/models/components/lpbalance.ts
40373
40455
  var LpBalance$inboundSchema, LpBalance$outboundSchema, LpBalance$;
40374
40456
  var init_lpbalance = __esm(() => {
@@ -43446,7 +43528,6 @@ var init_components = __esm(() => {
43446
43528
  init_ensnameinforesponse();
43447
43529
  init_erc20data();
43448
43530
  init_feeenum();
43449
- init_image();
43450
43531
  init_interestratemode();
43451
43532
  init_liquidationcall();
43452
43533
  init_lpbalance();
@@ -43555,9 +43636,11 @@ var init_components = __esm(() => {
43555
43636
  init_userstate();
43556
43637
  init_validationerror();
43557
43638
  init_vault();
43639
+ init_vaultdepositparams();
43558
43640
  init_vaultdepositrequest();
43559
43641
  init_vaultgetvaultresponse();
43560
43642
  init_vaultposition();
43643
+ init_vaultwithdrawparams();
43561
43644
  init_vaultwithdrawrequest();
43562
43645
  init_weeklyapys();
43563
43646
  init_wrapethparams();
@@ -44827,35 +44910,6 @@ var init_genericsupportedtokens = __esm(() => {
44827
44910
  })(GenericSupportedTokensRequest$ ||= {});
44828
44911
  });
44829
44912
 
44830
- // src/models/operations/genericvisualizeportfolio.ts
44831
- var GenericVisualizePortfolioChain, GenericVisualizePortfolioChain$inboundSchema, GenericVisualizePortfolioChain$outboundSchema, GenericVisualizePortfolioChain$, GenericVisualizePortfolioRequest$inboundSchema, GenericVisualizePortfolioRequest$outboundSchema, GenericVisualizePortfolioRequest$;
44832
- var init_genericvisualizeportfolio = __esm(() => {
44833
- init_zod();
44834
- GenericVisualizePortfolioChain = {
44835
- ArbitrumMainnet: "arbitrum:mainnet",
44836
- BaseMainnet: "base:mainnet",
44837
- EthereumMainnet: "ethereum:mainnet"
44838
- };
44839
- GenericVisualizePortfolioChain$inboundSchema = nativeEnumType(GenericVisualizePortfolioChain);
44840
- GenericVisualizePortfolioChain$outboundSchema = GenericVisualizePortfolioChain$inboundSchema;
44841
- ((GenericVisualizePortfolioChain$) => {
44842
- GenericVisualizePortfolioChain$.inboundSchema = GenericVisualizePortfolioChain$inboundSchema;
44843
- GenericVisualizePortfolioChain$.outboundSchema = GenericVisualizePortfolioChain$outboundSchema;
44844
- })(GenericVisualizePortfolioChain$ ||= {});
44845
- GenericVisualizePortfolioRequest$inboundSchema = objectType({
44846
- chain: GenericVisualizePortfolioChain$inboundSchema.default("arbitrum:mainnet"),
44847
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
44848
- });
44849
- GenericVisualizePortfolioRequest$outboundSchema = objectType({
44850
- chain: GenericVisualizePortfolioChain$outboundSchema.default("arbitrum:mainnet"),
44851
- user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
44852
- });
44853
- ((GenericVisualizePortfolioRequest$) => {
44854
- GenericVisualizePortfolioRequest$.inboundSchema = GenericVisualizePortfolioRequest$inboundSchema;
44855
- GenericVisualizePortfolioRequest$.outboundSchema = GenericVisualizePortfolioRequest$outboundSchema;
44856
- })(GenericVisualizePortfolioRequest$ ||= {});
44857
- });
44858
-
44859
44913
  // src/models/operations/morphomarket.ts
44860
44914
  var MorphoMarketChain, MorphoMarketChain$inboundSchema, MorphoMarketChain$outboundSchema, MorphoMarketChain$, MorphoMarketRequest$inboundSchema, MorphoMarketRequest$outboundSchema, MorphoMarketRequest$;
44861
44915
  var init_morphomarket2 = __esm(() => {
@@ -46272,7 +46326,6 @@ var init_operations = __esm(() => {
46272
46326
  init_genericportfolio();
46273
46327
  init_genericsupportedchains();
46274
46328
  init_genericsupportedtokens();
46275
- init_genericvisualizeportfolio();
46276
46329
  init_morphomarket2();
46277
46330
  init_morphomarketposition();
46278
46331
  init_morphomarkets();
@@ -55239,123 +55292,11 @@ can be used for gas and other native purposes.`,
55239
55292
  };
55240
55293
  });
55241
55294
 
55242
- // src/funcs/universalVisualizePortfolio.ts
55243
- function universalVisualizePortfolio(client, request, options) {
55244
- return new APIPromise($do79(client, request, options));
55245
- }
55246
- async function $do79(client, request, options) {
55247
- const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
55248
- if (!parsed.ok) {
55249
- return [parsed, { status: "invalid" }];
55250
- }
55251
- const payload = parsed.value;
55252
- const body = null;
55253
- const path = pathToFunc("/v0/generic/visualize_portfolio/get")();
55254
- const query = encodeFormQuery({
55255
- chain: payload.chain,
55256
- user: payload.user
55257
- });
55258
- const headers = new Headers(compactMap({
55259
- Accept: "application/json"
55260
- }));
55261
- const secConfig = await extractSecurity(client._options.apiKeyAuth);
55262
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
55263
- const requestSecurity = resolveGlobalSecurity(securityInput);
55264
- const context = {
55265
- options: client._options,
55266
- baseURL: options?.serverURL ?? client._baseURL ?? "",
55267
- operationID: "generic_visualize_portfolio",
55268
- oAuth2Scopes: [],
55269
- resolvedSecurity: requestSecurity,
55270
- securitySource: client._options.apiKeyAuth,
55271
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
55272
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
55273
- };
55274
- const requestRes = client._createRequest(context, {
55275
- security: requestSecurity,
55276
- method: "GET",
55277
- baseURL: options?.serverURL,
55278
- path,
55279
- headers,
55280
- query,
55281
- body,
55282
- userAgent: client._options.userAgent,
55283
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
55284
- }, options);
55285
- if (!requestRes.ok) {
55286
- return [requestRes, { status: "invalid" }];
55287
- }
55288
- const req = requestRes.value;
55289
- const doResult = await client._do(req, {
55290
- context,
55291
- errorCodes: ["422", "4XX", "5XX"],
55292
- retryConfig: context.retryConfig,
55293
- retryCodes: context.retryCodes
55294
- });
55295
- if (!doResult.ok) {
55296
- return [doResult, { status: "request-error", request: req }];
55297
- }
55298
- const response = doResult.value;
55299
- const responseFields = {
55300
- HttpMeta: { Response: response, Request: req }
55301
- };
55302
- const [result] = await match(json(200, Image$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
55303
- if (!result.ok) {
55304
- return [result, { status: "complete", request: req, response }];
55305
- }
55306
- return [result, { status: "complete", request: req, response }];
55307
- }
55308
- var init_universalVisualizePortfolio = __esm(() => {
55309
- init_encodings();
55310
- init_matchers();
55311
- init_primitives();
55312
- init_schemas();
55313
- init_security();
55314
- init_url();
55315
- init_components();
55316
- init_errors2();
55317
- init_operations();
55318
- init_async();
55319
- });
55320
-
55321
- // src/mcp-server/tools/universalVisualizePortfolio.ts
55322
- var args79, tool$universalVisualizePortfolio;
55323
- var init_universalVisualizePortfolio2 = __esm(() => {
55324
- init_universalVisualizePortfolio();
55325
- init_operations();
55326
- init_tools();
55327
- args79 = {
55328
- request: GenericVisualizePortfolioRequest$inboundSchema
55329
- };
55330
- tool$universalVisualizePortfolio = {
55331
- name: "universal-visualize-portfolio",
55332
- description: `Visualize User Portfolio
55333
-
55334
- Generate a visual representation of the token portfolio for a wallet address.
55335
-
55336
- The response is an SVG image of a pie chart depicting the relative distribution of
55337
- tokens held, colored and labeled with token symbols, percentages and token values in
55338
- USD.`,
55339
- args: args79,
55340
- tool: async (client, args80, ctx) => {
55341
- const [result, apiCall] = await universalVisualizePortfolio(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55342
- if (!result.ok) {
55343
- return {
55344
- content: [{ type: "text", text: result.error.message }],
55345
- isError: true
55346
- };
55347
- }
55348
- const value = result.value;
55349
- return formatResult(value, apiCall);
55350
- }
55351
- };
55352
- });
55353
-
55354
55295
  // src/funcs/universalWrapEth.ts
55355
55296
  function universalWrapEth(client, request, options) {
55356
- return new APIPromise($do80(client, request, options));
55297
+ return new APIPromise($do79(client, request, options));
55357
55298
  }
55358
- async function $do80(client, request, options) {
55299
+ async function $do79(client, request, options) {
55359
55300
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
55360
55301
  if (!parsed.ok) {
55361
55302
  return [parsed, { status: "invalid" }];
@@ -55426,12 +55367,12 @@ var init_universalWrapEth = __esm(() => {
55426
55367
  });
55427
55368
 
55428
55369
  // src/mcp-server/tools/universalWrapEth.ts
55429
- var args80, tool$universalWrapEth;
55370
+ var args79, tool$universalWrapEth;
55430
55371
  var init_universalWrapEth2 = __esm(() => {
55431
55372
  init_universalWrapEth();
55432
55373
  init_components();
55433
55374
  init_tools();
55434
- args80 = {
55375
+ args79 = {
55435
55376
  request: WrapEthRequest$inboundSchema
55436
55377
  };
55437
55378
  tool$universalWrapEth = {
@@ -55440,9 +55381,9 @@ var init_universalWrapEth2 = __esm(() => {
55440
55381
 
55441
55382
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
55442
55383
  it to be traded on DeFi protocols.`,
55443
- args: args80,
55444
- tool: async (client, args81, ctx) => {
55445
- const [result, apiCall] = await universalWrapEth(client, args81.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55384
+ args: args79,
55385
+ tool: async (client, args80, ctx) => {
55386
+ const [result, apiCall] = await universalWrapEth(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55446
55387
  if (!result.ok) {
55447
55388
  return {
55448
55389
  content: [{ type: "text", text: result.error.message }],
@@ -55459,7 +55400,7 @@ it to be traded on DeFi protocols.`,
55459
55400
  function createMCPServer(deps) {
55460
55401
  const server = new McpServer({
55461
55402
  name: "CompassApiSDK",
55462
- version: "0.5.64"
55403
+ version: "0.5.66"
55463
55404
  });
55464
55405
  const client = new CompassApiSDKCore({
55465
55406
  apiKeyAuth: deps.apiKeyAuth,
@@ -55526,7 +55467,6 @@ function createMCPServer(deps) {
55526
55467
  tool(tool$uniswapV3LiquidityProvisionIncrease);
55527
55468
  tool(tool$uniswapV3LiquidityProvisionWithdraw);
55528
55469
  tool(tool$universalPortfolio);
55529
- tool(tool$universalVisualizePortfolio);
55530
55470
  tool(tool$universalSupportedTokens);
55531
55471
  tool(tool$universalSupportedChains);
55532
55472
  tool(tool$universalAllowance);
@@ -55638,7 +55578,6 @@ var init_server2 = __esm(() => {
55638
55578
  init_universalSupportedChains2();
55639
55579
  init_universalSupportedTokens2();
55640
55580
  init_universalUnwrapWeth2();
55641
- init_universalVisualizePortfolio2();
55642
55581
  init_universalWrapEth2();
55643
55582
  });
55644
55583
 
@@ -56835,7 +56774,7 @@ var routes = ln({
56835
56774
  var app = _e(routes, {
56836
56775
  name: "mcp",
56837
56776
  versionInfo: {
56838
- currentVersion: "0.5.64"
56777
+ currentVersion: "0.5.66"
56839
56778
  }
56840
56779
  });
56841
56780
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -56843,5 +56782,5 @@ export {
56843
56782
  app
56844
56783
  };
56845
56784
 
56846
- //# debugId=7DAC3C60C5C02CD864756E2164756E21
56785
+ //# debugId=B2E4BD150EF1FFA064756E2164756E21
56847
56786
  //# sourceMappingURL=mcp-server.js.map