@morseai/sdk 0.1.0-beta.7 → 0.1.0-beta.8

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.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  TypeScript SDK for creating and accessing encrypted signals in the MORSE platform.
8
8
 
9
- **Version:** 0.1.0-beta.7 (Beta Release)
9
+ **Version:** 0.1.0-beta.8 (Beta Release)
10
10
 
11
11
  > ⚠️ **Beta Notice**: This is a beta release. The API is stable but may have minor changes before the 1.0.0 release. Please report any issues you encounter.
12
12
 
package/dist/index.d.mts CHANGED
@@ -73,6 +73,16 @@ interface CreateSignalOptionsEncrypted {
73
73
  enabled: boolean;
74
74
  network: string;
75
75
  };
76
+ /**
77
+ * Domain for key derivation (optional, defaults to "morseai.tech")
78
+ * Should match the domain used when opening the signal
79
+ */
80
+ domain?: string;
81
+ /**
82
+ * Chain ID for key derivation (optional, defaults to 8453 for Base)
83
+ * Should match the chain ID used when opening the signal
84
+ */
85
+ chainId?: number;
76
86
  /**
77
87
  * Specific expiration date and time (ISO 8601 format).
78
88
  * Use this for custom expiration dates.
package/dist/index.d.ts CHANGED
@@ -73,6 +73,16 @@ interface CreateSignalOptionsEncrypted {
73
73
  enabled: boolean;
74
74
  network: string;
75
75
  };
76
+ /**
77
+ * Domain for key derivation (optional, defaults to "morseai.tech")
78
+ * Should match the domain used when opening the signal
79
+ */
80
+ domain?: string;
81
+ /**
82
+ * Chain ID for key derivation (optional, defaults to 8453 for Base)
83
+ * Should match the chain ID used when opening the signal
84
+ */
85
+ chainId?: number;
76
86
  /**
77
87
  * Specific expiration date and time (ISO 8601 format).
78
88
  * Use this for custom expiration dates.
package/dist/index.js CHANGED
@@ -1315,8 +1315,8 @@ var MorseSDKV1 = class {
1315
1315
  }
1316
1316
  const walletTarget = wallet.address;
1317
1317
  const walletCreator = wallet.address;
1318
- const domain = "morse.app";
1319
- const chainId = 8453;
1318
+ const domain = options.domain || "morseai.tech";
1319
+ const chainId = options.chainId ?? 8453;
1320
1320
  const keyBytes = this.base64ToUint8Array(keyBase64);
1321
1321
  const sealedBox = await sealDataKey(
1322
1322
  keyBytes,