decane-connect-kit 2.29.1 → 2.29.3

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/dist/index.d.cts CHANGED
@@ -1004,6 +1004,13 @@ interface SocialConfig {
1004
1004
  * read from one tab to the whole origin.
1005
1005
  */
1006
1006
  resumeSessionAcrossTabs?: boolean;
1007
+ /**
1008
+ * How long a wallet session lasts, in minutes. Default 480 (8 hours). The
1009
+ * session is still capped by the access token's expiry and the signer's own
1010
+ * limit, whichever comes first. It is also how long a saved session survives
1011
+ * a reload, so a shorter value signs people out on refresh sooner.
1012
+ */
1013
+ sessionDurationMinutes?: number;
1007
1014
  /**
1008
1015
  * Offer to save a recovery-share file at signup. **Default false** since
1009
1016
  * 2.7.4 — opt in explicitly with `true`.
package/dist/index.d.ts CHANGED
@@ -1004,6 +1004,13 @@ interface SocialConfig {
1004
1004
  * read from one tab to the whole origin.
1005
1005
  */
1006
1006
  resumeSessionAcrossTabs?: boolean;
1007
+ /**
1008
+ * How long a wallet session lasts, in minutes. Default 480 (8 hours). The
1009
+ * session is still capped by the access token's expiry and the signer's own
1010
+ * limit, whichever comes first. It is also how long a saved session survives
1011
+ * a reload, so a shorter value signs people out on refresh sooner.
1012
+ */
1013
+ sessionDurationMinutes?: number;
1007
1014
  /**
1008
1015
  * Offer to save a recovery-share file at signup. **Default false** since
1009
1016
  * 2.7.4 — opt in explicitly with `true`.
package/dist/index.js CHANGED
@@ -2438,15 +2438,16 @@ init_errors();
2438
2438
 
2439
2439
  // ../infra/tee-measurement.json
2440
2440
  var tee_measurement_default = {
2441
- signerVersion: "0.2.10",
2441
+ signerVersion: "0.2.13",
2442
2442
  acceptedMrtd: [
2443
+ '["fb14dc139f33d6fcf474bc8332cac001259fb31cfbcb6b34d4ceeb552a2c4466884a0cbde45ad98a05c5c060c23ad65a","07e6f51aa763abfe75c3ddfbf4f425fe3f0ceff66d807a75e049303dce9addf68e7218729bd419638af63a370f65878c","a2a58c9a959a4fa44bd6da0c97a2270c051faf12084cfe91ae900e4fdff6cdd4f69a82005e04ee920f231497894d677f","5538de3ba0930ae65c7c2b99346742a67dff7891545d91e8d74006d215fff256db91998eaff1c3dcca679a89df566700"]',
2443
2444
  '["fb14dc139f33d6fcf474bc8332cac001259fb31cfbcb6b34d4ceeb552a2c4466884a0cbde45ad98a05c5c060c23ad65a","07e6f51aa763abfe75c3ddfbf4f425fe3f0ceff66d807a75e049303dce9addf68e7218729bd419638af63a370f65878c","a2a58c9a959a4fa44bd6da0c97a2270c051faf12084cfe91ae900e4fdff6cdd4f69a82005e04ee920f231497894d677f","a76a81147b7f733cb400914c8791ec149bb3a31f3727b1c1e12ec22e9c1a183b6e617e78636dca37075f5a695afd46c2"]',
2444
2445
  '["68102e7b524af310f7b7d426ce75481e36c40f5d513a9009c046e9d37e31551f0134d954b496a3357fd61d03f07ffe96","07e6f51aa763abfe75c3ddfbf4f425fe3f0ceff66d807a75e049303dce9addf68e7218729bd419638af63a370f65878c","a2a58c9a959a4fa44bd6da0c97a2270c051faf12084cfe91ae900e4fdff6cdd4f69a82005e04ee920f231497894d677f","a76a81147b7f733cb400914c8791ec149bb3a31f3727b1c1e12ec22e9c1a183b6e617e78636dca37075f5a695afd46c2"]'
2445
2446
  ],
2446
- primaryMrtd: '["fb14dc139f33d6fcf474bc8332cac001259fb31cfbcb6b34d4ceeb552a2c4466884a0cbde45ad98a05c5c060c23ad65a","07e6f51aa763abfe75c3ddfbf4f425fe3f0ceff66d807a75e049303dce9addf68e7218729bd419638af63a370f65878c","a2a58c9a959a4fa44bd6da0c97a2270c051faf12084cfe91ae900e4fdff6cdd4f69a82005e04ee920f231497894d677f","a76a81147b7f733cb400914c8791ec149bb3a31f3727b1c1e12ec22e9c1a183b6e617e78636dca37075f5a695afd46c2"]',
2447
- capturedAt: "2026-09-07T07:19:30.544601Z",
2447
+ primaryMrtd: '["fb14dc139f33d6fcf474bc8332cac001259fb31cfbcb6b34d4ceeb552a2c4466884a0cbde45ad98a05c5c060c23ad65a","07e6f51aa763abfe75c3ddfbf4f425fe3f0ceff66d807a75e049303dce9addf68e7218729bd419638af63a370f65878c","a2a58c9a959a4fa44bd6da0c97a2270c051faf12084cfe91ae900e4fdff6cdd4f69a82005e04ee920f231497894d677f","5538de3ba0930ae65c7c2b99346742a67dff7891545d91e8d74006d215fff256db91998eaff1c3dcca679a89df566700"]',
2448
+ capturedAt: "2026-09-30T18:36:41Z",
2448
2449
  tcbStatus: "UpToDate",
2449
- _note: "Captured from the live CVM 786e714d-5042-4bf1-8060-0bc358f6a72f (app_4405742df08d\u2026) after the 2026-09-07 credential recovery. RTMR0 changed; RTMR1-3 did not \u2014 RTMR3 is the app-compose measurement, so the app's identity is unchanged and this is a platform/firmware move underneath the CVM (Phala node v0.6.0), not a change to what we deploy. Sealing was verified intact across it (/signer/sealing-status: sealingAvailable, roundTripOk, ready), so no auth_shares were lost. The previous measurement is retained above so a rollback still verifies. measurement is the JSON.stringify(replayRtmrs()) output, compared as an opaque string (not parsed per-RTMR), matching social/attestation.ts."
2450
+ _note: "Captured from the live CVM app_4405742df08d after the 2026-09-30 restart that shipped signer 0.2.13 (Path A, compose byte-identical). RTMR3 changed; RTMR0-2 did not. The app-id and compose-hash events in RTMR3 are unchanged, so the move is in the platform-recorded events (instance, KMS or OS image) underneath the CVM, not in what we deploy. The quote verified against Intel (TCB UpToDate) and bound a fresh nonce before this was accepted, with the operator's approval. Sealing verified intact (/signer/sealing-status ready). Both previous measurements are retained so a rollback still verifies. measurement is the JSON.stringify(replayRtmrs()) output, compared as an opaque string."
2450
2451
  };
2451
2452
 
2452
2453
  // src/social/attestation.ts
@@ -3828,7 +3829,7 @@ async function buildPortableBackup(deviceShare, recoveryShare, password, address
3828
3829
  // src/social/client.ts
3829
3830
  var DEFAULT_API_BASE = "https://backend.decane.app";
3830
3831
  var DEFAULT_TEE_URL = "https://4405742df08d19abc549a05ade2a7154d98bd87f-8443.dstack-pha-prod9.phala.network";
3831
- var DEFAULT_SESSION_MINUTES = 120;
3832
+ var DEFAULT_SESSION_MINUTES = 480;
3832
3833
  function makePersistKey(apiKey) {
3833
3834
  return `decane:social:${apiKey.slice(0, 20)}`;
3834
3835
  }
@@ -6812,6 +6813,7 @@ function DecaneKit({ config, children }) {
6812
6813
  protection,
6813
6814
  deferDeviceProtection,
6814
6815
  resumeSessionAcrossTabs,
6816
+ sessionDurationMinutes,
6815
6817
  // Recovery callbacks. Forwarding these is what makes recovery
6816
6818
  // configurable at all from <DecaneKit>; before, they were silently
6817
6819
  // dropped and the headless client was constructed without them.
@@ -6835,6 +6837,7 @@ function DecaneKit({ config, children }) {
6835
6837
  protection,
6836
6838
  deferDeviceProtection,
6837
6839
  resumeSessionAcrossTabs,
6840
+ sessionDurationMinutes,
6838
6841
  offerRecoveryAtSignup,
6839
6842
  onRecoveryShareOffer,
6840
6843
  onRecoveryFileReady,