@compass-labs/api-sdk 2.2.100 → 2.2.101
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/models/components/creditlooprequest.d.ts +4 -4
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js +4 -5
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.d.ts +20 -1
- package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.js +12 -1
- package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.d.ts +3 -3
- package/dist/commonjs/models/components/creditunloopresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.js +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.js.map +1 -1
- package/dist/esm/models/components/creditlooprequest.d.ts +4 -4
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditlooprequest.js +3 -4
- package/dist/esm/models/components/creditlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.d.ts +20 -1
- package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.js +11 -0
- package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditunloopresponse.d.ts +3 -3
- package/dist/esm/models/components/creditunloopresponse.d.ts.map +1 -1
- package/dist/esm/models/components/creditunloopresponse.js +1 -1
- package/dist/esm/models/components/creditunloopresponse.js.map +1 -1
- package/docs/models/components/creditlooprequest.md +1 -1
- package/docs/models/components/{pricing.md → creditlooprequestpricing.md} +3 -3
- package/docs/models/components/creditunlooprequest.md +17 -16
- package/docs/models/components/creditunlooprequestpricing.md +17 -0
- package/docs/models/components/creditunloopresponse.md +4 -4
- package/openapi_prepped_for_speakeasy.json +22 -4
- package/package.json +1 -1
- package/src/models/components/creditlooprequest.ts +9 -6
- package/src/models/components/creditunlooprequest.ts +27 -1
- package/src/models/components/creditunloopresponse.ts +4 -4
|
@@ -48,9 +48,9 @@ export type CreditUnloopResponse = {
|
|
|
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 unwind the firm venue cannot serve: no leg was priced on any venue, and the response carries the firm_available advisory alone.
|
|
52
52
|
*/
|
|
53
|
-
preview: CreditUnloopPreview;
|
|
53
|
+
preview: CreditUnloopPreview | null;
|
|
54
54
|
/**
|
|
55
55
|
* Which venue priced the swap leg(s): 'one_inch' (market route, slippage-bounded floors) or 'bebop' (firm quotes, one per swap leg, each partially filled at the leg's size). 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
|
*/
|
|
@@ -60,7 +60,7 @@ export type CreditUnloopResponse = {
|
|
|
60
60
|
*/
|
|
61
61
|
quoteExpiresAt?: Date | null | undefined;
|
|
62
62
|
/**
|
|
63
|
-
* Preview-only advisory: whether a firm-quote venue can serve this unwind's swap legs (estimated without spending any quote). Present only on preview=true responses; null otherwise.
|
|
63
|
+
* Preview-only advisory: whether a firm-quote venue can serve this unwind's swap legs (estimated without spending any quote). Present only on preview=true responses; null otherwise. Computed on every policy — including pricing='market', whose preview numbers stay market-priced — so a client that opted out can keep the boundary visible.
|
|
64
64
|
*/
|
|
65
65
|
firmAvailable?: boolean | null | undefined;
|
|
66
66
|
};
|
|
@@ -79,7 +79,7 @@ export const CreditUnloopResponse$inboundSchema: z.ZodType<
|
|
|
79
79
|
transaction: z.nullable(UnsignedTransaction$inboundSchema).optional(),
|
|
80
80
|
eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
|
|
81
81
|
.optional(),
|
|
82
|
-
preview: CreditUnloopPreview$inboundSchema,
|
|
82
|
+
preview: z.nullable(CreditUnloopPreview$inboundSchema),
|
|
83
83
|
swap_provider: CreditUnloopResponseSwapProvider$inboundSchema.optional(),
|
|
84
84
|
quote_expires_at: z.nullable(
|
|
85
85
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|