@huyooo/ui 0.11.2 → 0.11.6
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/AuthkitAppSetting-CjQiWZab.js +1914 -0
- package/dist/{Clipboard---tG2Zxz.js → Clipboard-ChMNfcO5.js} +1 -1
- package/dist/{Contact-BEUbBGiB.js → Contact-Yqmjh47e.js} +8 -7
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-BUkwlbzN.js} +3 -2
- package/dist/{FeedbackItem-CN041vTm.js → FeedbackItem-DHp_C0pN.js} +3 -3
- package/dist/FeedbackModal-Dzl0Alp7.js +1050 -0
- package/dist/LandingPageFAQ-CZJXvor9.js +80 -0
- package/dist/LandingPageLinkGroup-DDNRivMt.js +521 -0
- package/dist/LandingPageSectionHeader-D_74W4My.js +69 -0
- package/dist/{LandingPageSectionTabs-B6ZVxR47.js → LandingPageSectionTabs-Ce3_Rc2L.js} +354 -426
- package/dist/MessageHandle-BcRjYeVi.js +924 -0
- package/dist/MessageList-Bo6YCfRO.js +233 -0
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
- package/dist/PaySubscriptions-BsU0XmXf.js +515 -0
- package/dist/PricingPlans-BfVy4xU0.js +210 -0
- package/dist/ReferrerReferees-CHSoGrE1.js +106 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-B4tD8pIE.js +508 -0
- package/dist/WidthContainer-BzS-A143.js +693 -0
- package/dist/{apiClients-9b4zNZ2S.js → apiClients-KFp-rs-C.js} +79 -73
- package/dist/authkit.d.ts +7 -0
- package/dist/authkit.js +52 -45
- package/dist/common/globalConfig.d.ts +4 -2
- package/dist/common/userMenuModal.d.ts +1 -0
- package/dist/common.js +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +31 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +66 -0
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +27 -0
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +1 -1
- package/dist/components/Authkit/Auth/AuthkitPasswordAuth.vue.d.ts +11 -1
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +68 -0
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +15 -3
- package/dist/components/Authkit/AuthkitOAuthCallbackProvider.vue.d.ts +11 -0
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +45 -0
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +9 -0
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -6
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
- package/dist/components/Pay/PaySubscriptions.vue.d.ts +2 -1
- package/dist/components/Pay/PricingFAQ.vue.d.ts +17 -0
- package/dist/components/Pay/PricingPlans.vue.d.ts +12 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +2 -2
- package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +8 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +26 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +21 -9
- package/dist/composables/Authkit/useEnsureAuthenticated.d.ts +26 -0
- package/dist/composables/Authkit/useOauth.d.ts +4 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +201 -0
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +280 -0
- package/dist/composables/Billing/useSubscriptionCheckout.d.ts +12 -0
- package/dist/composables/UserMenu/useUserMenu.d.ts +5 -1
- package/dist/composables.d.ts +2 -0
- package/dist/composables.js +25 -22
- package/dist/feedback.js +3 -3
- package/dist/index-D3Kp6R4z.js +4 -0
- package/dist/landingPage.js +42 -40
- package/dist/main.d.ts +1 -0
- package/dist/main.js +677 -631
- package/dist/message.js +19 -18
- package/dist/pay.d.ts +5 -0
- package/dist/pay.js +9 -2
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +103 -39
- package/dist/types/api/billing.generated.d.ts +61 -28
- package/dist/types/api.d.ts +1 -1
- package/dist/types/app.d.ts +14 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-494yLvsu.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +20 -7
- package/dist/{useAuthkitCreateAndUpdate-DyRtFxZS.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
- package/dist/useAuthkitUsersProfile-D4h6OOdR.js +201 -0
- package/dist/{useDownloads-DaeIY0E9.js → useDownloads-CzC3gLUV.js} +1 -1
- package/dist/useEnsureAuthenticated-C_Ss0e9n.js +2247 -0
- package/dist/{useLegalLinks-CPbWqlu6.js → useLegalLinks-OGVbqXVy.js} +2 -2
- package/dist/{useMessageNotifications-Dg5q-C_o.js → useMessageNotifications-DeHFJFcX.js} +1 -1
- package/dist/{useSEO-CXX9dcBx.js → useSEO--jTDDkXk.js} +2 -2
- package/dist/useSubscriptionCheckout-CQ6wHuLI.js +345 -0
- package/dist/{useTableHandle-Cjq4gcC0.js → useTableHandle-jw0P7-2a.js} +1 -1
- package/dist/{useUploadCos-DiJmmbRf.js → useUploadCos-keDKcs0j.js} +501 -515
- package/dist/useUserMenu-ClPBlvaM.js +44 -0
- package/dist/user.js +12 -13
- package/dist/utils/apiMiddlewares.d.ts +6 -0
- package/dist/utils/legacyApi.d.ts +18 -0
- package/package.json +1 -1
- package/dist/AuthkitAppSetting-BCrLMpLg.js +0 -1322
- package/dist/AuthkitSignInPhone-DmCQ2fWs.js +0 -1721
- package/dist/FeedbackModal-aI28o-w5.js +0 -1053
- package/dist/LandingPageSectionHeader-Cs1x8i3q.js +0 -584
- package/dist/MessageHandle-BV1nKlxs.js +0 -1147
- package/dist/PaySubscriptions-B3gI1Eme.js +0 -408
- package/dist/ReferrerReferees-DJzPo7X5.js +0 -106
- package/dist/UserAccountMenu-CJ9KKVYa.js +0 -371
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +0 -81
- package/dist/WidthContainer-BG10rumn.js +0 -669
- package/dist/useAuthkitUsersProfile-lGlQP54m.js +0 -186
- package/dist/useUserMenu-B3HKZKJ4.js +0 -43
|
@@ -204,9 +204,7 @@ export type Api = {
|
|
|
204
204
|
post: {
|
|
205
205
|
body: {
|
|
206
206
|
id: string;
|
|
207
|
-
phone: string;
|
|
208
207
|
roleId: string;
|
|
209
|
-
email: string;
|
|
210
208
|
status: "normal" | "forbidden";
|
|
211
209
|
};
|
|
212
210
|
return: any;
|
|
@@ -221,6 +219,16 @@ export type Api = {
|
|
|
221
219
|
return: any;
|
|
222
220
|
};
|
|
223
221
|
};
|
|
222
|
+
myPhone: {
|
|
223
|
+
/** 用户通过短信验证码更改自己的手机号 */
|
|
224
|
+
post: {
|
|
225
|
+
body: {
|
|
226
|
+
phone: string;
|
|
227
|
+
code: string;
|
|
228
|
+
};
|
|
229
|
+
return: any;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
224
232
|
status: {
|
|
225
233
|
/** 管理员更新用户启用状态 */
|
|
226
234
|
post: {
|
|
@@ -248,9 +256,12 @@ export type Api = {
|
|
|
248
256
|
/** 用户更新自己的邮箱 */
|
|
249
257
|
post: {
|
|
250
258
|
body: {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
259
|
+
method?: "email" | "phone";
|
|
260
|
+
userToken?: string;
|
|
261
|
+
emailVerifyId?: string;
|
|
262
|
+
email?: string;
|
|
263
|
+
phone?: string;
|
|
264
|
+
code?: string;
|
|
254
265
|
password: string;
|
|
255
266
|
};
|
|
256
267
|
return: any;
|
|
@@ -279,9 +290,12 @@ export type Api = {
|
|
|
279
290
|
};
|
|
280
291
|
};
|
|
281
292
|
unbind: {
|
|
282
|
-
|
|
283
|
-
/**
|
|
293
|
+
oauth: {
|
|
294
|
+
/** 用户解绑自己的第三方 OAuth 账号 */
|
|
284
295
|
post: {
|
|
296
|
+
body: {
|
|
297
|
+
provider: "github" | "google" | "microsoft" | "wechat";
|
|
298
|
+
};
|
|
285
299
|
return: any;
|
|
286
300
|
};
|
|
287
301
|
};
|
|
@@ -518,22 +532,10 @@ export type Api = {
|
|
|
518
532
|
return: any;
|
|
519
533
|
};
|
|
520
534
|
};
|
|
521
|
-
emailAuth: {
|
|
522
|
-
/** 更新邮箱认证相关配置 */
|
|
523
|
-
post: {
|
|
524
|
-
body: {
|
|
525
|
-
enabled: boolean;
|
|
526
|
-
confirmEmail: boolean;
|
|
527
|
-
expiration: number;
|
|
528
|
-
};
|
|
529
|
-
return: any;
|
|
530
|
-
};
|
|
531
|
-
};
|
|
532
535
|
passwordAuth: {
|
|
533
536
|
/** 更新密码认证相关配置 */
|
|
534
537
|
post: {
|
|
535
538
|
body: {
|
|
536
|
-
minPasswordComplexity: number;
|
|
537
539
|
rejectBreachedPasswords: boolean;
|
|
538
540
|
};
|
|
539
541
|
return: any;
|
|
@@ -832,6 +834,7 @@ export type Api = {
|
|
|
832
834
|
appId: string;
|
|
833
835
|
referrerId?: string;
|
|
834
836
|
redirectUri?: string;
|
|
837
|
+
mode?: "login" | "bind";
|
|
835
838
|
};
|
|
836
839
|
return: any;
|
|
837
840
|
};
|
|
@@ -855,6 +858,7 @@ export type Api = {
|
|
|
855
858
|
appId: string;
|
|
856
859
|
referrerId?: string;
|
|
857
860
|
redirectUri?: string;
|
|
861
|
+
mode?: "login" | "bind";
|
|
858
862
|
};
|
|
859
863
|
return: any;
|
|
860
864
|
};
|
|
@@ -878,6 +882,7 @@ export type Api = {
|
|
|
878
882
|
appId: string;
|
|
879
883
|
referrerId?: string;
|
|
880
884
|
redirectUri?: string;
|
|
885
|
+
mode?: "login" | "bind";
|
|
881
886
|
};
|
|
882
887
|
return: any;
|
|
883
888
|
};
|
|
@@ -893,6 +898,30 @@ export type Api = {
|
|
|
893
898
|
};
|
|
894
899
|
};
|
|
895
900
|
};
|
|
901
|
+
wechat: {
|
|
902
|
+
login: {
|
|
903
|
+
/** 跳转到微信开放平台扫码授权登录 */
|
|
904
|
+
get: {
|
|
905
|
+
query: {
|
|
906
|
+
appId: string;
|
|
907
|
+
referrerId?: string;
|
|
908
|
+
redirectUri?: string;
|
|
909
|
+
mode?: "login" | "bind";
|
|
910
|
+
};
|
|
911
|
+
return: any;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
callback: {
|
|
915
|
+
/** 微信开放平台授权回调 */
|
|
916
|
+
get: {
|
|
917
|
+
query: {
|
|
918
|
+
code: string;
|
|
919
|
+
state: string;
|
|
920
|
+
};
|
|
921
|
+
return: any;
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
};
|
|
896
925
|
};
|
|
897
926
|
oauth2: {
|
|
898
927
|
authorize: {
|
|
@@ -959,6 +988,7 @@ export type Api = {
|
|
|
959
988
|
identifier: string;
|
|
960
989
|
password?: string;
|
|
961
990
|
code?: string;
|
|
991
|
+
emailVerifyId?: string;
|
|
962
992
|
method: "password" | "code";
|
|
963
993
|
};
|
|
964
994
|
return: any;
|
|
@@ -1053,9 +1083,12 @@ export type Api = {
|
|
|
1053
1083
|
/** 用户通过验证码重置密码 */
|
|
1054
1084
|
post: {
|
|
1055
1085
|
body: {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1086
|
+
method?: "email" | "phone";
|
|
1087
|
+
userToken?: string;
|
|
1088
|
+
emailVerifyId?: string;
|
|
1089
|
+
email?: string;
|
|
1090
|
+
phone?: string;
|
|
1091
|
+
code?: string;
|
|
1059
1092
|
password: string;
|
|
1060
1093
|
};
|
|
1061
1094
|
return: any;
|
|
@@ -1169,6 +1202,7 @@ export type Api = {
|
|
|
1169
1202
|
userToken: string;
|
|
1170
1203
|
email: string;
|
|
1171
1204
|
emailVerifyId: string;
|
|
1205
|
+
purpose?: "signIn" | "signUp" | "bindEmail" | "resetPassword" | "deleteAccount";
|
|
1172
1206
|
};
|
|
1173
1207
|
return: any;
|
|
1174
1208
|
};
|
|
@@ -1177,6 +1211,7 @@ export type Api = {
|
|
|
1177
1211
|
post: {
|
|
1178
1212
|
body: {
|
|
1179
1213
|
email: string;
|
|
1214
|
+
purpose?: "signIn" | "signUp" | "bindEmail" | "resetPassword" | "deleteAccount";
|
|
1180
1215
|
};
|
|
1181
1216
|
return: any;
|
|
1182
1217
|
};
|
|
@@ -1188,6 +1223,7 @@ export type Api = {
|
|
|
1188
1223
|
post: {
|
|
1189
1224
|
body: {
|
|
1190
1225
|
phone: string;
|
|
1226
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
1191
1227
|
};
|
|
1192
1228
|
return: any;
|
|
1193
1229
|
};
|
|
@@ -1198,6 +1234,7 @@ export type Api = {
|
|
|
1198
1234
|
body: {
|
|
1199
1235
|
phone: string;
|
|
1200
1236
|
code: string;
|
|
1237
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
1201
1238
|
};
|
|
1202
1239
|
return: any;
|
|
1203
1240
|
};
|
|
@@ -1867,9 +1904,7 @@ export interface ApiClient {
|
|
|
1867
1904
|
/** 管理员更新用户信息 */
|
|
1868
1905
|
post: (body: {
|
|
1869
1906
|
id: string;
|
|
1870
|
-
phone: string;
|
|
1871
1907
|
roleId: string;
|
|
1872
|
-
email: string;
|
|
1873
1908
|
status: "normal" | "forbidden";
|
|
1874
1909
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1875
1910
|
phone: {
|
|
@@ -1879,6 +1914,13 @@ export interface ApiClient {
|
|
|
1879
1914
|
phone: string;
|
|
1880
1915
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1881
1916
|
};
|
|
1917
|
+
myPhone: {
|
|
1918
|
+
/** 用户通过短信验证码更改自己的手机号 */
|
|
1919
|
+
post: (body: {
|
|
1920
|
+
phone: string;
|
|
1921
|
+
code: string;
|
|
1922
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1923
|
+
};
|
|
1882
1924
|
status: {
|
|
1883
1925
|
/** 管理员更新用户启用状态 */
|
|
1884
1926
|
post: (body: {
|
|
@@ -1922,9 +1964,11 @@ export interface ApiClient {
|
|
|
1922
1964
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1923
1965
|
};
|
|
1924
1966
|
unbind: {
|
|
1925
|
-
|
|
1926
|
-
/**
|
|
1927
|
-
post: (
|
|
1967
|
+
oauth: {
|
|
1968
|
+
/** 用户解绑自己的第三方 OAuth 账号 */
|
|
1969
|
+
post: (body: {
|
|
1970
|
+
provider: "github" | "google" | "microsoft" | "wechat";
|
|
1971
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1928
1972
|
};
|
|
1929
1973
|
};
|
|
1930
1974
|
profile: {
|
|
@@ -2096,18 +2140,9 @@ export interface ApiClient {
|
|
|
2096
2140
|
backgroundColor: string;
|
|
2097
2141
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2098
2142
|
};
|
|
2099
|
-
emailAuth: {
|
|
2100
|
-
/** 更新邮箱认证相关配置 */
|
|
2101
|
-
post: (body: {
|
|
2102
|
-
enabled: boolean;
|
|
2103
|
-
confirmEmail: boolean;
|
|
2104
|
-
expiration: number;
|
|
2105
|
-
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2106
|
-
};
|
|
2107
2143
|
passwordAuth: {
|
|
2108
2144
|
/** 更新密码认证相关配置 */
|
|
2109
2145
|
post: (body: {
|
|
2110
|
-
minPasswordComplexity: number;
|
|
2111
2146
|
rejectBreachedPasswords: boolean;
|
|
2112
2147
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2113
2148
|
};
|
|
@@ -2327,6 +2362,7 @@ export interface ApiClient {
|
|
|
2327
2362
|
appId: string;
|
|
2328
2363
|
referrerId?: string;
|
|
2329
2364
|
redirectUri?: string;
|
|
2365
|
+
mode?: "login" | "bind";
|
|
2330
2366
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2331
2367
|
};
|
|
2332
2368
|
callback: {
|
|
@@ -2344,6 +2380,7 @@ export interface ApiClient {
|
|
|
2344
2380
|
appId: string;
|
|
2345
2381
|
referrerId?: string;
|
|
2346
2382
|
redirectUri?: string;
|
|
2383
|
+
mode?: "login" | "bind";
|
|
2347
2384
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2348
2385
|
};
|
|
2349
2386
|
callback: {
|
|
@@ -2361,6 +2398,7 @@ export interface ApiClient {
|
|
|
2361
2398
|
appId: string;
|
|
2362
2399
|
referrerId?: string;
|
|
2363
2400
|
redirectUri?: string;
|
|
2401
|
+
mode?: "login" | "bind";
|
|
2364
2402
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2365
2403
|
};
|
|
2366
2404
|
callback: {
|
|
@@ -2371,6 +2409,24 @@ export interface ApiClient {
|
|
|
2371
2409
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2372
2410
|
};
|
|
2373
2411
|
};
|
|
2412
|
+
wechat: {
|
|
2413
|
+
login: {
|
|
2414
|
+
/** 跳转到微信开放平台扫码授权登录 */
|
|
2415
|
+
get: (query?: {
|
|
2416
|
+
appId: string;
|
|
2417
|
+
referrerId?: string;
|
|
2418
|
+
redirectUri?: string;
|
|
2419
|
+
mode?: "login" | "bind";
|
|
2420
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2421
|
+
};
|
|
2422
|
+
callback: {
|
|
2423
|
+
/** 微信开放平台授权回调 */
|
|
2424
|
+
get: (query?: {
|
|
2425
|
+
code: string;
|
|
2426
|
+
state: string;
|
|
2427
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2374
2430
|
};
|
|
2375
2431
|
oauth2: {
|
|
2376
2432
|
authorize: {
|
|
@@ -2421,6 +2477,7 @@ export interface ApiClient {
|
|
|
2421
2477
|
identifier: string;
|
|
2422
2478
|
password?: string;
|
|
2423
2479
|
code?: string;
|
|
2480
|
+
emailVerifyId?: string;
|
|
2424
2481
|
method: "password" | "code";
|
|
2425
2482
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2426
2483
|
};
|
|
@@ -2485,9 +2542,12 @@ export interface ApiClient {
|
|
|
2485
2542
|
resetPassword: {
|
|
2486
2543
|
/** 用户通过验证码重置密码 */
|
|
2487
2544
|
post: (body: {
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2545
|
+
method?: "email" | "phone";
|
|
2546
|
+
userToken?: string;
|
|
2547
|
+
emailVerifyId?: string;
|
|
2548
|
+
email?: string;
|
|
2549
|
+
phone?: string;
|
|
2550
|
+
code?: string;
|
|
2491
2551
|
password: string;
|
|
2492
2552
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2493
2553
|
};
|
|
@@ -2570,11 +2630,13 @@ export interface ApiClient {
|
|
|
2570
2630
|
userToken: string;
|
|
2571
2631
|
email: string;
|
|
2572
2632
|
emailVerifyId: string;
|
|
2633
|
+
purpose?: "signIn" | "signUp" | "bindEmail" | "resetPassword" | "deleteAccount";
|
|
2573
2634
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2574
2635
|
retry: {
|
|
2575
2636
|
/** 重新发送邮箱验证码 */
|
|
2576
2637
|
post: (body: {
|
|
2577
2638
|
email: string;
|
|
2639
|
+
purpose?: "signIn" | "signUp" | "bindEmail" | "resetPassword" | "deleteAccount";
|
|
2578
2640
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2579
2641
|
};
|
|
2580
2642
|
};
|
|
@@ -2583,6 +2645,7 @@ export interface ApiClient {
|
|
|
2583
2645
|
/** 发送短信验证码 */
|
|
2584
2646
|
post: (body: {
|
|
2585
2647
|
phone: string;
|
|
2648
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
2586
2649
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2587
2650
|
};
|
|
2588
2651
|
verify: {
|
|
@@ -2590,6 +2653,7 @@ export interface ApiClient {
|
|
|
2590
2653
|
post: (body: {
|
|
2591
2654
|
phone: string;
|
|
2592
2655
|
code: string;
|
|
2656
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
2593
2657
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2594
2658
|
};
|
|
2595
2659
|
};
|
|
@@ -23,8 +23,8 @@ export type Api = {
|
|
|
23
23
|
key: string;
|
|
24
24
|
name: string;
|
|
25
25
|
description?: string;
|
|
26
|
-
type: "boolean"
|
|
27
|
-
value?: boolean
|
|
26
|
+
type: "boolean";
|
|
27
|
+
value?: boolean;
|
|
28
28
|
highlight?: boolean;
|
|
29
29
|
}[];
|
|
30
30
|
metadata?: Record<string, unknown>;
|
|
@@ -53,8 +53,8 @@ export type Api = {
|
|
|
53
53
|
key: string;
|
|
54
54
|
name: string;
|
|
55
55
|
description?: string;
|
|
56
|
-
type: "boolean"
|
|
57
|
-
value?: boolean
|
|
56
|
+
type: "boolean";
|
|
57
|
+
value?: boolean;
|
|
58
58
|
highlight?: boolean;
|
|
59
59
|
}[];
|
|
60
60
|
status?: "active" | "archived";
|
|
@@ -101,12 +101,13 @@ export type Api = {
|
|
|
101
101
|
body: {
|
|
102
102
|
productId: string;
|
|
103
103
|
nickname?: string;
|
|
104
|
-
type: "one_time" | "recurring";
|
|
104
|
+
type: "free" | "one_time" | "recurring";
|
|
105
105
|
currency: string;
|
|
106
106
|
unitAmount: number;
|
|
107
|
+
trialPeriodDays?: number;
|
|
108
|
+
allowRepeatTrial?: boolean;
|
|
107
109
|
interval?: "day" | "week" | "month" | "year";
|
|
108
110
|
intervalCount?: number;
|
|
109
|
-
trialPeriodDays?: number;
|
|
110
111
|
metadata?: Record<string, unknown>;
|
|
111
112
|
};
|
|
112
113
|
return: any;
|
|
@@ -128,8 +129,9 @@ export type Api = {
|
|
|
128
129
|
id: string;
|
|
129
130
|
nickname?: string;
|
|
130
131
|
active?: boolean;
|
|
131
|
-
trialPeriodDays?: number;
|
|
132
132
|
metadata?: Record<string, unknown>;
|
|
133
|
+
trialPeriodDays?: number;
|
|
134
|
+
allowRepeatTrial?: boolean;
|
|
133
135
|
};
|
|
134
136
|
return: any;
|
|
135
137
|
};
|
|
@@ -142,7 +144,7 @@ export type Api = {
|
|
|
142
144
|
pageSize: number;
|
|
143
145
|
where: {
|
|
144
146
|
productId?: string;
|
|
145
|
-
type?: "" | "one_time" | "recurring";
|
|
147
|
+
type?: "" | "free" | "one_time" | "recurring";
|
|
146
148
|
active?: boolean;
|
|
147
149
|
};
|
|
148
150
|
};
|
|
@@ -167,6 +169,12 @@ export type Api = {
|
|
|
167
169
|
return: any;
|
|
168
170
|
};
|
|
169
171
|
};
|
|
172
|
+
listFreeActive: {
|
|
173
|
+
/** 获取当前应用可领取的免费体验价格方案 */
|
|
174
|
+
post: {
|
|
175
|
+
return: any;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
170
178
|
};
|
|
171
179
|
subscriptions: {
|
|
172
180
|
create: {
|
|
@@ -227,6 +235,12 @@ export type Api = {
|
|
|
227
235
|
return: any;
|
|
228
236
|
};
|
|
229
237
|
};
|
|
238
|
+
summary: {
|
|
239
|
+
/** 获取当前用户订阅、配额、积分和待支付账单摘要 */
|
|
240
|
+
post: {
|
|
241
|
+
return: any;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
230
244
|
find: {
|
|
231
245
|
/** 分页查询订阅列表(管理端) */
|
|
232
246
|
post: {
|
|
@@ -268,13 +282,11 @@ export type Api = {
|
|
|
268
282
|
/** 创建配额定义 */
|
|
269
283
|
post: {
|
|
270
284
|
body: {
|
|
271
|
-
|
|
285
|
+
priceId: string;
|
|
272
286
|
featureKey: string;
|
|
273
287
|
name: string;
|
|
274
288
|
description?: string;
|
|
275
289
|
limit: number;
|
|
276
|
-
allowOverage?: boolean;
|
|
277
|
-
pointsCostPerUnit?: number;
|
|
278
290
|
period: "day" | "week" | "month" | "year" | "lifetime";
|
|
279
291
|
metadata?: Record<string, unknown>;
|
|
280
292
|
};
|
|
@@ -299,8 +311,6 @@ export type Api = {
|
|
|
299
311
|
description?: string;
|
|
300
312
|
limit?: number;
|
|
301
313
|
period?: "day" | "week" | "month" | "year" | "lifetime";
|
|
302
|
-
allowOverage?: boolean;
|
|
303
|
-
pointsCostPerUnit?: number;
|
|
304
314
|
metadata?: Record<string, unknown>;
|
|
305
315
|
};
|
|
306
316
|
return: any;
|
|
@@ -314,6 +324,7 @@ export type Api = {
|
|
|
314
324
|
pageSize: number;
|
|
315
325
|
where: {
|
|
316
326
|
productId?: string;
|
|
327
|
+
priceId?: string;
|
|
317
328
|
featureKey?: string;
|
|
318
329
|
};
|
|
319
330
|
};
|
|
@@ -351,7 +362,7 @@ export type Api = {
|
|
|
351
362
|
};
|
|
352
363
|
};
|
|
353
364
|
recordWithQuotaCheck: {
|
|
354
|
-
/**
|
|
365
|
+
/** 记录使用量并检查配额 */
|
|
355
366
|
post: {
|
|
356
367
|
body: {
|
|
357
368
|
userId?: string;
|
|
@@ -481,6 +492,15 @@ export type Api = {
|
|
|
481
492
|
return: any;
|
|
482
493
|
};
|
|
483
494
|
};
|
|
495
|
+
pay: {
|
|
496
|
+
/** 支付我的账单 */
|
|
497
|
+
post: {
|
|
498
|
+
body: {
|
|
499
|
+
id: string;
|
|
500
|
+
};
|
|
501
|
+
return: any;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
484
504
|
void: {
|
|
485
505
|
/** 作废发票 */
|
|
486
506
|
post: {
|
|
@@ -1187,8 +1207,8 @@ export interface ApiClient {
|
|
|
1187
1207
|
key: string;
|
|
1188
1208
|
name: string;
|
|
1189
1209
|
description?: string;
|
|
1190
|
-
type: "boolean"
|
|
1191
|
-
value?: boolean
|
|
1210
|
+
type: "boolean";
|
|
1211
|
+
value?: boolean;
|
|
1192
1212
|
highlight?: boolean;
|
|
1193
1213
|
}[];
|
|
1194
1214
|
metadata?: Record<string, unknown>;
|
|
@@ -1211,8 +1231,8 @@ export interface ApiClient {
|
|
|
1211
1231
|
key: string;
|
|
1212
1232
|
name: string;
|
|
1213
1233
|
description?: string;
|
|
1214
|
-
type: "boolean"
|
|
1215
|
-
value?: boolean
|
|
1234
|
+
type: "boolean";
|
|
1235
|
+
value?: boolean;
|
|
1216
1236
|
highlight?: boolean;
|
|
1217
1237
|
}[];
|
|
1218
1238
|
status?: "active" | "archived";
|
|
@@ -1248,12 +1268,13 @@ export interface ApiClient {
|
|
|
1248
1268
|
post: (body: {
|
|
1249
1269
|
productId: string;
|
|
1250
1270
|
nickname?: string;
|
|
1251
|
-
type: "one_time" | "recurring";
|
|
1271
|
+
type: "free" | "one_time" | "recurring";
|
|
1252
1272
|
currency: string;
|
|
1253
1273
|
unitAmount: number;
|
|
1274
|
+
trialPeriodDays?: number;
|
|
1275
|
+
allowRepeatTrial?: boolean;
|
|
1254
1276
|
interval?: "day" | "week" | "month" | "year";
|
|
1255
1277
|
intervalCount?: number;
|
|
1256
|
-
trialPeriodDays?: number;
|
|
1257
1278
|
metadata?: Record<string, unknown>;
|
|
1258
1279
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1259
1280
|
};
|
|
@@ -1269,8 +1290,9 @@ export interface ApiClient {
|
|
|
1269
1290
|
id: string;
|
|
1270
1291
|
nickname?: string;
|
|
1271
1292
|
active?: boolean;
|
|
1272
|
-
trialPeriodDays?: number;
|
|
1273
1293
|
metadata?: Record<string, unknown>;
|
|
1294
|
+
trialPeriodDays?: number;
|
|
1295
|
+
allowRepeatTrial?: boolean;
|
|
1274
1296
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1275
1297
|
};
|
|
1276
1298
|
find: {
|
|
@@ -1280,7 +1302,7 @@ export interface ApiClient {
|
|
|
1280
1302
|
pageSize: number;
|
|
1281
1303
|
where: {
|
|
1282
1304
|
productId?: string;
|
|
1283
|
-
type?: "" | "one_time" | "recurring";
|
|
1305
|
+
type?: "" | "free" | "one_time" | "recurring";
|
|
1284
1306
|
active?: boolean;
|
|
1285
1307
|
};
|
|
1286
1308
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
@@ -1297,6 +1319,10 @@ export interface ApiClient {
|
|
|
1297
1319
|
productId: string;
|
|
1298
1320
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1299
1321
|
};
|
|
1322
|
+
listFreeActive: {
|
|
1323
|
+
/** 获取当前应用可领取的免费体验价格方案 */
|
|
1324
|
+
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1325
|
+
};
|
|
1300
1326
|
};
|
|
1301
1327
|
subscriptions: {
|
|
1302
1328
|
create: {
|
|
@@ -1340,6 +1366,10 @@ export interface ApiClient {
|
|
|
1340
1366
|
/** 获取当前活跃订阅 */
|
|
1341
1367
|
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1342
1368
|
};
|
|
1369
|
+
summary: {
|
|
1370
|
+
/** 获取当前用户订阅、配额、积分和待支付账单摘要 */
|
|
1371
|
+
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1372
|
+
};
|
|
1343
1373
|
find: {
|
|
1344
1374
|
/** 分页查询订阅列表(管理端) */
|
|
1345
1375
|
post: (body: {
|
|
@@ -1371,13 +1401,11 @@ export interface ApiClient {
|
|
|
1371
1401
|
create: {
|
|
1372
1402
|
/** 创建配额定义 */
|
|
1373
1403
|
post: (body: {
|
|
1374
|
-
|
|
1404
|
+
priceId: string;
|
|
1375
1405
|
featureKey: string;
|
|
1376
1406
|
name: string;
|
|
1377
1407
|
description?: string;
|
|
1378
1408
|
limit: number;
|
|
1379
|
-
allowOverage?: boolean;
|
|
1380
|
-
pointsCostPerUnit?: number;
|
|
1381
1409
|
period: "day" | "week" | "month" | "year" | "lifetime";
|
|
1382
1410
|
metadata?: Record<string, unknown>;
|
|
1383
1411
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
@@ -1396,8 +1424,6 @@ export interface ApiClient {
|
|
|
1396
1424
|
description?: string;
|
|
1397
1425
|
limit?: number;
|
|
1398
1426
|
period?: "day" | "week" | "month" | "year" | "lifetime";
|
|
1399
|
-
allowOverage?: boolean;
|
|
1400
|
-
pointsCostPerUnit?: number;
|
|
1401
1427
|
metadata?: Record<string, unknown>;
|
|
1402
1428
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1403
1429
|
};
|
|
@@ -1408,6 +1434,7 @@ export interface ApiClient {
|
|
|
1408
1434
|
pageSize: number;
|
|
1409
1435
|
where: {
|
|
1410
1436
|
productId?: string;
|
|
1437
|
+
priceId?: string;
|
|
1411
1438
|
featureKey?: string;
|
|
1412
1439
|
};
|
|
1413
1440
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
@@ -1435,7 +1462,7 @@ export interface ApiClient {
|
|
|
1435
1462
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1436
1463
|
};
|
|
1437
1464
|
recordWithQuotaCheck: {
|
|
1438
|
-
/**
|
|
1465
|
+
/** 记录使用量并检查配额 */
|
|
1439
1466
|
post: (body: {
|
|
1440
1467
|
userId?: string;
|
|
1441
1468
|
featureKey: string;
|
|
@@ -1535,6 +1562,12 @@ export interface ApiClient {
|
|
|
1535
1562
|
status?: string;
|
|
1536
1563
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1537
1564
|
};
|
|
1565
|
+
pay: {
|
|
1566
|
+
/** 支付我的账单 */
|
|
1567
|
+
post: (body: {
|
|
1568
|
+
id: string;
|
|
1569
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1570
|
+
};
|
|
1538
1571
|
void: {
|
|
1539
1572
|
/** 作废发票 */
|
|
1540
1573
|
post: (body: {
|
package/dist/types/api.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export interface OrderItem {
|
|
|
110
110
|
}
|
|
111
111
|
export interface EmailVerifyParams {
|
|
112
112
|
email: string;
|
|
113
|
-
purpose: 'signUp' | 'resetPassword' | '
|
|
113
|
+
purpose: 'signIn' | 'signUp' | 'bindEmail' | 'resetPassword' | 'deleteAccount';
|
|
114
114
|
}
|
|
115
115
|
export interface PasswordVerifyParams {
|
|
116
116
|
email: string;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -18,6 +18,19 @@ export interface OAuthConfig {
|
|
|
18
18
|
enabled: boolean;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
export interface AuthMethodsConfig {
|
|
22
|
+
login: {
|
|
23
|
+
emailPassword: boolean;
|
|
24
|
+
phonePassword: boolean;
|
|
25
|
+
phoneCode: boolean;
|
|
26
|
+
emailCode: boolean;
|
|
27
|
+
passkey: boolean;
|
|
28
|
+
};
|
|
29
|
+
signUp: {
|
|
30
|
+
email: boolean;
|
|
31
|
+
phone: boolean;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
21
34
|
export interface AboutUsDoc {
|
|
22
35
|
type: string;
|
|
23
36
|
content: any[];
|
|
@@ -48,6 +61,7 @@ export interface AppsData {
|
|
|
48
61
|
applicationLogoUrl: string;
|
|
49
62
|
publicRoutes: Array<PublicRoute>;
|
|
50
63
|
oauth: OAuthConfig;
|
|
64
|
+
authMethods: AuthMethodsConfig;
|
|
51
65
|
authorizationCallback: string;
|
|
52
66
|
aboutUs: AboutUs;
|
|
53
67
|
brand: Brand;
|
package/dist/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { u as s } from "./useUploadCos-
|
|
1
|
+
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js";
|
|
2
|
+
import { u as s } from "./useUploadCos-keDKcs0j.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Upload,
|
|
5
5
|
s as useUploadCos
|