@compass-labs/api-sdk 0.5.60 → 0.5.61

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 (80) hide show
  1. package/bin/mcp-server.js +40 -15
  2. package/bin/mcp-server.js.map +11 -10
  3. package/dist/commonjs/funcs/transactionBundlerBundlerAaveLoop.d.ts +2 -1
  4. package/dist/commonjs/funcs/transactionBundlerBundlerAaveLoop.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/transactionBundlerBundlerAaveLoop.js +2 -1
  6. package/dist/commonjs/funcs/transactionBundlerBundlerAaveLoop.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/models/components/aavelooprequest.d.ts +10 -2
  12. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/aavelooprequest.js +8 -2
  14. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
  15. package/dist/commonjs/models/components/multicallexecuterequest.d.ts +5 -2
  16. package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/multicallexecuterequest.js +4 -2
  18. package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -1
  19. package/dist/commonjs/models/operations/index.d.ts +1 -0
  20. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/index.js +1 -0
  22. package/dist/commonjs/models/operations/index.js.map +1 -1
  23. package/dist/commonjs/models/operations/transactionbundleraaveloop.d.ts +29 -0
  24. package/dist/commonjs/models/operations/transactionbundleraaveloop.d.ts.map +1 -0
  25. package/dist/commonjs/models/operations/transactionbundleraaveloop.js +72 -0
  26. package/dist/commonjs/models/operations/transactionbundleraaveloop.js.map +1 -0
  27. package/dist/commonjs/sdk/transactionbundler.d.ts +2 -1
  28. package/dist/commonjs/sdk/transactionbundler.d.ts.map +1 -1
  29. package/dist/commonjs/sdk/transactionbundler.js.map +1 -1
  30. package/dist/esm/funcs/transactionBundlerBundlerAaveLoop.d.ts +2 -1
  31. package/dist/esm/funcs/transactionBundlerBundlerAaveLoop.d.ts.map +1 -1
  32. package/dist/esm/funcs/transactionBundlerBundlerAaveLoop.js +2 -1
  33. package/dist/esm/funcs/transactionBundlerBundlerAaveLoop.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.js +1 -1
  38. package/dist/esm/models/components/aavelooprequest.d.ts +10 -2
  39. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
  40. package/dist/esm/models/components/aavelooprequest.js +8 -2
  41. package/dist/esm/models/components/aavelooprequest.js.map +1 -1
  42. package/dist/esm/models/components/multicallexecuterequest.d.ts +5 -2
  43. package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -1
  44. package/dist/esm/models/components/multicallexecuterequest.js +4 -2
  45. package/dist/esm/models/components/multicallexecuterequest.js.map +1 -1
  46. package/dist/esm/models/operations/index.d.ts +1 -0
  47. package/dist/esm/models/operations/index.d.ts.map +1 -1
  48. package/dist/esm/models/operations/index.js +1 -0
  49. package/dist/esm/models/operations/index.js.map +1 -1
  50. package/dist/esm/models/operations/transactionbundleraaveloop.d.ts +29 -0
  51. package/dist/esm/models/operations/transactionbundleraaveloop.d.ts.map +1 -0
  52. package/dist/esm/models/operations/transactionbundleraaveloop.js +34 -0
  53. package/dist/esm/models/operations/transactionbundleraaveloop.js.map +1 -0
  54. package/dist/esm/sdk/transactionbundler.d.ts +2 -1
  55. package/dist/esm/sdk/transactionbundler.d.ts.map +1 -1
  56. package/dist/esm/sdk/transactionbundler.js.map +1 -1
  57. package/docs/sdks/aavev3/README.md +14 -0
  58. package/docs/sdks/aerodromeslipstream/README.md +7 -0
  59. package/docs/sdks/erc4626vaults/README.md +3 -0
  60. package/docs/sdks/morpho/README.md +12 -0
  61. package/docs/sdks/pendle/README.md +11 -0
  62. package/docs/sdks/sky/README.md +5 -0
  63. package/docs/sdks/smartaccount/README.md +1 -0
  64. package/docs/sdks/swap/README.md +1 -0
  65. package/docs/sdks/token/README.md +4 -0
  66. package/docs/sdks/transactionbundler/README.md +6 -1
  67. package/docs/sdks/uniswapv3v0/README.md +10 -0
  68. package/docs/sdks/uniswapv3v1/README.md +1 -0
  69. package/docs/sdks/universal/README.md +9 -0
  70. package/jsr.json +1 -1
  71. package/package.json +1 -1
  72. package/src/funcs/transactionBundlerBundlerAaveLoop.ts +5 -4
  73. package/src/lib/config.ts +3 -3
  74. package/src/mcp-server/mcp-server.ts +1 -1
  75. package/src/mcp-server/server.ts +1 -1
  76. package/src/models/components/aavelooprequest.ts +18 -4
  77. package/src/models/components/multicallexecuterequest.ts +9 -4
  78. package/src/models/operations/index.ts +1 -0
  79. package/src/models/operations/transactionbundleraaveloop.ts +76 -0
  80. package/src/sdk/transactionbundler.ts +2 -1
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.60",
34268
- genVersion: "2.666.0",
34269
- userAgent: "speakeasy-sdk/typescript 0.5.60 2.666.0 0.0.1 @compass-labs/api-sdk"
34267
+ sdkVersion: "0.5.61",
34268
+ genVersion: "2.667.0",
34269
+ userAgent: "speakeasy-sdk/typescript 0.5.61 2.667.0 0.0.1 @compass-labs/api-sdk"
34270
34270
  };
34271
34271
  });
34272
34272
 
@@ -36413,13 +36413,14 @@ var init_aavelooprequest = __esm(() => {
36413
36413
  AaveLoopRequest$inboundSchema = objectType({
36414
36414
  chain: AaveLoopRequestChain$inboundSchema,
36415
36415
  sender: stringType(),
36416
- signed_authorization: SignedAuthorization$inboundSchema,
36416
+ signed_authorization: nullableType(SignedAuthorization$inboundSchema).optional(),
36417
36417
  collateral_token: TokenEnum$inboundSchema,
36418
36418
  borrow_token: TokenEnum$inboundSchema,
36419
36419
  initial_collateral_amount: unionType([numberType(), stringType()]),
36420
36420
  multiplier: unionType([numberType(), stringType()]),
36421
36421
  max_slippage_percent: unionType([numberType(), stringType()]),
36422
- loan_to_value: unionType([numberType(), stringType()])
36422
+ loan_to_value: unionType([numberType(), stringType()]),
36423
+ is_account_abstraction: booleanType().default(false)
36423
36424
  }).transform((v2) => {
36424
36425
  return remap(v2, {
36425
36426
  signed_authorization: "signedAuthorization",
@@ -36427,19 +36428,21 @@ var init_aavelooprequest = __esm(() => {
36427
36428
  borrow_token: "borrowToken",
36428
36429
  initial_collateral_amount: "initialCollateralAmount",
36429
36430
  max_slippage_percent: "maxSlippagePercent",
36430
- loan_to_value: "loanToValue"
36431
+ loan_to_value: "loanToValue",
36432
+ is_account_abstraction: "isAccountAbstraction"
36431
36433
  });
36432
36434
  });
36433
36435
  AaveLoopRequest$outboundSchema = objectType({
36434
36436
  chain: AaveLoopRequestChain$outboundSchema,
36435
36437
  sender: stringType(),
36436
- signedAuthorization: SignedAuthorization$outboundSchema,
36438
+ signedAuthorization: nullableType(SignedAuthorization$outboundSchema).optional(),
36437
36439
  collateralToken: TokenEnum$outboundSchema,
36438
36440
  borrowToken: TokenEnum$outboundSchema,
36439
36441
  initialCollateralAmount: unionType([numberType(), stringType()]),
36440
36442
  multiplier: unionType([numberType(), stringType()]),
36441
36443
  maxSlippagePercent: unionType([numberType(), stringType()]),
36442
- loanToValue: unionType([numberType(), stringType()])
36444
+ loanToValue: unionType([numberType(), stringType()]),
36445
+ isAccountAbstraction: booleanType().default(false)
36443
36446
  }).transform((v2) => {
36444
36447
  return remap(v2, {
36445
36448
  signedAuthorization: "signed_authorization",
@@ -36447,7 +36450,8 @@ var init_aavelooprequest = __esm(() => {
36447
36450
  borrowToken: "borrow_token",
36448
36451
  initialCollateralAmount: "initial_collateral_amount",
36449
36452
  maxSlippagePercent: "max_slippage_percent",
36450
- loanToValue: "loan_to_value"
36453
+ loanToValue: "loan_to_value",
36454
+ isAccountAbstraction: "is_account_abstraction"
36451
36455
  });
36452
36456
  });
36453
36457
  ((AaveLoopRequest$) => {
@@ -41238,7 +41242,7 @@ var init_multicallexecuterequest = __esm(() => {
41238
41242
  MulticallExecuteRequest$inboundSchema = objectType({
41239
41243
  chain: MulticallExecuteRequestChain$inboundSchema,
41240
41244
  sender: stringType(),
41241
- signed_authorization: SignedAuthorization$inboundSchema,
41245
+ signed_authorization: nullableType(SignedAuthorization$inboundSchema).optional(),
41242
41246
  actions: arrayType(UserOperation$inboundSchema)
41243
41247
  }).transform((v2) => {
41244
41248
  return remap(v2, {
@@ -41248,7 +41252,7 @@ var init_multicallexecuterequest = __esm(() => {
41248
41252
  MulticallExecuteRequest$outboundSchema = objectType({
41249
41253
  chain: MulticallExecuteRequestChain$outboundSchema,
41250
41254
  sender: stringType(),
41251
- signedAuthorization: SignedAuthorization$outboundSchema,
41255
+ signedAuthorization: nullableType(SignedAuthorization$outboundSchema).optional(),
41252
41256
  actions: arrayType(UserOperation$outboundSchema)
41253
41257
  }).transform((v2) => {
41254
41258
  return remap(v2, {
@@ -45655,6 +45659,25 @@ var init_tokenprice = __esm(() => {
45655
45659
  })(TokenPriceRequest$ ||= {});
45656
45660
  });
45657
45661
 
45662
+ // src/models/operations/transactionbundleraaveloop.ts
45663
+ var ResponseTransactionBundlerAaveLoop$inboundSchema, ResponseTransactionBundlerAaveLoop$outboundSchema, ResponseTransactionBundlerAaveLoop$;
45664
+ var init_transactionbundleraaveloop = __esm(() => {
45665
+ init_zod();
45666
+ init_components();
45667
+ ResponseTransactionBundlerAaveLoop$inboundSchema = unionType([
45668
+ UnsignedMulticallTransaction$inboundSchema,
45669
+ BatchedUserOperationsResponse$inboundSchema
45670
+ ]);
45671
+ ResponseTransactionBundlerAaveLoop$outboundSchema = unionType([
45672
+ UnsignedMulticallTransaction$outboundSchema,
45673
+ BatchedUserOperationsResponse$outboundSchema
45674
+ ]);
45675
+ ((ResponseTransactionBundlerAaveLoop$) => {
45676
+ ResponseTransactionBundlerAaveLoop$.inboundSchema = ResponseTransactionBundlerAaveLoop$inboundSchema;
45677
+ ResponseTransactionBundlerAaveLoop$.outboundSchema = ResponseTransactionBundlerAaveLoop$outboundSchema;
45678
+ })(ResponseTransactionBundlerAaveLoop$ ||= {});
45679
+ });
45680
+
45658
45681
  // src/models/operations/uniswapliquidityprovisioninrange.ts
45659
45682
  var UniswapLiquidityProvisionInRangeChain, UniswapLiquidityProvisionInRangeChain$inboundSchema, UniswapLiquidityProvisionInRangeChain$outboundSchema, UniswapLiquidityProvisionInRangeChain$, UniswapLiquidityProvisionInRangeRequest$inboundSchema, UniswapLiquidityProvisionInRangeRequest$outboundSchema, UniswapLiquidityProvisionInRangeRequest$;
45660
45683
  var init_uniswapliquidityprovisioninrange = __esm(() => {
@@ -46408,6 +46431,7 @@ var init_operations = __esm(() => {
46408
46431
  init_tokenaddress();
46409
46432
  init_tokenbalance();
46410
46433
  init_tokenprice();
46434
+ init_transactionbundleraaveloop();
46411
46435
  init_uniswapliquidityprovisioninrange();
46412
46436
  init_uniswapliquidityprovisionpositions();
46413
46437
  init_uniswappoolprice();
@@ -53126,7 +53150,7 @@ async function $do59(client, request, options) {
53126
53150
  const responseFields = {
53127
53151
  HttpMeta: { Response: response, Request: req }
53128
53152
  };
53129
- const [result] = await match(json(200, UnsignedMulticallTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53153
+ const [result] = await match(json(200, ResponseTransactionBundlerAaveLoop$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
53130
53154
  if (!result.ok) {
53131
53155
  return [result, { status: "complete", request: req, response }];
53132
53156
  }
@@ -53141,6 +53165,7 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
53141
53165
  init_url();
53142
53166
  init_components();
53143
53167
  init_errors2();
53168
+ init_operations();
53144
53169
  init_async();
53145
53170
  });
53146
53171
 
@@ -55666,7 +55691,7 @@ it to be traded on DeFi protocols.`,
55666
55691
  function createMCPServer(deps) {
55667
55692
  const server = new McpServer({
55668
55693
  name: "CompassApiSDK",
55669
- version: "0.5.60"
55694
+ version: "0.5.61"
55670
55695
  });
55671
55696
  const client = new CompassApiSDKCore({
55672
55697
  apiKeyAuth: deps.apiKeyAuth,
@@ -57044,7 +57069,7 @@ var routes = ln({
57044
57069
  var app = _e(routes, {
57045
57070
  name: "mcp",
57046
57071
  versionInfo: {
57047
- currentVersion: "0.5.60"
57072
+ currentVersion: "0.5.61"
57048
57073
  }
57049
57074
  });
57050
57075
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -57052,5 +57077,5 @@ export {
57052
57077
  app
57053
57078
  };
57054
57079
 
57055
- //# debugId=2CF0193D174522FE64756E2164756E21
57080
+ //# debugId=117AEEAE71D0787E64756E2164756E21
57056
57081
  //# sourceMappingURL=mcp-server.js.map