@compass-labs/api-sdk 2.2.97-rc.1 → 2.2.97-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/components/creditlooprequest.d.ts +5 -0
  4. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/creditlooprequest.js +1 -0
  6. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
  7. package/dist/commonjs/models/components/creditloopresponse.d.ts +27 -1
  8. package/dist/commonjs/models/components/creditloopresponse.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/creditloopresponse.js +16 -1
  10. package/dist/commonjs/models/components/creditloopresponse.js.map +1 -1
  11. package/dist/commonjs/models/components/creditunlooprequest.d.ts +5 -0
  12. package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/creditunlooprequest.js +1 -0
  14. package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
  15. package/dist/commonjs/models/components/creditunloopresponse.d.ts +27 -1
  16. package/dist/commonjs/models/components/creditunloopresponse.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/creditunloopresponse.js +16 -1
  18. package/dist/commonjs/models/components/creditunloopresponse.js.map +1 -1
  19. package/dist/esm/lib/config.d.ts +2 -2
  20. package/dist/esm/lib/config.js +2 -2
  21. package/dist/esm/models/components/creditlooprequest.d.ts +5 -0
  22. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  23. package/dist/esm/models/components/creditlooprequest.js +1 -0
  24. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  25. package/dist/esm/models/components/creditloopresponse.d.ts +27 -1
  26. package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -1
  27. package/dist/esm/models/components/creditloopresponse.js +15 -0
  28. package/dist/esm/models/components/creditloopresponse.js.map +1 -1
  29. package/dist/esm/models/components/creditunlooprequest.d.ts +5 -0
  30. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  31. package/dist/esm/models/components/creditunlooprequest.js +1 -0
  32. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  33. package/dist/esm/models/components/creditunloopresponse.d.ts +27 -1
  34. package/dist/esm/models/components/creditunloopresponse.d.ts.map +1 -1
  35. package/dist/esm/models/components/creditunloopresponse.js +15 -0
  36. package/dist/esm/models/components/creditunloopresponse.js.map +1 -1
  37. package/docs/models/components/creditlooprequest.md +2 -1
  38. package/docs/models/components/creditloopresponse.md +9 -5
  39. package/docs/models/components/creditloopresponseswapprovider.md +17 -0
  40. package/docs/models/components/creditunlooprequest.md +2 -1
  41. package/docs/models/components/creditunloopresponse.md +9 -5
  42. package/docs/models/components/creditunloopresponseswapprovider.md +17 -0
  43. package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  44. package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
  45. package/examples/node_modules/esbuild/bin/esbuild +1 -1
  46. package/examples/node_modules/esbuild/lib/main.d.ts +4 -0
  47. package/examples/node_modules/esbuild/lib/main.js +12 -8
  48. package/examples/node_modules/esbuild/package.json +50 -50
  49. package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
  50. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
  51. package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
  52. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
  53. package/examples/node_modules/tsx/dist/cli.cjs +1 -1
  54. package/examples/node_modules/tsx/dist/cli.mjs +1 -1
  55. package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
  56. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
  57. package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
  58. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
  59. package/examples/node_modules/tsx/dist/index-6kqi0x0U.cjs +14 -0
  60. package/examples/node_modules/tsx/dist/index-DQtFPMc2.mjs +14 -0
  61. package/examples/node_modules/tsx/dist/loader.cjs +1 -1
  62. package/examples/node_modules/tsx/dist/loader.mjs +1 -1
  63. package/examples/node_modules/tsx/dist/package-B13bX4zz.mjs +1 -0
  64. package/examples/node_modules/tsx/dist/package-sd2gMcZx.cjs +1 -0
  65. package/examples/node_modules/tsx/dist/{register-DdgZzFJi.mjs → register-C4vWVmug.mjs} +1 -1
  66. package/examples/node_modules/tsx/dist/register-C557imBs.cjs +10 -0
  67. package/examples/node_modules/tsx/dist/register-C9AniqUt.mjs +10 -0
  68. package/examples/node_modules/tsx/dist/{register-Cn3U8bZT.cjs → register-Ciecs-Zx.cjs} +2 -2
  69. package/examples/node_modules/tsx/dist/repl.cjs +1 -1
  70. package/examples/node_modules/tsx/dist/repl.mjs +1 -1
  71. package/examples/node_modules/tsx/dist/{require-CL1N-1Kt.mjs → require-CywAB2e6.mjs} +1 -1
  72. package/examples/node_modules/tsx/dist/{require-DaO4qQ4U.cjs → require-DDxgG93A.cjs} +1 -1
  73. package/examples/node_modules/tsx/package.json +1 -1
  74. package/examples/package-lock.json +110 -110
  75. package/openapi_prepped_for_speakeasy.json +84 -2
  76. package/package.json +1 -1
  77. package/src/lib/config.ts +2 -2
  78. package/src/models/components/creditlooprequest.ts +6 -0
  79. package/src/models/components/creditloopresponse.ts +41 -1
  80. package/src/models/components/creditunlooprequest.ts +6 -0
  81. package/src/models/components/creditunloopresponse.ts +41 -1
  82. package/examples/node_modules/tsx/dist/index-CVGQLgGk.mjs +0 -14
  83. package/examples/node_modules/tsx/dist/index-LWEOpzQe.cjs +0 -14
  84. package/examples/node_modules/tsx/dist/package-CQQPX_Gw.cjs +0 -1
  85. package/examples/node_modules/tsx/dist/package-DD1BsAZe.mjs +0 -1
  86. package/examples/node_modules/tsx/dist/register--Y-HowfU.mjs +0 -10
  87. package/examples/node_modules/tsx/dist/register-BxraCus2.cjs +0 -10
@@ -42,6 +42,7 @@ export const CreditUnloopRequest$outboundSchema = z.object({
42
42
  maxSlippagePercent: z.union([z.number(), z.string()]).optional(),
43
43
  allowPartial: z.boolean().optional(),
44
44
  gasSponsorship: z.boolean().optional(),
45
+ preview: z.boolean().optional(),
45
46
  }).transform((v) => {
46
47
  return remap$(v, {
47
48
  marketId: "market_id",
@@ -1 +1 @@
1
- {"version":3,"file":"creditunlooprequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditunlooprequest.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,CAAC,MAAM,wBAAwB,GAAG;IACtC,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAyFX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAK3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,kDAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AAKD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI7D,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,M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AAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1E,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,gBAAgB;QAC9B,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,gBAAgB,EAAE,mBAAmB;QACrC,kBAAkB,EAAE,sBAAsB;QAC1C,YAAY,EAAE,eAAe;QAC7B,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,15 +1,27 @@
1
1
  import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
2
3
  import { Result as SafeParseResult } from "../../types/fp.js";
3
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
5
  import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresponseoutput.js";
5
6
  import { CreditUnloopPreview } from "./creditunlooppreview.js";
6
7
  import { UnsignedTransaction } from "./unsignedtransaction.js";
8
+ /**
9
+ * 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.
10
+ */
11
+ export declare const CreditUnloopResponseSwapProvider: {
12
+ readonly OneInch: "one_inch";
13
+ readonly Bebop: "bebop";
14
+ };
15
+ /**
16
+ * 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.
17
+ */
18
+ export type CreditUnloopResponseSwapProvider = ClosedEnum<typeof CreditUnloopResponseSwapProvider>;
7
19
  /**
8
20
  * The atomic unwind transaction plus its guaranteed-floor preview.
9
21
  */
10
22
  export type CreditUnloopResponse = {
11
23
  /**
12
- * Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false.
24
+ * 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.
13
25
  */
14
26
  transaction?: UnsignedTransaction | null | undefined;
15
27
  /**
@@ -20,8 +32,22 @@ export type CreditUnloopResponse = {
20
32
  * Projected end state of the unwind, computed on GUARANTEED swap floors.
21
33
  */
22
34
  preview: CreditUnloopPreview;
35
+ /**
36
+ * 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.
37
+ */
38
+ swapProvider?: CreditUnloopResponseSwapProvider | undefined;
39
+ /**
40
+ * Deadline of the firm swap quotes (the earliest across the unwind'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).
41
+ */
42
+ quoteExpiresAt?: Date | null | undefined;
43
+ /**
44
+ * 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.
45
+ */
46
+ firmAvailable?: boolean | null | undefined;
23
47
  };
24
48
  /** @internal */
49
+ export declare const CreditUnloopResponseSwapProvider$inboundSchema: z.ZodNativeEnum<typeof CreditUnloopResponseSwapProvider>;
50
+ /** @internal */
25
51
  export declare const CreditUnloopResponse$inboundSchema: z.ZodType<CreditUnloopResponse, z.ZodTypeDef, unknown>;
26
52
  export declare function creditUnloopResponseFromJSON(jsonString: string): SafeParseResult<CreditUnloopResponse, SDKValidationError>;
27
53
  //# sourceMappingURL=creditunloopresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"creditunloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditunloopresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,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,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;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,mBAAmB,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
1
+ {"version":3,"file":"creditunloopresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditunloopresponse.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,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;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,mBAAmB,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,gCAAgC,CACS,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -7,15 +7,30 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { BatchedSafeOperationsResponseOutput$inboundSchema, } from "./batchedsafeoperationsresponseoutput.js";
8
8
  import { CreditUnloopPreview$inboundSchema, } from "./creditunlooppreview.js";
9
9
  import { UnsignedTransaction$inboundSchema, } from "./unsignedtransaction.js";
10
+ /**
11
+ * 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.
12
+ */
13
+ export const CreditUnloopResponseSwapProvider = {
14
+ OneInch: "one_inch",
15
+ Bebop: "bebop",
16
+ };
17
+ /** @internal */
18
+ export const CreditUnloopResponseSwapProvider$inboundSchema = z.nativeEnum(CreditUnloopResponseSwapProvider);
10
19
  /** @internal */
11
20
  export const CreditUnloopResponse$inboundSchema = z.object({
12
21
  transaction: z.nullable(UnsignedTransaction$inboundSchema).optional(),
13
22
  eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
14
23
  .optional(),
15
24
  preview: CreditUnloopPreview$inboundSchema,
25
+ swap_provider: CreditUnloopResponseSwapProvider$inboundSchema.optional(),
26
+ quote_expires_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
27
+ firm_available: z.nullable(z.boolean()).optional(),
16
28
  }).transform((v) => {
17
29
  return remap$(v, {
18
30
  "eip_712": "eip712",
31
+ "swap_provider": "swapProvider",
32
+ "quote_expires_at": "quoteExpiresAt",
33
+ "firm_available": "firmAvailable",
19
34
  });
20
35
  });
21
36
  export function creditUnloopResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"creditunloopresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditunloopresponse.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;AAGjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAoBlC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,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,iCAAiC;CAC3C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC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AAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;QAC/B,kBAAkB,EAAE,gBAAgB;QACpC,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,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"}
@@ -41,4 +41,5 @@ let value: CreditLoopRequest = {
41
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
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
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 |
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: swap legs always route through the default aggregator and no firm RFQ quotes are requested (quote_expires_at stays null). 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 |
@@ -19,13 +19,17 @@ let value: CreditLoopResponse = {
19
19
  estimatedSwapCost: "<value>",
20
20
  legs: [],
21
21
  },
22
+ swapProvider: "one_inch",
22
23
  };
23
24
  ```
24
25
 
25
26
  ## Fields
26
27
 
27
- | Field | Type | Required | Description |
28
- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
29
- | `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false. |
30
- | `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. |
31
- | `preview` | [components.CreditLoopPreview](../../models/components/creditlooppreview.md) | :heavy_check_mark: | Projected end state of the loop, computed on GUARANTEED swap floors. |
28
+ | Field | Type | Required | Description | Example |
29
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
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
+ | `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 of the loop, computed on GUARANTEED swap floors. | |
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
+ | `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
+ | `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
+ # CreditLoopResponseSwapProvider
2
+
3
+ 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.
4
+
5
+ ## Example Usage
6
+
7
+ ```typescript
8
+ import { CreditLoopResponseSwapProvider } from "@compass-labs/api-sdk/models/components";
9
+
10
+ let value: CreditLoopResponseSwapProvider = "one_inch";
11
+ ```
12
+
13
+ ## Values
14
+
15
+ ```typescript
16
+ "one_inch" | "bebop"
17
+ ```
@@ -37,4 +37,5 @@ let value: CreditUnloopRequest = {
37
37
  | `targetMultiplier` | *components.CreditUnloopRequestTargetMultiplier* | :heavy_minus_sign: | Target leverage after the unwind. Omit (null) for a FULL unwind: the debt is cleared exactly — accrued interest included — and all pair collateral is withdrawn back to the Credit Account. `1` runs the same exact debt close but leaves the collateral supplied (earning). A value greater than 1 delevers the position to that multiplier. Must be below the position's current multiplier. | |
38
38
  | `maxSlippagePercent` | *components.CreditUnloopRequestMaxSlippagePercent* | :heavy_minus_sign: | Per-swap slippage tolerance in percent. Unwind dust is bounded by this per iteration, so tighter slippage means less dust. | 0.5 |
39
39
  | `allowPartial` | *boolean* | :heavy_minus_sign: | If the target cannot be reached in one transaction (e.g. a position opened very close to the liquidation threshold), return the maximum-progress plan (preview.fully_unwound=false) instead of a 400. A second unloop call, now from a much lower leverage, finishes the job. | false |
40
- | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas-sponsored execution instead of an unsigned transaction. | false |
40
+ | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas-sponsored execution instead of an unsigned transaction. | false |
41
+ | `preview` | *boolean* | :heavy_minus_sign: | If true, build a display estimate only: the swap legs are priced at market rate and no single-use firm quote is ever spent. Set it on every parameter-exploration call and omit it only on the build the user is about to sign. | false |
@@ -21,13 +21,17 @@ let value: CreditUnloopResponse = {
21
21
  fullyUnwound: true,
22
22
  legs: [],
23
23
  },
24
+ swapProvider: "one_inch",
24
25
  };
25
26
  ```
26
27
 
27
28
  ## Fields
28
29
 
29
- | Field | Type | Required | Description |
30
- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
31
- | `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false. |
32
- | `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. |
33
- | `preview` | [components.CreditUnloopPreview](../../models/components/creditunlooppreview.md) | :heavy_check_mark: | Projected end state of the unwind, computed on GUARANTEED swap floors. |
30
+ | Field | Type | Required | Description | Example |
31
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
32
+ | `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. | |
33
+ | `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. | |
34
+ | `preview` | [components.CreditUnloopPreview](../../models/components/creditunlooppreview.md) | :heavy_check_mark: | Projected end state of the unwind, computed on GUARANTEED swap floors. | |
35
+ | `swapProvider` | [components.CreditUnloopResponseSwapProvider](../../models/components/creditunloopresponseswapprovider.md) | :heavy_minus_sign: | 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. | one_inch |
36
+ | `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 unwind'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). | |
37
+ | `firmAvailable` | *boolean* | :heavy_minus_sign: | 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. | |
@@ -0,0 +1,17 @@
1
+ # CreditUnloopResponseSwapProvider
2
+
3
+ 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.
4
+
5
+ ## Example Usage
6
+
7
+ ```typescript
8
+ import { CreditUnloopResponseSwapProvider } from "@compass-labs/api-sdk/models/components";
9
+
10
+ let value: CreditUnloopResponseSwapProvider = "one_inch";
11
+ ```
12
+
13
+ ## Values
14
+
15
+ ```typescript
16
+ "one_inch" | "bebop"
17
+ ```
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esbuild/linux-x64",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -201,7 +201,7 @@ for your current platform.`);
201
201
  "node_modules",
202
202
  ".cache",
203
203
  "esbuild",
204
- `pnpapi-${pkg.replace("/", "-")}-${"0.28.1"}-${path.basename(subpath)}`
204
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.2"}-${path.basename(subpath)}`
205
205
  );
206
206
  if (!fs.existsSync(binTargetPath)) {
207
207
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -2,6 +2,7 @@ export type Platform = 'browser' | 'node' | 'neutral'
2
2
  export type Format = 'iife' | 'cjs' | 'esm'
3
3
  export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx'
4
4
  export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent'
5
+ export type LogStyle = 'default' | 'visualstudio'
5
6
  export type Charset = 'ascii' | 'utf8'
6
7
  export type Drop = 'console' | 'debugger'
7
8
  export type AbsPaths = 'code' | 'log' | 'metafile'
@@ -86,6 +87,8 @@ interface CommonOptions {
86
87
  logLimit?: number
87
88
  /** Documentation: https://esbuild.github.io/api/#log-override */
88
89
  logOverride?: Record<string, LogLevel>
90
+ /** Documentation: https://esbuild.github.io/api/#log-style */
91
+ logStyle?: LogStyle
89
92
 
90
93
  /** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
91
94
  tsconfigRaw?: string | TsconfigRaw
@@ -509,6 +512,7 @@ export interface FormatMessagesOptions {
509
512
  kind: 'error' | 'warning'
510
513
  color?: boolean
511
514
  terminalWidth?: number
515
+ logStyle?: LogStyle
512
516
  }
513
517
 
514
518
  export interface AnalyzeMetafileOptions {
@@ -572,10 +572,12 @@ function pushLogFlags(flags, options, keys, isTTY2, logLevelDefault) {
572
572
  let color = getFlag(options, keys, "color", mustBeBoolean);
573
573
  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
574
574
  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
575
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
575
576
  if (color !== void 0) flags.push(`--color=${color}`);
576
577
  else if (isTTY2) flags.push(`--color=true`);
577
578
  flags.push(`--log-level=${logLevel || logLevelDefault}`);
578
579
  flags.push(`--log-limit=${logLimit || 0}`);
580
+ if (logStyle) flags.push(`--log-style=${logStyle}`);
579
581
  }
580
582
  function validateStringValue(value, what, key) {
581
583
  if (typeof value !== "string") {
@@ -924,8 +926,8 @@ function createChannel(streamIn) {
924
926
  if (isFirstPacket) {
925
927
  isFirstPacket = false;
926
928
  let binaryVersion = String.fromCharCode(...bytes);
927
- if (binaryVersion !== "0.28.1") {
928
- throw new Error(`Cannot start service: Host version "${"0.28.1"}" does not match binary version ${quote(binaryVersion)}`);
929
+ if (binaryVersion !== "0.28.2") {
930
+ throw new Error(`Cannot start service: Host version "${"0.28.2"}" does not match binary version ${quote(binaryVersion)}`);
929
931
  }
930
932
  return;
931
933
  }
@@ -1064,6 +1066,7 @@ function createChannel(streamIn) {
1064
1066
  let kind = getFlag(options, keys, "kind", mustBeString);
1065
1067
  let color = getFlag(options, keys, "color", mustBeBoolean);
1066
1068
  let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
1069
+ let logStyle = getFlag(options, keys, "logStyle", mustBeString);
1067
1070
  checkForInvalidFlags(options, keys, `in ${callName}() call`);
1068
1071
  if (kind === void 0) throw new Error(`Missing "kind" in ${callName}() call`);
1069
1072
  if (kind !== "error" && kind !== "warning") throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
@@ -1074,6 +1077,7 @@ function createChannel(streamIn) {
1074
1077
  };
1075
1078
  if (color !== void 0) request.color = color;
1076
1079
  if (terminalWidth !== void 0) request.terminalWidth = terminalWidth;
1080
+ if (logStyle !== void 0) request.logStyle = logStyle;
1077
1081
  sendRequest(refs, request, (error, response) => {
1078
1082
  if (error) return callback(new Error(error), null);
1079
1083
  callback(null, response.messages);
@@ -2060,7 +2064,7 @@ for your current platform.`);
2060
2064
  "node_modules",
2061
2065
  ".cache",
2062
2066
  "esbuild",
2063
- `pnpapi-${pkg.replace("/", "-")}-${"0.28.1"}-${path.basename(subpath)}`
2067
+ `pnpapi-${pkg.replace("/", "-")}-${"0.28.2"}-${path.basename(subpath)}`
2064
2068
  );
2065
2069
  if (!fs.existsSync(binTargetPath)) {
2066
2070
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -2095,7 +2099,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
2095
2099
  }
2096
2100
  }
2097
2101
  var _a;
2098
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.1";
2102
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.2";
2099
2103
  var esbuildCommandAndArgs = () => {
2100
2104
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
2101
2105
  throw new Error(
@@ -2162,7 +2166,7 @@ var fsAsync = {
2162
2166
  }
2163
2167
  }
2164
2168
  };
2165
- var version = "0.28.1";
2169
+ var version = "0.28.2";
2166
2170
  var build = (options) => ensureServiceIsRunning().build(options);
2167
2171
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2168
2172
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2265,7 +2269,7 @@ var stopService;
2265
2269
  var ensureServiceIsRunning = () => {
2266
2270
  if (longLivedService) return longLivedService;
2267
2271
  let [command, args] = esbuildCommandAndArgs();
2268
- let child = child_process.spawn(command, args.concat(`--service=${"0.28.1"}`, "--ping"), {
2272
+ let child = child_process.spawn(command, args.concat(`--service=${"0.28.2"}`, "--ping"), {
2269
2273
  windowsHide: true,
2270
2274
  stdio: ["pipe", "pipe", "inherit"],
2271
2275
  cwd: defaultWD
@@ -2369,7 +2373,7 @@ var runServiceSync = (callback) => {
2369
2373
  esbuild: node_exports
2370
2374
  });
2371
2375
  callback(service);
2372
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.28.1"}`), {
2376
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.28.2"}`), {
2373
2377
  cwd: defaultWD,
2374
2378
  windowsHide: true,
2375
2379
  input: stdin,
@@ -2389,7 +2393,7 @@ var workerThreadService = null;
2389
2393
  var startWorkerThreadService = (worker_threads2) => {
2390
2394
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2391
2395
  let worker = new worker_threads2.Worker(__filename, {
2392
- workerData: { workerPort, defaultWD, esbuildVersion: "0.28.1" },
2396
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.2" },
2393
2397
  transferList: [workerPort],
2394
2398
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2395
2399
  //