@better-auth-ui/react 1.6.31 → 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.
- package/dist/index.d.ts +3 -0
- package/dist/index.js +340 -282
- package/dist/lib/auth-client.d.ts +8 -1
- package/dist/mutations/admin/stop-impersonating-mutation.d.ts +61 -0
- package/dist/mutations/oauth-provider/oauth-consent-mutation.d.ts +40 -0
- package/dist/mutations/organization/accept-invitation-mutation.d.ts +4 -4
- package/dist/mutations/organization/cancel-invitation-mutation.d.ts +4 -4
- package/dist/mutations/organization/invite-member-mutation.d.ts +8 -8
- package/dist/mutations/organization/leave-organization-mutation.d.ts +2 -2
- package/dist/mutations/organization/reject-invitation-mutation.d.ts +2 -2
- package/dist/mutations/organization/remove-member-mutation.d.ts +2 -2
- package/dist/mutations/organization/set-active-organization-mutation.d.ts +6 -6
- package/dist/queries/oauth-provider/public-oauth-client-query.d.ts +33 -0
- package/dist/queries/organization/list-members-query.d.ts +4 -4
- package/dist/server/queries/organization/list-members-query.d.ts +4 -4
- package/package.json +3 -1
- package/src/index.ts +3 -0
- package/src/lib/auth-client.ts +15 -0
- package/src/mutations/admin/stop-impersonating-mutation.ts +71 -0
- package/src/mutations/oauth-provider/oauth-consent-mutation.ts +41 -0
- 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 {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ye(e) {
|
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region src/components/icons/google.tsx
|
|
203
|
-
function
|
|
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 be(e) {
|
|
|
238
238
|
}
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/components/icons/huggingface.tsx
|
|
241
|
-
function
|
|
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 xe(e) {
|
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/components/icons/kakao.tsx
|
|
278
|
-
function
|
|
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 Se(e) {
|
|
|
290
290
|
}
|
|
291
291
|
//#endregion
|
|
292
292
|
//#region src/components/icons/kick.tsx
|
|
293
|
-
function
|
|
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 Ce(e) {
|
|
|
309
309
|
}
|
|
310
310
|
//#endregion
|
|
311
311
|
//#region src/components/icons/line.tsx
|
|
312
|
-
function
|
|
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 we(e) {
|
|
|
324
324
|
}
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region src/components/icons/linear.tsx
|
|
327
|
-
function
|
|
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 Te(e) {
|
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/components/icons/linkedin.tsx
|
|
342
|
-
function
|
|
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 Ee(e) {
|
|
|
371
371
|
}
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/components/icons/microsoft.tsx
|
|
374
|
-
function
|
|
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 C(e) {
|
|
|
400
400
|
}
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region src/components/icons/naver.tsx
|
|
403
|
-
function
|
|
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 w(e) {
|
|
|
415
415
|
}
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region src/components/icons/notion.tsx
|
|
418
|
-
function
|
|
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 T(e) {
|
|
|
430
430
|
}
|
|
431
431
|
//#endregion
|
|
432
432
|
//#region src/components/icons/paybin.tsx
|
|
433
|
-
function
|
|
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 E(e) {
|
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/components/icons/paypal.tsx
|
|
464
|
-
function
|
|
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 D(e) {
|
|
|
490
490
|
}
|
|
491
491
|
//#endregion
|
|
492
492
|
//#region src/components/icons/polar.tsx
|
|
493
|
-
function
|
|
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 O(e) {
|
|
|
513
513
|
}
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/icons/railway.tsx
|
|
516
|
-
function
|
|
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 k(e) {
|
|
|
528
528
|
}
|
|
529
529
|
//#endregion
|
|
530
530
|
//#region src/components/icons/reddit.tsx
|
|
531
|
-
function
|
|
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 A(e) {
|
|
|
548
548
|
}
|
|
549
549
|
//#endregion
|
|
550
550
|
//#region src/components/icons/roblox.tsx
|
|
551
|
-
function
|
|
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 j(e) {
|
|
|
564
564
|
}
|
|
565
565
|
//#endregion
|
|
566
566
|
//#region src/components/icons/salesforce.tsx
|
|
567
|
-
function
|
|
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 M(e) {
|
|
|
579
579
|
}
|
|
580
580
|
//#endregion
|
|
581
581
|
//#region src/components/icons/slack.tsx
|
|
582
|
-
function
|
|
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 N(e) {
|
|
|
608
608
|
}
|
|
609
609
|
//#endregion
|
|
610
610
|
//#region src/components/icons/spotify.tsx
|
|
611
|
-
function
|
|
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 P(e) {
|
|
|
623
623
|
}
|
|
624
624
|
//#endregion
|
|
625
625
|
//#region src/components/icons/tiktok.tsx
|
|
626
|
-
function
|
|
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 F(e) {
|
|
|
645
645
|
}
|
|
646
646
|
//#endregion
|
|
647
647
|
//#region src/components/icons/twitch.tsx
|
|
648
|
-
function
|
|
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 De(e) {
|
|
|
687
687
|
}
|
|
688
688
|
//#endregion
|
|
689
689
|
//#region src/components/icons/vercel.tsx
|
|
690
|
-
function
|
|
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 Oe(e) {
|
|
|
702
702
|
}
|
|
703
703
|
//#endregion
|
|
704
704
|
//#region src/components/icons/vk.tsx
|
|
705
|
-
function
|
|
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 ke(e) {
|
|
|
717
717
|
}
|
|
718
718
|
//#endregion
|
|
719
719
|
//#region src/components/icons/wechat.tsx
|
|
720
|
-
function
|
|
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 Ae(e) {
|
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
734
|
//#region src/components/icons/x.tsx
|
|
735
|
-
function
|
|
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 je(e) {
|
|
|
747
747
|
}
|
|
748
748
|
//#endregion
|
|
749
749
|
//#region src/components/icons/zoom.tsx
|
|
750
|
-
function
|
|
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 Me(e) {
|
|
|
814
814
|
}
|
|
815
815
|
//#endregion
|
|
816
816
|
//#region src/components/settings/account/theme-preview.tsx
|
|
817
|
-
function
|
|
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 Ne(e) {
|
|
|
959
959
|
]
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
function
|
|
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 Pe(e) {
|
|
|
1029
1029
|
]
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
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 Fe(e) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
//#endregion
|
|
1103
1103
|
//#region src/queries/auth/session-query.ts
|
|
1104
|
-
function
|
|
1104
|
+
function F(e, t) {
|
|
1105
1105
|
let n = o.session;
|
|
1106
1106
|
return c({
|
|
1107
1107
|
queryKey: n,
|
|
@@ -1115,11 +1115,11 @@ function I(e, t) {
|
|
|
1115
1115
|
})
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1119
|
-
function
|
|
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
|
-
...
|
|
1122
|
+
...F(e, {
|
|
1123
1123
|
query: r,
|
|
1124
1124
|
fetchOptions: i
|
|
1125
1125
|
}),
|
|
@@ -1128,8 +1128,8 @@ function L(e, t = {}, n) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
//#endregion
|
|
1130
1130
|
//#region src/hooks/auth/use-authenticate.ts
|
|
1131
|
-
function
|
|
1132
|
-
let { basePaths: n, viewPaths: i, navigate: a } = r(), o =
|
|
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 ze(e, t) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
//#endregion
|
|
1149
1149
|
//#region src/hooks/auth/use-last-login-method.ts
|
|
1150
|
-
var
|
|
1151
|
-
function
|
|
1152
|
-
let { authClient: e, plugins: t } = r(), n = t.find((e) => e.id ===
|
|
1153
|
-
...
|
|
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(
|
|
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
|
|
1164
|
-
let { data: n, ...r } =
|
|
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 Ue(e, t) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
//#endregion
|
|
1171
1171
|
//#region src/mutations/auth-mutation-options.ts
|
|
1172
|
-
function
|
|
1172
|
+
function L(e, t) {
|
|
1173
1173
|
return s({
|
|
1174
1174
|
mutationKey: t,
|
|
1175
1175
|
mutationFn: (t) => {
|
|
@@ -1186,15 +1186,15 @@ function R(e, t) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
//#endregion
|
|
1188
1188
|
//#region src/hooks/use-auth-mutation.ts
|
|
1189
|
-
function
|
|
1189
|
+
function Je(e, t, n) {
|
|
1190
1190
|
return u({
|
|
1191
|
-
...
|
|
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
|
|
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 Ge(e, t, n) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
//#endregion
|
|
1211
1211
|
//#region src/hooks/use-auth-query.ts
|
|
1212
|
-
function
|
|
1212
|
+
function Xe(e, t, n) {
|
|
1213
1213
|
let { query: r, fetchOptions: i, ...a } = n ?? {};
|
|
1214
1214
|
return d({
|
|
1215
|
-
...
|
|
1215
|
+
...Ye(e, t, {
|
|
1216
1216
|
query: r,
|
|
1217
1217
|
fetchOptions: i
|
|
1218
1218
|
}),
|
|
@@ -1221,47 +1221,69 @@ function Ke(e, t, n) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
//#endregion
|
|
1223
1223
|
//#region src/lib/provider-icons.ts
|
|
1224
|
-
var
|
|
1225
|
-
apple:
|
|
1226
|
-
atlassian:
|
|
1227
|
-
cognito:
|
|
1228
|
-
discord:
|
|
1229
|
-
dropbox:
|
|
1230
|
-
facebook:
|
|
1231
|
-
figma:
|
|
1232
|
-
github:
|
|
1233
|
-
gitlab:
|
|
1234
|
-
google:
|
|
1235
|
-
huggingface:
|
|
1236
|
-
kakao:
|
|
1237
|
-
kick:
|
|
1238
|
-
line:
|
|
1239
|
-
linear:
|
|
1240
|
-
linkedin:
|
|
1241
|
-
microsoft:
|
|
1242
|
-
naver:
|
|
1243
|
-
notion:
|
|
1244
|
-
paybin:
|
|
1245
|
-
paypal:
|
|
1246
|
-
polar:
|
|
1247
|
-
railway:
|
|
1248
|
-
reddit:
|
|
1249
|
-
roblox:
|
|
1250
|
-
salesforce:
|
|
1251
|
-
slack:
|
|
1252
|
-
spotify:
|
|
1253
|
-
tiktok:
|
|
1254
|
-
twitch:
|
|
1255
|
-
twitter:
|
|
1256
|
-
vercel:
|
|
1257
|
-
vk:
|
|
1258
|
-
wechat:
|
|
1259
|
-
zoom:
|
|
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
|
|
1264
|
-
let t =
|
|
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 Je(e) {
|
|
|
1273
1295
|
})
|
|
1274
1296
|
});
|
|
1275
1297
|
}
|
|
1276
|
-
function
|
|
1277
|
-
let { data: r } =
|
|
1298
|
+
function tt(e, t, n) {
|
|
1299
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1278
1300
|
return u({
|
|
1279
|
-
...
|
|
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
|
|
1287
|
-
let t =
|
|
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 Xe(e) {
|
|
|
1296
1318
|
})
|
|
1297
1319
|
});
|
|
1298
1320
|
}
|
|
1299
|
-
function
|
|
1300
|
-
let { data: r } =
|
|
1321
|
+
function rt(e, t, n) {
|
|
1322
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1301
1323
|
return u({
|
|
1302
|
-
...
|
|
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
|
|
1331
|
+
function it(e) {
|
|
1310
1332
|
let t = a.requestPasswordReset;
|
|
1311
1333
|
return s({
|
|
1312
1334
|
mutationKey: t,
|
|
@@ -1319,15 +1341,15 @@ function Qe(e) {
|
|
|
1319
1341
|
})
|
|
1320
1342
|
});
|
|
1321
1343
|
}
|
|
1322
|
-
function
|
|
1344
|
+
function at(e, t) {
|
|
1323
1345
|
return u({
|
|
1324
|
-
...
|
|
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
|
|
1352
|
+
function ot(e) {
|
|
1331
1353
|
let t = a.resetPassword;
|
|
1332
1354
|
return s({
|
|
1333
1355
|
mutationKey: t,
|
|
@@ -1340,15 +1362,15 @@ function et(e) {
|
|
|
1340
1362
|
})
|
|
1341
1363
|
});
|
|
1342
1364
|
}
|
|
1343
|
-
function
|
|
1365
|
+
function st(e, t) {
|
|
1344
1366
|
return u({
|
|
1345
|
-
...
|
|
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
|
|
1373
|
+
function ct(e) {
|
|
1352
1374
|
let t = a.sendVerificationEmail;
|
|
1353
1375
|
return s({
|
|
1354
1376
|
mutationKey: t,
|
|
@@ -1361,15 +1383,15 @@ function nt(e) {
|
|
|
1361
1383
|
})
|
|
1362
1384
|
});
|
|
1363
1385
|
}
|
|
1364
|
-
function
|
|
1386
|
+
function lt(e, t) {
|
|
1365
1387
|
return u({
|
|
1366
|
-
...
|
|
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
|
|
1394
|
+
function ut(e) {
|
|
1373
1395
|
let t = a.signIn.email;
|
|
1374
1396
|
return s({
|
|
1375
1397
|
mutationKey: t,
|
|
@@ -1382,16 +1404,16 @@ function it(e) {
|
|
|
1382
1404
|
})
|
|
1383
1405
|
});
|
|
1384
1406
|
}
|
|
1385
|
-
function
|
|
1407
|
+
function dt(e, t, n) {
|
|
1386
1408
|
return u({
|
|
1387
|
-
...
|
|
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
|
|
1416
|
+
function ft(e) {
|
|
1395
1417
|
let t = a.signIn.social;
|
|
1396
1418
|
return s({
|
|
1397
1419
|
mutationKey: t,
|
|
@@ -1404,15 +1426,15 @@ function ot(e) {
|
|
|
1404
1426
|
})
|
|
1405
1427
|
});
|
|
1406
1428
|
}
|
|
1407
|
-
function
|
|
1429
|
+
function pt(e, t) {
|
|
1408
1430
|
return u({
|
|
1409
|
-
...
|
|
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
|
|
1437
|
+
function mt(e) {
|
|
1416
1438
|
let t = a.signOut;
|
|
1417
1439
|
return s({
|
|
1418
1440
|
mutationKey: t,
|
|
@@ -1425,10 +1447,10 @@ function ct(e) {
|
|
|
1425
1447
|
})
|
|
1426
1448
|
});
|
|
1427
1449
|
}
|
|
1428
|
-
function
|
|
1450
|
+
function ht(e, t, n) {
|
|
1429
1451
|
let r = f(n);
|
|
1430
1452
|
return u({
|
|
1431
|
-
...
|
|
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 lt(e, t, n) {
|
|
|
1437
1459
|
}
|
|
1438
1460
|
//#endregion
|
|
1439
1461
|
//#region src/mutations/auth/sign-up-email-mutation.ts
|
|
1440
|
-
function
|
|
1462
|
+
function gt(e) {
|
|
1441
1463
|
let t = a.signUp.email;
|
|
1442
1464
|
return s({
|
|
1443
1465
|
mutationKey: t,
|
|
@@ -1450,50 +1472,50 @@ function ut(e) {
|
|
|
1450
1472
|
})
|
|
1451
1473
|
});
|
|
1452
1474
|
}
|
|
1453
|
-
function
|
|
1475
|
+
function _t(e, t, n) {
|
|
1454
1476
|
return u({
|
|
1455
|
-
...
|
|
1477
|
+
...gt(e),
|
|
1456
1478
|
...t,
|
|
1457
1479
|
meta: { awaits: [o.session] }
|
|
1458
1480
|
}, n);
|
|
1459
1481
|
}
|
|
1460
1482
|
//#endregion
|
|
1461
1483
|
//#region src/mutations/device-authorization/approve-device-mutation.ts
|
|
1462
|
-
function
|
|
1463
|
-
return
|
|
1484
|
+
function vt(e) {
|
|
1485
|
+
return L(e.device.approve, _.approve);
|
|
1464
1486
|
}
|
|
1465
|
-
function
|
|
1487
|
+
function yt(e, t) {
|
|
1466
1488
|
return u({
|
|
1467
|
-
...
|
|
1489
|
+
...vt(e),
|
|
1468
1490
|
...t
|
|
1469
1491
|
});
|
|
1470
1492
|
}
|
|
1471
1493
|
//#endregion
|
|
1472
1494
|
//#region src/mutations/device-authorization/deny-device-mutation.ts
|
|
1473
|
-
function
|
|
1474
|
-
return
|
|
1495
|
+
function bt(e) {
|
|
1496
|
+
return L(e.device.deny, _.deny);
|
|
1475
1497
|
}
|
|
1476
|
-
function
|
|
1498
|
+
function xt(e, t) {
|
|
1477
1499
|
return u({
|
|
1478
|
-
...
|
|
1500
|
+
...bt(e),
|
|
1479
1501
|
...t
|
|
1480
1502
|
});
|
|
1481
1503
|
}
|
|
1482
1504
|
//#endregion
|
|
1483
1505
|
//#region src/mutations/device-authorization/verify-device-code-mutation.ts
|
|
1484
|
-
function
|
|
1485
|
-
return
|
|
1506
|
+
function St(e) {
|
|
1507
|
+
return L(e.device, _.verify);
|
|
1486
1508
|
}
|
|
1487
|
-
function
|
|
1509
|
+
function Ct(e, t) {
|
|
1488
1510
|
return u({
|
|
1489
|
-
...
|
|
1511
|
+
...St(e),
|
|
1490
1512
|
...t
|
|
1491
1513
|
});
|
|
1492
1514
|
}
|
|
1493
1515
|
//#endregion
|
|
1494
1516
|
//#region src/mutations/magic-link/sign-in-magic-link-mutation.ts
|
|
1495
|
-
function
|
|
1496
|
-
let t =
|
|
1517
|
+
function wt(e) {
|
|
1518
|
+
let t = ce.signIn;
|
|
1497
1519
|
return s({
|
|
1498
1520
|
mutationKey: t,
|
|
1499
1521
|
mutationFn: (t) => e.signIn.magicLink({
|
|
@@ -1505,16 +1527,16 @@ function vt(e) {
|
|
|
1505
1527
|
})
|
|
1506
1528
|
});
|
|
1507
1529
|
}
|
|
1508
|
-
function
|
|
1530
|
+
function Tt(e, t) {
|
|
1509
1531
|
return u({
|
|
1510
|
-
...
|
|
1532
|
+
...wt(e),
|
|
1511
1533
|
...t
|
|
1512
1534
|
});
|
|
1513
1535
|
}
|
|
1514
1536
|
//#endregion
|
|
1515
1537
|
//#region src/mutations/multi-session/revoke-multi-session-mutation.ts
|
|
1516
|
-
function
|
|
1517
|
-
let t =
|
|
1538
|
+
function Et(e) {
|
|
1539
|
+
let t = le.revoke;
|
|
1518
1540
|
return s({
|
|
1519
1541
|
mutationKey: t,
|
|
1520
1542
|
mutationFn: (t) => e.multiSession.revoke({
|
|
@@ -1526,18 +1548,18 @@ function bt(e) {
|
|
|
1526
1548
|
})
|
|
1527
1549
|
});
|
|
1528
1550
|
}
|
|
1529
|
-
function
|
|
1530
|
-
let { data: r } =
|
|
1551
|
+
function Dt(e, t, n) {
|
|
1552
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1531
1553
|
return u({
|
|
1532
|
-
...
|
|
1554
|
+
...Et(e),
|
|
1533
1555
|
...t,
|
|
1534
1556
|
meta: { awaits: [v.lists(i)] }
|
|
1535
1557
|
}, n);
|
|
1536
1558
|
}
|
|
1537
1559
|
//#endregion
|
|
1538
1560
|
//#region src/mutations/multi-session/set-active-session-mutation.ts
|
|
1539
|
-
function
|
|
1540
|
-
let t =
|
|
1561
|
+
function R(e) {
|
|
1562
|
+
let t = le.setActive;
|
|
1541
1563
|
return s({
|
|
1542
1564
|
mutationKey: t,
|
|
1543
1565
|
mutationFn: (t) => e.multiSession.setActive({
|
|
@@ -1549,17 +1571,28 @@ function St(e) {
|
|
|
1549
1571
|
})
|
|
1550
1572
|
});
|
|
1551
1573
|
}
|
|
1552
|
-
function
|
|
1553
|
-
let { data: r } =
|
|
1574
|
+
function Ot(e, t, n) {
|
|
1575
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1554
1576
|
return u({
|
|
1555
|
-
...
|
|
1577
|
+
...R(e),
|
|
1556
1578
|
...t,
|
|
1557
1579
|
meta: { awaits: [o.session, v.lists(i)] }
|
|
1558
1580
|
}, n);
|
|
1559
1581
|
}
|
|
1560
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
|
|
1561
1594
|
//#region src/mutations/organization/accept-invitation-mutation.ts
|
|
1562
|
-
function
|
|
1595
|
+
function jt(e) {
|
|
1563
1596
|
let t = y.acceptInvitation;
|
|
1564
1597
|
return s({
|
|
1565
1598
|
mutationKey: t,
|
|
@@ -1572,10 +1605,10 @@ function wt(e) {
|
|
|
1572
1605
|
})
|
|
1573
1606
|
});
|
|
1574
1607
|
}
|
|
1575
|
-
function
|
|
1576
|
-
let { data: r } =
|
|
1608
|
+
function Mt(e, t, n) {
|
|
1609
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1577
1610
|
return u({
|
|
1578
|
-
...
|
|
1611
|
+
...jt(e),
|
|
1579
1612
|
...t,
|
|
1580
1613
|
meta: {
|
|
1581
1614
|
awaits: [b.userInvitations.all(i), b.lists(i)],
|
|
@@ -1585,7 +1618,7 @@ function Tt(e, t, n) {
|
|
|
1585
1618
|
}
|
|
1586
1619
|
//#endregion
|
|
1587
1620
|
//#region src/mutations/organization/cancel-invitation-mutation.ts
|
|
1588
|
-
function
|
|
1621
|
+
function Nt(e) {
|
|
1589
1622
|
let t = y.cancelInvitation;
|
|
1590
1623
|
return s({
|
|
1591
1624
|
mutationKey: t,
|
|
@@ -1598,17 +1631,17 @@ function Et(e) {
|
|
|
1598
1631
|
})
|
|
1599
1632
|
});
|
|
1600
1633
|
}
|
|
1601
|
-
function
|
|
1602
|
-
let { data: r } =
|
|
1634
|
+
function Pt(e, t, n) {
|
|
1635
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1603
1636
|
return u({
|
|
1604
|
-
...
|
|
1637
|
+
...Nt(e),
|
|
1605
1638
|
...t,
|
|
1606
1639
|
meta: { awaits: [b.invitations.all(i), b.fullDetails(i)] }
|
|
1607
1640
|
}, n);
|
|
1608
1641
|
}
|
|
1609
1642
|
//#endregion
|
|
1610
1643
|
//#region src/mutations/organization/check-slug-mutation.ts
|
|
1611
|
-
function
|
|
1644
|
+
function Ft(e) {
|
|
1612
1645
|
let t = y.checkSlug;
|
|
1613
1646
|
return s({
|
|
1614
1647
|
mutationKey: t,
|
|
@@ -1621,15 +1654,15 @@ function Ot(e) {
|
|
|
1621
1654
|
})
|
|
1622
1655
|
});
|
|
1623
1656
|
}
|
|
1624
|
-
function
|
|
1657
|
+
function It(e, t) {
|
|
1625
1658
|
return u({
|
|
1626
|
-
...
|
|
1659
|
+
...Ft(e),
|
|
1627
1660
|
...t
|
|
1628
1661
|
});
|
|
1629
1662
|
}
|
|
1630
1663
|
//#endregion
|
|
1631
1664
|
//#region src/mutations/organization/create-organization-mutation.ts
|
|
1632
|
-
function
|
|
1665
|
+
function Lt(e) {
|
|
1633
1666
|
let t = y.create;
|
|
1634
1667
|
return s({
|
|
1635
1668
|
mutationKey: t,
|
|
@@ -1642,10 +1675,10 @@ function At(e) {
|
|
|
1642
1675
|
})
|
|
1643
1676
|
});
|
|
1644
1677
|
}
|
|
1645
|
-
function
|
|
1646
|
-
let { data: r } =
|
|
1678
|
+
function Rt(e, t, n) {
|
|
1679
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1647
1680
|
return u({
|
|
1648
|
-
...
|
|
1681
|
+
...Lt(e),
|
|
1649
1682
|
...t,
|
|
1650
1683
|
meta: {
|
|
1651
1684
|
awaits: [b.lists(i)],
|
|
@@ -1655,7 +1688,7 @@ function jt(e, t, n) {
|
|
|
1655
1688
|
}
|
|
1656
1689
|
//#endregion
|
|
1657
1690
|
//#region src/mutations/organization/delete-organization-mutation.ts
|
|
1658
|
-
function
|
|
1691
|
+
function zt(e) {
|
|
1659
1692
|
let t = y.delete;
|
|
1660
1693
|
return s({
|
|
1661
1694
|
mutationKey: t,
|
|
@@ -1668,10 +1701,10 @@ function Mt(e) {
|
|
|
1668
1701
|
})
|
|
1669
1702
|
});
|
|
1670
1703
|
}
|
|
1671
|
-
function
|
|
1672
|
-
let { data: r } =
|
|
1704
|
+
function Bt(e, t, n) {
|
|
1705
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1673
1706
|
return u({
|
|
1674
|
-
...
|
|
1707
|
+
...zt(e),
|
|
1675
1708
|
...t,
|
|
1676
1709
|
meta: {
|
|
1677
1710
|
awaits: [b.lists(i)],
|
|
@@ -1694,9 +1727,9 @@ function z(e, t, n) {
|
|
|
1694
1727
|
})
|
|
1695
1728
|
});
|
|
1696
1729
|
}
|
|
1697
|
-
var
|
|
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));
|
|
1698
1731
|
function B(e, t = {}, n) {
|
|
1699
|
-
let { data: r } =
|
|
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, {
|
|
1700
1733
|
fetchOptions: c,
|
|
1701
1734
|
query: o ? { organizationSlug: o } : s
|
|
1702
1735
|
});
|
|
@@ -1721,9 +1754,9 @@ function V(e, t, n) {
|
|
|
1721
1754
|
})
|
|
1722
1755
|
});
|
|
1723
1756
|
}
|
|
1724
|
-
var
|
|
1725
|
-
function
|
|
1726
|
-
let { data: r } =
|
|
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, {
|
|
1727
1760
|
query: a,
|
|
1728
1761
|
fetchOptions: o
|
|
1729
1762
|
});
|
|
@@ -1749,9 +1782,9 @@ function H(e, t, n) {
|
|
|
1749
1782
|
})
|
|
1750
1783
|
});
|
|
1751
1784
|
}
|
|
1752
|
-
var
|
|
1753
|
-
function
|
|
1754
|
-
let { data: r } =
|
|
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, {
|
|
1755
1788
|
fetchOptions: a,
|
|
1756
1789
|
organizationId: f,
|
|
1757
1790
|
permissions: o
|
|
@@ -1777,9 +1810,9 @@ function U(e, t, n) {
|
|
|
1777
1810
|
})
|
|
1778
1811
|
});
|
|
1779
1812
|
}
|
|
1780
|
-
var
|
|
1781
|
-
function
|
|
1782
|
-
let { data: r } =
|
|
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, {
|
|
1783
1816
|
query: {
|
|
1784
1817
|
...a,
|
|
1785
1818
|
organizationId: u
|
|
@@ -1807,9 +1840,9 @@ function W(e, t, n) {
|
|
|
1807
1840
|
})
|
|
1808
1841
|
});
|
|
1809
1842
|
}
|
|
1810
|
-
var
|
|
1811
|
-
function
|
|
1812
|
-
let { data: r } =
|
|
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, {
|
|
1813
1846
|
query: {
|
|
1814
1847
|
...a,
|
|
1815
1848
|
organizationId: u
|
|
@@ -1837,9 +1870,9 @@ function G(e, t, n) {
|
|
|
1837
1870
|
})
|
|
1838
1871
|
});
|
|
1839
1872
|
}
|
|
1840
|
-
var
|
|
1841
|
-
function
|
|
1842
|
-
let { data: r } =
|
|
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, {
|
|
1843
1876
|
query: a,
|
|
1844
1877
|
fetchOptions: o
|
|
1845
1878
|
});
|
|
@@ -1864,9 +1897,9 @@ function K(e, t, n) {
|
|
|
1864
1897
|
})
|
|
1865
1898
|
});
|
|
1866
1899
|
}
|
|
1867
|
-
var
|
|
1868
|
-
function
|
|
1869
|
-
let { data: r } =
|
|
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, {
|
|
1870
1903
|
query: a,
|
|
1871
1904
|
fetchOptions: o
|
|
1872
1905
|
});
|
|
@@ -1878,7 +1911,7 @@ function sn(e, t = {}, n) {
|
|
|
1878
1911
|
}
|
|
1879
1912
|
//#endregion
|
|
1880
1913
|
//#region src/mutations/organization/invite-member-mutation.ts
|
|
1881
|
-
function
|
|
1914
|
+
function hn(e) {
|
|
1882
1915
|
let t = y.inviteMember;
|
|
1883
1916
|
return s({
|
|
1884
1917
|
mutationKey: t,
|
|
@@ -1891,10 +1924,10 @@ function cn(e) {
|
|
|
1891
1924
|
})
|
|
1892
1925
|
});
|
|
1893
1926
|
}
|
|
1894
|
-
function
|
|
1895
|
-
let { data: r } =
|
|
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);
|
|
1896
1929
|
return u({
|
|
1897
|
-
...
|
|
1930
|
+
...hn(e),
|
|
1898
1931
|
...t,
|
|
1899
1932
|
mutationFn: (t) => e.organization.inviteMember({
|
|
1900
1933
|
...t,
|
|
@@ -1909,7 +1942,7 @@ function ln(e, t, n) {
|
|
|
1909
1942
|
}
|
|
1910
1943
|
//#endregion
|
|
1911
1944
|
//#region src/mutations/organization/leave-organization-mutation.ts
|
|
1912
|
-
function
|
|
1945
|
+
function _n(e) {
|
|
1913
1946
|
let t = y.leave;
|
|
1914
1947
|
return s({
|
|
1915
1948
|
mutationKey: t,
|
|
@@ -1922,10 +1955,10 @@ function un(e) {
|
|
|
1922
1955
|
})
|
|
1923
1956
|
});
|
|
1924
1957
|
}
|
|
1925
|
-
function
|
|
1926
|
-
let { data: r } =
|
|
1958
|
+
function vn(e, t, n) {
|
|
1959
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1927
1960
|
return u({
|
|
1928
|
-
...
|
|
1961
|
+
..._n(e),
|
|
1929
1962
|
...t,
|
|
1930
1963
|
meta: {
|
|
1931
1964
|
awaits: [b.members.all(i), b.fullDetails(i)],
|
|
@@ -1935,7 +1968,7 @@ function dn(e, t, n) {
|
|
|
1935
1968
|
}
|
|
1936
1969
|
//#endregion
|
|
1937
1970
|
//#region src/mutations/organization/reject-invitation-mutation.ts
|
|
1938
|
-
function
|
|
1971
|
+
function yn(e) {
|
|
1939
1972
|
let t = y.rejectInvitation;
|
|
1940
1973
|
return s({
|
|
1941
1974
|
mutationKey: t,
|
|
@@ -1948,17 +1981,17 @@ function fn(e) {
|
|
|
1948
1981
|
})
|
|
1949
1982
|
});
|
|
1950
1983
|
}
|
|
1951
|
-
function
|
|
1952
|
-
let { data: r } =
|
|
1984
|
+
function bn(e, t, n) {
|
|
1985
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1953
1986
|
return u({
|
|
1954
|
-
...
|
|
1987
|
+
...yn(e),
|
|
1955
1988
|
...t,
|
|
1956
1989
|
meta: { awaits: [b.userInvitations.all(i)] }
|
|
1957
1990
|
}, n);
|
|
1958
1991
|
}
|
|
1959
1992
|
//#endregion
|
|
1960
1993
|
//#region src/mutations/organization/remove-member-mutation.ts
|
|
1961
|
-
function
|
|
1994
|
+
function xn(e) {
|
|
1962
1995
|
let t = y.removeMember;
|
|
1963
1996
|
return s({
|
|
1964
1997
|
mutationKey: t,
|
|
@@ -1971,10 +2004,10 @@ function mn(e) {
|
|
|
1971
2004
|
})
|
|
1972
2005
|
});
|
|
1973
2006
|
}
|
|
1974
|
-
function
|
|
1975
|
-
let { data: r } =
|
|
2007
|
+
function Sn(e, t, n) {
|
|
2008
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
1976
2009
|
return u({
|
|
1977
|
-
...
|
|
2010
|
+
...xn(e),
|
|
1978
2011
|
...t,
|
|
1979
2012
|
meta: {
|
|
1980
2013
|
awaits: [b.members.all(i), b.fullDetails(i)],
|
|
@@ -1984,7 +2017,7 @@ function hn(e, t, n) {
|
|
|
1984
2017
|
}
|
|
1985
2018
|
//#endregion
|
|
1986
2019
|
//#region src/mutations/organization/set-active-organization-mutation.ts
|
|
1987
|
-
function
|
|
2020
|
+
function Cn(e) {
|
|
1988
2021
|
let t = y.setActive;
|
|
1989
2022
|
return s({
|
|
1990
2023
|
mutationKey: t,
|
|
@@ -1997,10 +2030,10 @@ function gn(e) {
|
|
|
1997
2030
|
})
|
|
1998
2031
|
});
|
|
1999
2032
|
}
|
|
2000
|
-
function
|
|
2001
|
-
let { data: r } =
|
|
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);
|
|
2002
2035
|
return u({
|
|
2003
|
-
...
|
|
2036
|
+
...Cn(e),
|
|
2004
2037
|
...t,
|
|
2005
2038
|
onMutate: async (e, t) => {
|
|
2006
2039
|
await t.client.cancelQueries({ queryKey: b.activeOrganizations(i) });
|
|
@@ -2019,7 +2052,7 @@ function _n(e, t, n) {
|
|
|
2019
2052
|
}
|
|
2020
2053
|
//#endregion
|
|
2021
2054
|
//#region src/mutations/organization/update-member-role-mutation.ts
|
|
2022
|
-
function
|
|
2055
|
+
function Tn(e) {
|
|
2023
2056
|
let t = y.updateMemberRole;
|
|
2024
2057
|
return s({
|
|
2025
2058
|
mutationKey: t,
|
|
@@ -2032,10 +2065,10 @@ function vn(e) {
|
|
|
2032
2065
|
})
|
|
2033
2066
|
});
|
|
2034
2067
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let { data: r } =
|
|
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);
|
|
2037
2070
|
return u({
|
|
2038
|
-
...
|
|
2071
|
+
...Tn(e),
|
|
2039
2072
|
...t,
|
|
2040
2073
|
mutationFn: (t) => e.organization.updateMemberRole({
|
|
2041
2074
|
...t,
|
|
@@ -2053,7 +2086,7 @@ function yn(e, t, n) {
|
|
|
2053
2086
|
}
|
|
2054
2087
|
//#endregion
|
|
2055
2088
|
//#region src/mutations/organization/update-organization-mutation.ts
|
|
2056
|
-
function
|
|
2089
|
+
function Dn(e) {
|
|
2057
2090
|
let t = y.update;
|
|
2058
2091
|
return s({
|
|
2059
2092
|
mutationKey: t,
|
|
@@ -2066,10 +2099,10 @@ function bn(e) {
|
|
|
2066
2099
|
})
|
|
2067
2100
|
});
|
|
2068
2101
|
}
|
|
2069
|
-
function
|
|
2070
|
-
let { data: r } =
|
|
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);
|
|
2071
2104
|
return u({
|
|
2072
|
-
...
|
|
2105
|
+
...Dn(e),
|
|
2073
2106
|
...t,
|
|
2074
2107
|
mutationFn: (t) => e.organization.update({
|
|
2075
2108
|
...t,
|
|
@@ -2088,7 +2121,7 @@ function xn(e, t, n) {
|
|
|
2088
2121
|
}
|
|
2089
2122
|
//#endregion
|
|
2090
2123
|
//#region src/mutations/passkey/add-passkey-mutation.ts
|
|
2091
|
-
function
|
|
2124
|
+
function kn(e) {
|
|
2092
2125
|
let t = x.addPasskey;
|
|
2093
2126
|
return s({
|
|
2094
2127
|
mutationKey: t,
|
|
@@ -2101,17 +2134,17 @@ function Sn(e) {
|
|
|
2101
2134
|
})
|
|
2102
2135
|
});
|
|
2103
2136
|
}
|
|
2104
|
-
function
|
|
2105
|
-
let { data: r } =
|
|
2137
|
+
function An(e, t, n) {
|
|
2138
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
2106
2139
|
return u({
|
|
2107
|
-
...
|
|
2140
|
+
...kn(e),
|
|
2108
2141
|
...t,
|
|
2109
2142
|
meta: { awaits: [S.lists(i)] }
|
|
2110
2143
|
}, n);
|
|
2111
2144
|
}
|
|
2112
2145
|
//#endregion
|
|
2113
2146
|
//#region src/mutations/passkey/delete-passkey-mutation.ts
|
|
2114
|
-
function
|
|
2147
|
+
function jn(e) {
|
|
2115
2148
|
let t = x.deletePasskey;
|
|
2116
2149
|
return s({
|
|
2117
2150
|
mutationKey: t,
|
|
@@ -2124,17 +2157,17 @@ function wn(e) {
|
|
|
2124
2157
|
})
|
|
2125
2158
|
});
|
|
2126
2159
|
}
|
|
2127
|
-
function
|
|
2128
|
-
let { data: r } =
|
|
2160
|
+
function Mn(e, t, n) {
|
|
2161
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
2129
2162
|
return u({
|
|
2130
|
-
...
|
|
2163
|
+
...jn(e),
|
|
2131
2164
|
...t,
|
|
2132
2165
|
meta: { awaits: [S.lists(i)] }
|
|
2133
2166
|
}, n);
|
|
2134
2167
|
}
|
|
2135
2168
|
//#endregion
|
|
2136
2169
|
//#region src/mutations/passkey/sign-in-passkey-mutation.ts
|
|
2137
|
-
function
|
|
2170
|
+
function Nn(e) {
|
|
2138
2171
|
let t = x.signIn;
|
|
2139
2172
|
return s({
|
|
2140
2173
|
mutationKey: t,
|
|
@@ -2147,16 +2180,16 @@ function En(e) {
|
|
|
2147
2180
|
})
|
|
2148
2181
|
});
|
|
2149
2182
|
}
|
|
2150
|
-
function
|
|
2183
|
+
function Pn(e, t, n) {
|
|
2151
2184
|
return u({
|
|
2152
|
-
...
|
|
2185
|
+
...Nn(e),
|
|
2153
2186
|
...t,
|
|
2154
2187
|
meta: { awaits: [o.session] }
|
|
2155
2188
|
}, n);
|
|
2156
2189
|
}
|
|
2157
2190
|
//#endregion
|
|
2158
2191
|
//#region src/mutations/settings/change-email-mutation.ts
|
|
2159
|
-
function
|
|
2192
|
+
function Fn(e) {
|
|
2160
2193
|
let t = a.changeEmail;
|
|
2161
2194
|
return s({
|
|
2162
2195
|
mutationKey: t,
|
|
@@ -2169,16 +2202,16 @@ function On(e) {
|
|
|
2169
2202
|
})
|
|
2170
2203
|
});
|
|
2171
2204
|
}
|
|
2172
|
-
function
|
|
2205
|
+
function In(e, t, n) {
|
|
2173
2206
|
return u({
|
|
2174
|
-
...
|
|
2207
|
+
...Fn(e),
|
|
2175
2208
|
...t,
|
|
2176
2209
|
meta: { awaits: [o.session] }
|
|
2177
2210
|
}, n);
|
|
2178
2211
|
}
|
|
2179
2212
|
//#endregion
|
|
2180
2213
|
//#region src/mutations/settings/change-password-mutation.ts
|
|
2181
|
-
function
|
|
2214
|
+
function Ln(e) {
|
|
2182
2215
|
let t = a.changePassword;
|
|
2183
2216
|
return s({
|
|
2184
2217
|
mutationKey: t,
|
|
@@ -2191,16 +2224,16 @@ function An(e) {
|
|
|
2191
2224
|
})
|
|
2192
2225
|
});
|
|
2193
2226
|
}
|
|
2194
|
-
function
|
|
2227
|
+
function Rn(e, t) {
|
|
2195
2228
|
return u({
|
|
2196
|
-
...
|
|
2229
|
+
...Ln(e),
|
|
2197
2230
|
...t
|
|
2198
2231
|
});
|
|
2199
2232
|
}
|
|
2200
2233
|
//#endregion
|
|
2201
2234
|
//#region src/mutations/settings/delete-user-mutation.ts
|
|
2202
|
-
function
|
|
2203
|
-
let t =
|
|
2235
|
+
function zn(e) {
|
|
2236
|
+
let t = ae.deleteUser;
|
|
2204
2237
|
return s({
|
|
2205
2238
|
mutationKey: t,
|
|
2206
2239
|
mutationFn: (t) => e.deleteUser({
|
|
@@ -2212,15 +2245,15 @@ function Mn(e) {
|
|
|
2212
2245
|
})
|
|
2213
2246
|
});
|
|
2214
2247
|
}
|
|
2215
|
-
function
|
|
2248
|
+
function Bn(e, t) {
|
|
2216
2249
|
return u({
|
|
2217
|
-
...
|
|
2250
|
+
...zn(e),
|
|
2218
2251
|
...t
|
|
2219
2252
|
});
|
|
2220
2253
|
}
|
|
2221
2254
|
//#endregion
|
|
2222
2255
|
//#region src/mutations/settings/link-social-mutation.ts
|
|
2223
|
-
function
|
|
2256
|
+
function Vn(e) {
|
|
2224
2257
|
let t = a.linkSocial;
|
|
2225
2258
|
return s({
|
|
2226
2259
|
mutationKey: t,
|
|
@@ -2233,15 +2266,15 @@ function Pn(e) {
|
|
|
2233
2266
|
})
|
|
2234
2267
|
});
|
|
2235
2268
|
}
|
|
2236
|
-
function
|
|
2269
|
+
function Hn(e, t) {
|
|
2237
2270
|
return u({
|
|
2238
|
-
...
|
|
2271
|
+
...Vn(e),
|
|
2239
2272
|
...t
|
|
2240
2273
|
});
|
|
2241
2274
|
}
|
|
2242
2275
|
//#endregion
|
|
2243
2276
|
//#region src/mutations/settings/revoke-session-mutation.ts
|
|
2244
|
-
function
|
|
2277
|
+
function Un(e) {
|
|
2245
2278
|
let t = a.revokeSession;
|
|
2246
2279
|
return s({
|
|
2247
2280
|
mutationKey: t,
|
|
@@ -2254,17 +2287,17 @@ function In(e) {
|
|
|
2254
2287
|
})
|
|
2255
2288
|
});
|
|
2256
2289
|
}
|
|
2257
|
-
function
|
|
2258
|
-
let { data: r } =
|
|
2290
|
+
function Wn(e, t, n) {
|
|
2291
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
2259
2292
|
return u({
|
|
2260
|
-
...
|
|
2293
|
+
...Un(e),
|
|
2261
2294
|
...t,
|
|
2262
2295
|
meta: { awaits: [o.listSessions(i)] }
|
|
2263
2296
|
}, n);
|
|
2264
2297
|
}
|
|
2265
2298
|
//#endregion
|
|
2266
2299
|
//#region src/mutations/settings/unlink-account-mutation.ts
|
|
2267
|
-
function
|
|
2300
|
+
function Gn(e) {
|
|
2268
2301
|
let t = a.unlinkAccount;
|
|
2269
2302
|
return s({
|
|
2270
2303
|
mutationKey: t,
|
|
@@ -2277,17 +2310,17 @@ function q(e) {
|
|
|
2277
2310
|
})
|
|
2278
2311
|
});
|
|
2279
2312
|
}
|
|
2280
|
-
function
|
|
2281
|
-
let { data: r } =
|
|
2313
|
+
function Kn(e, t, n) {
|
|
2314
|
+
let { data: r } = I(e, void 0, n), i = r?.user.id;
|
|
2282
2315
|
return u({
|
|
2283
|
-
...
|
|
2316
|
+
...Gn(e),
|
|
2284
2317
|
...t,
|
|
2285
2318
|
meta: { awaits: [o.listAccounts(i)] }
|
|
2286
2319
|
}, n);
|
|
2287
2320
|
}
|
|
2288
2321
|
//#endregion
|
|
2289
2322
|
//#region src/mutations/settings/update-user-mutation.ts
|
|
2290
|
-
function
|
|
2323
|
+
function qn(e) {
|
|
2291
2324
|
let t = a.updateUser;
|
|
2292
2325
|
return s({
|
|
2293
2326
|
mutationKey: t,
|
|
@@ -2300,17 +2333,17 @@ function zn(e) {
|
|
|
2300
2333
|
})
|
|
2301
2334
|
});
|
|
2302
2335
|
}
|
|
2303
|
-
function
|
|
2336
|
+
function Jn(e, t, n) {
|
|
2304
2337
|
return u({
|
|
2305
|
-
...
|
|
2338
|
+
...qn(e),
|
|
2306
2339
|
...t,
|
|
2307
2340
|
meta: { awaits: [o.session] }
|
|
2308
2341
|
}, n);
|
|
2309
2342
|
}
|
|
2310
2343
|
//#endregion
|
|
2311
2344
|
//#region src/mutations/username/is-username-available-mutation.ts
|
|
2312
|
-
function
|
|
2313
|
-
let t =
|
|
2345
|
+
function Yn(e) {
|
|
2346
|
+
let t = pe.isUsernameAvailable;
|
|
2314
2347
|
return s({
|
|
2315
2348
|
mutationKey: t,
|
|
2316
2349
|
mutationFn: (t) => e.isUsernameAvailable({
|
|
@@ -2322,16 +2355,16 @@ function Vn(e) {
|
|
|
2322
2355
|
})
|
|
2323
2356
|
});
|
|
2324
2357
|
}
|
|
2325
|
-
function
|
|
2358
|
+
function Xn(e, t) {
|
|
2326
2359
|
return u({
|
|
2327
|
-
...
|
|
2360
|
+
...Yn(e),
|
|
2328
2361
|
...t
|
|
2329
2362
|
});
|
|
2330
2363
|
}
|
|
2331
2364
|
//#endregion
|
|
2332
2365
|
//#region src/mutations/username/sign-in-username-mutation.ts
|
|
2333
|
-
function
|
|
2334
|
-
let t =
|
|
2366
|
+
function Zn(e) {
|
|
2367
|
+
let t = pe.signIn;
|
|
2335
2368
|
return s({
|
|
2336
2369
|
mutationKey: t,
|
|
2337
2370
|
mutationFn: (t) => e.signIn.username({
|
|
@@ -2343,16 +2376,16 @@ function Un(e) {
|
|
|
2343
2376
|
})
|
|
2344
2377
|
});
|
|
2345
2378
|
}
|
|
2346
|
-
function
|
|
2379
|
+
function Qn(e, t, n) {
|
|
2347
2380
|
return u({
|
|
2348
|
-
...
|
|
2381
|
+
...Zn(e),
|
|
2349
2382
|
...t,
|
|
2350
2383
|
meta: { awaits: [o.session] }
|
|
2351
2384
|
}, n);
|
|
2352
2385
|
}
|
|
2353
2386
|
//#endregion
|
|
2354
2387
|
//#region src/queries/api-key/list-api-keys-query.ts
|
|
2355
|
-
function
|
|
2388
|
+
function q(e, t, n) {
|
|
2356
2389
|
return c({
|
|
2357
2390
|
queryKey: g.list(t, n?.query),
|
|
2358
2391
|
queryFn: ({ signal: t }) => e.apiKey.list({
|
|
@@ -2365,9 +2398,9 @@ function J(e, t, n) {
|
|
|
2365
2398
|
})
|
|
2366
2399
|
});
|
|
2367
2400
|
}
|
|
2368
|
-
var
|
|
2369
|
-
function
|
|
2370
|
-
let { data: r } =
|
|
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, {
|
|
2371
2404
|
query: a,
|
|
2372
2405
|
fetchOptions: o
|
|
2373
2406
|
});
|
|
@@ -2379,7 +2412,7 @@ function Jn(e, t = {}, n) {
|
|
|
2379
2412
|
}
|
|
2380
2413
|
//#endregion
|
|
2381
2414
|
//#region src/queries/multi-session/list-device-sessions-query.ts
|
|
2382
|
-
function
|
|
2415
|
+
function J(e, t, n) {
|
|
2383
2416
|
return c({
|
|
2384
2417
|
queryKey: v.list(t, n?.query),
|
|
2385
2418
|
queryFn: ({ signal: t }) => e.multiSession.listDeviceSessions({
|
|
@@ -2392,9 +2425,9 @@ function Y(e, t, n) {
|
|
|
2392
2425
|
})
|
|
2393
2426
|
});
|
|
2394
2427
|
}
|
|
2395
|
-
var
|
|
2396
|
-
function
|
|
2397
|
-
let { data: r } =
|
|
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, {
|
|
2398
2431
|
query: a,
|
|
2399
2432
|
fetchOptions: o
|
|
2400
2433
|
});
|
|
@@ -2405,6 +2438,31 @@ function Qn(e, t = {}, n) {
|
|
|
2405
2438
|
}, n);
|
|
2406
2439
|
}
|
|
2407
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
|
|
2408
2466
|
//#region src/queries/passkey/list-passkeys-query.ts
|
|
2409
2467
|
function X(e, t, n) {
|
|
2410
2468
|
return c({
|
|
@@ -2419,9 +2477,9 @@ function X(e, t, n) {
|
|
|
2419
2477
|
})
|
|
2420
2478
|
});
|
|
2421
2479
|
}
|
|
2422
|
-
var
|
|
2423
|
-
function
|
|
2424
|
-
let { data: r } =
|
|
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, {
|
|
2425
2483
|
query: a,
|
|
2426
2484
|
fetchOptions: o
|
|
2427
2485
|
});
|
|
@@ -2446,9 +2504,9 @@ function Z(e, t, n) {
|
|
|
2446
2504
|
})
|
|
2447
2505
|
});
|
|
2448
2506
|
}
|
|
2449
|
-
var
|
|
2450
|
-
function
|
|
2451
|
-
let { data: r } =
|
|
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, {
|
|
2452
2510
|
query: a,
|
|
2453
2511
|
fetchOptions: o
|
|
2454
2512
|
}), u = !!(i && a?.accountId);
|
|
@@ -2473,9 +2531,9 @@ function Q(e, t, n) {
|
|
|
2473
2531
|
})
|
|
2474
2532
|
});
|
|
2475
2533
|
}
|
|
2476
|
-
var
|
|
2477
|
-
function
|
|
2478
|
-
let { data: r } =
|
|
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, {
|
|
2479
2537
|
query: a,
|
|
2480
2538
|
fetchOptions: o
|
|
2481
2539
|
});
|
|
@@ -2500,9 +2558,9 @@ function $(e, t, n) {
|
|
|
2500
2558
|
})
|
|
2501
2559
|
});
|
|
2502
2560
|
}
|
|
2503
|
-
var
|
|
2504
|
-
function
|
|
2505
|
-
let { data: r } =
|
|
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, {
|
|
2506
2564
|
query: a,
|
|
2507
2565
|
fetchOptions: o
|
|
2508
2566
|
});
|
|
@@ -2513,4 +2571,4 @@ function mr(e, t = {}, n) {
|
|
|
2513
2571
|
}, n);
|
|
2514
2572
|
}
|
|
2515
2573
|
//#endregion
|
|
2516
|
-
export {
|
|
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 };
|