@compass-labs/api-sdk 1.0.18 → 1.0.20

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 (39) hide show
  1. package/bin/mcp-server.js +31 -31
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/unsignedmulticalltransaction.d.ts +12 -12
  8. package/dist/commonjs/models/components/unsignedmulticalltransaction.js +12 -12
  9. package/dist/commonjs/models/components/unsignedmulticalltransaction.js.map +1 -1
  10. package/dist/commonjs/models/components/unsignedtransaction.d.ts +12 -12
  11. package/dist/commonjs/models/components/unsignedtransaction.js +12 -12
  12. package/dist/commonjs/models/components/unsignedtransaction.js.map +1 -1
  13. package/dist/commonjs/models/components/useroperationresponse.d.ts +2 -2
  14. package/dist/commonjs/models/components/useroperationresponse.js +2 -2
  15. package/dist/commonjs/models/components/useroperationresponse.js.map +1 -1
  16. package/dist/commonjs/models/operations/v1skyposition.d.ts +1 -1
  17. package/dist/esm/lib/config.d.ts +2 -2
  18. package/dist/esm/lib/config.js +2 -2
  19. package/dist/esm/mcp-server/mcp-server.js +1 -1
  20. package/dist/esm/mcp-server/server.js +1 -1
  21. package/dist/esm/models/components/unsignedmulticalltransaction.d.ts +12 -12
  22. package/dist/esm/models/components/unsignedmulticalltransaction.js +12 -12
  23. package/dist/esm/models/components/unsignedmulticalltransaction.js.map +1 -1
  24. package/dist/esm/models/components/unsignedtransaction.d.ts +12 -12
  25. package/dist/esm/models/components/unsignedtransaction.js +12 -12
  26. package/dist/esm/models/components/unsignedtransaction.js.map +1 -1
  27. package/dist/esm/models/components/useroperationresponse.d.ts +2 -2
  28. package/dist/esm/models/components/useroperationresponse.js +2 -2
  29. package/dist/esm/models/components/useroperationresponse.js.map +1 -1
  30. package/dist/esm/models/operations/v1skyposition.d.ts +1 -1
  31. package/jsr.json +1 -1
  32. package/package.json +1 -1
  33. package/src/lib/config.ts +2 -2
  34. package/src/mcp-server/mcp-server.ts +1 -1
  35. package/src/mcp-server/server.ts +1 -1
  36. package/src/models/components/unsignedmulticalltransaction.ts +24 -24
  37. package/src/models/components/unsignedtransaction.ts +24 -24
  38. package/src/models/components/useroperationresponse.ts +4 -4
  39. package/src/models/operations/v1skyposition.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useroperationresponse.js","sourceRoot":"","sources":["../../../../src/models/components/useroperationresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAmBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,mCAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,oCAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,KAAtB,sBAAsB,QAOtC;AAED,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"useroperationresponse.js","sourceRoot":"","sources":["../../../../src/models/components/useroperationresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAmBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,mCAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,oCAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,KAAtB,sBAAsB,QAOtC;AAED,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -9,7 +9,7 @@ export type V1SkyPositionChain = ClosedEnum<typeof V1SkyPositionChain>;
9
9
  export type V1SkyPositionRequest = {
10
10
  chain?: V1SkyPositionChain | undefined;
11
11
  /**
12
- * The user address of the desired position.
12
+ * The user-address of the desired position.
13
13
  */
14
14
  userAddress?: string | undefined;
15
15
  };
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@compass-labs/api-sdk",
5
- "version": "1.0.18",
5
+ "version": "1.0.20",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/config.ts CHANGED
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.0.1",
64
- sdkVersion: "1.0.18",
64
+ sdkVersion: "1.0.20",
65
65
  genVersion: "2.684.0",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 1.0.18 2.684.0 0.0.1 @compass-labs/api-sdk",
67
+ "speakeasy-sdk/typescript 1.0.20 2.684.0 0.0.1 @compass-labs/api-sdk",
68
68
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.0.18",
22
+ currentVersion: "1.0.20",
23
23
  },
24
24
  });
25
25
 
@@ -103,7 +103,7 @@ export function createMCPServer(deps: {
103
103
  }) {
104
104
  const server = new McpServer({
105
105
  name: "CompassApiSDK",
106
- version: "1.0.18",
106
+ version: "1.0.20",
107
107
  });
108
108
 
109
109
  const client = new CompassApiSDKCore({
@@ -17,7 +17,7 @@ export type UnsignedMulticallTransaction = {
17
17
  /**
18
18
  * The chain id of the transaction
19
19
  */
20
- chainId: number;
20
+ chainId: string;
21
21
  /**
22
22
  * The data of the transaction
23
23
  */
@@ -29,7 +29,7 @@ export type UnsignedMulticallTransaction = {
29
29
  /**
30
30
  * The gas of the transaction
31
31
  */
32
- gas: number;
32
+ gas: string;
33
33
  /**
34
34
  * The recipient of the transaction
35
35
  */
@@ -37,19 +37,19 @@ export type UnsignedMulticallTransaction = {
37
37
  /**
38
38
  * The value of the transaction
39
39
  */
40
- value: number;
40
+ value: string;
41
41
  /**
42
42
  * The nonce of the address
43
43
  */
44
- nonce: number;
44
+ nonce: string;
45
45
  /**
46
46
  * The max fee per gas of the transaction
47
47
  */
48
- maxFeePerGas: number;
48
+ maxFeePerGas: string;
49
49
  /**
50
50
  * The max priority fee per gas of the transaction
51
51
  */
52
- maxPriorityFeePerGas: number;
52
+ maxPriorityFeePerGas: string;
53
53
  /**
54
54
  * EIP-7702 authorization
55
55
  */
@@ -62,29 +62,29 @@ export const UnsignedMulticallTransaction$inboundSchema: z.ZodType<
62
62
  z.ZodTypeDef,
63
63
  unknown
64
64
  > = z.object({
65
- chainId: z.number().int(),
65
+ chainId: z.string(),
66
66
  data: z.string(),
67
67
  from: z.string(),
68
- gas: z.number().int(),
68
+ gas: z.string(),
69
69
  to: z.string(),
70
- value: z.number().int(),
71
- nonce: z.number().int(),
72
- maxFeePerGas: z.number().int(),
73
- maxPriorityFeePerGas: z.number().int(),
70
+ value: z.string(),
71
+ nonce: z.string(),
72
+ maxFeePerGas: z.string(),
73
+ maxPriorityFeePerGas: z.string(),
74
74
  authorizationList: z.array(SignedAuthorization$inboundSchema).optional(),
75
75
  });
76
76
 
77
77
  /** @internal */
78
78
  export type UnsignedMulticallTransaction$Outbound = {
79
- chainId: number;
79
+ chainId: string;
80
80
  data: string;
81
81
  from: string;
82
- gas: number;
82
+ gas: string;
83
83
  to: string;
84
- value: number;
85
- nonce: number;
86
- maxFeePerGas: number;
87
- maxPriorityFeePerGas: number;
84
+ value: string;
85
+ nonce: string;
86
+ maxFeePerGas: string;
87
+ maxPriorityFeePerGas: string;
88
88
  authorizationList?: Array<SignedAuthorization$Outbound> | undefined;
89
89
  };
90
90
 
@@ -94,15 +94,15 @@ export const UnsignedMulticallTransaction$outboundSchema: z.ZodType<
94
94
  z.ZodTypeDef,
95
95
  UnsignedMulticallTransaction
96
96
  > = z.object({
97
- chainId: z.number().int(),
97
+ chainId: z.string(),
98
98
  data: z.string(),
99
99
  from: z.string(),
100
- gas: z.number().int(),
100
+ gas: z.string(),
101
101
  to: z.string(),
102
- value: z.number().int(),
103
- nonce: z.number().int(),
104
- maxFeePerGas: z.number().int(),
105
- maxPriorityFeePerGas: z.number().int(),
102
+ value: z.string(),
103
+ nonce: z.string(),
104
+ maxFeePerGas: z.string(),
105
+ maxPriorityFeePerGas: z.string(),
106
106
  authorizationList: z.array(SignedAuthorization$outboundSchema).optional(),
107
107
  });
108
108
 
@@ -11,7 +11,7 @@ export type UnsignedTransaction = {
11
11
  /**
12
12
  * The chain id of the transaction
13
13
  */
14
- chainId: number;
14
+ chainId: string;
15
15
  /**
16
16
  * The data of the transaction
17
17
  */
@@ -23,7 +23,7 @@ export type UnsignedTransaction = {
23
23
  /**
24
24
  * The gas of the transaction
25
25
  */
26
- gas: number;
26
+ gas: string;
27
27
  /**
28
28
  * The recipient of the transaction
29
29
  */
@@ -31,19 +31,19 @@ export type UnsignedTransaction = {
31
31
  /**
32
32
  * The value of the transaction
33
33
  */
34
- value: number;
34
+ value: string;
35
35
  /**
36
36
  * The nonce of the address
37
37
  */
38
- nonce: number;
38
+ nonce: string;
39
39
  /**
40
40
  * The max fee per gas of the transaction
41
41
  */
42
- maxFeePerGas: number;
42
+ maxFeePerGas: string;
43
43
  /**
44
44
  * The max priority fee per gas of the transaction
45
45
  */
46
- maxPriorityFeePerGas: number;
46
+ maxPriorityFeePerGas: string;
47
47
  };
48
48
 
49
49
  /** @internal */
@@ -52,28 +52,28 @@ export const UnsignedTransaction$inboundSchema: z.ZodType<
52
52
  z.ZodTypeDef,
53
53
  unknown
54
54
  > = z.object({
55
- chainId: z.number().int(),
55
+ chainId: z.string(),
56
56
  data: z.string(),
57
57
  from: z.string(),
58
- gas: z.number().int(),
58
+ gas: z.string(),
59
59
  to: z.string(),
60
- value: z.number().int(),
61
- nonce: z.number().int(),
62
- maxFeePerGas: z.number().int(),
63
- maxPriorityFeePerGas: z.number().int(),
60
+ value: z.string(),
61
+ nonce: z.string(),
62
+ maxFeePerGas: z.string(),
63
+ maxPriorityFeePerGas: z.string(),
64
64
  });
65
65
 
66
66
  /** @internal */
67
67
  export type UnsignedTransaction$Outbound = {
68
- chainId: number;
68
+ chainId: string;
69
69
  data: string;
70
70
  from: string;
71
- gas: number;
71
+ gas: string;
72
72
  to: string;
73
- value: number;
74
- nonce: number;
75
- maxFeePerGas: number;
76
- maxPriorityFeePerGas: number;
73
+ value: string;
74
+ nonce: string;
75
+ maxFeePerGas: string;
76
+ maxPriorityFeePerGas: string;
77
77
  };
78
78
 
79
79
  /** @internal */
@@ -82,15 +82,15 @@ export const UnsignedTransaction$outboundSchema: z.ZodType<
82
82
  z.ZodTypeDef,
83
83
  UnsignedTransaction
84
84
  > = z.object({
85
- chainId: z.number().int(),
85
+ chainId: z.string(),
86
86
  data: z.string(),
87
87
  from: z.string(),
88
- gas: z.number().int(),
88
+ gas: z.string(),
89
89
  to: z.string(),
90
- value: z.number().int(),
91
- nonce: z.number().int(),
92
- maxFeePerGas: z.number().int(),
93
- maxPriorityFeePerGas: z.number().int(),
90
+ value: z.string(),
91
+ nonce: z.string(),
92
+ maxFeePerGas: z.string(),
93
+ maxPriorityFeePerGas: z.string(),
94
94
  });
95
95
 
96
96
  /**
@@ -19,7 +19,7 @@ export type UserOperationResponse = {
19
19
  /**
20
20
  * The ETH value to send with the operation
21
21
  */
22
- value: number;
22
+ value: string;
23
23
  };
24
24
 
25
25
  /** @internal */
@@ -30,14 +30,14 @@ export const UserOperationResponse$inboundSchema: z.ZodType<
30
30
  > = z.object({
31
31
  to: z.string(),
32
32
  data: z.string(),
33
- value: z.number().int(),
33
+ value: z.string(),
34
34
  });
35
35
 
36
36
  /** @internal */
37
37
  export type UserOperationResponse$Outbound = {
38
38
  to: string;
39
39
  data: string;
40
- value: number;
40
+ value: string;
41
41
  };
42
42
 
43
43
  /** @internal */
@@ -48,7 +48,7 @@ export const UserOperationResponse$outboundSchema: z.ZodType<
48
48
  > = z.object({
49
49
  to: z.string(),
50
50
  data: z.string(),
51
- value: z.number().int(),
51
+ value: z.string(),
52
52
  });
53
53
 
54
54
  /**
@@ -17,7 +17,7 @@ export type V1SkyPositionChain = ClosedEnum<typeof V1SkyPositionChain>;
17
17
  export type V1SkyPositionRequest = {
18
18
  chain?: V1SkyPositionChain | undefined;
19
19
  /**
20
- * The user address of the desired position.
20
+ * The user-address of the desired position.
21
21
  */
22
22
  userAddress?: string | undefined;
23
23
  };