@floegence/flowersec-core 0.10.1 → 0.10.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.
@@ -1,4 +1,9 @@
1
1
  import { type ConnectOptionsBase } from "../client-connect/connectCore.js";
2
2
  import type { ClientInternal } from "../client.js";
3
- export type DirectConnectOptions = ConnectOptionsBase;
3
+ export type DirectConnectOptions = ConnectOptionsBase & Readonly<{
4
+ /** Type-only marker to prevent mixing direct and tunnel option types. */
5
+ __mode?: "direct";
6
+ /** Reserved for tunnel connects; forbidden for direct connects. */
7
+ endpointInstanceId?: never;
8
+ }>;
4
9
  export declare function connectDirect(info: unknown, opts: DirectConnectOptions): Promise<ClientInternal>;
@@ -1,6 +1,8 @@
1
1
  import { type ConnectOptionsBase } from "../client-connect/connectCore.js";
2
2
  import type { ClientInternal } from "../client.js";
3
3
  export type TunnelConnectOptions = ConnectOptionsBase & Readonly<{
4
+ /** Type-only marker to prevent mixing direct and tunnel option types. */
5
+ __mode?: "tunnel";
4
6
  /** Optional caller-provided endpoint instance ID (base64url). */
5
7
  endpointInstanceId?: string;
6
8
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/flowersec-core",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Flowersec core TypeScript library (browser-friendly E2EE + multiplexing over WebSocket).",
5
5
  "license": "MIT",
6
6
  "repository": {