@compass-labs/api-sdk 0.5.16 → 0.5.18
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.
- package/bin/mcp-server.js +13 -59
- package/bin/mcp-server.js.map +7 -7
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/allowanceinforesponse.d.ts +2 -8
- package/dist/commonjs/models/components/allowanceinforesponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/allowanceinforesponse.js +2 -3
- package/dist/commonjs/models/components/allowanceinforesponse.js.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.d.ts +16 -158
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +14 -59
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/allowanceinforesponse.d.ts +2 -8
- package/dist/esm/models/components/allowanceinforesponse.d.ts.map +1 -1
- package/dist/esm/models/components/allowanceinforesponse.js +2 -3
- package/dist/esm/models/components/allowanceinforesponse.js.map +1 -1
- package/dist/esm/models/operations/genericallowance.d.ts +16 -158
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +11 -58
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/docs/sdks/universal/README.md +6 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/allowanceinforesponse.ts +4 -14
- package/src/models/operations/genericallowance.ts +41 -72
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.5.
|
|
34
|
+
readonly sdkVersion: "0.5.18";
|
|
35
35
|
readonly genVersion: "2.628.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.5.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.5.18 2.628.0 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
|
-
sdkVersion: "0.5.
|
|
34
|
+
sdkVersion: "0.5.18",
|
|
35
35
|
genVersion: "2.628.0",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.5.18 2.628.0 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.5.
|
|
25
|
+
currentVersion: "0.5.18",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -88,7 +88,7 @@ const universalWrapEth_js_1 = require("./tools/universalWrapEth.js");
|
|
|
88
88
|
function createMCPServer(deps) {
|
|
89
89
|
const server = new mcp_js_1.McpServer({
|
|
90
90
|
name: "CompassApiSDK",
|
|
91
|
-
version: "0.5.
|
|
91
|
+
version: "0.5.18",
|
|
92
92
|
});
|
|
93
93
|
const client = new core_js_1.CompassApiSDKCore({
|
|
94
94
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { TokenEnum } from "./tokenenum.js";
|
|
5
4
|
/**
|
|
6
5
|
* Response model for token allowance information.
|
|
7
6
|
*/
|
|
@@ -15,14 +14,9 @@ export type AllowanceInfoResponse = {
|
|
|
15
14
|
*/
|
|
16
15
|
decimals: number;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
*
|
|
22
|
-
* This class is used to represent the token in the system. Notice individual
|
|
23
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
17
|
+
* Symbol of the token.
|
|
24
18
|
*/
|
|
25
|
-
tokenSymbol:
|
|
19
|
+
tokenSymbol: string;
|
|
26
20
|
/**
|
|
27
21
|
* Address of the token
|
|
28
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowanceinforesponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"allowanceinforesponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,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FromJSON;
|
|
|
42
42
|
const z = __importStar(require("zod"));
|
|
43
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
const tokenenum_js_1 = require("./tokenenum.js");
|
|
46
45
|
/** @internal */
|
|
47
46
|
exports.AllowanceInfoResponse$inboundSchema = z.object({
|
|
48
47
|
amount: z.string(),
|
|
49
48
|
decimals: z.number().int(),
|
|
50
|
-
token_symbol:
|
|
49
|
+
token_symbol: z.string(),
|
|
51
50
|
token_address: z.string(),
|
|
52
51
|
contract_address: z.string(),
|
|
53
52
|
}).transform((v) => {
|
|
@@ -61,7 +60,7 @@ exports.AllowanceInfoResponse$inboundSchema = z.object({
|
|
|
61
60
|
exports.AllowanceInfoResponse$outboundSchema = z.object({
|
|
62
61
|
amount: z.string(),
|
|
63
62
|
decimals: z.number().int(),
|
|
64
|
-
tokenSymbol:
|
|
63
|
+
tokenSymbol: z.string(),
|
|
65
64
|
tokenAddress: z.string(),
|
|
66
65
|
contractAddress: z.string(),
|
|
67
66
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowanceinforesponse.js","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"allowanceinforesponse.js","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,kEAMC;AAED,sEAQC;AA5GD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA8BjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,C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AgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import * as components from "../components/index.js";
|
|
4
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
6
|
/**
|
|
6
7
|
* The chain to use.
|
|
@@ -15,68 +16,9 @@ export declare const GenericAllowanceChain: {
|
|
|
15
16
|
*/
|
|
16
17
|
export type GenericAllowanceChain = ClosedEnum<typeof GenericAllowanceChain>;
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
*
|
|
22
|
-
* This class is used to represent the token in the system. Notice individual
|
|
23
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
19
|
+
* The symbol or address of the token for which the allowance is checked..
|
|
24
20
|
*/
|
|
25
|
-
export
|
|
26
|
-
readonly OneINCH: "1INCH";
|
|
27
|
-
readonly Aave: "AAVE";
|
|
28
|
-
readonly Bal: "BAL";
|
|
29
|
-
readonly CbBTC: "cbBTC";
|
|
30
|
-
readonly CbETH: "cbETH";
|
|
31
|
-
readonly Crv: "CRV";
|
|
32
|
-
readonly CrvUSD: "crvUSD";
|
|
33
|
-
readonly Dai: "DAI";
|
|
34
|
-
readonly Ens: "ENS";
|
|
35
|
-
readonly ETHx: "ETHx";
|
|
36
|
-
readonly Frax: "FRAX";
|
|
37
|
-
readonly Fxs: "FXS";
|
|
38
|
-
readonly Gho: "GHO";
|
|
39
|
-
readonly Knc: "KNC";
|
|
40
|
-
readonly Ldo: "LDO";
|
|
41
|
-
readonly Link: "LINK";
|
|
42
|
-
readonly Lusd: "LUSD";
|
|
43
|
-
readonly Mkr: "MKR";
|
|
44
|
-
readonly OsETH: "osETH";
|
|
45
|
-
readonly Pyusd: "PYUSD";
|
|
46
|
-
readonly RETH: "rETH";
|
|
47
|
-
readonly Rpl: "RPL";
|
|
48
|
-
readonly RsETH: "rsETH";
|
|
49
|
-
readonly SDAI: "sDAI";
|
|
50
|
-
readonly Snx: "SNX";
|
|
51
|
-
readonly Stg: "STG";
|
|
52
|
-
readonly SUSDe: "sUSDe";
|
|
53
|
-
readonly TBTC: "tBTC";
|
|
54
|
-
readonly Uni: "UNI";
|
|
55
|
-
readonly Usdc: "USDC";
|
|
56
|
-
readonly USDe: "USDe";
|
|
57
|
-
readonly Usds: "USDS";
|
|
58
|
-
readonly Usdt: "USDT";
|
|
59
|
-
readonly Wbtc: "WBTC";
|
|
60
|
-
readonly WeETH: "weETH";
|
|
61
|
-
readonly Weth: "WETH";
|
|
62
|
-
readonly WstETH: "wstETH";
|
|
63
|
-
readonly Arb: "ARB";
|
|
64
|
-
readonly Eurs: "EURS";
|
|
65
|
-
readonly Mai: "MAI";
|
|
66
|
-
readonly USDCe: "USDCe";
|
|
67
|
-
readonly Aero: "AERO";
|
|
68
|
-
readonly Eur: "EUR";
|
|
69
|
-
readonly Virtual: "VIRTUAL";
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* A class representing the token.
|
|
73
|
-
*
|
|
74
|
-
* @remarks
|
|
75
|
-
*
|
|
76
|
-
* This class is used to represent the token in the system. Notice individual
|
|
77
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
78
|
-
*/
|
|
79
|
-
export type GenericAllowanceToken = ClosedEnum<typeof GenericAllowanceToken>;
|
|
21
|
+
export type GenericAllowanceToken = components.TokenEnum | string;
|
|
80
22
|
/**
|
|
81
23
|
* The name of the contract to check allowance for.
|
|
82
24
|
*/
|
|
@@ -107,9 +49,9 @@ export type GenericAllowanceRequest = {
|
|
|
107
49
|
*/
|
|
108
50
|
user?: string | undefined;
|
|
109
51
|
/**
|
|
110
|
-
* The symbol of the token for which the allowance is checked..
|
|
52
|
+
* The symbol or address of the token for which the allowance is checked..
|
|
111
53
|
*/
|
|
112
|
-
token
|
|
54
|
+
token: components.TokenEnum | string;
|
|
113
55
|
/**
|
|
114
56
|
* The name of the contract to check allowance for.
|
|
115
57
|
*/
|
|
@@ -138,109 +80,25 @@ export declare namespace GenericAllowanceChain$ {
|
|
|
138
80
|
}>;
|
|
139
81
|
}
|
|
140
82
|
/** @internal */
|
|
141
|
-
export declare const GenericAllowanceToken$inboundSchema: z.
|
|
83
|
+
export declare const GenericAllowanceToken$inboundSchema: z.ZodType<GenericAllowanceToken, z.ZodTypeDef, unknown>;
|
|
84
|
+
/** @internal */
|
|
85
|
+
export type GenericAllowanceToken$Outbound = string | string;
|
|
142
86
|
/** @internal */
|
|
143
|
-
export declare const GenericAllowanceToken$outboundSchema: z.
|
|
87
|
+
export declare const GenericAllowanceToken$outboundSchema: z.ZodType<GenericAllowanceToken$Outbound, z.ZodTypeDef, GenericAllowanceToken>;
|
|
144
88
|
/**
|
|
145
89
|
* @internal
|
|
146
90
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
91
|
*/
|
|
148
92
|
export declare namespace GenericAllowanceToken$ {
|
|
149
93
|
/** @deprecated use `GenericAllowanceToken$inboundSchema` instead. */
|
|
150
|
-
const inboundSchema: z.
|
|
151
|
-
readonly OneINCH: "1INCH";
|
|
152
|
-
readonly Aave: "AAVE";
|
|
153
|
-
readonly Bal: "BAL";
|
|
154
|
-
readonly CbBTC: "cbBTC";
|
|
155
|
-
readonly CbETH: "cbETH";
|
|
156
|
-
readonly Crv: "CRV";
|
|
157
|
-
readonly CrvUSD: "crvUSD";
|
|
158
|
-
readonly Dai: "DAI";
|
|
159
|
-
readonly Ens: "ENS";
|
|
160
|
-
readonly ETHx: "ETHx";
|
|
161
|
-
readonly Frax: "FRAX";
|
|
162
|
-
readonly Fxs: "FXS";
|
|
163
|
-
readonly Gho: "GHO";
|
|
164
|
-
readonly Knc: "KNC";
|
|
165
|
-
readonly Ldo: "LDO";
|
|
166
|
-
readonly Link: "LINK";
|
|
167
|
-
readonly Lusd: "LUSD";
|
|
168
|
-
readonly Mkr: "MKR";
|
|
169
|
-
readonly OsETH: "osETH";
|
|
170
|
-
readonly Pyusd: "PYUSD";
|
|
171
|
-
readonly RETH: "rETH";
|
|
172
|
-
readonly Rpl: "RPL";
|
|
173
|
-
readonly RsETH: "rsETH";
|
|
174
|
-
readonly SDAI: "sDAI";
|
|
175
|
-
readonly Snx: "SNX";
|
|
176
|
-
readonly Stg: "STG";
|
|
177
|
-
readonly SUSDe: "sUSDe";
|
|
178
|
-
readonly TBTC: "tBTC";
|
|
179
|
-
readonly Uni: "UNI";
|
|
180
|
-
readonly Usdc: "USDC";
|
|
181
|
-
readonly USDe: "USDe";
|
|
182
|
-
readonly Usds: "USDS";
|
|
183
|
-
readonly Usdt: "USDT";
|
|
184
|
-
readonly Wbtc: "WBTC";
|
|
185
|
-
readonly WeETH: "weETH";
|
|
186
|
-
readonly Weth: "WETH";
|
|
187
|
-
readonly WstETH: "wstETH";
|
|
188
|
-
readonly Arb: "ARB";
|
|
189
|
-
readonly Eurs: "EURS";
|
|
190
|
-
readonly Mai: "MAI";
|
|
191
|
-
readonly USDCe: "USDCe";
|
|
192
|
-
readonly Aero: "AERO";
|
|
193
|
-
readonly Eur: "EUR";
|
|
194
|
-
readonly Virtual: "VIRTUAL";
|
|
195
|
-
}>;
|
|
94
|
+
const inboundSchema: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
196
95
|
/** @deprecated use `GenericAllowanceToken$outboundSchema` instead. */
|
|
197
|
-
const outboundSchema: z.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
readonly Bal: "BAL";
|
|
201
|
-
readonly CbBTC: "cbBTC";
|
|
202
|
-
readonly CbETH: "cbETH";
|
|
203
|
-
readonly Crv: "CRV";
|
|
204
|
-
readonly CrvUSD: "crvUSD";
|
|
205
|
-
readonly Dai: "DAI";
|
|
206
|
-
readonly Ens: "ENS";
|
|
207
|
-
readonly ETHx: "ETHx";
|
|
208
|
-
readonly Frax: "FRAX";
|
|
209
|
-
readonly Fxs: "FXS";
|
|
210
|
-
readonly Gho: "GHO";
|
|
211
|
-
readonly Knc: "KNC";
|
|
212
|
-
readonly Ldo: "LDO";
|
|
213
|
-
readonly Link: "LINK";
|
|
214
|
-
readonly Lusd: "LUSD";
|
|
215
|
-
readonly Mkr: "MKR";
|
|
216
|
-
readonly OsETH: "osETH";
|
|
217
|
-
readonly Pyusd: "PYUSD";
|
|
218
|
-
readonly RETH: "rETH";
|
|
219
|
-
readonly Rpl: "RPL";
|
|
220
|
-
readonly RsETH: "rsETH";
|
|
221
|
-
readonly SDAI: "sDAI";
|
|
222
|
-
readonly Snx: "SNX";
|
|
223
|
-
readonly Stg: "STG";
|
|
224
|
-
readonly SUSDe: "sUSDe";
|
|
225
|
-
readonly TBTC: "tBTC";
|
|
226
|
-
readonly Uni: "UNI";
|
|
227
|
-
readonly Usdc: "USDC";
|
|
228
|
-
readonly USDe: "USDe";
|
|
229
|
-
readonly Usds: "USDS";
|
|
230
|
-
readonly Usdt: "USDT";
|
|
231
|
-
readonly Wbtc: "WBTC";
|
|
232
|
-
readonly WeETH: "weETH";
|
|
233
|
-
readonly Weth: "WETH";
|
|
234
|
-
readonly WstETH: "wstETH";
|
|
235
|
-
readonly Arb: "ARB";
|
|
236
|
-
readonly Eurs: "EURS";
|
|
237
|
-
readonly Mai: "MAI";
|
|
238
|
-
readonly USDCe: "USDCe";
|
|
239
|
-
readonly Aero: "AERO";
|
|
240
|
-
readonly Eur: "EUR";
|
|
241
|
-
readonly Virtual: "VIRTUAL";
|
|
242
|
-
}>;
|
|
96
|
+
const outboundSchema: z.ZodType<string, z.ZodTypeDef, string>;
|
|
97
|
+
/** @deprecated use `GenericAllowanceToken$Outbound` instead. */
|
|
98
|
+
type Outbound = GenericAllowanceToken$Outbound;
|
|
243
99
|
}
|
|
100
|
+
export declare function genericAllowanceTokenToJSON(genericAllowanceToken: GenericAllowanceToken): string;
|
|
101
|
+
export declare function genericAllowanceTokenFromJSON(jsonString: string): SafeParseResult<GenericAllowanceToken, SDKValidationError>;
|
|
244
102
|
/** @internal */
|
|
245
103
|
export declare const ContractName$inboundSchema: z.ZodNativeEnum<typeof ContractName>;
|
|
246
104
|
/** @internal */
|
|
@@ -285,7 +143,7 @@ export declare const GenericAllowanceRequest$inboundSchema: z.ZodType<GenericAll
|
|
|
285
143
|
export type GenericAllowanceRequest$Outbound = {
|
|
286
144
|
chain: string;
|
|
287
145
|
user: string;
|
|
288
|
-
token: string;
|
|
146
|
+
token: string | string;
|
|
289
147
|
contract_name: string;
|
|
290
148
|
};
|
|
291
149
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genericallowance.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/genericallowance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"genericallowance.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/genericallowance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EA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Aa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAUvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -36,12 +36,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.GenericAllowanceRequest$ = exports.GenericAllowanceRequest$outboundSchema = exports.GenericAllowanceRequest$inboundSchema = exports.ContractName$ = exports.ContractName$outboundSchema = exports.ContractName$inboundSchema = exports.GenericAllowanceToken$ = exports.GenericAllowanceToken$outboundSchema = exports.GenericAllowanceToken$inboundSchema = exports.GenericAllowanceChain$ = exports.GenericAllowanceChain$outboundSchema = exports.GenericAllowanceChain$inboundSchema = exports.ContractName = exports.
|
|
39
|
+
exports.GenericAllowanceRequest$ = exports.GenericAllowanceRequest$outboundSchema = exports.GenericAllowanceRequest$inboundSchema = exports.ContractName$ = exports.ContractName$outboundSchema = exports.ContractName$inboundSchema = exports.GenericAllowanceToken$ = exports.GenericAllowanceToken$outboundSchema = exports.GenericAllowanceToken$inboundSchema = exports.GenericAllowanceChain$ = exports.GenericAllowanceChain$outboundSchema = exports.GenericAllowanceChain$inboundSchema = exports.ContractName = exports.GenericAllowanceChain = void 0;
|
|
40
|
+
exports.genericAllowanceTokenToJSON = genericAllowanceTokenToJSON;
|
|
41
|
+
exports.genericAllowanceTokenFromJSON = genericAllowanceTokenFromJSON;
|
|
40
42
|
exports.genericAllowanceRequestToJSON = genericAllowanceRequestToJSON;
|
|
41
43
|
exports.genericAllowanceRequestFromJSON = genericAllowanceRequestFromJSON;
|
|
42
44
|
const z = __importStar(require("zod"));
|
|
43
45
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
46
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const components = __importStar(require("../components/index.js"));
|
|
45
48
|
/**
|
|
46
49
|
* The chain to use.
|
|
47
50
|
*/
|
|
@@ -50,60 +53,6 @@ exports.GenericAllowanceChain = {
|
|
|
50
53
|
EthereumMainnet: "ethereum:mainnet",
|
|
51
54
|
ArbitrumMainnet: "arbitrum:mainnet",
|
|
52
55
|
};
|
|
53
|
-
/**
|
|
54
|
-
* A class representing the token.
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
*
|
|
58
|
-
* This class is used to represent the token in the system. Notice individual
|
|
59
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
60
|
-
*/
|
|
61
|
-
exports.GenericAllowanceToken = {
|
|
62
|
-
OneINCH: "1INCH",
|
|
63
|
-
Aave: "AAVE",
|
|
64
|
-
Bal: "BAL",
|
|
65
|
-
CbBTC: "cbBTC",
|
|
66
|
-
CbETH: "cbETH",
|
|
67
|
-
Crv: "CRV",
|
|
68
|
-
CrvUSD: "crvUSD",
|
|
69
|
-
Dai: "DAI",
|
|
70
|
-
Ens: "ENS",
|
|
71
|
-
ETHx: "ETHx",
|
|
72
|
-
Frax: "FRAX",
|
|
73
|
-
Fxs: "FXS",
|
|
74
|
-
Gho: "GHO",
|
|
75
|
-
Knc: "KNC",
|
|
76
|
-
Ldo: "LDO",
|
|
77
|
-
Link: "LINK",
|
|
78
|
-
Lusd: "LUSD",
|
|
79
|
-
Mkr: "MKR",
|
|
80
|
-
OsETH: "osETH",
|
|
81
|
-
Pyusd: "PYUSD",
|
|
82
|
-
RETH: "rETH",
|
|
83
|
-
Rpl: "RPL",
|
|
84
|
-
RsETH: "rsETH",
|
|
85
|
-
SDAI: "sDAI",
|
|
86
|
-
Snx: "SNX",
|
|
87
|
-
Stg: "STG",
|
|
88
|
-
SUSDe: "sUSDe",
|
|
89
|
-
TBTC: "tBTC",
|
|
90
|
-
Uni: "UNI",
|
|
91
|
-
Usdc: "USDC",
|
|
92
|
-
USDe: "USDe",
|
|
93
|
-
Usds: "USDS",
|
|
94
|
-
Usdt: "USDT",
|
|
95
|
-
Wbtc: "WBTC",
|
|
96
|
-
WeETH: "weETH",
|
|
97
|
-
Weth: "WETH",
|
|
98
|
-
WstETH: "wstETH",
|
|
99
|
-
Arb: "ARB",
|
|
100
|
-
Eurs: "EURS",
|
|
101
|
-
Mai: "MAI",
|
|
102
|
-
USDCe: "USDCe",
|
|
103
|
-
Aero: "AERO",
|
|
104
|
-
Eur: "EUR",
|
|
105
|
-
Virtual: "VIRTUAL",
|
|
106
|
-
};
|
|
107
56
|
/**
|
|
108
57
|
* The name of the contract to check allowance for.
|
|
109
58
|
*/
|
|
@@ -136,9 +85,9 @@ var GenericAllowanceChain$;
|
|
|
136
85
|
GenericAllowanceChain$.outboundSchema = exports.GenericAllowanceChain$outboundSchema;
|
|
137
86
|
})(GenericAllowanceChain$ || (exports.GenericAllowanceChain$ = GenericAllowanceChain$ = {}));
|
|
138
87
|
/** @internal */
|
|
139
|
-
exports.GenericAllowanceToken$inboundSchema = z.
|
|
88
|
+
exports.GenericAllowanceToken$inboundSchema = z.union([components.TokenEnum$inboundSchema, z.string()]);
|
|
140
89
|
/** @internal */
|
|
141
|
-
exports.GenericAllowanceToken$outboundSchema =
|
|
90
|
+
exports.GenericAllowanceToken$outboundSchema = z.union([components.TokenEnum$outboundSchema, z.string()]);
|
|
142
91
|
/**
|
|
143
92
|
* @internal
|
|
144
93
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -150,6 +99,12 @@ var GenericAllowanceToken$;
|
|
|
150
99
|
/** @deprecated use `GenericAllowanceToken$outboundSchema` instead. */
|
|
151
100
|
GenericAllowanceToken$.outboundSchema = exports.GenericAllowanceToken$outboundSchema;
|
|
152
101
|
})(GenericAllowanceToken$ || (exports.GenericAllowanceToken$ = GenericAllowanceToken$ = {}));
|
|
102
|
+
function genericAllowanceTokenToJSON(genericAllowanceToken) {
|
|
103
|
+
return JSON.stringify(exports.GenericAllowanceToken$outboundSchema.parse(genericAllowanceToken));
|
|
104
|
+
}
|
|
105
|
+
function genericAllowanceTokenFromJSON(jsonString) {
|
|
106
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GenericAllowanceToken$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GenericAllowanceToken' from JSON`);
|
|
107
|
+
}
|
|
153
108
|
/** @internal */
|
|
154
109
|
exports.ContractName$inboundSchema = z.nativeEnum(exports.ContractName);
|
|
155
110
|
/** @internal */
|
|
@@ -169,7 +124,7 @@ var ContractName$;
|
|
|
169
124
|
exports.GenericAllowanceRequest$inboundSchema = z.object({
|
|
170
125
|
chain: exports.GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
171
126
|
user: z.string().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
172
|
-
token:
|
|
127
|
+
token: z.union([components.TokenEnum$inboundSchema, z.string()]),
|
|
173
128
|
contract_name: exports.ContractName$inboundSchema.default("AaveV3Pool"),
|
|
174
129
|
}).transform((v) => {
|
|
175
130
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -180,7 +135,7 @@ exports.GenericAllowanceRequest$inboundSchema = z.object({
|
|
|
180
135
|
exports.GenericAllowanceRequest$outboundSchema = z.object({
|
|
181
136
|
chain: exports.GenericAllowanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
182
137
|
user: z.string().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
183
|
-
token:
|
|
138
|
+
token: z.union([components.TokenEnum$outboundSchema, z.string()]),
|
|
184
139
|
contractName: exports.ContractName$outboundSchema.default("AaveV3Pool"),
|
|
185
140
|
}).transform((v) => {
|
|
186
141
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genericallowance.js","sourceRoot":"","sources":["../../../../src/models/operations/genericallowance.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"genericallowance.js","sourceRoot":"","sources":["../../../../src/models/operations/genericallowance.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHH,kEAMC;AAED,sEAQC;AA0ED,sEAMC;AAED,0EAQC;AAhOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,mEAAqD;AAGrD;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAWX;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,oBAAoB,EAAE,sBAAsB;IAC5C,yBAAyB,EAAE,2BAA2B;IACtD,6CAA6C,EAC3C,+CAA+C;IACjD,eAAe,EAAE,iBAAiB;IAClC,2BAA2B,EAAE,6BAA6B;IAC1D,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,qBAAqB;IAC1C,oBAAoB,EAAE,sBAAsB;IAC5C,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;CACpB,CAAC;AAyBX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAC;AAExC,gBAAgB;AACH,QAAA,oCA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C,CAAC;AAEH;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC;AAED,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.5.
|
|
34
|
+
readonly sdkVersion: "0.5.18";
|
|
35
35
|
readonly genVersion: "2.628.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.5.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.5.18 2.628.0 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
|
-
sdkVersion: "0.5.
|
|
30
|
+
sdkVersion: "0.5.18",
|
|
31
31
|
genVersion: "2.628.0",
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.5.18 2.628.0 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -85,7 +85,7 @@ import { tool$universalWrapEth } from "./tools/universalWrapEth.js";
|
|
|
85
85
|
export function createMCPServer(deps) {
|
|
86
86
|
const server = new McpServer({
|
|
87
87
|
name: "CompassApiSDK",
|
|
88
|
-
version: "0.5.
|
|
88
|
+
version: "0.5.18",
|
|
89
89
|
});
|
|
90
90
|
const client = new CompassApiSDKCore({
|
|
91
91
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { TokenEnum } from "./tokenenum.js";
|
|
5
4
|
/**
|
|
6
5
|
* Response model for token allowance information.
|
|
7
6
|
*/
|
|
@@ -15,14 +14,9 @@ export type AllowanceInfoResponse = {
|
|
|
15
14
|
*/
|
|
16
15
|
decimals: number;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
*
|
|
22
|
-
* This class is used to represent the token in the system. Notice individual
|
|
23
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
17
|
+
* Symbol of the token.
|
|
24
18
|
*/
|
|
25
|
-
tokenSymbol:
|
|
19
|
+
tokenSymbol: string;
|
|
26
20
|
/**
|
|
27
21
|
* Address of the token
|
|
28
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowanceinforesponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"allowanceinforesponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAarB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { TokenEnum$inboundSchema, TokenEnum$outboundSchema, } from "./tokenenum.js";
|
|
8
7
|
/** @internal */
|
|
9
8
|
export const AllowanceInfoResponse$inboundSchema = z.object({
|
|
10
9
|
amount: z.string(),
|
|
11
10
|
decimals: z.number().int(),
|
|
12
|
-
token_symbol:
|
|
11
|
+
token_symbol: z.string(),
|
|
13
12
|
token_address: z.string(),
|
|
14
13
|
contract_address: z.string(),
|
|
15
14
|
}).transform((v) => {
|
|
@@ -23,7 +22,7 @@ export const AllowanceInfoResponse$inboundSchema = z.object({
|
|
|
23
22
|
export const AllowanceInfoResponse$outboundSchema = z.object({
|
|
24
23
|
amount: z.string(),
|
|
25
24
|
decimals: z.number().int(),
|
|
26
|
-
tokenSymbol:
|
|
25
|
+
tokenSymbol: z.string(),
|
|
27
26
|
tokenAddress: z.string(),
|
|
28
27
|
contractAddress: z.string(),
|
|
29
28
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowanceinforesponse.js","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"allowanceinforesponse.js","sourceRoot":"","sources":["../../../../src/models/components/allowanceinforesponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA8BjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,eAAe,EAAE,cAAc;QAC/B,kBAAkB,EAAE,iBAAiB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAA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