@compass-labs/api-sdk 0.1.3 → 0.1.5

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 (33) hide show
  1. package/bin/mcp-server.js +48 -45
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/morphogetvaultresponse.d.ts +5 -2
  8. package/dist/commonjs/models/components/morphogetvaultresponse.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/morphogetvaultresponse.js +2 -2
  10. package/dist/commonjs/models/components/morphogetvaultresponse.js.map +1 -1
  11. package/dist/commonjs/models/components/txresponse.d.ts +3 -2
  12. package/dist/commonjs/models/components/txresponse.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/txresponse.js +3 -0
  14. package/dist/commonjs/models/components/txresponse.js.map +1 -1
  15. package/dist/esm/lib/config.d.ts +3 -3
  16. package/dist/esm/lib/config.js +3 -3
  17. package/dist/esm/mcp-server/mcp-server.js +1 -1
  18. package/dist/esm/mcp-server/server.js +1 -1
  19. package/dist/esm/models/components/morphogetvaultresponse.d.ts +5 -2
  20. package/dist/esm/models/components/morphogetvaultresponse.d.ts.map +1 -1
  21. package/dist/esm/models/components/morphogetvaultresponse.js +2 -2
  22. package/dist/esm/models/components/morphogetvaultresponse.js.map +1 -1
  23. package/dist/esm/models/components/txresponse.d.ts +3 -2
  24. package/dist/esm/models/components/txresponse.d.ts.map +1 -1
  25. package/dist/esm/models/components/txresponse.js +3 -0
  26. package/dist/esm/models/components/txresponse.js.map +1 -1
  27. package/jsr.json +1 -1
  28. package/package.json +2 -2
  29. package/src/lib/config.ts +3 -3
  30. package/src/mcp-server/mcp-server.ts +1 -1
  31. package/src/mcp-server/server.ts +1 -1
  32. package/src/models/components/morphogetvaultresponse.ts +7 -4
  33. package/src/models/components/txresponse.ts +14 -2
package/bin/mcp-server.js CHANGED
@@ -34229,9 +34229,9 @@ var init_config = __esm(() => {
34229
34229
  SDK_METADATA = {
34230
34230
  language: "typescript",
34231
34231
  openapiDocVersion: "0.0.1",
34232
- sdkVersion: "0.1.3",
34233
- genVersion: "2.605.6",
34234
- userAgent: "speakeasy-sdk/typescript 0.1.3 2.605.6 0.0.1 @compass-labs/api-sdk"
34232
+ sdkVersion: "0.1.5",
34233
+ genVersion: "2.610.0",
34234
+ userAgent: "speakeasy-sdk/typescript 0.1.5 2.610.0 0.0.1 @compass-labs/api-sdk"
34235
34235
  };
34236
34236
  });
34237
34237
 
@@ -39679,7 +39679,7 @@ var init_morphogetvaultresponse = __esm(() => {
39679
39679
  state: CompassApiBackendModelsMorphoReadResponseGetVaultVaultState$inboundSchema,
39680
39680
  liquidity: Liquidity$inboundSchema,
39681
39681
  asset: CompassApiBackendModelsMorphoReadResponseGetVaultAsset$inboundSchema,
39682
- metadata: Metadata$inboundSchema
39682
+ metadata: nullableType(Metadata$inboundSchema).optional()
39683
39683
  });
39684
39684
  MorphoGetVaultResponse$outboundSchema = objectType({
39685
39685
  name: stringType(),
@@ -39688,7 +39688,7 @@ var init_morphogetvaultresponse = __esm(() => {
39688
39688
  state: CompassApiBackendModelsMorphoReadResponseGetVaultVaultState$outboundSchema,
39689
39689
  liquidity: Liquidity$outboundSchema,
39690
39690
  asset: CompassApiBackendModelsMorphoReadResponseGetVaultAsset$outboundSchema,
39691
- metadata: Metadata$outboundSchema
39691
+ metadata: nullableType(Metadata$outboundSchema).optional()
39692
39692
  });
39693
39693
  ((MorphoGetVaultResponse$) => {
39694
39694
  MorphoGetVaultResponse$.inboundSchema = MorphoGetVaultResponse$inboundSchema;
@@ -40465,6 +40465,41 @@ var init_tokentransferrequest = __esm(() => {
40465
40465
  })(TokenTransferRequest$ ||= {});
40466
40466
  });
40467
40467
 
40468
+ // src/models/components/unsignedmulticalltransaction.ts
40469
+ var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
40470
+ var init_unsignedmulticalltransaction = __esm(() => {
40471
+ init_esm();
40472
+ init_signedauthorization();
40473
+ UnsignedMulticallTransaction$inboundSchema = objectType({
40474
+ chainId: numberType().int(),
40475
+ data: stringType(),
40476
+ from: stringType(),
40477
+ gas: numberType().int(),
40478
+ to: stringType(),
40479
+ value: numberType().int(),
40480
+ nonce: numberType().int(),
40481
+ maxFeePerGas: numberType().int(),
40482
+ maxPriorityFeePerGas: numberType().int(),
40483
+ authorizationList: arrayType(SignedAuthorization$inboundSchema).optional()
40484
+ });
40485
+ UnsignedMulticallTransaction$outboundSchema = objectType({
40486
+ chainId: numberType().int(),
40487
+ data: stringType(),
40488
+ from: stringType(),
40489
+ gas: numberType().int(),
40490
+ to: stringType(),
40491
+ value: numberType().int(),
40492
+ nonce: numberType().int(),
40493
+ maxFeePerGas: numberType().int(),
40494
+ maxPriorityFeePerGas: numberType().int(),
40495
+ authorizationList: arrayType(SignedAuthorization$outboundSchema).optional()
40496
+ });
40497
+ ((UnsignedMulticallTransaction$) => {
40498
+ UnsignedMulticallTransaction$.inboundSchema = UnsignedMulticallTransaction$inboundSchema;
40499
+ UnsignedMulticallTransaction$.outboundSchema = UnsignedMulticallTransaction$outboundSchema;
40500
+ })(UnsignedMulticallTransaction$ ||= {});
40501
+ });
40502
+
40468
40503
  // src/models/components/unsignedtransaction.ts
40469
40504
  var UnsignedTransaction$inboundSchema, UnsignedTransaction$outboundSchema, UnsignedTransaction$;
40470
40505
  var init_unsignedtransaction = __esm(() => {
@@ -40501,15 +40536,18 @@ var init_unsignedtransaction = __esm(() => {
40501
40536
  var TxResponse$inboundSchema, TxResponse$outboundSchema, TxResponse$;
40502
40537
  var init_txresponse = __esm(() => {
40503
40538
  init_esm();
40539
+ init_unsignedmulticalltransaction();
40504
40540
  init_unsignedtransaction();
40505
40541
  init_useroperationresponse();
40506
40542
  TxResponse$inboundSchema = unionType([
40507
40543
  UserOperationResponse$inboundSchema,
40508
- UnsignedTransaction$inboundSchema
40544
+ UnsignedTransaction$inboundSchema,
40545
+ UnsignedMulticallTransaction$inboundSchema
40509
40546
  ]);
40510
40547
  TxResponse$outboundSchema = unionType([
40511
40548
  UserOperationResponse$outboundSchema,
40512
- UnsignedTransaction$outboundSchema
40549
+ UnsignedTransaction$outboundSchema,
40550
+ UnsignedMulticallTransaction$outboundSchema
40513
40551
  ]);
40514
40552
  ((TxResponse$) => {
40515
40553
  TxResponse$.inboundSchema = TxResponse$inboundSchema;
@@ -41010,41 +41048,6 @@ var init_uniswapwithdrawliquidityprovisionrequest = __esm(() => {
41010
41048
  })(UniswapWithdrawLiquidityProvisionRequest$ ||= {});
41011
41049
  });
41012
41050
 
41013
- // src/models/components/unsignedmulticalltransaction.ts
41014
- var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
41015
- var init_unsignedmulticalltransaction = __esm(() => {
41016
- init_esm();
41017
- init_signedauthorization();
41018
- UnsignedMulticallTransaction$inboundSchema = objectType({
41019
- chainId: numberType().int(),
41020
- data: stringType(),
41021
- from: stringType(),
41022
- gas: numberType().int(),
41023
- to: stringType(),
41024
- value: numberType().int(),
41025
- nonce: numberType().int(),
41026
- maxFeePerGas: numberType().int(),
41027
- maxPriorityFeePerGas: numberType().int(),
41028
- authorizationList: arrayType(SignedAuthorization$inboundSchema).optional()
41029
- });
41030
- UnsignedMulticallTransaction$outboundSchema = objectType({
41031
- chainId: numberType().int(),
41032
- data: stringType(),
41033
- from: stringType(),
41034
- gas: numberType().int(),
41035
- to: stringType(),
41036
- value: numberType().int(),
41037
- nonce: numberType().int(),
41038
- maxFeePerGas: numberType().int(),
41039
- maxPriorityFeePerGas: numberType().int(),
41040
- authorizationList: arrayType(SignedAuthorization$outboundSchema).optional()
41041
- });
41042
- ((UnsignedMulticallTransaction$) => {
41043
- UnsignedMulticallTransaction$.inboundSchema = UnsignedMulticallTransaction$inboundSchema;
41044
- UnsignedMulticallTransaction$.outboundSchema = UnsignedMulticallTransaction$outboundSchema;
41045
- })(UnsignedMulticallTransaction$ ||= {});
41046
- });
41047
-
41048
41051
  // src/models/components/unwrapwethrequest.ts
41049
41052
  var UnwrapWethRequestAmount$inboundSchema, UnwrapWethRequestAmount$outboundSchema, UnwrapWethRequestAmount$, UnwrapWethRequest$inboundSchema, UnwrapWethRequest$outboundSchema, UnwrapWethRequest$;
41050
41053
  var init_unwrapwethrequest = __esm(() => {
@@ -50603,7 +50606,7 @@ it to be traded on DeFi protocols.`,
50603
50606
  function createMCPServer(deps) {
50604
50607
  const server = new McpServer({
50605
50608
  name: "CompassApiSDK",
50606
- version: "0.1.3"
50609
+ version: "0.1.5"
50607
50610
  });
50608
50611
  const client = new CompassApiSDKCore({
50609
50612
  apiKeyAuth: deps.apiKeyAuth,
@@ -51944,7 +51947,7 @@ var routes = an({
51944
51947
  var app = He(routes, {
51945
51948
  name: "mcp",
51946
51949
  versionInfo: {
51947
- currentVersion: "0.1.3"
51950
+ currentVersion: "0.1.5"
51948
51951
  }
51949
51952
  });
51950
51953
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -51952,5 +51955,5 @@ export {
51952
51955
  app
51953
51956
  };
51954
51957
 
51955
- //# debugId=D62D5457B9B50DCB64756E2164756E21
51958
+ //# debugId=76C6D7FE912B8A3564756E2164756E21
51956
51959
  //# sourceMappingURL=mcp-server.js.map