@compass-labs/api-sdk 1.0.9 → 1.0.10

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 (31) hide show
  1. package/bin/mcp-server.js +9 -16
  2. package/bin/mcp-server.js.map +6 -6
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/lib/config.js.map +1 -1
  6. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  7. package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js.map +1 -1
  10. package/dist/commonjs/models/operations/v1tokenprice.d.ts +2 -27
  11. package/dist/commonjs/models/operations/v1tokenprice.d.ts.map +1 -1
  12. package/dist/commonjs/models/operations/v1tokenprice.js +3 -27
  13. package/dist/commonjs/models/operations/v1tokenprice.js.map +1 -1
  14. package/dist/esm/lib/config.d.ts +3 -3
  15. package/dist/esm/lib/config.js +3 -3
  16. package/dist/esm/lib/config.js.map +1 -1
  17. package/dist/esm/mcp-server/mcp-server.js +1 -1
  18. package/dist/esm/mcp-server/mcp-server.js.map +1 -1
  19. package/dist/esm/mcp-server/server.js +1 -1
  20. package/dist/esm/mcp-server/server.js.map +1 -1
  21. package/dist/esm/models/operations/v1tokenprice.d.ts +2 -27
  22. package/dist/esm/models/operations/v1tokenprice.d.ts.map +1 -1
  23. package/dist/esm/models/operations/v1tokenprice.js +2 -24
  24. package/dist/esm/models/operations/v1tokenprice.js.map +1 -1
  25. package/examples/aaveV3AaveAaveSupportedTokens.example.ts +1 -1
  26. package/jsr.json +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/config.ts +3 -3
  29. package/src/mcp-server/mcp-server.ts +1 -1
  30. package/src/mcp-server/server.ts +1 -1
  31. package/src/models/operations/v1tokenprice.ts +4 -58
@@ -6,7 +6,6 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as components from "../components/index.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
 
12
11
  export const V1TokenPriceChain = {
@@ -16,11 +15,6 @@ export const V1TokenPriceChain = {
16
15
  } as const;
17
16
  export type V1TokenPriceChain = ClosedEnum<typeof V1TokenPriceChain>;
18
17
 
19
- /**
20
- * The symbol or address of the token for which to get the price.
21
- */
22
- export type V1TokenPriceToken = components.TokenEnum | string;
23
-
24
18
  export type V1TokenPriceRequest = {
25
19
  chain?: V1TokenPriceChain | undefined;
26
20
  /**
@@ -30,7 +24,7 @@ export type V1TokenPriceRequest = {
30
24
  /**
31
25
  * The symbol or address of the token for which to get the price.
32
26
  */
33
- token: components.TokenEnum | string;
27
+ token?: any | undefined;
34
28
  };
35
29
 
36
30
  /** @internal */
@@ -54,54 +48,6 @@ export namespace V1TokenPriceChain$ {
54
48
  export const outboundSchema = V1TokenPriceChain$outboundSchema;
55
49
  }
56
50
 
57
- /** @internal */
58
- export const V1TokenPriceToken$inboundSchema: z.ZodType<
59
- V1TokenPriceToken,
60
- z.ZodTypeDef,
61
- unknown
62
- > = z.union([components.TokenEnum$inboundSchema, z.string()]);
63
-
64
- /** @internal */
65
- export type V1TokenPriceToken$Outbound = string | string;
66
-
67
- /** @internal */
68
- export const V1TokenPriceToken$outboundSchema: z.ZodType<
69
- V1TokenPriceToken$Outbound,
70
- z.ZodTypeDef,
71
- V1TokenPriceToken
72
- > = z.union([components.TokenEnum$outboundSchema, z.string()]);
73
-
74
- /**
75
- * @internal
76
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
- */
78
- export namespace V1TokenPriceToken$ {
79
- /** @deprecated use `V1TokenPriceToken$inboundSchema` instead. */
80
- export const inboundSchema = V1TokenPriceToken$inboundSchema;
81
- /** @deprecated use `V1TokenPriceToken$outboundSchema` instead. */
82
- export const outboundSchema = V1TokenPriceToken$outboundSchema;
83
- /** @deprecated use `V1TokenPriceToken$Outbound` instead. */
84
- export type Outbound = V1TokenPriceToken$Outbound;
85
- }
86
-
87
- export function v1TokenPriceTokenToJSON(
88
- v1TokenPriceToken: V1TokenPriceToken,
89
- ): string {
90
- return JSON.stringify(
91
- V1TokenPriceToken$outboundSchema.parse(v1TokenPriceToken),
92
- );
93
- }
94
-
95
- export function v1TokenPriceTokenFromJSON(
96
- jsonString: string,
97
- ): SafeParseResult<V1TokenPriceToken, SDKValidationError> {
98
- return safeParse(
99
- jsonString,
100
- (x) => V1TokenPriceToken$inboundSchema.parse(JSON.parse(x)),
101
- `Failed to parse 'V1TokenPriceToken' from JSON`,
102
- );
103
- }
104
-
105
51
  /** @internal */
106
52
  export const V1TokenPriceRequest$inboundSchema: z.ZodType<
107
53
  V1TokenPriceRequest,
@@ -110,14 +56,14 @@ export const V1TokenPriceRequest$inboundSchema: z.ZodType<
110
56
  > = z.object({
111
57
  chain: V1TokenPriceChain$inboundSchema.default("ethereum"),
112
58
  block: z.nullable(z.number().int()).optional(),
113
- token: z.union([components.TokenEnum$inboundSchema, z.string()]),
59
+ token: z.any().optional(),
114
60
  });
115
61
 
116
62
  /** @internal */
117
63
  export type V1TokenPriceRequest$Outbound = {
118
64
  chain: string;
119
65
  block?: number | null | undefined;
120
- token: string | string;
66
+ token?: any | undefined;
121
67
  };
122
68
 
123
69
  /** @internal */
@@ -128,7 +74,7 @@ export const V1TokenPriceRequest$outboundSchema: z.ZodType<
128
74
  > = z.object({
129
75
  chain: V1TokenPriceChain$outboundSchema.default("ethereum"),
130
76
  block: z.nullable(z.number().int()).optional(),
131
- token: z.union([components.TokenEnum$outboundSchema, z.string()]),
77
+ token: z.any().optional(),
132
78
  });
133
79
 
134
80
  /**