@better-auth-ui/react 1.6.30 → 1.6.32

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.
Files changed (27) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.js +420 -329
  3. package/dist/lib/auth-client.d.ts +11 -1
  4. package/dist/mutations/admin/stop-impersonating-mutation.d.ts +61 -0
  5. package/dist/mutations/device-authorization/approve-device-mutation.d.ts +33 -0
  6. package/dist/mutations/device-authorization/deny-device-mutation.d.ts +33 -0
  7. package/dist/mutations/device-authorization/verify-device-code-mutation.d.ts +107 -0
  8. package/dist/mutations/oauth-provider/oauth-consent-mutation.d.ts +40 -0
  9. package/dist/mutations/organization/accept-invitation-mutation.d.ts +4 -4
  10. package/dist/mutations/organization/cancel-invitation-mutation.d.ts +4 -4
  11. package/dist/mutations/organization/invite-member-mutation.d.ts +8 -8
  12. package/dist/mutations/organization/leave-organization-mutation.d.ts +2 -2
  13. package/dist/mutations/organization/reject-invitation-mutation.d.ts +2 -2
  14. package/dist/mutations/organization/remove-member-mutation.d.ts +2 -2
  15. package/dist/mutations/organization/set-active-organization-mutation.d.ts +6 -6
  16. package/dist/queries/oauth-provider/public-oauth-client-query.d.ts +33 -0
  17. package/dist/queries/organization/list-members-query.d.ts +4 -4
  18. package/dist/server/queries/organization/list-members-query.d.ts +4 -4
  19. package/package.json +3 -1
  20. package/src/index.ts +6 -0
  21. package/src/lib/auth-client.ts +22 -0
  22. package/src/mutations/admin/stop-impersonating-mutation.ts +71 -0
  23. package/src/mutations/device-authorization/approve-device-mutation.ts +45 -0
  24. package/src/mutations/device-authorization/deny-device-mutation.ts +45 -0
  25. package/src/mutations/device-authorization/verify-device-code-mutation.ts +48 -0
  26. package/src/mutations/oauth-provider/oauth-consent-mutation.ts +41 -0
  27. package/src/queries/oauth-provider/public-oauth-client-query.ts +131 -0
package/dist/index.js CHANGED
@@ -4,9 +4,9 @@ import { authMutationKeys as a, authQueryKeys as o } from "@better-auth-ui/core"
4
4
  import { mutationOptions as s, queryOptions as c, skipToken as l, useMutation as u, useQuery as d, useQueryClient as f } from "@tanstack/react-query";
5
5
  import { useCallback as p, useEffect as ee, useId as te, useSyncExternalStore as ne } from "react";
6
6
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
7
- import { apiKeyMutationKeys as re, apiKeyQueryKeys as g, deleteUserMutationKeys as ie, lastLoginMethodLocalization as ae, lastLoginMethodPlugin as oe, magicLinkMutationKeys as se, multiSessionMutationKeys as ce, multiSessionQueryKeys as _, organizationMutationKeys as v, organizationPlugin as le, organizationQueryKeys as y, passkeyMutationKeys as b, passkeyQueryKeys as x, usernameMutationKeys as ue } from "@better-auth-ui/core/plugins";
7
+ import { adminMutationKeys as re, apiKeyMutationKeys as ie, apiKeyQueryKeys as g, deleteUserMutationKeys as ae, deviceAuthorizationMutationKeys as _, lastLoginMethodLocalization as oe, lastLoginMethodPlugin as se, magicLinkMutationKeys as ce, multiSessionMutationKeys as le, multiSessionQueryKeys as v, oauthProviderMutationKeys as ue, oauthProviderQueryKeys as de, organizationMutationKeys as y, organizationPlugin as fe, organizationQueryKeys as b, passkeyMutationKeys as x, passkeyQueryKeys as S, usernameMutationKeys as pe } from "@better-auth-ui/core/plugins";
8
8
  //#region src/components/icons/apple.tsx
9
- function de(e) {
9
+ function me(e) {
10
10
  return /* @__PURE__ */ m("svg", {
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  viewBox: "0 0 24 24",
@@ -21,7 +21,7 @@ function de(e) {
21
21
  }
22
22
  //#endregion
23
23
  //#region src/components/icons/atlassian.tsx
24
- function fe(e) {
24
+ function he(e) {
25
25
  let t = te();
26
26
  return /* @__PURE__ */ h("svg", {
27
27
  xmlns: "http://www.w3.org/2000/svg",
@@ -57,7 +57,7 @@ function fe(e) {
57
57
  }
58
58
  //#endregion
59
59
  //#region src/components/icons/cognito.tsx
60
- function pe(e) {
60
+ function ge(e) {
61
61
  return /* @__PURE__ */ h("svg", {
62
62
  xmlns: "http://www.w3.org/2000/svg",
63
63
  viewBox: "0 0 48 48",
@@ -75,7 +75,7 @@ function pe(e) {
75
75
  }
76
76
  //#endregion
77
77
  //#region src/components/icons/discord.tsx
78
- function me(e) {
78
+ function _e(e) {
79
79
  return /* @__PURE__ */ m("svg", {
80
80
  xmlns: "http://www.w3.org/2000/svg",
81
81
  viewBox: "0 0 256 199",
@@ -90,7 +90,7 @@ function me(e) {
90
90
  }
91
91
  //#endregion
92
92
  //#region src/components/icons/dropbox.tsx
93
- function he(e) {
93
+ function ve(e) {
94
94
  return /* @__PURE__ */ m("svg", {
95
95
  xmlns: "http://www.w3.org/2000/svg",
96
96
  viewBox: "0 0 256 218",
@@ -105,7 +105,7 @@ function he(e) {
105
105
  }
106
106
  //#endregion
107
107
  //#region src/components/icons/facebook.tsx
108
- function ge(e) {
108
+ function ye(e) {
109
109
  return /* @__PURE__ */ h("svg", {
110
110
  xmlns: "http://www.w3.org/2000/svg",
111
111
  viewBox: "0 0 256 256",
@@ -123,7 +123,7 @@ function ge(e) {
123
123
  }
124
124
  //#endregion
125
125
  //#region src/components/icons/figma.tsx
126
- function _e(e) {
126
+ function be(e) {
127
127
  return /* @__PURE__ */ h("svg", {
128
128
  xmlns: "http://www.w3.org/2000/svg",
129
129
  viewBox: "0 0 128 128",
@@ -156,7 +156,7 @@ function _e(e) {
156
156
  }
157
157
  //#endregion
158
158
  //#region src/components/icons/github.tsx
159
- function ve(e) {
159
+ function C(e) {
160
160
  return /* @__PURE__ */ m("svg", {
161
161
  xmlns: "http://www.w3.org/2000/svg",
162
162
  viewBox: "0 0 24 24",
@@ -171,7 +171,7 @@ function ve(e) {
171
171
  }
172
172
  //#endregion
173
173
  //#region src/components/icons/gitlab.tsx
174
- function S(e) {
174
+ function w(e) {
175
175
  return /* @__PURE__ */ h("svg", {
176
176
  xmlns: "http://www.w3.org/2000/svg",
177
177
  viewBox: "0 0 128 128",
@@ -200,7 +200,7 @@ function S(e) {
200
200
  }
201
201
  //#endregion
202
202
  //#region src/components/icons/google.tsx
203
- function C(e) {
203
+ function T(e) {
204
204
  return /* @__PURE__ */ m("svg", {
205
205
  xmlns: "http://www.w3.org/2000/svg",
206
206
  viewBox: "0 0 16 16",
@@ -238,7 +238,7 @@ function C(e) {
238
238
  }
239
239
  //#endregion
240
240
  //#region src/components/icons/huggingface.tsx
241
- function w(e) {
241
+ function E(e) {
242
242
  return /* @__PURE__ */ h("svg", {
243
243
  xmlns: "http://www.w3.org/2000/svg",
244
244
  viewBox: "0 0 256 238",
@@ -275,7 +275,7 @@ function w(e) {
275
275
  }
276
276
  //#endregion
277
277
  //#region src/components/icons/kakao.tsx
278
- function T(e) {
278
+ function D(e) {
279
279
  return /* @__PURE__ */ m("svg", {
280
280
  xmlns: "http://www.w3.org/2000/svg",
281
281
  viewBox: "0 0 576 512",
@@ -290,7 +290,7 @@ function T(e) {
290
290
  }
291
291
  //#endregion
292
292
  //#region src/components/icons/kick.tsx
293
- function E(e) {
293
+ function O(e) {
294
294
  return /* @__PURE__ */ m("svg", {
295
295
  xmlns: "http://www.w3.org/2000/svg",
296
296
  viewBox: "0 0 512 512",
@@ -309,7 +309,7 @@ function E(e) {
309
309
  }
310
310
  //#endregion
311
311
  //#region src/components/icons/line.tsx
312
- function D(e) {
312
+ function k(e) {
313
313
  return /* @__PURE__ */ m("svg", {
314
314
  xmlns: "http://www.w3.org/2000/svg",
315
315
  viewBox: "0 0 24 24",
@@ -324,7 +324,7 @@ function D(e) {
324
324
  }
325
325
  //#endregion
326
326
  //#region src/components/icons/linear.tsx
327
- function O(e) {
327
+ function A(e) {
328
328
  return /* @__PURE__ */ m("svg", {
329
329
  xmlns: "http://www.w3.org/2000/svg",
330
330
  viewBox: "0 0 24 24",
@@ -339,7 +339,7 @@ function O(e) {
339
339
  }
340
340
  //#endregion
341
341
  //#region src/components/icons/linkedin.tsx
342
- function k(e) {
342
+ function j(e) {
343
343
  return /* @__PURE__ */ m("svg", {
344
344
  xmlns: "http://www.w3.org/2000/svg",
345
345
  viewBox: "0 0 256 256",
@@ -371,7 +371,7 @@ function k(e) {
371
371
  }
372
372
  //#endregion
373
373
  //#region src/components/icons/microsoft.tsx
374
- function A(e) {
374
+ function M(e) {
375
375
  return /* @__PURE__ */ h("svg", {
376
376
  xmlns: "http://www.w3.org/2000/svg",
377
377
  viewBox: "0 0 256 256",
@@ -400,7 +400,7 @@ function A(e) {
400
400
  }
401
401
  //#endregion
402
402
  //#region src/components/icons/naver.tsx
403
- function j(e) {
403
+ function N(e) {
404
404
  return /* @__PURE__ */ m("svg", {
405
405
  xmlns: "http://www.w3.org/2000/svg",
406
406
  viewBox: "0 0 24 24",
@@ -415,7 +415,7 @@ function j(e) {
415
415
  }
416
416
  //#endregion
417
417
  //#region src/components/icons/notion.tsx
418
- function M(e) {
418
+ function P(e) {
419
419
  return /* @__PURE__ */ h("svg", {
420
420
  xmlns: "http://www.w3.org/2000/svg",
421
421
  viewBox: "0 0 256 268",
@@ -430,7 +430,7 @@ function M(e) {
430
430
  }
431
431
  //#endregion
432
432
  //#region src/components/icons/paybin.tsx
433
- function N(e) {
433
+ function xe(e) {
434
434
  return /* @__PURE__ */ h("svg", {
435
435
  xmlns: "http://www.w3.org/2000/svg",
436
436
  viewBox: "0 0 34 34",
@@ -461,7 +461,7 @@ function N(e) {
461
461
  }
462
462
  //#endregion
463
463
  //#region src/components/icons/paypal.tsx
464
- function P(e) {
464
+ function Se(e) {
465
465
  return /* @__PURE__ */ h("svg", {
466
466
  xmlns: "http://www.w3.org/2000/svg",
467
467
  viewBox: "0 0 256 302",
@@ -490,7 +490,7 @@ function P(e) {
490
490
  }
491
491
  //#endregion
492
492
  //#region src/components/icons/polar.tsx
493
- function F(e) {
493
+ function Ce(e) {
494
494
  return /* @__PURE__ */ m("svg", {
495
495
  xmlns: "http://www.w3.org/2000/svg",
496
496
  viewBox: "0 0 24 24",
@@ -513,7 +513,7 @@ function F(e) {
513
513
  }
514
514
  //#endregion
515
515
  //#region src/components/icons/railway.tsx
516
- function I(e) {
516
+ function we(e) {
517
517
  return /* @__PURE__ */ m("svg", {
518
518
  xmlns: "http://www.w3.org/2000/svg",
519
519
  viewBox: "0 0 24 24",
@@ -528,7 +528,7 @@ function I(e) {
528
528
  }
529
529
  //#endregion
530
530
  //#region src/components/icons/reddit.tsx
531
- function ye(e) {
531
+ function Te(e) {
532
532
  return /* @__PURE__ */ h("svg", {
533
533
  xmlns: "http://www.w3.org/2000/svg",
534
534
  viewBox: "0 0 256 256",
@@ -548,7 +548,7 @@ function ye(e) {
548
548
  }
549
549
  //#endregion
550
550
  //#region src/components/icons/roblox.tsx
551
- function be(e) {
551
+ function Ee(e) {
552
552
  return /* @__PURE__ */ m("svg", {
553
553
  xmlns: "http://www.w3.org/2000/svg",
554
554
  viewBox: "0 0 500 500",
@@ -564,7 +564,7 @@ function be(e) {
564
564
  }
565
565
  //#endregion
566
566
  //#region src/components/icons/salesforce.tsx
567
- function xe(e) {
567
+ function De(e) {
568
568
  return /* @__PURE__ */ m("svg", {
569
569
  xmlns: "http://www.w3.org/2000/svg",
570
570
  viewBox: "0 0 24 24",
@@ -579,7 +579,7 @@ function xe(e) {
579
579
  }
580
580
  //#endregion
581
581
  //#region src/components/icons/slack.tsx
582
- function Se(e) {
582
+ function Oe(e) {
583
583
  return /* @__PURE__ */ h("svg", {
584
584
  xmlns: "http://www.w3.org/2000/svg",
585
585
  viewBox: "0 0 256 256",
@@ -608,7 +608,7 @@ function Se(e) {
608
608
  }
609
609
  //#endregion
610
610
  //#region src/components/icons/spotify.tsx
611
- function Ce(e) {
611
+ function ke(e) {
612
612
  return /* @__PURE__ */ m("svg", {
613
613
  xmlns: "http://www.w3.org/2000/svg",
614
614
  viewBox: "0 0 256 256",
@@ -623,7 +623,7 @@ function Ce(e) {
623
623
  }
624
624
  //#endregion
625
625
  //#region src/components/icons/tiktok.tsx
626
- function we(e) {
626
+ function Ae(e) {
627
627
  return /* @__PURE__ */ h("svg", {
628
628
  xmlns: "http://www.w3.org/2000/svg",
629
629
  viewBox: "0 0 256 290",
@@ -645,7 +645,7 @@ function we(e) {
645
645
  }
646
646
  //#endregion
647
647
  //#region src/components/icons/twitch.tsx
648
- function Te(e) {
648
+ function je(e) {
649
649
  return /* @__PURE__ */ h("svg", {
650
650
  version: "1.1",
651
651
  viewBox: "0 0 2400 2800",
@@ -687,7 +687,7 @@ function Te(e) {
687
687
  }
688
688
  //#endregion
689
689
  //#region src/components/icons/vercel.tsx
690
- function Ee(e) {
690
+ function Me(e) {
691
691
  return /* @__PURE__ */ m("svg", {
692
692
  xmlns: "http://www.w3.org/2000/svg",
693
693
  viewBox: "0 0 24 24",
@@ -702,7 +702,7 @@ function Ee(e) {
702
702
  }
703
703
  //#endregion
704
704
  //#region src/components/icons/vk.tsx
705
- function De(e) {
705
+ function Ne(e) {
706
706
  return /* @__PURE__ */ m("svg", {
707
707
  xmlns: "http://www.w3.org/2000/svg",
708
708
  viewBox: "0 0 576 512",
@@ -717,7 +717,7 @@ function De(e) {
717
717
  }
718
718
  //#endregion
719
719
  //#region src/components/icons/wechat.tsx
720
- function Oe(e) {
720
+ function Pe(e) {
721
721
  return /* @__PURE__ */ m("svg", {
722
722
  xmlns: "http://www.w3.org/2000/svg",
723
723
  viewBox: "0 0 24 24",
@@ -732,7 +732,7 @@ function Oe(e) {
732
732
  }
733
733
  //#endregion
734
734
  //#region src/components/icons/x.tsx
735
- function ke(e) {
735
+ function Fe(e) {
736
736
  return /* @__PURE__ */ m("svg", {
737
737
  viewBox: "0 0 512 512",
738
738
  xmlns: "http://www.w3.org/2000/svg",
@@ -747,7 +747,7 @@ function ke(e) {
747
747
  }
748
748
  //#endregion
749
749
  //#region src/components/icons/zoom.tsx
750
- function Ae(e) {
750
+ function Ie(e) {
751
751
  let t = te();
752
752
  return /* @__PURE__ */ h("svg", {
753
753
  xmlns: "http://www.w3.org/2000/svg",
@@ -814,7 +814,7 @@ function Ae(e) {
814
814
  }
815
815
  //#endregion
816
816
  //#region src/components/settings/account/theme-preview.tsx
817
- function je(e) {
817
+ function Le(e) {
818
818
  return /* @__PURE__ */ h("svg", {
819
819
  fill: "none",
820
820
  viewBox: "0 0 240 117",
@@ -959,7 +959,7 @@ function je(e) {
959
959
  ]
960
960
  });
961
961
  }
962
- function Me(e) {
962
+ function Re(e) {
963
963
  return /* @__PURE__ */ h("svg", {
964
964
  fill: "none",
965
965
  viewBox: "0 0 240 117",
@@ -1029,7 +1029,7 @@ function Me(e) {
1029
1029
  ]
1030
1030
  });
1031
1031
  }
1032
- function Ne(e) {
1032
+ function ze(e) {
1033
1033
  return /* @__PURE__ */ h("svg", {
1034
1034
  fill: "none",
1035
1035
  viewBox: "0 0 240 117",
@@ -1101,7 +1101,7 @@ function Ne(e) {
1101
1101
  }
1102
1102
  //#endregion
1103
1103
  //#region src/queries/auth/session-query.ts
1104
- function L(e, t) {
1104
+ function F(e, t) {
1105
1105
  let n = o.session;
1106
1106
  return c({
1107
1107
  queryKey: n,
@@ -1115,11 +1115,11 @@ function L(e, t) {
1115
1115
  })
1116
1116
  });
1117
1117
  }
1118
- var Pe = (e, t, n) => e.ensureQueryData(L(t, n)), Fe = (e, t, n) => e.prefetchQuery(L(t, n)), Ie = (e, t, n) => e.fetchQuery(L(t, n));
1119
- function R(e, t = {}, n) {
1118
+ var Be = (e, t, n) => e.ensureQueryData(F(t, n)), Ve = (e, t, n) => e.prefetchQuery(F(t, n)), He = (e, t, n) => e.fetchQuery(F(t, n));
1119
+ function I(e, t = {}, n) {
1120
1120
  let { query: r, fetchOptions: i, ...a } = t;
1121
1121
  return d({
1122
- ...L(e, {
1122
+ ...F(e, {
1123
1123
  query: r,
1124
1124
  fetchOptions: i
1125
1125
  }),
@@ -1128,8 +1128,8 @@ function R(e, t = {}, n) {
1128
1128
  }
1129
1129
  //#endregion
1130
1130
  //#region src/hooks/auth/use-authenticate.ts
1131
- function Le(e, t) {
1132
- let { basePaths: n, viewPaths: i, navigate: a } = r(), o = R(e, t);
1131
+ function Ue(e, t) {
1132
+ let { basePaths: n, viewPaths: i, navigate: a } = r(), o = I(e, t);
1133
1133
  return ee(() => {
1134
1134
  if (o.data || o.isPending) return;
1135
1135
  let e = window.location.pathname + window.location.search, t = encodeURIComponent(e);
@@ -1147,21 +1147,21 @@ function Le(e, t) {
1147
1147
  }
1148
1148
  //#endregion
1149
1149
  //#region src/hooks/auth/use-last-login-method.ts
1150
- var Re = () => () => {}, ze = () => null;
1151
- function Be() {
1152
- let { authClient: e, plugins: t } = r(), n = t.find((e) => e.id === oe.id), i = {
1153
- ...ae,
1150
+ var We = () => () => {}, Ge = () => null;
1151
+ function Ke() {
1152
+ let { authClient: e, plugins: t } = r(), n = t.find((e) => e.id === se.id), i = {
1153
+ ...oe,
1154
1154
  ...n?.localization
1155
1155
  };
1156
1156
  return {
1157
- method: ne(Re, p(() => n ? e.getLastUsedLoginMethod?.() ?? null : null, [e, n]), ze),
1157
+ method: ne(We, p(() => n ? e.getLastUsedLoginMethod?.() ?? null : null, [e, n]), Ge),
1158
1158
  localization: i
1159
1159
  };
1160
1160
  }
1161
1161
  //#endregion
1162
1162
  //#region src/hooks/auth/use-user.ts
1163
- function Ve(e, t) {
1164
- let { data: n, ...r } = R(e, t);
1163
+ function qe(e, t) {
1164
+ let { data: n, ...r } = I(e, t);
1165
1165
  return {
1166
1166
  data: n?.user,
1167
1167
  ...r
@@ -1169,7 +1169,7 @@ function Ve(e, t) {
1169
1169
  }
1170
1170
  //#endregion
1171
1171
  //#region src/mutations/auth-mutation-options.ts
1172
- function He(e, t) {
1172
+ function L(e, t) {
1173
1173
  return s({
1174
1174
  mutationKey: t,
1175
1175
  mutationFn: (t) => {
@@ -1186,15 +1186,15 @@ function He(e, t) {
1186
1186
  }
1187
1187
  //#endregion
1188
1188
  //#region src/hooks/use-auth-mutation.ts
1189
- function Ue(e, t, n) {
1189
+ function Je(e, t, n) {
1190
1190
  return u({
1191
- ...He(e, t),
1191
+ ...L(e, t),
1192
1192
  ...n
1193
1193
  });
1194
1194
  }
1195
1195
  //#endregion
1196
1196
  //#region src/queries/auth-query-options.ts
1197
- function We(e, t, n) {
1197
+ function Ye(e, t, n) {
1198
1198
  return c({
1199
1199
  queryKey: [...t, n?.query ?? null],
1200
1200
  queryFn: ({ signal: t }) => e({
@@ -1209,10 +1209,10 @@ function We(e, t, n) {
1209
1209
  }
1210
1210
  //#endregion
1211
1211
  //#region src/hooks/use-auth-query.ts
1212
- function Ge(e, t, n) {
1212
+ function Xe(e, t, n) {
1213
1213
  let { query: r, fetchOptions: i, ...a } = n ?? {};
1214
1214
  return d({
1215
- ...We(e, t, {
1215
+ ...Ye(e, t, {
1216
1216
  query: r,
1217
1217
  fetchOptions: i
1218
1218
  }),
@@ -1221,47 +1221,69 @@ function Ge(e, t, n) {
1221
1221
  }
1222
1222
  //#endregion
1223
1223
  //#region src/lib/provider-icons.ts
1224
- var Ke = {
1225
- apple: de,
1226
- atlassian: fe,
1227
- cognito: pe,
1228
- discord: me,
1229
- dropbox: he,
1230
- facebook: ge,
1231
- figma: _e,
1232
- github: ve,
1233
- gitlab: S,
1234
- google: C,
1235
- huggingface: w,
1236
- kakao: T,
1237
- kick: E,
1238
- line: D,
1239
- linear: O,
1240
- linkedin: k,
1241
- microsoft: A,
1242
- naver: j,
1243
- notion: M,
1244
- paybin: N,
1245
- paypal: P,
1246
- polar: F,
1247
- railway: I,
1248
- reddit: ye,
1249
- roblox: be,
1250
- salesforce: xe,
1251
- slack: Se,
1252
- spotify: Ce,
1253
- tiktok: we,
1254
- twitch: Te,
1255
- twitter: ke,
1256
- vercel: Ee,
1257
- vk: De,
1258
- wechat: Oe,
1259
- zoom: Ae
1224
+ var Ze = {
1225
+ apple: me,
1226
+ atlassian: he,
1227
+ cognito: ge,
1228
+ discord: _e,
1229
+ dropbox: ve,
1230
+ facebook: ye,
1231
+ figma: be,
1232
+ github: C,
1233
+ gitlab: w,
1234
+ google: T,
1235
+ huggingface: E,
1236
+ kakao: D,
1237
+ kick: O,
1238
+ line: k,
1239
+ linear: A,
1240
+ linkedin: j,
1241
+ microsoft: M,
1242
+ naver: N,
1243
+ notion: P,
1244
+ paybin: xe,
1245
+ paypal: Se,
1246
+ polar: Ce,
1247
+ railway: we,
1248
+ reddit: Te,
1249
+ roblox: Ee,
1250
+ salesforce: De,
1251
+ slack: Oe,
1252
+ spotify: ke,
1253
+ tiktok: Ae,
1254
+ twitch: je,
1255
+ twitter: Fe,
1256
+ vercel: Me,
1257
+ vk: Ne,
1258
+ wechat: Pe,
1259
+ zoom: Ie
1260
1260
  };
1261
1261
  //#endregion
1262
+ //#region src/mutations/admin/stop-impersonating-mutation.ts
1263
+ function Qe(e) {
1264
+ let t = re.stopImpersonating;
1265
+ return s({
1266
+ mutationKey: t,
1267
+ mutationFn: (t) => e.admin.stopImpersonating({
1268
+ ...t ?? {},
1269
+ fetchOptions: {
1270
+ ...t?.fetchOptions,
1271
+ throw: !0
1272
+ }
1273
+ })
1274
+ });
1275
+ }
1276
+ function $e(e, t, n) {
1277
+ return u({
1278
+ ...Qe(e),
1279
+ ...t,
1280
+ meta: { awaits: [o.session] }
1281
+ }, n);
1282
+ }
1283
+ //#endregion
1262
1284
  //#region src/mutations/api-key/create-api-key-mutation.ts
1263
- function qe(e) {
1264
- let t = re.create;
1285
+ function et(e) {
1286
+ let t = ie.create;
1265
1287
  return s({
1266
1288
  mutationKey: t,
1267
1289
  mutationFn: (t) => e.apiKey.create({
@@ -1273,18 +1295,18 @@ function qe(e) {
1273
1295
  })
1274
1296
  });
1275
1297
  }
1276
- function Je(e, t, n) {
1277
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1298
+ function tt(e, t, n) {
1299
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1278
1300
  return u({
1279
- ...qe(e),
1301
+ ...et(e),
1280
1302
  ...t,
1281
1303
  meta: { awaits: [g.lists(i)] }
1282
1304
  }, n);
1283
1305
  }
1284
1306
  //#endregion
1285
1307
  //#region src/mutations/api-key/delete-api-key-mutation.ts
1286
- function Ye(e) {
1287
- let t = re.delete;
1308
+ function nt(e) {
1309
+ let t = ie.delete;
1288
1310
  return s({
1289
1311
  mutationKey: t,
1290
1312
  mutationFn: (t) => e.apiKey.delete({
@@ -1296,17 +1318,17 @@ function Ye(e) {
1296
1318
  })
1297
1319
  });
1298
1320
  }
1299
- function Xe(e, t, n) {
1300
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1321
+ function rt(e, t, n) {
1322
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1301
1323
  return u({
1302
- ...Ye(e),
1324
+ ...nt(e),
1303
1325
  ...t,
1304
1326
  meta: { awaits: [g.lists(i)] }
1305
1327
  }, n);
1306
1328
  }
1307
1329
  //#endregion
1308
1330
  //#region src/mutations/auth/request-password-reset-mutation.ts
1309
- function Ze(e) {
1331
+ function it(e) {
1310
1332
  let t = a.requestPasswordReset;
1311
1333
  return s({
1312
1334
  mutationKey: t,
@@ -1319,15 +1341,15 @@ function Ze(e) {
1319
1341
  })
1320
1342
  });
1321
1343
  }
1322
- function Qe(e, t) {
1344
+ function at(e, t) {
1323
1345
  return u({
1324
- ...Ze(e),
1346
+ ...it(e),
1325
1347
  ...t
1326
1348
  });
1327
1349
  }
1328
1350
  //#endregion
1329
1351
  //#region src/mutations/auth/reset-password-mutation.ts
1330
- function $e(e) {
1352
+ function ot(e) {
1331
1353
  let t = a.resetPassword;
1332
1354
  return s({
1333
1355
  mutationKey: t,
@@ -1340,15 +1362,15 @@ function $e(e) {
1340
1362
  })
1341
1363
  });
1342
1364
  }
1343
- function et(e, t) {
1365
+ function st(e, t) {
1344
1366
  return u({
1345
- ...$e(e),
1367
+ ...ot(e),
1346
1368
  ...t
1347
1369
  });
1348
1370
  }
1349
1371
  //#endregion
1350
1372
  //#region src/mutations/auth/send-verification-email-mutation.ts
1351
- function tt(e) {
1373
+ function ct(e) {
1352
1374
  let t = a.sendVerificationEmail;
1353
1375
  return s({
1354
1376
  mutationKey: t,
@@ -1361,15 +1383,15 @@ function tt(e) {
1361
1383
  })
1362
1384
  });
1363
1385
  }
1364
- function nt(e, t) {
1386
+ function lt(e, t) {
1365
1387
  return u({
1366
- ...tt(e),
1388
+ ...ct(e),
1367
1389
  ...t
1368
1390
  });
1369
1391
  }
1370
1392
  //#endregion
1371
1393
  //#region src/mutations/auth/sign-in-email-mutation.ts
1372
- function rt(e) {
1394
+ function ut(e) {
1373
1395
  let t = a.signIn.email;
1374
1396
  return s({
1375
1397
  mutationKey: t,
@@ -1382,16 +1404,16 @@ function rt(e) {
1382
1404
  })
1383
1405
  });
1384
1406
  }
1385
- function it(e, t, n) {
1407
+ function dt(e, t, n) {
1386
1408
  return u({
1387
- ...rt(e),
1409
+ ...ut(e),
1388
1410
  ...t,
1389
1411
  meta: { awaits: [o.session] }
1390
1412
  }, n);
1391
1413
  }
1392
1414
  //#endregion
1393
1415
  //#region src/mutations/auth/sign-in-social-mutation.ts
1394
- function at(e) {
1416
+ function ft(e) {
1395
1417
  let t = a.signIn.social;
1396
1418
  return s({
1397
1419
  mutationKey: t,
@@ -1404,15 +1426,15 @@ function at(e) {
1404
1426
  })
1405
1427
  });
1406
1428
  }
1407
- function ot(e, t) {
1429
+ function pt(e, t) {
1408
1430
  return u({
1409
- ...at(e),
1431
+ ...ft(e),
1410
1432
  ...t
1411
1433
  });
1412
1434
  }
1413
1435
  //#endregion
1414
1436
  //#region src/mutations/auth/sign-out-mutation.ts
1415
- function st(e) {
1437
+ function mt(e) {
1416
1438
  let t = a.signOut;
1417
1439
  return s({
1418
1440
  mutationKey: t,
@@ -1425,10 +1447,10 @@ function st(e) {
1425
1447
  })
1426
1448
  });
1427
1449
  }
1428
- function ct(e, t, n) {
1450
+ function ht(e, t, n) {
1429
1451
  let r = f(n);
1430
1452
  return u({
1431
- ...st(e),
1453
+ ...mt(e),
1432
1454
  ...t,
1433
1455
  onSuccess: async (...e) => {
1434
1456
  r.removeQueries({ queryKey: o.all }), await t?.onSuccess?.(...e);
@@ -1437,7 +1459,7 @@ function ct(e, t, n) {
1437
1459
  }
1438
1460
  //#endregion
1439
1461
  //#region src/mutations/auth/sign-up-email-mutation.ts
1440
- function lt(e) {
1462
+ function gt(e) {
1441
1463
  let t = a.signUp.email;
1442
1464
  return s({
1443
1465
  mutationKey: t,
@@ -1450,17 +1472,50 @@ function lt(e) {
1450
1472
  })
1451
1473
  });
1452
1474
  }
1453
- function ut(e, t, n) {
1475
+ function _t(e, t, n) {
1454
1476
  return u({
1455
- ...lt(e),
1477
+ ...gt(e),
1456
1478
  ...t,
1457
1479
  meta: { awaits: [o.session] }
1458
1480
  }, n);
1459
1481
  }
1460
1482
  //#endregion
1483
+ //#region src/mutations/device-authorization/approve-device-mutation.ts
1484
+ function vt(e) {
1485
+ return L(e.device.approve, _.approve);
1486
+ }
1487
+ function yt(e, t) {
1488
+ return u({
1489
+ ...vt(e),
1490
+ ...t
1491
+ });
1492
+ }
1493
+ //#endregion
1494
+ //#region src/mutations/device-authorization/deny-device-mutation.ts
1495
+ function bt(e) {
1496
+ return L(e.device.deny, _.deny);
1497
+ }
1498
+ function xt(e, t) {
1499
+ return u({
1500
+ ...bt(e),
1501
+ ...t
1502
+ });
1503
+ }
1504
+ //#endregion
1505
+ //#region src/mutations/device-authorization/verify-device-code-mutation.ts
1506
+ function St(e) {
1507
+ return L(e.device, _.verify);
1508
+ }
1509
+ function Ct(e, t) {
1510
+ return u({
1511
+ ...St(e),
1512
+ ...t
1513
+ });
1514
+ }
1515
+ //#endregion
1461
1516
  //#region src/mutations/magic-link/sign-in-magic-link-mutation.ts
1462
- function dt(e) {
1463
- let t = se.signIn;
1517
+ function wt(e) {
1518
+ let t = ce.signIn;
1464
1519
  return s({
1465
1520
  mutationKey: t,
1466
1521
  mutationFn: (t) => e.signIn.magicLink({
@@ -1472,16 +1527,16 @@ function dt(e) {
1472
1527
  })
1473
1528
  });
1474
1529
  }
1475
- function ft(e, t) {
1530
+ function Tt(e, t) {
1476
1531
  return u({
1477
- ...dt(e),
1532
+ ...wt(e),
1478
1533
  ...t
1479
1534
  });
1480
1535
  }
1481
1536
  //#endregion
1482
1537
  //#region src/mutations/multi-session/revoke-multi-session-mutation.ts
1483
- function pt(e) {
1484
- let t = ce.revoke;
1538
+ function Et(e) {
1539
+ let t = le.revoke;
1485
1540
  return s({
1486
1541
  mutationKey: t,
1487
1542
  mutationFn: (t) => e.multiSession.revoke({
@@ -1493,18 +1548,18 @@ function pt(e) {
1493
1548
  })
1494
1549
  });
1495
1550
  }
1496
- function mt(e, t, n) {
1497
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1551
+ function Dt(e, t, n) {
1552
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1498
1553
  return u({
1499
- ...pt(e),
1554
+ ...Et(e),
1500
1555
  ...t,
1501
- meta: { awaits: [_.lists(i)] }
1556
+ meta: { awaits: [v.lists(i)] }
1502
1557
  }, n);
1503
1558
  }
1504
1559
  //#endregion
1505
1560
  //#region src/mutations/multi-session/set-active-session-mutation.ts
1506
- function z(e) {
1507
- let t = ce.setActive;
1561
+ function R(e) {
1562
+ let t = le.setActive;
1508
1563
  return s({
1509
1564
  mutationKey: t,
1510
1565
  mutationFn: (t) => e.multiSession.setActive({
@@ -1516,18 +1571,29 @@ function z(e) {
1516
1571
  })
1517
1572
  });
1518
1573
  }
1519
- function ht(e, t, n) {
1520
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1574
+ function Ot(e, t, n) {
1575
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1521
1576
  return u({
1522
- ...z(e),
1577
+ ...R(e),
1523
1578
  ...t,
1524
- meta: { awaits: [o.session, _.lists(i)] }
1579
+ meta: { awaits: [o.session, v.lists(i)] }
1525
1580
  }, n);
1526
1581
  }
1527
1582
  //#endregion
1583
+ //#region src/mutations/oauth-provider/oauth-consent-mutation.ts
1584
+ function kt(e) {
1585
+ return L(e.oauth2.consent, ue.consent);
1586
+ }
1587
+ function At(e, t) {
1588
+ return u({
1589
+ ...kt(e),
1590
+ ...t
1591
+ });
1592
+ }
1593
+ //#endregion
1528
1594
  //#region src/mutations/organization/accept-invitation-mutation.ts
1529
- function gt(e) {
1530
- let t = v.acceptInvitation;
1595
+ function jt(e) {
1596
+ let t = y.acceptInvitation;
1531
1597
  return s({
1532
1598
  mutationKey: t,
1533
1599
  mutationFn: (t) => e.organization.acceptInvitation({
@@ -1539,21 +1605,21 @@ function gt(e) {
1539
1605
  })
1540
1606
  });
1541
1607
  }
1542
- function _t(e, t, n) {
1543
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1608
+ function Mt(e, t, n) {
1609
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1544
1610
  return u({
1545
- ...gt(e),
1611
+ ...jt(e),
1546
1612
  ...t,
1547
1613
  meta: {
1548
- awaits: [y.userInvitations.all(i), y.lists(i)],
1549
- invalidates: [y.fullDetails(i), y.activeOrganizations(i)]
1614
+ awaits: [b.userInvitations.all(i), b.lists(i)],
1615
+ invalidates: [b.fullDetails(i), b.activeOrganizations(i)]
1550
1616
  }
1551
1617
  }, n);
1552
1618
  }
1553
1619
  //#endregion
1554
1620
  //#region src/mutations/organization/cancel-invitation-mutation.ts
1555
- function vt(e) {
1556
- let t = v.cancelInvitation;
1621
+ function Nt(e) {
1622
+ let t = y.cancelInvitation;
1557
1623
  return s({
1558
1624
  mutationKey: t,
1559
1625
  mutationFn: (t) => e.organization.cancelInvitation({
@@ -1565,18 +1631,18 @@ function vt(e) {
1565
1631
  })
1566
1632
  });
1567
1633
  }
1568
- function yt(e, t, n) {
1569
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1634
+ function Pt(e, t, n) {
1635
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1570
1636
  return u({
1571
- ...vt(e),
1637
+ ...Nt(e),
1572
1638
  ...t,
1573
- meta: { awaits: [y.invitations.all(i), y.fullDetails(i)] }
1639
+ meta: { awaits: [b.invitations.all(i), b.fullDetails(i)] }
1574
1640
  }, n);
1575
1641
  }
1576
1642
  //#endregion
1577
1643
  //#region src/mutations/organization/check-slug-mutation.ts
1578
- function bt(e) {
1579
- let t = v.checkSlug;
1644
+ function Ft(e) {
1645
+ let t = y.checkSlug;
1580
1646
  return s({
1581
1647
  mutationKey: t,
1582
1648
  mutationFn: (t) => e.organization.checkSlug({
@@ -1588,16 +1654,16 @@ function bt(e) {
1588
1654
  })
1589
1655
  });
1590
1656
  }
1591
- function xt(e, t) {
1657
+ function It(e, t) {
1592
1658
  return u({
1593
- ...bt(e),
1659
+ ...Ft(e),
1594
1660
  ...t
1595
1661
  });
1596
1662
  }
1597
1663
  //#endregion
1598
1664
  //#region src/mutations/organization/create-organization-mutation.ts
1599
- function St(e) {
1600
- let t = v.create;
1665
+ function Lt(e) {
1666
+ let t = y.create;
1601
1667
  return s({
1602
1668
  mutationKey: t,
1603
1669
  mutationFn: (t) => e.organization.create({
@@ -1609,21 +1675,21 @@ function St(e) {
1609
1675
  })
1610
1676
  });
1611
1677
  }
1612
- function Ct(e, t, n) {
1613
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1678
+ function Rt(e, t, n) {
1679
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1614
1680
  return u({
1615
- ...St(e),
1681
+ ...Lt(e),
1616
1682
  ...t,
1617
1683
  meta: {
1618
- awaits: [y.lists(i)],
1619
- invalidates: [y.fullDetails(i), y.activeOrganizations(i)]
1684
+ awaits: [b.lists(i)],
1685
+ invalidates: [b.fullDetails(i), b.activeOrganizations(i)]
1620
1686
  }
1621
1687
  }, n);
1622
1688
  }
1623
1689
  //#endregion
1624
1690
  //#region src/mutations/organization/delete-organization-mutation.ts
1625
- function wt(e) {
1626
- let t = v.delete;
1691
+ function zt(e) {
1692
+ let t = y.delete;
1627
1693
  return s({
1628
1694
  mutationKey: t,
1629
1695
  mutationFn: (t) => e.organization.delete({
@@ -1635,22 +1701,22 @@ function wt(e) {
1635
1701
  })
1636
1702
  });
1637
1703
  }
1638
- function Tt(e, t, n) {
1639
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1704
+ function Bt(e, t, n) {
1705
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1640
1706
  return u({
1641
- ...wt(e),
1707
+ ...zt(e),
1642
1708
  ...t,
1643
1709
  meta: {
1644
- awaits: [y.lists(i)],
1645
- invalidates: [y.fullDetails(i), y.activeOrganizations(i)]
1710
+ awaits: [b.lists(i)],
1711
+ invalidates: [b.fullDetails(i), b.activeOrganizations(i)]
1646
1712
  }
1647
1713
  }, n);
1648
1714
  }
1649
1715
  //#endregion
1650
1716
  //#region src/queries/organization/active-organization-query.ts
1651
- function B(e, t, n) {
1717
+ function z(e, t, n) {
1652
1718
  return c({
1653
- queryKey: y.activeOrganization(t, n?.query),
1719
+ queryKey: b.activeOrganization(t, n?.query),
1654
1720
  queryFn: ({ signal: t }) => e.organization.getFullOrganization({
1655
1721
  ...n,
1656
1722
  fetchOptions: {
@@ -1661,9 +1727,9 @@ function B(e, t, n) {
1661
1727
  })
1662
1728
  });
1663
1729
  }
1664
- var Et = (e, t, n, r) => e.ensureQueryData(B(t, n, r)), Dt = (e, t, n, r) => e.prefetchQuery(B(t, n, r)), Ot = (e, t, n, r) => e.fetchQuery(B(t, n, r));
1665
- function V(e, t = {}, n) {
1666
- let { data: r } = R(e, void 0, n), a = r?.user.id, { slug: o } = i(le), { query: s, fetchOptions: c, ...u } = t, f = B(e, a, {
1730
+ var Vt = (e, t, n, r) => e.ensureQueryData(z(t, n, r)), Ht = (e, t, n, r) => e.prefetchQuery(z(t, n, r)), Ut = (e, t, n, r) => e.fetchQuery(z(t, n, r));
1731
+ function B(e, t = {}, n) {
1732
+ let { data: r } = I(e, void 0, n), a = r?.user.id, { slug: o } = i(fe), { query: s, fetchOptions: c, ...u } = t, f = z(e, a, {
1667
1733
  fetchOptions: c,
1668
1734
  query: o ? { organizationSlug: o } : s
1669
1735
  });
@@ -1675,9 +1741,9 @@ function V(e, t = {}, n) {
1675
1741
  }
1676
1742
  //#endregion
1677
1743
  //#region src/queries/organization/full-organization-query.ts
1678
- function H(e, t, n) {
1744
+ function V(e, t, n) {
1679
1745
  return c({
1680
- queryKey: y.fullDetail(t, n?.query),
1746
+ queryKey: b.fullDetail(t, n?.query),
1681
1747
  queryFn: ({ signal: t }) => e.organization.getFullOrganization({
1682
1748
  ...n,
1683
1749
  fetchOptions: {
@@ -1688,9 +1754,9 @@ function H(e, t, n) {
1688
1754
  })
1689
1755
  });
1690
1756
  }
1691
- var kt = (e, t, n, r) => e.ensureQueryData(H(t, n, r)), At = (e, t, n, r) => e.prefetchQuery(H(t, n, r)), jt = (e, t, n, r) => e.fetchQuery(H(t, n, r));
1692
- function Mt(e, t = {}, n) {
1693
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = H(e, i, {
1757
+ var Wt = (e, t, n, r) => e.ensureQueryData(V(t, n, r)), Gt = (e, t, n, r) => e.prefetchQuery(V(t, n, r)), Kt = (e, t, n, r) => e.fetchQuery(V(t, n, r));
1758
+ function qt(e, t = {}, n) {
1759
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = V(e, i, {
1694
1760
  query: a,
1695
1761
  fetchOptions: o
1696
1762
  });
@@ -1702,10 +1768,10 @@ function Mt(e, t = {}, n) {
1702
1768
  }
1703
1769
  //#endregion
1704
1770
  //#region src/queries/organization/has-permission-query.ts
1705
- function U(e, t, n) {
1771
+ function H(e, t, n) {
1706
1772
  let { fetchOptions: r, ...i } = n;
1707
1773
  return c({
1708
- queryKey: y.permissions.has(t, i),
1774
+ queryKey: b.permissions.has(t, i),
1709
1775
  queryFn: ({ signal: t }) => e.organization.hasPermission({
1710
1776
  ...i,
1711
1777
  fetchOptions: {
@@ -1716,9 +1782,9 @@ function U(e, t, n) {
1716
1782
  })
1717
1783
  });
1718
1784
  }
1719
- var Nt = (e, t, n, r) => e.ensureQueryData(U(t, n, r)), Pt = (e, t, n, r) => e.prefetchQuery(U(t, n, r)), Ft = (e, t, n, r) => e.fetchQuery(U(t, n, r));
1720
- function It(e, t, n) {
1721
- let { data: r } = R(e, void 0, n), i = r?.user.id, { fetchOptions: a, permissions: o, organizationId: s, ...c } = t, { data: u } = V(e, { enabled: !s }, n), f = s ?? u?.id, p = U(e, i, {
1785
+ var Jt = (e, t, n, r) => e.ensureQueryData(H(t, n, r)), Yt = (e, t, n, r) => e.prefetchQuery(H(t, n, r)), Xt = (e, t, n, r) => e.fetchQuery(H(t, n, r));
1786
+ function Zt(e, t, n) {
1787
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { fetchOptions: a, permissions: o, organizationId: s, ...c } = t, { data: u } = B(e, { enabled: !s }, n), f = s ?? u?.id, p = H(e, i, {
1722
1788
  fetchOptions: a,
1723
1789
  organizationId: f,
1724
1790
  permissions: o
@@ -1731,9 +1797,9 @@ function It(e, t, n) {
1731
1797
  }
1732
1798
  //#endregion
1733
1799
  //#region src/queries/organization/list-invitations-query.ts
1734
- function W(e, t, n) {
1800
+ function U(e, t, n) {
1735
1801
  return c({
1736
- queryKey: y.invitations.list(t, n?.query),
1802
+ queryKey: b.invitations.list(t, n?.query),
1737
1803
  queryFn: ({ signal: t }) => e.organization.listInvitations({
1738
1804
  ...n,
1739
1805
  fetchOptions: {
@@ -1744,9 +1810,9 @@ function W(e, t, n) {
1744
1810
  })
1745
1811
  });
1746
1812
  }
1747
- var Lt = (e, t, n, r) => e.ensureQueryData(W(t, n, r)), Rt = (e, t, n, r) => e.prefetchQuery(W(t, n, r)), zt = (e, t, n, r) => e.fetchQuery(W(t, n, r));
1748
- function Bt(e, t = {}, n) {
1749
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } = V(e, { enabled: !a?.organizationId }, n), u = a?.organizationId ?? c?.id, f = W(e, i, {
1813
+ var Qt = (e, t, n, r) => e.ensureQueryData(U(t, n, r)), $t = (e, t, n, r) => e.prefetchQuery(U(t, n, r)), en = (e, t, n, r) => e.fetchQuery(U(t, n, r));
1814
+ function tn(e, t = {}, n) {
1815
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } = B(e, { enabled: !a?.organizationId }, n), u = a?.organizationId ?? c?.id, f = U(e, i, {
1750
1816
  query: {
1751
1817
  ...a,
1752
1818
  organizationId: u
@@ -1761,9 +1827,9 @@ function Bt(e, t = {}, n) {
1761
1827
  }
1762
1828
  //#endregion
1763
1829
  //#region src/queries/organization/list-members-query.ts
1764
- function G(e, t, n) {
1830
+ function W(e, t, n) {
1765
1831
  return c({
1766
- queryKey: y.members.list(t, n?.query),
1832
+ queryKey: b.members.list(t, n?.query),
1767
1833
  queryFn: ({ signal: t }) => e.organization.listMembers({
1768
1834
  ...n,
1769
1835
  fetchOptions: {
@@ -1774,9 +1840,9 @@ function G(e, t, n) {
1774
1840
  })
1775
1841
  });
1776
1842
  }
1777
- var Vt = (e, t, n, r) => e.ensureQueryData(G(t, n, r)), Ht = (e, t, n, r) => e.prefetchQuery(G(t, n, r)), Ut = (e, t, n, r) => e.fetchQuery(G(t, n, r));
1778
- function Wt(e, t = {}, n) {
1779
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } = V(e, { enabled: !a?.organizationId }, n), u = a?.organizationId ?? c?.id, f = G(e, i, {
1843
+ var nn = (e, t, n, r) => e.ensureQueryData(W(t, n, r)), rn = (e, t, n, r) => e.prefetchQuery(W(t, n, r)), an = (e, t, n, r) => e.fetchQuery(W(t, n, r));
1844
+ function on(e, t = {}, n) {
1845
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, { data: c } = B(e, { enabled: !a?.organizationId }, n), u = a?.organizationId ?? c?.id, f = W(e, i, {
1780
1846
  query: {
1781
1847
  ...a,
1782
1848
  organizationId: u
@@ -1791,9 +1857,9 @@ function Wt(e, t = {}, n) {
1791
1857
  }
1792
1858
  //#endregion
1793
1859
  //#region src/queries/organization/list-organizations-query.ts
1794
- function K(e, t, n) {
1860
+ function G(e, t, n) {
1795
1861
  return c({
1796
- queryKey: y.list(t, n?.query),
1862
+ queryKey: b.list(t, n?.query),
1797
1863
  queryFn: ({ signal: t }) => e.organization.list({
1798
1864
  ...n,
1799
1865
  fetchOptions: {
@@ -1804,9 +1870,9 @@ function K(e, t, n) {
1804
1870
  })
1805
1871
  });
1806
1872
  }
1807
- var Gt = (e, t, n, r) => e.ensureQueryData(K(t, n, r)), Kt = (e, t, n, r) => e.prefetchQuery(K(t, n, r)), qt = (e, t, n, r) => e.fetchQuery(K(t, n, r));
1808
- function Jt(e, t = {}, n) {
1809
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = K(e, i, {
1873
+ var sn = (e, t, n, r) => e.ensureQueryData(G(t, n, r)), cn = (e, t, n, r) => e.prefetchQuery(G(t, n, r)), ln = (e, t, n, r) => e.fetchQuery(G(t, n, r));
1874
+ function un(e, t = {}, n) {
1875
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = G(e, i, {
1810
1876
  query: a,
1811
1877
  fetchOptions: o
1812
1878
  });
@@ -1818,9 +1884,9 @@ function Jt(e, t = {}, n) {
1818
1884
  }
1819
1885
  //#endregion
1820
1886
  //#region src/queries/organization/list-user-invitations-query.ts
1821
- function q(e, t, n) {
1887
+ function K(e, t, n) {
1822
1888
  return c({
1823
- queryKey: y.userInvitations.list(t, n?.query),
1889
+ queryKey: b.userInvitations.list(t, n?.query),
1824
1890
  queryFn: ({ signal: t }) => e.organization.listUserInvitations({
1825
1891
  ...n,
1826
1892
  fetchOptions: {
@@ -1831,9 +1897,9 @@ function q(e, t, n) {
1831
1897
  })
1832
1898
  });
1833
1899
  }
1834
- var Yt = (e, t, n, r) => e.ensureQueryData(q(t, n, r)), Xt = (e, t, n, r) => e.prefetchQuery(q(t, n, r)), Zt = (e, t, n, r) => e.fetchQuery(q(t, n, r));
1835
- function Qt(e, t = {}, n) {
1836
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = q(e, i, {
1900
+ var dn = (e, t, n, r) => e.ensureQueryData(K(t, n, r)), fn = (e, t, n, r) => e.prefetchQuery(K(t, n, r)), pn = (e, t, n, r) => e.fetchQuery(K(t, n, r));
1901
+ function mn(e, t = {}, n) {
1902
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = K(e, i, {
1837
1903
  query: a,
1838
1904
  fetchOptions: o
1839
1905
  });
@@ -1845,8 +1911,8 @@ function Qt(e, t = {}, n) {
1845
1911
  }
1846
1912
  //#endregion
1847
1913
  //#region src/mutations/organization/invite-member-mutation.ts
1848
- function $t(e) {
1849
- let t = v.inviteMember;
1914
+ function hn(e) {
1915
+ let t = y.inviteMember;
1850
1916
  return s({
1851
1917
  mutationKey: t,
1852
1918
  mutationFn: (t) => e.organization.inviteMember({
@@ -1858,10 +1924,10 @@ function $t(e) {
1858
1924
  })
1859
1925
  });
1860
1926
  }
1861
- function en(e, t, n) {
1862
- let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = V(e, void 0, n);
1927
+ function gn(e, t, n) {
1928
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { data: a } = B(e, void 0, n);
1863
1929
  return u({
1864
- ...$t(e),
1930
+ ...hn(e),
1865
1931
  ...t,
1866
1932
  mutationFn: (t) => e.organization.inviteMember({
1867
1933
  ...t,
@@ -1871,13 +1937,13 @@ function en(e, t, n) {
1871
1937
  throw: !0
1872
1938
  }
1873
1939
  }),
1874
- meta: { awaits: [y.invitations.all(i), y.fullDetails(i)] }
1940
+ meta: { awaits: [b.invitations.all(i), b.fullDetails(i)] }
1875
1941
  }, n);
1876
1942
  }
1877
1943
  //#endregion
1878
1944
  //#region src/mutations/organization/leave-organization-mutation.ts
1879
- function tn(e) {
1880
- let t = v.leave;
1945
+ function _n(e) {
1946
+ let t = y.leave;
1881
1947
  return s({
1882
1948
  mutationKey: t,
1883
1949
  mutationFn: (t) => e.organization.leave({
@@ -1889,21 +1955,21 @@ function tn(e) {
1889
1955
  })
1890
1956
  });
1891
1957
  }
1892
- function nn(e, t, n) {
1893
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1958
+ function vn(e, t, n) {
1959
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1894
1960
  return u({
1895
- ...tn(e),
1961
+ ..._n(e),
1896
1962
  ...t,
1897
1963
  meta: {
1898
- awaits: [y.members.all(i), y.fullDetails(i)],
1899
- invalidates: [y.lists(i), y.activeOrganizations(i)]
1964
+ awaits: [b.members.all(i), b.fullDetails(i)],
1965
+ invalidates: [b.lists(i), b.activeOrganizations(i)]
1900
1966
  }
1901
1967
  }, n);
1902
1968
  }
1903
1969
  //#endregion
1904
1970
  //#region src/mutations/organization/reject-invitation-mutation.ts
1905
- function rn(e) {
1906
- let t = v.rejectInvitation;
1971
+ function yn(e) {
1972
+ let t = y.rejectInvitation;
1907
1973
  return s({
1908
1974
  mutationKey: t,
1909
1975
  mutationFn: (t) => e.organization.rejectInvitation({
@@ -1915,18 +1981,18 @@ function rn(e) {
1915
1981
  })
1916
1982
  });
1917
1983
  }
1918
- function an(e, t, n) {
1919
- let { data: r } = R(e, void 0, n), i = r?.user.id;
1984
+ function bn(e, t, n) {
1985
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1920
1986
  return u({
1921
- ...rn(e),
1987
+ ...yn(e),
1922
1988
  ...t,
1923
- meta: { awaits: [y.userInvitations.all(i)] }
1989
+ meta: { awaits: [b.userInvitations.all(i)] }
1924
1990
  }, n);
1925
1991
  }
1926
1992
  //#endregion
1927
1993
  //#region src/mutations/organization/remove-member-mutation.ts
1928
- function on(e) {
1929
- let t = v.removeMember;
1994
+ function xn(e) {
1995
+ let t = y.removeMember;
1930
1996
  return s({
1931
1997
  mutationKey: t,
1932
1998
  mutationFn: (t) => e.organization.removeMember({
@@ -1938,21 +2004,21 @@ function on(e) {
1938
2004
  })
1939
2005
  });
1940
2006
  }
1941
- function sn(e, t, n) {
1942
- let { data: r } = R(e, void 0, n), i = r?.user.id;
2007
+ function Sn(e, t, n) {
2008
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
1943
2009
  return u({
1944
- ...on(e),
2010
+ ...xn(e),
1945
2011
  ...t,
1946
2012
  meta: {
1947
- awaits: [y.members.all(i), y.fullDetails(i)],
1948
- invalidates: [y.lists(i)]
2013
+ awaits: [b.members.all(i), b.fullDetails(i)],
2014
+ invalidates: [b.lists(i)]
1949
2015
  }
1950
2016
  }, n);
1951
2017
  }
1952
2018
  //#endregion
1953
2019
  //#region src/mutations/organization/set-active-organization-mutation.ts
1954
- function cn(e) {
1955
- let t = v.setActive;
2020
+ function Cn(e) {
2021
+ let t = y.setActive;
1956
2022
  return s({
1957
2023
  mutationKey: t,
1958
2024
  mutationFn: (t) => e.organization.setActive({
@@ -1964,30 +2030,30 @@ function cn(e) {
1964
2030
  })
1965
2031
  });
1966
2032
  }
1967
- function ln(e, t, n) {
1968
- let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = Jt(e, void 0, n);
2033
+ function wn(e, t, n) {
2034
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { data: a } = un(e, void 0, n);
1969
2035
  return u({
1970
- ...cn(e),
2036
+ ...Cn(e),
1971
2037
  ...t,
1972
2038
  onMutate: async (e, t) => {
1973
- await t.client.cancelQueries({ queryKey: y.activeOrganizations(i) });
1974
- let n = t.client.getQueriesData({ queryKey: y.activeOrganizations(i) });
1975
- if (e?.organizationId === null) return t.client.setQueriesData({ queryKey: y.activeOrganizations(i) }, null), { previousOrganizations: n };
2039
+ await t.client.cancelQueries({ queryKey: b.activeOrganizations(i) });
2040
+ let n = t.client.getQueriesData({ queryKey: b.activeOrganizations(i) });
2041
+ if (e?.organizationId === null) return t.client.setQueriesData({ queryKey: b.activeOrganizations(i) }, null), { previousOrganizations: n };
1976
2042
  let r = a?.find((t) => e?.organizationId !== void 0 && t.id === e.organizationId || e?.organizationSlug !== void 0 && t.slug === e.organizationSlug);
1977
- return r && t.client.setQueriesData({ queryKey: y.activeOrganizations(i) }, r), { previousOrganizations: n };
2043
+ return r && t.client.setQueriesData({ queryKey: b.activeOrganizations(i) }, r), { previousOrganizations: n };
1978
2044
  },
1979
2045
  onError: (e, n, r, i) => {
1980
2046
  let a = r?.previousOrganizations;
1981
2047
  if (a?.length && e.error) for (let [e, t] of a) i.client.setQueryData(e, t);
1982
2048
  return t?.onError?.(e, n, r, i);
1983
2049
  },
1984
- onSettled: async (e, n, r, a, o) => (await o.client.invalidateQueries({ queryKey: y.activeOrganizations(i) }), t?.onSettled?.(e, n, r, a, o))
2050
+ onSettled: async (e, n, r, a, o) => (await o.client.invalidateQueries({ queryKey: b.activeOrganizations(i) }), t?.onSettled?.(e, n, r, a, o))
1985
2051
  }, n);
1986
2052
  }
1987
2053
  //#endregion
1988
2054
  //#region src/mutations/organization/update-member-role-mutation.ts
1989
- function un(e) {
1990
- let t = v.updateMemberRole;
2055
+ function Tn(e) {
2056
+ let t = y.updateMemberRole;
1991
2057
  return s({
1992
2058
  mutationKey: t,
1993
2059
  mutationFn: (t) => e.organization.updateMemberRole({
@@ -1999,10 +2065,10 @@ function un(e) {
1999
2065
  })
2000
2066
  });
2001
2067
  }
2002
- function dn(e, t, n) {
2003
- let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = V(e, void 0, n);
2068
+ function En(e, t, n) {
2069
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { data: a } = B(e, void 0, n);
2004
2070
  return u({
2005
- ...un(e),
2071
+ ...Tn(e),
2006
2072
  ...t,
2007
2073
  mutationFn: (t) => e.organization.updateMemberRole({
2008
2074
  ...t,
@@ -2013,15 +2079,15 @@ function dn(e, t, n) {
2013
2079
  }
2014
2080
  }),
2015
2081
  meta: {
2016
- awaits: [y.members.all(i), y.fullDetails(i)],
2017
- invalidates: [y.permissions.all(i)]
2082
+ awaits: [b.members.all(i), b.fullDetails(i)],
2083
+ invalidates: [b.permissions.all(i)]
2018
2084
  }
2019
2085
  }, n);
2020
2086
  }
2021
2087
  //#endregion
2022
2088
  //#region src/mutations/organization/update-organization-mutation.ts
2023
- function fn(e) {
2024
- let t = v.update;
2089
+ function Dn(e) {
2090
+ let t = y.update;
2025
2091
  return s({
2026
2092
  mutationKey: t,
2027
2093
  mutationFn: (t) => e.organization.update({
@@ -2033,10 +2099,10 @@ function fn(e) {
2033
2099
  })
2034
2100
  });
2035
2101
  }
2036
- function pn(e, t, n) {
2037
- let { data: r } = R(e, void 0, n), i = r?.user.id, { data: a } = V(e, void 0, n);
2102
+ function On(e, t, n) {
2103
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { data: a } = B(e, void 0, n);
2038
2104
  return u({
2039
- ...fn(e),
2105
+ ...Dn(e),
2040
2106
  ...t,
2041
2107
  mutationFn: (t) => e.organization.update({
2042
2108
  ...t,
@@ -2047,16 +2113,16 @@ function pn(e, t, n) {
2047
2113
  }
2048
2114
  }),
2049
2115
  meta: { awaits: [
2050
- y.lists(i),
2051
- y.fullDetails(i),
2052
- y.activeOrganizations(i)
2116
+ b.lists(i),
2117
+ b.fullDetails(i),
2118
+ b.activeOrganizations(i)
2053
2119
  ] }
2054
2120
  }, n);
2055
2121
  }
2056
2122
  //#endregion
2057
2123
  //#region src/mutations/passkey/add-passkey-mutation.ts
2058
- function mn(e) {
2059
- let t = b.addPasskey;
2124
+ function kn(e) {
2125
+ let t = x.addPasskey;
2060
2126
  return s({
2061
2127
  mutationKey: t,
2062
2128
  mutationFn: (t) => e.passkey.addPasskey({
@@ -2068,18 +2134,18 @@ function mn(e) {
2068
2134
  })
2069
2135
  });
2070
2136
  }
2071
- function hn(e, t, n) {
2072
- let { data: r } = R(e, void 0, n), i = r?.user.id;
2137
+ function An(e, t, n) {
2138
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
2073
2139
  return u({
2074
- ...mn(e),
2140
+ ...kn(e),
2075
2141
  ...t,
2076
- meta: { awaits: [x.lists(i)] }
2142
+ meta: { awaits: [S.lists(i)] }
2077
2143
  }, n);
2078
2144
  }
2079
2145
  //#endregion
2080
2146
  //#region src/mutations/passkey/delete-passkey-mutation.ts
2081
- function gn(e) {
2082
- let t = b.deletePasskey;
2147
+ function jn(e) {
2148
+ let t = x.deletePasskey;
2083
2149
  return s({
2084
2150
  mutationKey: t,
2085
2151
  mutationFn: (t) => e.passkey.deletePasskey({
@@ -2091,18 +2157,18 @@ function gn(e) {
2091
2157
  })
2092
2158
  });
2093
2159
  }
2094
- function _n(e, t, n) {
2095
- let { data: r } = R(e, void 0, n), i = r?.user.id;
2160
+ function Mn(e, t, n) {
2161
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
2096
2162
  return u({
2097
- ...gn(e),
2163
+ ...jn(e),
2098
2164
  ...t,
2099
- meta: { awaits: [x.lists(i)] }
2165
+ meta: { awaits: [S.lists(i)] }
2100
2166
  }, n);
2101
2167
  }
2102
2168
  //#endregion
2103
2169
  //#region src/mutations/passkey/sign-in-passkey-mutation.ts
2104
- function vn(e) {
2105
- let t = b.signIn;
2170
+ function Nn(e) {
2171
+ let t = x.signIn;
2106
2172
  return s({
2107
2173
  mutationKey: t,
2108
2174
  mutationFn: (t) => e.signIn.passkey({
@@ -2114,16 +2180,16 @@ function vn(e) {
2114
2180
  })
2115
2181
  });
2116
2182
  }
2117
- function yn(e, t, n) {
2183
+ function Pn(e, t, n) {
2118
2184
  return u({
2119
- ...vn(e),
2185
+ ...Nn(e),
2120
2186
  ...t,
2121
2187
  meta: { awaits: [o.session] }
2122
2188
  }, n);
2123
2189
  }
2124
2190
  //#endregion
2125
2191
  //#region src/mutations/settings/change-email-mutation.ts
2126
- function bn(e) {
2192
+ function Fn(e) {
2127
2193
  let t = a.changeEmail;
2128
2194
  return s({
2129
2195
  mutationKey: t,
@@ -2136,16 +2202,16 @@ function bn(e) {
2136
2202
  })
2137
2203
  });
2138
2204
  }
2139
- function xn(e, t, n) {
2205
+ function In(e, t, n) {
2140
2206
  return u({
2141
- ...bn(e),
2207
+ ...Fn(e),
2142
2208
  ...t,
2143
2209
  meta: { awaits: [o.session] }
2144
2210
  }, n);
2145
2211
  }
2146
2212
  //#endregion
2147
2213
  //#region src/mutations/settings/change-password-mutation.ts
2148
- function Sn(e) {
2214
+ function Ln(e) {
2149
2215
  let t = a.changePassword;
2150
2216
  return s({
2151
2217
  mutationKey: t,
@@ -2158,16 +2224,16 @@ function Sn(e) {
2158
2224
  })
2159
2225
  });
2160
2226
  }
2161
- function Cn(e, t) {
2227
+ function Rn(e, t) {
2162
2228
  return u({
2163
- ...Sn(e),
2229
+ ...Ln(e),
2164
2230
  ...t
2165
2231
  });
2166
2232
  }
2167
2233
  //#endregion
2168
2234
  //#region src/mutations/settings/delete-user-mutation.ts
2169
- function wn(e) {
2170
- let t = ie.deleteUser;
2235
+ function zn(e) {
2236
+ let t = ae.deleteUser;
2171
2237
  return s({
2172
2238
  mutationKey: t,
2173
2239
  mutationFn: (t) => e.deleteUser({
@@ -2179,15 +2245,15 @@ function wn(e) {
2179
2245
  })
2180
2246
  });
2181
2247
  }
2182
- function Tn(e, t) {
2248
+ function Bn(e, t) {
2183
2249
  return u({
2184
- ...wn(e),
2250
+ ...zn(e),
2185
2251
  ...t
2186
2252
  });
2187
2253
  }
2188
2254
  //#endregion
2189
2255
  //#region src/mutations/settings/link-social-mutation.ts
2190
- function En(e) {
2256
+ function Vn(e) {
2191
2257
  let t = a.linkSocial;
2192
2258
  return s({
2193
2259
  mutationKey: t,
@@ -2200,15 +2266,15 @@ function En(e) {
2200
2266
  })
2201
2267
  });
2202
2268
  }
2203
- function Dn(e, t) {
2269
+ function Hn(e, t) {
2204
2270
  return u({
2205
- ...En(e),
2271
+ ...Vn(e),
2206
2272
  ...t
2207
2273
  });
2208
2274
  }
2209
2275
  //#endregion
2210
2276
  //#region src/mutations/settings/revoke-session-mutation.ts
2211
- function On(e) {
2277
+ function Un(e) {
2212
2278
  let t = a.revokeSession;
2213
2279
  return s({
2214
2280
  mutationKey: t,
@@ -2221,17 +2287,17 @@ function On(e) {
2221
2287
  })
2222
2288
  });
2223
2289
  }
2224
- function kn(e, t, n) {
2225
- let { data: r } = R(e, void 0, n), i = r?.user.id;
2290
+ function Wn(e, t, n) {
2291
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
2226
2292
  return u({
2227
- ...On(e),
2293
+ ...Un(e),
2228
2294
  ...t,
2229
2295
  meta: { awaits: [o.listSessions(i)] }
2230
2296
  }, n);
2231
2297
  }
2232
2298
  //#endregion
2233
2299
  //#region src/mutations/settings/unlink-account-mutation.ts
2234
- function An(e) {
2300
+ function Gn(e) {
2235
2301
  let t = a.unlinkAccount;
2236
2302
  return s({
2237
2303
  mutationKey: t,
@@ -2244,17 +2310,17 @@ function An(e) {
2244
2310
  })
2245
2311
  });
2246
2312
  }
2247
- function jn(e, t, n) {
2248
- let { data: r } = R(e, void 0, n), i = r?.user.id;
2313
+ function Kn(e, t, n) {
2314
+ let { data: r } = I(e, void 0, n), i = r?.user.id;
2249
2315
  return u({
2250
- ...An(e),
2316
+ ...Gn(e),
2251
2317
  ...t,
2252
2318
  meta: { awaits: [o.listAccounts(i)] }
2253
2319
  }, n);
2254
2320
  }
2255
2321
  //#endregion
2256
2322
  //#region src/mutations/settings/update-user-mutation.ts
2257
- function Mn(e) {
2323
+ function qn(e) {
2258
2324
  let t = a.updateUser;
2259
2325
  return s({
2260
2326
  mutationKey: t,
@@ -2267,17 +2333,17 @@ function Mn(e) {
2267
2333
  })
2268
2334
  });
2269
2335
  }
2270
- function Nn(e, t, n) {
2336
+ function Jn(e, t, n) {
2271
2337
  return u({
2272
- ...Mn(e),
2338
+ ...qn(e),
2273
2339
  ...t,
2274
2340
  meta: { awaits: [o.session] }
2275
2341
  }, n);
2276
2342
  }
2277
2343
  //#endregion
2278
2344
  //#region src/mutations/username/is-username-available-mutation.ts
2279
- function Pn(e) {
2280
- let t = ue.isUsernameAvailable;
2345
+ function Yn(e) {
2346
+ let t = pe.isUsernameAvailable;
2281
2347
  return s({
2282
2348
  mutationKey: t,
2283
2349
  mutationFn: (t) => e.isUsernameAvailable({
@@ -2289,16 +2355,16 @@ function Pn(e) {
2289
2355
  })
2290
2356
  });
2291
2357
  }
2292
- function Fn(e, t) {
2358
+ function Xn(e, t) {
2293
2359
  return u({
2294
- ...Pn(e),
2360
+ ...Yn(e),
2295
2361
  ...t
2296
2362
  });
2297
2363
  }
2298
2364
  //#endregion
2299
2365
  //#region src/mutations/username/sign-in-username-mutation.ts
2300
- function In(e) {
2301
- let t = ue.signIn;
2366
+ function Zn(e) {
2367
+ let t = pe.signIn;
2302
2368
  return s({
2303
2369
  mutationKey: t,
2304
2370
  mutationFn: (t) => e.signIn.username({
@@ -2310,16 +2376,16 @@ function In(e) {
2310
2376
  })
2311
2377
  });
2312
2378
  }
2313
- function Ln(e, t, n) {
2379
+ function Qn(e, t, n) {
2314
2380
  return u({
2315
- ...In(e),
2381
+ ...Zn(e),
2316
2382
  ...t,
2317
2383
  meta: { awaits: [o.session] }
2318
2384
  }, n);
2319
2385
  }
2320
2386
  //#endregion
2321
2387
  //#region src/queries/api-key/list-api-keys-query.ts
2322
- function J(e, t, n) {
2388
+ function q(e, t, n) {
2323
2389
  return c({
2324
2390
  queryKey: g.list(t, n?.query),
2325
2391
  queryFn: ({ signal: t }) => e.apiKey.list({
@@ -2332,9 +2398,9 @@ function J(e, t, n) {
2332
2398
  })
2333
2399
  });
2334
2400
  }
2335
- var Rn = (e, t, n, r) => e.ensureQueryData(J(t, n, r)), zn = (e, t, n, r) => e.prefetchQuery(J(t, n, r)), Bn = (e, t, n, r) => e.fetchQuery(J(t, n, r));
2336
- function Vn(e, t = {}, n) {
2337
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = J(e, i, {
2401
+ var $n = (e, t, n, r) => e.ensureQueryData(q(t, n, r)), er = (e, t, n, r) => e.prefetchQuery(q(t, n, r)), tr = (e, t, n, r) => e.fetchQuery(q(t, n, r));
2402
+ function nr(e, t = {}, n) {
2403
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = q(e, i, {
2338
2404
  query: a,
2339
2405
  fetchOptions: o
2340
2406
  });
@@ -2346,9 +2412,9 @@ function Vn(e, t = {}, n) {
2346
2412
  }
2347
2413
  //#endregion
2348
2414
  //#region src/queries/multi-session/list-device-sessions-query.ts
2349
- function Y(e, t, n) {
2415
+ function J(e, t, n) {
2350
2416
  return c({
2351
- queryKey: _.list(t, n?.query),
2417
+ queryKey: v.list(t, n?.query),
2352
2418
  queryFn: ({ signal: t }) => e.multiSession.listDeviceSessions({
2353
2419
  ...n,
2354
2420
  fetchOptions: {
@@ -2359,9 +2425,9 @@ function Y(e, t, n) {
2359
2425
  })
2360
2426
  });
2361
2427
  }
2362
- var Hn = (e, t, n, r) => e.ensureQueryData(Y(t, n, r)), Un = (e, t, n, r) => e.prefetchQuery(Y(t, n, r)), Wn = (e, t, n, r) => e.fetchQuery(Y(t, n, r));
2363
- function Gn(e, t = {}, n) {
2364
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Y(e, i, {
2428
+ var rr = (e, t, n, r) => e.ensureQueryData(J(t, n, r)), ir = (e, t, n, r) => e.prefetchQuery(J(t, n, r)), ar = (e, t, n, r) => e.fetchQuery(J(t, n, r));
2429
+ function or(e, t = {}, n) {
2430
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = J(e, i, {
2365
2431
  query: a,
2366
2432
  fetchOptions: o
2367
2433
  });
@@ -2372,10 +2438,35 @@ function Gn(e, t = {}, n) {
2372
2438
  }, n);
2373
2439
  }
2374
2440
  //#endregion
2441
+ //#region src/queries/oauth-provider/public-oauth-client-query.ts
2442
+ function Y(e, t, n) {
2443
+ return c({
2444
+ queryKey: de.publicClient(t),
2445
+ queryFn: ({ signal: r }) => e.oauth2.publicClient({
2446
+ ...n,
2447
+ query: { client_id: t },
2448
+ fetchOptions: {
2449
+ ...n?.fetchOptions,
2450
+ signal: r,
2451
+ throw: !0
2452
+ }
2453
+ })
2454
+ });
2455
+ }
2456
+ var sr = (e, t, n, r) => e.ensureQueryData(Y(t, n, r)), cr = (e, t, n, r) => e.prefetchQuery(Y(t, n, r)), lr = (e, t, n, r) => e.fetchQuery(Y(t, n, r));
2457
+ function ur(e, t, n = {}, r) {
2458
+ let { fetchOptions: i, ...a } = n, o = Y(e, t ?? "", { fetchOptions: i });
2459
+ return d({
2460
+ ...a,
2461
+ ...o,
2462
+ queryFn: t ? o.queryFn : l
2463
+ }, r);
2464
+ }
2465
+ //#endregion
2375
2466
  //#region src/queries/passkey/list-passkeys-query.ts
2376
2467
  function X(e, t, n) {
2377
2468
  return c({
2378
- queryKey: x.list(t, n?.query),
2469
+ queryKey: S.list(t, n?.query),
2379
2470
  queryFn: ({ signal: t }) => e.passkey.listUserPasskeys({
2380
2471
  ...n,
2381
2472
  fetchOptions: {
@@ -2386,9 +2477,9 @@ function X(e, t, n) {
2386
2477
  })
2387
2478
  });
2388
2479
  }
2389
- var Kn = (e, t, n, r) => e.ensureQueryData(X(t, n, r)), qn = (e, t, n, r) => e.prefetchQuery(X(t, n, r)), Jn = (e, t, n, r) => e.fetchQuery(X(t, n, r));
2390
- function Yn(e, t = {}, n) {
2391
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = X(e, i, {
2480
+ var dr = (e, t, n, r) => e.ensureQueryData(X(t, n, r)), fr = (e, t, n, r) => e.prefetchQuery(X(t, n, r)), pr = (e, t, n, r) => e.fetchQuery(X(t, n, r));
2481
+ function mr(e, t = {}, n) {
2482
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = X(e, i, {
2392
2483
  query: a,
2393
2484
  fetchOptions: o
2394
2485
  });
@@ -2413,9 +2504,9 @@ function Z(e, t, n) {
2413
2504
  })
2414
2505
  });
2415
2506
  }
2416
- var Xn = (e, t, n, r) => e.ensureQueryData(Z(t, n, r)), Zn = (e, t, n, r) => e.prefetchQuery(Z(t, n, r)), Qn = (e, t, n, r) => e.fetchQuery(Z(t, n, r));
2417
- function $n(e, t = {}, n) {
2418
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Z(e, i, {
2507
+ var hr = (e, t, n, r) => e.ensureQueryData(Z(t, n, r)), gr = (e, t, n, r) => e.prefetchQuery(Z(t, n, r)), _r = (e, t, n, r) => e.fetchQuery(Z(t, n, r));
2508
+ function vr(e, t = {}, n) {
2509
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Z(e, i, {
2419
2510
  query: a,
2420
2511
  fetchOptions: o
2421
2512
  }), u = !!(i && a?.accountId);
@@ -2440,9 +2531,9 @@ function Q(e, t, n) {
2440
2531
  })
2441
2532
  });
2442
2533
  }
2443
- var er = (e, t, n, r) => e.ensureQueryData(Q(t, n, r)), tr = (e, t, n, r) => e.prefetchQuery(Q(t, n, r)), nr = (e, t, n, r) => e.fetchQuery(Q(t, n, r));
2444
- function rr(e, t = {}, n) {
2445
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Q(e, i, {
2534
+ var yr = (e, t, n, r) => e.ensureQueryData(Q(t, n, r)), br = (e, t, n, r) => e.prefetchQuery(Q(t, n, r)), xr = (e, t, n, r) => e.fetchQuery(Q(t, n, r));
2535
+ function Sr(e, t = {}, n) {
2536
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = Q(e, i, {
2446
2537
  query: a,
2447
2538
  fetchOptions: o
2448
2539
  });
@@ -2467,9 +2558,9 @@ function $(e, t, n) {
2467
2558
  })
2468
2559
  });
2469
2560
  }
2470
- var ir = (e, t, n, r) => e.ensureQueryData($(t, n, r)), ar = (e, t, n, r) => e.prefetchQuery($(t, n, r)), or = (e, t, n, r) => e.fetchQuery($(t, n, r));
2471
- function sr(e, t = {}, n) {
2472
- let { data: r } = R(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = $(e, i, {
2561
+ var Cr = (e, t, n, r) => e.ensureQueryData($(t, n, r)), wr = (e, t, n, r) => e.prefetchQuery($(t, n, r)), Tr = (e, t, n, r) => e.fetchQuery($(t, n, r));
2562
+ function Er(e, t = {}, n) {
2563
+ let { data: r } = I(e, void 0, n), i = r?.user.id, { query: a, fetchOptions: o, ...s } = t, c = $(e, i, {
2473
2564
  query: a,
2474
2565
  fetchOptions: o
2475
2566
  });
@@ -2480,4 +2571,4 @@ function sr(e, t = {}, n) {
2480
2571
  }, n);
2481
2572
  }
2482
2573
  //#endregion
2483
- export { de as Apple, fe as Atlassian, n as AuthProvider, pe as Cognito, me as Discord, he as Dropbox, ge as Facebook, t as FetchOptionsProvider, _e as Figma, ve as GitHub, S as GitLab, C as Google, w as HuggingFace, T as Kakao, E as Kick, D as Line, O as Linear, k as LinkedIn, A as Microsoft, j as Naver, M as Notion, P as PayPal, N as Paybin, F as Polar, I as Railway, ye as Reddit, be as Roblox, xe as Salesforce, Se as Slack, Ce as Spotify, Ne as ThemePreviewDark, Me as ThemePreviewLight, je as ThemePreviewSystem, we as TikTok, Te as Twitch, De as VK, Ee as Vercel, Oe as WeChat, ke as X, Ae as Zoom, gt as acceptInvitationOptions, Z as accountInfoOptions, B as activeOrganizationOptions, mn as addPasskeyOptions, He as authMutationOptions, We as authQueryOptions, vt as cancelInvitationOptions, bn as changeEmailOptions, Sn as changePasswordOptions, bt as checkSlugOptions, qe as createApiKeyOptions, St as createOrganizationOptions, Ye as deleteApiKeyOptions, wt as deleteOrganizationOptions, gn as deletePasskeyOptions, wn as deleteUserOptions, Xn as ensureAccountInfo, Et as ensureActiveOrganization, kt as ensureFullOrganization, Nt as ensureHasPermission, er as ensureListAccounts, Rn as ensureListApiKeys, Hn as ensureListDeviceSessions, Lt as ensureListOrganizationInvitations, Vt as ensureListOrganizationMembers, Gt as ensureListOrganizations, Kn as ensureListPasskeys, ir as ensureListSessions, Yt as ensureListUserInvitations, Pe as ensureSession, Qn as fetchAccountInfo, Ot as fetchActiveOrganization, jt as fetchFullOrganization, Ft as fetchHasPermission, nr as fetchListAccounts, Bn as fetchListApiKeys, Wn as fetchListDeviceSessions, zt as fetchListOrganizationInvitations, Ut as fetchListOrganizationMembers, qt as fetchListOrganizations, Jn as fetchListPasskeys, or as fetchListSessions, Zt as fetchListUserInvitations, Ie as fetchSession, H as fullOrganizationOptions, U as hasPermissionOptions, $t as inviteMemberOptions, Pn as isUsernameAvailableOptions, tn as leaveOrganizationOptions, En as linkSocialOptions, Q as listAccountsOptions, J as listApiKeysOptions, Y as listDeviceSessionsOptions, W as listOrganizationInvitationsOptions, G as listOrganizationMembersOptions, K as listOrganizationsOptions, X as listPasskeysOptions, $ as listSessionsOptions, q as listUserInvitationsOptions, Zn as prefetchAccountInfo, Dt as prefetchActiveOrganization, At as prefetchFullOrganization, Pt as prefetchHasPermission, tr as prefetchListAccounts, zn as prefetchListApiKeys, Un as prefetchListDeviceSessions, Rt as prefetchListOrganizationInvitations, Ht as prefetchListOrganizationMembers, Kt as prefetchListOrganizations, qn as prefetchListPasskeys, ar as prefetchListSessions, Xt as prefetchListUserInvitations, Fe as prefetchSession, Ke as providerIcons, rn as rejectInvitationOptions, on as removeMemberOptions, Ze as requestPasswordResetOptions, $e as resetPasswordOptions, pt as revokeMultiSessionOptions, On as revokeSessionOptions, tt as sendVerificationEmailOptions, L as sessionOptions, cn as setActiveOrganizationOptions, z as setActiveSessionOptions, rt as signInEmailOptions, dt as signInMagicLinkOptions, vn as signInPasskeyOptions, at as signInSocialOptions, In as signInUsernameOptions, st as signOutOptions, lt as signUpEmailOptions, An as unlinkAccountOptions, un as updateMemberRoleOptions, fn as updateOrganizationOptions, Mn as updateUserOptions, _t as useAcceptInvitation, $n as useAccountInfo, V as useActiveOrganization, hn as useAddPasskey, r as useAuth, Ue as useAuthMutation, i as useAuthPlugin, Ge as useAuthQuery, Le as useAuthenticate, yt as useCancelInvitation, xn as useChangeEmail, Cn as useChangePassword, xt as useCheckSlug, Je as useCreateApiKey, Ct as useCreateOrganization, Xe as useDeleteApiKey, Tt as useDeleteOrganization, _n as useDeletePasskey, Tn as useDeleteUser, e as useFetchOptions, Mt as useFullOrganization, It as useHasPermission, en as useInviteMember, Fn as useIsUsernameAvailable, Be as useLastLoginMethod, nn as useLeaveOrganization, Dn as useLinkSocial, rr as useListAccounts, Vn as useListApiKeys, Gn as useListDeviceSessions, Bt as useListOrganizationInvitations, Wt as useListOrganizationMembers, Jt as useListOrganizations, Yn as useListPasskeys, sr as useListSessions, Qt as useListUserInvitations, an as useRejectInvitation, sn as useRemoveMember, Qe as useRequestPasswordReset, et as useResetPassword, mt as useRevokeMultiSession, kn as useRevokeSession, nt as useSendVerificationEmail, R as useSession, ln as useSetActiveOrganization, ht as useSetActiveSession, it as useSignInEmail, ft as useSignInMagicLink, yn as useSignInPasskey, ot as useSignInSocial, Ln as useSignInUsername, ct as useSignOut, ut as useSignUpEmail, jn as useUnlinkAccount, dn as useUpdateMemberRole, pn as useUpdateOrganization, Nn as useUpdateUser, Ve as useUser };
2574
+ export { me as Apple, he as Atlassian, n as AuthProvider, ge as Cognito, _e as Discord, ve as Dropbox, ye as Facebook, t as FetchOptionsProvider, be as Figma, C as GitHub, w as GitLab, T as Google, E as HuggingFace, D as Kakao, O as Kick, k as Line, A as Linear, j as LinkedIn, M as Microsoft, N as Naver, P as Notion, Se as PayPal, xe as Paybin, Ce as Polar, we as Railway, Te as Reddit, Ee as Roblox, De as Salesforce, Oe as Slack, ke as Spotify, ze as ThemePreviewDark, Re as ThemePreviewLight, Le as ThemePreviewSystem, Ae as TikTok, je as Twitch, Ne as VK, Me as Vercel, Pe as WeChat, Fe as X, Ie as Zoom, jt as acceptInvitationOptions, Z as accountInfoOptions, z as activeOrganizationOptions, kn as addPasskeyOptions, vt as approveDeviceOptions, L as authMutationOptions, Ye as authQueryOptions, Nt as cancelInvitationOptions, Fn as changeEmailOptions, Ln as changePasswordOptions, Ft as checkSlugOptions, et as createApiKeyOptions, Lt as createOrganizationOptions, nt as deleteApiKeyOptions, zt as deleteOrganizationOptions, jn as deletePasskeyOptions, zn as deleteUserOptions, bt as denyDeviceOptions, hr as ensureAccountInfo, Vt as ensureActiveOrganization, Wt as ensureFullOrganization, Jt as ensureHasPermission, yr as ensureListAccounts, $n as ensureListApiKeys, rr as ensureListDeviceSessions, Qt as ensureListOrganizationInvitations, nn as ensureListOrganizationMembers, sn as ensureListOrganizations, dr as ensureListPasskeys, Cr as ensureListSessions, dn as ensureListUserInvitations, sr as ensurePublicOAuthClient, Be as ensureSession, _r as fetchAccountInfo, Ut as fetchActiveOrganization, Kt as fetchFullOrganization, Xt as fetchHasPermission, xr as fetchListAccounts, tr as fetchListApiKeys, ar as fetchListDeviceSessions, en as fetchListOrganizationInvitations, an as fetchListOrganizationMembers, ln as fetchListOrganizations, pr as fetchListPasskeys, Tr as fetchListSessions, pn as fetchListUserInvitations, lr as fetchPublicOAuthClient, He as fetchSession, V as fullOrganizationOptions, H as hasPermissionOptions, hn as inviteMemberOptions, Yn as isUsernameAvailableOptions, _n as leaveOrganizationOptions, Vn as linkSocialOptions, Q as listAccountsOptions, q as listApiKeysOptions, J as listDeviceSessionsOptions, U as listOrganizationInvitationsOptions, W as listOrganizationMembersOptions, G as listOrganizationsOptions, X as listPasskeysOptions, $ as listSessionsOptions, K as listUserInvitationsOptions, kt as oauthConsentOptions, gr as prefetchAccountInfo, Ht as prefetchActiveOrganization, Gt as prefetchFullOrganization, Yt as prefetchHasPermission, br as prefetchListAccounts, er as prefetchListApiKeys, ir as prefetchListDeviceSessions, $t as prefetchListOrganizationInvitations, rn as prefetchListOrganizationMembers, cn as prefetchListOrganizations, fr as prefetchListPasskeys, wr as prefetchListSessions, fn as prefetchListUserInvitations, cr as prefetchPublicOAuthClient, Ve as prefetchSession, Ze as providerIcons, Y as publicOAuthClientOptions, yn as rejectInvitationOptions, xn as removeMemberOptions, it as requestPasswordResetOptions, ot as resetPasswordOptions, Et as revokeMultiSessionOptions, Un as revokeSessionOptions, ct as sendVerificationEmailOptions, F as sessionOptions, Cn as setActiveOrganizationOptions, R as setActiveSessionOptions, ut as signInEmailOptions, wt as signInMagicLinkOptions, Nn as signInPasskeyOptions, ft as signInSocialOptions, Zn as signInUsernameOptions, mt as signOutOptions, gt as signUpEmailOptions, Qe as stopImpersonatingOptions, Gn as unlinkAccountOptions, Tn as updateMemberRoleOptions, Dn as updateOrganizationOptions, qn as updateUserOptions, Mt as useAcceptInvitation, vr as useAccountInfo, B as useActiveOrganization, An as useAddPasskey, yt as useApproveDevice, r as useAuth, Je as useAuthMutation, i as useAuthPlugin, Xe as useAuthQuery, Ue as useAuthenticate, Pt as useCancelInvitation, In as useChangeEmail, Rn as useChangePassword, It as useCheckSlug, tt as useCreateApiKey, Rt as useCreateOrganization, rt as useDeleteApiKey, Bt as useDeleteOrganization, Mn as useDeletePasskey, Bn as useDeleteUser, xt as useDenyDevice, e as useFetchOptions, qt as useFullOrganization, Zt as useHasPermission, gn as useInviteMember, Xn as useIsUsernameAvailable, Ke as useLastLoginMethod, vn as useLeaveOrganization, Hn as useLinkSocial, Sr as useListAccounts, nr as useListApiKeys, or as useListDeviceSessions, tn as useListOrganizationInvitations, on as useListOrganizationMembers, un as useListOrganizations, mr as useListPasskeys, Er as useListSessions, mn as useListUserInvitations, At as useOAuthConsent, ur as usePublicOAuthClient, bn as useRejectInvitation, Sn as useRemoveMember, at as useRequestPasswordReset, st as useResetPassword, Dt as useRevokeMultiSession, Wn as useRevokeSession, lt as useSendVerificationEmail, I as useSession, wn as useSetActiveOrganization, Ot as useSetActiveSession, dt as useSignInEmail, Tt as useSignInMagicLink, Pn as useSignInPasskey, pt as useSignInSocial, Qn as useSignInUsername, ht as useSignOut, _t as useSignUpEmail, $e as useStopImpersonating, Kn as useUnlinkAccount, En as useUpdateMemberRole, On as useUpdateOrganization, Jn as useUpdateUser, qe as useUser, Ct as useVerifyDeviceCode, St as verifyDeviceCodeOptions };