@compass-labs/api-sdk 2.2.91 → 2.2.92

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.
@@ -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.918.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.918.4 0.0.1 @compass-labs/api-sdk";
35
+ readonly genVersion: "2.924.0";
36
+ readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.924.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.918.4",
36
- userAgent: "speakeasy-sdk/typescript 2.0.0 2.918.4 0.0.1 @compass-labs/api-sdk",
35
+ genVersion: "2.924.0",
36
+ userAgent: "speakeasy-sdk/typescript 2.0.0 2.924.0 0.0.1 @compass-labs/api-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -49,6 +49,18 @@ export type LoopedPositionCurrentState = {
49
49
  * 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
50
50
  */
51
51
  healthFactorScope: LoopedPositionCurrentStateHealthFactorScope;
52
+ /**
53
+ * What the collateral leg currently earns, in percentage (e.g. 6.12 = 6.12%). Aave: the collateral reserve's spot supply APY. Morpho: the collateral token's own yield — its 7d vault APY when it is an indexed vault share (e.g. steakUSDC); null otherwise, since Morpho collateral earns nothing from the market itself and an unindexed token's intrinsic yield is unknown.
54
+ */
55
+ collateralApy?: string | null | undefined;
56
+ /**
57
+ * What the debt leg currently costs, in percentage: the market's spot borrow APY (Morpho IRM rate / Aave variable borrow rate). Null when the rate read was unavailable.
58
+ */
59
+ borrowApy?: string | null | undefined;
60
+ /**
61
+ * Levered net yield on the position's equity, in percentage: leverage x collateral_apy - (leverage - 1) x borrow_apy. Negative means the carry is upside down (borrowing costs more than the collateral earns). Null when leverage or either leg is unknown. The collateral leg of a Morpho vault-share position is a 7d average while the borrow leg is spot.
62
+ */
63
+ netApy?: string | null | undefined;
52
64
  };
53
65
  /** @internal */
54
66
  export declare const LoopedPositionCurrentStateHealthFactorScope$inboundSchema: z.ZodNativeEnum<typeof LoopedPositionCurrentStateHealthFactorScope>;
@@ -1 +1 @@
1
- {"version":3,"file":"loopedpositioncurrentstate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.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;AAErE;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;CAG9C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG,UAAU,CAClE,OAAO,2CAA2C,CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,EAAE,2CAA2C,CAAC;CAChE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,aAAa,CAAC,OAAO,2CAA2C,CACR,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
1
+ {"version":3,"file":"loopedpositioncurrentstate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.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;AAErE;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;CAG9C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG,UAAU,CAClE,OAAO,2CAA2C,CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,EAAE,2CAA2C,CAAC;IAC/D;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,aAAa,CAAC,OAAO,2CAA2C,CACR,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CA2BP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -61,6 +61,9 @@ exports.LoopedPositionCurrentState$inboundSchema = z.object({
61
61
  leverage: z.nullable(z.string()).optional(),
62
62
  health_factor: z.nullable(z.string()).optional(),
63
63
  health_factor_scope: exports.LoopedPositionCurrentStateHealthFactorScope$inboundSchema,
64
+ collateral_apy: z.nullable(z.string()).optional(),
65
+ borrow_apy: z.nullable(z.string()).optional(),
66
+ net_apy: z.nullable(z.string()).optional(),
64
67
  }).transform((v) => {
65
68
  return (0, primitives_js_1.remap)(v, {
66
69
  "collateral_amount": "collateralAmount",
@@ -70,6 +73,9 @@ exports.LoopedPositionCurrentState$inboundSchema = z.object({
70
73
  "net_usd_value": "netUsdValue",
71
74
  "health_factor": "healthFactor",
72
75
  "health_factor_scope": "healthFactorScope",
76
+ "collateral_apy": "collateralApy",
77
+ "borrow_apy": "borrowApy",
78
+ "net_apy": "netApy",
73
79
  });
74
80
  });
75
81
  function loopedPositionCurrentStateFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"loopedpositioncurrentstate.js","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6FH,gFAQC;AAnGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAKjD;;GAEG;AACU,QAAA,2CAA2C,GAAG;IACzD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AA8CX,gBAAgB;AACH,QAAA,yDAAyD,GACE,CAAC;KACpE,UAAU,CAAC,mDAA2C,CAAC,CAAC;AAE7D,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,mBAAmB,EACjB,iEAAyD;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,kBAAkB;QACvC,aAAa,EAAE,YAAY;QAC3B,gBAAgB,EAAE,eAAe;QACjC,UAAU,EAAE,SAAS;QACrB,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,cAAc;QAC/B,qBAAqB,EAAE,mBAAmB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"loopedpositioncurrentstate.js","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GH,gFAQC;AArHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAKjD;;GAEG;AACU,QAAA,2CAA2C,GAAG;IACzD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AA0DX,gBAAgB;AACH,QAAA,yDAAyD,GACE,CAAC;KACpE,UAAU,CAAC,mDAA2C,CAAC,CAAC;AAE7D,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,C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B;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -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.918.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.918.4 0.0.1 @compass-labs/api-sdk";
35
+ readonly genVersion: "2.924.0";
36
+ readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.924.0 0.0.1 @compass-labs/api-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -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.918.4",
32
- userAgent: "speakeasy-sdk/typescript 2.0.0 2.918.4 0.0.1 @compass-labs/api-sdk",
31
+ genVersion: "2.924.0",
32
+ userAgent: "speakeasy-sdk/typescript 2.0.0 2.924.0 0.0.1 @compass-labs/api-sdk",
33
33
  };
34
34
  //# sourceMappingURL=config.js.map
@@ -49,6 +49,18 @@ export type LoopedPositionCurrentState = {
49
49
  * 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
50
50
  */
51
51
  healthFactorScope: LoopedPositionCurrentStateHealthFactorScope;
52
+ /**
53
+ * What the collateral leg currently earns, in percentage (e.g. 6.12 = 6.12%). Aave: the collateral reserve's spot supply APY. Morpho: the collateral token's own yield — its 7d vault APY when it is an indexed vault share (e.g. steakUSDC); null otherwise, since Morpho collateral earns nothing from the market itself and an unindexed token's intrinsic yield is unknown.
54
+ */
55
+ collateralApy?: string | null | undefined;
56
+ /**
57
+ * What the debt leg currently costs, in percentage: the market's spot borrow APY (Morpho IRM rate / Aave variable borrow rate). Null when the rate read was unavailable.
58
+ */
59
+ borrowApy?: string | null | undefined;
60
+ /**
61
+ * Levered net yield on the position's equity, in percentage: leverage x collateral_apy - (leverage - 1) x borrow_apy. Negative means the carry is upside down (borrowing costs more than the collateral earns). Null when leverage or either leg is unknown. The collateral leg of a Morpho vault-share position is a 7d average while the borrow leg is spot.
62
+ */
63
+ netApy?: string | null | undefined;
52
64
  };
53
65
  /** @internal */
54
66
  export declare const LoopedPositionCurrentStateHealthFactorScope$inboundSchema: z.ZodNativeEnum<typeof LoopedPositionCurrentStateHealthFactorScope>;
@@ -1 +1 @@
1
- {"version":3,"file":"loopedpositioncurrentstate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.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;AAErE;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;CAG9C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG,UAAU,CAClE,OAAO,2CAA2C,CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,EAAE,2CAA2C,CAAC;CAChE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,aAAa,CAAC,OAAO,2CAA2C,CACR,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
1
+ {"version":3,"file":"loopedpositioncurrentstate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.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;AAErE;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;CAG9C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG,UAAU,CAClE,OAAO,2CAA2C,CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,iBAAiB,EAAE,2CAA2C,CAAC;IAC/D;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,aAAa,CAAC,OAAO,2CAA2C,CACR,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CA2BP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -24,6 +24,9 @@ export const LoopedPositionCurrentState$inboundSchema = z.object({
24
24
  leverage: z.nullable(z.string()).optional(),
25
25
  health_factor: z.nullable(z.string()).optional(),
26
26
  health_factor_scope: LoopedPositionCurrentStateHealthFactorScope$inboundSchema,
27
+ collateral_apy: z.nullable(z.string()).optional(),
28
+ borrow_apy: z.nullable(z.string()).optional(),
29
+ net_apy: z.nullable(z.string()).optional(),
27
30
  }).transform((v) => {
28
31
  return remap$(v, {
29
32
  "collateral_amount": "collateralAmount",
@@ -33,6 +36,9 @@ export const LoopedPositionCurrentState$inboundSchema = z.object({
33
36
  "net_usd_value": "netUsdValue",
34
37
  "health_factor": "healthFactor",
35
38
  "health_factor_scope": "healthFactorScope",
39
+ "collateral_apy": "collateralApy",
40
+ "borrow_apy": "borrowApy",
41
+ "net_apy": "netApy",
36
42
  });
37
43
  });
38
44
  export function loopedPositionCurrentStateFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"loopedpositioncurrentstate.js","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.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;AAKjD;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG;IACzD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AA8CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yDAAyD,GACE,CAAC;KACpE,UAAU,CAAC,2CAA2C,CAAC,CAAC;AAE7D,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,mBAAmB,EACjB,yDAAyD;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,kBAAkB;QACvC,aAAa,EAAE,YAAY;QAC3B,gBAAgB,EAAE,eAAe;QACjC,UAAU,EAAE,SAAS;QACrB,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,cAAc;QAC/B,qBAAqB,EAAE,mBAAmB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"loopedpositioncurrentstate.js","sourceRoot":"","sources":["../../../../src/models/components/loopedpositioncurrentstate.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;AAKjD;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAG;IACzD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AA0DX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yDAAyD,GACE,CAAC;KACpE,UAAU,CAA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e,EAAE,aAAa;QAC9B,eAAe,EAAE,cAAc;QAC/B,qBAAqB,EAAE,mBAAmB;QAC1C,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,WAAW;QACzB,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -25,4 +25,7 @@ let value: LoopedPositionCurrentState = {
25
25
  | `netUsdValue` | *string* | :heavy_minus_sign: | Net position value in USD (collateral - debt); null if unpriced. For shared-reserve Aave positions the collateral side uses the pro-rata attributed balance (bookkeeping, not protocol truth). |
26
26
  | `leverage` | *string* | :heavy_minus_sign: | Leverage multiplier: collateral_usd / (collateral_usd - debt_usd). Null when unpriced or net value is non-positive. For shared-reserve Aave positions this is derived from the pro-rata attributed collateral (bookkeeping, not protocol truth). |
27
27
  | `healthFactor` | *string* | :heavy_minus_sign: | Health factor. Above 1 is safe; below 1 risks liquidation. See health_factor_scope for what it covers. |
28
- | `healthFactorScope` | [components.LoopedPositionCurrentStateHealthFactorScope](../../models/components/loopedpositioncurrentstatehealthfactorscope.md) | :heavy_check_mark: | 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures. |
28
+ | `healthFactorScope` | [components.LoopedPositionCurrentStateHealthFactorScope](../../models/components/loopedpositioncurrentstatehealthfactorscope.md) | :heavy_check_mark: | 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures. |
29
+ | `collateralApy` | *string* | :heavy_minus_sign: | What the collateral leg currently earns, in percentage (e.g. 6.12 = 6.12%). Aave: the collateral reserve's spot supply APY. Morpho: the collateral token's own yield — its 7d vault APY when it is an indexed vault share (e.g. steakUSDC); null otherwise, since Morpho collateral earns nothing from the market itself and an unindexed token's intrinsic yield is unknown. |
30
+ | `borrowApy` | *string* | :heavy_minus_sign: | What the debt leg currently costs, in percentage: the market's spot borrow APY (Morpho IRM rate / Aave variable borrow rate). Null when the rate read was unavailable. |
31
+ | `netApy` | *string* | :heavy_minus_sign: | Levered net yield on the position's equity, in percentage: leverage x collateral_apy - (leverage - 1) x borrow_apy. Negative means the carry is upside down (borrowing costs more than the collateral earns). Null when leverage or either leg is unknown. The collateral leg of a Morpho vault-share position is a 7d average while the borrow leg is spot. |
@@ -18153,6 +18153,42 @@
18153
18153
  ],
18154
18154
  "title": "Health Factor Scope",
18155
18155
  "description": "'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account \u2014 see aave_account_summary for the account-level figures."
18156
+ },
18157
+ "collateral_apy": {
18158
+ "anyOf": [
18159
+ {
18160
+ "type": "string"
18161
+ },
18162
+ {
18163
+ "type": "null"
18164
+ }
18165
+ ],
18166
+ "title": "Collateral Apy",
18167
+ "description": "What the collateral leg currently earns, in percentage (e.g. 6.12 = 6.12%). Aave: the collateral reserve's spot supply APY. Morpho: the collateral token's own yield \u2014 its 7d vault APY when it is an indexed vault share (e.g. steakUSDC); null otherwise, since Morpho collateral earns nothing from the market itself and an unindexed token's intrinsic yield is unknown."
18168
+ },
18169
+ "borrow_apy": {
18170
+ "anyOf": [
18171
+ {
18172
+ "type": "string"
18173
+ },
18174
+ {
18175
+ "type": "null"
18176
+ }
18177
+ ],
18178
+ "title": "Borrow Apy",
18179
+ "description": "What the debt leg currently costs, in percentage: the market's spot borrow APY (Morpho IRM rate / Aave variable borrow rate). Null when the rate read was unavailable."
18180
+ },
18181
+ "net_apy": {
18182
+ "anyOf": [
18183
+ {
18184
+ "type": "string"
18185
+ },
18186
+ {
18187
+ "type": "null"
18188
+ }
18189
+ ],
18190
+ "title": "Net Apy",
18191
+ "description": "Levered net yield on the position's equity, in percentage: leverage x collateral_apy - (leverage - 1) x borrow_apy. Negative means the carry is upside down (borrowing costs more than the collateral earns). Null when leverage or either leg is unknown. The collateral leg of a Morpho vault-share position is a 7d average while the borrow leg is spot."
18156
18192
  }
18157
18193
  },
18158
18194
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.2.91",
3
+ "version": "2.2.92",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
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.918.4",
65
+ genVersion: "2.924.0",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 2.0.0 2.918.4 0.0.1 @compass-labs/api-sdk",
67
+ "speakeasy-sdk/typescript 2.0.0 2.924.0 0.0.1 @compass-labs/api-sdk",
68
68
  } as const;
@@ -59,6 +59,18 @@ export type LoopedPositionCurrentState = {
59
59
  * 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
60
60
  */
61
61
  healthFactorScope: LoopedPositionCurrentStateHealthFactorScope;
62
+ /**
63
+ * What the collateral leg currently earns, in percentage (e.g. 6.12 = 6.12%). Aave: the collateral reserve's spot supply APY. Morpho: the collateral token's own yield — its 7d vault APY when it is an indexed vault share (e.g. steakUSDC); null otherwise, since Morpho collateral earns nothing from the market itself and an unindexed token's intrinsic yield is unknown.
64
+ */
65
+ collateralApy?: string | null | undefined;
66
+ /**
67
+ * What the debt leg currently costs, in percentage: the market's spot borrow APY (Morpho IRM rate / Aave variable borrow rate). Null when the rate read was unavailable.
68
+ */
69
+ borrowApy?: string | null | undefined;
70
+ /**
71
+ * Levered net yield on the position's equity, in percentage: leverage x collateral_apy - (leverage - 1) x borrow_apy. Negative means the carry is upside down (borrowing costs more than the collateral earns). Null when leverage or either leg is unknown. The collateral leg of a Morpho vault-share position is a 7d average while the borrow leg is spot.
72
+ */
73
+ netApy?: string | null | undefined;
62
74
  };
63
75
 
64
76
  /** @internal */
@@ -81,6 +93,9 @@ export const LoopedPositionCurrentState$inboundSchema: z.ZodType<
81
93
  health_factor: z.nullable(z.string()).optional(),
82
94
  health_factor_scope:
83
95
  LoopedPositionCurrentStateHealthFactorScope$inboundSchema,
96
+ collateral_apy: z.nullable(z.string()).optional(),
97
+ borrow_apy: z.nullable(z.string()).optional(),
98
+ net_apy: z.nullable(z.string()).optional(),
84
99
  }).transform((v) => {
85
100
  return remap$(v, {
86
101
  "collateral_amount": "collateralAmount",
@@ -90,6 +105,9 @@ export const LoopedPositionCurrentState$inboundSchema: z.ZodType<
90
105
  "net_usd_value": "netUsdValue",
91
106
  "health_factor": "healthFactor",
92
107
  "health_factor_scope": "healthFactorScope",
108
+ "collateral_apy": "collateralApy",
109
+ "borrow_apy": "borrowApy",
110
+ "net_apy": "netApy",
93
111
  });
94
112
  });
95
113