@compass-labs/api-sdk 0.5.41 → 0.5.43

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 (175) hide show
  1. package/README.md +2 -4
  2. package/bin/mcp-server.js +603 -852
  3. package/bin/mcp-server.js.map +18 -22
  4. package/dist/commonjs/funcs/pendleMarket.d.ts +3 -1
  5. package/dist/commonjs/funcs/pendleMarket.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/pendleMarket.js +4 -1
  7. package/dist/commonjs/funcs/pendleMarket.js.map +1 -1
  8. package/dist/commonjs/lib/config.d.ts +3 -3
  9. package/dist/commonjs/lib/config.js +3 -3
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +2 -4
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/pendleMarket.d.ts.map +1 -1
  15. package/dist/commonjs/mcp-server/tools/pendleMarket.js +4 -2
  16. package/dist/commonjs/mcp-server/tools/pendleMarket.js.map +1 -1
  17. package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts +62 -0
  18. package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts.map +1 -0
  19. package/dist/commonjs/models/components/{pendlegetuserpositionresponse.js → compassapibackendmodelspendlereadresponsemarketuserposition.js} +23 -29
  20. package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.js.map +1 -0
  21. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +31 -0
  22. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -0
  23. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +82 -0
  24. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -0
  25. package/dist/commonjs/models/components/index.d.ts +2 -2
  26. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/index.js +2 -2
  28. package/dist/commonjs/models/components/index.js.map +1 -1
  29. package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts +6 -0
  30. package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/pendlegetmarketresponse.js +5 -0
  32. package/dist/commonjs/models/components/pendlegetmarketresponse.js.map +1 -1
  33. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +54 -16
  34. package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +51 -5
  36. package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
  37. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +54 -16
  38. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +51 -5
  40. package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
  41. package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts +3 -3
  42. package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/vaultgetvaultresponse.js +3 -3
  44. package/dist/commonjs/models/components/vaultgetvaultresponse.js.map +1 -1
  45. package/dist/commonjs/models/operations/index.d.ts +0 -1
  46. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/index.js +0 -1
  48. package/dist/commonjs/models/operations/index.js.map +1 -1
  49. package/dist/commonjs/models/operations/pendlemarket.d.ts +5 -0
  50. package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/pendlemarket.js +4 -0
  52. package/dist/commonjs/models/operations/pendlemarket.js.map +1 -1
  53. package/dist/commonjs/sdk/pendle.d.ts +5 -10
  54. package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
  55. package/dist/commonjs/sdk/pendle.js +6 -14
  56. package/dist/commonjs/sdk/pendle.js.map +1 -1
  57. package/dist/esm/funcs/pendleMarket.d.ts +3 -1
  58. package/dist/esm/funcs/pendleMarket.d.ts.map +1 -1
  59. package/dist/esm/funcs/pendleMarket.js +4 -1
  60. package/dist/esm/funcs/pendleMarket.js.map +1 -1
  61. package/dist/esm/lib/config.d.ts +3 -3
  62. package/dist/esm/lib/config.js +3 -3
  63. package/dist/esm/mcp-server/mcp-server.js +1 -1
  64. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  65. package/dist/esm/mcp-server/server.js +2 -4
  66. package/dist/esm/mcp-server/server.js.map +1 -1
  67. package/dist/esm/mcp-server/tools/pendleMarket.d.ts.map +1 -1
  68. package/dist/esm/mcp-server/tools/pendleMarket.js +4 -2
  69. package/dist/esm/mcp-server/tools/pendleMarket.js.map +1 -1
  70. package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts +62 -0
  71. package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.d.ts.map +1 -0
  72. package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.js +66 -0
  73. package/dist/esm/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.js.map +1 -0
  74. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +31 -0
  75. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -0
  76. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +44 -0
  77. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -0
  78. package/dist/esm/models/components/index.d.ts +2 -2
  79. package/dist/esm/models/components/index.d.ts.map +1 -1
  80. package/dist/esm/models/components/index.js +2 -2
  81. package/dist/esm/models/components/index.js.map +1 -1
  82. package/dist/esm/models/components/pendlegetmarketresponse.d.ts +6 -0
  83. package/dist/esm/models/components/pendlegetmarketresponse.d.ts.map +1 -1
  84. package/dist/esm/models/components/pendlegetmarketresponse.js +5 -0
  85. package/dist/esm/models/components/pendlegetmarketresponse.js.map +1 -1
  86. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +54 -16
  87. package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
  88. package/dist/esm/models/components/uniswapbuyexactlyparams.js +46 -4
  89. package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
  90. package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +54 -16
  91. package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
  92. package/dist/esm/models/components/uniswapbuyexactlyrequest.js +46 -4
  93. package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
  94. package/dist/esm/models/components/vaultgetvaultresponse.d.ts +3 -3
  95. package/dist/esm/models/components/vaultgetvaultresponse.d.ts.map +1 -1
  96. package/dist/esm/models/components/vaultgetvaultresponse.js +3 -3
  97. package/dist/esm/models/components/vaultgetvaultresponse.js.map +1 -1
  98. package/dist/esm/models/operations/index.d.ts +0 -1
  99. package/dist/esm/models/operations/index.d.ts.map +1 -1
  100. package/dist/esm/models/operations/index.js +0 -1
  101. package/dist/esm/models/operations/index.js.map +1 -1
  102. package/dist/esm/models/operations/pendlemarket.d.ts +5 -0
  103. package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -1
  104. package/dist/esm/models/operations/pendlemarket.js +4 -0
  105. package/dist/esm/models/operations/pendlemarket.js.map +1 -1
  106. package/dist/esm/sdk/pendle.d.ts +5 -10
  107. package/dist/esm/sdk/pendle.d.ts.map +1 -1
  108. package/dist/esm/sdk/pendle.js +6 -14
  109. package/dist/esm/sdk/pendle.js.map +1 -1
  110. package/docs/sdks/pendle/README.md +15 -79
  111. package/docs/sdks/uniswapv3/README.md +4 -4
  112. package/examples/README.md +26 -0
  113. package/examples/aaveV3Rate.example.ts +24 -0
  114. package/examples/package.json +18 -0
  115. package/jsr.json +1 -1
  116. package/package.json +2 -2
  117. package/src/funcs/pendleMarket.ts +4 -1
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +2 -4
  121. package/src/mcp-server/tools/pendleMarket.ts +4 -2
  122. package/src/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.ts +145 -0
  123. package/src/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.ts +92 -0
  124. package/src/models/components/index.ts +2 -2
  125. package/src/models/components/pendlegetmarketresponse.ts +25 -0
  126. package/src/models/components/uniswapbuyexactlyparams.ts +120 -20
  127. package/src/models/components/uniswapbuyexactlyrequest.ts +120 -20
  128. package/src/models/components/vaultgetvaultresponse.ts +19 -9
  129. package/src/models/operations/index.ts +0 -1
  130. package/src/models/operations/pendlemarket.ts +9 -0
  131. package/src/sdk/pendle.ts +8 -24
  132. package/dist/commonjs/funcs/pendlePosition.d.ts +0 -19
  133. package/dist/commonjs/funcs/pendlePosition.d.ts.map +0 -1
  134. package/dist/commonjs/funcs/pendlePosition.js +0 -125
  135. package/dist/commonjs/funcs/pendlePosition.js.map +0 -1
  136. package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts +0 -8
  137. package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts.map +0 -1
  138. package/dist/commonjs/mcp-server/tools/pendlePosition.js +0 -64
  139. package/dist/commonjs/mcp-server/tools/pendlePosition.js.map +0 -1
  140. package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts +0 -72
  141. package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts.map +0 -1
  142. package/dist/commonjs/models/components/pendlegetuserpositionresponse.js.map +0 -1
  143. package/dist/commonjs/models/components/userposition.d.ts +0 -31
  144. package/dist/commonjs/models/components/userposition.d.ts.map +0 -1
  145. package/dist/commonjs/models/components/userposition.js +0 -80
  146. package/dist/commonjs/models/components/userposition.js.map +0 -1
  147. package/dist/commonjs/models/operations/pendleposition.d.ts +0 -82
  148. package/dist/commonjs/models/operations/pendleposition.d.ts.map +0 -1
  149. package/dist/commonjs/models/operations/pendleposition.js +0 -109
  150. package/dist/commonjs/models/operations/pendleposition.js.map +0 -1
  151. package/dist/esm/funcs/pendlePosition.d.ts +0 -19
  152. package/dist/esm/funcs/pendlePosition.d.ts.map +0 -1
  153. package/dist/esm/funcs/pendlePosition.js +0 -89
  154. package/dist/esm/funcs/pendlePosition.js.map +0 -1
  155. package/dist/esm/mcp-server/tools/pendlePosition.d.ts +0 -8
  156. package/dist/esm/mcp-server/tools/pendlePosition.d.ts.map +0 -1
  157. package/dist/esm/mcp-server/tools/pendlePosition.js +0 -28
  158. package/dist/esm/mcp-server/tools/pendlePosition.js.map +0 -1
  159. package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts +0 -72
  160. package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts.map +0 -1
  161. package/dist/esm/models/components/pendlegetuserpositionresponse.js +0 -72
  162. package/dist/esm/models/components/pendlegetuserpositionresponse.js.map +0 -1
  163. package/dist/esm/models/components/userposition.d.ts +0 -31
  164. package/dist/esm/models/components/userposition.d.ts.map +0 -1
  165. package/dist/esm/models/components/userposition.js +0 -42
  166. package/dist/esm/models/components/userposition.js.map +0 -1
  167. package/dist/esm/models/operations/pendleposition.d.ts +0 -82
  168. package/dist/esm/models/operations/pendleposition.d.ts.map +0 -1
  169. package/dist/esm/models/operations/pendleposition.js +0 -71
  170. package/dist/esm/models/operations/pendleposition.js.map +0 -1
  171. package/src/funcs/pendlePosition.ts +0 -177
  172. package/src/mcp-server/tools/pendlePosition.ts +0 -37
  173. package/src/models/components/pendlegetuserpositionresponse.ts +0 -154
  174. package/src/models/components/userposition.ts +0 -75
  175. package/src/models/operations/pendleposition.ts +0 -142
package/bin/mcp-server.js CHANGED
@@ -3989,130 +3989,10 @@ var init_external = __esm(() => {
3989
3989
  init_ZodError();
3990
3990
  });
3991
3991
 
3992
- // node_modules/zod/v3/index.js
3993
- var exports_v3 = {};
3994
- __export(exports_v3, {
3995
- z: () => exports_external,
3996
- void: () => voidType,
3997
- util: () => util,
3998
- unknown: () => unknownType,
3999
- union: () => unionType,
4000
- undefined: () => undefinedType,
4001
- tuple: () => tupleType,
4002
- transformer: () => effectsType,
4003
- symbol: () => symbolType,
4004
- string: () => stringType,
4005
- strictObject: () => strictObjectType,
4006
- setErrorMap: () => setErrorMap,
4007
- set: () => setType,
4008
- record: () => recordType,
4009
- quotelessJson: () => quotelessJson,
4010
- promise: () => promiseType,
4011
- preprocess: () => preprocessType,
4012
- pipeline: () => pipelineType,
4013
- ostring: () => ostring,
4014
- optional: () => optionalType,
4015
- onumber: () => onumber,
4016
- oboolean: () => oboolean,
4017
- objectUtil: () => objectUtil,
4018
- object: () => objectType,
4019
- number: () => numberType,
4020
- nullable: () => nullableType,
4021
- null: () => nullType,
4022
- never: () => neverType,
4023
- nativeEnum: () => nativeEnumType,
4024
- nan: () => nanType,
4025
- map: () => mapType,
4026
- makeIssue: () => makeIssue,
4027
- literal: () => literalType,
4028
- lazy: () => lazyType,
4029
- late: () => late,
4030
- isValid: () => isValid,
4031
- isDirty: () => isDirty,
4032
- isAsync: () => isAsync,
4033
- isAborted: () => isAborted,
4034
- intersection: () => intersectionType,
4035
- instanceof: () => instanceOfType,
4036
- getParsedType: () => getParsedType,
4037
- getErrorMap: () => getErrorMap,
4038
- function: () => functionType,
4039
- enum: () => enumType,
4040
- effect: () => effectsType,
4041
- discriminatedUnion: () => discriminatedUnionType,
4042
- defaultErrorMap: () => en_default,
4043
- default: () => v3_default,
4044
- datetimeRegex: () => datetimeRegex,
4045
- date: () => dateType,
4046
- custom: () => custom,
4047
- coerce: () => coerce,
4048
- boolean: () => booleanType,
4049
- bigint: () => bigIntType,
4050
- array: () => arrayType,
4051
- any: () => anyType,
4052
- addIssueToContext: () => addIssueToContext,
4053
- ZodVoid: () => ZodVoid,
4054
- ZodUnknown: () => ZodUnknown,
4055
- ZodUnion: () => ZodUnion,
4056
- ZodUndefined: () => ZodUndefined,
4057
- ZodType: () => ZodType,
4058
- ZodTuple: () => ZodTuple,
4059
- ZodTransformer: () => ZodEffects,
4060
- ZodSymbol: () => ZodSymbol,
4061
- ZodString: () => ZodString,
4062
- ZodSet: () => ZodSet,
4063
- ZodSchema: () => ZodType,
4064
- ZodRecord: () => ZodRecord,
4065
- ZodReadonly: () => ZodReadonly,
4066
- ZodPromise: () => ZodPromise,
4067
- ZodPipeline: () => ZodPipeline,
4068
- ZodParsedType: () => ZodParsedType,
4069
- ZodOptional: () => ZodOptional,
4070
- ZodObject: () => ZodObject,
4071
- ZodNumber: () => ZodNumber,
4072
- ZodNullable: () => ZodNullable,
4073
- ZodNull: () => ZodNull,
4074
- ZodNever: () => ZodNever,
4075
- ZodNativeEnum: () => ZodNativeEnum,
4076
- ZodNaN: () => ZodNaN,
4077
- ZodMap: () => ZodMap,
4078
- ZodLiteral: () => ZodLiteral,
4079
- ZodLazy: () => ZodLazy,
4080
- ZodIssueCode: () => ZodIssueCode,
4081
- ZodIntersection: () => ZodIntersection,
4082
- ZodFunction: () => ZodFunction,
4083
- ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
4084
- ZodError: () => ZodError,
4085
- ZodEnum: () => ZodEnum,
4086
- ZodEffects: () => ZodEffects,
4087
- ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
4088
- ZodDefault: () => ZodDefault,
4089
- ZodDate: () => ZodDate,
4090
- ZodCatch: () => ZodCatch,
4091
- ZodBranded: () => ZodBranded,
4092
- ZodBoolean: () => ZodBoolean,
4093
- ZodBigInt: () => ZodBigInt,
4094
- ZodArray: () => ZodArray,
4095
- ZodAny: () => ZodAny,
4096
- Schema: () => ZodType,
4097
- ParseStatus: () => ParseStatus,
4098
- OK: () => OK,
4099
- NEVER: () => NEVER,
4100
- INVALID: () => INVALID,
4101
- EMPTY_PATH: () => EMPTY_PATH,
4102
- DIRTY: () => DIRTY,
4103
- BRAND: () => BRAND
4104
- });
4105
- var v3_default;
4106
- var init_v3 = __esm(() => {
4107
- init_external();
4108
- init_external();
4109
- v3_default = exports_external;
4110
- });
4111
-
4112
3992
  // node_modules/zod/index.js
4113
3993
  var init_zod = __esm(() => {
4114
- init_v3();
4115
- init_v3();
3994
+ init_external();
3995
+ init_external();
4116
3996
  });
4117
3997
 
4118
3998
  // src/mcp-server/console-logger.ts
@@ -4174,37 +4054,37 @@ var init_types2 = __esm(() => {
4174
4054
  LATEST_PROTOCOL_VERSION,
4175
4055
  "2024-10-07"
4176
4056
  ];
4177
- ProgressTokenSchema = exports_v3.union([exports_v3.string(), exports_v3.number().int()]);
4178
- CursorSchema = exports_v3.string();
4179
- BaseRequestParamsSchema = exports_v3.object({
4180
- _meta: exports_v3.optional(exports_v3.object({
4181
- progressToken: exports_v3.optional(ProgressTokenSchema)
4057
+ ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
4058
+ CursorSchema = exports_external.string();
4059
+ BaseRequestParamsSchema = exports_external.object({
4060
+ _meta: exports_external.optional(exports_external.object({
4061
+ progressToken: exports_external.optional(ProgressTokenSchema)
4182
4062
  }).passthrough())
4183
4063
  }).passthrough();
4184
- RequestSchema = exports_v3.object({
4185
- method: exports_v3.string(),
4186
- params: exports_v3.optional(BaseRequestParamsSchema)
4064
+ RequestSchema = exports_external.object({
4065
+ method: exports_external.string(),
4066
+ params: exports_external.optional(BaseRequestParamsSchema)
4187
4067
  });
4188
- BaseNotificationParamsSchema = exports_v3.object({
4189
- _meta: exports_v3.optional(exports_v3.object({}).passthrough())
4068
+ BaseNotificationParamsSchema = exports_external.object({
4069
+ _meta: exports_external.optional(exports_external.object({}).passthrough())
4190
4070
  }).passthrough();
4191
- NotificationSchema = exports_v3.object({
4192
- method: exports_v3.string(),
4193
- params: exports_v3.optional(BaseNotificationParamsSchema)
4071
+ NotificationSchema = exports_external.object({
4072
+ method: exports_external.string(),
4073
+ params: exports_external.optional(BaseNotificationParamsSchema)
4194
4074
  });
4195
- ResultSchema = exports_v3.object({
4196
- _meta: exports_v3.optional(exports_v3.object({}).passthrough())
4075
+ ResultSchema = exports_external.object({
4076
+ _meta: exports_external.optional(exports_external.object({}).passthrough())
4197
4077
  }).passthrough();
4198
- RequestIdSchema = exports_v3.union([exports_v3.string(), exports_v3.number().int()]);
4199
- JSONRPCRequestSchema = exports_v3.object({
4200
- jsonrpc: exports_v3.literal(JSONRPC_VERSION),
4078
+ RequestIdSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
4079
+ JSONRPCRequestSchema = exports_external.object({
4080
+ jsonrpc: exports_external.literal(JSONRPC_VERSION),
4201
4081
  id: RequestIdSchema
4202
4082
  }).merge(RequestSchema).strict();
4203
- JSONRPCNotificationSchema = exports_v3.object({
4204
- jsonrpc: exports_v3.literal(JSONRPC_VERSION)
4083
+ JSONRPCNotificationSchema = exports_external.object({
4084
+ jsonrpc: exports_external.literal(JSONRPC_VERSION)
4205
4085
  }).merge(NotificationSchema).strict();
4206
- JSONRPCResponseSchema = exports_v3.object({
4207
- jsonrpc: exports_v3.literal(JSONRPC_VERSION),
4086
+ JSONRPCResponseSchema = exports_external.object({
4087
+ jsonrpc: exports_external.literal(JSONRPC_VERSION),
4208
4088
  id: RequestIdSchema,
4209
4089
  result: ResultSchema
4210
4090
  }).strict();
@@ -4217,16 +4097,16 @@ var init_types2 = __esm(() => {
4217
4097
  ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
4218
4098
  ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
4219
4099
  })(ErrorCode || (ErrorCode = {}));
4220
- JSONRPCErrorSchema = exports_v3.object({
4221
- jsonrpc: exports_v3.literal(JSONRPC_VERSION),
4100
+ JSONRPCErrorSchema = exports_external.object({
4101
+ jsonrpc: exports_external.literal(JSONRPC_VERSION),
4222
4102
  id: RequestIdSchema,
4223
- error: exports_v3.object({
4224
- code: exports_v3.number().int(),
4225
- message: exports_v3.string(),
4226
- data: exports_v3.optional(exports_v3.unknown())
4103
+ error: exports_external.object({
4104
+ code: exports_external.number().int(),
4105
+ message: exports_external.string(),
4106
+ data: exports_external.optional(exports_external.unknown())
4227
4107
  })
4228
4108
  }).strict();
4229
- JSONRPCMessageSchema = exports_v3.union([
4109
+ JSONRPCMessageSchema = exports_external.union([
4230
4110
  JSONRPCRequestSchema,
4231
4111
  JSONRPCNotificationSchema,
4232
4112
  JSONRPCResponseSchema,
@@ -4234,184 +4114,184 @@ var init_types2 = __esm(() => {
4234
4114
  ]);
4235
4115
  EmptyResultSchema = ResultSchema.strict();
4236
4116
  CancelledNotificationSchema = NotificationSchema.extend({
4237
- method: exports_v3.literal("notifications/cancelled"),
4117
+ method: exports_external.literal("notifications/cancelled"),
4238
4118
  params: BaseNotificationParamsSchema.extend({
4239
4119
  requestId: RequestIdSchema,
4240
- reason: exports_v3.string().optional()
4120
+ reason: exports_external.string().optional()
4241
4121
  })
4242
4122
  });
4243
- ImplementationSchema = exports_v3.object({
4244
- name: exports_v3.string(),
4245
- version: exports_v3.string()
4123
+ ImplementationSchema = exports_external.object({
4124
+ name: exports_external.string(),
4125
+ version: exports_external.string()
4246
4126
  }).passthrough();
4247
- ClientCapabilitiesSchema = exports_v3.object({
4248
- experimental: exports_v3.optional(exports_v3.object({}).passthrough()),
4249
- sampling: exports_v3.optional(exports_v3.object({}).passthrough()),
4250
- roots: exports_v3.optional(exports_v3.object({
4251
- listChanged: exports_v3.optional(exports_v3.boolean())
4127
+ ClientCapabilitiesSchema = exports_external.object({
4128
+ experimental: exports_external.optional(exports_external.object({}).passthrough()),
4129
+ sampling: exports_external.optional(exports_external.object({}).passthrough()),
4130
+ roots: exports_external.optional(exports_external.object({
4131
+ listChanged: exports_external.optional(exports_external.boolean())
4252
4132
  }).passthrough())
4253
4133
  }).passthrough();
4254
4134
  InitializeRequestSchema = RequestSchema.extend({
4255
- method: exports_v3.literal("initialize"),
4135
+ method: exports_external.literal("initialize"),
4256
4136
  params: BaseRequestParamsSchema.extend({
4257
- protocolVersion: exports_v3.string(),
4137
+ protocolVersion: exports_external.string(),
4258
4138
  capabilities: ClientCapabilitiesSchema,
4259
4139
  clientInfo: ImplementationSchema
4260
4140
  })
4261
4141
  });
4262
- ServerCapabilitiesSchema = exports_v3.object({
4263
- experimental: exports_v3.optional(exports_v3.object({}).passthrough()),
4264
- logging: exports_v3.optional(exports_v3.object({}).passthrough()),
4265
- completions: exports_v3.optional(exports_v3.object({}).passthrough()),
4266
- prompts: exports_v3.optional(exports_v3.object({
4267
- listChanged: exports_v3.optional(exports_v3.boolean())
4142
+ ServerCapabilitiesSchema = exports_external.object({
4143
+ experimental: exports_external.optional(exports_external.object({}).passthrough()),
4144
+ logging: exports_external.optional(exports_external.object({}).passthrough()),
4145
+ completions: exports_external.optional(exports_external.object({}).passthrough()),
4146
+ prompts: exports_external.optional(exports_external.object({
4147
+ listChanged: exports_external.optional(exports_external.boolean())
4268
4148
  }).passthrough()),
4269
- resources: exports_v3.optional(exports_v3.object({
4270
- subscribe: exports_v3.optional(exports_v3.boolean()),
4271
- listChanged: exports_v3.optional(exports_v3.boolean())
4149
+ resources: exports_external.optional(exports_external.object({
4150
+ subscribe: exports_external.optional(exports_external.boolean()),
4151
+ listChanged: exports_external.optional(exports_external.boolean())
4272
4152
  }).passthrough()),
4273
- tools: exports_v3.optional(exports_v3.object({
4274
- listChanged: exports_v3.optional(exports_v3.boolean())
4153
+ tools: exports_external.optional(exports_external.object({
4154
+ listChanged: exports_external.optional(exports_external.boolean())
4275
4155
  }).passthrough())
4276
4156
  }).passthrough();
4277
4157
  InitializeResultSchema = ResultSchema.extend({
4278
- protocolVersion: exports_v3.string(),
4158
+ protocolVersion: exports_external.string(),
4279
4159
  capabilities: ServerCapabilitiesSchema,
4280
4160
  serverInfo: ImplementationSchema,
4281
- instructions: exports_v3.optional(exports_v3.string())
4161
+ instructions: exports_external.optional(exports_external.string())
4282
4162
  });
4283
4163
  InitializedNotificationSchema = NotificationSchema.extend({
4284
- method: exports_v3.literal("notifications/initialized")
4164
+ method: exports_external.literal("notifications/initialized")
4285
4165
  });
4286
4166
  PingRequestSchema = RequestSchema.extend({
4287
- method: exports_v3.literal("ping")
4167
+ method: exports_external.literal("ping")
4288
4168
  });
4289
- ProgressSchema = exports_v3.object({
4290
- progress: exports_v3.number(),
4291
- total: exports_v3.optional(exports_v3.number())
4169
+ ProgressSchema = exports_external.object({
4170
+ progress: exports_external.number(),
4171
+ total: exports_external.optional(exports_external.number())
4292
4172
  }).passthrough();
4293
4173
  ProgressNotificationSchema = NotificationSchema.extend({
4294
- method: exports_v3.literal("notifications/progress"),
4174
+ method: exports_external.literal("notifications/progress"),
4295
4175
  params: BaseNotificationParamsSchema.merge(ProgressSchema).extend({
4296
4176
  progressToken: ProgressTokenSchema
4297
4177
  })
4298
4178
  });
4299
4179
  PaginatedRequestSchema = RequestSchema.extend({
4300
4180
  params: BaseRequestParamsSchema.extend({
4301
- cursor: exports_v3.optional(CursorSchema)
4181
+ cursor: exports_external.optional(CursorSchema)
4302
4182
  }).optional()
4303
4183
  });
4304
4184
  PaginatedResultSchema = ResultSchema.extend({
4305
- nextCursor: exports_v3.optional(CursorSchema)
4185
+ nextCursor: exports_external.optional(CursorSchema)
4306
4186
  });
4307
- ResourceContentsSchema = exports_v3.object({
4308
- uri: exports_v3.string(),
4309
- mimeType: exports_v3.optional(exports_v3.string())
4187
+ ResourceContentsSchema = exports_external.object({
4188
+ uri: exports_external.string(),
4189
+ mimeType: exports_external.optional(exports_external.string())
4310
4190
  }).passthrough();
4311
4191
  TextResourceContentsSchema = ResourceContentsSchema.extend({
4312
- text: exports_v3.string()
4192
+ text: exports_external.string()
4313
4193
  });
4314
4194
  BlobResourceContentsSchema = ResourceContentsSchema.extend({
4315
- blob: exports_v3.string().base64()
4195
+ blob: exports_external.string().base64()
4316
4196
  });
4317
- ResourceSchema = exports_v3.object({
4318
- uri: exports_v3.string(),
4319
- name: exports_v3.string(),
4320
- description: exports_v3.optional(exports_v3.string()),
4321
- mimeType: exports_v3.optional(exports_v3.string())
4197
+ ResourceSchema = exports_external.object({
4198
+ uri: exports_external.string(),
4199
+ name: exports_external.string(),
4200
+ description: exports_external.optional(exports_external.string()),
4201
+ mimeType: exports_external.optional(exports_external.string())
4322
4202
  }).passthrough();
4323
- ResourceTemplateSchema = exports_v3.object({
4324
- uriTemplate: exports_v3.string(),
4325
- name: exports_v3.string(),
4326
- description: exports_v3.optional(exports_v3.string()),
4327
- mimeType: exports_v3.optional(exports_v3.string())
4203
+ ResourceTemplateSchema = exports_external.object({
4204
+ uriTemplate: exports_external.string(),
4205
+ name: exports_external.string(),
4206
+ description: exports_external.optional(exports_external.string()),
4207
+ mimeType: exports_external.optional(exports_external.string())
4328
4208
  }).passthrough();
4329
4209
  ListResourcesRequestSchema = PaginatedRequestSchema.extend({
4330
- method: exports_v3.literal("resources/list")
4210
+ method: exports_external.literal("resources/list")
4331
4211
  });
4332
4212
  ListResourcesResultSchema = PaginatedResultSchema.extend({
4333
- resources: exports_v3.array(ResourceSchema)
4213
+ resources: exports_external.array(ResourceSchema)
4334
4214
  });
4335
4215
  ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
4336
- method: exports_v3.literal("resources/templates/list")
4216
+ method: exports_external.literal("resources/templates/list")
4337
4217
  });
4338
4218
  ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
4339
- resourceTemplates: exports_v3.array(ResourceTemplateSchema)
4219
+ resourceTemplates: exports_external.array(ResourceTemplateSchema)
4340
4220
  });
4341
4221
  ReadResourceRequestSchema = RequestSchema.extend({
4342
- method: exports_v3.literal("resources/read"),
4222
+ method: exports_external.literal("resources/read"),
4343
4223
  params: BaseRequestParamsSchema.extend({
4344
- uri: exports_v3.string()
4224
+ uri: exports_external.string()
4345
4225
  })
4346
4226
  });
4347
4227
  ReadResourceResultSchema = ResultSchema.extend({
4348
- contents: exports_v3.array(exports_v3.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
4228
+ contents: exports_external.array(exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
4349
4229
  });
4350
4230
  ResourceListChangedNotificationSchema = NotificationSchema.extend({
4351
- method: exports_v3.literal("notifications/resources/list_changed")
4231
+ method: exports_external.literal("notifications/resources/list_changed")
4352
4232
  });
4353
4233
  SubscribeRequestSchema = RequestSchema.extend({
4354
- method: exports_v3.literal("resources/subscribe"),
4234
+ method: exports_external.literal("resources/subscribe"),
4355
4235
  params: BaseRequestParamsSchema.extend({
4356
- uri: exports_v3.string()
4236
+ uri: exports_external.string()
4357
4237
  })
4358
4238
  });
4359
4239
  UnsubscribeRequestSchema = RequestSchema.extend({
4360
- method: exports_v3.literal("resources/unsubscribe"),
4240
+ method: exports_external.literal("resources/unsubscribe"),
4361
4241
  params: BaseRequestParamsSchema.extend({
4362
- uri: exports_v3.string()
4242
+ uri: exports_external.string()
4363
4243
  })
4364
4244
  });
4365
4245
  ResourceUpdatedNotificationSchema = NotificationSchema.extend({
4366
- method: exports_v3.literal("notifications/resources/updated"),
4246
+ method: exports_external.literal("notifications/resources/updated"),
4367
4247
  params: BaseNotificationParamsSchema.extend({
4368
- uri: exports_v3.string()
4248
+ uri: exports_external.string()
4369
4249
  })
4370
4250
  });
4371
- PromptArgumentSchema = exports_v3.object({
4372
- name: exports_v3.string(),
4373
- description: exports_v3.optional(exports_v3.string()),
4374
- required: exports_v3.optional(exports_v3.boolean())
4251
+ PromptArgumentSchema = exports_external.object({
4252
+ name: exports_external.string(),
4253
+ description: exports_external.optional(exports_external.string()),
4254
+ required: exports_external.optional(exports_external.boolean())
4375
4255
  }).passthrough();
4376
- PromptSchema = exports_v3.object({
4377
- name: exports_v3.string(),
4378
- description: exports_v3.optional(exports_v3.string()),
4379
- arguments: exports_v3.optional(exports_v3.array(PromptArgumentSchema))
4256
+ PromptSchema = exports_external.object({
4257
+ name: exports_external.string(),
4258
+ description: exports_external.optional(exports_external.string()),
4259
+ arguments: exports_external.optional(exports_external.array(PromptArgumentSchema))
4380
4260
  }).passthrough();
4381
4261
  ListPromptsRequestSchema = PaginatedRequestSchema.extend({
4382
- method: exports_v3.literal("prompts/list")
4262
+ method: exports_external.literal("prompts/list")
4383
4263
  });
4384
4264
  ListPromptsResultSchema = PaginatedResultSchema.extend({
4385
- prompts: exports_v3.array(PromptSchema)
4265
+ prompts: exports_external.array(PromptSchema)
4386
4266
  });
4387
4267
  GetPromptRequestSchema = RequestSchema.extend({
4388
- method: exports_v3.literal("prompts/get"),
4268
+ method: exports_external.literal("prompts/get"),
4389
4269
  params: BaseRequestParamsSchema.extend({
4390
- name: exports_v3.string(),
4391
- arguments: exports_v3.optional(exports_v3.record(exports_v3.string()))
4270
+ name: exports_external.string(),
4271
+ arguments: exports_external.optional(exports_external.record(exports_external.string()))
4392
4272
  })
4393
4273
  });
4394
- TextContentSchema = exports_v3.object({
4395
- type: exports_v3.literal("text"),
4396
- text: exports_v3.string()
4274
+ TextContentSchema = exports_external.object({
4275
+ type: exports_external.literal("text"),
4276
+ text: exports_external.string()
4397
4277
  }).passthrough();
4398
- ImageContentSchema = exports_v3.object({
4399
- type: exports_v3.literal("image"),
4400
- data: exports_v3.string().base64(),
4401
- mimeType: exports_v3.string()
4278
+ ImageContentSchema = exports_external.object({
4279
+ type: exports_external.literal("image"),
4280
+ data: exports_external.string().base64(),
4281
+ mimeType: exports_external.string()
4402
4282
  }).passthrough();
4403
- AudioContentSchema = exports_v3.object({
4404
- type: exports_v3.literal("audio"),
4405
- data: exports_v3.string().base64(),
4406
- mimeType: exports_v3.string()
4283
+ AudioContentSchema = exports_external.object({
4284
+ type: exports_external.literal("audio"),
4285
+ data: exports_external.string().base64(),
4286
+ mimeType: exports_external.string()
4407
4287
  }).passthrough();
4408
- EmbeddedResourceSchema = exports_v3.object({
4409
- type: exports_v3.literal("resource"),
4410
- resource: exports_v3.union([TextResourceContentsSchema, BlobResourceContentsSchema])
4288
+ EmbeddedResourceSchema = exports_external.object({
4289
+ type: exports_external.literal("resource"),
4290
+ resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema])
4411
4291
  }).passthrough();
4412
- PromptMessageSchema = exports_v3.object({
4413
- role: exports_v3.enum(["user", "assistant"]),
4414
- content: exports_v3.union([
4292
+ PromptMessageSchema = exports_external.object({
4293
+ role: exports_external.enum(["user", "assistant"]),
4294
+ content: exports_external.union([
4415
4295
  TextContentSchema,
4416
4296
  ImageContentSchema,
4417
4297
  AudioContentSchema,
@@ -4419,44 +4299,44 @@ var init_types2 = __esm(() => {
4419
4299
  ])
4420
4300
  }).passthrough();
4421
4301
  GetPromptResultSchema = ResultSchema.extend({
4422
- description: exports_v3.optional(exports_v3.string()),
4423
- messages: exports_v3.array(PromptMessageSchema)
4302
+ description: exports_external.optional(exports_external.string()),
4303
+ messages: exports_external.array(PromptMessageSchema)
4424
4304
  });
4425
4305
  PromptListChangedNotificationSchema = NotificationSchema.extend({
4426
- method: exports_v3.literal("notifications/prompts/list_changed")
4427
- });
4428
- ToolSchema = exports_v3.object({
4429
- name: exports_v3.string(),
4430
- description: exports_v3.optional(exports_v3.string()),
4431
- inputSchema: exports_v3.object({
4432
- type: exports_v3.literal("object"),
4433
- properties: exports_v3.optional(exports_v3.object({}).passthrough())
4306
+ method: exports_external.literal("notifications/prompts/list_changed")
4307
+ });
4308
+ ToolSchema = exports_external.object({
4309
+ name: exports_external.string(),
4310
+ description: exports_external.optional(exports_external.string()),
4311
+ inputSchema: exports_external.object({
4312
+ type: exports_external.literal("object"),
4313
+ properties: exports_external.optional(exports_external.object({}).passthrough())
4434
4314
  }).passthrough()
4435
4315
  }).passthrough();
4436
4316
  ListToolsRequestSchema = PaginatedRequestSchema.extend({
4437
- method: exports_v3.literal("tools/list")
4317
+ method: exports_external.literal("tools/list")
4438
4318
  });
4439
4319
  ListToolsResultSchema = PaginatedResultSchema.extend({
4440
- tools: exports_v3.array(ToolSchema)
4320
+ tools: exports_external.array(ToolSchema)
4441
4321
  });
4442
4322
  CallToolResultSchema = ResultSchema.extend({
4443
- content: exports_v3.array(exports_v3.union([TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema])),
4444
- isError: exports_v3.boolean().default(false).optional()
4323
+ content: exports_external.array(exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema])),
4324
+ isError: exports_external.boolean().default(false).optional()
4445
4325
  });
4446
4326
  CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
4447
- toolResult: exports_v3.unknown()
4327
+ toolResult: exports_external.unknown()
4448
4328
  }));
4449
4329
  CallToolRequestSchema = RequestSchema.extend({
4450
- method: exports_v3.literal("tools/call"),
4330
+ method: exports_external.literal("tools/call"),
4451
4331
  params: BaseRequestParamsSchema.extend({
4452
- name: exports_v3.string(),
4453
- arguments: exports_v3.optional(exports_v3.record(exports_v3.unknown()))
4332
+ name: exports_external.string(),
4333
+ arguments: exports_external.optional(exports_external.record(exports_external.unknown()))
4454
4334
  })
4455
4335
  });
4456
4336
  ToolListChangedNotificationSchema = NotificationSchema.extend({
4457
- method: exports_v3.literal("notifications/tools/list_changed")
4337
+ method: exports_external.literal("notifications/tools/list_changed")
4458
4338
  });
4459
- LoggingLevelSchema = exports_v3.enum([
4339
+ LoggingLevelSchema = exports_external.enum([
4460
4340
  "debug",
4461
4341
  "info",
4462
4342
  "notice",
@@ -4467,94 +4347,94 @@ var init_types2 = __esm(() => {
4467
4347
  "emergency"
4468
4348
  ]);
4469
4349
  SetLevelRequestSchema = RequestSchema.extend({
4470
- method: exports_v3.literal("logging/setLevel"),
4350
+ method: exports_external.literal("logging/setLevel"),
4471
4351
  params: BaseRequestParamsSchema.extend({
4472
4352
  level: LoggingLevelSchema
4473
4353
  })
4474
4354
  });
4475
4355
  LoggingMessageNotificationSchema = NotificationSchema.extend({
4476
- method: exports_v3.literal("notifications/message"),
4356
+ method: exports_external.literal("notifications/message"),
4477
4357
  params: BaseNotificationParamsSchema.extend({
4478
4358
  level: LoggingLevelSchema,
4479
- logger: exports_v3.optional(exports_v3.string()),
4480
- data: exports_v3.unknown()
4359
+ logger: exports_external.optional(exports_external.string()),
4360
+ data: exports_external.unknown()
4481
4361
  })
4482
4362
  });
4483
- ModelHintSchema = exports_v3.object({
4484
- name: exports_v3.string().optional()
4363
+ ModelHintSchema = exports_external.object({
4364
+ name: exports_external.string().optional()
4485
4365
  }).passthrough();
4486
- ModelPreferencesSchema = exports_v3.object({
4487
- hints: exports_v3.optional(exports_v3.array(ModelHintSchema)),
4488
- costPriority: exports_v3.optional(exports_v3.number().min(0).max(1)),
4489
- speedPriority: exports_v3.optional(exports_v3.number().min(0).max(1)),
4490
- intelligencePriority: exports_v3.optional(exports_v3.number().min(0).max(1))
4366
+ ModelPreferencesSchema = exports_external.object({
4367
+ hints: exports_external.optional(exports_external.array(ModelHintSchema)),
4368
+ costPriority: exports_external.optional(exports_external.number().min(0).max(1)),
4369
+ speedPriority: exports_external.optional(exports_external.number().min(0).max(1)),
4370
+ intelligencePriority: exports_external.optional(exports_external.number().min(0).max(1))
4491
4371
  }).passthrough();
4492
- SamplingMessageSchema = exports_v3.object({
4493
- role: exports_v3.enum(["user", "assistant"]),
4494
- content: exports_v3.union([TextContentSchema, ImageContentSchema, AudioContentSchema])
4372
+ SamplingMessageSchema = exports_external.object({
4373
+ role: exports_external.enum(["user", "assistant"]),
4374
+ content: exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema])
4495
4375
  }).passthrough();
4496
4376
  CreateMessageRequestSchema = RequestSchema.extend({
4497
- method: exports_v3.literal("sampling/createMessage"),
4377
+ method: exports_external.literal("sampling/createMessage"),
4498
4378
  params: BaseRequestParamsSchema.extend({
4499
- messages: exports_v3.array(SamplingMessageSchema),
4500
- systemPrompt: exports_v3.optional(exports_v3.string()),
4501
- includeContext: exports_v3.optional(exports_v3.enum(["none", "thisServer", "allServers"])),
4502
- temperature: exports_v3.optional(exports_v3.number()),
4503
- maxTokens: exports_v3.number().int(),
4504
- stopSequences: exports_v3.optional(exports_v3.array(exports_v3.string())),
4505
- metadata: exports_v3.optional(exports_v3.object({}).passthrough()),
4506
- modelPreferences: exports_v3.optional(ModelPreferencesSchema)
4379
+ messages: exports_external.array(SamplingMessageSchema),
4380
+ systemPrompt: exports_external.optional(exports_external.string()),
4381
+ includeContext: exports_external.optional(exports_external.enum(["none", "thisServer", "allServers"])),
4382
+ temperature: exports_external.optional(exports_external.number()),
4383
+ maxTokens: exports_external.number().int(),
4384
+ stopSequences: exports_external.optional(exports_external.array(exports_external.string())),
4385
+ metadata: exports_external.optional(exports_external.object({}).passthrough()),
4386
+ modelPreferences: exports_external.optional(ModelPreferencesSchema)
4507
4387
  })
4508
4388
  });
4509
4389
  CreateMessageResultSchema = ResultSchema.extend({
4510
- model: exports_v3.string(),
4511
- stopReason: exports_v3.optional(exports_v3.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_v3.string())),
4512
- role: exports_v3.enum(["user", "assistant"]),
4513
- content: exports_v3.discriminatedUnion("type", [
4390
+ model: exports_external.string(),
4391
+ stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
4392
+ role: exports_external.enum(["user", "assistant"]),
4393
+ content: exports_external.discriminatedUnion("type", [
4514
4394
  TextContentSchema,
4515
4395
  ImageContentSchema,
4516
4396
  AudioContentSchema
4517
4397
  ])
4518
4398
  });
4519
- ResourceReferenceSchema = exports_v3.object({
4520
- type: exports_v3.literal("ref/resource"),
4521
- uri: exports_v3.string()
4399
+ ResourceReferenceSchema = exports_external.object({
4400
+ type: exports_external.literal("ref/resource"),
4401
+ uri: exports_external.string()
4522
4402
  }).passthrough();
4523
- PromptReferenceSchema = exports_v3.object({
4524
- type: exports_v3.literal("ref/prompt"),
4525
- name: exports_v3.string()
4403
+ PromptReferenceSchema = exports_external.object({
4404
+ type: exports_external.literal("ref/prompt"),
4405
+ name: exports_external.string()
4526
4406
  }).passthrough();
4527
4407
  CompleteRequestSchema = RequestSchema.extend({
4528
- method: exports_v3.literal("completion/complete"),
4408
+ method: exports_external.literal("completion/complete"),
4529
4409
  params: BaseRequestParamsSchema.extend({
4530
- ref: exports_v3.union([PromptReferenceSchema, ResourceReferenceSchema]),
4531
- argument: exports_v3.object({
4532
- name: exports_v3.string(),
4533
- value: exports_v3.string()
4410
+ ref: exports_external.union([PromptReferenceSchema, ResourceReferenceSchema]),
4411
+ argument: exports_external.object({
4412
+ name: exports_external.string(),
4413
+ value: exports_external.string()
4534
4414
  }).passthrough()
4535
4415
  })
4536
4416
  });
4537
4417
  CompleteResultSchema = ResultSchema.extend({
4538
- completion: exports_v3.object({
4539
- values: exports_v3.array(exports_v3.string()).max(100),
4540
- total: exports_v3.optional(exports_v3.number().int()),
4541
- hasMore: exports_v3.optional(exports_v3.boolean())
4418
+ completion: exports_external.object({
4419
+ values: exports_external.array(exports_external.string()).max(100),
4420
+ total: exports_external.optional(exports_external.number().int()),
4421
+ hasMore: exports_external.optional(exports_external.boolean())
4542
4422
  }).passthrough()
4543
4423
  });
4544
- RootSchema = exports_v3.object({
4545
- uri: exports_v3.string().startsWith("file://"),
4546
- name: exports_v3.optional(exports_v3.string())
4424
+ RootSchema = exports_external.object({
4425
+ uri: exports_external.string().startsWith("file://"),
4426
+ name: exports_external.optional(exports_external.string())
4547
4427
  }).passthrough();
4548
4428
  ListRootsRequestSchema = RequestSchema.extend({
4549
- method: exports_v3.literal("roots/list")
4429
+ method: exports_external.literal("roots/list")
4550
4430
  });
4551
4431
  ListRootsResultSchema = ResultSchema.extend({
4552
- roots: exports_v3.array(RootSchema)
4432
+ roots: exports_external.array(RootSchema)
4553
4433
  });
4554
4434
  RootsListChangedNotificationSchema = NotificationSchema.extend({
4555
- method: exports_v3.literal("notifications/roots/list_changed")
4435
+ method: exports_external.literal("notifications/roots/list_changed")
4556
4436
  });
4557
- ClientRequestSchema = exports_v3.union([
4437
+ ClientRequestSchema = exports_external.union([
4558
4438
  PingRequestSchema,
4559
4439
  InitializeRequestSchema,
4560
4440
  CompleteRequestSchema,
@@ -4569,23 +4449,23 @@ var init_types2 = __esm(() => {
4569
4449
  CallToolRequestSchema,
4570
4450
  ListToolsRequestSchema
4571
4451
  ]);
4572
- ClientNotificationSchema = exports_v3.union([
4452
+ ClientNotificationSchema = exports_external.union([
4573
4453
  CancelledNotificationSchema,
4574
4454
  ProgressNotificationSchema,
4575
4455
  InitializedNotificationSchema,
4576
4456
  RootsListChangedNotificationSchema
4577
4457
  ]);
4578
- ClientResultSchema = exports_v3.union([
4458
+ ClientResultSchema = exports_external.union([
4579
4459
  EmptyResultSchema,
4580
4460
  CreateMessageResultSchema,
4581
4461
  ListRootsResultSchema
4582
4462
  ]);
4583
- ServerRequestSchema = exports_v3.union([
4463
+ ServerRequestSchema = exports_external.union([
4584
4464
  PingRequestSchema,
4585
4465
  CreateMessageRequestSchema,
4586
4466
  ListRootsRequestSchema
4587
4467
  ]);
4588
- ServerNotificationSchema = exports_v3.union([
4468
+ ServerNotificationSchema = exports_external.union([
4589
4469
  CancelledNotificationSchema,
4590
4470
  ProgressNotificationSchema,
4591
4471
  LoggingMessageNotificationSchema,
@@ -4594,7 +4474,7 @@ var init_types2 = __esm(() => {
4594
4474
  ToolListChangedNotificationSchema,
4595
4475
  PromptListChangedNotificationSchema
4596
4476
  ]);
4597
- ServerResultSchema = exports_v3.union([
4477
+ ServerResultSchema = exports_external.union([
4598
4478
  EmptyResultSchema,
4599
4479
  InitializeResultSchema,
4600
4480
  CompleteResultSchema,
@@ -34140,7 +34020,7 @@ class McpServer {
34140
34020
  const cb = rest[0];
34141
34021
  this._registeredTools[name] = {
34142
34022
  description,
34143
- inputSchema: paramsSchema === undefined ? undefined : exports_v3.object(paramsSchema),
34023
+ inputSchema: paramsSchema === undefined ? undefined : exports_external.object(paramsSchema),
34144
34024
  callback: cb
34145
34025
  };
34146
34026
  this.setToolRequestHandlers();
@@ -34160,7 +34040,7 @@ class McpServer {
34160
34040
  const cb = rest[0];
34161
34041
  this._registeredPrompts[name] = {
34162
34042
  description,
34163
- argsSchema: argsSchema === undefined ? undefined : exports_v3.object(argsSchema),
34043
+ argsSchema: argsSchema === undefined ? undefined : exports_external.object(argsSchema),
34164
34044
  callback: cb
34165
34045
  };
34166
34046
  this.setPromptRequestHandlers();
@@ -34384,9 +34264,9 @@ var init_config = __esm(() => {
34384
34264
  SDK_METADATA = {
34385
34265
  language: "typescript",
34386
34266
  openapiDocVersion: "0.0.1",
34387
- sdkVersion: "0.5.41",
34388
- genVersion: "2.648.7",
34389
- userAgent: "speakeasy-sdk/typescript 0.5.41 2.648.7 0.0.1 @compass-labs/api-sdk"
34267
+ sdkVersion: "0.5.43",
34268
+ genVersion: "2.656.3",
34269
+ userAgent: "speakeasy-sdk/typescript 0.5.43 2.656.3 0.0.1 @compass-labs/api-sdk"
34390
34270
  };
34391
34271
  });
34392
34272
 
@@ -38738,12 +38618,24 @@ var init_feeenum = __esm(() => {
38738
38618
  });
38739
38619
 
38740
38620
  // src/models/components/uniswapbuyexactlyparams.ts
38741
- var UniswapBuyExactlyParamsAmount$inboundSchema, UniswapBuyExactlyParamsAmount$outboundSchema, UniswapBuyExactlyParamsAmount$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
38621
+ var UniswapBuyExactlyParamsTokenIn$inboundSchema, UniswapBuyExactlyParamsTokenIn$outboundSchema, UniswapBuyExactlyParamsTokenIn$, UniswapBuyExactlyParamsTokenOut$inboundSchema, UniswapBuyExactlyParamsTokenOut$outboundSchema, UniswapBuyExactlyParamsTokenOut$, UniswapBuyExactlyParamsAmount$inboundSchema, UniswapBuyExactlyParamsAmount$outboundSchema, UniswapBuyExactlyParamsAmount$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
38742
38622
  var init_uniswapbuyexactlyparams = __esm(() => {
38743
38623
  init_zod();
38744
38624
  init_primitives();
38745
38625
  init_feeenum();
38746
38626
  init_tokenenum();
38627
+ UniswapBuyExactlyParamsTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
38628
+ UniswapBuyExactlyParamsTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
38629
+ ((UniswapBuyExactlyParamsTokenIn$) => {
38630
+ UniswapBuyExactlyParamsTokenIn$.inboundSchema = UniswapBuyExactlyParamsTokenIn$inboundSchema;
38631
+ UniswapBuyExactlyParamsTokenIn$.outboundSchema = UniswapBuyExactlyParamsTokenIn$outboundSchema;
38632
+ })(UniswapBuyExactlyParamsTokenIn$ ||= {});
38633
+ UniswapBuyExactlyParamsTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
38634
+ UniswapBuyExactlyParamsTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
38635
+ ((UniswapBuyExactlyParamsTokenOut$) => {
38636
+ UniswapBuyExactlyParamsTokenOut$.inboundSchema = UniswapBuyExactlyParamsTokenOut$inboundSchema;
38637
+ UniswapBuyExactlyParamsTokenOut$.outboundSchema = UniswapBuyExactlyParamsTokenOut$outboundSchema;
38638
+ })(UniswapBuyExactlyParamsTokenOut$ ||= {});
38747
38639
  UniswapBuyExactlyParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
38748
38640
  UniswapBuyExactlyParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
38749
38641
  ((UniswapBuyExactlyParamsAmount$) => {
@@ -38752,8 +38644,8 @@ var init_uniswapbuyexactlyparams = __esm(() => {
38752
38644
  })(UniswapBuyExactlyParamsAmount$ ||= {});
38753
38645
  UniswapBuyExactlyParams$inboundSchema = objectType({
38754
38646
  action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
38755
- token_in: TokenEnum$inboundSchema,
38756
- token_out: TokenEnum$inboundSchema,
38647
+ token_in: unionType([TokenEnum$inboundSchema, stringType()]),
38648
+ token_out: unionType([TokenEnum$inboundSchema, stringType()]),
38757
38649
  fee: FeeEnum$inboundSchema,
38758
38650
  amount: unionType([numberType(), stringType()]),
38759
38651
  max_slippage_percent: numberType(),
@@ -38769,8 +38661,8 @@ var init_uniswapbuyexactlyparams = __esm(() => {
38769
38661
  });
38770
38662
  UniswapBuyExactlyParams$outboundSchema = objectType({
38771
38663
  actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
38772
- tokenIn: TokenEnum$outboundSchema,
38773
- tokenOut: TokenEnum$outboundSchema,
38664
+ tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
38665
+ tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
38774
38666
  fee: FeeEnum$outboundSchema,
38775
38667
  amount: unionType([numberType(), stringType()]),
38776
38668
  maxSlippagePercent: numberType(),
@@ -39892,6 +39784,55 @@ var init_compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate = __esm(()
39892
39784
  })(CompassApiBackendModelsMorphoReadResponseGetVaultsVaultState$ ||= {});
39893
39785
  });
39894
39786
 
39787
+ // src/models/components/compassapibackendmodelspendlereadresponsemarketuserposition.ts
39788
+ var CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema, CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema, CompassApiBackendModelsPendleReadResponseMarketUserPosition$;
39789
+ var init_compassapibackendmodelspendlereadresponsemarketuserposition = __esm(() => {
39790
+ init_zod();
39791
+ init_primitives();
39792
+ CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema = objectType({
39793
+ claimable_yield: stringType(),
39794
+ sy_balance: stringType(),
39795
+ pt_balance: stringType(),
39796
+ yt_balance: stringType(),
39797
+ lp_balance: stringType(),
39798
+ underlying_token_balance: stringType(),
39799
+ accounting_asset_balance: nullableType(stringType()).optional()
39800
+ }).transform((v2) => {
39801
+ return remap(v2, {
39802
+ claimable_yield: "claimableYield",
39803
+ sy_balance: "syBalance",
39804
+ pt_balance: "ptBalance",
39805
+ yt_balance: "ytBalance",
39806
+ lp_balance: "lpBalance",
39807
+ underlying_token_balance: "underlyingTokenBalance",
39808
+ accounting_asset_balance: "accountingAssetBalance"
39809
+ });
39810
+ });
39811
+ CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema = objectType({
39812
+ claimableYield: stringType(),
39813
+ syBalance: stringType(),
39814
+ ptBalance: stringType(),
39815
+ ytBalance: stringType(),
39816
+ lpBalance: stringType(),
39817
+ underlyingTokenBalance: stringType(),
39818
+ accountingAssetBalance: nullableType(stringType()).optional()
39819
+ }).transform((v2) => {
39820
+ return remap(v2, {
39821
+ claimableYield: "claimable_yield",
39822
+ syBalance: "sy_balance",
39823
+ ptBalance: "pt_balance",
39824
+ ytBalance: "yt_balance",
39825
+ lpBalance: "lp_balance",
39826
+ underlyingTokenBalance: "underlying_token_balance",
39827
+ accountingAssetBalance: "accounting_asset_balance"
39828
+ });
39829
+ });
39830
+ ((CompassApiBackendModelsPendleReadResponseMarketUserPosition$) => {
39831
+ CompassApiBackendModelsPendleReadResponseMarketUserPosition$.inboundSchema = CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema;
39832
+ CompassApiBackendModelsPendleReadResponseMarketUserPosition$.outboundSchema = CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema;
39833
+ })(CompassApiBackendModelsPendleReadResponseMarketUserPosition$ ||= {});
39834
+ });
39835
+
39895
39836
  // src/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.ts
39896
39837
  var CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema, CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema, CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$;
39897
39838
  var init_compassapibackendmodelspendlereadresponsepositionstokenbalance = __esm(() => {
@@ -39932,6 +39873,33 @@ var init_compassapibackendmodelsvaultsreadresponsevaultasset = __esm(() => {
39932
39873
  })(CompassApiBackendModelsVaultsReadResponseVaultAsset$ ||= {});
39933
39874
  });
39934
39875
 
39876
+ // src/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.ts
39877
+ var CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema, CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema, CompassApiBackendModelsVaultsReadResponseVaultUserPosition$;
39878
+ var init_compassapibackendmodelsvaultsreadresponsevaultuserposition = __esm(() => {
39879
+ init_zod();
39880
+ init_primitives();
39881
+ CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema = objectType({
39882
+ shares: numberType().int(),
39883
+ token_amount: stringType()
39884
+ }).transform((v2) => {
39885
+ return remap(v2, {
39886
+ token_amount: "tokenAmount"
39887
+ });
39888
+ });
39889
+ CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema = objectType({
39890
+ shares: numberType().int(),
39891
+ tokenAmount: stringType()
39892
+ }).transform((v2) => {
39893
+ return remap(v2, {
39894
+ tokenAmount: "token_amount"
39895
+ });
39896
+ });
39897
+ ((CompassApiBackendModelsVaultsReadResponseVaultUserPosition$) => {
39898
+ CompassApiBackendModelsVaultsReadResponseVaultUserPosition$.inboundSchema = CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema;
39899
+ CompassApiBackendModelsVaultsReadResponseVaultUserPosition$.outboundSchema = CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema;
39900
+ })(CompassApiBackendModelsVaultsReadResponseVaultUserPosition$ ||= {});
39901
+ });
39902
+
39935
39903
  // src/models/components/movement10percent.ts
39936
39904
  var Movement10Percent$inboundSchema, Movement10Percent$outboundSchema, Movement10Percent$;
39937
39905
  var init_movement10percent = __esm(() => {
@@ -41040,29 +41008,34 @@ var PendleGetMarketResponse$inboundSchema, PendleGetMarketResponse$outboundSchem
41040
41008
  var init_pendlegetmarketresponse = __esm(() => {
41041
41009
  init_zod();
41042
41010
  init_primitives();
41011
+ init_compassapibackendmodelspendlereadresponsemarketuserposition();
41043
41012
  init_markettokens();
41044
41013
  PendleGetMarketResponse$inboundSchema = objectType({
41045
41014
  market_address: stringType(),
41046
41015
  implied_apy: stringType(),
41047
41016
  maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
41048
- tokens: MarketTokens$inboundSchema
41017
+ tokens: MarketTokens$inboundSchema,
41018
+ user_position: nullableType(CompassApiBackendModelsPendleReadResponseMarketUserPosition$inboundSchema).optional()
41049
41019
  }).transform((v2) => {
41050
41020
  return remap(v2, {
41051
41021
  market_address: "marketAddress",
41052
41022
  implied_apy: "impliedApy",
41053
- maturity_date: "maturityDate"
41023
+ maturity_date: "maturityDate",
41024
+ user_position: "userPosition"
41054
41025
  });
41055
41026
  });
41056
41027
  PendleGetMarketResponse$outboundSchema = objectType({
41057
41028
  marketAddress: stringType(),
41058
41029
  impliedApy: stringType(),
41059
41030
  maturityDate: dateType().transform((v2) => v2.toISOString()),
41060
- tokens: MarketTokens$outboundSchema
41031
+ tokens: MarketTokens$outboundSchema,
41032
+ userPosition: nullableType(CompassApiBackendModelsPendleReadResponseMarketUserPosition$outboundSchema).optional()
41061
41033
  }).transform((v2) => {
41062
41034
  return remap(v2, {
41063
41035
  marketAddress: "market_address",
41064
41036
  impliedApy: "implied_apy",
41065
- maturityDate: "maturity_date"
41037
+ maturityDate: "maturity_date",
41038
+ userPosition: "user_position"
41066
41039
  });
41067
41040
  });
41068
41041
  ((PendleGetMarketResponse$) => {
@@ -41087,63 +41060,6 @@ var init_pendlegetquoteresponse = __esm(() => {
41087
41060
  })(PendleGetQuoteResponse$ ||= {});
41088
41061
  });
41089
41062
 
41090
- // src/models/components/pendlegetuserpositionresponse.ts
41091
- var PendleGetUserPositionResponse$inboundSchema, PendleGetUserPositionResponse$outboundSchema, PendleGetUserPositionResponse$;
41092
- var init_pendlegetuserpositionresponse = __esm(() => {
41093
- init_zod();
41094
- init_primitives();
41095
- PendleGetUserPositionResponse$inboundSchema = objectType({
41096
- claimable_yield: stringType(),
41097
- sy_balance: stringType(),
41098
- pt_balance: stringType(),
41099
- yt_balance: stringType(),
41100
- lp_balance: stringType(),
41101
- underlying_token_balance: stringType(),
41102
- underlying_token_name: stringType(),
41103
- underlying_token_symbol: stringType(),
41104
- maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
41105
- }).transform((v2) => {
41106
- return remap(v2, {
41107
- claimable_yield: "claimableYield",
41108
- sy_balance: "syBalance",
41109
- pt_balance: "ptBalance",
41110
- yt_balance: "ytBalance",
41111
- lp_balance: "lpBalance",
41112
- underlying_token_balance: "underlyingTokenBalance",
41113
- underlying_token_name: "underlyingTokenName",
41114
- underlying_token_symbol: "underlyingTokenSymbol",
41115
- maturity_date: "maturityDate"
41116
- });
41117
- });
41118
- PendleGetUserPositionResponse$outboundSchema = objectType({
41119
- claimableYield: stringType(),
41120
- syBalance: stringType(),
41121
- ptBalance: stringType(),
41122
- ytBalance: stringType(),
41123
- lpBalance: stringType(),
41124
- underlyingTokenBalance: stringType(),
41125
- underlyingTokenName: stringType(),
41126
- underlyingTokenSymbol: stringType(),
41127
- maturityDate: dateType().transform((v2) => v2.toISOString())
41128
- }).transform((v2) => {
41129
- return remap(v2, {
41130
- claimableYield: "claimable_yield",
41131
- syBalance: "sy_balance",
41132
- ptBalance: "pt_balance",
41133
- ytBalance: "yt_balance",
41134
- lpBalance: "lp_balance",
41135
- underlyingTokenBalance: "underlying_token_balance",
41136
- underlyingTokenName: "underlying_token_name",
41137
- underlyingTokenSymbol: "underlying_token_symbol",
41138
- maturityDate: "maturity_date"
41139
- });
41140
- });
41141
- ((PendleGetUserPositionResponse$) => {
41142
- PendleGetUserPositionResponse$.inboundSchema = PendleGetUserPositionResponse$inboundSchema;
41143
- PendleGetUserPositionResponse$.outboundSchema = PendleGetUserPositionResponse$outboundSchema;
41144
- })(PendleGetUserPositionResponse$ ||= {});
41145
- });
41146
-
41147
41063
  // src/models/components/pendlemarket.ts
41148
41064
  var PendleMarket$inboundSchema, PendleMarket$outboundSchema, PendleMarket$;
41149
41065
  var init_pendlemarket = __esm(() => {
@@ -41953,13 +41869,25 @@ var init_txresponse = __esm(() => {
41953
41869
  });
41954
41870
 
41955
41871
  // src/models/components/uniswapbuyexactlyrequest.ts
41956
- var UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
41872
+ var UniswapBuyExactlyRequestTokenIn$inboundSchema, UniswapBuyExactlyRequestTokenIn$outboundSchema, UniswapBuyExactlyRequestTokenIn$, UniswapBuyExactlyRequestTokenOut$inboundSchema, UniswapBuyExactlyRequestTokenOut$outboundSchema, UniswapBuyExactlyRequestTokenOut$, UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
41957
41873
  var init_uniswapbuyexactlyrequest = __esm(() => {
41958
41874
  init_zod();
41959
41875
  init_primitives();
41960
41876
  init_chain();
41961
41877
  init_feeenum();
41962
41878
  init_tokenenum();
41879
+ UniswapBuyExactlyRequestTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
41880
+ UniswapBuyExactlyRequestTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
41881
+ ((UniswapBuyExactlyRequestTokenIn$) => {
41882
+ UniswapBuyExactlyRequestTokenIn$.inboundSchema = UniswapBuyExactlyRequestTokenIn$inboundSchema;
41883
+ UniswapBuyExactlyRequestTokenIn$.outboundSchema = UniswapBuyExactlyRequestTokenIn$outboundSchema;
41884
+ })(UniswapBuyExactlyRequestTokenIn$ ||= {});
41885
+ UniswapBuyExactlyRequestTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
41886
+ UniswapBuyExactlyRequestTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
41887
+ ((UniswapBuyExactlyRequestTokenOut$) => {
41888
+ UniswapBuyExactlyRequestTokenOut$.inboundSchema = UniswapBuyExactlyRequestTokenOut$inboundSchema;
41889
+ UniswapBuyExactlyRequestTokenOut$.outboundSchema = UniswapBuyExactlyRequestTokenOut$outboundSchema;
41890
+ })(UniswapBuyExactlyRequestTokenOut$ ||= {});
41963
41891
  UniswapBuyExactlyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
41964
41892
  UniswapBuyExactlyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
41965
41893
  ((UniswapBuyExactlyRequestAmount$) => {
@@ -41968,8 +41896,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
41968
41896
  })(UniswapBuyExactlyRequestAmount$ ||= {});
41969
41897
  UniswapBuyExactlyRequest$inboundSchema = objectType({
41970
41898
  action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
41971
- token_in: TokenEnum$inboundSchema,
41972
- token_out: TokenEnum$inboundSchema,
41899
+ token_in: unionType([TokenEnum$inboundSchema, stringType()]),
41900
+ token_out: unionType([TokenEnum$inboundSchema, stringType()]),
41973
41901
  fee: FeeEnum$inboundSchema,
41974
41902
  amount: unionType([numberType(), stringType()]),
41975
41903
  max_slippage_percent: numberType(),
@@ -41987,8 +41915,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
41987
41915
  });
41988
41916
  UniswapBuyExactlyRequest$outboundSchema = objectType({
41989
41917
  actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
41990
- tokenIn: TokenEnum$outboundSchema,
41991
- tokenOut: TokenEnum$outboundSchema,
41918
+ tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
41919
+ tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
41992
41920
  fee: FeeEnum$outboundSchema,
41993
41921
  amount: unionType([numberType(), stringType()]),
41994
41922
  maxSlippagePercent: numberType(),
@@ -42503,33 +42431,6 @@ var init_unwrapwethrequest = __esm(() => {
42503
42431
  })(UnwrapWethRequest$ ||= {});
42504
42432
  });
42505
42433
 
42506
- // src/models/components/userposition.ts
42507
- var UserPosition$inboundSchema, UserPosition$outboundSchema, UserPosition$;
42508
- var init_userposition = __esm(() => {
42509
- init_zod();
42510
- init_primitives();
42511
- UserPosition$inboundSchema = objectType({
42512
- shares: numberType().int(),
42513
- token_amount: stringType()
42514
- }).transform((v2) => {
42515
- return remap(v2, {
42516
- token_amount: "tokenAmount"
42517
- });
42518
- });
42519
- UserPosition$outboundSchema = objectType({
42520
- shares: numberType().int(),
42521
- tokenAmount: stringType()
42522
- }).transform((v2) => {
42523
- return remap(v2, {
42524
- tokenAmount: "token_amount"
42525
- });
42526
- });
42527
- ((UserPosition$) => {
42528
- UserPosition$.inboundSchema = UserPosition$inboundSchema;
42529
- UserPosition$.outboundSchema = UserPosition$outboundSchema;
42530
- })(UserPosition$ ||= {});
42531
- });
42532
-
42533
42434
  // src/models/components/validationerror.ts
42534
42435
  var Loc$inboundSchema, Loc$outboundSchema, Loc$, ValidationError$inboundSchema, ValidationError$outboundSchema, ValidationError$;
42535
42436
  var init_validationerror = __esm(() => {
@@ -42607,7 +42508,7 @@ var init_vaultgetvaultresponse = __esm(() => {
42607
42508
  init_primitives();
42608
42509
  init_apy();
42609
42510
  init_compassapibackendmodelsvaultsreadresponsevaultasset();
42610
- init_userposition();
42511
+ init_compassapibackendmodelsvaultsreadresponsevaultuserposition();
42611
42512
  VaultGetVaultResponse$inboundSchema = objectType({
42612
42513
  name: stringType(),
42613
42514
  symbol: stringType(),
@@ -42617,7 +42518,7 @@ var init_vaultgetvaultresponse = __esm(() => {
42617
42518
  share_price: stringType(),
42618
42519
  asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$inboundSchema,
42619
42520
  apy: Apy$inboundSchema,
42620
- user_position: nullableType(UserPosition$inboundSchema).optional()
42521
+ user_position: nullableType(CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema).optional()
42621
42522
  }).transform((v2) => {
42622
42523
  return remap(v2, {
42623
42524
  total_assets: "totalAssets",
@@ -42635,7 +42536,7 @@ var init_vaultgetvaultresponse = __esm(() => {
42635
42536
  sharePrice: stringType(),
42636
42537
  asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$outboundSchema,
42637
42538
  apy: Apy$outboundSchema,
42638
- userPosition: nullableType(UserPosition$outboundSchema).optional()
42539
+ userPosition: nullableType(CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema).optional()
42639
42540
  }).transform((v2) => {
42640
42541
  return remap(v2, {
42641
42542
  totalAssets: "total_assets",
@@ -42778,8 +42679,10 @@ var init_components = __esm(() => {
42778
42679
  init_compassapibackendmodelsmorphoreadresponsegetmarketsmarketstate();
42779
42680
  init_compassapibackendmodelsmorphoreadresponsegetvaultsasset();
42780
42681
  init_compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate();
42682
+ init_compassapibackendmodelspendlereadresponsemarketuserposition();
42781
42683
  init_compassapibackendmodelspendlereadresponsepositionstokenbalance();
42782
42684
  init_compassapibackendmodelsvaultsreadresponsevaultasset();
42685
+ init_compassapibackendmodelsvaultsreadresponsevaultuserposition();
42783
42686
  init_details();
42784
42687
  init_ensnameinforesponse();
42785
42688
  init_erc20data();
@@ -42823,7 +42726,6 @@ var init_components = __esm(() => {
42823
42726
  init_pendlebuyytrequest();
42824
42727
  init_pendlegetmarketresponse();
42825
42728
  init_pendlegetquoteresponse();
42826
- init_pendlegetuserpositionresponse();
42827
42729
  init_pendlelistmarketsresponse();
42828
42730
  init_pendlelistuserpositionsresponse();
42829
42731
  init_pendlemarket();
@@ -42887,7 +42789,6 @@ var init_components = __esm(() => {
42887
42789
  init_usageascollateral();
42888
42790
  init_useroperation();
42889
42791
  init_useroperationresponse();
42890
- init_userposition();
42891
42792
  init_userstate();
42892
42793
  init_validationerror();
42893
42794
  init_vault();
@@ -44245,19 +44146,23 @@ var init_pendlemarket2 = __esm(() => {
44245
44146
  PendleMarketRequest$inboundSchema = objectType({
44246
44147
  chain: PendleMarketChain$inboundSchema.default("arbitrum:mainnet"),
44247
44148
  block: nullableType(numberType().int()).optional(),
44248
- market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
44149
+ market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"),
44150
+ user_address: nullableType(stringType()).optional()
44249
44151
  }).transform((v2) => {
44250
44152
  return remap(v2, {
44251
- market_address: "marketAddress"
44153
+ market_address: "marketAddress",
44154
+ user_address: "userAddress"
44252
44155
  });
44253
44156
  });
44254
44157
  PendleMarketRequest$outboundSchema = objectType({
44255
44158
  chain: PendleMarketChain$outboundSchema.default("arbitrum:mainnet"),
44256
44159
  block: nullableType(numberType().int()).optional(),
44257
- marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
44160
+ marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"),
44161
+ userAddress: nullableType(stringType()).optional()
44258
44162
  }).transform((v2) => {
44259
44163
  return remap(v2, {
44260
- marketAddress: "market_address"
44164
+ marketAddress: "market_address",
44165
+ userAddress: "user_address"
44261
44166
  });
44262
44167
  });
44263
44168
  ((PendleMarketRequest$) => {
@@ -44293,50 +44198,6 @@ var init_pendlemarkets = __esm(() => {
44293
44198
  })(PendleMarketsRequest$ ||= {});
44294
44199
  });
44295
44200
 
44296
- // src/models/operations/pendleposition.ts
44297
- var PendlePositionChain, PendlePositionChain$inboundSchema, PendlePositionChain$outboundSchema, PendlePositionChain$, PendlePositionRequest$inboundSchema, PendlePositionRequest$outboundSchema, PendlePositionRequest$;
44298
- var init_pendleposition = __esm(() => {
44299
- init_zod();
44300
- init_primitives();
44301
- PendlePositionChain = {
44302
- BaseMainnet: "base:mainnet",
44303
- EthereumMainnet: "ethereum:mainnet",
44304
- ArbitrumMainnet: "arbitrum:mainnet"
44305
- };
44306
- PendlePositionChain$inboundSchema = nativeEnumType(PendlePositionChain);
44307
- PendlePositionChain$outboundSchema = PendlePositionChain$inboundSchema;
44308
- ((PendlePositionChain$) => {
44309
- PendlePositionChain$.inboundSchema = PendlePositionChain$inboundSchema;
44310
- PendlePositionChain$.outboundSchema = PendlePositionChain$outboundSchema;
44311
- })(PendlePositionChain$ ||= {});
44312
- PendlePositionRequest$inboundSchema = objectType({
44313
- chain: PendlePositionChain$inboundSchema.default("arbitrum:mainnet"),
44314
- block: nullableType(numberType().int()).optional(),
44315
- user_address: stringType().default("0xB7954A07213413b2ec6Faa1360f56a498eACe10b"),
44316
- market_address: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
44317
- }).transform((v2) => {
44318
- return remap(v2, {
44319
- user_address: "userAddress",
44320
- market_address: "marketAddress"
44321
- });
44322
- });
44323
- PendlePositionRequest$outboundSchema = objectType({
44324
- chain: PendlePositionChain$outboundSchema.default("arbitrum:mainnet"),
44325
- block: nullableType(numberType().int()).optional(),
44326
- userAddress: stringType().default("0xB7954A07213413b2ec6Faa1360f56a498eACe10b"),
44327
- marketAddress: stringType().default("0x46d62a8dede1bf2d0de04f2ed863245cbba5e538")
44328
- }).transform((v2) => {
44329
- return remap(v2, {
44330
- userAddress: "user_address",
44331
- marketAddress: "market_address"
44332
- });
44333
- });
44334
- ((PendlePositionRequest$) => {
44335
- PendlePositionRequest$.inboundSchema = PendlePositionRequest$inboundSchema;
44336
- PendlePositionRequest$.outboundSchema = PendlePositionRequest$outboundSchema;
44337
- })(PendlePositionRequest$ ||= {});
44338
- });
44339
-
44340
44201
  // src/models/operations/pendlepositions.ts
44341
44202
  var PendlePositionsChain, PendlePositionsChain$inboundSchema, PendlePositionsChain$outboundSchema, PendlePositionsChain$, PendlePositionsRequest$inboundSchema, PendlePositionsRequest$outboundSchema, PendlePositionsRequest$;
44342
44203
  var init_pendlepositions = __esm(() => {
@@ -45318,7 +45179,6 @@ var init_operations = __esm(() => {
45318
45179
  init_morphovaults();
45319
45180
  init_pendlemarket2();
45320
45181
  init_pendlemarkets();
45321
- init_pendleposition();
45322
45182
  init_pendlepositions();
45323
45183
  init_pendlequote();
45324
45184
  init_skyposition();
@@ -49616,7 +49476,8 @@ async function $do39(client, request, options) {
49616
49476
  const query = encodeFormQuery({
49617
49477
  block: payload.block,
49618
49478
  chain: payload.chain,
49619
- market_address: payload.market_address
49479
+ market_address: payload.market_address,
49480
+ user_address: payload.user_address
49620
49481
  });
49621
49482
  const headers = new Headers(compactMap({
49622
49483
  Accept: "application/json"
@@ -49692,9 +49553,11 @@ var init_pendleMarket2 = __esm(() => {
49692
49553
  };
49693
49554
  tool$pendleMarket = {
49694
49555
  name: "pendle-market",
49695
- description: `Get Market Data
49556
+ description: `Get Market & User Position
49696
49557
 
49697
- Get the market's implied APY, maturity date and the associated token data.`,
49558
+ Get the market's implied APY, maturity date and the associated token data.
49559
+
49560
+ The user position is only included if 'user_address' parameter is included.`,
49698
49561
  args: args39,
49699
49562
  tool: async (client, args40, ctx) => {
49700
49563
  const [result, apiCall] = await pendleMarket(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -49817,121 +49680,11 @@ Get a list of active markets.`,
49817
49680
  };
49818
49681
  });
49819
49682
 
49820
- // src/funcs/pendlePosition.ts
49821
- function pendlePosition(client, request, options) {
49822
- return new APIPromise($do41(client, request, options));
49823
- }
49824
- async function $do41(client, request, options) {
49825
- const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
49826
- if (!parsed.ok) {
49827
- return [parsed, { status: "invalid" }];
49828
- }
49829
- const payload = parsed.value;
49830
- const body = null;
49831
- const path = pathToFunc("/v0/pendle/position")();
49832
- const query = encodeFormQuery({
49833
- block: payload.block,
49834
- chain: payload.chain,
49835
- market_address: payload.market_address,
49836
- user_address: payload.user_address
49837
- });
49838
- const headers = new Headers(compactMap({
49839
- Accept: "application/json"
49840
- }));
49841
- const secConfig = await extractSecurity(client._options.apiKeyAuth);
49842
- const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
49843
- const requestSecurity = resolveGlobalSecurity(securityInput);
49844
- const context = {
49845
- options: client._options,
49846
- baseURL: options?.serverURL ?? client._baseURL ?? "",
49847
- operationID: "pendle_position",
49848
- oAuth2Scopes: [],
49849
- resolvedSecurity: requestSecurity,
49850
- securitySource: client._options.apiKeyAuth,
49851
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
49852
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
49853
- };
49854
- const requestRes = client._createRequest(context, {
49855
- security: requestSecurity,
49856
- method: "GET",
49857
- baseURL: options?.serverURL,
49858
- path,
49859
- headers,
49860
- query,
49861
- body,
49862
- userAgent: client._options.userAgent,
49863
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
49864
- }, options);
49865
- if (!requestRes.ok) {
49866
- return [requestRes, { status: "invalid" }];
49867
- }
49868
- const req = requestRes.value;
49869
- const doResult = await client._do(req, {
49870
- context,
49871
- errorCodes: ["422", "4XX", "5XX"],
49872
- retryConfig: context.retryConfig,
49873
- retryCodes: context.retryCodes
49874
- });
49875
- if (!doResult.ok) {
49876
- return [doResult, { status: "request-error", request: req }];
49877
- }
49878
- const response = doResult.value;
49879
- const responseFields = {
49880
- HttpMeta: { Response: response, Request: req }
49881
- };
49882
- const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
49883
- if (!result.ok) {
49884
- return [result, { status: "complete", request: req, response }];
49885
- }
49886
- return [result, { status: "complete", request: req, response }];
49887
- }
49888
- var init_pendlePosition = __esm(() => {
49889
- init_encodings();
49890
- init_matchers();
49891
- init_primitives();
49892
- init_schemas();
49893
- init_security();
49894
- init_url();
49895
- init_components();
49896
- init_errors2();
49897
- init_operations();
49898
- init_async();
49899
- });
49900
-
49901
- // src/mcp-server/tools/pendlePosition.ts
49902
- var args41, tool$pendlePosition;
49903
- var init_pendlePosition2 = __esm(() => {
49904
- init_pendlePosition();
49905
- init_operations();
49906
- init_tools();
49907
- args41 = {
49908
- request: PendlePositionRequest$inboundSchema
49909
- };
49910
- tool$pendlePosition = {
49911
- name: "pendle-position",
49912
- description: `Check User's Market Position
49913
-
49914
- Check the SY, PT, YT and Underlying Token positions for a given market.`,
49915
- args: args41,
49916
- tool: async (client, args42, ctx) => {
49917
- const [result, apiCall] = await pendlePosition(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49918
- if (!result.ok) {
49919
- return {
49920
- content: [{ type: "text", text: result.error.message }],
49921
- isError: true
49922
- };
49923
- }
49924
- const value = result.value;
49925
- return formatResult(value, apiCall);
49926
- }
49927
- };
49928
- });
49929
-
49930
49683
  // src/funcs/pendlePositions.ts
49931
49684
  function pendlePositions(client, request, options) {
49932
- return new APIPromise($do42(client, request, options));
49685
+ return new APIPromise($do41(client, request, options));
49933
49686
  }
49934
- async function $do42(client, request, options) {
49687
+ async function $do41(client, request, options) {
49935
49688
  const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
49936
49689
  if (!parsed.ok) {
49937
49690
  return [parsed, { status: "invalid" }];
@@ -50007,12 +49760,12 @@ var init_pendlePositions = __esm(() => {
50007
49760
  });
50008
49761
 
50009
49762
  // src/mcp-server/tools/pendlePositions.ts
50010
- var args42, tool$pendlePositions;
49763
+ var args41, tool$pendlePositions;
50011
49764
  var init_pendlePositions2 = __esm(() => {
50012
49765
  init_pendlePositions();
50013
49766
  init_operations();
50014
49767
  init_tools();
50015
- args42 = {
49768
+ args41 = {
50016
49769
  request: PendlePositionsRequest$inboundSchema
50017
49770
  };
50018
49771
  tool$pendlePositions = {
@@ -50020,9 +49773,9 @@ var init_pendlePositions2 = __esm(() => {
50020
49773
  description: `List User's Market Positions
50021
49774
 
50022
49775
  List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
50023
- args: args42,
50024
- tool: async (client, args43, ctx) => {
50025
- const [result, apiCall] = await pendlePositions(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49776
+ args: args41,
49777
+ tool: async (client, args42, ctx) => {
49778
+ const [result, apiCall] = await pendlePositions(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50026
49779
  if (!result.ok) {
50027
49780
  return {
50028
49781
  content: [{ type: "text", text: result.error.message }],
@@ -50037,9 +49790,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
50037
49790
 
50038
49791
  // src/funcs/pendleQuote.ts
50039
49792
  function pendleQuote(client, request, options) {
50040
- return new APIPromise($do43(client, request, options));
49793
+ return new APIPromise($do42(client, request, options));
50041
49794
  }
50042
- async function $do43(client, request, options) {
49795
+ async function $do42(client, request, options) {
50043
49796
  const parsed = safeParse(request, (value) => PendleQuoteRequest$outboundSchema.parse(value), "Input validation failed");
50044
49797
  if (!parsed.ok) {
50045
49798
  return [parsed, { status: "invalid" }];
@@ -50119,12 +49872,12 @@ var init_pendleQuote = __esm(() => {
50119
49872
  });
50120
49873
 
50121
49874
  // src/mcp-server/tools/pendleQuote.ts
50122
- var args43, tool$pendleQuote;
49875
+ var args42, tool$pendleQuote;
50123
49876
  var init_pendleQuote2 = __esm(() => {
50124
49877
  init_pendleQuote();
50125
49878
  init_operations();
50126
49879
  init_tools();
50127
- args43 = {
49880
+ args42 = {
50128
49881
  request: PendleQuoteRequest$inboundSchema
50129
49882
  };
50130
49883
  tool$pendleQuote = {
@@ -50137,9 +49890,9 @@ Provider Token (LP) on Pendle.
50137
49890
  For \`BUY\`, \`amount\` is the quantity of the Underlying Token to spend, and the quote returns the amount of \`token_type\` received.
50138
49891
 
50139
49892
  For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quote returns the amount of Underlying Token received.`,
50140
- args: args43,
50141
- tool: async (client, args44, ctx) => {
50142
- const [result, apiCall] = await pendleQuote(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49893
+ args: args42,
49894
+ tool: async (client, args43, ctx) => {
49895
+ const [result, apiCall] = await pendleQuote(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50143
49896
  if (!result.ok) {
50144
49897
  return {
50145
49898
  content: [{ type: "text", text: result.error.message }],
@@ -50154,9 +49907,9 @@ For \`SELL\`, \`amount\` is the quantity of \`token_type\` to sell, and the quot
50154
49907
 
50155
49908
  // src/funcs/pendleRedeemYield.ts
50156
49909
  function pendleRedeemYield(client, request, options) {
50157
- return new APIPromise($do44(client, request, options));
49910
+ return new APIPromise($do43(client, request, options));
50158
49911
  }
50159
- async function $do44(client, request, options) {
49912
+ async function $do43(client, request, options) {
50160
49913
  const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
50161
49914
  if (!parsed.ok) {
50162
49915
  return [parsed, { status: "invalid" }];
@@ -50227,12 +49980,12 @@ var init_pendleRedeemYield = __esm(() => {
50227
49980
  });
50228
49981
 
50229
49982
  // src/mcp-server/tools/pendleRedeemYield.ts
50230
- var args44, tool$pendleRedeemYield;
49983
+ var args43, tool$pendleRedeemYield;
50231
49984
  var init_pendleRedeemYield2 = __esm(() => {
50232
49985
  init_pendleRedeemYield();
50233
49986
  init_components();
50234
49987
  init_tools();
50235
- args44 = {
49988
+ args43 = {
50236
49989
  request: PendleRedeemYieldRequest$inboundSchema
50237
49990
  };
50238
49991
  tool$pendleRedeemYield = {
@@ -50240,9 +49993,9 @@ var init_pendleRedeemYield2 = __esm(() => {
50240
49993
  description: `Redeem Claimable Yield
50241
49994
 
50242
49995
  Redeem claimable yield from the market's associated Yield Token (YT).`,
50243
- args: args44,
50244
- tool: async (client, args45, ctx) => {
50245
- const [result, apiCall] = await pendleRedeemYield(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49996
+ args: args43,
49997
+ tool: async (client, args44, ctx) => {
49998
+ const [result, apiCall] = await pendleRedeemYield(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50246
49999
  if (!result.ok) {
50247
50000
  return {
50248
50001
  content: [{ type: "text", text: result.error.message }],
@@ -50257,9 +50010,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
50257
50010
 
50258
50011
  // src/funcs/pendleRemoveLiquidity.ts
50259
50012
  function pendleRemoveLiquidity(client, request, options) {
50260
- return new APIPromise($do45(client, request, options));
50013
+ return new APIPromise($do44(client, request, options));
50261
50014
  }
50262
- async function $do45(client, request, options) {
50015
+ async function $do44(client, request, options) {
50263
50016
  const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
50264
50017
  if (!parsed.ok) {
50265
50018
  return [parsed, { status: "invalid" }];
@@ -50330,12 +50083,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
50330
50083
  });
50331
50084
 
50332
50085
  // src/mcp-server/tools/pendleRemoveLiquidity.ts
50333
- var args45, tool$pendleRemoveLiquidity;
50086
+ var args44, tool$pendleRemoveLiquidity;
50334
50087
  var init_pendleRemoveLiquidity2 = __esm(() => {
50335
50088
  init_pendleRemoveLiquidity();
50336
50089
  init_components();
50337
50090
  init_tools();
50338
- args45 = {
50091
+ args44 = {
50339
50092
  request: PendleRemoveLiquidityRequest$inboundSchema
50340
50093
  };
50341
50094
  tool$pendleRemoveLiquidity = {
@@ -50347,9 +50100,9 @@ Remove liquidity from a Pendle Market.
50347
50100
  Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
50348
50101
  the market's Underlying Token. An appropriate allowance for the Pendle Router on the
50349
50102
  market contract must be set beforehand`,
50350
- args: args45,
50351
- tool: async (client, args46, ctx) => {
50352
- const [result, apiCall] = await pendleRemoveLiquidity(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50103
+ args: args44,
50104
+ tool: async (client, args45, ctx) => {
50105
+ const [result, apiCall] = await pendleRemoveLiquidity(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50353
50106
  if (!result.ok) {
50354
50107
  return {
50355
50108
  content: [{ type: "text", text: result.error.message }],
@@ -50364,9 +50117,9 @@ market contract must be set beforehand`,
50364
50117
 
50365
50118
  // src/funcs/pendleSellPt.ts
50366
50119
  function pendleSellPt(client, request, options) {
50367
- return new APIPromise($do46(client, request, options));
50120
+ return new APIPromise($do45(client, request, options));
50368
50121
  }
50369
- async function $do46(client, request, options) {
50122
+ async function $do45(client, request, options) {
50370
50123
  const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
50371
50124
  if (!parsed.ok) {
50372
50125
  return [parsed, { status: "invalid" }];
@@ -50437,12 +50190,12 @@ var init_pendleSellPt = __esm(() => {
50437
50190
  });
50438
50191
 
50439
50192
  // src/mcp-server/tools/pendleSellPt.ts
50440
- var args46, tool$pendleSellPt;
50193
+ var args45, tool$pendleSellPt;
50441
50194
  var init_pendleSellPt2 = __esm(() => {
50442
50195
  init_pendleSellPt();
50443
50196
  init_components();
50444
50197
  init_tools();
50445
- args46 = {
50198
+ args45 = {
50446
50199
  request: PendleSellPtRequest$inboundSchema
50447
50200
  };
50448
50201
  tool$pendleSellPt = {
@@ -50450,9 +50203,9 @@ var init_pendleSellPt2 = __esm(() => {
50450
50203
  description: `Sell Principal Token (PT)
50451
50204
 
50452
50205
  Sell Principal Token (PT) for the market's Underlying Token.`,
50453
- args: args46,
50454
- tool: async (client, args47, ctx) => {
50455
- const [result, apiCall] = await pendleSellPt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50206
+ args: args45,
50207
+ tool: async (client, args46, ctx) => {
50208
+ const [result, apiCall] = await pendleSellPt(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50456
50209
  if (!result.ok) {
50457
50210
  return {
50458
50211
  content: [{ type: "text", text: result.error.message }],
@@ -50467,9 +50220,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
50467
50220
 
50468
50221
  // src/funcs/pendleSellYt.ts
50469
50222
  function pendleSellYt(client, request, options) {
50470
- return new APIPromise($do47(client, request, options));
50223
+ return new APIPromise($do46(client, request, options));
50471
50224
  }
50472
- async function $do47(client, request, options) {
50225
+ async function $do46(client, request, options) {
50473
50226
  const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
50474
50227
  if (!parsed.ok) {
50475
50228
  return [parsed, { status: "invalid" }];
@@ -50540,12 +50293,12 @@ var init_pendleSellYt = __esm(() => {
50540
50293
  });
50541
50294
 
50542
50295
  // src/mcp-server/tools/pendleSellYt.ts
50543
- var args47, tool$pendleSellYt;
50296
+ var args46, tool$pendleSellYt;
50544
50297
  var init_pendleSellYt2 = __esm(() => {
50545
50298
  init_pendleSellYt();
50546
50299
  init_components();
50547
50300
  init_tools();
50548
- args47 = {
50301
+ args46 = {
50549
50302
  request: PendleSellYtRequest$inboundSchema
50550
50303
  };
50551
50304
  tool$pendleSellYt = {
@@ -50553,9 +50306,9 @@ var init_pendleSellYt2 = __esm(() => {
50553
50306
  description: `Sell Yield Token (YT)
50554
50307
 
50555
50308
  Sell Yield Token (YT) for the market's Underlying Token.`,
50556
- args: args47,
50557
- tool: async (client, args48, ctx) => {
50558
- const [result, apiCall] = await pendleSellYt(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50309
+ args: args46,
50310
+ tool: async (client, args47, ctx) => {
50311
+ const [result, apiCall] = await pendleSellYt(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50559
50312
  if (!result.ok) {
50560
50313
  return {
50561
50314
  content: [{ type: "text", text: result.error.message }],
@@ -50570,9 +50323,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
50570
50323
 
50571
50324
  // src/funcs/skyBuy.ts
50572
50325
  function skyBuy(client, request, options) {
50573
- return new APIPromise($do48(client, request, options));
50326
+ return new APIPromise($do47(client, request, options));
50574
50327
  }
50575
- async function $do48(client, request, options) {
50328
+ async function $do47(client, request, options) {
50576
50329
  const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
50577
50330
  if (!parsed.ok) {
50578
50331
  return [parsed, { status: "invalid" }];
@@ -50643,12 +50396,12 @@ var init_skyBuy = __esm(() => {
50643
50396
  });
50644
50397
 
50645
50398
  // src/mcp-server/tools/skyBuy.ts
50646
- var args48, tool$skyBuy;
50399
+ var args47, tool$skyBuy;
50647
50400
  var init_skyBuy2 = __esm(() => {
50648
50401
  init_skyBuy();
50649
50402
  init_components();
50650
50403
  init_tools();
50651
- args48 = {
50404
+ args47 = {
50652
50405
  request: SkyBuyRequest$inboundSchema
50653
50406
  };
50654
50407
  tool$skyBuy = {
@@ -50662,9 +50415,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
50662
50415
 
50663
50416
  If buying with USDC, user will need to set an allowance on the USDC contract for the
50664
50417
  'SkyDaiUsdsConverter' contract beforehand.`,
50665
- args: args48,
50666
- tool: async (client, args49, ctx) => {
50667
- const [result, apiCall] = await skyBuy(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50418
+ args: args47,
50419
+ tool: async (client, args48, ctx) => {
50420
+ const [result, apiCall] = await skyBuy(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50668
50421
  if (!result.ok) {
50669
50422
  return {
50670
50423
  content: [{ type: "text", text: result.error.message }],
@@ -50679,9 +50432,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
50679
50432
 
50680
50433
  // src/funcs/skyDeposit.ts
50681
50434
  function skyDeposit(client, request, options) {
50682
- return new APIPromise($do49(client, request, options));
50435
+ return new APIPromise($do48(client, request, options));
50683
50436
  }
50684
- async function $do49(client, request, options) {
50437
+ async function $do48(client, request, options) {
50685
50438
  const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
50686
50439
  if (!parsed.ok) {
50687
50440
  return [parsed, { status: "invalid" }];
@@ -50752,12 +50505,12 @@ var init_skyDeposit = __esm(() => {
50752
50505
  });
50753
50506
 
50754
50507
  // src/mcp-server/tools/skyDeposit.ts
50755
- var args49, tool$skyDeposit;
50508
+ var args48, tool$skyDeposit;
50756
50509
  var init_skyDeposit2 = __esm(() => {
50757
50510
  init_skyDeposit();
50758
50511
  init_components();
50759
50512
  init_tools();
50760
- args49 = {
50513
+ args48 = {
50761
50514
  request: SkyDepositRequest$inboundSchema
50762
50515
  };
50763
50516
  tool$skyDeposit = {
@@ -50767,9 +50520,9 @@ var init_skyDeposit2 = __esm(() => {
50767
50520
  Deposit USDS for sUSDS to earn yield.
50768
50521
 
50769
50522
  There are no fees.`,
50770
- args: args49,
50771
- tool: async (client, args50, ctx) => {
50772
- const [result, apiCall] = await skyDeposit(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50523
+ args: args48,
50524
+ tool: async (client, args49, ctx) => {
50525
+ const [result, apiCall] = await skyDeposit(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50773
50526
  if (!result.ok) {
50774
50527
  return {
50775
50528
  content: [{ type: "text", text: result.error.message }],
@@ -50784,9 +50537,9 @@ There are no fees.`,
50784
50537
 
50785
50538
  // src/funcs/skyPosition.ts
50786
50539
  function skyPosition(client, request, options) {
50787
- return new APIPromise($do50(client, request, options));
50540
+ return new APIPromise($do49(client, request, options));
50788
50541
  }
50789
- async function $do50(client, request, options) {
50542
+ async function $do49(client, request, options) {
50790
50543
  const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
50791
50544
  if (!parsed.ok) {
50792
50545
  return [parsed, { status: "invalid" }];
@@ -50862,12 +50615,12 @@ var init_skyPosition = __esm(() => {
50862
50615
  });
50863
50616
 
50864
50617
  // src/mcp-server/tools/skyPosition.ts
50865
- var args50, tool$skyPosition;
50618
+ var args49, tool$skyPosition;
50866
50619
  var init_skyPosition2 = __esm(() => {
50867
50620
  init_skyPosition();
50868
50621
  init_operations();
50869
50622
  init_tools();
50870
- args50 = {
50623
+ args49 = {
50871
50624
  request: SkyPositionRequest$inboundSchema
50872
50625
  };
50873
50626
  tool$skyPosition = {
@@ -50875,9 +50628,9 @@ var init_skyPosition2 = __esm(() => {
50875
50628
  description: `Check USDS Position
50876
50629
 
50877
50630
  Check the USDS overall position.`,
50878
- args: args50,
50879
- tool: async (client, args51, ctx) => {
50880
- const [result, apiCall] = await skyPosition(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50631
+ args: args49,
50632
+ tool: async (client, args50, ctx) => {
50633
+ const [result, apiCall] = await skyPosition(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50881
50634
  if (!result.ok) {
50882
50635
  return {
50883
50636
  content: [{ type: "text", text: result.error.message }],
@@ -50892,9 +50645,9 @@ Check the USDS overall position.`,
50892
50645
 
50893
50646
  // src/funcs/skySell.ts
50894
50647
  function skySell(client, request, options) {
50895
- return new APIPromise($do51(client, request, options));
50648
+ return new APIPromise($do50(client, request, options));
50896
50649
  }
50897
- async function $do51(client, request, options) {
50650
+ async function $do50(client, request, options) {
50898
50651
  const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
50899
50652
  if (!parsed.ok) {
50900
50653
  return [parsed, { status: "invalid" }];
@@ -50965,12 +50718,12 @@ var init_skySell = __esm(() => {
50965
50718
  });
50966
50719
 
50967
50720
  // src/mcp-server/tools/skySell.ts
50968
- var args51, tool$skySell;
50721
+ var args50, tool$skySell;
50969
50722
  var init_skySell2 = __esm(() => {
50970
50723
  init_skySell();
50971
50724
  init_components();
50972
50725
  init_tools();
50973
- args51 = {
50726
+ args50 = {
50974
50727
  request: SkySellRequest$inboundSchema
50975
50728
  };
50976
50729
  tool$skySell = {
@@ -50984,9 +50737,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
50984
50737
 
50985
50738
  If swapping to USDC, user will need to set an allowance on the USDS contract for the
50986
50739
  'SkyUsdcUsdsConverter' contract beforehand.`,
50987
- args: args51,
50988
- tool: async (client, args52, ctx) => {
50989
- const [result, apiCall] = await skySell(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50740
+ args: args50,
50741
+ tool: async (client, args51, ctx) => {
50742
+ const [result, apiCall] = await skySell(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50990
50743
  if (!result.ok) {
50991
50744
  return {
50992
50745
  content: [{ type: "text", text: result.error.message }],
@@ -51001,9 +50754,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
51001
50754
 
51002
50755
  // src/funcs/skyWithdraw.ts
51003
50756
  function skyWithdraw(client, request, options) {
51004
- return new APIPromise($do52(client, request, options));
50757
+ return new APIPromise($do51(client, request, options));
51005
50758
  }
51006
- async function $do52(client, request, options) {
50759
+ async function $do51(client, request, options) {
51007
50760
  const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
51008
50761
  if (!parsed.ok) {
51009
50762
  return [parsed, { status: "invalid" }];
@@ -51074,12 +50827,12 @@ var init_skyWithdraw = __esm(() => {
51074
50827
  });
51075
50828
 
51076
50829
  // src/mcp-server/tools/skyWithdraw.ts
51077
- var args52, tool$skyWithdraw;
50830
+ var args51, tool$skyWithdraw;
51078
50831
  var init_skyWithdraw2 = __esm(() => {
51079
50832
  init_skyWithdraw();
51080
50833
  init_components();
51081
50834
  init_tools();
51082
- args52 = {
50835
+ args51 = {
51083
50836
  request: SkyWithdrawRequest$inboundSchema
51084
50837
  };
51085
50838
  tool$skyWithdraw = {
@@ -51087,9 +50840,9 @@ var init_skyWithdraw2 = __esm(() => {
51087
50840
  description: `Withdraw USDS
51088
50841
 
51089
50842
  Withdraw USDS for sUSDS to stop earning yield.`,
51090
- args: args52,
51091
- tool: async (client, args53, ctx) => {
51092
- const [result, apiCall] = await skyWithdraw(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50843
+ args: args51,
50844
+ tool: async (client, args52, ctx) => {
50845
+ const [result, apiCall] = await skyWithdraw(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51093
50846
  if (!result.ok) {
51094
50847
  return {
51095
50848
  content: [{ type: "text", text: result.error.message }],
@@ -51104,9 +50857,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
51104
50857
 
51105
50858
  // src/funcs/smartAccountAccountBatchedUserOperations.ts
51106
50859
  function smartAccountAccountBatchedUserOperations(client, request, options) {
51107
- return new APIPromise($do53(client, request, options));
50860
+ return new APIPromise($do52(client, request, options));
51108
50861
  }
51109
- async function $do53(client, request, options) {
50862
+ async function $do52(client, request, options) {
51110
50863
  const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
51111
50864
  if (!parsed.ok) {
51112
50865
  return [parsed, { status: "invalid" }];
@@ -51177,12 +50930,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
51177
50930
  });
51178
50931
 
51179
50932
  // src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
51180
- var args53, tool$smartAccountAccountBatchedUserOperations;
50933
+ var args52, tool$smartAccountAccountBatchedUserOperations;
51181
50934
  var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
51182
50935
  init_smartAccountAccountBatchedUserOperations();
51183
50936
  init_components();
51184
50937
  init_tools();
51185
- args53 = {
50938
+ args52 = {
51186
50939
  request: BatchedUserOperationsRequest$inboundSchema
51187
50940
  };
51188
50941
  tool$smartAccountAccountBatchedUserOperations = {
@@ -51190,9 +50943,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
51190
50943
  description: `Get Smart Account Batched User Operations
51191
50944
 
51192
50945
  Generate a list of user operations for smart account batching.`,
51193
- args: args53,
51194
- tool: async (client, args54, ctx) => {
51195
- const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50946
+ args: args52,
50947
+ tool: async (client, args53, ctx) => {
50948
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51196
50949
  if (!result.ok) {
51197
50950
  return {
51198
50951
  content: [{ type: "text", text: result.error.message }],
@@ -51207,9 +50960,9 @@ Generate a list of user operations for smart account batching.`,
51207
50960
 
51208
50961
  // src/funcs/tokenAddress.ts
51209
50962
  function tokenAddress(client, request, options) {
51210
- return new APIPromise($do54(client, request, options));
50963
+ return new APIPromise($do53(client, request, options));
51211
50964
  }
51212
- async function $do54(client, request, options) {
50965
+ async function $do53(client, request, options) {
51213
50966
  const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
51214
50967
  if (!parsed.ok) {
51215
50968
  return [parsed, { status: "invalid" }];
@@ -51285,12 +51038,12 @@ var init_tokenAddress = __esm(() => {
51285
51038
  });
51286
51039
 
51287
51040
  // src/mcp-server/tools/tokenAddress.ts
51288
- var args54, tool$tokenAddress;
51041
+ var args53, tool$tokenAddress;
51289
51042
  var init_tokenAddress2 = __esm(() => {
51290
51043
  init_tokenAddress();
51291
51044
  init_operations();
51292
51045
  init_tools();
51293
- args54 = {
51046
+ args53 = {
51294
51047
  request: TokenAddressRequest$inboundSchema
51295
51048
  };
51296
51049
  tool$tokenAddress = {
@@ -51298,9 +51051,9 @@ var init_tokenAddress2 = __esm(() => {
51298
51051
  description: `Token Address
51299
51052
 
51300
51053
  This endpoint retrieves the address for a token supported by us.`,
51301
- args: args54,
51302
- tool: async (client, args55, ctx) => {
51303
- const [result, apiCall] = await tokenAddress(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51054
+ args: args53,
51055
+ tool: async (client, args54, ctx) => {
51056
+ const [result, apiCall] = await tokenAddress(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51304
51057
  if (!result.ok) {
51305
51058
  return {
51306
51059
  content: [{ type: "text", text: result.error.message }],
@@ -51315,9 +51068,9 @@ This endpoint retrieves the address for a token supported by us.`,
51315
51068
 
51316
51069
  // src/funcs/tokenBalance.ts
51317
51070
  function tokenBalance(client, request, options) {
51318
- return new APIPromise($do55(client, request, options));
51071
+ return new APIPromise($do54(client, request, options));
51319
51072
  }
51320
- async function $do55(client, request, options) {
51073
+ async function $do54(client, request, options) {
51321
51074
  const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
51322
51075
  if (!parsed.ok) {
51323
51076
  return [parsed, { status: "invalid" }];
@@ -51394,12 +51147,12 @@ var init_tokenBalance = __esm(() => {
51394
51147
  });
51395
51148
 
51396
51149
  // src/mcp-server/tools/tokenBalance.ts
51397
- var args55, tool$tokenBalance;
51150
+ var args54, tool$tokenBalance;
51398
51151
  var init_tokenBalance2 = __esm(() => {
51399
51152
  init_tokenBalance();
51400
51153
  init_operations();
51401
51154
  init_tools();
51402
- args55 = {
51155
+ args54 = {
51403
51156
  request: TokenBalanceRequest$inboundSchema
51404
51157
  };
51405
51158
  tool$tokenBalance = {
@@ -51407,9 +51160,9 @@ var init_tokenBalance2 = __esm(() => {
51407
51160
  description: `Token Balance
51408
51161
 
51409
51162
  Returns the balance of a specific ERC20 token for a given user address.`,
51410
- args: args55,
51411
- tool: async (client, args56, ctx) => {
51412
- const [result, apiCall] = await tokenBalance(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51163
+ args: args54,
51164
+ tool: async (client, args55, ctx) => {
51165
+ const [result, apiCall] = await tokenBalance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51413
51166
  if (!result.ok) {
51414
51167
  return {
51415
51168
  content: [{ type: "text", text: result.error.message }],
@@ -51424,9 +51177,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
51424
51177
 
51425
51178
  // src/funcs/tokenPrice.ts
51426
51179
  function tokenPrice(client, request, options) {
51427
- return new APIPromise($do56(client, request, options));
51180
+ return new APIPromise($do55(client, request, options));
51428
51181
  }
51429
- async function $do56(client, request, options) {
51182
+ async function $do55(client, request, options) {
51430
51183
  const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
51431
51184
  if (!parsed.ok) {
51432
51185
  return [parsed, { status: "invalid" }];
@@ -51503,12 +51256,12 @@ var init_tokenPrice = __esm(() => {
51503
51256
  });
51504
51257
 
51505
51258
  // src/mcp-server/tools/tokenPrice.ts
51506
- var args56, tool$tokenPrice;
51259
+ var args55, tool$tokenPrice;
51507
51260
  var init_tokenPrice2 = __esm(() => {
51508
51261
  init_tokenPrice();
51509
51262
  init_operations();
51510
51263
  init_tools();
51511
- args56 = {
51264
+ args55 = {
51512
51265
  request: TokenPriceRequest$inboundSchema
51513
51266
  };
51514
51267
  tool$tokenPrice = {
@@ -51520,9 +51273,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
51520
51273
  Chainlink is a decentralized oracle that aggregates price data from off-chain
51521
51274
  sources. This ensures the price is tamper-resistant but the price might be stale
51522
51275
  with the update frequency of the oracle.`,
51523
- args: args56,
51524
- tool: async (client, args57, ctx) => {
51525
- const [result, apiCall] = await tokenPrice(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51276
+ args: args55,
51277
+ tool: async (client, args56, ctx) => {
51278
+ const [result, apiCall] = await tokenPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51526
51279
  if (!result.ok) {
51527
51280
  return {
51528
51281
  content: [{ type: "text", text: result.error.message }],
@@ -51537,9 +51290,9 @@ with the update frequency of the oracle.`,
51537
51290
 
51538
51291
  // src/funcs/tokenTransfer.ts
51539
51292
  function tokenTransfer(client, request, options) {
51540
- return new APIPromise($do57(client, request, options));
51293
+ return new APIPromise($do56(client, request, options));
51541
51294
  }
51542
- async function $do57(client, request, options) {
51295
+ async function $do56(client, request, options) {
51543
51296
  const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
51544
51297
  if (!parsed.ok) {
51545
51298
  return [parsed, { status: "invalid" }];
@@ -51610,12 +51363,12 @@ var init_tokenTransfer = __esm(() => {
51610
51363
  });
51611
51364
 
51612
51365
  // src/mcp-server/tools/tokenTransfer.ts
51613
- var args57, tool$tokenTransfer;
51366
+ var args56, tool$tokenTransfer;
51614
51367
  var init_tokenTransfer2 = __esm(() => {
51615
51368
  init_tokenTransfer();
51616
51369
  init_components();
51617
51370
  init_tools();
51618
- args57 = {
51371
+ args56 = {
51619
51372
  request: TokenTransferRequest$inboundSchema
51620
51373
  };
51621
51374
  tool$tokenTransfer = {
@@ -51623,9 +51376,9 @@ var init_tokenTransfer2 = __esm(() => {
51623
51376
  description: `Transfer ETH or ERC20 Tokens
51624
51377
 
51625
51378
  Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51626
- args: args57,
51627
- tool: async (client, args58, ctx) => {
51628
- const [result, apiCall] = await tokenTransfer(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51379
+ args: args56,
51380
+ tool: async (client, args57, ctx) => {
51381
+ const [result, apiCall] = await tokenTransfer(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51629
51382
  if (!result.ok) {
51630
51383
  return {
51631
51384
  content: [{ type: "text", text: result.error.message }],
@@ -51640,9 +51393,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
51640
51393
 
51641
51394
  // src/funcs/transactionBundlerBundlerAaveLoop.ts
51642
51395
  function transactionBundlerBundlerAaveLoop(client, request, options) {
51643
- return new APIPromise($do58(client, request, options));
51396
+ return new APIPromise($do57(client, request, options));
51644
51397
  }
51645
- async function $do58(client, request, options) {
51398
+ async function $do57(client, request, options) {
51646
51399
  const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
51647
51400
  if (!parsed.ok) {
51648
51401
  return [parsed, { status: "invalid" }];
@@ -51713,12 +51466,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
51713
51466
  });
51714
51467
 
51715
51468
  // src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
51716
- var args58, tool$transactionBundlerBundlerAaveLoop;
51469
+ var args57, tool$transactionBundlerBundlerAaveLoop;
51717
51470
  var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
51718
51471
  init_transactionBundlerBundlerAaveLoop();
51719
51472
  init_components();
51720
51473
  init_tools();
51721
- args58 = {
51474
+ args57 = {
51722
51475
  request: AaveLoopRequest$inboundSchema
51723
51476
  };
51724
51477
  tool$transactionBundlerBundlerAaveLoop = {
@@ -51736,9 +51489,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
51736
51489
  - Supplies the swapped tokens
51737
51490
 
51738
51491
  The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
51739
- args: args58,
51740
- tool: async (client, args59, ctx) => {
51741
- const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51492
+ args: args57,
51493
+ tool: async (client, args58, ctx) => {
51494
+ const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51742
51495
  if (!result.ok) {
51743
51496
  return {
51744
51497
  content: [{ type: "text", text: result.error.message }],
@@ -51753,9 +51506,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
51753
51506
 
51754
51507
  // src/funcs/transactionBundlerBundlerAuthorization.ts
51755
51508
  function transactionBundlerBundlerAuthorization(client, request, options) {
51756
- return new APIPromise($do59(client, request, options));
51509
+ return new APIPromise($do58(client, request, options));
51757
51510
  }
51758
- async function $do59(client, request, options) {
51511
+ async function $do58(client, request, options) {
51759
51512
  const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
51760
51513
  if (!parsed.ok) {
51761
51514
  return [parsed, { status: "invalid" }];
@@ -51826,12 +51579,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
51826
51579
  });
51827
51580
 
51828
51581
  // src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
51829
- var args59, tool$transactionBundlerBundlerAuthorization;
51582
+ var args58, tool$transactionBundlerBundlerAuthorization;
51830
51583
  var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
51831
51584
  init_transactionBundlerBundlerAuthorization();
51832
51585
  init_components();
51833
51586
  init_tools();
51834
- args59 = {
51587
+ args58 = {
51835
51588
  request: MulticallAuthorizationRequest$inboundSchema
51836
51589
  };
51837
51590
  tool$transactionBundlerBundlerAuthorization = {
@@ -51844,9 +51597,9 @@ Currently this is required for every transaction bundle to prevent replay attack
51844
51597
  and ensure transaction ordering when batching multiple actions into a single
51845
51598
  transaction. The authorization includes a nonce and chain ID to guarantee
51846
51599
  transaction uniqueness and proper network targeting.`,
51847
- args: args59,
51848
- tool: async (client, args60, ctx) => {
51849
- const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51600
+ args: args58,
51601
+ tool: async (client, args59, ctx) => {
51602
+ const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51850
51603
  if (!result.ok) {
51851
51604
  return {
51852
51605
  content: [{ type: "text", text: result.error.message }],
@@ -51861,9 +51614,9 @@ transaction uniqueness and proper network targeting.`,
51861
51614
 
51862
51615
  // src/funcs/transactionBundlerBundlerExecute.ts
51863
51616
  function transactionBundlerBundlerExecute(client, request, options) {
51864
- return new APIPromise($do60(client, request, options));
51617
+ return new APIPromise($do59(client, request, options));
51865
51618
  }
51866
- async function $do60(client, request, options) {
51619
+ async function $do59(client, request, options) {
51867
51620
  const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
51868
51621
  if (!parsed.ok) {
51869
51622
  return [parsed, { status: "invalid" }];
@@ -51934,12 +51687,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
51934
51687
  });
51935
51688
 
51936
51689
  // src/mcp-server/tools/transactionBundlerBundlerExecute.ts
51937
- var args60, tool$transactionBundlerBundlerExecute;
51690
+ var args59, tool$transactionBundlerBundlerExecute;
51938
51691
  var init_transactionBundlerBundlerExecute2 = __esm(() => {
51939
51692
  init_transactionBundlerBundlerExecute();
51940
51693
  init_components();
51941
51694
  init_tools();
51942
- args60 = {
51695
+ args59 = {
51943
51696
  request: MulticallExecuteRequest$inboundSchema
51944
51697
  };
51945
51698
  tool$transactionBundlerBundlerExecute = {
@@ -51953,9 +51706,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
51953
51706
  transaction, reducing gas costs and ensuring all operations succeed or fail
51954
51707
  together. The transaction must be authorized using the /authorization endpoint to
51955
51708
  prevent replay attacks.`,
51956
- args: args60,
51957
- tool: async (client, args61, ctx) => {
51958
- const [result, apiCall] = await transactionBundlerBundlerExecute(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51709
+ args: args59,
51710
+ tool: async (client, args60, ctx) => {
51711
+ const [result, apiCall] = await transactionBundlerBundlerExecute(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51959
51712
  if (!result.ok) {
51960
51713
  return {
51961
51714
  content: [{ type: "text", text: result.error.message }],
@@ -51970,9 +51723,9 @@ prevent replay attacks.`,
51970
51723
 
51971
51724
  // src/funcs/uniswapV3LiquidityProvisionIncrease.ts
51972
51725
  function uniswapV3LiquidityProvisionIncrease(client, request, options) {
51973
- return new APIPromise($do61(client, request, options));
51726
+ return new APIPromise($do60(client, request, options));
51974
51727
  }
51975
- async function $do61(client, request, options) {
51728
+ async function $do60(client, request, options) {
51976
51729
  const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
51977
51730
  if (!parsed.ok) {
51978
51731
  return [parsed, { status: "invalid" }];
@@ -52043,12 +51796,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
52043
51796
  });
52044
51797
 
52045
51798
  // src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
52046
- var args61, tool$uniswapV3LiquidityProvisionIncrease;
51799
+ var args60, tool$uniswapV3LiquidityProvisionIncrease;
52047
51800
  var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
52048
51801
  init_uniswapV3LiquidityProvisionIncrease();
52049
51802
  init_components();
52050
51803
  init_tools();
52051
- args61 = {
51804
+ args60 = {
52052
51805
  request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
52053
51806
  };
52054
51807
  tool$uniswapV3LiquidityProvisionIncrease = {
@@ -52064,9 +51817,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
52064
51817
  within the pool. The endpoint requires details such as the token pair, additional
52065
51818
  amount to be added, and any other parameters necessary for the liquidity increase
52066
51819
  process.`,
52067
- args: args61,
52068
- tool: async (client, args62, ctx) => {
52069
- const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51820
+ args: args60,
51821
+ tool: async (client, args61, ctx) => {
51822
+ const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52070
51823
  if (!result.ok) {
52071
51824
  return {
52072
51825
  content: [{ type: "text", text: result.error.message }],
@@ -52081,9 +51834,9 @@ process.`,
52081
51834
 
52082
51835
  // src/funcs/uniswapV3LiquidityProvisionInRange.ts
52083
51836
  function uniswapV3LiquidityProvisionInRange(client, request, options) {
52084
- return new APIPromise($do62(client, request, options));
51837
+ return new APIPromise($do61(client, request, options));
52085
51838
  }
52086
- async function $do62(client, request, options) {
51839
+ async function $do61(client, request, options) {
52087
51840
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
52088
51841
  if (!parsed.ok) {
52089
51842
  return [parsed, { status: "invalid" }];
@@ -52159,12 +51912,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
52159
51912
  });
52160
51913
 
52161
51914
  // src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
52162
- var args62, tool$uniswapV3LiquidityProvisionInRange;
51915
+ var args61, tool$uniswapV3LiquidityProvisionInRange;
52163
51916
  var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
52164
51917
  init_uniswapV3LiquidityProvisionInRange();
52165
51918
  init_operations();
52166
51919
  init_tools();
52167
- args62 = {
51920
+ args61 = {
52168
51921
  request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
52169
51922
  };
52170
51923
  tool$uniswapV3LiquidityProvisionInRange = {
@@ -52179,9 +51932,9 @@ position is currently within the tick range where trading occurs. this informati
52179
51932
  is essential for users to monitor the status of their lp positions and ensure that
52180
51933
  they are actively participating in the trading activities within the liquidity pool
52181
51934
  and earning trading fees.`,
52182
- args: args62,
52183
- tool: async (client, args63, ctx) => {
52184
- const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51935
+ args: args61,
51936
+ tool: async (client, args62, ctx) => {
51937
+ const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52185
51938
  if (!result.ok) {
52186
51939
  return {
52187
51940
  content: [{ type: "text", text: result.error.message }],
@@ -52196,9 +51949,9 @@ and earning trading fees.`,
52196
51949
 
52197
51950
  // src/funcs/uniswapV3LiquidityProvisionMint.ts
52198
51951
  function uniswapV3LiquidityProvisionMint(client, request, options) {
52199
- return new APIPromise($do63(client, request, options));
51952
+ return new APIPromise($do62(client, request, options));
52200
51953
  }
52201
- async function $do63(client, request, options) {
51954
+ async function $do62(client, request, options) {
52202
51955
  const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
52203
51956
  if (!parsed.ok) {
52204
51957
  return [parsed, { status: "invalid" }];
@@ -52269,12 +52022,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
52269
52022
  });
52270
52023
 
52271
52024
  // src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
52272
- var args63, tool$uniswapV3LiquidityProvisionMint;
52025
+ var args62, tool$uniswapV3LiquidityProvisionMint;
52273
52026
  var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
52274
52027
  init_uniswapV3LiquidityProvisionMint();
52275
52028
  init_components();
52276
52029
  init_tools();
52277
- args63 = {
52030
+ args62 = {
52278
52031
  request: UniswapMintLiquidityProvisionRequest$inboundSchema
52279
52032
  };
52280
52033
  tool$uniswapV3LiquidityProvisionMint = {
@@ -52290,9 +52043,9 @@ This operation is essential for users looking to participate in liquidity provis
52290
52043
  enabling them to earn fees from trades that occur within the pool. The endpoint
52291
52044
  requires details such as the token pair, amount, and any additional parameters
52292
52045
  needed for the minting process.`,
52293
- args: args63,
52294
- tool: async (client, args64, ctx) => {
52295
- const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52046
+ args: args62,
52047
+ tool: async (client, args63, ctx) => {
52048
+ const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52296
52049
  if (!result.ok) {
52297
52050
  return {
52298
52051
  content: [{ type: "text", text: result.error.message }],
@@ -52307,9 +52060,9 @@ needed for the minting process.`,
52307
52060
 
52308
52061
  // src/funcs/uniswapV3LiquidityProvisionPositions.ts
52309
52062
  function uniswapV3LiquidityProvisionPositions(client, request, options) {
52310
- return new APIPromise($do64(client, request, options));
52063
+ return new APIPromise($do63(client, request, options));
52311
52064
  }
52312
- async function $do64(client, request, options) {
52065
+ async function $do63(client, request, options) {
52313
52066
  const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
52314
52067
  if (!parsed.ok) {
52315
52068
  return [parsed, { status: "invalid" }];
@@ -52385,12 +52138,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
52385
52138
  });
52386
52139
 
52387
52140
  // src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
52388
- var args64, tool$uniswapV3LiquidityProvisionPositions;
52141
+ var args63, tool$uniswapV3LiquidityProvisionPositions;
52389
52142
  var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
52390
52143
  init_uniswapV3LiquidityProvisionPositions();
52391
52144
  init_operations();
52392
52145
  init_tools();
52393
- args64 = {
52146
+ args63 = {
52394
52147
  request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
52395
52148
  };
52396
52149
  tool$uniswapV3LiquidityProvisionPositions = {
@@ -52404,9 +52157,9 @@ Users can query this endpoint to obtain detailed information about their LP
52404
52157
  positions, including the total number of positions and relevant metadata. This
52405
52158
  information is crucial for users to manage and analyze their liquidity provision
52406
52159
  activities effectively.`,
52407
- args: args64,
52408
- tool: async (client, args65, ctx) => {
52409
- const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52160
+ args: args63,
52161
+ tool: async (client, args64, ctx) => {
52162
+ const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52410
52163
  if (!result.ok) {
52411
52164
  return {
52412
52165
  content: [{ type: "text", text: result.error.message }],
@@ -52421,9 +52174,9 @@ activities effectively.`,
52421
52174
 
52422
52175
  // src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
52423
52176
  function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
52424
- return new APIPromise($do65(client, request, options));
52177
+ return new APIPromise($do64(client, request, options));
52425
52178
  }
52426
- async function $do65(client, request, options) {
52179
+ async function $do64(client, request, options) {
52427
52180
  const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
52428
52181
  if (!parsed.ok) {
52429
52182
  return [parsed, { status: "invalid" }];
@@ -52494,12 +52247,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
52494
52247
  });
52495
52248
 
52496
52249
  // src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
52497
- var args65, tool$uniswapV3LiquidityProvisionWithdraw;
52250
+ var args64, tool$uniswapV3LiquidityProvisionWithdraw;
52498
52251
  var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
52499
52252
  init_uniswapV3LiquidityProvisionWithdraw();
52500
52253
  init_components();
52501
52254
  init_tools();
52502
- args65 = {
52255
+ args64 = {
52503
52256
  request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
52504
52257
  };
52505
52258
  tool$uniswapV3LiquidityProvisionWithdraw = {
@@ -52516,9 +52269,9 @@ pools or investments. The endpoint requires details such as the token pair, the
52516
52269
  amount to be withdrawn, and any additional parameters needed for the withdrawal
52517
52270
  process. Users should ensure they meet any protocol requirements or conditions
52518
52271
  before initiating a withdrawal to avoid potential issues or penalties.`,
52519
- args: args65,
52520
- tool: async (client, args66, ctx) => {
52521
- const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52272
+ args: args64,
52273
+ tool: async (client, args65, ctx) => {
52274
+ const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52522
52275
  if (!result.ok) {
52523
52276
  return {
52524
52277
  content: [{ type: "text", text: result.error.message }],
@@ -52533,9 +52286,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
52533
52286
 
52534
52287
  // src/funcs/uniswapV3PoolPrice.ts
52535
52288
  function uniswapV3PoolPrice(client, request, options) {
52536
- return new APIPromise($do66(client, request, options));
52289
+ return new APIPromise($do65(client, request, options));
52537
52290
  }
52538
- async function $do66(client, request, options) {
52291
+ async function $do65(client, request, options) {
52539
52292
  const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
52540
52293
  if (!parsed.ok) {
52541
52294
  return [parsed, { status: "invalid" }];
@@ -52613,12 +52366,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
52613
52366
  });
52614
52367
 
52615
52368
  // src/mcp-server/tools/uniswapV3PoolPrice.ts
52616
- var args66, tool$uniswapV3PoolPrice;
52369
+ var args65, tool$uniswapV3PoolPrice;
52617
52370
  var init_uniswapV3PoolPrice2 = __esm(() => {
52618
52371
  init_uniswapV3PoolPrice();
52619
52372
  init_operations();
52620
52373
  init_tools();
52621
- args66 = {
52374
+ args65 = {
52622
52375
  request: UniswapPoolPriceRequest$inboundSchema
52623
52376
  };
52624
52377
  tool$uniswapV3PoolPrice = {
@@ -52628,9 +52381,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
52628
52381
  This endpoint calculates the price of a token in a Uniswap pool.
52629
52382
 
52630
52383
  The price is calculated based on the current pool state and the specified fee tier.`,
52631
- args: args66,
52632
- tool: async (client, args67, ctx) => {
52633
- const [result, apiCall] = await uniswapV3PoolPrice(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52384
+ args: args65,
52385
+ tool: async (client, args66, ctx) => {
52386
+ const [result, apiCall] = await uniswapV3PoolPrice(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52634
52387
  if (!result.ok) {
52635
52388
  return {
52636
52389
  content: [{ type: "text", text: result.error.message }],
@@ -52645,9 +52398,9 @@ The price is calculated based on the current pool state and the specified fee ti
52645
52398
 
52646
52399
  // src/funcs/uniswapV3QuoteBuyExactly.ts
52647
52400
  function uniswapV3QuoteBuyExactly(client, request, options) {
52648
- return new APIPromise($do67(client, request, options));
52401
+ return new APIPromise($do66(client, request, options));
52649
52402
  }
52650
- async function $do67(client, request, options) {
52403
+ async function $do66(client, request, options) {
52651
52404
  const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52652
52405
  if (!parsed.ok) {
52653
52406
  return [parsed, { status: "invalid" }];
@@ -52726,12 +52479,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
52726
52479
  });
52727
52480
 
52728
52481
  // src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
52729
- var args67, tool$uniswapV3QuoteBuyExactly;
52482
+ var args66, tool$uniswapV3QuoteBuyExactly;
52730
52483
  var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
52731
52484
  init_uniswapV3QuoteBuyExactly();
52732
52485
  init_operations();
52733
52486
  init_tools();
52734
- args67 = {
52487
+ args66 = {
52735
52488
  request: UniswapQuoteBuyExactlyRequest$inboundSchema
52736
52489
  };
52737
52490
  tool$uniswapV3QuoteBuyExactly = {
@@ -52743,9 +52496,9 @@ specified amount of output tokens from a Uniswap pool.
52743
52496
 
52744
52497
  It also provides the resulting price after the transaction. The calculation takes
52745
52498
  into account the current pool state and the specified fee tier.`,
52746
- args: args67,
52747
- tool: async (client, args68, ctx) => {
52748
- const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52499
+ args: args66,
52500
+ tool: async (client, args67, ctx) => {
52501
+ const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52749
52502
  if (!result.ok) {
52750
52503
  return {
52751
52504
  content: [{ type: "text", text: result.error.message }],
@@ -52760,9 +52513,9 @@ into account the current pool state and the specified fee tier.`,
52760
52513
 
52761
52514
  // src/funcs/uniswapV3QuoteSellExactly.ts
52762
52515
  function uniswapV3QuoteSellExactly(client, request, options) {
52763
- return new APIPromise($do68(client, request, options));
52516
+ return new APIPromise($do67(client, request, options));
52764
52517
  }
52765
- async function $do68(client, request, options) {
52518
+ async function $do67(client, request, options) {
52766
52519
  const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52767
52520
  if (!parsed.ok) {
52768
52521
  return [parsed, { status: "invalid" }];
@@ -52841,12 +52594,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
52841
52594
  });
52842
52595
 
52843
52596
  // src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
52844
- var args68, tool$uniswapV3QuoteSellExactly;
52597
+ var args67, tool$uniswapV3QuoteSellExactly;
52845
52598
  var init_uniswapV3QuoteSellExactly2 = __esm(() => {
52846
52599
  init_uniswapV3QuoteSellExactly();
52847
52600
  init_operations();
52848
52601
  init_tools();
52849
- args68 = {
52602
+ args67 = {
52850
52603
  request: UniswapQuoteSellExactlyRequest$inboundSchema
52851
52604
  };
52852
52605
  tool$uniswapV3QuoteSellExactly = {
@@ -52858,9 +52611,9 @@ specified amount of output tokens from a Uniswap pool.
52858
52611
 
52859
52612
  It also provides the resulting price after the transaction. The calculation takes
52860
52613
  into account the current pool state and the specified fee tier.`,
52861
- args: args68,
52862
- tool: async (client, args69, ctx) => {
52863
- const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52614
+ args: args67,
52615
+ tool: async (client, args68, ctx) => {
52616
+ const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52864
52617
  if (!result.ok) {
52865
52618
  return {
52866
52619
  content: [{ type: "text", text: result.error.message }],
@@ -52875,9 +52628,9 @@ into account the current pool state and the specified fee tier.`,
52875
52628
 
52876
52629
  // src/funcs/uniswapV3SwapBuyExactly.ts
52877
52630
  function uniswapV3SwapBuyExactly(client, request, options) {
52878
- return new APIPromise($do69(client, request, options));
52631
+ return new APIPromise($do68(client, request, options));
52879
52632
  }
52880
- async function $do69(client, request, options) {
52633
+ async function $do68(client, request, options) {
52881
52634
  const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52882
52635
  if (!parsed.ok) {
52883
52636
  return [parsed, { status: "invalid" }];
@@ -52948,12 +52701,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
52948
52701
  });
52949
52702
 
52950
52703
  // src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
52951
- var args69, tool$uniswapV3SwapBuyExactly;
52704
+ var args68, tool$uniswapV3SwapBuyExactly;
52952
52705
  var init_uniswapV3SwapBuyExactly2 = __esm(() => {
52953
52706
  init_uniswapV3SwapBuyExactly();
52954
52707
  init_components();
52955
52708
  init_tools();
52956
- args69 = {
52709
+ args68 = {
52957
52710
  request: UniswapBuyExactlyRequest$inboundSchema
52958
52711
  };
52959
52712
  tool$uniswapV3SwapBuyExactly = {
@@ -52967,9 +52720,9 @@ The transaction is executed on the specified blockchain network, and the user mu
52967
52720
  provide the necessary transaction details, including the token to buy, the token to
52968
52721
  pay with, and the exact amount to receive. If the token being paid with is WETH and
52969
52722
  needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52970
- args: args69,
52971
- tool: async (client, args70, ctx) => {
52972
- const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52723
+ args: args68,
52724
+ tool: async (client, args69, ctx) => {
52725
+ const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52973
52726
  if (!result.ok) {
52974
52727
  return {
52975
52728
  content: [{ type: "text", text: result.error.message }],
@@ -52984,9 +52737,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
52984
52737
 
52985
52738
  // src/funcs/uniswapV3SwapSellExactly.ts
52986
52739
  function uniswapV3SwapSellExactly(client, request, options) {
52987
- return new APIPromise($do70(client, request, options));
52740
+ return new APIPromise($do69(client, request, options));
52988
52741
  }
52989
- async function $do70(client, request, options) {
52742
+ async function $do69(client, request, options) {
52990
52743
  const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
52991
52744
  if (!parsed.ok) {
52992
52745
  return [parsed, { status: "invalid" }];
@@ -53057,12 +52810,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
53057
52810
  });
53058
52811
 
53059
52812
  // src/mcp-server/tools/uniswapV3SwapSellExactly.ts
53060
- var args70, tool$uniswapV3SwapSellExactly;
52813
+ var args69, tool$uniswapV3SwapSellExactly;
53061
52814
  var init_uniswapV3SwapSellExactly2 = __esm(() => {
53062
52815
  init_uniswapV3SwapSellExactly();
53063
52816
  init_components();
53064
52817
  init_tools();
53065
- args70 = {
52818
+ args69 = {
53066
52819
  request: UniswapSellExactlyRequest$inboundSchema
53067
52820
  };
53068
52821
  tool$uniswapV3SwapSellExactly = {
@@ -53076,9 +52829,9 @@ The transaction is executed on the specified blockchain network, and the user mu
53076
52829
  provide the necessary transaction details, including the token to sell, the token to
53077
52830
  receive, and the amount to sell. If the token being sold is WETH and needs to be
53078
52831
  wrapped, the appropriate amount will be wrapped automatically.`,
53079
- args: args70,
53080
- tool: async (client, args71, ctx) => {
53081
- const [result, apiCall] = await uniswapV3SwapSellExactly(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52832
+ args: args69,
52833
+ tool: async (client, args70, ctx) => {
52834
+ const [result, apiCall] = await uniswapV3SwapSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53082
52835
  if (!result.ok) {
53083
52836
  return {
53084
52837
  content: [{ type: "text", text: result.error.message }],
@@ -53093,9 +52846,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
53093
52846
 
53094
52847
  // src/funcs/universalAllowance.ts
53095
52848
  function universalAllowance(client, request, options) {
53096
- return new APIPromise($do71(client, request, options));
52849
+ return new APIPromise($do70(client, request, options));
53097
52850
  }
53098
- async function $do71(client, request, options) {
52851
+ async function $do70(client, request, options) {
53099
52852
  const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
53100
52853
  if (!parsed.ok) {
53101
52854
  return [parsed, { status: "invalid" }];
@@ -53173,12 +52926,12 @@ var init_universalAllowance = __esm(() => {
53173
52926
  });
53174
52927
 
53175
52928
  // src/mcp-server/tools/universalAllowance.ts
53176
- var args71, tool$universalAllowance;
52929
+ var args70, tool$universalAllowance;
53177
52930
  var init_universalAllowance2 = __esm(() => {
53178
52931
  init_universalAllowance();
53179
52932
  init_operations();
53180
52933
  init_tools();
53181
- args71 = {
52934
+ args70 = {
53182
52935
  request: GenericAllowanceRequest$inboundSchema
53183
52936
  };
53184
52937
  tool$universalAllowance = {
@@ -53192,9 +52945,9 @@ tokens on their behalf.
53192
52945
  This is a crucial step before engaging in any transactions or operations within
53193
52946
  these protocols, ensuring that the protocol has the necessary permissions to manage
53194
52947
  the user's tokens securely and efficiently.`,
53195
- args: args71,
53196
- tool: async (client, args72, ctx) => {
53197
- const [result, apiCall] = await universalAllowance(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52948
+ args: args70,
52949
+ tool: async (client, args71, ctx) => {
52950
+ const [result, apiCall] = await universalAllowance(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53198
52951
  if (!result.ok) {
53199
52952
  return {
53200
52953
  content: [{ type: "text", text: result.error.message }],
@@ -53209,9 +52962,9 @@ the user's tokens securely and efficiently.`,
53209
52962
 
53210
52963
  // src/funcs/universalAllowanceSet.ts
53211
52964
  function universalAllowanceSet(client, request, options) {
53212
- return new APIPromise($do72(client, request, options));
52965
+ return new APIPromise($do71(client, request, options));
53213
52966
  }
53214
- async function $do72(client, request, options) {
52967
+ async function $do71(client, request, options) {
53215
52968
  const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
53216
52969
  if (!parsed.ok) {
53217
52970
  return [parsed, { status: "invalid" }];
@@ -53282,12 +53035,12 @@ var init_universalAllowanceSet = __esm(() => {
53282
53035
  });
53283
53036
 
53284
53037
  // src/mcp-server/tools/universalAllowanceSet.ts
53285
- var args72, tool$universalAllowanceSet;
53038
+ var args71, tool$universalAllowanceSet;
53286
53039
  var init_universalAllowanceSet2 = __esm(() => {
53287
53040
  init_universalAllowanceSet();
53288
53041
  init_components();
53289
53042
  init_tools();
53290
- args72 = {
53043
+ args71 = {
53291
53044
  request: SetAllowanceRequest$inboundSchema
53292
53045
  };
53293
53046
  tool$universalAllowanceSet = {
@@ -53302,9 +53055,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
53302
53055
  This operation is crucial for ensuring that the protocol can manage the user's
53303
53056
  tokens securely and efficiently, enabling seamless transactions and operations
53304
53057
  within the DeFi ecosystem.`,
53305
- args: args72,
53306
- tool: async (client, args73, ctx) => {
53307
- const [result, apiCall] = await universalAllowanceSet(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53058
+ args: args71,
53059
+ tool: async (client, args72, ctx) => {
53060
+ const [result, apiCall] = await universalAllowanceSet(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53308
53061
  if (!result.ok) {
53309
53062
  return {
53310
53063
  content: [{ type: "text", text: result.error.message }],
@@ -53319,9 +53072,9 @@ within the DeFi ecosystem.`,
53319
53072
 
53320
53073
  // src/funcs/universalEns.ts
53321
53074
  function universalEns(client, request, options) {
53322
- return new APIPromise($do73(client, request, options));
53075
+ return new APIPromise($do72(client, request, options));
53323
53076
  }
53324
- async function $do73(client, request, options) {
53077
+ async function $do72(client, request, options) {
53325
53078
  const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
53326
53079
  if (!parsed.ok) {
53327
53080
  return [parsed, { status: "invalid" }];
@@ -53397,12 +53150,12 @@ var init_universalEns = __esm(() => {
53397
53150
  });
53398
53151
 
53399
53152
  // src/mcp-server/tools/universalEns.ts
53400
- var args73, tool$universalEns;
53153
+ var args72, tool$universalEns;
53401
53154
  var init_universalEns2 = __esm(() => {
53402
53155
  init_universalEns();
53403
53156
  init_operations();
53404
53157
  init_tools();
53405
- args73 = {
53158
+ args72 = {
53406
53159
  request: GenericEnsRequest$inboundSchema
53407
53160
  };
53408
53161
  tool$universalEns = {
@@ -53413,9 +53166,9 @@ An ENS name is a string ending in \`.eth\`.
53413
53166
 
53414
53167
  E.g. \`vitalik.eth\`. This endpoint can be used to
53415
53168
  query the actual ethereum wallet address behind the ENS name.`,
53416
- args: args73,
53417
- tool: async (client, args74, ctx) => {
53418
- const [result, apiCall] = await universalEns(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53169
+ args: args72,
53170
+ tool: async (client, args73, ctx) => {
53171
+ const [result, apiCall] = await universalEns(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53419
53172
  if (!result.ok) {
53420
53173
  return {
53421
53174
  content: [{ type: "text", text: result.error.message }],
@@ -53430,9 +53183,9 @@ query the actual ethereum wallet address behind the ENS name.`,
53430
53183
 
53431
53184
  // src/funcs/universalPortfolio.ts
53432
53185
  function universalPortfolio(client, request, options) {
53433
- return new APIPromise($do74(client, request, options));
53186
+ return new APIPromise($do73(client, request, options));
53434
53187
  }
53435
- async function $do74(client, request, options) {
53188
+ async function $do73(client, request, options) {
53436
53189
  const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53437
53190
  if (!parsed.ok) {
53438
53191
  return [parsed, { status: "invalid" }];
@@ -53508,12 +53261,12 @@ var init_universalPortfolio = __esm(() => {
53508
53261
  });
53509
53262
 
53510
53263
  // src/mcp-server/tools/universalPortfolio.ts
53511
- var args74, tool$universalPortfolio;
53264
+ var args73, tool$universalPortfolio;
53512
53265
  var init_universalPortfolio2 = __esm(() => {
53513
53266
  init_universalPortfolio();
53514
53267
  init_operations();
53515
53268
  init_tools();
53516
- args74 = {
53269
+ args73 = {
53517
53270
  request: GenericPortfolioRequest$inboundSchema
53518
53271
  };
53519
53272
  tool$universalPortfolio = {
@@ -53524,9 +53277,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
53524
53277
 
53525
53278
  This includes the total value of the portfolio in USD and a breakdown of token
53526
53279
  balances, including their respective values and quantities.`,
53527
- args: args74,
53528
- tool: async (client, args75, ctx) => {
53529
- const [result, apiCall] = await universalPortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53280
+ args: args73,
53281
+ tool: async (client, args74, ctx) => {
53282
+ const [result, apiCall] = await universalPortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53530
53283
  if (!result.ok) {
53531
53284
  return {
53532
53285
  content: [{ type: "text", text: result.error.message }],
@@ -53541,9 +53294,9 @@ balances, including their respective values and quantities.`,
53541
53294
 
53542
53295
  // src/funcs/universalSupportedTokens.ts
53543
53296
  function universalSupportedTokens(client, request, options) {
53544
- return new APIPromise($do75(client, request, options));
53297
+ return new APIPromise($do74(client, request, options));
53545
53298
  }
53546
- async function $do75(client, request, options) {
53299
+ async function $do74(client, request, options) {
53547
53300
  const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
53548
53301
  if (!parsed.ok) {
53549
53302
  return [parsed, { status: "invalid" }];
@@ -53618,12 +53371,12 @@ var init_universalSupportedTokens = __esm(() => {
53618
53371
  });
53619
53372
 
53620
53373
  // src/mcp-server/tools/universalSupportedTokens.ts
53621
- var args75, tool$universalSupportedTokens;
53374
+ var args74, tool$universalSupportedTokens;
53622
53375
  var init_universalSupportedTokens2 = __esm(() => {
53623
53376
  init_universalSupportedTokens();
53624
53377
  init_operations();
53625
53378
  init_tools();
53626
- args75 = {
53379
+ args74 = {
53627
53380
  request: GenericSupportedTokensRequest$inboundSchema
53628
53381
  };
53629
53382
  tool$universalSupportedTokens = {
@@ -53631,9 +53384,9 @@ var init_universalSupportedTokens2 = __esm(() => {
53631
53384
  description: `List Supported Tokens
53632
53385
 
53633
53386
  Get the list of supported tokens on a chain by the Compass API.`,
53634
- args: args75,
53635
- tool: async (client, args76, ctx) => {
53636
- const [result, apiCall] = await universalSupportedTokens(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53387
+ args: args74,
53388
+ tool: async (client, args75, ctx) => {
53389
+ const [result, apiCall] = await universalSupportedTokens(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53637
53390
  if (!result.ok) {
53638
53391
  return {
53639
53392
  content: [{ type: "text", text: result.error.message }],
@@ -53648,9 +53401,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
53648
53401
 
53649
53402
  // src/funcs/universalUnwrapWeth.ts
53650
53403
  function universalUnwrapWeth(client, request, options) {
53651
- return new APIPromise($do76(client, request, options));
53404
+ return new APIPromise($do75(client, request, options));
53652
53405
  }
53653
- async function $do76(client, request, options) {
53406
+ async function $do75(client, request, options) {
53654
53407
  const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
53655
53408
  if (!parsed.ok) {
53656
53409
  return [parsed, { status: "invalid" }];
@@ -53721,12 +53474,12 @@ var init_universalUnwrapWeth = __esm(() => {
53721
53474
  });
53722
53475
 
53723
53476
  // src/mcp-server/tools/universalUnwrapWeth.ts
53724
- var args76, tool$universalUnwrapWeth;
53477
+ var args75, tool$universalUnwrapWeth;
53725
53478
  var init_universalUnwrapWeth2 = __esm(() => {
53726
53479
  init_universalUnwrapWeth();
53727
53480
  init_components();
53728
53481
  init_tools();
53729
- args76 = {
53482
+ args75 = {
53730
53483
  request: UnwrapWethRequest$inboundSchema
53731
53484
  };
53732
53485
  tool$universalUnwrapWeth = {
@@ -53735,9 +53488,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
53735
53488
 
53736
53489
  Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
53737
53490
  can be used for gas and other native purposes.`,
53738
- args: args76,
53739
- tool: async (client, args77, ctx) => {
53740
- const [result, apiCall] = await universalUnwrapWeth(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53491
+ args: args75,
53492
+ tool: async (client, args76, ctx) => {
53493
+ const [result, apiCall] = await universalUnwrapWeth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53741
53494
  if (!result.ok) {
53742
53495
  return {
53743
53496
  content: [{ type: "text", text: result.error.message }],
@@ -53752,9 +53505,9 @@ can be used for gas and other native purposes.`,
53752
53505
 
53753
53506
  // src/funcs/universalVisualizePortfolio.ts
53754
53507
  function universalVisualizePortfolio(client, request, options) {
53755
- return new APIPromise($do77(client, request, options));
53508
+ return new APIPromise($do76(client, request, options));
53756
53509
  }
53757
- async function $do77(client, request, options) {
53510
+ async function $do76(client, request, options) {
53758
53511
  const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
53759
53512
  if (!parsed.ok) {
53760
53513
  return [parsed, { status: "invalid" }];
@@ -53830,12 +53583,12 @@ var init_universalVisualizePortfolio = __esm(() => {
53830
53583
  });
53831
53584
 
53832
53585
  // src/mcp-server/tools/universalVisualizePortfolio.ts
53833
- var args77, tool$universalVisualizePortfolio;
53586
+ var args76, tool$universalVisualizePortfolio;
53834
53587
  var init_universalVisualizePortfolio2 = __esm(() => {
53835
53588
  init_universalVisualizePortfolio();
53836
53589
  init_operations();
53837
53590
  init_tools();
53838
- args77 = {
53591
+ args76 = {
53839
53592
  request: GenericVisualizePortfolioRequest$inboundSchema
53840
53593
  };
53841
53594
  tool$universalVisualizePortfolio = {
@@ -53847,9 +53600,9 @@ Generate a visual representation of the token portfolio for a wallet address.
53847
53600
  The response is an SVG image of a pie chart depicting the relative distribution of
53848
53601
  tokens held, colored and labeled with token symbols, percentages and token values in
53849
53602
  USD.`,
53850
- args: args77,
53851
- tool: async (client, args78, ctx) => {
53852
- const [result, apiCall] = await universalVisualizePortfolio(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53603
+ args: args76,
53604
+ tool: async (client, args77, ctx) => {
53605
+ const [result, apiCall] = await universalVisualizePortfolio(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53853
53606
  if (!result.ok) {
53854
53607
  return {
53855
53608
  content: [{ type: "text", text: result.error.message }],
@@ -53864,9 +53617,9 @@ USD.`,
53864
53617
 
53865
53618
  // src/funcs/universalWrapEth.ts
53866
53619
  function universalWrapEth(client, request, options) {
53867
- return new APIPromise($do78(client, request, options));
53620
+ return new APIPromise($do77(client, request, options));
53868
53621
  }
53869
- async function $do78(client, request, options) {
53622
+ async function $do77(client, request, options) {
53870
53623
  const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
53871
53624
  if (!parsed.ok) {
53872
53625
  return [parsed, { status: "invalid" }];
@@ -53937,12 +53690,12 @@ var init_universalWrapEth = __esm(() => {
53937
53690
  });
53938
53691
 
53939
53692
  // src/mcp-server/tools/universalWrapEth.ts
53940
- var args78, tool$universalWrapEth;
53693
+ var args77, tool$universalWrapEth;
53941
53694
  var init_universalWrapEth2 = __esm(() => {
53942
53695
  init_universalWrapEth();
53943
53696
  init_components();
53944
53697
  init_tools();
53945
- args78 = {
53698
+ args77 = {
53946
53699
  request: WrapEthRequest$inboundSchema
53947
53700
  };
53948
53701
  tool$universalWrapEth = {
@@ -53951,9 +53704,9 @@ var init_universalWrapEth2 = __esm(() => {
53951
53704
 
53952
53705
  Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
53953
53706
  it to be traded on DeFi protocols.`,
53954
- args: args78,
53955
- tool: async (client, args79, ctx) => {
53956
- const [result, apiCall] = await universalWrapEth(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53707
+ args: args77,
53708
+ tool: async (client, args78, ctx) => {
53709
+ const [result, apiCall] = await universalWrapEth(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53957
53710
  if (!result.ok) {
53958
53711
  return {
53959
53712
  content: [{ type: "text", text: result.error.message }],
@@ -53970,7 +53723,7 @@ it to be traded on DeFi protocols.`,
53970
53723
  function createMCPServer(deps) {
53971
53724
  const server = new McpServer({
53972
53725
  name: "CompassApiSDK",
53973
- version: "0.5.41"
53726
+ version: "0.5.43"
53974
53727
  });
53975
53728
  const client = new CompassApiSDKCore({
53976
53729
  apiKeyAuth: deps.apiKeyAuth,
@@ -54043,9 +53796,8 @@ function createMCPServer(deps) {
54043
53796
  tool(tool$universalWrapEth);
54044
53797
  tool(tool$universalUnwrapWeth);
54045
53798
  tool(tool$universalAllowanceSet);
54046
- tool(tool$pendlePosition);
54047
- tool(tool$pendlePositions);
54048
53799
  tool(tool$pendleMarket);
53800
+ tool(tool$pendlePositions);
54049
53801
  tool(tool$pendleMarkets);
54050
53802
  tool(tool$pendleQuote);
54051
53803
  tool(tool$pendleBuyPt);
@@ -54109,7 +53861,6 @@ var init_server2 = __esm(() => {
54109
53861
  init_pendleBuyYt2();
54110
53862
  init_pendleMarket2();
54111
53863
  init_pendleMarkets2();
54112
- init_pendlePosition2();
54113
53864
  init_pendlePositions2();
54114
53865
  init_pendleQuote2();
54115
53866
  init_pendleRedeemYield2();
@@ -55342,7 +55093,7 @@ var routes = ln({
55342
55093
  var app = _e(routes, {
55343
55094
  name: "mcp",
55344
55095
  versionInfo: {
55345
- currentVersion: "0.5.41"
55096
+ currentVersion: "0.5.43"
55346
55097
  }
55347
55098
  });
55348
55099
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -55350,5 +55101,5 @@ export {
55350
55101
  app
55351
55102
  };
55352
55103
 
55353
- //# debugId=85E9D6C957EF145B64756E2164756E21
55104
+ //# debugId=5275D4C20130653C64756E2164756E21
55354
55105
  //# sourceMappingURL=mcp-server.js.map