@0xmonaco/types 1.0.54 → 1.0.55

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.
@@ -19,12 +19,16 @@ import type { MonacoWebSocket, MonacoWebSocketConfig, OrderbookEvent, OrderbookQ
19
19
  import type { WhitelistAPI } from "../whitelist";
20
20
  import type { WithdrawalsAPI } from "../withdrawals";
21
21
  import type { Network } from "./network";
22
+ /** REST signing migration selector. WebSocket and gRPC authentication are unchanged. */
23
+ export type RequestSigning = "legacy" | "rfc9421";
22
24
  /**
23
25
  * Configuration options for the Monaco SDK.
24
26
  *
25
27
  * The SDK requires a wallet client for signing operations and an RPC URL.
26
28
  */
27
29
  export interface SDKConfig {
30
+ /** Defaults to legacy. Opt in after deploying RFC 9421 server support; never auto-downgrades. */
31
+ requestSigning?: RequestSigning;
28
32
  /** Wallet client for signing operations (optional - can be set later via setWalletClient) */
29
33
  walletClient?: WalletClient;
30
34
  /**
@@ -569,7 +569,7 @@ export interface paths {
569
569
  * @description Refresh session expiry.
570
570
  *
571
571
  * Extends the expiration of the current session. The request must be signed
572
- * by the session private key (standard X-Monaco-* headers); no body is
572
+ * by the session private key (RFC 9421 or legacy X-Monaco-* headers); no body is
573
573
  * required.
574
574
  */
575
575
  post: operations["refresh_session"];
@@ -593,7 +593,7 @@ export interface paths {
593
593
  * @description Revoke current session.
594
594
  *
595
595
  * Revoke the current authenticated session. The request must be signed by
596
- * the session private key (standard X-Monaco-* headers). The user will need
596
+ * the session private key (RFC 9421 or legacy X-Monaco-* headers). The user will need
597
597
  * to authenticate again to obtain a new session.
598
598
  */
599
599
  post: operations["revoke_session"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "lint": "biome lint ."
17
17
  },
18
18
  "dependencies": {
19
- "@0xmonaco/contracts": "1.0.54",
19
+ "@0xmonaco/contracts": "1.0.55",
20
20
  "zod": "^4.1.12"
21
21
  },
22
22
  "peerDependencies": {