@compass-labs/api-sdk 0.2.2 → 0.2.3

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 (102) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +40 -114
  3. package/bin/mcp-server.js.map +14 -16
  4. package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
  5. package/dist/commonjs/funcs/universalAllowanceSet.js +1 -1
  6. package/dist/commonjs/lib/config.d.ts +2 -2
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js +1 -1
  11. package/dist/commonjs/models/components/increaseallowanceparams.d.ts +29 -10
  12. package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/increaseallowanceparams.js +26 -3
  14. package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
  15. package/dist/commonjs/models/components/increaseallowancerequest.d.ts +29 -10
  16. package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/increaseallowancerequest.js +26 -3
  18. package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
  19. package/dist/commonjs/models/components/index.d.ts +0 -2
  20. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/index.js +0 -2
  22. package/dist/commonjs/models/components/index.js.map +1 -1
  23. package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -3
  24. package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/multicallactiontype.js +0 -1
  26. package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
  27. package/dist/commonjs/models/components/tokentransferrequest.d.ts +11 -11
  28. package/dist/commonjs/models/components/tokentransferrequest.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/tokentransferrequest.js +16 -17
  30. package/dist/commonjs/models/components/tokentransferrequest.js.map +1 -1
  31. package/dist/commonjs/models/components/useroperation.d.ts +4 -5
  32. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/useroperation.js +0 -5
  34. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  35. package/dist/commonjs/sdk/universal.d.ts +1 -1
  36. package/dist/commonjs/sdk/universal.js +1 -1
  37. package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
  38. package/dist/esm/funcs/universalAllowanceSet.js +1 -1
  39. package/dist/esm/lib/config.d.ts +2 -2
  40. package/dist/esm/lib/config.js +2 -2
  41. package/dist/esm/mcp-server/mcp-server.js +1 -1
  42. package/dist/esm/mcp-server/server.js +1 -1
  43. package/dist/esm/mcp-server/tools/universalAllowanceSet.js +1 -1
  44. package/dist/esm/models/components/increaseallowanceparams.d.ts +29 -10
  45. package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
  46. package/dist/esm/models/components/increaseallowanceparams.js +23 -2
  47. package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
  48. package/dist/esm/models/components/increaseallowancerequest.d.ts +29 -10
  49. package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
  50. package/dist/esm/models/components/increaseallowancerequest.js +23 -2
  51. package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
  52. package/dist/esm/models/components/index.d.ts +0 -2
  53. package/dist/esm/models/components/index.d.ts.map +1 -1
  54. package/dist/esm/models/components/index.js +0 -2
  55. package/dist/esm/models/components/index.js.map +1 -1
  56. package/dist/esm/models/components/multicallactiontype.d.ts +0 -3
  57. package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
  58. package/dist/esm/models/components/multicallactiontype.js +0 -1
  59. package/dist/esm/models/components/multicallactiontype.js.map +1 -1
  60. package/dist/esm/models/components/tokentransferrequest.d.ts +11 -11
  61. package/dist/esm/models/components/tokentransferrequest.d.ts.map +1 -1
  62. package/dist/esm/models/components/tokentransferrequest.js +13 -14
  63. package/dist/esm/models/components/tokentransferrequest.js.map +1 -1
  64. package/dist/esm/models/components/useroperation.d.ts +4 -5
  65. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  66. package/dist/esm/models/components/useroperation.js +0 -5
  67. package/dist/esm/models/components/useroperation.js.map +1 -1
  68. package/dist/esm/sdk/universal.d.ts +1 -1
  69. package/dist/esm/sdk/universal.js +1 -1
  70. package/docs/sdks/universal/README.md +3 -3
  71. package/jsr.json +1 -1
  72. package/package.json +1 -1
  73. package/src/funcs/universalAllowanceSet.ts +1 -1
  74. package/src/lib/config.ts +2 -2
  75. package/src/mcp-server/mcp-server.ts +1 -1
  76. package/src/mcp-server/server.ts +1 -1
  77. package/src/mcp-server/tools/universalAllowanceSet.ts +1 -1
  78. package/src/models/components/increaseallowanceparams.ts +62 -12
  79. package/src/models/components/increaseallowancerequest.ts +62 -12
  80. package/src/models/components/index.ts +0 -2
  81. package/src/models/components/multicallactiontype.ts +0 -1
  82. package/src/models/components/tokentransferrequest.ts +27 -20
  83. package/src/models/components/useroperation.ts +0 -14
  84. package/src/sdk/universal.ts +1 -1
  85. package/dist/commonjs/models/components/contractname.d.ts +0 -117
  86. package/dist/commonjs/models/components/contractname.d.ts.map +0 -1
  87. package/dist/commonjs/models/components/contractname.js +0 -92
  88. package/dist/commonjs/models/components/contractname.js.map +0 -1
  89. package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts +0 -80
  90. package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts.map +0 -1
  91. package/dist/commonjs/models/components/increaseallowanceanyparams.js +0 -107
  92. package/dist/commonjs/models/components/increaseallowanceanyparams.js.map +0 -1
  93. package/dist/esm/models/components/contractname.d.ts +0 -117
  94. package/dist/esm/models/components/contractname.d.ts.map +0 -1
  95. package/dist/esm/models/components/contractname.js +0 -56
  96. package/dist/esm/models/components/contractname.js.map +0 -1
  97. package/dist/esm/models/components/increaseallowanceanyparams.d.ts +0 -80
  98. package/dist/esm/models/components/increaseallowanceanyparams.d.ts.map +0 -1
  99. package/dist/esm/models/components/increaseallowanceanyparams.js +0 -67
  100. package/dist/esm/models/components/increaseallowanceanyparams.js.map +0 -1
  101. package/src/models/components/contractname.ts +0 -71
  102. package/src/models/components/increaseallowanceanyparams.ts +0 -169
@@ -14,6 +14,11 @@ import {
14
14
  TokenEnum$outboundSchema,
15
15
  } from "./tokenenum.js";
16
16
 
17
+ /**
18
+ * The symbol or address of the token for which the allowance is increased..
19
+ */
20
+ export type IncreaseAllowanceParamsToken = TokenEnum | string;
21
+
17
22
  /**
18
23
  * The name of the contract to increase allowance for.
19
24
  */
@@ -39,7 +44,7 @@ export type IncreaseAllowanceParamsContractName = ClosedEnum<
39
44
  >;
40
45
 
41
46
  /**
42
- * The amount of tokens to increase the allowance by.
47
+ * The amount to increase the allowance to.
43
48
  */
44
49
  export type IncreaseAllowanceParamsAmount = number | string;
45
50
 
@@ -48,24 +53,69 @@ export type IncreaseAllowanceParamsAmount = number | string;
48
53
  */
49
54
  export type IncreaseAllowanceParams = {
50
55
  /**
51
- * A class representing the token.
52
- *
53
- * @remarks
54
- *
55
- * This class is used to represent the token in the system. Notice individual
56
- * endpoints' documentation where per chain tokens are presented.
56
+ * The symbol or address of the token for which the allowance is increased..
57
57
  */
58
- token: TokenEnum;
58
+ token: TokenEnum | string;
59
59
  /**
60
60
  * The name of the contract to increase allowance for.
61
61
  */
62
62
  contractName: IncreaseAllowanceParamsContractName;
63
63
  /**
64
- * The amount of tokens to increase the allowance by.
64
+ * The amount to increase the allowance to.
65
65
  */
66
66
  amount: number | string;
67
67
  };
68
68
 
69
+ /** @internal */
70
+ export const IncreaseAllowanceParamsToken$inboundSchema: z.ZodType<
71
+ IncreaseAllowanceParamsToken,
72
+ z.ZodTypeDef,
73
+ unknown
74
+ > = z.union([TokenEnum$inboundSchema, z.string()]);
75
+
76
+ /** @internal */
77
+ export type IncreaseAllowanceParamsToken$Outbound = string | string;
78
+
79
+ /** @internal */
80
+ export const IncreaseAllowanceParamsToken$outboundSchema: z.ZodType<
81
+ IncreaseAllowanceParamsToken$Outbound,
82
+ z.ZodTypeDef,
83
+ IncreaseAllowanceParamsToken
84
+ > = z.union([TokenEnum$outboundSchema, z.string()]);
85
+
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export namespace IncreaseAllowanceParamsToken$ {
91
+ /** @deprecated use `IncreaseAllowanceParamsToken$inboundSchema` instead. */
92
+ export const inboundSchema = IncreaseAllowanceParamsToken$inboundSchema;
93
+ /** @deprecated use `IncreaseAllowanceParamsToken$outboundSchema` instead. */
94
+ export const outboundSchema = IncreaseAllowanceParamsToken$outboundSchema;
95
+ /** @deprecated use `IncreaseAllowanceParamsToken$Outbound` instead. */
96
+ export type Outbound = IncreaseAllowanceParamsToken$Outbound;
97
+ }
98
+
99
+ export function increaseAllowanceParamsTokenToJSON(
100
+ increaseAllowanceParamsToken: IncreaseAllowanceParamsToken,
101
+ ): string {
102
+ return JSON.stringify(
103
+ IncreaseAllowanceParamsToken$outboundSchema.parse(
104
+ increaseAllowanceParamsToken,
105
+ ),
106
+ );
107
+ }
108
+
109
+ export function increaseAllowanceParamsTokenFromJSON(
110
+ jsonString: string,
111
+ ): SafeParseResult<IncreaseAllowanceParamsToken, SDKValidationError> {
112
+ return safeParse(
113
+ jsonString,
114
+ (x) => IncreaseAllowanceParamsToken$inboundSchema.parse(JSON.parse(x)),
115
+ `Failed to parse 'IncreaseAllowanceParamsToken' from JSON`,
116
+ );
117
+ }
118
+
69
119
  /** @internal */
70
120
  export const IncreaseAllowanceParamsContractName$inboundSchema: z.ZodNativeEnum<
71
121
  typeof IncreaseAllowanceParamsContractName
@@ -145,7 +195,7 @@ export const IncreaseAllowanceParams$inboundSchema: z.ZodType<
145
195
  z.ZodTypeDef,
146
196
  unknown
147
197
  > = z.object({
148
- token: TokenEnum$inboundSchema,
198
+ token: z.union([TokenEnum$inboundSchema, z.string()]),
149
199
  contract_name: IncreaseAllowanceParamsContractName$inboundSchema,
150
200
  amount: z.union([z.number(), z.string()]),
151
201
  }).transform((v) => {
@@ -156,7 +206,7 @@ export const IncreaseAllowanceParams$inboundSchema: z.ZodType<
156
206
 
157
207
  /** @internal */
158
208
  export type IncreaseAllowanceParams$Outbound = {
159
- token: string;
209
+ token: string | string;
160
210
  contract_name: string;
161
211
  amount: number | string;
162
212
  };
@@ -167,7 +217,7 @@ export const IncreaseAllowanceParams$outboundSchema: z.ZodType<
167
217
  z.ZodTypeDef,
168
218
  IncreaseAllowanceParams
169
219
  > = z.object({
170
- token: TokenEnum$outboundSchema,
220
+ token: z.union([TokenEnum$outboundSchema, z.string()]),
171
221
  contractName: IncreaseAllowanceParamsContractName$outboundSchema,
172
222
  amount: z.union([z.number(), z.string()]),
173
223
  }).transform((v) => {
@@ -15,6 +15,11 @@ import {
15
15
  TokenEnum$outboundSchema,
16
16
  } from "./tokenenum.js";
17
17
 
18
+ /**
19
+ * The symbol or address of the token for which the allowance is increased..
20
+ */
21
+ export type IncreaseAllowanceRequestToken = TokenEnum | string;
22
+
18
23
  /**
19
24
  * The name of the contract to increase allowance for.
20
25
  */
@@ -40,7 +45,7 @@ export type IncreaseAllowanceRequestContractName = ClosedEnum<
40
45
  >;
41
46
 
42
47
  /**
43
- * The amount of tokens to increase the allowance by.
48
+ * The amount to increase the allowance to.
44
49
  */
45
50
  export type IncreaseAllowanceRequestAmount = number | string;
46
51
 
@@ -49,20 +54,15 @@ export type IncreaseAllowanceRequestAmount = number | string;
49
54
  */
50
55
  export type IncreaseAllowanceRequest = {
51
56
  /**
52
- * A class representing the token.
53
- *
54
- * @remarks
55
- *
56
- * This class is used to represent the token in the system. Notice individual
57
- * endpoints' documentation where per chain tokens are presented.
57
+ * The symbol or address of the token for which the allowance is increased..
58
58
  */
59
- token: TokenEnum;
59
+ token: TokenEnum | string;
60
60
  /**
61
61
  * The name of the contract to increase allowance for.
62
62
  */
63
63
  contractName: IncreaseAllowanceRequestContractName;
64
64
  /**
65
- * The amount of tokens to increase the allowance by.
65
+ * The amount to increase the allowance to.
66
66
  */
67
67
  amount: number | string;
68
68
  /**
@@ -75,6 +75,56 @@ export type IncreaseAllowanceRequest = {
75
75
  sender: string;
76
76
  };
77
77
 
78
+ /** @internal */
79
+ export const IncreaseAllowanceRequestToken$inboundSchema: z.ZodType<
80
+ IncreaseAllowanceRequestToken,
81
+ z.ZodTypeDef,
82
+ unknown
83
+ > = z.union([TokenEnum$inboundSchema, z.string()]);
84
+
85
+ /** @internal */
86
+ export type IncreaseAllowanceRequestToken$Outbound = string | string;
87
+
88
+ /** @internal */
89
+ export const IncreaseAllowanceRequestToken$outboundSchema: z.ZodType<
90
+ IncreaseAllowanceRequestToken$Outbound,
91
+ z.ZodTypeDef,
92
+ IncreaseAllowanceRequestToken
93
+ > = z.union([TokenEnum$outboundSchema, z.string()]);
94
+
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ export namespace IncreaseAllowanceRequestToken$ {
100
+ /** @deprecated use `IncreaseAllowanceRequestToken$inboundSchema` instead. */
101
+ export const inboundSchema = IncreaseAllowanceRequestToken$inboundSchema;
102
+ /** @deprecated use `IncreaseAllowanceRequestToken$outboundSchema` instead. */
103
+ export const outboundSchema = IncreaseAllowanceRequestToken$outboundSchema;
104
+ /** @deprecated use `IncreaseAllowanceRequestToken$Outbound` instead. */
105
+ export type Outbound = IncreaseAllowanceRequestToken$Outbound;
106
+ }
107
+
108
+ export function increaseAllowanceRequestTokenToJSON(
109
+ increaseAllowanceRequestToken: IncreaseAllowanceRequestToken,
110
+ ): string {
111
+ return JSON.stringify(
112
+ IncreaseAllowanceRequestToken$outboundSchema.parse(
113
+ increaseAllowanceRequestToken,
114
+ ),
115
+ );
116
+ }
117
+
118
+ export function increaseAllowanceRequestTokenFromJSON(
119
+ jsonString: string,
120
+ ): SafeParseResult<IncreaseAllowanceRequestToken, SDKValidationError> {
121
+ return safeParse(
122
+ jsonString,
123
+ (x) => IncreaseAllowanceRequestToken$inboundSchema.parse(JSON.parse(x)),
124
+ `Failed to parse 'IncreaseAllowanceRequestToken' from JSON`,
125
+ );
126
+ }
127
+
78
128
  /** @internal */
79
129
  export const IncreaseAllowanceRequestContractName$inboundSchema:
80
130
  z.ZodNativeEnum<typeof IncreaseAllowanceRequestContractName> = z.nativeEnum(
@@ -155,7 +205,7 @@ export const IncreaseAllowanceRequest$inboundSchema: z.ZodType<
155
205
  z.ZodTypeDef,
156
206
  unknown
157
207
  > = z.object({
158
- token: TokenEnum$inboundSchema,
208
+ token: z.union([TokenEnum$inboundSchema, z.string()]),
159
209
  contract_name: IncreaseAllowanceRequestContractName$inboundSchema,
160
210
  amount: z.union([z.number(), z.string()]),
161
211
  chain: Chain$inboundSchema,
@@ -168,7 +218,7 @@ export const IncreaseAllowanceRequest$inboundSchema: z.ZodType<
168
218
 
169
219
  /** @internal */
170
220
  export type IncreaseAllowanceRequest$Outbound = {
171
- token: string;
221
+ token: string | string;
172
222
  contract_name: string;
173
223
  amount: number | string;
174
224
  chain: string;
@@ -181,7 +231,7 @@ export const IncreaseAllowanceRequest$outboundSchema: z.ZodType<
181
231
  z.ZodTypeDef,
182
232
  IncreaseAllowanceRequest
183
233
  > = z.object({
184
- token: TokenEnum$outboundSchema,
234
+ token: z.union([TokenEnum$outboundSchema, z.string()]),
185
235
  contractName: IncreaseAllowanceRequestContractName$outboundSchema,
186
236
  amount: z.union([z.number(), z.string()]),
187
237
  chain: Chain$outboundSchema,
@@ -54,14 +54,12 @@ export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsasset.js";
54
54
  export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate.js";
55
55
  export * from "./compassapibackendmodelsmorphoreadresponsegetvaultvaultstate.js";
56
56
  export * from "./compassapibackendmodelspendlereadresponsepositionstokenbalance.js";
57
- export * from "./contractname.js";
58
57
  export * from "./curator.js";
59
58
  export * from "./details.js";
60
59
  export * from "./ensnameinforesponse.js";
61
60
  export * from "./erc20data.js";
62
61
  export * from "./feeenum.js";
63
62
  export * from "./image.js";
64
- export * from "./increaseallowanceanyparams.js";
65
63
  export * from "./increaseallowanceparams.js";
66
64
  export * from "./increaseallowancerequest.js";
67
65
  export * from "./interestratemode.js";
@@ -18,7 +18,6 @@ export const MulticallActionType = {
18
18
  AerodromeSlipstreamWithdrawLiquidity:
19
19
  "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
20
20
  AllowanceIncrease: "ALLOWANCE_INCREASE",
21
- AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
22
21
  MorphoBorrow: "MORPHO_BORROW",
23
22
  MorphoDeposit: "MORPHO_DEPOSIT",
24
23
  MorphoRepay: "MORPHO_REPAY",
@@ -21,7 +21,7 @@ export type TokenTransferRequestAmount = number | string;
21
21
  /**
22
22
  * The symbol of the token to transfer..
23
23
  */
24
- export type Token = TokenEnum | string;
24
+ export type TokenTransferRequestToken = TokenEnum | string;
25
25
 
26
26
  /**
27
27
  * Request model for transferring ETH or ERC20 tokens.
@@ -98,43 +98,50 @@ export function tokenTransferRequestAmountFromJSON(
98
98
  }
99
99
 
100
100
  /** @internal */
101
- export const Token$inboundSchema: z.ZodType<Token, z.ZodTypeDef, unknown> = z
102
- .union([TokenEnum$inboundSchema, z.string()]);
101
+ export const TokenTransferRequestToken$inboundSchema: z.ZodType<
102
+ TokenTransferRequestToken,
103
+ z.ZodTypeDef,
104
+ unknown
105
+ > = z.union([TokenEnum$inboundSchema, z.string()]);
103
106
 
104
107
  /** @internal */
105
- export type Token$Outbound = string | string;
108
+ export type TokenTransferRequestToken$Outbound = string | string;
106
109
 
107
110
  /** @internal */
108
- export const Token$outboundSchema: z.ZodType<
109
- Token$Outbound,
111
+ export const TokenTransferRequestToken$outboundSchema: z.ZodType<
112
+ TokenTransferRequestToken$Outbound,
110
113
  z.ZodTypeDef,
111
- Token
114
+ TokenTransferRequestToken
112
115
  > = z.union([TokenEnum$outboundSchema, z.string()]);
113
116
 
114
117
  /**
115
118
  * @internal
116
119
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
117
120
  */
118
- export namespace Token$ {
119
- /** @deprecated use `Token$inboundSchema` instead. */
120
- export const inboundSchema = Token$inboundSchema;
121
- /** @deprecated use `Token$outboundSchema` instead. */
122
- export const outboundSchema = Token$outboundSchema;
123
- /** @deprecated use `Token$Outbound` instead. */
124
- export type Outbound = Token$Outbound;
121
+ export namespace TokenTransferRequestToken$ {
122
+ /** @deprecated use `TokenTransferRequestToken$inboundSchema` instead. */
123
+ export const inboundSchema = TokenTransferRequestToken$inboundSchema;
124
+ /** @deprecated use `TokenTransferRequestToken$outboundSchema` instead. */
125
+ export const outboundSchema = TokenTransferRequestToken$outboundSchema;
126
+ /** @deprecated use `TokenTransferRequestToken$Outbound` instead. */
127
+ export type Outbound = TokenTransferRequestToken$Outbound;
125
128
  }
126
129
 
127
- export function tokenToJSON(token: Token): string {
128
- return JSON.stringify(Token$outboundSchema.parse(token));
130
+ export function tokenTransferRequestTokenToJSON(
131
+ tokenTransferRequestToken: TokenTransferRequestToken,
132
+ ): string {
133
+ return JSON.stringify(
134
+ TokenTransferRequestToken$outboundSchema.parse(tokenTransferRequestToken),
135
+ );
129
136
  }
130
137
 
131
- export function tokenFromJSON(
138
+ export function tokenTransferRequestTokenFromJSON(
132
139
  jsonString: string,
133
- ): SafeParseResult<Token, SDKValidationError> {
140
+ ): SafeParseResult<TokenTransferRequestToken, SDKValidationError> {
134
141
  return safeParse(
135
142
  jsonString,
136
- (x) => Token$inboundSchema.parse(JSON.parse(x)),
137
- `Failed to parse 'Token' from JSON`,
143
+ (x) => TokenTransferRequestToken$inboundSchema.parse(JSON.parse(x)),
144
+ `Failed to parse 'TokenTransferRequestToken' from JSON`,
138
145
  );
139
146
  }
140
147
 
@@ -61,12 +61,6 @@ import {
61
61
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound,
62
62
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema,
63
63
  } from "./aerodromeslipstreamwithdrawliquidityprovisionparams.js";
64
- import {
65
- IncreaseAllowanceAnyParams,
66
- IncreaseAllowanceAnyParams$inboundSchema,
67
- IncreaseAllowanceAnyParams$Outbound,
68
- IncreaseAllowanceAnyParams$outboundSchema,
69
- } from "./increaseallowanceanyparams.js";
70
64
  import {
71
65
  IncreaseAllowanceParams,
72
66
  IncreaseAllowanceParams$inboundSchema,
@@ -209,7 +203,6 @@ export type Body =
209
203
  | MorphoWithdrawParams
210
204
  | TokenTransferErc20Params
211
205
  | IncreaseAllowanceParams
212
- | IncreaseAllowanceAnyParams
213
206
  | AaveBorrowParams
214
207
  | AaveRepayParams
215
208
  | MorphoBorrowParams
@@ -243,7 +236,6 @@ export type UserOperation = {
243
236
  | MorphoWithdrawParams
244
237
  | TokenTransferErc20Params
245
238
  | IncreaseAllowanceParams
246
- | IncreaseAllowanceAnyParams
247
239
  | AaveBorrowParams
248
240
  | AaveRepayParams
249
241
  | MorphoBorrowParams
@@ -278,7 +270,6 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
278
270
  MorphoWithdrawParams$inboundSchema,
279
271
  TokenTransferErc20Params$inboundSchema,
280
272
  IncreaseAllowanceParams$inboundSchema,
281
- IncreaseAllowanceAnyParams$inboundSchema,
282
273
  AaveBorrowParams$inboundSchema,
283
274
  AaveRepayParams$inboundSchema,
284
275
  MorphoBorrowParams$inboundSchema,
@@ -312,7 +303,6 @@ export type Body$Outbound =
312
303
  | MorphoWithdrawParams$Outbound
313
304
  | TokenTransferErc20Params$Outbound
314
305
  | IncreaseAllowanceParams$Outbound
315
- | IncreaseAllowanceAnyParams$Outbound
316
306
  | AaveBorrowParams$Outbound
317
307
  | AaveRepayParams$Outbound
318
308
  | MorphoBorrowParams$Outbound
@@ -346,7 +336,6 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
346
336
  MorphoWithdrawParams$outboundSchema,
347
337
  TokenTransferErc20Params$outboundSchema,
348
338
  IncreaseAllowanceParams$outboundSchema,
349
- IncreaseAllowanceAnyParams$outboundSchema,
350
339
  AaveBorrowParams$outboundSchema,
351
340
  AaveRepayParams$outboundSchema,
352
341
  MorphoBorrowParams$outboundSchema,
@@ -413,7 +402,6 @@ export const UserOperation$inboundSchema: z.ZodType<
413
402
  MorphoWithdrawParams$inboundSchema,
414
403
  TokenTransferErc20Params$inboundSchema,
415
404
  IncreaseAllowanceParams$inboundSchema,
416
- IncreaseAllowanceAnyParams$inboundSchema,
417
405
  AaveBorrowParams$inboundSchema,
418
406
  AaveRepayParams$inboundSchema,
419
407
  MorphoBorrowParams$inboundSchema,
@@ -454,7 +442,6 @@ export type UserOperation$Outbound = {
454
442
  | MorphoWithdrawParams$Outbound
455
443
  | TokenTransferErc20Params$Outbound
456
444
  | IncreaseAllowanceParams$Outbound
457
- | IncreaseAllowanceAnyParams$Outbound
458
445
  | AaveBorrowParams$Outbound
459
446
  | AaveRepayParams$Outbound
460
447
  | MorphoBorrowParams$Outbound
@@ -494,7 +481,6 @@ export const UserOperation$outboundSchema: z.ZodType<
494
481
  MorphoWithdrawParams$outboundSchema,
495
482
  TokenTransferErc20Params$outboundSchema,
496
483
  IncreaseAllowanceParams$outboundSchema,
497
- IncreaseAllowanceAnyParams$outboundSchema,
498
484
  AaveBorrowParams$outboundSchema,
499
485
  AaveRepayParams$outboundSchema,
500
486
  MorphoBorrowParams$outboundSchema,
@@ -154,7 +154,7 @@ export class Universal extends ClientSDK {
154
154
  }
155
155
 
156
156
  /**
157
- * Set Allowance - Protocol
157
+ * Set Allowance (symbol)
158
158
  *
159
159
  * @remarks
160
160
  * This endpoint allows users to modify the token allowance for a specific protocol.
@@ -1,117 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * Select the protocol.
5
- *
6
- * @remarks
7
- *
8
- * E.g. for increasing ERC-20 allowance.
9
- */
10
- export declare const ContractName: {
11
- readonly AaveV3Pool: "AaveV3Pool";
12
- readonly AaveV3Oracle: "AaveV3Oracle";
13
- readonly AaveV3ProtocolDataProvider: "AaveV3ProtocolDataProvider";
14
- readonly AerodromeBasicFactory: "AerodromeBasicFactory";
15
- readonly AerodromeSlipstreamFactory: "AerodromeSlipstreamFactory";
16
- readonly AerodromeBasicRouter: "AerodromeBasicRouter";
17
- readonly AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter";
18
- readonly AerodromeBasicPool: "AerodromeBasicPool";
19
- readonly AerodromeSlipstreamPool: "AerodromeSlipstreamPool";
20
- readonly AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager";
21
- readonly UniswapV3Pool: "UniswapV3Pool";
22
- readonly UniswapV3Router: "UniswapV3Router";
23
- readonly UniswapV3Factory: "UniswapV3Factory";
24
- readonly UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager";
25
- readonly UniswapV3Quoter: "UniswapV3Quoter";
26
- readonly ChainlinkEACAggregatorProxy: "ChainlinkEACAggregatorProxy";
27
- readonly Morpho: "Morpho";
28
- readonly MorphoVault: "MorphoVault";
29
- readonly MorphoOracle: "MorphoOracle";
30
- readonly SkyDaiUsdsConverter: "SkyDaiUsdsConverter";
31
- readonly SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter";
32
- readonly SkyUsdsVault: "SkyUsdsVault";
33
- readonly PendleRouter: "PendleRouter";
34
- readonly PendleMarket: "PendleMarket";
35
- readonly PendleSy: "PendleSy";
36
- readonly PendleYt: "PendleYt";
37
- readonly Multicall: "Multicall";
38
- };
39
- /**
40
- * Select the protocol.
41
- *
42
- * @remarks
43
- *
44
- * E.g. for increasing ERC-20 allowance.
45
- */
46
- export type ContractName = ClosedEnum<typeof ContractName>;
47
- /** @internal */
48
- export declare const ContractName$inboundSchema: z.ZodNativeEnum<typeof ContractName>;
49
- /** @internal */
50
- export declare const ContractName$outboundSchema: z.ZodNativeEnum<typeof ContractName>;
51
- /**
52
- * @internal
53
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
- */
55
- export declare namespace ContractName$ {
56
- /** @deprecated use `ContractName$inboundSchema` instead. */
57
- const inboundSchema: z.ZodNativeEnum<{
58
- readonly AaveV3Pool: "AaveV3Pool";
59
- readonly AaveV3Oracle: "AaveV3Oracle";
60
- readonly AaveV3ProtocolDataProvider: "AaveV3ProtocolDataProvider";
61
- readonly AerodromeBasicFactory: "AerodromeBasicFactory";
62
- readonly AerodromeSlipstreamFactory: "AerodromeSlipstreamFactory";
63
- readonly AerodromeBasicRouter: "AerodromeBasicRouter";
64
- readonly AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter";
65
- readonly AerodromeBasicPool: "AerodromeBasicPool";
66
- readonly AerodromeSlipstreamPool: "AerodromeSlipstreamPool";
67
- readonly AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager";
68
- readonly UniswapV3Pool: "UniswapV3Pool";
69
- readonly UniswapV3Router: "UniswapV3Router";
70
- readonly UniswapV3Factory: "UniswapV3Factory";
71
- readonly UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager";
72
- readonly UniswapV3Quoter: "UniswapV3Quoter";
73
- readonly ChainlinkEACAggregatorProxy: "ChainlinkEACAggregatorProxy";
74
- readonly Morpho: "Morpho";
75
- readonly MorphoVault: "MorphoVault";
76
- readonly MorphoOracle: "MorphoOracle";
77
- readonly SkyDaiUsdsConverter: "SkyDaiUsdsConverter";
78
- readonly SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter";
79
- readonly SkyUsdsVault: "SkyUsdsVault";
80
- readonly PendleRouter: "PendleRouter";
81
- readonly PendleMarket: "PendleMarket";
82
- readonly PendleSy: "PendleSy";
83
- readonly PendleYt: "PendleYt";
84
- readonly Multicall: "Multicall";
85
- }>;
86
- /** @deprecated use `ContractName$outboundSchema` instead. */
87
- const outboundSchema: z.ZodNativeEnum<{
88
- readonly AaveV3Pool: "AaveV3Pool";
89
- readonly AaveV3Oracle: "AaveV3Oracle";
90
- readonly AaveV3ProtocolDataProvider: "AaveV3ProtocolDataProvider";
91
- readonly AerodromeBasicFactory: "AerodromeBasicFactory";
92
- readonly AerodromeSlipstreamFactory: "AerodromeSlipstreamFactory";
93
- readonly AerodromeBasicRouter: "AerodromeBasicRouter";
94
- readonly AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter";
95
- readonly AerodromeBasicPool: "AerodromeBasicPool";
96
- readonly AerodromeSlipstreamPool: "AerodromeSlipstreamPool";
97
- readonly AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager";
98
- readonly UniswapV3Pool: "UniswapV3Pool";
99
- readonly UniswapV3Router: "UniswapV3Router";
100
- readonly UniswapV3Factory: "UniswapV3Factory";
101
- readonly UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager";
102
- readonly UniswapV3Quoter: "UniswapV3Quoter";
103
- readonly ChainlinkEACAggregatorProxy: "ChainlinkEACAggregatorProxy";
104
- readonly Morpho: "Morpho";
105
- readonly MorphoVault: "MorphoVault";
106
- readonly MorphoOracle: "MorphoOracle";
107
- readonly SkyDaiUsdsConverter: "SkyDaiUsdsConverter";
108
- readonly SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter";
109
- readonly SkyUsdsVault: "SkyUsdsVault";
110
- readonly PendleRouter: "PendleRouter";
111
- readonly PendleMarket: "PendleMarket";
112
- readonly PendleSy: "PendleSy";
113
- readonly PendleYt: "PendleYt";
114
- readonly Multicall: "Multicall";
115
- }>;
116
- }
117
- //# sourceMappingURL=contractname.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contractname.d.ts","sourceRoot":"","sources":["../../../../src/models/components/contractname.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bf,CAAC;AACX;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA8B,CAAC;CAC3D"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ContractName$ = exports.ContractName$outboundSchema = exports.ContractName$inboundSchema = exports.ContractName = void 0;
40
- const z = __importStar(require("zod"));
41
- /**
42
- * Select the protocol.
43
- *
44
- * @remarks
45
- *
46
- * E.g. for increasing ERC-20 allowance.
47
- */
48
- exports.ContractName = {
49
- AaveV3Pool: "AaveV3Pool",
50
- AaveV3Oracle: "AaveV3Oracle",
51
- AaveV3ProtocolDataProvider: "AaveV3ProtocolDataProvider",
52
- AerodromeBasicFactory: "AerodromeBasicFactory",
53
- AerodromeSlipstreamFactory: "AerodromeSlipstreamFactory",
54
- AerodromeBasicRouter: "AerodromeBasicRouter",
55
- AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
56
- AerodromeBasicPool: "AerodromeBasicPool",
57
- AerodromeSlipstreamPool: "AerodromeSlipstreamPool",
58
- AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
59
- UniswapV3Pool: "UniswapV3Pool",
60
- UniswapV3Router: "UniswapV3Router",
61
- UniswapV3Factory: "UniswapV3Factory",
62
- UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
63
- UniswapV3Quoter: "UniswapV3Quoter",
64
- ChainlinkEACAggregatorProxy: "ChainlinkEACAggregatorProxy",
65
- Morpho: "Morpho",
66
- MorphoVault: "MorphoVault",
67
- MorphoOracle: "MorphoOracle",
68
- SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
69
- SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
70
- SkyUsdsVault: "SkyUsdsVault",
71
- PendleRouter: "PendleRouter",
72
- PendleMarket: "PendleMarket",
73
- PendleSy: "PendleSy",
74
- PendleYt: "PendleYt",
75
- Multicall: "Multicall",
76
- };
77
- /** @internal */
78
- exports.ContractName$inboundSchema = z.nativeEnum(exports.ContractName);
79
- /** @internal */
80
- exports.ContractName$outboundSchema = exports.ContractName$inboundSchema;
81
- /**
82
- * @internal
83
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
- */
85
- var ContractName$;
86
- (function (ContractName$) {
87
- /** @deprecated use `ContractName$inboundSchema` instead. */
88
- ContractName$.inboundSchema = exports.ContractName$inboundSchema;
89
- /** @deprecated use `ContractName$outboundSchema` instead. */
90
- ContractName$.outboundSchema = exports.ContractName$outboundSchema;
91
- })(ContractName$ || (exports.ContractName$ = ContractName$ = {}));
92
- //# sourceMappingURL=contractname.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contractname.js","sourceRoot":"","sources":["../../../../src/models/components/contractname.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;;;;;GAMG;AACU,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,0BAA0B,EAAE,4BAA4B;IACxD,qBAAqB,EAAE,uBAAuB;IAC9C,0BAA0B,EAAE,4BAA4B;IACxD,oBAAoB,EAAE,sBAAsB;IAC5C,yBAAyB,EAAE,2BAA2B;IACtD,kBAAkB,EAAE,oBAAoB;IACxC,uBAAuB,EAAE,yBAAyB;IAClD,6CAA6C,EAC3C,+CAA+C;IACjD,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,gBAAgB,EAAE,kBAAkB;IACpC,2BAA2B,EAAE,6BAA6B;IAC1D,eAAe,EAAE,iBAAiB;IAClC,2BAA2B,EAAE,6BAA6B;IAC1D,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,mBAAmB,EAAE,qBAAqB;IAC1C,oBAAoB,EAAE,sBAAsB;IAC5C,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CACd,CAAC;AAUX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAE7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B;;;GAGG;AACH,IAAiB,aAAa,CAK7B;AALD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAC5D,CAAC,EALgB,aAAa,6BAAb,aAAa,QAK7B"}