@compass-labs/api-sdk 2.2.99 → 2.2.100-rc.1
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/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/creditlooprequest.d.ts +20 -1
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js +13 -1
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditloopresponse.d.ts +2 -2
- package/dist/commonjs/models/components/creditloopresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditloopresponse.js +1 -1
- package/dist/commonjs/models/components/creditloopresponse.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/creditlooprequest.d.ts +20 -1
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditlooprequest.js +12 -0
- package/dist/esm/models/components/creditlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditloopresponse.d.ts +2 -2
- package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -1
- package/dist/esm/models/components/creditloopresponse.js +1 -1
- package/dist/esm/models/components/creditloopresponse.js.map +1 -1
- package/docs/models/components/creditlooprequest.md +19 -18
- package/docs/models/components/creditloopresponse.md +2 -2
- package/docs/models/components/pricing.md +17 -0
- package/openapi_prepped_for_speakeasy.json +21 -3
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/creditlooprequest.ts +24 -1
- package/src/models/components/creditloopresponse.ts +3 -3
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.931.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.931.0 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -32,7 +32,7 @@ exports.SDK_METADATA = {
|
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
34
|
sdkVersion: "2.0.0",
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
genVersion: "2.931.0",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.931.0 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -32,6 +32,18 @@ export type CreditLoopRequestLoanToValue = number | string;
|
|
|
32
32
|
* Per-swap slippage tolerance in percent. Loop dust is bounded by this per iteration, so tighter slippage means less dust.
|
|
33
33
|
*/
|
|
34
34
|
export type CreditLoopRequestMaxSlippagePercent = number | string;
|
|
35
|
+
/**
|
|
36
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
37
|
+
*/
|
|
38
|
+
export declare const Pricing: {
|
|
39
|
+
readonly Auto: "auto";
|
|
40
|
+
readonly Firm: "firm";
|
|
41
|
+
readonly Market: "market";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
45
|
+
*/
|
|
46
|
+
export type Pricing = ClosedEnum<typeof Pricing>;
|
|
35
47
|
/**
|
|
36
48
|
* Open a leveraged loop: repeatedly supply collateral, borrow, and swap the
|
|
37
49
|
*
|
|
@@ -110,9 +122,13 @@ export type CreditLoopRequest = {
|
|
|
110
122
|
*/
|
|
111
123
|
gasSponsorship?: boolean | undefined;
|
|
112
124
|
/**
|
|
113
|
-
* If true, build a display ESTIMATE:
|
|
125
|
+
* If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null) and no transaction is returned. How the estimate is priced follows `pricing`: on a firm-covered pair under 'auto' or 'firm' it is computed from the firm venue's live price levels (swap_provider='bebop', indicative); otherwise swap legs are priced by the default aggregator. Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.
|
|
114
126
|
*/
|
|
115
127
|
preview?: boolean | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
130
|
+
*/
|
|
131
|
+
pricing?: Pricing | undefined;
|
|
116
132
|
};
|
|
117
133
|
/** @internal */
|
|
118
134
|
export declare const CreditLoopRequestChain$outboundSchema: z.ZodNativeEnum<typeof CreditLoopRequestChain>;
|
|
@@ -137,6 +153,8 @@ export type CreditLoopRequestMaxSlippagePercent$Outbound = number | string;
|
|
|
137
153
|
export declare const CreditLoopRequestMaxSlippagePercent$outboundSchema: z.ZodType<CreditLoopRequestMaxSlippagePercent$Outbound, z.ZodTypeDef, CreditLoopRequestMaxSlippagePercent>;
|
|
138
154
|
export declare function creditLoopRequestMaxSlippagePercentToJSON(creditLoopRequestMaxSlippagePercent: CreditLoopRequestMaxSlippagePercent): string;
|
|
139
155
|
/** @internal */
|
|
156
|
+
export declare const Pricing$outboundSchema: z.ZodNativeEnum<typeof Pricing>;
|
|
157
|
+
/** @internal */
|
|
140
158
|
export type CreditLoopRequest$Outbound = {
|
|
141
159
|
owner: string;
|
|
142
160
|
chain: string;
|
|
@@ -154,6 +172,7 @@ export type CreditLoopRequest$Outbound = {
|
|
|
154
172
|
emode_category?: number | null | undefined;
|
|
155
173
|
gas_sponsorship?: boolean | undefined;
|
|
156
174
|
preview?: boolean | undefined;
|
|
175
|
+
pricing?: string | undefined;
|
|
157
176
|
};
|
|
158
177
|
/** @internal */
|
|
159
178
|
export declare const CreditLoopRequest$outboundSchema: z.ZodType<CreditLoopRequest$Outbound, z.ZodTypeDef, CreditLoopRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditlooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,2BAA2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ACnC,MAAM,CAIR"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreditLoopRequest$outboundSchema = exports.CreditLoopRequestMaxSlippagePercent$outboundSchema = exports.CreditLoopRequestLoanToValue$outboundSchema = exports.CreditLoopRequestMultiplier$outboundSchema = exports.CreditLoopRequestInitialCollateralAmount$outboundSchema = exports.CreditLoopRequestChain$outboundSchema = exports.CreditLoopRequestChain = void 0;
|
|
39
|
+
exports.CreditLoopRequest$outboundSchema = exports.Pricing$outboundSchema = exports.CreditLoopRequestMaxSlippagePercent$outboundSchema = exports.CreditLoopRequestLoanToValue$outboundSchema = exports.CreditLoopRequestMultiplier$outboundSchema = exports.CreditLoopRequestInitialCollateralAmount$outboundSchema = exports.CreditLoopRequestChain$outboundSchema = exports.Pricing = exports.CreditLoopRequestChain = void 0;
|
|
40
40
|
exports.creditLoopRequestInitialCollateralAmountToJSON = creditLoopRequestInitialCollateralAmountToJSON;
|
|
41
41
|
exports.creditLoopRequestMultiplierToJSON = creditLoopRequestMultiplierToJSON;
|
|
42
42
|
exports.creditLoopRequestLoanToValueToJSON = creditLoopRequestLoanToValueToJSON;
|
|
@@ -56,6 +56,14 @@ exports.CreditLoopRequestChain = {
|
|
|
56
56
|
Hyperevm: "hyperevm",
|
|
57
57
|
Tempo: "tempo",
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
61
|
+
*/
|
|
62
|
+
exports.Pricing = {
|
|
63
|
+
Auto: "auto",
|
|
64
|
+
Firm: "firm",
|
|
65
|
+
Market: "market",
|
|
66
|
+
};
|
|
59
67
|
/** @internal */
|
|
60
68
|
exports.CreditLoopRequestChain$outboundSchema = z.nativeEnum(exports.CreditLoopRequestChain);
|
|
61
69
|
/** @internal */
|
|
@@ -79,6 +87,9 @@ function creditLoopRequestMaxSlippagePercentToJSON(creditLoopRequestMaxSlippageP
|
|
|
79
87
|
return JSON.stringify(exports.CreditLoopRequestMaxSlippagePercent$outboundSchema.parse(creditLoopRequestMaxSlippagePercent));
|
|
80
88
|
}
|
|
81
89
|
/** @internal */
|
|
90
|
+
exports.Pricing$outboundSchema = z
|
|
91
|
+
.nativeEnum(exports.Pricing);
|
|
92
|
+
/** @internal */
|
|
82
93
|
exports.CreditLoopRequest$outboundSchema = z.object({
|
|
83
94
|
owner: z.string(),
|
|
84
95
|
chain: exports.CreditLoopRequestChain$outboundSchema,
|
|
@@ -96,6 +107,7 @@ exports.CreditLoopRequest$outboundSchema = z.object({
|
|
|
96
107
|
emodeCategory: z.nullable(z.number().int()).optional(),
|
|
97
108
|
gasSponsorship: z.boolean().optional(),
|
|
98
109
|
preview: z.boolean().optional(),
|
|
110
|
+
pricing: exports.Pricing$outboundSchema.optional(),
|
|
99
111
|
}).transform((v) => {
|
|
100
112
|
return (0, primitives_js_1.remap)(v, {
|
|
101
113
|
marketId: "market_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditlooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"creditlooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKH,wGASC;AAYD,8EAQC;AAYD,gFAQC;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Response = {
|
|
|
29
29
|
*/
|
|
30
30
|
eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Projected end state
|
|
32
|
+
* Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone.
|
|
33
33
|
*/
|
|
34
|
-
preview: CreditLoopPreview;
|
|
34
|
+
preview: CreditLoopPreview | null;
|
|
35
35
|
/**
|
|
36
36
|
* Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
37
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,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;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,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;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -58,7 +58,7 @@ exports.CreditLoopResponse$inboundSchema = z.object({
|
|
|
58
58
|
transaction: z.nullable(unsignedtransaction_js_1.UnsignedTransaction$inboundSchema).optional(),
|
|
59
59
|
eip_712: z.nullable(batchedsafeoperationsresponseoutput_js_1.BatchedSafeOperationsResponseOutput$inboundSchema)
|
|
60
60
|
.optional(),
|
|
61
|
-
preview: creditlooppreview_js_1.CreditLoopPreview$inboundSchema,
|
|
61
|
+
preview: z.nullable(creditlooppreview_js_1.CreditLoopPreview$inboundSchema),
|
|
62
62
|
swap_provider: exports.CreditLoopResponseSwapProvider$inboundSchema.optional(),
|
|
63
63
|
quote_expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
64
64
|
max_firm_multiplier: z.nullable(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditloopresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,gEAQC;AApGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,qGAGkD;AAClD,iEAGgC;AAChC,qEAGkC;AAElC;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,OAAO;CACN,CAAC;AAsCX,g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AC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;QAC/B,kBAAkB,EAAE,gBAAgB;QACpC,qBAAqB,EAAE,mBAAmB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.931.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.931.0 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -28,7 +28,7 @@ export const SDK_METADATA = {
|
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
30
|
sdkVersion: "2.0.0",
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
31
|
+
genVersion: "2.931.0",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.931.0 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -32,6 +32,18 @@ export type CreditLoopRequestLoanToValue = number | string;
|
|
|
32
32
|
* Per-swap slippage tolerance in percent. Loop dust is bounded by this per iteration, so tighter slippage means less dust.
|
|
33
33
|
*/
|
|
34
34
|
export type CreditLoopRequestMaxSlippagePercent = number | string;
|
|
35
|
+
/**
|
|
36
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
37
|
+
*/
|
|
38
|
+
export declare const Pricing: {
|
|
39
|
+
readonly Auto: "auto";
|
|
40
|
+
readonly Firm: "firm";
|
|
41
|
+
readonly Market: "market";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
45
|
+
*/
|
|
46
|
+
export type Pricing = ClosedEnum<typeof Pricing>;
|
|
35
47
|
/**
|
|
36
48
|
* Open a leveraged loop: repeatedly supply collateral, borrow, and swap the
|
|
37
49
|
*
|
|
@@ -110,9 +122,13 @@ export type CreditLoopRequest = {
|
|
|
110
122
|
*/
|
|
111
123
|
gasSponsorship?: boolean | undefined;
|
|
112
124
|
/**
|
|
113
|
-
* If true, build a display ESTIMATE:
|
|
125
|
+
* If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null) and no transaction is returned. How the estimate is priced follows `pricing`: on a firm-covered pair under 'auto' or 'firm' it is computed from the firm venue's live price levels (swap_provider='bebop', indicative); otherwise swap legs are priced by the default aggregator. Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.
|
|
114
126
|
*/
|
|
115
127
|
preview?: boolean | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
130
|
+
*/
|
|
131
|
+
pricing?: Pricing | undefined;
|
|
116
132
|
};
|
|
117
133
|
/** @internal */
|
|
118
134
|
export declare const CreditLoopRequestChain$outboundSchema: z.ZodNativeEnum<typeof CreditLoopRequestChain>;
|
|
@@ -137,6 +153,8 @@ export type CreditLoopRequestMaxSlippagePercent$Outbound = number | string;
|
|
|
137
153
|
export declare const CreditLoopRequestMaxSlippagePercent$outboundSchema: z.ZodType<CreditLoopRequestMaxSlippagePercent$Outbound, z.ZodTypeDef, CreditLoopRequestMaxSlippagePercent>;
|
|
138
154
|
export declare function creditLoopRequestMaxSlippagePercentToJSON(creditLoopRequestMaxSlippagePercent: CreditLoopRequestMaxSlippagePercent): string;
|
|
139
155
|
/** @internal */
|
|
156
|
+
export declare const Pricing$outboundSchema: z.ZodNativeEnum<typeof Pricing>;
|
|
157
|
+
/** @internal */
|
|
140
158
|
export type CreditLoopRequest$Outbound = {
|
|
141
159
|
owner: string;
|
|
142
160
|
chain: string;
|
|
@@ -154,6 +172,7 @@ export type CreditLoopRequest$Outbound = {
|
|
|
154
172
|
emode_category?: number | null | undefined;
|
|
155
173
|
gas_sponsorship?: boolean | undefined;
|
|
156
174
|
preview?: boolean | undefined;
|
|
175
|
+
pricing?: string | undefined;
|
|
157
176
|
};
|
|
158
177
|
/** @internal */
|
|
159
178
|
export declare const CreditLoopRequest$outboundSchema: z.ZodType<CreditLoopRequest$Outbound, z.ZodTypeDef, CreditLoopRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditlooprequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,GAAG,MAAM,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAC9B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,cAAc,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M,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAiCjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -15,6 +15,14 @@ export const CreditLoopRequestChain = {
|
|
|
15
15
|
Hyperevm: "hyperevm",
|
|
16
16
|
Tempo: "tempo",
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
20
|
+
*/
|
|
21
|
+
export const Pricing = {
|
|
22
|
+
Auto: "auto",
|
|
23
|
+
Firm: "firm",
|
|
24
|
+
Market: "market",
|
|
25
|
+
};
|
|
18
26
|
/** @internal */
|
|
19
27
|
export const CreditLoopRequestChain$outboundSchema = z.nativeEnum(CreditLoopRequestChain);
|
|
20
28
|
/** @internal */
|
|
@@ -38,6 +46,9 @@ export function creditLoopRequestMaxSlippagePercentToJSON(creditLoopRequestMaxSl
|
|
|
38
46
|
return JSON.stringify(CreditLoopRequestMaxSlippagePercent$outboundSchema.parse(creditLoopRequestMaxSlippagePercent));
|
|
39
47
|
}
|
|
40
48
|
/** @internal */
|
|
49
|
+
export const Pricing$outboundSchema = z
|
|
50
|
+
.nativeEnum(Pricing);
|
|
51
|
+
/** @internal */
|
|
41
52
|
export const CreditLoopRequest$outboundSchema = z.object({
|
|
42
53
|
owner: z.string(),
|
|
43
54
|
chain: CreditLoopRequestChain$outboundSchema,
|
|
@@ -55,6 +66,7 @@ export const CreditLoopRequest$outboundSchema = z.object({
|
|
|
55
66
|
emodeCategory: z.nullable(z.number().int()).optional(),
|
|
56
67
|
gasSponsorship: z.boolean().optional(),
|
|
57
68
|
preview: z.boolean().optional(),
|
|
69
|
+
pricing: Pricing$outboundSchema.optional(),
|
|
58
70
|
}).transform((v) => {
|
|
59
71
|
return remap$(v, {
|
|
60
72
|
marketId: "market_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditlooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditlooprequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,C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,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,gBAAgB;QAC9B,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,uBAAuB,EAAE,2BAA2B;QACpD,WAAW,EAAE,eAAe;QAC5B,kBAAkB,EAAE,sBAAsB;QAC1C,aAAa,EAAE,gBAAgB;QAC/B,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -29,9 +29,9 @@ export type CreditLoopResponse = {
|
|
|
29
29
|
*/
|
|
30
30
|
eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Projected end state
|
|
32
|
+
* Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone.
|
|
33
33
|
*/
|
|
34
|
-
preview: CreditLoopPreview;
|
|
34
|
+
preview: CreditLoopPreview | null;
|
|
35
35
|
/**
|
|
36
36
|
* Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
37
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,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;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,OAAO,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"creditloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,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;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -21,7 +21,7 @@ export const CreditLoopResponse$inboundSchema = z.object({
|
|
|
21
21
|
transaction: z.nullable(UnsignedTransaction$inboundSchema).optional(),
|
|
22
22
|
eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
|
|
23
23
|
.optional(),
|
|
24
|
-
preview: CreditLoopPreview$inboundSchema,
|
|
24
|
+
preview: z.nullable(CreditLoopPreview$inboundSchema),
|
|
25
25
|
swap_provider: CreditLoopResponseSwapProvider$inboundSchema.optional(),
|
|
26
26
|
quote_expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
27
27
|
max_firm_multiplier: z.nullable(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditloopresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,OAAO;CACN,CAAC;AAsCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAEjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,QAAQ,EAAE;IACrE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAAiD,CAAC;SACnE,QAAQ,EAAE;IACb,OAAO,EAAE,+BAA+B;
|
|
1
|
+
{"version":3,"file":"creditloopresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditloopresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC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C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -25,21 +25,22 @@ let value: CreditLoopRequest = {
|
|
|
25
25
|
|
|
26
26
|
## Fields
|
|
27
27
|
|
|
28
|
-
| Field
|
|
29
|
-
|
|
|
30
|
-
| `owner`
|
|
31
|
-
| `chain`
|
|
32
|
-
| `protocol`
|
|
33
|
-
| `marketId`
|
|
34
|
-
| `collateralVault`
|
|
35
|
-
| `borrowVault`
|
|
36
|
-
| `subAccountId`
|
|
37
|
-
| `collateralToken`
|
|
38
|
-
| `borrowToken`
|
|
39
|
-
| `initialCollateralAmount`
|
|
40
|
-
| `multiplier`
|
|
41
|
-
| `loanToValue`
|
|
42
|
-
| `maxSlippagePercent`
|
|
43
|
-
| `emodeCategory`
|
|
44
|
-
| `gasSponsorship`
|
|
45
|
-
| `preview`
|
|
28
|
+
| Field | Type | Required | Description | Example |
|
|
29
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0x5e5b00ed886A6879C2B934612D2312975427fcAf |
|
|
31
|
+
| `chain` | [components.CreditLoopRequestChain](../../models/components/creditlooprequestchain.md) | :heavy_check_mark: | Blockchain network. | ethereum |
|
|
32
|
+
| `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho<br/>Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler<br/>V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and<br/>supports isolated per-sub-account positions (``sub_account_id``). All three<br/>support the loop/unloop leverage endpoints. | |
|
|
33
|
+
| `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
|
|
34
|
+
| `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault address collateral is supplied to (from /v2/credit/euler_markets). Required when protocol=EULER. | |
|
|
35
|
+
| `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault address borrowed from (the sub-account's controller). Required when protocol=EULER. | |
|
|
36
|
+
| `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0-255) holding this isolated looped position. 0 is the Credit Account itself. | 0 |
|
|
37
|
+
| `collateralToken` | *string* | :heavy_check_mark: | Token supplied as collateral each iteration. Must already be in the Credit Account for the initial amount. For MORPHO it must be the market's collateral token. | WETH |
|
|
38
|
+
| `borrowToken` | *string* | :heavy_check_mark: | Token borrowed each iteration and swapped back to the collateral token. For MORPHO it must be the market's loan token. | USDC |
|
|
39
|
+
| `initialCollateralAmount` | *components.CreditLoopRequestInitialCollateralAmount* | :heavy_check_mark: | Collateral (in token units) already held in the Credit Account to seed the loop. | 1 |
|
|
40
|
+
| `multiplier` | *components.CreditLoopRequestMultiplier* | :heavy_check_mark: | Target leverage: total collateral exposure = multiplier × initial_collateral_amount. Must be achievable at the requested loan_to_value (max ≈ 0.9 / (1 − LTV)). | 2 |
|
|
41
|
+
| `loanToValue` | *components.CreditLoopRequestLoanToValue* | :heavy_check_mark: | Per-iteration borrow LTV in percent. Must not exceed the protocol's maximum for the market (Aave reserve/e-mode LTV; Morpho LLTV with a safety margin); borrows are sized slightly inside the requested value so no leg sits on the protocol's revert boundary. | 70 |
|
|
42
|
+
| `maxSlippagePercent` | *components.CreditLoopRequestMaxSlippagePercent* | :heavy_minus_sign: | Per-swap slippage tolerance in percent. Loop dust is bounded by this per iteration, so tighter slippage means less dust. | 0.5 |
|
|
43
|
+
| `emodeCategory` | *number* | :heavy_minus_sign: | Aave only: e-mode category to enable before looping (higher LTV for correlated pairs, e.g. ETH-correlated). | |
|
|
44
|
+
| `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas-sponsored execution instead of an unsigned transaction. | false |
|
|
45
|
+
| `preview` | *boolean* | :heavy_minus_sign: | If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null) and no transaction is returned. How the estimate is priced follows `pricing`: on a firm-covered pair under 'auto' or 'firm' it is computed from the firm venue's live price levels (swap_provider='bebop', indicative); otherwise swap legs are priced by the default aggregator. Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered. | false |
|
|
46
|
+
| `pricing` | [components.Pricing](../../models/components/pricing.md) | :heavy_minus_sign: | Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing). | auto |
|
|
@@ -9,7 +9,7 @@ import { CreditLoopResponse } from "@compass-labs/api-sdk/models/components";
|
|
|
9
9
|
|
|
10
10
|
let value: CreditLoopResponse = {
|
|
11
11
|
preview: {
|
|
12
|
-
iterations:
|
|
12
|
+
iterations: 375658,
|
|
13
13
|
totalCollateralSupplied: "<value>",
|
|
14
14
|
totalBorrowed: "<value>",
|
|
15
15
|
achievedMultiplier: "<value>",
|
|
@@ -29,7 +29,7 @@ let value: CreditLoopResponse = {
|
|
|
29
29
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
30
|
| `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false — except firm-priced previews (preview=true with swap_provider='bebop'), which carry numbers only: the firm quotes are fetched at execution time, so there is no payload to sign yet. | |
|
|
31
31
|
| `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. | |
|
|
32
|
-
| `preview` | [components.CreditLoopPreview](../../models/components/creditlooppreview.md) | :heavy_check_mark: | Projected end state
|
|
32
|
+
| `preview` | [components.CreditLoopPreview](../../models/components/creditlooppreview.md) | :heavy_check_mark: | Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone. | |
|
|
33
33
|
| `swapProvider` | [components.CreditLoopResponseSwapProvider](../../models/components/creditloopresponseswapprovider.md) | :heavy_minus_sign: | Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. | one_inch |
|
|
34
34
|
| `quoteExpiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Deadline of the firm swap quotes (the earliest across the loop's swap legs) — sign and broadcast before it or the transaction reverts on-chain; refresh by re-calling this endpoint (discard the previous payload). Present only on executable swap_provider='bebop' builds; null on previews (no quote is spent for a preview). | |
|
|
35
35
|
| `maxFirmMultiplier` | *string* | :heavy_minus_sign: | Multiplier bound firm zero-slippage quotes can fill for the requested position size, LTV and target (estimated without spending any quote). The requested multiplier is firm-servable iff it is <= this value; above it the loop executes at market rate with slippage-bounded floors instead. Present only on preview=true responses when a firm-quote venue covers the pair; null otherwise. Recompute per parameter change - minimum-size floors make reachability target-dependent. | |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Pricing
|
|
2
|
+
|
|
3
|
+
Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
4
|
+
|
|
5
|
+
## Example Usage
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { Pricing } from "@compass-labs/api-sdk/models/components";
|
|
9
|
+
|
|
10
|
+
let value: Pricing = "auto";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Values
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
"auto" | "firm" | "market"
|
|
17
|
+
```
|
|
@@ -13286,8 +13286,19 @@
|
|
|
13286
13286
|
"preview": {
|
|
13287
13287
|
"type": "boolean",
|
|
13288
13288
|
"title": "Preview",
|
|
13289
|
-
"description": "If true, build a display ESTIMATE:
|
|
13289
|
+
"description": "If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null) and no transaction is returned. How the estimate is priced follows `pricing`: on a firm-covered pair under 'auto' or 'firm' it is computed from the firm venue's live price levels (swap_provider='bebop', indicative); otherwise swap legs are priced by the default aggregator. Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign \u2014 firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.",
|
|
13290
13290
|
"example": false
|
|
13291
|
+
},
|
|
13292
|
+
"pricing": {
|
|
13293
|
+
"type": "string",
|
|
13294
|
+
"enum": [
|
|
13295
|
+
"auto",
|
|
13296
|
+
"firm",
|
|
13297
|
+
"market"
|
|
13298
|
+
],
|
|
13299
|
+
"title": "Pricing",
|
|
13300
|
+
"description": "Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route \u2014 previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).",
|
|
13301
|
+
"example": "auto"
|
|
13291
13302
|
}
|
|
13292
13303
|
},
|
|
13293
13304
|
"type": "object",
|
|
@@ -13340,8 +13351,15 @@
|
|
|
13340
13351
|
"description": "EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true."
|
|
13341
13352
|
},
|
|
13342
13353
|
"preview": {
|
|
13343
|
-
"
|
|
13344
|
-
|
|
13354
|
+
"anyOf": [
|
|
13355
|
+
{
|
|
13356
|
+
"$ref": "#/components/schemas/CreditLoopPreview"
|
|
13357
|
+
},
|
|
13358
|
+
{
|
|
13359
|
+
"type": "null"
|
|
13360
|
+
}
|
|
13361
|
+
],
|
|
13362
|
+
"description": "Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone."
|
|
13345
13363
|
},
|
|
13346
13364
|
"swap_provider": {
|
|
13347
13365
|
"type": "string",
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const SDK_METADATA = {
|
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
64
|
sdkVersion: "2.0.0",
|
|
65
|
-
genVersion: "2.
|
|
65
|
+
genVersion: "2.931.0",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 2.0.0 2.
|
|
67
|
+
"speakeasy-sdk/typescript 2.0.0 2.931.0 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
|
@@ -46,6 +46,19 @@ export type CreditLoopRequestLoanToValue = number | string;
|
|
|
46
46
|
*/
|
|
47
47
|
export type CreditLoopRequestMaxSlippagePercent = number | string;
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
51
|
+
*/
|
|
52
|
+
export const Pricing = {
|
|
53
|
+
Auto: "auto",
|
|
54
|
+
Firm: "firm",
|
|
55
|
+
Market: "market",
|
|
56
|
+
} as const;
|
|
57
|
+
/**
|
|
58
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
59
|
+
*/
|
|
60
|
+
export type Pricing = ClosedEnum<typeof Pricing>;
|
|
61
|
+
|
|
49
62
|
/**
|
|
50
63
|
* Open a leveraged loop: repeatedly supply collateral, borrow, and swap the
|
|
51
64
|
*
|
|
@@ -124,9 +137,13 @@ export type CreditLoopRequest = {
|
|
|
124
137
|
*/
|
|
125
138
|
gasSponsorship?: boolean | undefined;
|
|
126
139
|
/**
|
|
127
|
-
* If true, build a display ESTIMATE:
|
|
140
|
+
* If true, build a display ESTIMATE: no firm RFQ quote is ever requested (quote_expires_at stays null) and no transaction is returned. How the estimate is priced follows `pricing`: on a firm-covered pair under 'auto' or 'firm' it is computed from the firm venue's live price levels (swap_provider='bebop', indicative); otherwise swap legs are priced by the default aggregator. Set it on every call made while a user is exploring parameters, and leave it false only for the build they actually intend to sign — firm quotes are single-use maker commitments, and requesting them for displays that are never executed degrades the pricing this API is offered.
|
|
128
141
|
*/
|
|
129
142
|
preview?: boolean | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Swap-leg routing policy. 'auto': firm quotes where a firm venue covers the pair, transparent fallback to the market aggregator otherwise. 'firm': never price on the market route — previews whose target the firm venue cannot serve return the coverage advisory alone (preview=null, zero aggregator calls), and executions fail with a typed error instead of silently substituting market pricing. 'market': never route through the firm venue; every leg is priced by the aggregator and bounded by max_slippage_percent (which firm legs ignore). 'firm' is incompatible with gas_sponsorship (sponsored loops force market routing).
|
|
145
|
+
*/
|
|
146
|
+
pricing?: Pricing | undefined;
|
|
130
147
|
};
|
|
131
148
|
|
|
132
149
|
/** @internal */
|
|
@@ -215,6 +232,10 @@ export function creditLoopRequestMaxSlippagePercentToJSON(
|
|
|
215
232
|
);
|
|
216
233
|
}
|
|
217
234
|
|
|
235
|
+
/** @internal */
|
|
236
|
+
export const Pricing$outboundSchema: z.ZodNativeEnum<typeof Pricing> = z
|
|
237
|
+
.nativeEnum(Pricing);
|
|
238
|
+
|
|
218
239
|
/** @internal */
|
|
219
240
|
export type CreditLoopRequest$Outbound = {
|
|
220
241
|
owner: string;
|
|
@@ -233,6 +254,7 @@ export type CreditLoopRequest$Outbound = {
|
|
|
233
254
|
emode_category?: number | null | undefined;
|
|
234
255
|
gas_sponsorship?: boolean | undefined;
|
|
235
256
|
preview?: boolean | undefined;
|
|
257
|
+
pricing?: string | undefined;
|
|
236
258
|
};
|
|
237
259
|
|
|
238
260
|
/** @internal */
|
|
@@ -257,6 +279,7 @@ export const CreditLoopRequest$outboundSchema: z.ZodType<
|
|
|
257
279
|
emodeCategory: z.nullable(z.number().int()).optional(),
|
|
258
280
|
gasSponsorship: z.boolean().optional(),
|
|
259
281
|
preview: z.boolean().optional(),
|
|
282
|
+
pricing: Pricing$outboundSchema.optional(),
|
|
260
283
|
}).transform((v) => {
|
|
261
284
|
return remap$(v, {
|
|
262
285
|
marketId: "market_id",
|
|
@@ -48,9 +48,9 @@ export type CreditLoopResponse = {
|
|
|
48
48
|
*/
|
|
49
49
|
eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
|
|
50
50
|
/**
|
|
51
|
-
* Projected end state
|
|
51
|
+
* Projected end state, computed on guaranteed swap floors. Null only on pricing='firm' preview responses whose target the firm venue cannot serve: no leg was priced on any venue, and the response carries the coverage advisory (max_firm_multiplier) alone.
|
|
52
52
|
*/
|
|
53
|
-
preview: CreditLoopPreview;
|
|
53
|
+
preview: CreditLoopPreview | null;
|
|
54
54
|
/**
|
|
55
55
|
* Which venue priced the swap leg(s): 'one_inch' (iterative loop, slippage-bounded floors) or 'bebop' (firm zero-slippage quotes, one per swap leg, each partially filled at the leg's size — exact fills, zero dust). On preview=true responses, 'bebop' means the numbers are INDICATIVE, computed from the firm venue's live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks.
|
|
56
56
|
*/
|
|
@@ -79,7 +79,7 @@ export const CreditLoopResponse$inboundSchema: z.ZodType<
|
|
|
79
79
|
transaction: z.nullable(UnsignedTransaction$inboundSchema).optional(),
|
|
80
80
|
eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
|
|
81
81
|
.optional(),
|
|
82
|
-
preview: CreditLoopPreview$inboundSchema,
|
|
82
|
+
preview: z.nullable(CreditLoopPreview$inboundSchema),
|
|
83
83
|
swap_provider: CreditLoopResponseSwapProvider$inboundSchema.optional(),
|
|
84
84
|
quote_expires_at: z.nullable(
|
|
85
85
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|