@tempoxyz/id 0.0.0-pr-686.sha-e51fd98 → 0.0.0-pr-688.sha-3865959

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.
@@ -4,8 +4,8 @@ import {
4
4
  name,
5
5
  parseName,
6
6
  pending
7
- } from "./chunk-A3TKBAOI.js";
8
- import "./chunk-JACZGAYL.js";
7
+ } from "./chunk-JJT3ITRO.js";
8
+ import "./chunk-YDYAVOWG.js";
9
9
  import "./chunk-YW5DUQT3.js";
10
10
  import "./chunk-MLKGABMK.js";
11
11
  export {
@@ -4,7 +4,7 @@ import {
4
4
  machines,
5
5
  prompt,
6
6
  waiting
7
- } from "./chunk-JACZGAYL.js";
7
+ } from "./chunk-YDYAVOWG.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
  export {
10
10
  create,
@@ -2,7 +2,7 @@ import {
2
2
  AccessKey_exports,
3
3
  Accounts_exports,
4
4
  Actions_exports
5
- } from "./chunk-JACZGAYL.js";
5
+ } from "./chunk-YDYAVOWG.js";
6
6
 
7
7
  // src/Session.ts
8
8
  import * as Fs from "node:fs/promises";
@@ -5,7 +5,7 @@ import {
5
5
  expired,
6
6
  from,
7
7
  revokeAccessKey
8
- } from "./chunk-JACZGAYL.js";
8
+ } from "./chunk-YDYAVOWG.js";
9
9
  import {
10
10
  from as from2
11
11
  } from "./chunk-YW5DUQT3.js";
@@ -102,6 +102,7 @@ async function proof(dpop2, options) {
102
102
  var AccessKey_exports = {};
103
103
  __export(AccessKey_exports, {
104
104
  AccessKeyRequiredError: () => AccessKeyRequiredError,
105
+ KeyTypeError: () => KeyTypeError,
105
106
  expired: () => expired,
106
107
  from: () => from,
107
108
  own: () => own,
@@ -120,6 +121,14 @@ var AccessKeyRequiredError = class extends Error {
120
121
  );
121
122
  }
122
123
  };
124
+ var KeyTypeError = class extends Error {
125
+ name = "AccessKey.KeyTypeError";
126
+ constructor() {
127
+ super(
128
+ "The authorization is for a configurable account, not an access key. Sign in again for an access key."
129
+ );
130
+ }
131
+ };
123
132
  function expired(key) {
124
133
  const { expiry } = KeyAuthorization.fromRpc(key.keyAuthorization);
125
134
  return Boolean(expiry) && expiry * 1e3 <= Date.now();
@@ -177,9 +186,11 @@ function toAccount(key, options = {}) {
177
186
  if (key.keyPair) return Account.fromWebCryptoP256(key.keyPair, access);
178
187
  if (key.privateKey) return Account.fromSecp256k1(key.privateKey, access);
179
188
  if (!accessKey2) throw new AccessKeyRequiredError();
189
+ const { type } = access.keyAuthorization;
190
+ if (type === "configurable") throw new KeyTypeError();
180
191
  return Account.from({
181
192
  ...access,
182
- keyType: accessKey2.keyType,
193
+ keyType: type,
183
194
  publicKey: PublicKey.fromHex(accessKey2.publicKey),
184
195
  sign: (parameters) => accessKey2.sign({ ...parameters, raw: true })
185
196
  });
@@ -359,6 +370,25 @@ async function token(auth, body) {
359
370
  })
360
371
  );
361
372
  }
373
+ async function refresh(auth, options) {
374
+ const config = {
375
+ ...auth,
376
+ fetch: ((input, init) => (auth.fetch ?? globalThis.fetch)(input, init).catch((error3) => {
377
+ throw new RequestError({
378
+ cause: error3,
379
+ code: "server_error",
380
+ message: "The refresh received no response. Check the connection, and refresh again.",
381
+ status: 0
382
+ });
383
+ }))
384
+ };
385
+ return tokens(
386
+ await token(config, {
387
+ grant_type: "refresh_token",
388
+ refresh_token: options.refreshToken
389
+ })
390
+ );
391
+ }
362
392
  function tempoAccount(account2, options = {}) {
363
393
  const owner = account2.config.owners.find((entry) => entry.type !== "webAuthn") ?? account2.config.owners[0];
364
394
  const keys = account2.config.owners.map((entry) => ({
@@ -739,7 +769,7 @@ __export(Actions_exports, {
739
769
  passkey: () => passkey_exports,
740
770
  realm: () => realm_exports,
741
771
  redirect: () => redirect_exports,
742
- refresh: () => refresh,
772
+ refresh: () => refresh2,
743
773
  signOut: () => signOut
744
774
  });
745
775
 
@@ -1452,14 +1482,38 @@ import {
1452
1482
 
1453
1483
  // ../../accounts/src/internal/IndexedDb.ts
1454
1484
  function create() {
1455
- const database = new Promise((resolve3, reject) => {
1456
- const request4 = indexedDB.open("tempo-id");
1457
- request4.onupgradeneeded = () => request4.result.createObjectStore(store);
1458
- request4.onsuccess = () => resolve3(request4.result);
1459
- request4.onerror = () => reject(request4.error);
1460
- });
1485
+ let database;
1486
+ function open2() {
1487
+ if (database) return database;
1488
+ const opened = new Promise((resolve3, reject) => {
1489
+ const request4 = indexedDB.open("tempo-id");
1490
+ request4.onupgradeneeded = () => request4.result.createObjectStore(store);
1491
+ request4.onsuccess = () => {
1492
+ request4.result.onclose = () => {
1493
+ if (database === opened) database = void 0;
1494
+ };
1495
+ resolve3(request4.result);
1496
+ };
1497
+ request4.onerror = () => reject(request4.error);
1498
+ });
1499
+ database = opened;
1500
+ opened.catch(() => {
1501
+ if (database === opened) database = void 0;
1502
+ });
1503
+ return opened;
1504
+ }
1461
1505
  async function run2(mode, fn) {
1462
- const transaction = (await database).transaction(store, mode);
1506
+ const transaction = await (async () => {
1507
+ const opened = open2();
1508
+ try {
1509
+ return (await opened).transaction(store, mode);
1510
+ } catch (error3) {
1511
+ if (!(error3 instanceof DOMException) || error3.name !== "InvalidStateError")
1512
+ throw error3;
1513
+ if (database === opened) database = void 0;
1514
+ return (await open2()).transaction(store, mode);
1515
+ }
1516
+ })();
1463
1517
  return new Promise((resolve3, reject) => {
1464
1518
  const request4 = fn(transaction.objectStore(store));
1465
1519
  transaction.oncomplete = () => resolve3(request4.result);
@@ -1658,7 +1712,7 @@ async function open(auth, options) {
1658
1712
  throw new OriginError({ origin: window.location.origin, redirectUri });
1659
1713
  if (mode === "popup" && options.mode !== "popup" && !activated()) {
1660
1714
  const address2 = await abortable(read2(), { signal });
1661
- const Sheet = await import("./Sheet-5EGGSH3T.js");
1715
+ const Sheet = await import("./Sheet-PTAFRAX2.js");
1662
1716
  return await new Promise((resolve3, reject) => {
1663
1717
  const abort = () => {
1664
1718
  close();
@@ -1709,7 +1763,7 @@ async function watch(auth, options) {
1709
1763
  try {
1710
1764
  return await new Promise(
1711
1765
  (resolve3, reject) => {
1712
- void import("./Sheet-5EGGSH3T.js").then(
1766
+ void import("./Sheet-PTAFRAX2.js").then(
1713
1767
  (Sheet) => {
1714
1768
  if (settled) return;
1715
1769
  unblock = Sheet.waiting({
@@ -1774,7 +1828,7 @@ function parse(url, options) {
1774
1828
  async function frame(auth, options) {
1775
1829
  const { redirectUri, signal, toUrl } = options;
1776
1830
  const address2 = await abortable(options.address, { signal });
1777
- const Sheet = await import("./Sheet-5EGGSH3T.js");
1831
+ const Sheet = await import("./Sheet-PTAFRAX2.js");
1778
1832
  signal?.throwIfAborted();
1779
1833
  let close;
1780
1834
  let abort;
@@ -1890,12 +1944,22 @@ function complete3(auth, options = {}) {
1890
1944
  const ticket2 = take(auth);
1891
1945
  const early = ticket2 && url.searchParams.has("code") && url.searchParams.get("state") === ticket2.state ? redeem(auth, { pending: ticket2, url }) : void 0;
1892
1946
  early?.catch(() => void 0);
1893
- const stored = await store2.getItem(storeKey);
1947
+ const state = url.searchParams.getAll("state").at(-1);
1948
+ const entry = await (async () => {
1949
+ if (state === void 0) return void 0;
1950
+ const key = storeKey(state);
1951
+ const value = await store2.getItem(key);
1952
+ if (value != null) return { key, value };
1953
+ const legacy = await store2.getItem(legacyStoreKey);
1954
+ if (legacy?.state === state) return { key: legacyStoreKey, value: legacy };
1955
+ return void 0;
1956
+ })();
1957
+ const stored = entry?.value;
1894
1958
  const redirectUri = stored?.redirectUri ?? url.origin;
1895
1959
  const registered = new URL(redirectUri).searchParams;
1896
1960
  if (stored != null && !owns(auth, stored)) return void 0;
1897
- const ours = stored != null && url.searchParams.get("state") === stored.state;
1898
- if (ours) await store2.removeItem(storeKey);
1961
+ const ours = stored != null && state === stored.state;
1962
+ if (ours && entry) await store2.removeItem(entry.key);
1899
1963
  const callback2 = [
1900
1964
  "code",
1901
1965
  "error",
@@ -2072,12 +2136,29 @@ async function prefetch(auth) {
2072
2136
  }
2073
2137
  async function start(auth, options = {}) {
2074
2138
  const { pending, url } = await createUrl(auth, options);
2075
- await get2(auth.store).setItem(storeKey, pending);
2139
+ const store2 = get2(auth.store);
2140
+ const now = Date.now();
2141
+ const expiresAt = now + pendingLifetime;
2142
+ const index = await store2.getItem(indexKey) ?? [];
2143
+ const expired3 = index.filter((entry) => entry.expiresAt <= now);
2144
+ const kept = index.filter((entry) => entry.expiresAt > now);
2145
+ await Promise.all([
2146
+ ...expired3.map((entry) => store2.removeItem(storeKey(entry.state))),
2147
+ store2.setItem(indexKey, [...kept, { expiresAt, state: pending.state }], {
2148
+ expiresAt
2149
+ }),
2150
+ store2.setItem(storeKey(pending.state), pending, { expiresAt })
2151
+ ]);
2076
2152
  save(auth, pending);
2077
2153
  window.location.assign(url);
2078
2154
  }
2079
2155
  var completed = /* @__PURE__ */ new WeakMap();
2080
- var storeKey = "tempo-id:redirect";
2156
+ var indexKey = "tempo-id:redirects";
2157
+ var pendingLifetime = 60 * 60 * 1e3;
2158
+ var legacyStoreKey = "tempo-id:redirect";
2159
+ function storeKey(state) {
2160
+ return `tempo-id:redirect:${state}`;
2161
+ }
2081
2162
 
2082
2163
  // ../../accounts/src/actions/dialog.ts
2083
2164
  var BlockedError2 = class extends Error {
@@ -3091,13 +3172,8 @@ async function fetch2(auth, options) {
3091
3172
  return (auth.fetch ?? globalThis.fetch)(url, { ...init, headers, method });
3092
3173
  }
3093
3174
  var refreshRetryDelay = 1e3;
3094
- async function refresh(auth, options) {
3095
- const send2 = async () => tokens(
3096
- await token(auth, {
3097
- grant_type: "refresh_token",
3098
- refresh_token: options.refreshToken
3099
- })
3100
- );
3175
+ async function refresh2(auth, options) {
3176
+ const send2 = () => refresh(auth, options);
3101
3177
  try {
3102
3178
  return await send2();
3103
3179
  } catch (error3) {
@@ -3171,7 +3247,7 @@ async function run(context, parameters) {
3171
3247
  await change.commit(session2);
3172
3248
  return { ...session2, upgradeAvailable: result.upgradeAvailable };
3173
3249
  }
3174
- function refresh2(context, options = {}) {
3250
+ function refresh3(context, options = {}) {
3175
3251
  const { margin } = options;
3176
3252
  return context.session.exclusive(async () => {
3177
3253
  await context.session.load({ locked: true });
@@ -3218,7 +3294,7 @@ function refresh2(context, options = {}) {
3218
3294
  const latest = await context.session.reload();
3219
3295
  const session2 = { ...current, ...tokens3 };
3220
3296
  if (held && !latest) {
3221
- const spansContexts = typeof indexedDB !== "undefined" && globalThis.navigator?.locks;
3297
+ const spansContexts = typeof indexedDB !== "undefined" && !!globalThis.navigator?.locks;
3222
3298
  if (!spansContexts) return void 0;
3223
3299
  await context.session.change({ update: true }).commit(session2);
3224
3300
  return session2;
@@ -3335,7 +3411,7 @@ var signInIds = /* @__PURE__ */ new Set([
3335
3411
  function plugin() {
3336
3412
  let loading;
3337
3413
  function load() {
3338
- loading ??= import("./dialog-G77XBXD2.js").then((module) => module.dialog()).catch((error3) => {
3414
+ loading ??= import("./dialog-7DSDKEHU.js").then((module) => module.dialog()).catch((error3) => {
3339
3415
  loading = void 0;
3340
3416
  throw error3;
3341
3417
  });
@@ -3533,44 +3609,45 @@ function create3(options) {
3533
3609
  }
3534
3610
  };
3535
3611
  const revoked = {
3536
- async has(session2) {
3537
- if (!store2 || !session2?.refreshToken) return false;
3538
- return (await readRevoked()).includes(digest(session2.refreshToken));
3612
+ /** Returns whether `digests` hold the refresh token of `session`. */
3613
+ has(digests, session2) {
3614
+ if (!session2?.refreshToken) return false;
3615
+ return digests.includes(digest(session2.refreshToken));
3616
+ },
3617
+ /** Reads the digests, or none when the read fails. */
3618
+ async read() {
3619
+ const value = await (async () => store2?.getItem(`${name}:revoked`))().catch(() => void 0);
3620
+ return Array.isArray(value) ? value : [];
3539
3621
  },
3540
3622
  // ponytail: the 32 latest digests, enough for a sign-out's own token, the 16 pending tokens of
3541
3623
  // the unanswered entry, and the sessions that one store's contexts hold. A digest that the list
3542
3624
  // holds moves to its end.
3543
- async add(session2) {
3544
- if (!store2 || !session2.refreshToken) return;
3545
- const added = digest(session2.refreshToken);
3546
- const digests = [
3547
- ...(await readRevoked()).filter((entry) => entry !== added),
3548
- added
3625
+ /** Writes `digests` with the digest of each token of `tokens` at the end, in order. */
3626
+ async write(digests, tokens3) {
3627
+ if (!store2 || tokens3.length === 0) return;
3628
+ const added = tokens3.map((token2) => digest(token2));
3629
+ const next = [
3630
+ ...digests.filter((entry) => !added.includes(entry)),
3631
+ ...added.filter((entry, index) => added.lastIndexOf(entry) === index)
3549
3632
  ].slice(-32);
3550
- await (async () => store2.setItem(`${name}:revoked`, digests))().catch(
3633
+ await (async () => store2.setItem(`${name}:revoked`, next))().catch(
3551
3634
  () => void 0
3552
3635
  );
3553
3636
  }
3554
3637
  };
3555
3638
  async function revokeExpired(session2) {
3556
- if (!session2.refreshToken) return;
3639
+ const { refreshToken } = session2;
3640
+ if (!refreshToken) return;
3557
3641
  await exclusive(async () => {
3558
- const stored = await read2();
3559
- if (stored?.refreshToken && stored.refreshToken !== session2.refreshToken)
3560
- return;
3561
- if (await revoked.has(session2)) return;
3642
+ const [stored, digests] = await Promise.all([read2(), revoked.read()]);
3643
+ if (stored?.refreshToken && stored.refreshToken !== refreshToken) return;
3644
+ if (revoked.has(digests, session2)) return;
3562
3645
  await signOut2(session2, {
3563
3646
  logout: false,
3564
- onRevoked: () => revoked.add(session2)
3647
+ onRevoked: () => revoked.write(digests, [refreshToken])
3565
3648
  });
3566
3649
  }).catch(() => void 0);
3567
3650
  }
3568
- async function readRevoked() {
3569
- const value = await (async () => store2?.getItem(`${name}:revoked`))().catch(
3570
- () => void 0
3571
- );
3572
- return Array.isArray(value) ? value : [];
3573
- }
3574
3651
  function digest(token2) {
3575
3652
  return Hash3.sha256(Bytes3.fromString(token2), { as: "Hex" });
3576
3653
  }
@@ -3683,11 +3760,9 @@ function create3(options) {
3683
3760
  set(session2, {
3684
3761
  signIn: !!session2 && !options2.update && !options2.restore
3685
3762
  });
3686
- await writes?.flush();
3687
- if (session2 && !options2.update) {
3688
- actor.send({ type: "change.commit" });
3689
- await mark(false);
3690
- }
3763
+ const clears = !!session2 && !options2.update && machines2.clears({ current: context(), started });
3764
+ if (clears) actor.send({ type: "change.commit" });
3765
+ await Promise.all([writes?.flush(), clears ? mark(false) : void 0]);
3691
3766
  if (session2) await onSignIn?.(session2);
3692
3767
  },
3693
3768
  fail: async (error3, failure = {}) => {
@@ -3786,8 +3861,11 @@ function create3(options) {
3786
3861
  rotated.clear();
3787
3862
  const emptied = settle(writes?.flush());
3788
3863
  return exclusive(async () => {
3789
- const failed = await emptied;
3790
- const stored = await read2();
3864
+ const [{ failed, stored }, earlier, digests] = await Promise.all([
3865
+ emptied.then(async (failed2) => ({ failed: failed2, stored: await read2() })),
3866
+ unanswered2.read(),
3867
+ revoked.read()
3868
+ ]);
3791
3869
  const current = actor ? context().session : void 0;
3792
3870
  const ending = machines2.ending({ before, current, local, stored });
3793
3871
  if (ending.empty)
@@ -3798,12 +3876,9 @@ function create3(options) {
3798
3876
  const skipped = ended?.refreshToken ? rotated.get(ended.refreshToken) : void 0;
3799
3877
  const signIns = actor ? context().signIns : 0;
3800
3878
  const known = !!ended?.refreshToken && ended.refreshToken === options2.revoked;
3801
- if (known && ended) await revoked.add(ended);
3802
- const revoking = known || ended?.refreshToken && rotated.has(ended.refreshToken) || await revoked.has(ended) ? void 0 : ended;
3803
- const earlier = await unanswered2.read();
3804
- const marked = store2 ? await readRevoked() : [];
3879
+ const revoking = known || ended?.refreshToken && rotated.has(ended.refreshToken) || revoked.has(digests, ended) ? void 0 : ended;
3805
3880
  const pending = (earlier ?? []).filter(
3806
- (token2) => token2 !== revoking?.refreshToken && !marked.includes(digest(token2))
3881
+ (token2) => token2 !== revoking?.refreshToken && !revoked.has(digests, { refreshToken: token2 })
3807
3882
  );
3808
3883
  const answered = /* @__PURE__ */ new Set();
3809
3884
  const signedOut = await settle(
@@ -3816,9 +3891,9 @@ function create3(options) {
3816
3891
  }),
3817
3892
  // Only an answered revocation marks its token, also when the logout after it fails. One
3818
3893
  // without an answer leaves the next sign-out to send it again.
3819
- onRevoked: revoking ? async () => {
3894
+ onRevoked: revoking ? () => {
3820
3895
  answered.add(revoking.refreshToken);
3821
- await revoked.add(revoking);
3896
+ return Promise.resolve();
3822
3897
  } : void 0,
3823
3898
  pending: pending.map((refreshToken) => ({
3824
3899
  onRevoked: () => {
@@ -3833,19 +3908,25 @@ function create3(options) {
3833
3908
  const live = pending.filter((token2) => !answered.has(token2));
3834
3909
  if (signedOut && revoking?.refreshToken && !answered.has(revoking.refreshToken))
3835
3910
  live.push(revoking.refreshToken);
3836
- for (const token2 of pending)
3837
- if (answered.has(token2)) await revoked.add({ refreshToken: token2 });
3838
- if (revoking?.refreshToken && answered.has(revoking.refreshToken))
3839
- await revoked.add(revoking);
3840
- if (earlier === void 0) {
3841
- const again = live.length > 0 ? await unanswered2.read() : void 0;
3842
- if (again)
3843
- await unanswered2.write([
3844
- ...again.filter((token2) => !live.includes(token2)),
3845
- ...live
3846
- ]);
3847
- } else if (earlier.length > 0 || live.length > 0)
3848
- await unanswered2.write(live);
3911
+ const marks = [
3912
+ ...known && ended?.refreshToken ? [ended.refreshToken] : [],
3913
+ ...pending.filter((token2) => answered.has(token2)),
3914
+ ...revoking?.refreshToken && answered.has(revoking.refreshToken) ? [revoking.refreshToken] : []
3915
+ ];
3916
+ await Promise.all([
3917
+ revoked.write(digests, marks),
3918
+ (async () => {
3919
+ if (earlier === void 0) {
3920
+ const again = live.length > 0 ? await unanswered2.read() : void 0;
3921
+ if (again)
3922
+ await unanswered2.write([
3923
+ ...again.filter((token2) => !live.includes(token2)),
3924
+ ...live
3925
+ ]);
3926
+ } else if (earlier.length > 0 || live.length > 0)
3927
+ await unanswered2.write(live);
3928
+ })()
3929
+ ]);
3849
3930
  if (erased) throw erased.error;
3850
3931
  if (signedOut) throw signedOut.error;
3851
3932
  });
@@ -4153,6 +4234,13 @@ var machines2;
4153
4234
  return current.signOuts !== started.signOuts;
4154
4235
  }
4155
4236
  machines4.overtaken = overtaken;
4237
+ function clears(options) {
4238
+ const { current, started } = options;
4239
+ if (!current.signingOut) return true;
4240
+ if (!started.signingOut) return false;
4241
+ return current.signingOut.runs <= started.signingOut.runs;
4242
+ }
4243
+ machines4.clears = clears;
4156
4244
  function replaces(options) {
4157
4245
  const { current, failed, stored } = options;
4158
4246
  if (!failed) return machines4.newer(stored, current);
@@ -4264,7 +4352,7 @@ async function accessToken(context, options) {
4264
4352
  if (session2.expiresAt > Date.now()) return session2.accessToken;
4265
4353
  throw new SignedOutError();
4266
4354
  }
4267
- const refreshed = await refresh2(context, { margin: refreshMargin });
4355
+ const refreshed = await refresh3(context, { margin: refreshMargin });
4268
4356
  if (refreshed?.user.id !== session2.user.id) throw new SignedOutError();
4269
4357
  return refreshed.accessToken;
4270
4358
  }
@@ -4524,7 +4612,7 @@ function create4(options = {}) {
4524
4612
  if (!current) throw new SignedOutError2();
4525
4613
  const token2 = await (async () => {
4526
4614
  if (current.expiresAt - 3e4 > Date.now()) return current.accessToken;
4527
- refreshing ??= refresh2(context, { margin: 3e4 }).finally(() => {
4615
+ refreshing ??= refresh3(context, { margin: 3e4 }).finally(() => {
4528
4616
  refreshing = void 0;
4529
4617
  });
4530
4618
  if (current.expiresAt - 5e3 > Date.now()) {
@@ -4543,7 +4631,7 @@ function create4(options = {}) {
4543
4631
  function connections2() {
4544
4632
  if (!connectionsOptions)
4545
4633
  return Promise.reject(new ConnectionsRequiredError());
4546
- attached ??= import("./Connections-JINMLNXP.js").then(
4634
+ attached ??= import("./Connections-7J5I4L3Q.js").then(
4547
4635
  (module) => module.attach(config, connectionsOptions)
4548
4636
  );
4549
4637
  return attached;
@@ -4616,7 +4704,7 @@ function create4(options = {}) {
4616
4704
  renew: accessKey_option === void 0,
4617
4705
  signedOut: session2.signedOut
4618
4706
  }),
4619
- refresh: () => refresh2(context),
4707
+ refresh: () => refresh3(context),
4620
4708
  status: session2.status,
4621
4709
  subscribe: session2.subscribe
4622
4710
  },
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  env,
3
3
  login
4
- } from "../chunk-XNYCQ3QU.js";
5
- import "../chunk-A3TKBAOI.js";
6
- import "../chunk-JACZGAYL.js";
4
+ } from "../chunk-FDHRRJQI.js";
5
+ import "../chunk-JJT3ITRO.js";
6
+ import "../chunk-YDYAVOWG.js";
7
7
  import "../chunk-YW5DUQT3.js";
8
8
  import "../chunk-MLKGABMK.js";
9
9
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  env,
3
3
  remove
4
- } from "../chunk-XNYCQ3QU.js";
5
- import "../chunk-A3TKBAOI.js";
6
- import "../chunk-JACZGAYL.js";
4
+ } from "../chunk-FDHRRJQI.js";
5
+ import "../chunk-JJT3ITRO.js";
6
+ import "../chunk-YDYAVOWG.js";
7
7
  import "../chunk-YW5DUQT3.js";
8
8
  import "../chunk-MLKGABMK.js";
9
9
 
@@ -2,9 +2,9 @@ import {
2
2
  env,
3
3
  signedOut,
4
4
  whoami
5
- } from "../chunk-XNYCQ3QU.js";
6
- import "../chunk-A3TKBAOI.js";
7
- import "../chunk-JACZGAYL.js";
5
+ } from "../chunk-FDHRRJQI.js";
6
+ import "../chunk-JJT3ITRO.js";
7
+ import "../chunk-YDYAVOWG.js";
8
8
  import "../chunk-YW5DUQT3.js";
9
9
  import "../chunk-MLKGABMK.js";
10
10
 
@@ -4,7 +4,7 @@ import {
4
4
  expired2 as expired,
5
5
  from2 as from,
6
6
  toSession
7
- } from "./chunk-JACZGAYL.js";
7
+ } from "./chunk-YDYAVOWG.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // ../../accounts/src/plugins/dialog.ts
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=24.21"
10
10
  },
11
11
  "name": "@tempoxyz/id",
12
- "version": "0.0.0-pr-686.sha-e51fd98",
12
+ "version": "0.0.0-pr-688.sha-3865959",
13
13
  "description": "The tempo-id CLI: sign in to Tempo ID, and call its API and the Admin API.",
14
14
  "type": "module",
15
15
  "bin": {
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "incur": "0.7.0",
24
24
  "jose": "6.2.12",
25
- "ox": "0.14.59",
26
- "viem": "0.0.0-bf3ffc52b5633afebacf3d728d846080f1668f30",
25
+ "ox": "0.14.63",
26
+ "viem": "0.0.0-2b9026da097323e7e9be8914c53f58edcdd0249a",
27
27
  "xstate": "5.33.3",
28
28
  "zod": "4.6.7"
29
29
  },