@tempoxyz/id 0.0.0-pr-704.sha-99cc9fa → 0.0.0-pr-704.sha-6a3fa61

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-RDVT6HBL.js";
8
- import "./chunk-Y3YY6MPD.js";
7
+ } from "./chunk-U2KJB64X.js";
8
+ import "./chunk-IBZUNV2Y.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-Y3YY6MPD.js";
7
+ } from "./chunk-IBZUNV2Y.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-Y3YY6MPD.js";
5
+ } from "./chunk-IBZUNV2Y.js";
6
6
 
7
7
  // src/Session.ts
8
8
  import * as Fs from "node:fs/promises";
@@ -239,13 +239,7 @@ function authorization(body, options) {
239
239
  }
240
240
  function challengeSignature(body) {
241
241
  if (!body.account || !body.challenge_signature) return {};
242
- return {
243
- challengeSignature: {
244
- account: body.account,
245
- chainId: body.challenge_signature.chain_id,
246
- signature: body.challenge_signature.signature
247
- }
248
- };
242
+ return { address: body.account, challengeSignature: body.challenge_signature };
249
243
  }
250
244
  async function json(response) {
251
245
  const body = await response.json().catch(() => ({}));
@@ -1260,6 +1254,7 @@ async function signIn(auth, options) {
1260
1254
  return authorization(
1261
1255
  {
1262
1256
  account: body.account,
1257
+ ...body.challenge_signature ? { challenge_signature: body.challenge_signature } : {},
1263
1258
  key_authorization: body.key_authorization,
1264
1259
  tokens: tokens3
1265
1260
  },
@@ -1465,6 +1460,7 @@ async function request2(auth, options) {
1465
1460
  const authorization2 = key ? authorization(
1466
1461
  {
1467
1462
  account: body.account,
1463
+ ...body.challenge_signature ? { challenge_signature: body.challenge_signature } : {},
1468
1464
  key_authorization: body.key_authorization,
1469
1465
  tokens: tokens(body)
1470
1466
  },
@@ -1738,7 +1734,7 @@ async function open(auth, options) {
1738
1734
  throw new OriginError({ origin: window.location.origin, redirectUri });
1739
1735
  if (mode === "popup" && options.mode !== "popup" && !activated()) {
1740
1736
  const address2 = await abortable(read2(), { signal });
1741
- const Sheet = await import("./Sheet-HX3XM5UC.js");
1737
+ const Sheet = await import("./Sheet-2L465IRV.js");
1742
1738
  return await new Promise((resolve3, reject) => {
1743
1739
  const abort = () => {
1744
1740
  close();
@@ -1789,7 +1785,7 @@ async function watch(auth, options) {
1789
1785
  try {
1790
1786
  return await new Promise(
1791
1787
  (resolve3, reject) => {
1792
- void import("./Sheet-HX3XM5UC.js").then(
1788
+ void import("./Sheet-2L465IRV.js").then(
1793
1789
  (Sheet) => {
1794
1790
  if (settled) return;
1795
1791
  unblock = Sheet.waiting({
@@ -1854,7 +1850,7 @@ function parse(url, options) {
1854
1850
  async function frame(auth, options) {
1855
1851
  const { redirectUri, signal, toUrl } = options;
1856
1852
  const address2 = await abortable(options.address, { signal });
1857
- const Sheet = await import("./Sheet-HX3XM5UC.js");
1853
+ const Sheet = await import("./Sheet-2L465IRV.js");
1858
1854
  signal?.throwIfAborted();
1859
1855
  let close;
1860
1856
  let abort;
@@ -2136,6 +2132,7 @@ function finish(options) {
2136
2132
  return authorization(
2137
2133
  {
2138
2134
  account: body.account,
2135
+ ...body.challenge_signature ? { challenge_signature: body.challenge_signature } : {},
2139
2136
  key_authorization: body.key_authorization,
2140
2137
  tokens: body
2141
2138
  },
@@ -2676,7 +2673,10 @@ function toSession(result) {
2676
2673
  return from4({
2677
2674
  accessToken: result.accessToken,
2678
2675
  ...result.account ? { account: result.account } : {},
2679
- ...result.challengeSignature ? { challengeSignature: result.challengeSignature } : {},
2676
+ ...result.address && result.challengeSignature ? {
2677
+ address: result.address,
2678
+ challengeSignature: result.challengeSignature
2679
+ } : {},
2680
2680
  expiresAt: result.expiresAt,
2681
2681
  ...result.idToken !== void 0 ? { idToken: result.idToken } : {},
2682
2682
  ...result.key ? { key: withLifetime(result.key) } : {},
@@ -3453,7 +3453,7 @@ var signInIds = /* @__PURE__ */ new Set([
3453
3453
  function plugin() {
3454
3454
  let loading;
3455
3455
  function load() {
3456
- loading ??= import("./dialog-KA5WF34W.js").then((module) => module.dialog()).catch((error3) => {
3456
+ loading ??= import("./dialog-4KIVDDJQ.js").then((module) => module.dialog()).catch((error3) => {
3457
3457
  loading = void 0;
3458
3458
  throw error3;
3459
3459
  });
@@ -4665,7 +4665,7 @@ function create4(options = {}) {
4665
4665
  function connections2() {
4666
4666
  if (!connectionsOptions)
4667
4667
  return Promise.reject(new ConnectionsRequiredError());
4668
- attached ??= import("./Connections-JHIA675U.js").then(
4668
+ attached ??= import("./Connections-ONCDPK23.js").then(
4669
4669
  (module) => module.attach(config, connectionsOptions)
4670
4670
  );
4671
4671
  return attached;
@@ -5,7 +5,7 @@ import {
5
5
  expired,
6
6
  from,
7
7
  revokeAccessKey
8
- } from "./chunk-Y3YY6MPD.js";
8
+ } from "./chunk-IBZUNV2Y.js";
9
9
  import {
10
10
  from as from2
11
11
  } from "./chunk-YW5DUQT3.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  env,
3
3
  login
4
- } from "../chunk-ZIB573K3.js";
5
- import "../chunk-RDVT6HBL.js";
6
- import "../chunk-Y3YY6MPD.js";
4
+ } from "../chunk-FU2TDVJS.js";
5
+ import "../chunk-U2KJB64X.js";
6
+ import "../chunk-IBZUNV2Y.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-ZIB573K3.js";
5
- import "../chunk-RDVT6HBL.js";
6
- import "../chunk-Y3YY6MPD.js";
4
+ } from "../chunk-FU2TDVJS.js";
5
+ import "../chunk-U2KJB64X.js";
6
+ import "../chunk-IBZUNV2Y.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-ZIB573K3.js";
6
- import "../chunk-RDVT6HBL.js";
7
- import "../chunk-Y3YY6MPD.js";
5
+ } from "../chunk-FU2TDVJS.js";
6
+ import "../chunk-U2KJB64X.js";
7
+ import "../chunk-IBZUNV2Y.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-Y3YY6MPD.js";
7
+ } from "./chunk-IBZUNV2Y.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-704.sha-99cc9fa",
12
+ "version": "0.0.0-pr-704.sha-6a3fa61",
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": {