@tempoxyz/id 0.0.0-pr-704.sha-7c2e350 → 0.0.0-pr-704.sha-0cbffe0

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-FR3Y7557.js";
8
- import "./chunk-N2AX3I52.js";
7
+ } from "./chunk-USONPD4G.js";
8
+ import "./chunk-PA3AETBC.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-N2AX3I52.js";
7
+ } from "./chunk-PA3AETBC.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-N2AX3I52.js";
5
+ } from "./chunk-PA3AETBC.js";
6
6
 
7
7
  // src/Session.ts
8
8
  import * as Fs from "node:fs/promises";
@@ -1452,14 +1452,17 @@ async function authorize2(auth, options) {
1452
1452
  }
1453
1453
  async function poll(auth, options) {
1454
1454
  const { deviceCode } = options;
1455
+ const challenged = options.challenged ?? options.accessKey === false;
1455
1456
  if (options.accessKey === false)
1456
1457
  return request2(auth, {
1458
+ challenged,
1457
1459
  deviceCode,
1458
1460
  key: void 0
1459
1461
  });
1460
1462
  const accessKey2 = own(options.accessKey);
1461
1463
  if (!accessKey2) throw new AccessKeyRequiredError();
1462
1464
  return request2(auth, {
1465
+ challenged,
1463
1466
  deviceCode,
1464
1467
  key: { accessKey: accessKey2, material: {} }
1465
1468
  });
@@ -1763,7 +1766,7 @@ async function open(auth, options) {
1763
1766
  throw new OriginError({ origin: window.location.origin, redirectUri });
1764
1767
  if (mode === "popup" && options.mode !== "popup" && !activated()) {
1765
1768
  const address2 = await abortable(read2(), { signal });
1766
- const Sheet = await import("./Sheet-EWEYRZNJ.js");
1769
+ const Sheet = await import("./Sheet-FH4KRDI7.js");
1767
1770
  return await new Promise((resolve3, reject) => {
1768
1771
  const abort = () => {
1769
1772
  close();
@@ -1814,7 +1817,7 @@ async function watch(auth, options) {
1814
1817
  try {
1815
1818
  return await new Promise(
1816
1819
  (resolve3, reject) => {
1817
- void import("./Sheet-EWEYRZNJ.js").then(
1820
+ void import("./Sheet-FH4KRDI7.js").then(
1818
1821
  (Sheet) => {
1819
1822
  if (settled) return;
1820
1823
  unblock = Sheet.waiting({
@@ -1879,7 +1882,7 @@ function parse(url, options) {
1879
1882
  async function frame(auth, options) {
1880
1883
  const { redirectUri, signal, toUrl } = options;
1881
1884
  const address2 = await abortable(options.address, { signal });
1882
- const Sheet = await import("./Sheet-EWEYRZNJ.js");
1885
+ const Sheet = await import("./Sheet-FH4KRDI7.js");
1883
1886
  signal?.throwIfAborted();
1884
1887
  let close;
1885
1888
  let abort;
@@ -3522,7 +3525,7 @@ var signInIds = /* @__PURE__ */ new Set([
3522
3525
  function plugin() {
3523
3526
  let loading;
3524
3527
  function load() {
3525
- loading ??= import("./dialog-B3MKOMPT.js").then((module) => module.dialog()).catch((error3) => {
3528
+ loading ??= import("./dialog-RR4ETIE7.js").then((module) => module.dialog()).catch((error3) => {
3526
3529
  loading = void 0;
3527
3530
  throw error3;
3528
3531
  });
@@ -4734,7 +4737,7 @@ function create4(options = {}) {
4734
4737
  function connections2() {
4735
4738
  if (!connectionsOptions)
4736
4739
  return Promise.reject(new ConnectionsRequiredError());
4737
- attached ??= import("./Connections-6BMLTJRD.js").then(
4740
+ attached ??= import("./Connections-D5RJSFJP.js").then(
4738
4741
  (module) => module.attach(config, connectionsOptions)
4739
4742
  );
4740
4743
  return attached;
@@ -5,7 +5,7 @@ import {
5
5
  expired,
6
6
  from,
7
7
  revokeAccessKey
8
- } from "./chunk-N2AX3I52.js";
8
+ } from "./chunk-PA3AETBC.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-BWC6KR4N.js";
5
- import "../chunk-FR3Y7557.js";
6
- import "../chunk-N2AX3I52.js";
4
+ } from "../chunk-LUSCUHII.js";
5
+ import "../chunk-USONPD4G.js";
6
+ import "../chunk-PA3AETBC.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-BWC6KR4N.js";
5
- import "../chunk-FR3Y7557.js";
6
- import "../chunk-N2AX3I52.js";
4
+ } from "../chunk-LUSCUHII.js";
5
+ import "../chunk-USONPD4G.js";
6
+ import "../chunk-PA3AETBC.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-BWC6KR4N.js";
6
- import "../chunk-FR3Y7557.js";
7
- import "../chunk-N2AX3I52.js";
5
+ } from "../chunk-LUSCUHII.js";
6
+ import "../chunk-USONPD4G.js";
7
+ import "../chunk-PA3AETBC.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-N2AX3I52.js";
7
+ } from "./chunk-PA3AETBC.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-7c2e350",
12
+ "version": "0.0.0-pr-704.sha-0cbffe0",
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": {