@compass-labs/api-sdk 1.0.17 → 1.0.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/README.md +2 -2
- package/bin/mcp-server.js +115 -120
- package/bin/mcp-server.js.map +14 -14
- package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts +1 -6
- package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/commonjs/funcs/ethenaEthenaRequest.js +1 -6
- package/dist/commonjs/funcs/ethenaEthenaRequest.js.map +1 -1
- package/dist/commonjs/funcs/{ethenaEthenaWithdraw.d.ts → ethenaEthenaUnstake.d.ts} +12 -10
- package/dist/commonjs/funcs/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/commonjs/funcs/{ethenaEthenaWithdraw.js → ethenaEthenaUnstake.js} +16 -14
- package/dist/commonjs/funcs/{ethenaEthenaWithdraw.js.map → ethenaEthenaUnstake.js.map} +1 -1
- 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 +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js +1 -7
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaUnstake.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{ethenaEthenaWithdraw.js → ethenaEthenaUnstake.js} +17 -16
- package/dist/commonjs/mcp-server/tools/ethenaEthenaUnstake.js.map +1 -0
- package/dist/commonjs/models/components/ethenaunstakeparams.d.ts +34 -0
- package/dist/commonjs/models/components/ethenaunstakeparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/{ethenawithdrawparams.js → ethenaunstakeparams.js} +19 -21
- package/dist/commonjs/models/components/ethenaunstakeparams.js.map +1 -0
- package/dist/commonjs/models/components/ethenaunstakerequest.d.ts +64 -0
- package/dist/commonjs/models/components/ethenaunstakerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/{ethenawithdrawrequest.js → ethenaunstakerequest.js} +31 -33
- package/dist/commonjs/models/components/ethenaunstakerequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +9 -9
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +13 -9
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/ethena.d.ts +21 -24
- package/dist/commonjs/sdk/ethena.d.ts.map +1 -1
- package/dist/commonjs/sdk/ethena.js +24 -27
- package/dist/commonjs/sdk/ethena.js.map +1 -1
- package/dist/esm/funcs/ethenaEthenaRequest.d.ts +1 -6
- package/dist/esm/funcs/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/esm/funcs/ethenaEthenaRequest.js +1 -6
- package/dist/esm/funcs/ethenaEthenaRequest.js.map +1 -1
- package/dist/esm/funcs/{ethenaEthenaWithdraw.d.ts → ethenaEthenaUnstake.d.ts} +12 -10
- package/dist/esm/funcs/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/esm/funcs/{ethenaEthenaWithdraw.js → ethenaEthenaUnstake.js} +15 -13
- package/dist/esm/funcs/{ethenaEthenaWithdraw.js.map → ethenaEthenaUnstake.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 +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js +1 -7
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.d.ts +8 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.js +41 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.js.map +1 -0
- package/dist/esm/models/components/ethenaunstakeparams.d.ts +34 -0
- package/dist/esm/models/components/ethenaunstakeparams.d.ts.map +1 -0
- package/dist/esm/models/components/ethenaunstakeparams.js +42 -0
- package/dist/esm/models/components/ethenaunstakeparams.js.map +1 -0
- package/dist/esm/models/components/ethenaunstakerequest.d.ts +64 -0
- package/dist/esm/models/components/ethenaunstakerequest.d.ts.map +1 -0
- package/dist/esm/models/components/ethenaunstakerequest.js +64 -0
- package/dist/esm/models/components/ethenaunstakerequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +9 -9
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +13 -9
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/ethena.d.ts +21 -24
- package/dist/esm/sdk/ethena.d.ts.map +1 -1
- package/dist/esm/sdk/ethena.js +24 -27
- package/dist/esm/sdk/ethena.js.map +1 -1
- package/docs/sdks/ethena/README.md +36 -43
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/ethenaEthenaRequest.ts +1 -6
- package/src/funcs/{ethenaEthenaWithdraw.ts → ethenaEthenaUnstake.ts} +16 -14
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/ethenaEthenaRequest.ts +1 -7
- package/src/mcp-server/tools/{ethenaEthenaWithdraw.ts → ethenaEthenaUnstake.ts} +15 -14
- package/src/models/components/ethenaunstakeparams.ts +82 -0
- package/src/models/components/ethenaunstakerequest.ts +122 -0
- package/src/models/components/index.ts +2 -2
- package/src/models/components/useroperation.ts +33 -33
- package/src/sdk/ethena.ts +30 -33
- package/dist/commonjs/funcs/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.js.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawparams.d.ts +0 -39
- package/dist/commonjs/models/components/ethenawithdrawparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawparams.js.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts +0 -69
- package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawrequest.js.map +0 -1
- package/dist/esm/funcs/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts +0 -8
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js +0 -40
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js.map +0 -1
- package/dist/esm/models/components/ethenawithdrawparams.d.ts +0 -39
- package/dist/esm/models/components/ethenawithdrawparams.d.ts.map +0 -1
- package/dist/esm/models/components/ethenawithdrawparams.js +0 -44
- package/dist/esm/models/components/ethenawithdrawparams.js.map +0 -1
- package/dist/esm/models/components/ethenawithdrawrequest.d.ts +0 -69
- package/dist/esm/models/components/ethenawithdrawrequest.d.ts.map +0 -1
- package/dist/esm/models/components/ethenawithdrawrequest.js +0 -66
- package/dist/esm/models/components/ethenawithdrawrequest.js.map +0 -1
- package/src/models/components/ethenawithdrawparams.ts +0 -89
- package/src/models/components/ethenawithdrawrequest.ts +0 -129
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type EthenaWithdrawParams = {
|
|
5
|
-
actionType?: "ETHENA_WITHDRAW" | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
|
|
8
|
-
*/
|
|
9
|
-
amount?: any | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* The address which will receive the USDe withdrawn. Defaults to the sender.
|
|
12
|
-
*/
|
|
13
|
-
receiver?: string | null | undefined;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const EthenaWithdrawParams$inboundSchema: z.ZodType<EthenaWithdrawParams, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type EthenaWithdrawParams$Outbound = {
|
|
19
|
-
action_type: "ETHENA_WITHDRAW";
|
|
20
|
-
amount?: any | undefined;
|
|
21
|
-
receiver?: string | null | undefined;
|
|
22
|
-
};
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const EthenaWithdrawParams$outboundSchema: z.ZodType<EthenaWithdrawParams$Outbound, z.ZodTypeDef, EthenaWithdrawParams>;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export declare namespace EthenaWithdrawParams$ {
|
|
30
|
-
/** @deprecated use `EthenaWithdrawParams$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodType<EthenaWithdrawParams, z.ZodTypeDef, unknown>;
|
|
32
|
-
/** @deprecated use `EthenaWithdrawParams$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.ZodType<EthenaWithdrawParams$Outbound, z.ZodTypeDef, EthenaWithdrawParams>;
|
|
34
|
-
/** @deprecated use `EthenaWithdrawParams$Outbound` instead. */
|
|
35
|
-
type Outbound = EthenaWithdrawParams$Outbound;
|
|
36
|
-
}
|
|
37
|
-
export declare function ethenaWithdrawParamsToJSON(ethenaWithdrawParams: EthenaWithdrawParams): string;
|
|
38
|
-
export declare function ethenaWithdrawParamsFromJSON(jsonString: string): SafeParseResult<EthenaWithdrawParams, SDKValidationError>;
|
|
39
|
-
//# sourceMappingURL=ethenawithdrawparams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ethenawithdrawparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/ethenawithdrawparams.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,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CASpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const EthenaWithdrawParams$inboundSchema = z.object({
|
|
9
|
-
action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
10
|
-
amount: z.any().optional(),
|
|
11
|
-
receiver: z.nullable(z.string()).optional(),
|
|
12
|
-
}).transform((v) => {
|
|
13
|
-
return remap$(v, {
|
|
14
|
-
"action_type": "actionType",
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const EthenaWithdrawParams$outboundSchema = z.object({
|
|
19
|
-
actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
20
|
-
amount: z.any().optional(),
|
|
21
|
-
receiver: z.nullable(z.string()).optional(),
|
|
22
|
-
}).transform((v) => {
|
|
23
|
-
return remap$(v, {
|
|
24
|
-
actionType: "action_type",
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
-
*/
|
|
31
|
-
export var EthenaWithdrawParams$;
|
|
32
|
-
(function (EthenaWithdrawParams$) {
|
|
33
|
-
/** @deprecated use `EthenaWithdrawParams$inboundSchema` instead. */
|
|
34
|
-
EthenaWithdrawParams$.inboundSchema = EthenaWithdrawParams$inboundSchema;
|
|
35
|
-
/** @deprecated use `EthenaWithdrawParams$outboundSchema` instead. */
|
|
36
|
-
EthenaWithdrawParams$.outboundSchema = EthenaWithdrawParams$outboundSchema;
|
|
37
|
-
})(EthenaWithdrawParams$ || (EthenaWithdrawParams$ = {}));
|
|
38
|
-
export function ethenaWithdrawParamsToJSON(ethenaWithdrawParams) {
|
|
39
|
-
return JSON.stringify(EthenaWithdrawParams$outboundSchema.parse(ethenaWithdrawParams));
|
|
40
|
-
}
|
|
41
|
-
export function ethenaWithdrawParamsFromJSON(jsonString) {
|
|
42
|
-
return safeParse(jsonString, (x) => EthenaWithdrawParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaWithdrawParams' from JSON`);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=ethenawithdrawparams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ethenawithdrawparams.js","sourceRoot":"","sources":["../../../../src/models/components/ethenawithdrawparams.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,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E1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const EthenaWithdrawRequestChain: {
|
|
6
|
-
readonly Ethereum: "ethereum";
|
|
7
|
-
};
|
|
8
|
-
export type EthenaWithdrawRequestChain = ClosedEnum<typeof EthenaWithdrawRequestChain>;
|
|
9
|
-
export type EthenaWithdrawRequest = {
|
|
10
|
-
actionType?: "ETHENA_WITHDRAW" | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
|
|
13
|
-
*/
|
|
14
|
-
amount?: any | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* The address which will receive the USDe withdrawn. Defaults to the sender.
|
|
17
|
-
*/
|
|
18
|
-
receiver?: string | null | undefined;
|
|
19
|
-
chain: EthenaWithdrawRequestChain;
|
|
20
|
-
/**
|
|
21
|
-
* The address of the transaction sender.
|
|
22
|
-
*/
|
|
23
|
-
sender: string;
|
|
24
|
-
};
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare const EthenaWithdrawRequestChain$inboundSchema: z.ZodNativeEnum<typeof EthenaWithdrawRequestChain>;
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const EthenaWithdrawRequestChain$outboundSchema: z.ZodNativeEnum<typeof EthenaWithdrawRequestChain>;
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
-
*/
|
|
33
|
-
export declare namespace EthenaWithdrawRequestChain$ {
|
|
34
|
-
/** @deprecated use `EthenaWithdrawRequestChain$inboundSchema` instead. */
|
|
35
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
36
|
-
readonly Ethereum: "ethereum";
|
|
37
|
-
}>;
|
|
38
|
-
/** @deprecated use `EthenaWithdrawRequestChain$outboundSchema` instead. */
|
|
39
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
40
|
-
readonly Ethereum: "ethereum";
|
|
41
|
-
}>;
|
|
42
|
-
}
|
|
43
|
-
/** @internal */
|
|
44
|
-
export declare const EthenaWithdrawRequest$inboundSchema: z.ZodType<EthenaWithdrawRequest, z.ZodTypeDef, unknown>;
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type EthenaWithdrawRequest$Outbound = {
|
|
47
|
-
action_type: "ETHENA_WITHDRAW";
|
|
48
|
-
amount?: any | undefined;
|
|
49
|
-
receiver?: string | null | undefined;
|
|
50
|
-
chain: string;
|
|
51
|
-
sender: string;
|
|
52
|
-
};
|
|
53
|
-
/** @internal */
|
|
54
|
-
export declare const EthenaWithdrawRequest$outboundSchema: z.ZodType<EthenaWithdrawRequest$Outbound, z.ZodTypeDef, EthenaWithdrawRequest>;
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
export declare namespace EthenaWithdrawRequest$ {
|
|
60
|
-
/** @deprecated use `EthenaWithdrawRequest$inboundSchema` instead. */
|
|
61
|
-
const inboundSchema: z.ZodType<EthenaWithdrawRequest, z.ZodTypeDef, unknown>;
|
|
62
|
-
/** @deprecated use `EthenaWithdrawRequest$outboundSchema` instead. */
|
|
63
|
-
const outboundSchema: z.ZodType<EthenaWithdrawRequest$Outbound, z.ZodTypeDef, EthenaWithdrawRequest>;
|
|
64
|
-
/** @deprecated use `EthenaWithdrawRequest$Outbound` instead. */
|
|
65
|
-
type Outbound = EthenaWithdrawRequest$Outbound;
|
|
66
|
-
}
|
|
67
|
-
export declare function ethenaWithdrawRequestToJSON(ethenaWithdrawRequest: EthenaWithdrawRequest): string;
|
|
68
|
-
export declare function ethenaWithdrawRequestFromJSON(jsonString: string): SafeParseResult<EthenaWithdrawRequest, SDKValidationError>;
|
|
69
|
-
//# sourceMappingURL=ethenawithdrawrequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ethenawithdrawrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/ethenawithdrawrequest.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,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,EAAE,0BAA0B,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OA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akeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
export const EthenaWithdrawRequestChain = {
|
|
8
|
-
Ethereum: "ethereum",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const EthenaWithdrawRequestChain$inboundSchema = z.nativeEnum(EthenaWithdrawRequestChain);
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const EthenaWithdrawRequestChain$outboundSchema = EthenaWithdrawRequestChain$inboundSchema;
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
-
*/
|
|
18
|
-
export var EthenaWithdrawRequestChain$;
|
|
19
|
-
(function (EthenaWithdrawRequestChain$) {
|
|
20
|
-
/** @deprecated use `EthenaWithdrawRequestChain$inboundSchema` instead. */
|
|
21
|
-
EthenaWithdrawRequestChain$.inboundSchema = EthenaWithdrawRequestChain$inboundSchema;
|
|
22
|
-
/** @deprecated use `EthenaWithdrawRequestChain$outboundSchema` instead. */
|
|
23
|
-
EthenaWithdrawRequestChain$.outboundSchema = EthenaWithdrawRequestChain$outboundSchema;
|
|
24
|
-
})(EthenaWithdrawRequestChain$ || (EthenaWithdrawRequestChain$ = {}));
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const EthenaWithdrawRequest$inboundSchema = z.object({
|
|
27
|
-
action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
28
|
-
amount: z.any().optional(),
|
|
29
|
-
receiver: z.nullable(z.string()).optional(),
|
|
30
|
-
chain: EthenaWithdrawRequestChain$inboundSchema,
|
|
31
|
-
sender: z.string(),
|
|
32
|
-
}).transform((v) => {
|
|
33
|
-
return remap$(v, {
|
|
34
|
-
"action_type": "actionType",
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const EthenaWithdrawRequest$outboundSchema = z.object({
|
|
39
|
-
actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
40
|
-
amount: z.any().optional(),
|
|
41
|
-
receiver: z.nullable(z.string()).optional(),
|
|
42
|
-
chain: EthenaWithdrawRequestChain$outboundSchema,
|
|
43
|
-
sender: z.string(),
|
|
44
|
-
}).transform((v) => {
|
|
45
|
-
return remap$(v, {
|
|
46
|
-
actionType: "action_type",
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export var EthenaWithdrawRequest$;
|
|
54
|
-
(function (EthenaWithdrawRequest$) {
|
|
55
|
-
/** @deprecated use `EthenaWithdrawRequest$inboundSchema` instead. */
|
|
56
|
-
EthenaWithdrawRequest$.inboundSchema = EthenaWithdrawRequest$inboundSchema;
|
|
57
|
-
/** @deprecated use `EthenaWithdrawRequest$outboundSchema` instead. */
|
|
58
|
-
EthenaWithdrawRequest$.outboundSchema = EthenaWithdrawRequest$outboundSchema;
|
|
59
|
-
})(EthenaWithdrawRequest$ || (EthenaWithdrawRequest$ = {}));
|
|
60
|
-
export function ethenaWithdrawRequestToJSON(ethenaWithdrawRequest) {
|
|
61
|
-
return JSON.stringify(EthenaWithdrawRequest$outboundSchema.parse(ethenaWithdrawRequest));
|
|
62
|
-
}
|
|
63
|
-
export function ethenaWithdrawRequestFromJSON(jsonString) {
|
|
64
|
-
return safeParse(jsonString, (x) => EthenaWithdrawRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaWithdrawRequest' from JSON`);
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=ethenawithdrawrequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ethenawithdrawrequest.js","sour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
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type EthenaWithdrawParams = {
|
|
12
|
-
actionType?: "ETHENA_WITHDRAW" | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
|
|
15
|
-
*/
|
|
16
|
-
amount?: any | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* The address which will receive the USDe withdrawn. Defaults to the sender.
|
|
19
|
-
*/
|
|
20
|
-
receiver?: string | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const EthenaWithdrawParams$inboundSchema: z.ZodType<
|
|
25
|
-
EthenaWithdrawParams,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.object({
|
|
29
|
-
action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
30
|
-
amount: z.any().optional(),
|
|
31
|
-
receiver: z.nullable(z.string()).optional(),
|
|
32
|
-
}).transform((v) => {
|
|
33
|
-
return remap$(v, {
|
|
34
|
-
"action_type": "actionType",
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type EthenaWithdrawParams$Outbound = {
|
|
40
|
-
action_type: "ETHENA_WITHDRAW";
|
|
41
|
-
amount?: any | undefined;
|
|
42
|
-
receiver?: string | null | undefined;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const EthenaWithdrawParams$outboundSchema: z.ZodType<
|
|
47
|
-
EthenaWithdrawParams$Outbound,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
EthenaWithdrawParams
|
|
50
|
-
> = z.object({
|
|
51
|
-
actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW" as const),
|
|
52
|
-
amount: z.any().optional(),
|
|
53
|
-
receiver: z.nullable(z.string()).optional(),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
actionType: "action_type",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export namespace EthenaWithdrawParams$ {
|
|
65
|
-
/** @deprecated use `EthenaWithdrawParams$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = EthenaWithdrawParams$inboundSchema;
|
|
67
|
-
/** @deprecated use `EthenaWithdrawParams$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = EthenaWithdrawParams$outboundSchema;
|
|
69
|
-
/** @deprecated use `EthenaWithdrawParams$Outbound` instead. */
|
|
70
|
-
export type Outbound = EthenaWithdrawParams$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function ethenaWithdrawParamsToJSON(
|
|
74
|
-
ethenaWithdrawParams: EthenaWithdrawParams,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
EthenaWithdrawParams$outboundSchema.parse(ethenaWithdrawParams),
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function ethenaWithdrawParamsFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<EthenaWithdrawParams, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => EthenaWithdrawParams$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'EthenaWithdrawParams' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export const EthenaWithdrawRequestChain = {
|
|
13
|
-
Ethereum: "ethereum",
|
|
14
|
-
} as const;
|
|
15
|
-
export type EthenaWithdrawRequestChain = ClosedEnum<
|
|
16
|
-
typeof EthenaWithdrawRequestChain
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
export type EthenaWithdrawRequest = {
|
|
20
|
-
actionType?: "ETHENA_WITHDRAW" | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
|
|
23
|
-
*/
|
|
24
|
-
amount?: any | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The address which will receive the USDe withdrawn. Defaults to the sender.
|
|
27
|
-
*/
|
|
28
|
-
receiver?: string | null | undefined;
|
|
29
|
-
chain: EthenaWithdrawRequestChain;
|
|
30
|
-
/**
|
|
31
|
-
* The address of the transaction sender.
|
|
32
|
-
*/
|
|
33
|
-
sender: string;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const EthenaWithdrawRequestChain$inboundSchema: z.ZodNativeEnum<
|
|
38
|
-
typeof EthenaWithdrawRequestChain
|
|
39
|
-
> = z.nativeEnum(EthenaWithdrawRequestChain);
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const EthenaWithdrawRequestChain$outboundSchema: z.ZodNativeEnum<
|
|
43
|
-
typeof EthenaWithdrawRequestChain
|
|
44
|
-
> = EthenaWithdrawRequestChain$inboundSchema;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export namespace EthenaWithdrawRequestChain$ {
|
|
51
|
-
/** @deprecated use `EthenaWithdrawRequestChain$inboundSchema` instead. */
|
|
52
|
-
export const inboundSchema = EthenaWithdrawRequestChain$inboundSchema;
|
|
53
|
-
/** @deprecated use `EthenaWithdrawRequestChain$outboundSchema` instead. */
|
|
54
|
-
export const outboundSchema = EthenaWithdrawRequestChain$outboundSchema;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const EthenaWithdrawRequest$inboundSchema: z.ZodType<
|
|
59
|
-
EthenaWithdrawRequest,
|
|
60
|
-
z.ZodTypeDef,
|
|
61
|
-
unknown
|
|
62
|
-
> = z.object({
|
|
63
|
-
action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
|
|
64
|
-
amount: z.any().optional(),
|
|
65
|
-
receiver: z.nullable(z.string()).optional(),
|
|
66
|
-
chain: EthenaWithdrawRequestChain$inboundSchema,
|
|
67
|
-
sender: z.string(),
|
|
68
|
-
}).transform((v) => {
|
|
69
|
-
return remap$(v, {
|
|
70
|
-
"action_type": "actionType",
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
/** @internal */
|
|
75
|
-
export type EthenaWithdrawRequest$Outbound = {
|
|
76
|
-
action_type: "ETHENA_WITHDRAW";
|
|
77
|
-
amount?: any | undefined;
|
|
78
|
-
receiver?: string | null | undefined;
|
|
79
|
-
chain: string;
|
|
80
|
-
sender: string;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const EthenaWithdrawRequest$outboundSchema: z.ZodType<
|
|
85
|
-
EthenaWithdrawRequest$Outbound,
|
|
86
|
-
z.ZodTypeDef,
|
|
87
|
-
EthenaWithdrawRequest
|
|
88
|
-
> = z.object({
|
|
89
|
-
actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW" as const),
|
|
90
|
-
amount: z.any().optional(),
|
|
91
|
-
receiver: z.nullable(z.string()).optional(),
|
|
92
|
-
chain: EthenaWithdrawRequestChain$outboundSchema,
|
|
93
|
-
sender: z.string(),
|
|
94
|
-
}).transform((v) => {
|
|
95
|
-
return remap$(v, {
|
|
96
|
-
actionType: "action_type",
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
-
*/
|
|
104
|
-
export namespace EthenaWithdrawRequest$ {
|
|
105
|
-
/** @deprecated use `EthenaWithdrawRequest$inboundSchema` instead. */
|
|
106
|
-
export const inboundSchema = EthenaWithdrawRequest$inboundSchema;
|
|
107
|
-
/** @deprecated use `EthenaWithdrawRequest$outboundSchema` instead. */
|
|
108
|
-
export const outboundSchema = EthenaWithdrawRequest$outboundSchema;
|
|
109
|
-
/** @deprecated use `EthenaWithdrawRequest$Outbound` instead. */
|
|
110
|
-
export type Outbound = EthenaWithdrawRequest$Outbound;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function ethenaWithdrawRequestToJSON(
|
|
114
|
-
ethenaWithdrawRequest: EthenaWithdrawRequest,
|
|
115
|
-
): string {
|
|
116
|
-
return JSON.stringify(
|
|
117
|
-
EthenaWithdrawRequest$outboundSchema.parse(ethenaWithdrawRequest),
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export function ethenaWithdrawRequestFromJSON(
|
|
122
|
-
jsonString: string,
|
|
123
|
-
): SafeParseResult<EthenaWithdrawRequest, SDKValidationError> {
|
|
124
|
-
return safeParse(
|
|
125
|
-
jsonString,
|
|
126
|
-
(x) => EthenaWithdrawRequest$inboundSchema.parse(JSON.parse(x)),
|
|
127
|
-
`Failed to parse 'EthenaWithdrawRequest' from JSON`,
|
|
128
|
-
);
|
|
129
|
-
}
|