@0xmonaco/types 1.0.38 → 1.0.39

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.
@@ -122,12 +122,6 @@ export interface GetUserBalancesParams {
122
122
  * Response from getting user movements
123
123
  */
124
124
  export interface GetPaginatedUserMovementsResponse {
125
- /**
126
- * Latest movements from the live engine cache (real-time, instant updates).
127
- * These are the most recent movements that may not yet be in PostgreSQL.
128
- * Only populated on page 1; empty for subsequent pages.
129
- */
130
- latest_movements?: LedgerMovement[];
131
125
  /** All movements from PostgreSQL (historical, paginated) */
132
126
  movements: LedgerMovement[];
133
127
  /** Current page number */
@@ -167,11 +167,6 @@ export interface GetPaginatedOrdersParams {
167
167
  * Response from getting paginated orders
168
168
  */
169
169
  export interface GetPaginatedOrdersResponse {
170
- /** Latest orders from the live engine cache (real-time, instant updates).
171
- * These are the most recently created/updated orders that may not yet be in PostgreSQL.
172
- * Only populated on page 1.
173
- */
174
- latest_orders?: Order[];
175
170
  /** Array of historical orders from PostgreSQL (paginated) */
176
171
  orders: Order[];
177
172
  /**
@@ -51,4 +51,15 @@ export type WireCovered<Ergo, Wire> = [MissingWireFields<Ergo, Wire>] extends [n
51
51
  * `tsc` reports the missing wire fields at this line.
52
52
  */
53
53
  export type Expect<T extends true> = T;
54
+ /**
55
+ * Resolves to `true` when `K` is NOT a key of `T`, otherwise `false`. Pair with
56
+ * {@link Expect} to guard that a field stays absent from a public type, so a
57
+ * removed field cannot silently reappear:
58
+ *
59
+ * type _NoLatestOrders = Expect<KeyAbsent<GetPaginatedOrdersResponse, "latest_orders">>;
60
+ *
61
+ * If the key is present, `KeyAbsent` resolves to `false`, `T extends true`
62
+ * fails, and `tsc` reports the reintroduced field at this line.
63
+ */
64
+ export type KeyAbsent<T, K extends PropertyKey> = K extends keyof T ? false : true;
54
65
  export {};
@@ -13,7 +13,7 @@
13
13
  * It also exports the generated runtime `OPERATION_IDS` list and the
14
14
  * `auditSurface` helper that power the MON-1489 endpoint-coverage gate.
15
15
  */
16
- export type { Expect, MissingWireFields, WireCovered, WireSchema, WireSchemas } from "./assert";
16
+ export type { Expect, KeyAbsent, MissingWireFields, WireCovered, WireSchema, WireSchemas } from "./assert";
17
17
  export type { CoverageAudit, SurfaceClassification } from "./audit";
18
18
  export { auditSurface } from "./audit";
19
19
  export type { OperationId } from "./operations";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "lint": "biome lint ."
21
21
  },
22
22
  "dependencies": {
23
- "@0xmonaco/contracts": "1.0.38",
23
+ "@0xmonaco/contracts": "1.0.39",
24
24
  "zod": "^4.1.12"
25
25
  },
26
26
  "peerDependencies": {