@huyooo/ui 0.7.20 → 0.7.26

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 (64) hide show
  1. package/dist/{AuthkitAuthModal-DxxZlUbh.js → AuthkitAuthModal-C1Kgu1TA.js} +670 -685
  2. package/dist/{AuthkitSignInPhone-BfqNvheZ.js → AuthkitSignInPhone-BG7r63dN.js} +224 -232
  3. package/dist/{Clipboard-C_4QFg2W.js → Clipboard-8rWlOPTZ.js} +2 -2
  4. package/dist/{Contact-DJtDuS50.js → Contact-Bpl7sIjY.js} +2 -2
  5. package/dist/{FeedbackItem-CI-w_fOt.js → FeedbackItem-DMpvHrOD.js} +3 -3
  6. package/dist/{FeedbackModal-3k-cMuoY.js → FeedbackModal-DIhSPUPO.js} +329 -342
  7. package/dist/{MessageHandle-Pxxvhs-7.js → MessageHandle-WA95I84_.js} +212 -236
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BVvzvLUA.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BRficqbp.js} +26 -28
  9. package/dist/{MessageNotifications-FkiOW4qU.js → MessageNotifications-DmgFNjH7.js} +1 -1
  10. package/dist/{PaySubscriptions-BHTKDYFN.js → PaySubscriptions-F5sNex0h.js} +50 -74
  11. package/dist/{ReferrerReferees-9wk0_tGC.js → ReferrerReferees-DMA8Tj5i.js} +30 -32
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-RZzfS9p1.js → Upload.vue_vue_type_script_setup_true_lang-D7ZGc2ZS.js} +1 -1
  13. package/dist/{UserAccountMenu-CKGTR8GB.js → UserAccountMenu-CkUtqNxY.js} +7 -7
  14. package/dist/{WidthContainer-BC30d-AV.js → WidthContainer-DSQui1pX.js} +7 -7
  15. package/dist/api/Authkit/Users.d.ts +7 -7
  16. package/dist/api/Authkit/apps.d.ts +2 -2
  17. package/dist/api/Authkit/auth.d.ts +10 -10
  18. package/dist/api/Authkit/oauth.d.ts +3 -3
  19. package/dist/api/Authkit/verify.d.ts +18 -5
  20. package/dist/api/Buckets/Files.d.ts +7 -7
  21. package/dist/api/Buckets.d.ts +2 -2
  22. package/dist/api/Invoices.d.ts +6 -6
  23. package/dist/api/Message/ChangelogNotifications.d.ts +2 -31
  24. package/dist/api/Message/EventNotifications.d.ts +2 -35
  25. package/dist/api/Message/MessageNotifications.d.ts +5 -35
  26. package/dist/api/Message/NoticeNotifications.d.ts +5 -42
  27. package/dist/api/Messages.d.ts +2 -2
  28. package/dist/api/Orders.d.ts +9 -9
  29. package/dist/api/Products.d.ts +6 -6
  30. package/dist/api/Quotas.d.ts +6 -6
  31. package/dist/api/Referrer.d.ts +1 -1
  32. package/dist/api/Subscriptions.d.ts +7 -7
  33. package/dist/api/index.d.ts +8 -8
  34. package/dist/authkit.js +6 -6
  35. package/dist/common/globalConfig.d.ts +2 -2
  36. package/dist/common.js +1 -1
  37. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
  38. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -3
  39. package/dist/composables/useMessageNotifications.d.ts +3 -3
  40. package/dist/composables.js +9 -9
  41. package/dist/feedback.js +3 -3
  42. package/dist/index.js +24 -24
  43. package/dist/main.d.ts +1 -0
  44. package/dist/message.js +3 -3
  45. package/dist/pay.js +1 -1
  46. package/dist/privateCom.js +1 -1
  47. package/dist/referrer.js +1 -1
  48. package/dist/request-B4CMspsP.js +196 -0
  49. package/dist/style.css +1 -1
  50. package/dist/upload.js +2 -2
  51. package/dist/{useAuthkitAppsAuthPageInfo-AFq46sfo.js → useAuthkitAppsAuthPageInfo-CtsTqri7.js} +17 -19
  52. package/dist/{useAuthkitCreateAndUpdate-BZXteclG.js → useAuthkitCreateAndUpdate-BUyZbiBj.js} +1 -1
  53. package/dist/useAuthkitUsersProfile-B7wHZwe-.js +257 -0
  54. package/dist/{useDownloads-2DzDw0ic.js → useDownloads-Cl_-B4sP.js} +1 -1
  55. package/dist/useMessageNotifications-CP7gi893.js +78 -0
  56. package/dist/{useSEO-BmD-Tu3B.js → useSEO-C_4yDk7S.js} +2 -2
  57. package/dist/{useTableHandle-SmqaOxbN.js → useTableHandle-6ekhLVbK.js} +1 -1
  58. package/dist/{useUploadCos-8imaHXLO.js → useUploadCos-dYc8op7M.js} +10 -7
  59. package/dist/user.js +1 -1
  60. package/dist/utils/request.d.ts +25 -2
  61. package/package.json +1 -1
  62. package/dist/auth-CfexrvhT.js +0 -188
  63. package/dist/useAuthkitUsersProfile-B26kPQrp.js +0 -234
  64. package/dist/useMessageNotifications-DiF1CPlT.js +0 -84
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, ref as p, createElementBlock as l, createCommentVNode as v, openBlock as t, normalizeClass as K, createBlock as d, createElementVNode as _, unref as S, toDisplayString as A, Fragment as h, renderList as N } from "vue";
2
2
  import { Icon as D } from "@iconify/vue";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { D as $, n as x } from "./MessageHandle-Pxxvhs-7.js";
4
+ import { D as $, n as x } from "./MessageHandle-WA95I84_.js";
5
5
  const F = /* @__PURE__ */ m({
6
6
  __name: "MessageMenuItem",
7
7
  props: {
@@ -27,21 +27,21 @@ const F = /* @__PURE__ */ m({
27
27
  }
28
28
  },
29
29
  setup(u) {
30
- const n = u, o = p(!1);
30
+ const n = u, a = p(!1);
31
31
  function s() {
32
- o.value = !0;
32
+ a.value = !0;
33
33
  }
34
- function r() {
35
- o.value = !1;
34
+ function i() {
35
+ a.value = !1;
36
36
  }
37
- return (i, a) => n.hidden ? v("", !0) : (t(), l("div", {
37
+ return (r, o) => n.hidden ? v("", !0) : (t(), l("div", {
38
38
  key: 0,
39
39
  class: K(["List", {
40
40
  Active: n.active,
41
- Hover: o.value && !n.active
41
+ Hover: a.value && !n.active
42
42
  }]),
43
43
  onMouseover: s,
44
- onMouseout: r
44
+ onMouseout: i
45
45
  }, [n.icon ? (t(), d(S(D), {
46
46
  key: 0,
47
47
  class: "icon",
@@ -72,11 +72,11 @@ const F = /* @__PURE__ */ m({
72
72
  setup(u, {
73
73
  emit: n
74
74
  }) {
75
- const o = u, s = n;
76
- function r(i, a) {
77
- console.log(i, "itemitemitemitem"), s("change", i, a);
75
+ const a = u, s = n;
76
+ function i(r, o) {
77
+ console.log(r, "itemitemitemitem"), s("change", r, o);
78
78
  }
79
- return (i, a) => (t(), l("div", E, [(t(!0), l(h, null, N(o.menus, (e, f) => {
79
+ return (r, o) => (t(), l("div", E, [(t(!0), l(h, null, N(a.menus, (e, f) => {
80
80
  var y, g, k;
81
81
  return t(), l("div", {
82
82
  key: f
@@ -94,8 +94,8 @@ const F = /* @__PURE__ */ m({
94
94
  path: c.path,
95
95
  icon: (C = c.meta) == null ? void 0 : C.icon,
96
96
  name: c.name,
97
- active: o.selectedKeys.includes(c.path),
98
- onClick: (V) => r(c, M)
97
+ active: a.selectedKeys.includes(c.path),
98
+ onClick: (V) => i(c, M)
99
99
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
100
100
  }), 128))])], 64)) : (t(), d(B, {
101
101
  key: 1,
@@ -103,8 +103,8 @@ const F = /* @__PURE__ */ m({
103
103
  path: e.path,
104
104
  icon: (k = e.meta) == null ? void 0 : k.icon,
105
105
  name: e.name,
106
- active: o.selectedKeys.includes(e.path),
107
- onClick: (c) => r(e, f)
106
+ active: a.selectedKeys.includes(e.path),
107
+ onClick: (c) => i(e, f)
108
108
  }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
109
109
  }), 128))]));
110
110
  }
@@ -117,20 +117,18 @@ const F = /* @__PURE__ */ m({
117
117
  }
118
118
  },
119
119
  setup(u) {
120
- const n = p(!1), o = p(null), s = p(""), r = u;
121
- function i() {
122
- n.value = !0, x({
123
- id: r.id
124
- }).then(({
125
- data: a
126
- }) => {
127
- o.value = a.content, s.value = a.title, n.value = !1;
128
- }).catch((a) => {
129
- console.error("获取通知详情失败:", a), n.value = !1;
120
+ const n = p(!1), a = p(null), s = p(""), i = u;
121
+ async function r() {
122
+ n.value = !0;
123
+ const {
124
+ data: o
125
+ } = await x({
126
+ id: i.id
130
127
  });
128
+ n.value = !1, o && (a.value = o.content, s.value = o.title);
131
129
  }
132
- return i(), (a, e) => (t(), d($, {
133
- content: o.value,
130
+ return r(), (o, e) => (t(), d($, {
131
+ content: a.value,
134
132
  title: s.value,
135
133
  loading: n.value
136
134
  }, null, 8, ["content", "title", "loading"]));
@@ -1,4 +1,4 @@
1
- import { c as s, g as o } from "./auth-CfexrvhT.js";
1
+ import { c as s, g as o } from "./request-B4CMspsP.js";
2
2
  function i(e) {
3
3
  return s({
4
4
  url: `${o.onesPrefixUrl}/messageCenter/messageNotifications/own`,
@@ -7,8 +7,8 @@
7
7
  /* empty css */
8
8
  import { defineComponent as nt, ref as d, createBlock as I, openBlock as r, unref as o, isRef as it, withCtx as s, createElementVNode as n, createElementBlock as c, createVNode as u, toDisplayString as l, createTextVNode as p, createCommentVNode as $, Fragment as st, renderList as ot } from "vue";
9
9
  import { Modal as lt, Tag as w, Button as A, Popconfirm as rt, Empty as q, Tabs as ut, TabPane as z, Spin as ct, Progress as dt } from "@arco-design/web-vue";
10
- import { c as f, g as b } from "./auth-CfexrvhT.js";
11
- import { u as pt } from "./useAuthkitCreateAndUpdate-BZXteclG.js";
10
+ import { c as f, g as b } from "./request-B4CMspsP.js";
11
+ import { u as pt } from "./useAuthkitCreateAndUpdate-BUyZbiBj.js";
12
12
  import { C as B } from "./CustomTable-BCOwLyRJ.js";
13
13
  import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  function vt(m) {
@@ -38,14 +38,14 @@ function bt() {
38
38
  method: "post"
39
39
  });
40
40
  }
41
- function yt(m) {
41
+ function _t(m) {
42
42
  return f({
43
43
  url: `${b.billingPrefixUrl}/invoices/my`,
44
44
  method: "post",
45
45
  data: m || {}
46
46
  });
47
47
  }
48
- function _t() {
48
+ function yt() {
49
49
  return f({
50
50
  url: `${b.billingPrefixUrl}/quotas/my`,
51
51
  method: "post"
@@ -115,7 +115,7 @@ const ht = {
115
115
  }) {
116
116
  const N = M, {
117
117
  changeType: V,
118
- show: y
118
+ show: _
119
119
  } = pt(N), W = d("subscriptions"), i = d(null), E = d([]), x = d(!1), v = d({
120
120
  current: 1,
121
121
  pageSize: 10,
@@ -231,92 +231,68 @@ const ht = {
231
231
  }[t] || t;
232
232
  }
233
233
  function j() {
234
- y.value = !1, N("cancel");
234
+ _.value = !1, N("cancel");
235
235
  }
236
236
  function G() {
237
237
  window.open("/Pricing", "_blank");
238
238
  }
239
239
  async function S() {
240
- try {
241
- const {
242
- data: t
243
- } = await bt();
244
- i.value = t;
245
- } catch (t) {
246
- console.error("加载当前订阅失败", t);
247
- }
240
+ const {
241
+ data: t
242
+ } = await bt();
243
+ i.value = t;
248
244
  }
249
- async function _() {
245
+ async function y() {
250
246
  x.value = !0;
251
- try {
252
- const {
253
- data: t
254
- } = await ft({
255
- current: v.value.current,
256
- pageSize: v.value.pageSize
257
- });
258
- E.value = t.items, v.value.total = t.count;
259
- } catch (t) {
260
- console.error("加载订阅列表失败", t);
261
- } finally {
262
- x.value = !1;
263
- }
247
+ const {
248
+ data: t
249
+ } = await ft({
250
+ current: v.value.current,
251
+ pageSize: v.value.pageSize
252
+ });
253
+ x.value = !1, t && (E.value = t.items, v.value.total = t.count);
264
254
  }
265
255
  async function C() {
266
256
  k.value = !0;
267
- try {
268
- const {
269
- data: t
270
- } = await yt({
271
- current: g.value.current,
272
- pageSize: g.value.pageSize
273
- });
274
- U.value = t.items, g.value.total = t.count;
275
- } catch (t) {
276
- console.error("加载发票列表失败", t);
277
- } finally {
278
- k.value = !1;
279
- }
257
+ const {
258
+ data: t
259
+ } = await _t({
260
+ current: g.value.current,
261
+ pageSize: g.value.pageSize
262
+ });
263
+ k.value = !1, t && (U.value = t.items, g.value.total = t.count);
280
264
  }
281
265
  async function H() {
282
266
  P.value = !0;
283
- try {
284
- const {
285
- data: t
286
- } = await _t();
287
- t.hasSubscription ? h.value = t.quotas : h.value = [];
288
- } catch (t) {
289
- console.error("加载配额失败", t);
290
- } finally {
291
- P.value = !1;
292
- }
267
+ const {
268
+ data: t
269
+ } = await yt();
270
+ P.value = !1, t && t.hasSubscription ? h.value = t.quotas : h.value = [];
293
271
  }
294
272
  async function J() {
295
- if (i.value)
296
- try {
297
- await vt({
298
- subscriptionId: i.value.id,
299
- cancelAtPeriodEnd: !0
300
- }), await S(), await _();
301
- } catch (t) {
302
- console.error("取消订阅失败", t);
303
- }
273
+ if (!i.value) return;
274
+ const {
275
+ error: t
276
+ } = await vt({
277
+ subscriptionId: i.value.id,
278
+ cancelAtPeriodEnd: !0
279
+ });
280
+ t || (await S(), await y());
304
281
  }
305
282
  async function X() {
306
- if (i.value)
307
- try {
308
- await gt({
309
- subscriptionId: i.value.id
310
- }), await S(), await _();
311
- } catch (t) {
312
- console.error("恢复订阅失败", t);
313
- }
283
+ if (!i.value) return;
284
+ const {
285
+ error: t
286
+ } = await gt({
287
+ subscriptionId: i.value.id
288
+ });
289
+ t || (await S(), await y());
314
290
  }
315
291
  function Y(t) {
316
- v.value.current = t, _();
292
+ v.value.current = t, y();
317
293
  }
318
294
  function Z(t) {
319
- v.value.pageSize = t, v.value.current = 1, _();
295
+ v.value.pageSize = t, v.value.current = 1, y();
320
296
  }
321
297
  function tt(t) {
322
298
  g.value.current = t, C();
@@ -325,13 +301,13 @@ const ht = {
325
301
  g.value.pageSize = t, g.value.current = 1, C();
326
302
  }
327
303
  function at(t, e) {
328
- y.value = e, V.value = "编辑", e && (S(), _(), C(), H());
304
+ _.value = e, V.value = "编辑", e && (S(), y(), C(), H());
329
305
  }
330
306
  return F({
331
307
  setData: at
332
308
  }), (t, e) => (r(), I(o(lt), {
333
- visible: o(y),
334
- "onUpdate:visible": e[1] || (e[1] = (a) => it(y) ? y.value = a : null),
309
+ visible: o(_),
310
+ "onUpdate:visible": e[1] || (e[1] = (a) => it(_) ? _.value = a : null),
335
311
  loading: !1,
336
312
  "body-class": "SubscriptionsbodyClass",
337
313
  "mask-closable": !1,
@@ -468,7 +444,7 @@ const ht = {
468
444
  _: 1
469
445
  }, 8, ["visible"]));
470
446
  }
471
- }), ne = /* @__PURE__ */ mt(Dt, [["__scopeId", "data-v-03aac4e6"]]);
447
+ }), ne = /* @__PURE__ */ mt(Dt, [["__scopeId", "data-v-33e045de"]]);
472
448
  export {
473
449
  ne as S
474
450
  };
@@ -1,17 +1,17 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as z, ref as p, createBlock as v, openBlock as g, unref as a, withCtx as _, createElementVNode as n, createVNode as A, createCommentVNode as V, toDisplayString as C, createTextVNode as w } from "vue";
5
- import { Modal as T } from "@arco-design/web-vue";
6
- import { c as U, g as y } from "./auth-CfexrvhT.js";
7
- import { u as B } from "./useTableHandle-SmqaOxbN.js";
4
+ import { defineComponent as z, ref as p, createBlock as v, openBlock as g, unref as t, withCtx as _, createElementVNode as n, createVNode as w, createCommentVNode as A, toDisplayString as C, createTextVNode as V } from "vue";
5
+ import { Modal as y } from "@arco-design/web-vue";
6
+ import { c as T, g as U } from "./request-B4CMspsP.js";
7
+ import { u as B } from "./useTableHandle-6ekhLVbK.js";
8
8
  import { C as D } from "./CustomTable-BCOwLyRJ.js";
9
- import { C as E } from "./Clipboard-C_4QFg2W.js";
10
- import { a as H } from "./useAuthkitUsersProfile-B26kPQrp.js";
9
+ import { C as E } from "./Clipboard-8rWlOPTZ.js";
10
+ import { a as H } from "./useAuthkitUsersProfile-B7wHZwe-.js";
11
11
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  function $(c) {
13
- return U({
14
- url: `${y.authPrefixUrl}/referrer/referees`,
13
+ return T({
14
+ url: `${U.authPrefixUrl}/referrer/referees`,
15
15
  method: "post",
16
16
  data: c
17
17
  });
@@ -28,7 +28,7 @@ const j = {
28
28
  emit: b
29
29
  }) {
30
30
  const x = b, {
31
- pagination: t,
31
+ pagination: a,
32
32
  dataSource: f,
33
33
  setPage: m
34
34
  } = B("被邀请人"), {
@@ -46,23 +46,21 @@ const j = {
46
46
  ellipsis: !0,
47
47
  tooltip: !0
48
48
  }], o = p(!1);
49
- function u() {
50
- o.value = !0, $({
51
- current: t.value.current,
52
- pageSize: t.value.pageSize
53
- }).then(({
49
+ async function u() {
50
+ o.value = !0;
51
+ const {
54
52
  data: e
55
- }) => {
56
- o.value = !1, f.value = e.items, t.value.total = e.count;
57
- }).catch(() => {
58
- o.value = !1;
53
+ } = await $({
54
+ current: a.value.current,
55
+ pageSize: a.value.pageSize
59
56
  });
57
+ o.value = !1, e && (f.value = e.items, a.value.total = e.count);
60
58
  }
61
59
  function I(e) {
62
- m(e, t.value.pageSize), u();
60
+ m(e, a.value.pageSize), u();
63
61
  }
64
62
  function P(e) {
65
- m(t.value.current, e), u();
63
+ m(a.value.current, e), u();
66
64
  }
67
65
  const r = p(!1);
68
66
  function S() {
@@ -73,9 +71,9 @@ const j = {
73
71
  }
74
72
  return h({
75
73
  setData: N
76
- }), (e, l) => (g(), v(a(T), {
74
+ }), (e, i) => (g(), v(t(y), {
77
75
  visible: r.value,
78
- "onUpdate:visible": l[0] || (l[0] = (i) => r.value = i),
76
+ "onUpdate:visible": i[0] || (i[0] = (l) => r.value = l),
79
77
  title: "被邀请人详情",
80
78
  width: "60%",
81
79
  "ok-loading": o.value,
@@ -85,31 +83,31 @@ const j = {
85
83
  onCancel: S
86
84
  }, {
87
85
  default: _(() => {
88
- var i, d;
89
- return [n("div", j, [l[1] || (l[1] = n("div", {
86
+ var l, d;
87
+ return [n("div", j, [i[1] || (i[1] = n("div", {
90
88
  class: "invite-code-label"
91
- }, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((i = a(s)) == null ? void 0 : i.referrerId) || "-"), 1), (d = a(s)) != null && d.referrerId ? (g(), v(E, {
89
+ }, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((l = t(s)) == null ? void 0 : l.referrerId) || "-"), 1), (d = t(s)) != null && d.referrerId ? (g(), v(E, {
92
90
  key: 0,
93
- value: a(s).referrerId,
91
+ value: t(s).referrerId,
94
92
  message: "邀请码复制成功"
95
- }, null, 8, ["value"])) : V("", !0)])]), A(D, {
93
+ }, null, 8, ["value"])) : A("", !0)])]), w(D, {
96
94
  columns: k,
97
- data: a(f),
95
+ data: t(f),
98
96
  loading: o.value,
99
- pagination: a(t),
97
+ pagination: t(a),
100
98
  onPageChange: I,
101
99
  onPageSizeChange: P
102
100
  }, {
103
101
  email: _(({
104
102
  record: R
105
- }) => [w(C(R.refereeInfo.email || "-"), 1)]),
103
+ }) => [V(C(R.refereeInfo.email || "-"), 1)]),
106
104
  _: 1
107
105
  }, 8, ["data", "loading", "pagination"])];
108
106
  }),
109
107
  _: 1
110
108
  }, 8, ["visible", "ok-loading"]));
111
109
  }
112
- }), te = /* @__PURE__ */ M(F, [["__scopeId", "data-v-122fc8d6"]]);
110
+ }), ae = /* @__PURE__ */ M(F, [["__scopeId", "data-v-50c96a24"]]);
113
111
  export {
114
- te as R
112
+ ae as R
115
113
  };
@@ -6,7 +6,7 @@
6
6
  /* empty css */
7
7
  import { defineComponent as g, createBlock as F, openBlock as h, unref as q, mergeProps as y, createSlots as I, withCtx as p, renderSlot as u } from "vue";
8
8
  import { Upload as S } from "@arco-design/web-vue";
9
- import { u as _ } from "./useUploadCos-8imaHXLO.js";
9
+ import { u as _ } from "./useUploadCos-dYc8op7M.js";
10
10
  const N = /* @__PURE__ */ g({
11
11
  __name: "Upload",
12
12
  props: {
@@ -1,15 +1,15 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { c as De, A as Ve } from "./AuthkitAuthModal-DxxZlUbh.js";
4
+ import { c as De, A as Ve } from "./AuthkitAuthModal-C1Kgu1TA.js";
5
5
  import { defineComponent as C, createElementBlock as g, openBlock as s, normalizeStyle as ie, normalizeClass as se, createElementVNode as p, computed as P, createBlock as d, createCommentVNode as m, createVNode as c, unref as o, withCtx as l, createTextVNode as y, toDisplayString as S, mergeModels as D, useModel as re, renderSlot as ae, ref as f, Fragment as Re } from "vue";
6
6
  import { Tag as ze, Button as le, Avatar as ue, Dropdown as Ne, Divider as ce, Doption as h } from "@arco-design/web-vue";
7
- import { S as Le } from "./PaySubscriptions-BHTKDYFN.js";
8
- import { R as je } from "./ReferrerReferees-9wk0_tGC.js";
9
- import { a as N, u as He } from "./useAuthkitUsersProfile-B26kPQrp.js";
10
- import { u as Fe, g as oe } from "./auth-CfexrvhT.js";
11
- import { d as qe } from "./FeedbackModal-3k-cMuoY.js";
12
- import { M as Ee } from "./MessageHandle-Pxxvhs-7.js";
7
+ import { S as Le } from "./PaySubscriptions-F5sNex0h.js";
8
+ import { R as je } from "./ReferrerReferees-DMA8Tj5i.js";
9
+ import { a as N, u as He } from "./useAuthkitUsersProfile-B7wHZwe-.js";
10
+ import { u as Fe, g as oe } from "./request-B4CMspsP.js";
11
+ import { d as qe } from "./FeedbackModal-DIhSPUPO.js";
12
+ import { M as Ee } from "./MessageHandle-WA95I84_.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -2,19 +2,19 @@
2
2
  /* empty css */
3
3
  import { defineComponent as w, ref as x, watch as O, createElementBlock as n, openBlock as e, createElementVNode as o, createVNode as f, unref as u, withCtx as ee, renderSlot as K, createCommentVNode as k, toDisplayString as S, onMounted as te, onUnmounted as ne, Fragment as T, renderList as L, normalizeClass as I, createTextVNode as oe, normalizeStyle as A, createBlock as se, computed as U } from "vue";
4
4
  import { Spin as V } from "@arco-design/web-vue";
5
- import "./useAuthkitUsersProfile-B26kPQrp.js";
6
- import { a as ae } from "./auth-CfexrvhT.js";
7
- import { u as W } from "./useAuthkitAppsAuthPageInfo-AFq46sfo.js";
8
- import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-BmD-Tu3B.js";
9
- import "./useUploadCos-8imaHXLO.js";
5
+ import "./useAuthkitUsersProfile-B7wHZwe-.js";
6
+ import { a as ae } from "./request-B4CMspsP.js";
7
+ import { u as W } from "./useAuthkitAppsAuthPageInfo-CtsTqri7.js";
8
+ import { a as D, b as R, w as H, f as G, c as N, e as F, d as ie } from "./useSEO-C_4yDk7S.js";
9
+ import "./useUploadCos-dYc8op7M.js";
10
10
  import { useRouter as j, useRoute as J } from "vue-router";
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { d as re, c as Q } from "./UserAccountMenu-CKGTR8GB.js";
13
+ import { d as re, c as Q } from "./UserAccountMenu-CkUtqNxY.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  /* empty css */
17
- import "./AuthkitAuthModal-DxxZlUbh.js";
17
+ import "./AuthkitAuthModal-C1Kgu1TA.js";
18
18
  import { M as ce } from "./Menu-H-LxepvQ.js";
19
19
  import "./CollapseItem-Cw1vcdLu.js";
20
20
  /* empty css */
@@ -1,15 +1,15 @@
1
1
  import { UserUpdateBaseInfoParams, UserUpdateEmailParams, UserUpdatePasswordParams } from '../../types/api';
2
- export declare function usersProfile(data?: Record<string, any>): Promise<import('axios').AxiosResponse<any, any>>;
3
- export declare function usersUpdateBaseInfo(data: UserUpdateBaseInfoParams): Promise<import('axios').AxiosResponse<any, any>>;
4
- export declare function usersUpdateEmail(data: UserUpdateEmailParams): Promise<import('axios').AxiosResponse<any, any>>;
5
- export declare function usersUpdatePassword(data: UserUpdatePasswordParams): Promise<import('axios').AxiosResponse<any, any>>;
6
- export declare function usersUnbindEmail(): Promise<import('axios').AxiosResponse<any, any>>;
2
+ export declare function usersProfile(data?: Record<string, any>): Promise<import('../../utils/request').ApiResponse<any>>;
3
+ export declare function usersUpdateBaseInfo(data: UserUpdateBaseInfoParams): Promise<import('../../utils/request').ApiResponse<any>>;
4
+ export declare function usersUpdateEmail(data: UserUpdateEmailParams): Promise<import('../../utils/request').ApiResponse<any>>;
5
+ export declare function usersUpdatePassword(data: UserUpdatePasswordParams): Promise<import('../../utils/request').ApiResponse<any>>;
6
+ export declare function usersUnbindEmail(): Promise<import('../../utils/request').ApiResponse<any>>;
7
7
  /** 检查当前用户自己的业务依赖(用于自主注销) */
8
- export declare function usersCheckMyDependencies(): Promise<import('axios').AxiosResponse<any, any>>;
8
+ export declare function usersCheckMyDependencies(): Promise<import('../../utils/request').ApiResponse<any>>;
9
9
  /** 用户自主注销账号 */
10
10
  export declare function usersDeleteAccount(data: {
11
11
  password: string;
12
12
  userToken: string;
13
13
  emailVerifyId: string;
14
14
  confirmText?: string;
15
- }): Promise<import('axios').AxiosResponse<any, any>>;
15
+ }): Promise<import('../../utils/request').ApiResponse<any>>;
@@ -1,2 +1,2 @@
1
- export declare function appsFindOne(data: any): Promise<import('axios').AxiosResponse<any, any>>;
2
- export declare function appsAuthPageInfo(): Promise<import('axios').AxiosResponse<any, any>>;
1
+ export declare function appsFindOne(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
2
+ export declare function appsAuthPageInfo(): Promise<import('../../utils/request').ApiResponse<any>>;
@@ -1,10 +1,10 @@
1
1
  import { SignInParams, SignUpParams, ResetPasswordParams, OAuth2AuthorizeParams } from '../../types/api';
2
- export declare function authSignIn(data: SignInParams): Promise<import('axios').AxiosResponse<any, any>>;
3
- export declare function authSignOut(): Promise<import('axios').AxiosResponse<any, any>>;
4
- export declare function authResetPassword(data: ResetPasswordParams): Promise<import('axios').AxiosResponse<any, any>>;
5
- export declare function authSignUp(data: SignUpParams): Promise<import('axios').AxiosResponse<any, any>>;
6
- export declare function oauth2Authorize(data: OAuth2AuthorizeParams): Promise<import('axios').AxiosResponse<any, any>>;
7
- export declare function refreshToken(refreshToken: string): Promise<import('axios').AxiosResponse<any, any>>;
2
+ export declare function authSignIn(data: SignInParams): Promise<import('../../utils/request').ApiResponse<any>>;
3
+ export declare function authSignOut(): Promise<import('../../utils/request').ApiResponse<any>>;
4
+ export declare function authResetPassword(data: ResetPasswordParams): Promise<import('../../utils/request').ApiResponse<any>>;
5
+ export declare function authSignUp(data: SignUpParams): Promise<import('../../utils/request').ApiResponse<any>>;
6
+ export declare function oauth2Authorize(data: OAuth2AuthorizeParams): Promise<import('../../utils/request').ApiResponse<any>>;
7
+ export declare function refreshToken(refreshToken: string): Promise<import('../../utils/request').ApiResponse<any>>;
8
8
  /** 绑定邮箱参数 */
9
9
  interface BindEmailParams {
10
10
  email: string;
@@ -15,7 +15,7 @@ interface BindEmailParams {
15
15
  * 绑定邮箱(OAuth 用户用)
16
16
  * 用于 pending 状态的用户绑定邮箱,完成后状态变为 active
17
17
  */
18
- export declare function authBindEmail(data: BindEmailParams): Promise<import('axios').AxiosResponse<any, any>>;
18
+ export declare function authBindEmail(data: BindEmailParams): Promise<import('../../utils/request').ApiResponse<any>>;
19
19
  /** 绑定手机号参数 */
20
20
  interface BindPhoneParams {
21
21
  phone: string;
@@ -24,7 +24,7 @@ interface BindPhoneParams {
24
24
  /**
25
25
  * 绑定手机号
26
26
  */
27
- export declare function authBindPhone(data: BindPhoneParams): Promise<import('axios').AxiosResponse<any, any>>;
27
+ export declare function authBindPhone(data: BindPhoneParams): Promise<import('../../utils/request').ApiResponse<any>>;
28
28
  /** 手机号注册参数 */
29
29
  interface SignUpPhoneParams {
30
30
  phone: string;
@@ -35,7 +35,7 @@ interface SignUpPhoneParams {
35
35
  /**
36
36
  * 手机号注册
37
37
  */
38
- export declare function authSignUpPhone(data: SignUpPhoneParams): Promise<import('axios').AxiosResponse<any, any>>;
38
+ export declare function authSignUpPhone(data: SignUpPhoneParams): Promise<import('../../utils/request').ApiResponse<any>>;
39
39
  /** 统一登录参数 */
40
40
  interface SignInUnifiedParams {
41
41
  identifier: string;
@@ -46,5 +46,5 @@ interface SignInUnifiedParams {
46
46
  /**
47
47
  * 统一登录(支持邮箱/手机号 + 密码/验证码)
48
48
  */
49
- export declare function authSignInUnified(data: SignInUnifiedParams): Promise<import('axios').AxiosResponse<any, any>>;
49
+ export declare function authSignInUnified(data: SignInUnifiedParams): Promise<import('../../utils/request').ApiResponse<any>>;
50
50
  export {};
@@ -4,9 +4,9 @@ interface OauthLoginParams {
4
4
  redirectUri?: string;
5
5
  }
6
6
  /** 获取 GitHub OAuth 登录地址(多租户支持) */
7
- export declare function githubLogin(params: OauthLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
7
+ export declare function githubLogin(params: OauthLoginParams): Promise<import('../../utils/request').ApiResponse<any>>;
8
8
  /** 获取 Google OAuth 登录地址(多租户支持) */
9
- export declare function googleLogin(params: OauthLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
9
+ export declare function googleLogin(params: OauthLoginParams): Promise<import('../../utils/request').ApiResponse<any>>;
10
10
  /** 获取 Microsoft OAuth 登录地址(多租户支持) */
11
- export declare function microsoftLogin(params: OauthLoginParams): Promise<import('axios').AxiosResponse<any, any>>;
11
+ export declare function microsoftLogin(params: OauthLoginParams): Promise<import('../../utils/request').ApiResponse<any>>;
12
12
  export {};
@@ -1,12 +1,25 @@
1
- export declare function verifyEmail(data: any): Promise<import('axios').AxiosResponse<any, any>>;
2
- export declare function verifyEmailRetry(data: any): Promise<import('axios').AxiosResponse<any, any>>;
3
- export declare function verifyPassword(data: any): Promise<import('axios').AxiosResponse<any, any>>;
1
+ /** 邮箱验证响应 */
2
+ export interface VerifyEmailResponse {
3
+ emailVerifyId: string;
4
+ }
5
+ /** 密码验证响应 */
6
+ export interface VerifyPasswordResponse {
7
+ isValidate: boolean;
8
+ message?: string;
9
+ minPasswordComplexity?: number;
10
+ rejectBreachedPasswords?: boolean;
11
+ }
12
+ export declare function verifyEmail(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
13
+ export declare function verifyEmailRetry(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
14
+ export declare function verifyPassword(data: {
15
+ password: string;
16
+ }): Promise<import('../../utils/request').ApiResponse<any>>;
4
17
  /** 发送短信验证码 */
5
18
  export declare function verifySmsRetry(data: {
6
19
  phone: string;
7
- }): Promise<import('axios').AxiosResponse<any, any>>;
20
+ }): Promise<import('../../utils/request').ApiResponse<any>>;
8
21
  /** 验证短信验证码 */
9
22
  export declare function verifySms(data: {
10
23
  phone: string;
11
24
  code: string;
12
- }): Promise<import('axios').AxiosResponse<any, any>>;
25
+ }): Promise<import('../../utils/request').ApiResponse<any>>;
@@ -1,7 +1,7 @@
1
- export declare function filesCreate(data: any): Promise<import('axios').AxiosResponse<any, any>>;
2
- export declare function filesDelete(data: any): Promise<import('axios').AxiosResponse<any, any>>;
3
- export declare function filesUpdate(data: any): Promise<import('axios').AxiosResponse<any, any>>;
4
- export declare function filesFind(data: any): Promise<import('axios').AxiosResponse<any, any>>;
5
- export declare function filesFindOne(data: any): Promise<import('axios').AxiosResponse<any, any>>;
6
- export declare function filesGetKeyAndCredentials(data: any): Promise<import('axios').AxiosResponse<any, any>>;
7
- export declare function filesGetUrl(data: any): Promise<import('axios').AxiosResponse<any, any>>;
1
+ export declare function filesCreate(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
2
+ export declare function filesDelete(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
3
+ export declare function filesUpdate(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
4
+ export declare function filesFind(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
5
+ export declare function filesFindOne(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
6
+ export declare function filesGetKeyAndCredentials(data: any): Promise<import('../../utils/request').ApiResponse<any>>;
7
+ export declare function filesGetUrl(data: any): Promise<import('../../utils/request').ApiResponse<any>>;