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

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 (116) 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/commonjs/models/components/index.d.ts +1 -0
  20. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/index.js +1 -0
  22. package/dist/commonjs/models/components/index.js.map +1 -1
  23. package/dist/commonjs/models/components/tokenizedassetstraderequest.d.ts +6 -0
  24. package/dist/commonjs/models/components/tokenizedassetstraderequest.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/tokenizedassetstraderequest.js +2 -0
  26. package/dist/commonjs/models/components/tokenizedassetstraderequest.js.map +1 -1
  27. package/dist/commonjs/models/components/wisdomtreecredentials.d.ts +31 -0
  28. package/dist/commonjs/models/components/wisdomtreecredentials.d.ts.map +1 -0
  29. package/dist/commonjs/models/components/wisdomtreecredentials.js +56 -0
  30. package/dist/commonjs/models/components/wisdomtreecredentials.js.map +1 -0
  31. package/dist/esm/lib/config.d.ts +2 -2
  32. package/dist/esm/lib/config.js +2 -2
  33. package/dist/esm/models/components/creditlooprequest.d.ts +5 -0
  34. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  35. package/dist/esm/models/components/creditlooprequest.js +1 -0
  36. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  37. package/dist/esm/models/components/creditloopresponse.d.ts +27 -1
  38. package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -1
  39. package/dist/esm/models/components/creditloopresponse.js +15 -0
  40. package/dist/esm/models/components/creditloopresponse.js.map +1 -1
  41. package/dist/esm/models/components/creditunlooprequest.d.ts +5 -0
  42. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  43. package/dist/esm/models/components/creditunlooprequest.js +1 -0
  44. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  45. package/dist/esm/models/components/creditunloopresponse.d.ts +27 -1
  46. package/dist/esm/models/components/creditunloopresponse.d.ts.map +1 -1
  47. package/dist/esm/models/components/creditunloopresponse.js +15 -0
  48. package/dist/esm/models/components/creditunloopresponse.js.map +1 -1
  49. package/dist/esm/models/components/index.d.ts +1 -0
  50. package/dist/esm/models/components/index.d.ts.map +1 -1
  51. package/dist/esm/models/components/index.js +1 -0
  52. package/dist/esm/models/components/index.js.map +1 -1
  53. package/dist/esm/models/components/tokenizedassetstraderequest.d.ts +6 -0
  54. package/dist/esm/models/components/tokenizedassetstraderequest.d.ts.map +1 -1
  55. package/dist/esm/models/components/tokenizedassetstraderequest.js +2 -0
  56. package/dist/esm/models/components/tokenizedassetstraderequest.js.map +1 -1
  57. package/dist/esm/models/components/wisdomtreecredentials.d.ts +31 -0
  58. package/dist/esm/models/components/wisdomtreecredentials.d.ts.map +1 -0
  59. package/dist/esm/models/components/wisdomtreecredentials.js +19 -0
  60. package/dist/esm/models/components/wisdomtreecredentials.js.map +1 -0
  61. package/docs/models/components/creditlooprequest.md +2 -1
  62. package/docs/models/components/creditloopresponse.md +9 -5
  63. package/docs/models/components/creditloopresponseswapprovider.md +17 -0
  64. package/docs/models/components/creditunlooprequest.md +2 -1
  65. package/docs/models/components/creditunloopresponse.md +9 -5
  66. package/docs/models/components/creditunloopresponseswapprovider.md +17 -0
  67. package/docs/models/components/tokenizedassetstraderequest.md +11 -10
  68. package/docs/models/components/wisdomtreecredentials.md +27 -0
  69. package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  70. package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
  71. package/examples/node_modules/esbuild/bin/esbuild +1 -1
  72. package/examples/node_modules/esbuild/lib/main.d.ts +4 -0
  73. package/examples/node_modules/esbuild/lib/main.js +12 -8
  74. package/examples/node_modules/esbuild/package.json +50 -50
  75. package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
  76. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
  77. package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
  78. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
  79. package/examples/node_modules/tsx/dist/cli.cjs +1 -1
  80. package/examples/node_modules/tsx/dist/cli.mjs +1 -1
  81. package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
  82. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
  83. package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
  84. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
  85. package/examples/node_modules/tsx/dist/index-6kqi0x0U.cjs +14 -0
  86. package/examples/node_modules/tsx/dist/index-DQtFPMc2.mjs +14 -0
  87. package/examples/node_modules/tsx/dist/loader.cjs +1 -1
  88. package/examples/node_modules/tsx/dist/loader.mjs +1 -1
  89. package/examples/node_modules/tsx/dist/package-B13bX4zz.mjs +1 -0
  90. package/examples/node_modules/tsx/dist/package-sd2gMcZx.cjs +1 -0
  91. package/examples/node_modules/tsx/dist/{register-DdgZzFJi.mjs → register-C4vWVmug.mjs} +1 -1
  92. package/examples/node_modules/tsx/dist/register-C557imBs.cjs +10 -0
  93. package/examples/node_modules/tsx/dist/register-C9AniqUt.mjs +10 -0
  94. package/examples/node_modules/tsx/dist/{register-Cn3U8bZT.cjs → register-Ciecs-Zx.cjs} +2 -2
  95. package/examples/node_modules/tsx/dist/repl.cjs +1 -1
  96. package/examples/node_modules/tsx/dist/repl.mjs +1 -1
  97. package/examples/node_modules/tsx/dist/{require-CL1N-1Kt.mjs → require-CywAB2e6.mjs} +1 -1
  98. package/examples/node_modules/tsx/dist/{require-DaO4qQ4U.cjs → require-DDxgG93A.cjs} +1 -1
  99. package/examples/node_modules/tsx/package.json +1 -1
  100. package/examples/package-lock.json +110 -110
  101. package/openapi_prepped_for_speakeasy.json +118 -2
  102. package/package.json +1 -1
  103. package/src/lib/config.ts +2 -2
  104. package/src/models/components/creditlooprequest.ts +6 -0
  105. package/src/models/components/creditloopresponse.ts +41 -1
  106. package/src/models/components/creditunlooprequest.ts +6 -0
  107. package/src/models/components/creditunloopresponse.ts +41 -1
  108. package/src/models/components/index.ts +1 -0
  109. package/src/models/components/tokenizedassetstraderequest.ts +11 -0
  110. package/src/models/components/wisdomtreecredentials.ts +57 -0
  111. package/examples/node_modules/tsx/dist/index-CVGQLgGk.mjs +0 -14
  112. package/examples/node_modules/tsx/dist/index-LWEOpzQe.cjs +0 -14
  113. package/examples/node_modules/tsx/dist/package-CQQPX_Gw.cjs +0 -1
  114. package/examples/node_modules/tsx/dist/package-DD1BsAZe.mjs +0 -1
  115. package/examples/node_modules/tsx/dist/register--Y-HowfU.mjs +0 -10
  116. package/examples/node_modules/tsx/dist/register-BxraCus2.cjs +0 -10
@@ -0,0 +1,31 @@
1
+ import * as z from "zod/v3";
2
+ /**
3
+ * Per-organization WisdomTree Connect API credentials.
4
+ *
5
+ * @remarks
6
+ *
7
+ * Supplied per request rather than configured on the service: each
8
+ * organization has its own WisdomTree account, whitelisted wallets and KYC,
9
+ * so there is no single service-level credential that could serve every
10
+ * caller. The secret is a ``SecretStr`` so it cannot be printed by accident,
11
+ * and the error logger masks it in request bodies.
12
+ */
13
+ export type WisdomTreeCredentials = {
14
+ /**
15
+ * WisdomTree Connect client id for your organization.
16
+ */
17
+ clientId: string;
18
+ /**
19
+ * WisdomTree Connect client secret for your organization.
20
+ */
21
+ clientSecret: string;
22
+ };
23
+ /** @internal */
24
+ export type WisdomTreeCredentials$Outbound = {
25
+ client_id: string;
26
+ client_secret: string;
27
+ };
28
+ /** @internal */
29
+ export declare const WisdomTreeCredentials$outboundSchema: z.ZodType<WisdomTreeCredentials$Outbound, z.ZodTypeDef, WisdomTreeCredentials>;
30
+ export declare function wisdomTreeCredentialsToJSON(wisdomTreeCredentials: WisdomTreeCredentials): string;
31
+ //# sourceMappingURL=wisdomtreecredentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wisdomtreecredentials.d.ts","sourceRoot":"","sources":["../../../../src/models/components/wisdomtreecredentials.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;;;;;;GAUG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CASrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR"}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ /** @internal */
7
+ export const WisdomTreeCredentials$outboundSchema = z.object({
8
+ clientId: z.string(),
9
+ clientSecret: z.string(),
10
+ }).transform((v) => {
11
+ return remap$(v, {
12
+ clientId: "client_id",
13
+ clientSecret: "client_secret",
14
+ });
15
+ });
16
+ export function wisdomTreeCredentialsToJSON(wisdomTreeCredentials) {
17
+ return JSON.stringify(WisdomTreeCredentials$outboundSchema.parse(wisdomTreeCredentials));
18
+ }
19
+ //# sourceMappingURL=wisdomtreecredentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wisdomtreecredentials.js","sourceRoot":"","sources":["../../../../src/models/components/wisdomtreecredentials.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AA8B1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,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
+ ```
@@ -28,13 +28,14 @@ let value: TokenizedAssetsTradeRequest = {
28
28
 
29
29
  ## Fields
30
30
 
31
- | Field | Type | Required | Description | Example |
32
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33
- | `tokenIn` | *string* | :heavy_check_mark: | Token to spend. For a buy this must be a stablecoin the Midas issuance vault accepts (USDC on every supported network; mBASIS also accepts USDT/DAI on Ethereum). For a sell it is the Midas RWA asset to redeem (e.g. 'mTBILL'). | |
34
- | `tokenOut` | *string* | :heavy_check_mark: | Token to receive. For a buy this is the Midas RWA asset to mint (e.g. 'mTBILL'); for a sell it is the payout stablecoin (USDC). | |
35
- | `amountIn` | *components.TokenizedAssetsTradeRequestAmountIn* | :heavy_check_mark: | Human-readable amount of `token_in` to trade (token units, not wei). | |
36
- | `slippage` | *components.TokenizedAssetsTradeRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). | 0.5 |
37
- | `owner` | *string* | :heavy_check_mark: | The owner's wallet address. | |
38
- | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
39
- | `gasSponsorship` | *boolean* | :heavy_minus_sign: | When true, returns an EIP-712 payload for gas-sponsored execution instead of an unsigned transaction. | false |
40
- | `fee` | [components.TokenizedAssetsFee](../../models/components/tokenizedassetsfee.md) | :heavy_minus_sign: | Optional partner fee charged when selling (exiting). It is taken from the payout-token (USDC) proceeds and sent to your fee recipient inside the same execution. | |
31
+ | Field | Type | Required | Description | Example |
32
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33
+ | `tokenIn` | *string* | :heavy_check_mark: | Token to spend. For a buy this must be a stablecoin the Midas issuance vault accepts (USDC on every supported network; mBASIS also accepts USDT/DAI on Ethereum). For a sell it is the Midas RWA asset to redeem (e.g. 'mTBILL'). | |
34
+ | `tokenOut` | *string* | :heavy_check_mark: | Token to receive. For a buy this is the Midas RWA asset to mint (e.g. 'mTBILL'); for a sell it is the payout stablecoin (USDC). | |
35
+ | `amountIn` | *components.TokenizedAssetsTradeRequestAmountIn* | :heavy_check_mark: | Human-readable amount of `token_in` to trade (token units, not wei). | |
36
+ | `slippage` | *components.TokenizedAssetsTradeRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). | 0.5 |
37
+ | `owner` | *string* | :heavy_check_mark: | The owner's wallet address. | |
38
+ | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
39
+ | `gasSponsorship` | *boolean* | :heavy_minus_sign: | When true, returns an EIP-712 payload for gas-sponsored execution instead of an unsigned transaction. | false |
40
+ | `wisdomtree` | [components.WisdomTreeCredentials](../../models/components/wisdomtreecredentials.md) | :heavy_minus_sign: | WisdomTree Connect API credentials, required only when trading a WisdomTree money-market fund. Each organization authenticates with its own credentials, which are exchanged for a short-lived token to look up the settlement wallet for this trade. They are never stored and are masked in logs. | |
41
+ | `fee` | [components.TokenizedAssetsFee](../../models/components/tokenizedassetsfee.md) | :heavy_minus_sign: | Optional partner fee charged when selling (exiting). It is taken from the payout-token (USDC) proceeds and sent to your fee recipient inside the same execution. | |
@@ -0,0 +1,27 @@
1
+ # WisdomTreeCredentials
2
+
3
+ Per-organization WisdomTree Connect API credentials.
4
+
5
+ Supplied per request rather than configured on the service: each
6
+ organization has its own WisdomTree account, whitelisted wallets and KYC,
7
+ so there is no single service-level credential that could serve every
8
+ caller. The secret is a ``SecretStr`` so it cannot be printed by accident,
9
+ and the error logger masks it in request bodies.
10
+
11
+ ## Example Usage
12
+
13
+ ```typescript
14
+ import { WisdomTreeCredentials } from "@compass-labs/api-sdk/models/components";
15
+
16
+ let value: WisdomTreeCredentials = {
17
+ clientId: "<id>",
18
+ clientSecret: "MHxbGtE8LWfkq3Z",
19
+ };
20
+ ```
21
+
22
+ ## Fields
23
+
24
+ | Field | Type | Required | Description |
25
+ | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
26
+ | `clientId` | *string* | :heavy_check_mark: | WisdomTree Connect client id for your organization. |
27
+ | `clientSecret` | *string* | :heavy_check_mark: | WisdomTree Connect client secret for your organization. |
@@ -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
  //