@tempoxyz/id 0.0.0-pr-992.sha-9142c4a → 0.0.0-pr-841.sha-0dbb2b9

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.
@@ -2,9 +2,9 @@ import {
2
2
  attach,
3
3
  create,
4
4
  pending
5
- } from "./chunk-7KIOFUO2.js";
5
+ } from "./chunk-3Q4JTEUC.js";
6
6
  import "./chunk-FWGE6HXK.js";
7
- import "./chunk-Y5ESRTOA.js";
7
+ import "./chunk-PKWTN7TY.js";
8
8
  import "./chunk-FHXDPKTL.js";
9
9
  import "./chunk-MLKGABMK.js";
10
10
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  InvalidError
3
3
  } from "./chunk-2T7V6ASK.js";
4
- import "./chunk-AVGHKMEM.js";
4
+ import "./chunk-NVLHKZHD.js";
5
5
  import {
6
6
  authPath,
7
7
  basePath,
@@ -12,7 +12,7 @@ import {
12
12
  RequestError,
13
13
  key,
14
14
  siwe
15
- } from "./chunk-Y5ESRTOA.js";
15
+ } from "./chunk-PKWTN7TY.js";
16
16
  import "./chunk-FHXDPKTL.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
@@ -4,8 +4,8 @@ import {
4
4
  machines,
5
5
  prompt,
6
6
  waiting
7
- } from "./chunk-6YB3Z2ZN.js";
8
- import "./chunk-Y5ESRTOA.js";
7
+ } from "./chunk-46VKYYFX.js";
8
+ import "./chunk-PKWTN7TY.js";
9
9
  import "./chunk-FHXDPKTL.js";
10
10
  import "./chunk-MLKGABMK.js";
11
11
  export {
@@ -8,7 +8,7 @@ import {
8
8
  from,
9
9
  json,
10
10
  post
11
- } from "./chunk-Y5ESRTOA.js";
11
+ } from "./chunk-PKWTN7TY.js";
12
12
  import {
13
13
  __export
14
14
  } from "./chunk-MLKGABMK.js";
@@ -3,7 +3,7 @@ import {
3
3
  openPopup,
4
4
  received,
5
5
  watchPopup
6
- } from "./chunk-Y5ESRTOA.js";
6
+ } from "./chunk-PKWTN7TY.js";
7
7
 
8
8
  // ../../accounts/src/internal/Sheet.ts
9
9
  import {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  handleCallback,
3
3
  handleResult
4
- } from "./chunk-AVGHKMEM.js";
4
+ } from "./chunk-NVLHKZHD.js";
5
5
  import {
6
6
  create,
7
7
  prompt,
8
8
  waiting
9
- } from "./chunk-6YB3Z2ZN.js";
9
+ } from "./chunk-46VKYYFX.js";
10
10
  import {
11
11
  authPath,
12
12
  basePath
@@ -31,7 +31,7 @@ import {
31
31
  resources,
32
32
  revoke,
33
33
  watchPopup
34
- } from "./chunk-Y5ESRTOA.js";
34
+ } from "./chunk-PKWTN7TY.js";
35
35
  import {
36
36
  __export
37
37
  } from "./chunk-MLKGABMK.js";
@@ -16,7 +16,7 @@ import {
16
16
  tempoAccount,
17
17
  tokens,
18
18
  user
19
- } from "./chunk-Y5ESRTOA.js";
19
+ } from "./chunk-PKWTN7TY.js";
20
20
  import {
21
21
  __export
22
22
  } from "./chunk-MLKGABMK.js";
@@ -19,7 +19,7 @@ import {
19
19
  tokens,
20
20
  url,
21
21
  user
22
- } from "./chunk-Y5ESRTOA.js";
22
+ } from "./chunk-PKWTN7TY.js";
23
23
  import {
24
24
  __export
25
25
  } from "./chunk-MLKGABMK.js";
@@ -1189,7 +1189,7 @@ async function approve(auth, options) {
1189
1189
  let unwatch;
1190
1190
  try {
1191
1191
  return await new Promise((resolve3, reject) => {
1192
- void import("./Sheet-ZAJ3CTUV.js").then(
1192
+ void import("./Sheet-YJPC6ELF.js").then(
1193
1193
  (Sheet2) => {
1194
1194
  if (settled) return;
1195
1195
  unblock = Sheet2.waiting({
@@ -1244,7 +1244,7 @@ async function approve(auth, options) {
1244
1244
  }
1245
1245
  }
1246
1246
  const covering = direct ? void 0 : hold;
1247
- const Sheet = await import("./Sheet-ZAJ3CTUV.js");
1247
+ const Sheet = await import("./Sheet-YJPC6ELF.js");
1248
1248
  signal?.throwIfAborted();
1249
1249
  const sheet = Sheet.load({
1250
1250
  // The page runs the passkey ceremony of the account's owner, for Tempo ID's origin. The payment
@@ -1541,11 +1541,11 @@ function resolve(permissions2, options) {
1541
1541
  );
1542
1542
  return [
1543
1543
  ...limits.flatMap((entry) => {
1544
- const tip202 = Scopes.tip20(entry.address);
1544
+ const tip20 = Scopes.tip20(entry.address);
1545
1545
  return [
1546
- tip202.transfer(),
1547
- tip202.transferWithMemo(),
1548
- ...entry.spenders?.length ? [tip202.approve({ recipients: entry.spenders })] : []
1546
+ tip20.transfer(),
1547
+ tip20.transferWithMemo(),
1548
+ ...entry.spenders?.length ? [tip20.approve({ recipients: entry.spenders })] : []
1549
1549
  ];
1550
1550
  }),
1551
1551
  reserve.open(),
@@ -1797,7 +1797,6 @@ function permissions(auth, options) {
1797
1797
  const rules = /* @__PURE__ */ new Map();
1798
1798
  const repeated = scopes.map((scope, index) => ({ index, scope })).find((item) => {
1799
1799
  const { address } = item.scope;
1800
- if (item.scope.selector === void 0 && tip20(item.scope)) return false;
1801
1800
  if (!Address5.validate(address, { strict: false })) return false;
1802
1801
  const key2 = address.toLowerCase();
1803
1802
  const call = item.scope.selector === void 0 ? void 0 : selector(item.scope.selector);
@@ -1935,9 +1934,6 @@ function selector(value) {
1935
1934
  return value;
1936
1935
  }
1937
1936
  }
1938
- function tip20(scope) {
1939
- return scope.address.toLowerCase().startsWith("0x20c000000000000000000000");
1940
- }
1941
1937
 
1942
1938
  // ../../accounts/src/internal/Headless.ts
1943
1939
  async function authorize(auth, options) {
@@ -4619,7 +4615,7 @@ function plugin() {
4619
4615
  let loading;
4620
4616
  let loaded_plugin;
4621
4617
  function load() {
4622
- loading ??= import("./dialog-LOM5ZTPY.js").then((module) => loaded_plugin = module.dialog()).catch((error3) => {
4618
+ loading ??= import("./dialog-RB66MYVO.js").then((module) => loaded_plugin = module.dialog()).catch((error3) => {
4623
4619
  loading = void 0;
4624
4620
  throw error3;
4625
4621
  });
@@ -4928,7 +4924,7 @@ async function open(auth, options) {
4928
4924
  throw new OriginError2({ origin: window.location.origin, redirectUri });
4929
4925
  if (mode === "popup" && options.mode !== "popup" && !activated()) {
4930
4926
  const address = await abortable(read3(), { signal });
4931
- const Sheet = await import("./Sheet-ZAJ3CTUV.js");
4927
+ const Sheet = await import("./Sheet-YJPC6ELF.js");
4932
4928
  return await new Promise((resolve3, reject) => {
4933
4929
  const abort = () => {
4934
4930
  close();
@@ -4991,7 +4987,7 @@ async function preload(auth, options) {
4991
4987
  const entry = { ready: Promise.resolve(), sheet: void 0, url: url2 };
4992
4988
  preloads.set(auth, entry);
4993
4989
  entry.ready = (async () => {
4994
- const Sheet = await import("./Sheet-ZAJ3CTUV.js").catch(() => void 0);
4990
+ const Sheet = await import("./Sheet-YJPC6ELF.js").catch(() => void 0);
4995
4991
  if (!document.body)
4996
4992
  await new Promise(
4997
4993
  (resolve3) => document.addEventListener("DOMContentLoaded", resolve3, {
@@ -5017,7 +5013,7 @@ async function watch(auth, options) {
5017
5013
  try {
5018
5014
  return await new Promise(
5019
5015
  (resolve3, reject) => {
5020
- void import("./Sheet-ZAJ3CTUV.js").then(
5016
+ void import("./Sheet-YJPC6ELF.js").then(
5021
5017
  (Sheet) => {
5022
5018
  if (settled) return;
5023
5019
  unblock = Sheet.waiting({
@@ -5119,7 +5115,7 @@ var decimal = /^(?:0|[1-9]\d{0,17})(?:\.\d{1,18})?$/;
5119
5115
  async function frame(auth, options) {
5120
5116
  const { redirectUri, signal, toUrl } = options;
5121
5117
  const address = await abortable(options.address, { signal });
5122
- const Sheet = await import("./Sheet-ZAJ3CTUV.js");
5118
+ const Sheet = await import("./Sheet-YJPC6ELF.js");
5123
5119
  signal?.throwIfAborted();
5124
5120
  const url2 = toUrl(address);
5125
5121
  const held = preloads.get(auth);
@@ -5744,7 +5740,7 @@ function create4(options = {}) {
5744
5740
  function connections2() {
5745
5741
  if (!connectionsOptions)
5746
5742
  return Promise.reject(new ConnectionsRequiredError());
5747
- attached ??= import("./Connections-DK2SIMV5.js").then(
5743
+ attached ??= import("./Connections-Z7ZFSBVZ.js").then(
5748
5744
  (module) => module.attach(config, connectionsOptions)
5749
5745
  );
5750
5746
  return attached;
@@ -5801,7 +5797,7 @@ function create4(options = {}) {
5801
5797
  },
5802
5798
  handler: {
5803
5799
  async fetch(request2) {
5804
- server ??= import("./Server-CARQOWST.js").then(
5800
+ server ??= import("./Server-IJGD4OMI.js").then(
5805
5801
  (module) => module.create({
5806
5802
  accessKeys: connectionsOptions ? async () => (await connections2()).accessKeyEndpoint : void 0,
5807
5803
  // The `backend` plugin's actions sit on the instance under its `id`.
@@ -2,16 +2,16 @@ import {
2
2
  bind,
3
3
  from,
4
4
  passkey_exports
5
- } from "./chunk-DS4YLNUJ.js";
5
+ } from "./chunk-JQKEOROM.js";
6
6
  import {
7
7
  dialog_exports
8
- } from "./chunk-LN2RXYYW.js";
8
+ } from "./chunk-CSUHHWD5.js";
9
9
  import {
10
10
  redirect_exports
11
- } from "./chunk-AVGHKMEM.js";
11
+ } from "./chunk-NVLHKZHD.js";
12
12
  import {
13
13
  connections_exports
14
- } from "./chunk-7KIOFUO2.js";
14
+ } from "./chunk-3Q4JTEUC.js";
15
15
  import {
16
16
  AccessKey_exports,
17
17
  Accounts_exports,
@@ -50,7 +50,7 @@ import {
50
50
  unlisted,
51
51
  user,
52
52
  withoutAccessKey
53
- } from "./chunk-Y5ESRTOA.js";
53
+ } from "./chunk-PKWTN7TY.js";
54
54
  import {
55
55
  __export
56
56
  } from "./chunk-MLKGABMK.js";
@@ -447,7 +447,7 @@ async function signIn2(auth2, options) {
447
447
  return { ...next, options: next.options };
448
448
  })();
449
449
  if (creation && prepared.accessKey && options.accessKey) {
450
- const { register } = await import("./passkey-DFH2IY4D.js");
450
+ const { register } = await import("./passkey-LAIZ34ZC.js");
451
451
  const registered = await register(auth2, {
452
452
  accessKey: { ...options.accessKey, account: prepared.accessKey.signer },
453
453
  challenge: options.challenge,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  env,
3
3
  login
4
- } from "../chunk-N5H6SUAV.js";
4
+ } from "../chunk-VKUTE3BC.js";
5
5
  import "../chunk-2T7V6ASK.js";
6
- import "../chunk-DS4YLNUJ.js";
7
- import "../chunk-LN2RXYYW.js";
8
- import "../chunk-AVGHKMEM.js";
9
- import "../chunk-6YB3Z2ZN.js";
10
- import "../chunk-7KIOFUO2.js";
6
+ import "../chunk-JQKEOROM.js";
7
+ import "../chunk-CSUHHWD5.js";
8
+ import "../chunk-NVLHKZHD.js";
9
+ import "../chunk-46VKYYFX.js";
10
+ import "../chunk-3Q4JTEUC.js";
11
11
  import "../chunk-FWGE6HXK.js";
12
12
  import {
13
13
  Accounts_exports
14
- } from "../chunk-Y5ESRTOA.js";
14
+ } from "../chunk-PKWTN7TY.js";
15
15
  import "../chunk-FHXDPKTL.js";
16
16
  import "../chunk-MLKGABMK.js";
17
17
 
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  env,
3
3
  remove
4
- } from "../chunk-N5H6SUAV.js";
4
+ } from "../chunk-VKUTE3BC.js";
5
5
  import "../chunk-2T7V6ASK.js";
6
- import "../chunk-DS4YLNUJ.js";
7
- import "../chunk-LN2RXYYW.js";
8
- import "../chunk-AVGHKMEM.js";
9
- import "../chunk-6YB3Z2ZN.js";
10
- import "../chunk-7KIOFUO2.js";
6
+ import "../chunk-JQKEOROM.js";
7
+ import "../chunk-CSUHHWD5.js";
8
+ import "../chunk-NVLHKZHD.js";
9
+ import "../chunk-46VKYYFX.js";
10
+ import "../chunk-3Q4JTEUC.js";
11
11
  import "../chunk-FWGE6HXK.js";
12
- import "../chunk-Y5ESRTOA.js";
12
+ import "../chunk-PKWTN7TY.js";
13
13
  import "../chunk-FHXDPKTL.js";
14
14
  import "../chunk-MLKGABMK.js";
15
15
 
@@ -2,15 +2,15 @@ import {
2
2
  env,
3
3
  signedOut,
4
4
  whoami
5
- } from "../chunk-N5H6SUAV.js";
5
+ } from "../chunk-VKUTE3BC.js";
6
6
  import "../chunk-2T7V6ASK.js";
7
- import "../chunk-DS4YLNUJ.js";
8
- import "../chunk-LN2RXYYW.js";
9
- import "../chunk-AVGHKMEM.js";
10
- import "../chunk-6YB3Z2ZN.js";
11
- import "../chunk-7KIOFUO2.js";
7
+ import "../chunk-JQKEOROM.js";
8
+ import "../chunk-CSUHHWD5.js";
9
+ import "../chunk-NVLHKZHD.js";
10
+ import "../chunk-46VKYYFX.js";
11
+ import "../chunk-3Q4JTEUC.js";
12
12
  import "../chunk-FWGE6HXK.js";
13
- import "../chunk-Y5ESRTOA.js";
13
+ import "../chunk-PKWTN7TY.js";
14
14
  import "../chunk-FHXDPKTL.js";
15
15
  import "../chunk-MLKGABMK.js";
16
16
 
@@ -3,9 +3,9 @@ import {
3
3
  preload,
4
4
  signIn,
5
5
  signMessage
6
- } from "./chunk-LN2RXYYW.js";
7
- import "./chunk-AVGHKMEM.js";
8
- import "./chunk-6YB3Z2ZN.js";
6
+ } from "./chunk-CSUHHWD5.js";
7
+ import "./chunk-NVLHKZHD.js";
8
+ import "./chunk-46VKYYFX.js";
9
9
  import {
10
10
  authPath,
11
11
  basePath
@@ -25,7 +25,7 @@ import {
25
25
  revokeAccessKey,
26
26
  toSession,
27
27
  updateAccessKey
28
- } from "./chunk-Y5ESRTOA.js";
28
+ } from "./chunk-PKWTN7TY.js";
29
29
  import "./chunk-FHXDPKTL.js";
30
30
  import "./chunk-MLKGABMK.js";
31
31
 
@@ -3,8 +3,8 @@ import {
3
3
  prepare,
4
4
  register,
5
5
  signIn
6
- } from "./chunk-DS4YLNUJ.js";
7
- import "./chunk-Y5ESRTOA.js";
6
+ } from "./chunk-JQKEOROM.js";
7
+ import "./chunk-PKWTN7TY.js";
8
8
  import "./chunk-FHXDPKTL.js";
9
9
  import "./chunk-MLKGABMK.js";
10
10
  export {
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-992.sha-9142c4a",
12
+ "version": "0.0.0-pr-841.sha-0dbb2b9",
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": {