@huyooo/ui 1.0.2 → 1.0.4
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-BN8-xgNq.js +2674 -0
- package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
- package/dist/CustomTable-BzGfaAVH.js +276 -0
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
- package/dist/LandingPageDescription-BczWZHKy.js +12 -0
- package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
- package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
- package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
- package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
- package/dist/Menu-uCexrsKP.js +199 -0
- package/dist/MessageHandle-mEkCsv9e.js +1173 -0
- package/dist/MessageList-Ce-_LNTk.js +244 -0
- package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
- package/dist/PricingPlans-DoWP5aX7.js +427 -0
- package/dist/ReferrerReferees-DgygiIiE.js +237 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
- package/dist/WidthContainer-PeWkCK0p.js +721 -0
- package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
- package/dist/authkit.d.ts +6 -2
- package/dist/authkit.js +53 -44
- package/dist/common/authProviderIcons.d.ts +12 -0
- package/dist/common/globalConfig.d.ts +5 -0
- package/dist/common/tableColumnWidths.d.ts +11 -0
- package/dist/common.js +3 -3
- package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
- package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
- package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
- package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
- package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
- package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
- package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
- package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
- package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
- package/dist/components/CustomTable.vue.d.ts +27 -1
- package/dist/components/Ellipsis.vue.d.ts +2 -6
- package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
- package/dist/components/Gradientbackground.vue.d.ts +2 -2
- package/dist/components/HeaderMenus.vue.d.ts +4 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
- package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
- package/dist/components/Menu.vue.d.ts +2 -1
- package/dist/components/MenuItem.vue.d.ts +3 -1
- package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
- package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
- package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
- package/dist/components/Message/MessageList.vue.d.ts +4 -3
- package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
- package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
- package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
- package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
- package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
- package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
- package/dist/components/Message/messageBody/types.d.ts +7 -0
- package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
- package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
- package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
- package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
- package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
- package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
- package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
- package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
- package/dist/composables/Authkit/useOauth.d.ts +17 -4
- package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
- package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
- package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
- package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
- package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
- package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
- package/dist/composables/useInfiniteList.d.ts +19 -0
- package/dist/composables/useMessageNotifications.d.ts +3 -6
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +50 -45
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +12 -11
- package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
- package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
- package/dist/landingPage.js +21 -21
- package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
- package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
- package/dist/legalDocs/index.d.ts +7 -0
- package/dist/legalDocs/isConfigured.d.ts +7 -0
- package/dist/legalDocs/open.d.ts +3 -0
- package/dist/legalDocs/resolveAppId.d.ts +8 -0
- package/dist/legalDocs/resolveTarget.d.ts +4 -0
- package/dist/legalDocs/types.d.ts +12 -0
- package/dist/main.js +320 -308
- package/dist/message.d.ts +3 -0
- package/dist/message.js +301 -21
- package/dist/pay.d.ts +1 -1
- package/dist/pay.js +14 -17
- 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 +1385 -328
- package/dist/types/api/billing.generated.d.ts +907 -76
- package/dist/types/api/ones.generated.d.ts +131 -2
- package/dist/types/api.d.ts +1 -0
- package/dist/types/app.d.ts +10 -0
- package/dist/types/user.d.ts +1 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
- package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
- package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
- package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
- package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
- package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
- package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
- package/dist/useRoutePermission-CEiya9AM.js +218 -0
- package/dist/useSEO-CDWxbk8B.js +221 -0
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
- package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/userMenuModal-D-nDaYqM.js +66 -0
- package/dist/utils/apiMiddlewares.d.ts +5 -5
- package/dist/utils/apiResponse.d.ts +11 -0
- package/dist/utils/authProviderIcon.d.ts +3 -0
- package/dist/utils/authkit.d.ts +20 -7
- package/dist/utils/formatPoints.d.ts +8 -0
- package/dist/utils/messageNotificationContent.d.ts +4 -0
- package/dist/utils/messageTextLink.d.ts +9 -0
- package/dist/utils/passkeySupport.d.ts +8 -0
- package/dist/utils/pointsFlowTypes.d.ts +10 -0
- package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
- package/dist/utils/refundStatusDisplay.d.ts +1 -0
- package/dist/utils/subscriptionDisplay.d.ts +7 -0
- package/dist/utils/userDisplay.d.ts +41 -0
- package/package.json +11 -3
- package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
- package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
- package/dist/CustomTable-CCOQxfxr.js +0 -279
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
- package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
- package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
- package/dist/Menu-Cy2ZPeaz.js +0 -170
- package/dist/MessageHandle-BG12aX0i.js +0 -924
- package/dist/MessageList-CrCF8mU6.js +0 -233
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
- package/dist/PaySubscriptions-C3KiTsQS.js +0 -1241
- package/dist/PricingPlans-uwlFiiJx.js +0 -404
- package/dist/ReferrerReferees-Zb5Bd-_e.js +0 -106
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QWUNRjGh.js +0 -520
- package/dist/WidthContainer-BVBk0kJN.js +0 -688
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
- package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
- package/dist/index-D3Kp6R4z.js +0 -4
- package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
- package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
- package/dist/useLegalLinks-Cwr45PBT.js +0 -60
- package/dist/useRoutePermission-CaWtjLRA.js +0 -212
- package/dist/useSEO-BSMQdBR9.js +0 -158
- package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
- package/dist/useTableHandle-BdujaiNX.js +0 -69
- /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
|
@@ -1,18 +1,64 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestConfig, Client, EdenClient, RequestBuilder } from '@vafast/api-client';
|
|
2
2
|
/** API 契约类型 */
|
|
3
3
|
export type Api = {
|
|
4
4
|
health: {
|
|
5
|
-
/** 检查服务健康状态 */
|
|
6
5
|
get: {
|
|
7
6
|
return: any;
|
|
8
7
|
};
|
|
8
|
+
live: {
|
|
9
|
+
get: {
|
|
10
|
+
return: any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
ready: {
|
|
14
|
+
get: {
|
|
15
|
+
return: any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
9
18
|
};
|
|
10
19
|
'api-spec': {
|
|
11
|
-
/** 获取 API 规范,用于类型同步 */
|
|
12
20
|
get: {
|
|
13
21
|
return: any;
|
|
14
22
|
};
|
|
15
23
|
};
|
|
24
|
+
internal: {
|
|
25
|
+
stats: {
|
|
26
|
+
get: {
|
|
27
|
+
return: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
corsAllowedOrigins: {
|
|
31
|
+
/** 供微服务拉取应用配置的 CORS Origin 白名单(需 API Key 认证) */
|
|
32
|
+
get: {
|
|
33
|
+
return: any;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
apps: {
|
|
37
|
+
allowedOrigins: {
|
|
38
|
+
/** 供微服务按 appId 获取 oauth.allowedOrigins(需 API Key 认证) */
|
|
39
|
+
post: {
|
|
40
|
+
body: {
|
|
41
|
+
appId: string;
|
|
42
|
+
};
|
|
43
|
+
return: any;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
users: {
|
|
48
|
+
list: {
|
|
49
|
+
/** 供微服务按 appId 分页查询用户列表(需 API Key 认证) */
|
|
50
|
+
post: {
|
|
51
|
+
body: {
|
|
52
|
+
appId: string;
|
|
53
|
+
page?: number;
|
|
54
|
+
pageSize?: number;
|
|
55
|
+
status?: string;
|
|
56
|
+
};
|
|
57
|
+
return: any;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
16
62
|
apiKeys: {
|
|
17
63
|
verify: {
|
|
18
64
|
/** 验证 API Key 有效性 */
|
|
@@ -122,7 +168,7 @@ export type Api = {
|
|
|
122
168
|
};
|
|
123
169
|
users: {
|
|
124
170
|
batch: {
|
|
125
|
-
/**
|
|
171
|
+
/** 供其他服务和外部应用批量查询用户基本信息(需要 API Key 认证) */
|
|
126
172
|
post: {
|
|
127
173
|
body: {
|
|
128
174
|
userIds: string[];
|
|
@@ -166,6 +212,17 @@ export type Api = {
|
|
|
166
212
|
};
|
|
167
213
|
return: any;
|
|
168
214
|
};
|
|
215
|
+
byApps: {
|
|
216
|
+
/** 供其他服务按 appId 批量获取用户数量 */
|
|
217
|
+
post: {
|
|
218
|
+
body: {
|
|
219
|
+
appIds: string[];
|
|
220
|
+
startTime?: string;
|
|
221
|
+
endTime?: string;
|
|
222
|
+
};
|
|
223
|
+
return: any;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
169
226
|
};
|
|
170
227
|
trend: {
|
|
171
228
|
/** 供 analytics 服务和外部应用获取用户增长趋势(需要 API Key 认证) */
|
|
@@ -229,6 +286,17 @@ export type Api = {
|
|
|
229
286
|
return: any;
|
|
230
287
|
};
|
|
231
288
|
};
|
|
289
|
+
myEmail: {
|
|
290
|
+
/** 用户通过新邮箱验证码更改自己的邮箱(不修改密码) */
|
|
291
|
+
post: {
|
|
292
|
+
body: {
|
|
293
|
+
email: string;
|
|
294
|
+
userToken: string;
|
|
295
|
+
emailVerifyId: string;
|
|
296
|
+
};
|
|
297
|
+
return: any;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
232
300
|
status: {
|
|
233
301
|
/** 管理员更新用户启用状态 */
|
|
234
302
|
post: {
|
|
@@ -252,26 +320,12 @@ export type Api = {
|
|
|
252
320
|
return: any;
|
|
253
321
|
};
|
|
254
322
|
};
|
|
255
|
-
email: {
|
|
256
|
-
/** 用户更新自己的邮箱 */
|
|
257
|
-
post: {
|
|
258
|
-
body: {
|
|
259
|
-
method?: "email" | "phone";
|
|
260
|
-
userToken?: string;
|
|
261
|
-
emailVerifyId?: string;
|
|
262
|
-
email?: string;
|
|
263
|
-
phone?: string;
|
|
264
|
-
code?: string;
|
|
265
|
-
password: string;
|
|
266
|
-
};
|
|
267
|
-
return: any;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
323
|
password: {
|
|
271
324
|
/** 用户更新自己的密码 */
|
|
272
325
|
post: {
|
|
273
326
|
body: {
|
|
274
327
|
password: string;
|
|
328
|
+
oldPassword?: string;
|
|
275
329
|
};
|
|
276
330
|
return: any;
|
|
277
331
|
};
|
|
@@ -281,10 +335,13 @@ export type Api = {
|
|
|
281
335
|
/** 用户主动注销自己的账号 */
|
|
282
336
|
post: {
|
|
283
337
|
body: {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
338
|
+
method?: "email" | "phone";
|
|
339
|
+
password?: string;
|
|
340
|
+
userToken?: string;
|
|
341
|
+
emailVerifyId?: string;
|
|
342
|
+
phone?: string;
|
|
343
|
+
code?: string;
|
|
344
|
+
confirmText: string;
|
|
288
345
|
};
|
|
289
346
|
return: any;
|
|
290
347
|
};
|
|
@@ -319,10 +376,11 @@ export type Api = {
|
|
|
319
376
|
current: number;
|
|
320
377
|
pageSize: number;
|
|
321
378
|
where: {
|
|
379
|
+
keyword?: string;
|
|
322
380
|
id?: string;
|
|
323
381
|
email?: string;
|
|
324
382
|
phone?: string;
|
|
325
|
-
status?: "normal" | "forbidden";
|
|
383
|
+
status?: "normal" | "pending" | "forbidden" | "deleted";
|
|
326
384
|
};
|
|
327
385
|
};
|
|
328
386
|
return: any;
|
|
@@ -444,6 +502,16 @@ export type Api = {
|
|
|
444
502
|
return: any;
|
|
445
503
|
};
|
|
446
504
|
};
|
|
505
|
+
batchByIds: {
|
|
506
|
+
/** 根据 ID 列表批量查询用户(需要 app-id) */
|
|
507
|
+
post: {
|
|
508
|
+
body: {
|
|
509
|
+
userIds: string[];
|
|
510
|
+
appId?: string;
|
|
511
|
+
};
|
|
512
|
+
return: any;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
447
515
|
statistics: {
|
|
448
516
|
/** 获取用户整体统计数据 */
|
|
449
517
|
post: {
|
|
@@ -498,20 +566,32 @@ export type Api = {
|
|
|
498
566
|
post: {
|
|
499
567
|
body: {
|
|
500
568
|
id: string;
|
|
501
|
-
applicationLogo: string;
|
|
502
|
-
description: string;
|
|
503
569
|
name?: string;
|
|
504
570
|
homePageUrl?: string;
|
|
505
571
|
authorizationCallback?: string;
|
|
572
|
+
applicationLogo: string;
|
|
573
|
+
description: string;
|
|
506
574
|
defaultRoleId?: string;
|
|
507
575
|
};
|
|
508
576
|
return: any;
|
|
509
577
|
};
|
|
578
|
+
defaultRoleId: {
|
|
579
|
+
/** 更新新用户注册后的默认角色 */
|
|
580
|
+
post: {
|
|
581
|
+
body: {
|
|
582
|
+
defaultRoleId: string;
|
|
583
|
+
};
|
|
584
|
+
return: any;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
510
587
|
emailConfig: {
|
|
511
588
|
/** 更新应用邮件发送配置 */
|
|
512
589
|
post: {
|
|
513
590
|
body: {
|
|
514
591
|
supportEmail?: string;
|
|
592
|
+
senderDisplayName?: string;
|
|
593
|
+
testEmail?: string;
|
|
594
|
+
testPhone?: string;
|
|
515
595
|
};
|
|
516
596
|
return: any;
|
|
517
597
|
};
|
|
@@ -551,6 +631,46 @@ export type Api = {
|
|
|
551
631
|
return: any;
|
|
552
632
|
};
|
|
553
633
|
};
|
|
634
|
+
authEndpointRatePolicy: {
|
|
635
|
+
/** 更新登录、注册、重置密码与 OAuth 的 IP 限流配置 */
|
|
636
|
+
post: {
|
|
637
|
+
body: {
|
|
638
|
+
login: {
|
|
639
|
+
maxSends: number;
|
|
640
|
+
windowSeconds: number;
|
|
641
|
+
};
|
|
642
|
+
register: {
|
|
643
|
+
maxSends: number;
|
|
644
|
+
windowSeconds: number;
|
|
645
|
+
};
|
|
646
|
+
resetPassword: {
|
|
647
|
+
maxSends: number;
|
|
648
|
+
windowSeconds: number;
|
|
649
|
+
};
|
|
650
|
+
oauth: {
|
|
651
|
+
maxSends: number;
|
|
652
|
+
windowSeconds: number;
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
return: any;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
verifyCodeRatePolicy: {
|
|
659
|
+
/** 更新邮箱/短信验证码发送限流配置 */
|
|
660
|
+
post: {
|
|
661
|
+
body: {
|
|
662
|
+
minIntervalSeconds: number;
|
|
663
|
+
shortWindowSeconds: number;
|
|
664
|
+
shortMaxSends: number;
|
|
665
|
+
dailyWindowSeconds: number;
|
|
666
|
+
dailyMaxSends: number;
|
|
667
|
+
uxCooldownSeconds: number;
|
|
668
|
+
ipWindowSeconds: number;
|
|
669
|
+
ipMaxSends: number;
|
|
670
|
+
};
|
|
671
|
+
return: any;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
554
674
|
signUpAuth: {
|
|
555
675
|
/** 更新用户注册相关配置 */
|
|
556
676
|
post: {
|
|
@@ -560,6 +680,25 @@ export type Api = {
|
|
|
560
680
|
return: any;
|
|
561
681
|
};
|
|
562
682
|
};
|
|
683
|
+
authMethods: {
|
|
684
|
+
/** 配置登录、注册、无密码等认证入口展示与可用性 */
|
|
685
|
+
post: {
|
|
686
|
+
body: {
|
|
687
|
+
login: {
|
|
688
|
+
emailPassword: boolean;
|
|
689
|
+
phonePassword: boolean;
|
|
690
|
+
phoneCode: boolean;
|
|
691
|
+
emailCode: boolean;
|
|
692
|
+
passkey: boolean;
|
|
693
|
+
};
|
|
694
|
+
signUp: {
|
|
695
|
+
email: boolean;
|
|
696
|
+
phone: boolean;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
return: any;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
563
702
|
singleSignOn: {
|
|
564
703
|
/** 更新单点登录 (SSO) 配置 */
|
|
565
704
|
post: {
|
|
@@ -579,6 +718,15 @@ export type Api = {
|
|
|
579
718
|
return: any;
|
|
580
719
|
};
|
|
581
720
|
};
|
|
721
|
+
corsOrigins: {
|
|
722
|
+
/** 配置应用前端域名白名单(用于跨域请求),格式如 https://app.com */
|
|
723
|
+
post: {
|
|
724
|
+
body: {
|
|
725
|
+
allowedOrigins: string[];
|
|
726
|
+
};
|
|
727
|
+
return: any;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
582
730
|
aboutUs: {
|
|
583
731
|
personalInformationCollectionList: {
|
|
584
732
|
/** 更新个人信息收集清单配置 */
|
|
@@ -650,6 +798,7 @@ export type Api = {
|
|
|
650
798
|
pageSize: number;
|
|
651
799
|
where: {
|
|
652
800
|
id?: string;
|
|
801
|
+
keyword?: string;
|
|
653
802
|
name?: string;
|
|
654
803
|
homePageUrl?: string;
|
|
655
804
|
extensions?: Record<string, string>;
|
|
@@ -687,50 +836,113 @@ export type Api = {
|
|
|
687
836
|
return: any;
|
|
688
837
|
};
|
|
689
838
|
};
|
|
839
|
+
newUserDefaultsSettingsInfo: {
|
|
840
|
+
/** 获取注册默认角色与积分奖励展示信息 */
|
|
841
|
+
post: {
|
|
842
|
+
return: any;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
brandSettingsInfo: {
|
|
846
|
+
/** 获取邮件与短信品牌设置信息 */
|
|
847
|
+
post: {
|
|
848
|
+
return: any;
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
securitySettingsInfo: {
|
|
852
|
+
/** 获取域名白名单与会话策略展示信息 */
|
|
853
|
+
post: {
|
|
854
|
+
return: any;
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
brandSettings: {
|
|
858
|
+
sendTestEmail: {
|
|
859
|
+
/** 向指定邮箱发送一封测试验证码邮件 */
|
|
860
|
+
post: {
|
|
861
|
+
body: {
|
|
862
|
+
email: string;
|
|
863
|
+
};
|
|
864
|
+
return: any;
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
sendTestSms: {
|
|
868
|
+
/** 向指定手机号发送一条测试验证码短信 */
|
|
869
|
+
post: {
|
|
870
|
+
body: {
|
|
871
|
+
phone: string;
|
|
872
|
+
};
|
|
873
|
+
return: any;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
};
|
|
690
877
|
emailConfigInfo: {
|
|
691
878
|
/** 获取应用邮件配置信息 */
|
|
692
879
|
post: {
|
|
693
880
|
return: any;
|
|
694
881
|
};
|
|
695
882
|
};
|
|
883
|
+
authMethods: {
|
|
884
|
+
impact: {
|
|
885
|
+
/** 统计配置变更后将无法登录的用户数量 */
|
|
886
|
+
post: {
|
|
887
|
+
body: {
|
|
888
|
+
login: {
|
|
889
|
+
emailPassword: boolean;
|
|
890
|
+
phonePassword: boolean;
|
|
891
|
+
phoneCode: boolean;
|
|
892
|
+
emailCode: boolean;
|
|
893
|
+
passkey: boolean;
|
|
894
|
+
};
|
|
895
|
+
signUp: {
|
|
896
|
+
email: boolean;
|
|
897
|
+
phone: boolean;
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
return: any;
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
696
904
|
};
|
|
697
|
-
|
|
905
|
+
orgs: {
|
|
698
906
|
create: {
|
|
699
|
-
/**
|
|
907
|
+
/** 供 ones-server 和外部应用创建组织(需要 API Key 认证) */
|
|
700
908
|
post: {
|
|
701
909
|
body: {
|
|
702
910
|
name: string;
|
|
703
911
|
domain: string;
|
|
704
912
|
email: string;
|
|
913
|
+
creatorId: string;
|
|
705
914
|
};
|
|
706
915
|
return: any;
|
|
707
916
|
};
|
|
708
917
|
};
|
|
709
918
|
delete: {
|
|
710
|
-
/**
|
|
919
|
+
/** 供 ones-server 和外部应用删除组织(需要 API Key 认证) */
|
|
711
920
|
post: {
|
|
712
921
|
body: {
|
|
713
922
|
id: string;
|
|
923
|
+
operatorId: string;
|
|
714
924
|
};
|
|
715
925
|
return: any;
|
|
716
926
|
};
|
|
717
927
|
};
|
|
718
928
|
update: {
|
|
719
|
-
/**
|
|
929
|
+
/** 供 ones-server 和外部应用更新组织信息(需要 API Key 认证) */
|
|
720
930
|
post: {
|
|
721
931
|
body: {
|
|
722
932
|
id: string;
|
|
723
933
|
name: string;
|
|
724
934
|
domain: string;
|
|
725
935
|
email: string;
|
|
936
|
+
operatorId: string;
|
|
726
937
|
};
|
|
727
938
|
return: any;
|
|
728
939
|
};
|
|
729
940
|
};
|
|
730
941
|
find: {
|
|
731
|
-
/**
|
|
942
|
+
/** 供 ones-server 和外部应用分页查询组织列表(需要 API Key 认证) */
|
|
732
943
|
post: {
|
|
733
944
|
body: {
|
|
945
|
+
userId: string;
|
|
734
946
|
current: number;
|
|
735
947
|
pageSize: number;
|
|
736
948
|
where?: {
|
|
@@ -743,13 +955,16 @@ export type Api = {
|
|
|
743
955
|
};
|
|
744
956
|
};
|
|
745
957
|
findAll: {
|
|
746
|
-
/**
|
|
958
|
+
/** 供 ones-server 和外部应用获取用户的所有组织(需要 API Key 认证) */
|
|
747
959
|
post: {
|
|
960
|
+
body: {
|
|
961
|
+
userId: string;
|
|
962
|
+
};
|
|
748
963
|
return: any;
|
|
749
964
|
};
|
|
750
965
|
};
|
|
751
966
|
findOne: {
|
|
752
|
-
/**
|
|
967
|
+
/** 供 ones-server 和外部应用获取组织详情(需要 API Key 认证) */
|
|
753
968
|
post: {
|
|
754
969
|
body: {
|
|
755
970
|
id: string;
|
|
@@ -758,52 +973,57 @@ export type Api = {
|
|
|
758
973
|
};
|
|
759
974
|
};
|
|
760
975
|
addMember: {
|
|
761
|
-
/**
|
|
976
|
+
/** 供 ones-server 和外部应用添加组织成员(需要 API Key 认证) */
|
|
762
977
|
post: {
|
|
763
978
|
body: {
|
|
764
979
|
organizationId: string;
|
|
765
980
|
userId: string;
|
|
766
981
|
role?: "admin" | "member";
|
|
982
|
+
operatorId: string;
|
|
767
983
|
};
|
|
768
984
|
return: any;
|
|
769
985
|
};
|
|
770
986
|
};
|
|
771
987
|
removeMember: {
|
|
772
|
-
/**
|
|
988
|
+
/** 供 ones-server 和外部应用移除组织成员(需要 API Key 认证) */
|
|
773
989
|
post: {
|
|
774
990
|
body: {
|
|
775
991
|
organizationId: string;
|
|
776
992
|
userId: string;
|
|
993
|
+
operatorId: string;
|
|
777
994
|
};
|
|
778
995
|
return: any;
|
|
779
996
|
};
|
|
780
997
|
};
|
|
781
998
|
updateMemberRole: {
|
|
782
|
-
/**
|
|
999
|
+
/** 供 ones-server 和外部应用更新组织成员角色(需要 API Key 认证) */
|
|
783
1000
|
post: {
|
|
784
1001
|
body: {
|
|
785
1002
|
organizationId: string;
|
|
786
1003
|
userId: string;
|
|
787
1004
|
role: "admin" | "member";
|
|
1005
|
+
operatorId: string;
|
|
788
1006
|
};
|
|
789
1007
|
return: any;
|
|
790
1008
|
};
|
|
791
1009
|
};
|
|
792
1010
|
getMembers: {
|
|
793
|
-
/**
|
|
1011
|
+
/** 供 ones-server 和外部应用获取组织成员列表(需要 API Key 认证) */
|
|
794
1012
|
post: {
|
|
795
1013
|
body: {
|
|
796
1014
|
organizationId: string;
|
|
1015
|
+
userId: string;
|
|
797
1016
|
};
|
|
798
1017
|
return: any;
|
|
799
1018
|
};
|
|
800
1019
|
};
|
|
801
1020
|
addApp: {
|
|
802
|
-
/**
|
|
1021
|
+
/** 供 ones-server 和外部应用将应用关联到组织(需要 API Key 认证) */
|
|
803
1022
|
post: {
|
|
804
1023
|
body: {
|
|
805
1024
|
organizationId: string;
|
|
806
1025
|
appId: string;
|
|
1026
|
+
operatorId: string;
|
|
807
1027
|
};
|
|
808
1028
|
return: any;
|
|
809
1029
|
};
|
|
@@ -817,6 +1037,84 @@ export type Api = {
|
|
|
817
1037
|
return: any;
|
|
818
1038
|
};
|
|
819
1039
|
};
|
|
1040
|
+
findByApp: {
|
|
1041
|
+
/** 供 ones-server 和外部应用根据应用ID查找所属组织(需要 API Key 认证) */
|
|
1042
|
+
post: {
|
|
1043
|
+
body: {
|
|
1044
|
+
appId: string;
|
|
1045
|
+
};
|
|
1046
|
+
return: any;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
permission: {
|
|
1051
|
+
check: {
|
|
1052
|
+
/** 检查用户是否有指定权限 */
|
|
1053
|
+
post: {
|
|
1054
|
+
body: {
|
|
1055
|
+
userId: string;
|
|
1056
|
+
roleId: string;
|
|
1057
|
+
appId: string;
|
|
1058
|
+
permission: string;
|
|
1059
|
+
};
|
|
1060
|
+
return: any;
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
checkAny: {
|
|
1064
|
+
/** 检查用户是否有任一指定权限 */
|
|
1065
|
+
post: {
|
|
1066
|
+
body: {
|
|
1067
|
+
userId: string;
|
|
1068
|
+
roleId: string;
|
|
1069
|
+
appId: string;
|
|
1070
|
+
permissions: string[];
|
|
1071
|
+
};
|
|
1072
|
+
return: any;
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
checkAll: {
|
|
1076
|
+
/** 检查用户是否有所有指定权限 */
|
|
1077
|
+
post: {
|
|
1078
|
+
body: {
|
|
1079
|
+
userId: string;
|
|
1080
|
+
roleId: string;
|
|
1081
|
+
appId: string;
|
|
1082
|
+
permissions: string[];
|
|
1083
|
+
};
|
|
1084
|
+
return: any;
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
getUserPermissions: {
|
|
1088
|
+
/** 获取用户的所有权限列表 */
|
|
1089
|
+
post: {
|
|
1090
|
+
body: {
|
|
1091
|
+
userId: string;
|
|
1092
|
+
roleId: string;
|
|
1093
|
+
appId: string;
|
|
1094
|
+
};
|
|
1095
|
+
return: any;
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
checkOrgAdmin: {
|
|
1099
|
+
/** 检查用户是否是 app 所属组织的管理员(创建者或管理员) */
|
|
1100
|
+
post: {
|
|
1101
|
+
body: {
|
|
1102
|
+
userId: string;
|
|
1103
|
+
appId: string;
|
|
1104
|
+
};
|
|
1105
|
+
return: any;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
getOrgRole: {
|
|
1109
|
+
/** 获取用户在 app 所属组织中的角色信息 */
|
|
1110
|
+
post: {
|
|
1111
|
+
body: {
|
|
1112
|
+
userId: string;
|
|
1113
|
+
appId: string;
|
|
1114
|
+
};
|
|
1115
|
+
return: any;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
820
1118
|
};
|
|
821
1119
|
oauth: {
|
|
822
1120
|
github: {
|
|
@@ -828,6 +1126,7 @@ export type Api = {
|
|
|
828
1126
|
inviteCode?: string;
|
|
829
1127
|
redirectUri?: string;
|
|
830
1128
|
mode?: "login" | "bind";
|
|
1129
|
+
acceptedTerms?: boolean;
|
|
831
1130
|
};
|
|
832
1131
|
return: any;
|
|
833
1132
|
};
|
|
@@ -852,6 +1151,7 @@ export type Api = {
|
|
|
852
1151
|
inviteCode?: string;
|
|
853
1152
|
redirectUri?: string;
|
|
854
1153
|
mode?: "login" | "bind";
|
|
1154
|
+
acceptedTerms?: boolean;
|
|
855
1155
|
};
|
|
856
1156
|
return: any;
|
|
857
1157
|
};
|
|
@@ -876,6 +1176,7 @@ export type Api = {
|
|
|
876
1176
|
inviteCode?: string;
|
|
877
1177
|
redirectUri?: string;
|
|
878
1178
|
mode?: "login" | "bind";
|
|
1179
|
+
acceptedTerms?: boolean;
|
|
879
1180
|
};
|
|
880
1181
|
return: any;
|
|
881
1182
|
};
|
|
@@ -884,8 +1185,10 @@ export type Api = {
|
|
|
884
1185
|
/** Microsoft 授权回调 */
|
|
885
1186
|
get: {
|
|
886
1187
|
query: {
|
|
887
|
-
code
|
|
1188
|
+
code?: string;
|
|
888
1189
|
state: string;
|
|
1190
|
+
error?: string;
|
|
1191
|
+
error_description?: string;
|
|
889
1192
|
};
|
|
890
1193
|
return: any;
|
|
891
1194
|
};
|
|
@@ -900,6 +1203,7 @@ export type Api = {
|
|
|
900
1203
|
inviteCode?: string;
|
|
901
1204
|
redirectUri?: string;
|
|
902
1205
|
mode?: "login" | "bind";
|
|
1206
|
+
acceptedTerms?: boolean;
|
|
903
1207
|
};
|
|
904
1208
|
return: any;
|
|
905
1209
|
};
|
|
@@ -997,6 +1301,7 @@ export type Api = {
|
|
|
997
1301
|
inviteCode?: string;
|
|
998
1302
|
userToken: string;
|
|
999
1303
|
emailVerifyId: string;
|
|
1304
|
+
acceptedTerms: boolean;
|
|
1000
1305
|
};
|
|
1001
1306
|
return: any;
|
|
1002
1307
|
};
|
|
@@ -1008,6 +1313,7 @@ export type Api = {
|
|
|
1008
1313
|
code: string;
|
|
1009
1314
|
password?: string;
|
|
1010
1315
|
inviteCode?: string;
|
|
1316
|
+
acceptedTerms: boolean;
|
|
1011
1317
|
};
|
|
1012
1318
|
return: any;
|
|
1013
1319
|
};
|
|
@@ -1216,7 +1522,7 @@ export type Api = {
|
|
|
1216
1522
|
post: {
|
|
1217
1523
|
body: {
|
|
1218
1524
|
phone: string;
|
|
1219
|
-
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
1525
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword" | "deleteAccount";
|
|
1220
1526
|
};
|
|
1221
1527
|
return: any;
|
|
1222
1528
|
};
|
|
@@ -1227,7 +1533,7 @@ export type Api = {
|
|
|
1227
1533
|
body: {
|
|
1228
1534
|
phone: string;
|
|
1229
1535
|
code: string;
|
|
1230
|
-
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
1536
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword" | "deleteAccount";
|
|
1231
1537
|
};
|
|
1232
1538
|
return: any;
|
|
1233
1539
|
};
|
|
@@ -1388,24 +1694,20 @@ export type Api = {
|
|
|
1388
1694
|
};
|
|
1389
1695
|
};
|
|
1390
1696
|
};
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1697
|
+
organizations: {
|
|
1698
|
+
create: {
|
|
1699
|
+
/** 创建新的组织 */
|
|
1394
1700
|
post: {
|
|
1395
1701
|
body: {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
referrerId?: string;
|
|
1400
|
-
referrerEmail?: string;
|
|
1401
|
-
referrerPhone?: string;
|
|
1402
|
-
};
|
|
1702
|
+
name: string;
|
|
1703
|
+
domain: string;
|
|
1704
|
+
email: string;
|
|
1403
1705
|
};
|
|
1404
1706
|
return: any;
|
|
1405
1707
|
};
|
|
1406
1708
|
};
|
|
1407
|
-
|
|
1408
|
-
/**
|
|
1709
|
+
delete: {
|
|
1710
|
+
/** 删除指定组织 */
|
|
1409
1711
|
post: {
|
|
1410
1712
|
body: {
|
|
1411
1713
|
id: string;
|
|
@@ -1413,18 +1715,41 @@ export type Api = {
|
|
|
1413
1715
|
return: any;
|
|
1414
1716
|
};
|
|
1415
1717
|
};
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1718
|
+
update: {
|
|
1719
|
+
/** 更新组织信息 */
|
|
1720
|
+
post: {
|
|
1721
|
+
body: {
|
|
1722
|
+
id: string;
|
|
1723
|
+
name: string;
|
|
1724
|
+
domain: string;
|
|
1725
|
+
email: string;
|
|
1726
|
+
};
|
|
1727
|
+
return: any;
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
find: {
|
|
1731
|
+
/** 分页查询组织列表 */
|
|
1418
1732
|
post: {
|
|
1419
1733
|
body: {
|
|
1420
1734
|
current: number;
|
|
1421
1735
|
pageSize: number;
|
|
1736
|
+
where?: {
|
|
1737
|
+
name?: string;
|
|
1738
|
+
domain?: string;
|
|
1739
|
+
email?: string;
|
|
1740
|
+
};
|
|
1422
1741
|
};
|
|
1423
1742
|
return: any;
|
|
1424
1743
|
};
|
|
1425
1744
|
};
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1745
|
+
findAll: {
|
|
1746
|
+
/** 获取当前用户的所有组织 */
|
|
1747
|
+
post: {
|
|
1748
|
+
return: any;
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
findOne: {
|
|
1752
|
+
/** 根据 ID 获取组织详情 */
|
|
1428
1753
|
post: {
|
|
1429
1754
|
body: {
|
|
1430
1755
|
id: string;
|
|
@@ -1432,36 +1757,121 @@ export type Api = {
|
|
|
1432
1757
|
return: any;
|
|
1433
1758
|
};
|
|
1434
1759
|
};
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1760
|
+
addMember: {
|
|
1761
|
+
/** 添加用户到组织 */
|
|
1437
1762
|
post: {
|
|
1763
|
+
body: {
|
|
1764
|
+
organizationId: string;
|
|
1765
|
+
userId: string;
|
|
1766
|
+
role?: "admin" | "member";
|
|
1767
|
+
};
|
|
1438
1768
|
return: any;
|
|
1439
1769
|
};
|
|
1440
1770
|
};
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1771
|
+
removeMember: {
|
|
1772
|
+
/** 从组织中移除用户 */
|
|
1443
1773
|
post: {
|
|
1444
1774
|
body: {
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1775
|
+
organizationId: string;
|
|
1776
|
+
userId: string;
|
|
1777
|
+
};
|
|
1778
|
+
return: any;
|
|
1779
|
+
};
|
|
1780
|
+
};
|
|
1781
|
+
updateMemberRole: {
|
|
1782
|
+
/** 更新组织成员的角色 */
|
|
1783
|
+
post: {
|
|
1784
|
+
body: {
|
|
1785
|
+
organizationId: string;
|
|
1786
|
+
userId: string;
|
|
1787
|
+
role: "admin" | "member";
|
|
1788
|
+
};
|
|
1789
|
+
return: any;
|
|
1790
|
+
};
|
|
1791
|
+
};
|
|
1792
|
+
getMembers: {
|
|
1793
|
+
/** 获取指定组织的成员列表 */
|
|
1794
|
+
post: {
|
|
1795
|
+
body: {
|
|
1796
|
+
organizationId: string;
|
|
1797
|
+
};
|
|
1798
|
+
return: any;
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1801
|
+
addApp: {
|
|
1802
|
+
/** 将应用关联到组织 */
|
|
1803
|
+
post: {
|
|
1804
|
+
body: {
|
|
1805
|
+
organizationId: string;
|
|
1806
|
+
appId: string;
|
|
1448
1807
|
};
|
|
1449
1808
|
return: any;
|
|
1450
1809
|
};
|
|
1451
1810
|
};
|
|
1452
|
-
|
|
1453
|
-
|
|
1811
|
+
};
|
|
1812
|
+
referrer: {
|
|
1813
|
+
find: {
|
|
1814
|
+
/** 分页查询邀请关系列表 */
|
|
1815
|
+
post: {
|
|
1816
|
+
body: {
|
|
1817
|
+
current: number;
|
|
1818
|
+
pageSize: number;
|
|
1819
|
+
where: {
|
|
1820
|
+
referrerId?: string;
|
|
1821
|
+
refereeId?: string;
|
|
1822
|
+
referrerKeyword?: string;
|
|
1823
|
+
refereeKeyword?: string;
|
|
1824
|
+
inviteCode?: string;
|
|
1825
|
+
distributionChannel?: string;
|
|
1826
|
+
registerMethod?: string;
|
|
1827
|
+
registerSource?: string;
|
|
1828
|
+
rewardStatus?: string;
|
|
1829
|
+
};
|
|
1830
|
+
};
|
|
1831
|
+
return: any;
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
findOne: {
|
|
1835
|
+
/** 根据 ID 查询邀请关系详情 */
|
|
1836
|
+
post: {
|
|
1837
|
+
body: {
|
|
1838
|
+
id: string;
|
|
1839
|
+
};
|
|
1840
|
+
return: any;
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
referees: {
|
|
1844
|
+
/** 查询指定邀请人的被邀请用户列表 */
|
|
1845
|
+
post: {
|
|
1846
|
+
body: {
|
|
1847
|
+
current: number;
|
|
1848
|
+
pageSize: number;
|
|
1849
|
+
referrerId?: string;
|
|
1850
|
+
};
|
|
1851
|
+
return: any;
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
delete: {
|
|
1855
|
+
/** 删除邀请关系记录 */
|
|
1856
|
+
post: {
|
|
1857
|
+
body: {
|
|
1858
|
+
id: string;
|
|
1859
|
+
};
|
|
1860
|
+
return: any;
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
getReferrerStatistics: {
|
|
1864
|
+
/** 按时间范围获取邀请统计数据 */
|
|
1454
1865
|
post: {
|
|
1455
1866
|
body: {
|
|
1456
1867
|
startTime: string;
|
|
1457
1868
|
endTime: string;
|
|
1458
|
-
granularity: "minute" | "hour" | "day" | "month" | "year";
|
|
1459
1869
|
};
|
|
1460
1870
|
return: any;
|
|
1461
1871
|
};
|
|
1462
1872
|
};
|
|
1463
|
-
|
|
1464
|
-
/**
|
|
1873
|
+
getReferralCountChart: {
|
|
1874
|
+
/** 获取推荐数量趋势图表 */
|
|
1465
1875
|
post: {
|
|
1466
1876
|
body: {
|
|
1467
1877
|
startTime: string;
|
|
@@ -1471,8 +1881,8 @@ export type Api = {
|
|
|
1471
1881
|
return: any;
|
|
1472
1882
|
};
|
|
1473
1883
|
};
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1884
|
+
getAvgReferralsChart: {
|
|
1885
|
+
/** 获取平均推荐数趋势图表 */
|
|
1476
1886
|
post: {
|
|
1477
1887
|
body: {
|
|
1478
1888
|
startTime: string;
|
|
@@ -1482,13 +1892,12 @@ export type Api = {
|
|
|
1482
1892
|
return: any;
|
|
1483
1893
|
};
|
|
1484
1894
|
};
|
|
1485
|
-
|
|
1486
|
-
/**
|
|
1895
|
+
getRegistrationInsights: {
|
|
1896
|
+
/** 按时间范围统计新注册用户邀请占比,以及被邀请用户的投放渠道、注册方式、注册来源占比 */
|
|
1487
1897
|
post: {
|
|
1488
1898
|
body: {
|
|
1489
1899
|
startTime: string;
|
|
1490
1900
|
endTime: string;
|
|
1491
|
-
granularity: "minute" | "hour" | "day" | "month" | "year";
|
|
1492
1901
|
};
|
|
1493
1902
|
return: any;
|
|
1494
1903
|
};
|
|
@@ -1532,10 +1941,28 @@ export type Api = {
|
|
|
1532
1941
|
return: any;
|
|
1533
1942
|
};
|
|
1534
1943
|
};
|
|
1944
|
+
delete: {
|
|
1945
|
+
/** 删除单条认证审计日志 */
|
|
1946
|
+
post: {
|
|
1947
|
+
body: {
|
|
1948
|
+
id: string;
|
|
1949
|
+
};
|
|
1950
|
+
return: any;
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
batchDelete: {
|
|
1954
|
+
/** 批量删除认证审计日志 */
|
|
1955
|
+
post: {
|
|
1956
|
+
body: {
|
|
1957
|
+
ids: string[];
|
|
1958
|
+
};
|
|
1959
|
+
return: any;
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1535
1962
|
};
|
|
1536
1963
|
inviteCodes: {
|
|
1537
1964
|
create: {
|
|
1538
|
-
/**
|
|
1965
|
+
/** 创建运营投放邀请码 */
|
|
1539
1966
|
post: {
|
|
1540
1967
|
body: {
|
|
1541
1968
|
name: string;
|
|
@@ -1630,11 +2057,17 @@ export type Api = {
|
|
|
1630
2057
|
/** 获取 IP 黑白名单规则列表 */
|
|
1631
2058
|
post: {
|
|
1632
2059
|
body: {
|
|
1633
|
-
appId?: string;
|
|
1634
2060
|
type?: "whitelist" | "blacklist";
|
|
1635
2061
|
ip?: string;
|
|
2062
|
+
description?: string;
|
|
2063
|
+
enabled?: boolean;
|
|
2064
|
+
source?: "manual" | "auto";
|
|
2065
|
+
expiresInMinutes?: number;
|
|
2066
|
+
expireStatus?: "permanent" | "active" | "expired";
|
|
1636
2067
|
startTime?: string;
|
|
1637
2068
|
endTime?: string;
|
|
2069
|
+
expireStartTime?: string;
|
|
2070
|
+
expireEndTime?: string;
|
|
1638
2071
|
page?: number;
|
|
1639
2072
|
pageSize?: number;
|
|
1640
2073
|
};
|
|
@@ -1645,11 +2078,12 @@ export type Api = {
|
|
|
1645
2078
|
/** 添加 IP 黑白名单规则 */
|
|
1646
2079
|
post: {
|
|
1647
2080
|
body: {
|
|
1648
|
-
appId?: string;
|
|
1649
2081
|
ip: string;
|
|
1650
2082
|
type: "whitelist" | "blacklist";
|
|
1651
|
-
|
|
2083
|
+
source?: "manual" | "auto";
|
|
2084
|
+
description?: string;
|
|
1652
2085
|
expiresInMinutes?: number;
|
|
2086
|
+
enabled?: boolean;
|
|
1653
2087
|
};
|
|
1654
2088
|
return: any;
|
|
1655
2089
|
};
|
|
@@ -1663,14 +2097,38 @@ export type Api = {
|
|
|
1663
2097
|
return: any;
|
|
1664
2098
|
};
|
|
1665
2099
|
};
|
|
2100
|
+
update: {
|
|
2101
|
+
/** 更新 IP 黑白名单规则 */
|
|
2102
|
+
post: {
|
|
2103
|
+
body: {
|
|
2104
|
+
id: string;
|
|
2105
|
+
ip?: string;
|
|
2106
|
+
type?: "whitelist" | "blacklist";
|
|
2107
|
+
source?: "manual" | "auto";
|
|
2108
|
+
description?: string;
|
|
2109
|
+
enabled?: boolean;
|
|
2110
|
+
expiresInMinutes?: number;
|
|
2111
|
+
};
|
|
2112
|
+
return: any;
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
setEnabled: {
|
|
2116
|
+
/** 启用或停用 IP 黑白名单规则 */
|
|
2117
|
+
post: {
|
|
2118
|
+
body: {
|
|
2119
|
+
id: string;
|
|
2120
|
+
enabled: boolean;
|
|
2121
|
+
};
|
|
2122
|
+
return: any;
|
|
2123
|
+
};
|
|
2124
|
+
};
|
|
1666
2125
|
block: {
|
|
1667
2126
|
/** 将 IP 加入黑名单 */
|
|
1668
2127
|
post: {
|
|
1669
2128
|
body: {
|
|
1670
2129
|
ip: string;
|
|
1671
|
-
|
|
2130
|
+
description: string;
|
|
1672
2131
|
durationMinutes?: number;
|
|
1673
|
-
appId?: string;
|
|
1674
2132
|
};
|
|
1675
2133
|
return: any;
|
|
1676
2134
|
};
|
|
@@ -1680,18 +2138,62 @@ export type Api = {
|
|
|
1680
2138
|
post: {
|
|
1681
2139
|
body: {
|
|
1682
2140
|
ip: string;
|
|
1683
|
-
appId?: string;
|
|
1684
2141
|
};
|
|
1685
2142
|
return: any;
|
|
1686
2143
|
};
|
|
1687
2144
|
};
|
|
2145
|
+
denyLogs: {
|
|
2146
|
+
list: {
|
|
2147
|
+
/** 分页获取 IP 黑白名单拦截审计日志 */
|
|
2148
|
+
post: {
|
|
2149
|
+
body: {
|
|
2150
|
+
clientIp?: string;
|
|
2151
|
+
path?: string;
|
|
2152
|
+
method?: string;
|
|
2153
|
+
traceId?: string;
|
|
2154
|
+
startTime?: string;
|
|
2155
|
+
endTime?: string;
|
|
2156
|
+
page?: number;
|
|
2157
|
+
pageSize?: number;
|
|
2158
|
+
};
|
|
2159
|
+
return: any;
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
stats: {
|
|
2163
|
+
/** 获取 IP 拦截审计统计数据 */
|
|
2164
|
+
post: {
|
|
2165
|
+
body: {
|
|
2166
|
+
startTime?: string;
|
|
2167
|
+
endTime?: string;
|
|
2168
|
+
};
|
|
2169
|
+
return: any;
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
delete: {
|
|
2173
|
+
/** 删除单条 IP 拦截审计日志 */
|
|
2174
|
+
post: {
|
|
2175
|
+
body: {
|
|
2176
|
+
id: string;
|
|
2177
|
+
};
|
|
2178
|
+
return: any;
|
|
2179
|
+
};
|
|
2180
|
+
};
|
|
2181
|
+
batchDelete: {
|
|
2182
|
+
/** 批量删除 IP 拦截审计日志 */
|
|
2183
|
+
post: {
|
|
2184
|
+
body: {
|
|
2185
|
+
ids: string[];
|
|
2186
|
+
};
|
|
2187
|
+
return: any;
|
|
2188
|
+
};
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
1688
2191
|
};
|
|
1689
2192
|
alerts: {
|
|
1690
2193
|
list: {
|
|
1691
2194
|
/** 获取可疑登录告警列表 */
|
|
1692
2195
|
post: {
|
|
1693
2196
|
body: {
|
|
1694
|
-
appId?: string;
|
|
1695
2197
|
type?: string;
|
|
1696
2198
|
riskLevel?: "low" | "medium" | "high" | "critical";
|
|
1697
2199
|
resolved?: boolean;
|
|
@@ -1703,11 +2205,39 @@ export type Api = {
|
|
|
1703
2205
|
return: any;
|
|
1704
2206
|
};
|
|
1705
2207
|
};
|
|
2208
|
+
detail: {
|
|
2209
|
+
/** 获取安全告警详情,IP 级告警包含近期尝试的邮箱/手机号样本 */
|
|
2210
|
+
post: {
|
|
2211
|
+
body: {
|
|
2212
|
+
alertId: string;
|
|
2213
|
+
};
|
|
2214
|
+
return: any;
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
1706
2217
|
resolve: {
|
|
1707
2218
|
/** 标记安全告警为已处理 */
|
|
1708
2219
|
post: {
|
|
1709
2220
|
body: {
|
|
1710
2221
|
alertId: string;
|
|
2222
|
+
description: string;
|
|
2223
|
+
};
|
|
2224
|
+
return: any;
|
|
2225
|
+
};
|
|
2226
|
+
};
|
|
2227
|
+
delete: {
|
|
2228
|
+
/** 删除单条威胁告警记录 */
|
|
2229
|
+
post: {
|
|
2230
|
+
body: {
|
|
2231
|
+
id: string;
|
|
2232
|
+
};
|
|
2233
|
+
return: any;
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
batchDelete: {
|
|
2237
|
+
/** 批量删除威胁告警记录 */
|
|
2238
|
+
post: {
|
|
2239
|
+
body: {
|
|
2240
|
+
ids: string[];
|
|
1711
2241
|
};
|
|
1712
2242
|
return: any;
|
|
1713
2243
|
};
|
|
@@ -1716,20 +2246,90 @@ export type Api = {
|
|
|
1716
2246
|
/** 获取安全告警统计数据 */
|
|
1717
2247
|
post: {
|
|
1718
2248
|
body: {
|
|
1719
|
-
appId?: string;
|
|
1720
2249
|
startTime?: string;
|
|
1721
2250
|
endTime?: string;
|
|
1722
2251
|
};
|
|
1723
2252
|
return: any;
|
|
1724
2253
|
};
|
|
1725
2254
|
};
|
|
2255
|
+
getDevTestConfig: {
|
|
2256
|
+
/** 读取当前用户在当前应用下的威胁告警测试通知表单配置 */
|
|
2257
|
+
post: {
|
|
2258
|
+
body: Record<string, unknown>;
|
|
2259
|
+
return: any;
|
|
2260
|
+
};
|
|
2261
|
+
};
|
|
2262
|
+
saveDevTestConfig: {
|
|
2263
|
+
/** 保存当前用户在当前应用下的威胁告警测试通知表单配置 */
|
|
2264
|
+
post: {
|
|
2265
|
+
body: {
|
|
2266
|
+
notificationPreview?: {
|
|
2267
|
+
notificationGroupIds: string[];
|
|
2268
|
+
type: "brute_force" | "multiple_failed" | "unusual_location" | "new_device" | "unusual_time" | "account_enumeration" | "credential_stuffing";
|
|
2269
|
+
riskLevel: "low" | "medium" | "high" | "critical";
|
|
2270
|
+
clientIp: string;
|
|
2271
|
+
email?: string;
|
|
2272
|
+
userId?: string;
|
|
2273
|
+
autoBlocked: boolean;
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
return: any;
|
|
2277
|
+
};
|
|
2278
|
+
};
|
|
2279
|
+
sendNotificationPreview: {
|
|
2280
|
+
/** 使用预制表单参数发送威胁告警测试通知,预览邮件与 Webhook 样式,不产生告警记录 */
|
|
2281
|
+
post: {
|
|
2282
|
+
body: {
|
|
2283
|
+
notificationGroupIds: string[];
|
|
2284
|
+
type: "brute_force" | "multiple_failed" | "unusual_location" | "new_device" | "unusual_time" | "account_enumeration" | "credential_stuffing";
|
|
2285
|
+
riskLevel: "low" | "medium" | "high" | "critical";
|
|
2286
|
+
clientIp: string;
|
|
2287
|
+
email?: string;
|
|
2288
|
+
userId?: string;
|
|
2289
|
+
autoBlocked: boolean;
|
|
2290
|
+
};
|
|
2291
|
+
return: any;
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
1726
2294
|
};
|
|
1727
2295
|
detection: {
|
|
1728
2296
|
config: {
|
|
1729
|
-
/**
|
|
2297
|
+
/** 获取当前应用的可疑登录检测配置 */
|
|
1730
2298
|
get: {
|
|
1731
2299
|
return: any;
|
|
1732
2300
|
};
|
|
2301
|
+
/** 更新当前应用的可疑登录检测配置 */
|
|
2302
|
+
post: {
|
|
2303
|
+
body: {
|
|
2304
|
+
bruteForceWindowMinutes?: number;
|
|
2305
|
+
bruteForceThreshold?: number;
|
|
2306
|
+
bruteForceAutoBlock?: boolean;
|
|
2307
|
+
bruteForceBlockDurationMinutes?: number;
|
|
2308
|
+
multipleFailedWindowMinutes?: number;
|
|
2309
|
+
multipleFailedThreshold?: number;
|
|
2310
|
+
accountEnumWindowMinutes?: number;
|
|
2311
|
+
accountEnumThreshold?: number;
|
|
2312
|
+
accountEnumAutoBlock?: boolean;
|
|
2313
|
+
accountEnumBlockDurationMinutes?: number;
|
|
2314
|
+
credentialStuffingWindowMinutes?: number;
|
|
2315
|
+
credentialStuffingThreshold?: number;
|
|
2316
|
+
credentialStuffingAutoBlock?: boolean;
|
|
2317
|
+
credentialStuffingBlockDurationMinutes?: number;
|
|
2318
|
+
unusualTimeStart?: number;
|
|
2319
|
+
unusualTimeEnd?: number;
|
|
2320
|
+
sampleAccountLimit?: number;
|
|
2321
|
+
securityAlertNotificationGroupIds?: string[];
|
|
2322
|
+
};
|
|
2323
|
+
return: any;
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
system: {
|
|
2329
|
+
dataRetentionPolicy: {
|
|
2330
|
+
/** 获取 auth-server 认证安全数据保留策略配置 */
|
|
2331
|
+
post: {
|
|
2332
|
+
return: any;
|
|
1733
2333
|
};
|
|
1734
2334
|
};
|
|
1735
2335
|
};
|
|
@@ -1760,12 +2360,44 @@ export type Api = {
|
|
|
1760
2360
|
/** API 客户端类型(提供完整的 IDE 智能提示) */
|
|
1761
2361
|
export interface ApiClient {
|
|
1762
2362
|
health: {
|
|
1763
|
-
|
|
1764
|
-
|
|
2363
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2364
|
+
live: {
|
|
2365
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2366
|
+
};
|
|
2367
|
+
ready: {
|
|
2368
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2369
|
+
};
|
|
1765
2370
|
};
|
|
1766
2371
|
'api-spec': {
|
|
1767
|
-
|
|
1768
|
-
|
|
2372
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2373
|
+
};
|
|
2374
|
+
internal: {
|
|
2375
|
+
stats: {
|
|
2376
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2377
|
+
};
|
|
2378
|
+
corsAllowedOrigins: {
|
|
2379
|
+
/** 供微服务拉取应用配置的 CORS Origin 白名单(需 API Key 认证) */
|
|
2380
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2381
|
+
};
|
|
2382
|
+
apps: {
|
|
2383
|
+
allowedOrigins: {
|
|
2384
|
+
/** 供微服务按 appId 获取 oauth.allowedOrigins(需 API Key 认证) */
|
|
2385
|
+
post: (body: {
|
|
2386
|
+
appId: string;
|
|
2387
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
users: {
|
|
2391
|
+
list: {
|
|
2392
|
+
/** 供微服务按 appId 分页查询用户列表(需 API Key 认证) */
|
|
2393
|
+
post: (body: {
|
|
2394
|
+
appId: string;
|
|
2395
|
+
page?: number;
|
|
2396
|
+
pageSize?: number;
|
|
2397
|
+
status?: string;
|
|
2398
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
1769
2401
|
};
|
|
1770
2402
|
apiKeys: {
|
|
1771
2403
|
verify: {
|
|
@@ -1773,7 +2405,7 @@ export interface ApiClient {
|
|
|
1773
2405
|
post: (body: {
|
|
1774
2406
|
apiKeyId: string;
|
|
1775
2407
|
secretKey: string;
|
|
1776
|
-
}, config?: RequestConfig) =>
|
|
2408
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1777
2409
|
};
|
|
1778
2410
|
create: {
|
|
1779
2411
|
/** 创建新的 API Key */
|
|
@@ -1782,7 +2414,7 @@ export interface ApiClient {
|
|
|
1782
2414
|
description?: string;
|
|
1783
2415
|
expiration: "permanent" | "1h" | "1d" | "7d" | "30d" | "90d" | "180d" | "1y";
|
|
1784
2416
|
permissions?: string[];
|
|
1785
|
-
}, config?: RequestConfig) =>
|
|
2417
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1786
2418
|
};
|
|
1787
2419
|
update: {
|
|
1788
2420
|
/** 更新 API Key 信息 */
|
|
@@ -1790,13 +2422,13 @@ export interface ApiClient {
|
|
|
1790
2422
|
id: string;
|
|
1791
2423
|
name: string;
|
|
1792
2424
|
expiration: "permanent" | "1h" | "1d" | "7d" | "30d" | "90d" | "180d" | "1y";
|
|
1793
|
-
}, config?: RequestConfig) =>
|
|
2425
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1794
2426
|
};
|
|
1795
2427
|
delete: {
|
|
1796
2428
|
/** 删除 API Key */
|
|
1797
2429
|
post: (body: {
|
|
1798
2430
|
id: string;
|
|
1799
|
-
}, config?: RequestConfig) =>
|
|
2431
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1800
2432
|
};
|
|
1801
2433
|
find: {
|
|
1802
2434
|
/** 分页查询 API Key 列表 */
|
|
@@ -1808,26 +2440,26 @@ export interface ApiClient {
|
|
|
1808
2440
|
name?: string;
|
|
1809
2441
|
expiration?: string;
|
|
1810
2442
|
};
|
|
1811
|
-
}, config?: RequestConfig) =>
|
|
2443
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1812
2444
|
};
|
|
1813
2445
|
findOne: {
|
|
1814
2446
|
/** 根据 ID 查询 API Key 详情 */
|
|
1815
2447
|
post: (body: {
|
|
1816
2448
|
id: string;
|
|
1817
|
-
}, config?: RequestConfig) =>
|
|
2449
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1818
2450
|
};
|
|
1819
2451
|
updateStatus: {
|
|
1820
2452
|
/** 启用或禁用 API Key */
|
|
1821
2453
|
post: (body: {
|
|
1822
2454
|
apiKeyId: string;
|
|
1823
2455
|
status: "active" | "disabled";
|
|
1824
|
-
}, config?: RequestConfig) =>
|
|
2456
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1825
2457
|
};
|
|
1826
2458
|
regenerate: {
|
|
1827
2459
|
/** 密钥轮换,生成新的 Secret Key */
|
|
1828
2460
|
post: (body: {
|
|
1829
2461
|
id: string;
|
|
1830
|
-
}, config?: RequestConfig) =>
|
|
2462
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1831
2463
|
};
|
|
1832
2464
|
};
|
|
1833
2465
|
verifyJwt: {
|
|
@@ -1835,22 +2467,22 @@ export interface ApiClient {
|
|
|
1835
2467
|
post: (body: {
|
|
1836
2468
|
token: string;
|
|
1837
2469
|
appId?: string;
|
|
1838
|
-
}, config?: RequestConfig) =>
|
|
2470
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1839
2471
|
};
|
|
1840
2472
|
verifyApiKey: {
|
|
1841
2473
|
/** 供其他服务验证 API Key 并获取关联用户信息 */
|
|
1842
2474
|
post: (body: {
|
|
1843
2475
|
apiKeyId: string;
|
|
1844
2476
|
secretKey: string;
|
|
1845
|
-
}, config?: RequestConfig) =>
|
|
2477
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1846
2478
|
};
|
|
1847
2479
|
users: {
|
|
1848
2480
|
batch: {
|
|
1849
|
-
/**
|
|
2481
|
+
/** 供其他服务和外部应用批量查询用户基本信息(需要 API Key 认证) */
|
|
1850
2482
|
post: (body: {
|
|
1851
2483
|
userIds: string[];
|
|
1852
2484
|
appId?: string;
|
|
1853
|
-
}, config?: RequestConfig) =>
|
|
2485
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1854
2486
|
};
|
|
1855
2487
|
subscription: {
|
|
1856
2488
|
/** 供 billing-server 和外部应用更新用户的订阅信息和权益(需要 API Key 认证) */
|
|
@@ -1860,7 +2492,7 @@ export interface ApiClient {
|
|
|
1860
2492
|
subscriptionId?: string | null;
|
|
1861
2493
|
subscriptionStatus?: string | null;
|
|
1862
2494
|
entitlements?: Record<string, unknown>;
|
|
1863
|
-
}, config?: RequestConfig) =>
|
|
2495
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1864
2496
|
};
|
|
1865
2497
|
search: {
|
|
1866
2498
|
/** 供其他服务和外部应用按昵称/邮箱/手机号搜索用户(需要 API Key 认证) */
|
|
@@ -1868,16 +2500,24 @@ export interface ApiClient {
|
|
|
1868
2500
|
appId: string;
|
|
1869
2501
|
keyword: string;
|
|
1870
2502
|
limit?: number;
|
|
1871
|
-
}, config?: RequestConfig) =>
|
|
2503
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1872
2504
|
};
|
|
1873
2505
|
stats: {
|
|
1874
2506
|
/** 供其他服务获取用户数量统计 */
|
|
1875
|
-
post: (body
|
|
2507
|
+
post: (body?: {
|
|
1876
2508
|
appId?: string;
|
|
1877
2509
|
appIds?: string[];
|
|
1878
2510
|
startTime?: string;
|
|
1879
2511
|
endTime?: string;
|
|
1880
|
-
}, config?: RequestConfig) =>
|
|
2512
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2513
|
+
byApps: {
|
|
2514
|
+
/** 供其他服务按 appId 批量获取用户数量 */
|
|
2515
|
+
post: (body: {
|
|
2516
|
+
appIds: string[];
|
|
2517
|
+
startTime?: string;
|
|
2518
|
+
endTime?: string;
|
|
2519
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2520
|
+
};
|
|
1881
2521
|
};
|
|
1882
2522
|
trend: {
|
|
1883
2523
|
/** 供 analytics 服务和外部应用获取用户增长趋势(需要 API Key 认证) */
|
|
@@ -1886,7 +2526,7 @@ export interface ApiClient {
|
|
|
1886
2526
|
startTime: string;
|
|
1887
2527
|
endTime: string;
|
|
1888
2528
|
granularity: "hour" | "day" | "month";
|
|
1889
|
-
}, config?: RequestConfig) =>
|
|
2529
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1890
2530
|
};
|
|
1891
2531
|
organizations: {
|
|
1892
2532
|
/** 供 ones-server 和外部应用更新用户的组织列表(需要 API Key 认证) */
|
|
@@ -1894,13 +2534,13 @@ export interface ApiClient {
|
|
|
1894
2534
|
userId: string;
|
|
1895
2535
|
action: "add" | "remove";
|
|
1896
2536
|
organizationId: string;
|
|
1897
|
-
}, config?: RequestConfig) =>
|
|
2537
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1898
2538
|
};
|
|
1899
2539
|
delete: {
|
|
1900
2540
|
/** 管理员删除用户账号 */
|
|
1901
2541
|
post: (body: {
|
|
1902
2542
|
id: string;
|
|
1903
|
-
}, config?: RequestConfig) =>
|
|
2543
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1904
2544
|
};
|
|
1905
2545
|
update: {
|
|
1906
2546
|
/** 管理员更新用户信息 */
|
|
@@ -1908,78 +2548,81 @@ export interface ApiClient {
|
|
|
1908
2548
|
id: string;
|
|
1909
2549
|
roleId: string;
|
|
1910
2550
|
status: "normal" | "forbidden";
|
|
1911
|
-
}, config?: RequestConfig) =>
|
|
2551
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1912
2552
|
phone: {
|
|
1913
2553
|
/** 管理员更新用户手机号 */
|
|
1914
2554
|
post: (body: {
|
|
1915
2555
|
id: string;
|
|
1916
2556
|
phone: string;
|
|
1917
|
-
}, config?: RequestConfig) =>
|
|
2557
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1918
2558
|
};
|
|
1919
2559
|
myPhone: {
|
|
1920
2560
|
/** 用户通过短信验证码更改自己的手机号 */
|
|
1921
2561
|
post: (body: {
|
|
1922
2562
|
phone: string;
|
|
1923
2563
|
code: string;
|
|
1924
|
-
}, config?: RequestConfig) =>
|
|
2564
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2565
|
+
};
|
|
2566
|
+
myEmail: {
|
|
2567
|
+
/** 用户通过新邮箱验证码更改自己的邮箱(不修改密码) */
|
|
2568
|
+
post: (body: {
|
|
2569
|
+
email: string;
|
|
2570
|
+
userToken: string;
|
|
2571
|
+
emailVerifyId: string;
|
|
2572
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1925
2573
|
};
|
|
1926
2574
|
status: {
|
|
1927
2575
|
/** 管理员更新用户启用状态 */
|
|
1928
2576
|
post: (body: {
|
|
1929
2577
|
id: string;
|
|
1930
2578
|
status: "normal" | "forbidden";
|
|
1931
|
-
}, config?: RequestConfig) =>
|
|
2579
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1932
2580
|
};
|
|
1933
2581
|
baseInfo: {
|
|
1934
2582
|
/** 管理员更新用户基本信息 */
|
|
1935
2583
|
post: (body: {
|
|
1936
2584
|
id: string;
|
|
1937
|
-
avatar?: string;
|
|
1938
|
-
nickname?: string;
|
|
1939
|
-
description?: string;
|
|
1940
|
-
roleId?: string;
|
|
1941
|
-
}, config?: RequestConfig) =>
|
|
1942
|
-
};
|
|
1943
|
-
email: {
|
|
1944
|
-
/** 用户更新自己的邮箱 */
|
|
1945
|
-
post: (body: {
|
|
1946
|
-
userToken: string;
|
|
1947
|
-
emailVerifyId: string;
|
|
1948
|
-
email: string;
|
|
1949
|
-
password: string;
|
|
1950
|
-
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2585
|
+
avatar?: string;
|
|
2586
|
+
nickname?: string;
|
|
2587
|
+
description?: string;
|
|
2588
|
+
roleId?: string;
|
|
2589
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1951
2590
|
};
|
|
1952
2591
|
password: {
|
|
1953
2592
|
/** 用户更新自己的密码 */
|
|
1954
2593
|
post: (body: {
|
|
1955
2594
|
password: string;
|
|
1956
|
-
|
|
2595
|
+
oldPassword?: string;
|
|
2596
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1957
2597
|
};
|
|
1958
2598
|
};
|
|
1959
2599
|
deleteAccount: {
|
|
1960
2600
|
/** 用户主动注销自己的账号 */
|
|
1961
2601
|
post: (body: {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
2602
|
+
method?: "email" | "phone";
|
|
2603
|
+
password?: string;
|
|
2604
|
+
userToken?: string;
|
|
2605
|
+
emailVerifyId?: string;
|
|
2606
|
+
phone?: string;
|
|
2607
|
+
code?: string;
|
|
2608
|
+
confirmText: string;
|
|
2609
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1967
2610
|
};
|
|
1968
2611
|
unbind: {
|
|
1969
2612
|
oauth: {
|
|
1970
2613
|
/** 用户解绑自己的第三方 OAuth 账号 */
|
|
1971
2614
|
post: (body: {
|
|
1972
2615
|
provider: "github" | "google" | "microsoft" | "wechat";
|
|
1973
|
-
}, config?: RequestConfig) =>
|
|
2616
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1974
2617
|
};
|
|
1975
2618
|
};
|
|
1976
2619
|
profile: {
|
|
1977
2620
|
/** 用户更新自己的个人资料 */
|
|
1978
|
-
post: (config?: RequestConfig) =>
|
|
2621
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
1979
2622
|
};
|
|
1980
2623
|
me: {
|
|
1981
2624
|
/** 获取当前登录用户的信息 */
|
|
1982
|
-
get: (config?: RequestConfig) =>
|
|
2625
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
1983
2626
|
};
|
|
1984
2627
|
find: {
|
|
1985
2628
|
/** 分页查询用户列表 */
|
|
@@ -1987,31 +2630,32 @@ export interface ApiClient {
|
|
|
1987
2630
|
current: number;
|
|
1988
2631
|
pageSize: number;
|
|
1989
2632
|
where: {
|
|
2633
|
+
keyword?: string;
|
|
1990
2634
|
id?: string;
|
|
1991
2635
|
email?: string;
|
|
1992
2636
|
phone?: string;
|
|
1993
|
-
status?: "normal" | "forbidden";
|
|
2637
|
+
status?: "normal" | "pending" | "forbidden" | "deleted";
|
|
1994
2638
|
};
|
|
1995
|
-
}, config?: RequestConfig) =>
|
|
2639
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
1996
2640
|
};
|
|
1997
2641
|
findOne: {
|
|
1998
2642
|
/** 根据 ID 查询用户详情 */
|
|
1999
2643
|
post: (body: {
|
|
2000
2644
|
id: string;
|
|
2001
|
-
}, config?: RequestConfig) =>
|
|
2645
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2002
2646
|
};
|
|
2003
2647
|
getUsers: {
|
|
2004
2648
|
/** 根据 ID 列表批量获取用户 */
|
|
2005
2649
|
post: (body: {
|
|
2006
2650
|
userIds: string[];
|
|
2007
|
-
}, config?: RequestConfig) =>
|
|
2651
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2008
2652
|
};
|
|
2009
2653
|
'with-points': {
|
|
2010
2654
|
/** 查询用户详情含积分信息 */
|
|
2011
2655
|
post: (body: {
|
|
2012
2656
|
userId: string;
|
|
2013
2657
|
appId: string;
|
|
2014
|
-
}, config?: RequestConfig) =>
|
|
2658
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2015
2659
|
};
|
|
2016
2660
|
'referral-tree': {
|
|
2017
2661
|
/** 查询用户推荐关系树 */
|
|
@@ -2019,7 +2663,7 @@ export interface ApiClient {
|
|
|
2019
2663
|
userId: string;
|
|
2020
2664
|
appId: string;
|
|
2021
2665
|
depth?: number;
|
|
2022
|
-
}, config?: RequestConfig) =>
|
|
2666
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2023
2667
|
};
|
|
2024
2668
|
'activity-analysis': {
|
|
2025
2669
|
/** 分析用户活跃度 */
|
|
@@ -2027,14 +2671,14 @@ export interface ApiClient {
|
|
|
2027
2671
|
userId: string;
|
|
2028
2672
|
appId: string;
|
|
2029
2673
|
days?: number;
|
|
2030
|
-
}, config?: RequestConfig) =>
|
|
2674
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2031
2675
|
};
|
|
2032
2676
|
'batch-stats': {
|
|
2033
2677
|
/** 批量获取用户统计数据 */
|
|
2034
2678
|
post: (body: {
|
|
2035
2679
|
userIds: string[];
|
|
2036
2680
|
appId: string;
|
|
2037
|
-
}, config?: RequestConfig) =>
|
|
2681
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2038
2682
|
};
|
|
2039
2683
|
export: {
|
|
2040
2684
|
points: {
|
|
@@ -2044,7 +2688,7 @@ export interface ApiClient {
|
|
|
2044
2688
|
startDate?: string;
|
|
2045
2689
|
endDate?: string;
|
|
2046
2690
|
format?: "json" | "csv";
|
|
2047
|
-
}, config?: RequestConfig) =>
|
|
2691
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2048
2692
|
};
|
|
2049
2693
|
activity: {
|
|
2050
2694
|
/** 导出用户活跃度报告 */
|
|
@@ -2052,36 +2696,43 @@ export interface ApiClient {
|
|
|
2052
2696
|
appId: string;
|
|
2053
2697
|
days?: number;
|
|
2054
2698
|
format?: "json" | "csv";
|
|
2055
|
-
}, config?: RequestConfig) =>
|
|
2699
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2056
2700
|
};
|
|
2057
2701
|
referral: {
|
|
2058
2702
|
/** 导出用户推荐关系报告 */
|
|
2059
2703
|
post: (body: {
|
|
2060
2704
|
appId: string;
|
|
2061
2705
|
format?: "json" | "csv";
|
|
2062
|
-
}, config?: RequestConfig) =>
|
|
2706
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2063
2707
|
};
|
|
2064
2708
|
};
|
|
2065
2709
|
sync: {
|
|
2066
2710
|
/** 获取待同步的用户数据 */
|
|
2067
|
-
post: (body
|
|
2711
|
+
post: (body?: {
|
|
2068
2712
|
lastSyncTime?: string;
|
|
2069
2713
|
limit?: number;
|
|
2070
2714
|
appId?: string;
|
|
2071
|
-
}, config?: RequestConfig) =>
|
|
2715
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2072
2716
|
};
|
|
2073
2717
|
events: {
|
|
2074
2718
|
/** 获取用户数据变更事件 */
|
|
2075
2719
|
post: (body: {
|
|
2076
2720
|
since: string;
|
|
2077
2721
|
appId?: string;
|
|
2078
|
-
}, config?: RequestConfig) =>
|
|
2722
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2723
|
+
};
|
|
2724
|
+
batchByIds: {
|
|
2725
|
+
/** 根据 ID 列表批量查询用户(需要 app-id) */
|
|
2726
|
+
post: (body: {
|
|
2727
|
+
userIds: string[];
|
|
2728
|
+
appId?: string;
|
|
2729
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2079
2730
|
};
|
|
2080
2731
|
statistics: {
|
|
2081
2732
|
/** 获取用户整体统计数据 */
|
|
2082
|
-
post: (body
|
|
2733
|
+
post: (body?: {
|
|
2083
2734
|
appId?: string;
|
|
2084
|
-
}, config?: RequestConfig) =>
|
|
2735
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2085
2736
|
};
|
|
2086
2737
|
};
|
|
2087
2738
|
apps: {
|
|
@@ -2089,11 +2740,11 @@ export interface ApiClient {
|
|
|
2089
2740
|
/** 供其他服务和外部应用验证应用 ID 是否有效(需要 API Key 认证) */
|
|
2090
2741
|
post: (body: {
|
|
2091
2742
|
appId: string;
|
|
2092
|
-
}, config?: RequestConfig) =>
|
|
2743
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2093
2744
|
};
|
|
2094
2745
|
authPageInfo: {
|
|
2095
2746
|
/** 获取应用认证页面配置信息 */
|
|
2096
|
-
post: (config?: RequestConfig) =>
|
|
2747
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2097
2748
|
};
|
|
2098
2749
|
create: {
|
|
2099
2750
|
/** 创建新应用 */
|
|
@@ -2104,30 +2755,39 @@ export interface ApiClient {
|
|
|
2104
2755
|
homePageUrl?: string;
|
|
2105
2756
|
authorizationCallback?: string;
|
|
2106
2757
|
extensions?: Record<string, string>;
|
|
2107
|
-
}, config?: RequestConfig) =>
|
|
2758
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2108
2759
|
};
|
|
2109
2760
|
delete: {
|
|
2110
2761
|
/** 删除应用 */
|
|
2111
2762
|
post: (body: {
|
|
2112
2763
|
id: string;
|
|
2113
|
-
}, config?: RequestConfig) =>
|
|
2764
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2114
2765
|
};
|
|
2115
2766
|
update: {
|
|
2116
2767
|
/** 更新应用信息 */
|
|
2117
2768
|
post: (body: {
|
|
2118
2769
|
id: string;
|
|
2119
|
-
applicationLogo: string;
|
|
2120
|
-
description: string;
|
|
2121
2770
|
name?: string;
|
|
2122
2771
|
homePageUrl?: string;
|
|
2123
2772
|
authorizationCallback?: string;
|
|
2773
|
+
applicationLogo: string;
|
|
2774
|
+
description: string;
|
|
2124
2775
|
defaultRoleId?: string;
|
|
2125
|
-
}, config?: RequestConfig) =>
|
|
2776
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2777
|
+
defaultRoleId: {
|
|
2778
|
+
/** 更新新用户注册后的默认角色 */
|
|
2779
|
+
post: (body: {
|
|
2780
|
+
defaultRoleId: string;
|
|
2781
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2782
|
+
};
|
|
2126
2783
|
emailConfig: {
|
|
2127
2784
|
/** 更新应用邮件发送配置 */
|
|
2128
|
-
post: (body
|
|
2785
|
+
post: (body?: {
|
|
2129
2786
|
supportEmail?: string;
|
|
2130
|
-
|
|
2787
|
+
senderDisplayName?: string;
|
|
2788
|
+
testEmail?: string;
|
|
2789
|
+
testPhone?: string;
|
|
2790
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2131
2791
|
};
|
|
2132
2792
|
brand: {
|
|
2133
2793
|
/** 更新应用品牌展示配置 */
|
|
@@ -2138,13 +2798,13 @@ export interface ApiClient {
|
|
|
2138
2798
|
backgroundType: "color" | "image";
|
|
2139
2799
|
backgroundImage: string;
|
|
2140
2800
|
backgroundColor: string;
|
|
2141
|
-
}, config?: RequestConfig) =>
|
|
2801
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2142
2802
|
};
|
|
2143
2803
|
passwordAuth: {
|
|
2144
2804
|
/** 更新密码认证相关配置 */
|
|
2145
2805
|
post: (body: {
|
|
2146
2806
|
rejectBreachedPasswords: boolean;
|
|
2147
|
-
}, config?: RequestConfig) =>
|
|
2807
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2148
2808
|
};
|
|
2149
2809
|
sessionsAuth: {
|
|
2150
2810
|
/** 更新登录会话相关配置 */
|
|
@@ -2153,26 +2813,82 @@ export interface ApiClient {
|
|
|
2153
2813
|
accessTokenDuration: number;
|
|
2154
2814
|
maximumSessionLengthUnit: string;
|
|
2155
2815
|
accessTokenDurationUnit: string;
|
|
2156
|
-
}, config?: RequestConfig) =>
|
|
2816
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2817
|
+
};
|
|
2818
|
+
authEndpointRatePolicy: {
|
|
2819
|
+
/** 更新登录、注册、重置密码与 OAuth 的 IP 限流配置 */
|
|
2820
|
+
post: (body: {
|
|
2821
|
+
login: {
|
|
2822
|
+
maxSends: number;
|
|
2823
|
+
windowSeconds: number;
|
|
2824
|
+
};
|
|
2825
|
+
register: {
|
|
2826
|
+
maxSends: number;
|
|
2827
|
+
windowSeconds: number;
|
|
2828
|
+
};
|
|
2829
|
+
resetPassword: {
|
|
2830
|
+
maxSends: number;
|
|
2831
|
+
windowSeconds: number;
|
|
2832
|
+
};
|
|
2833
|
+
oauth: {
|
|
2834
|
+
maxSends: number;
|
|
2835
|
+
windowSeconds: number;
|
|
2836
|
+
};
|
|
2837
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2838
|
+
};
|
|
2839
|
+
verifyCodeRatePolicy: {
|
|
2840
|
+
/** 更新邮箱/短信验证码发送限流配置 */
|
|
2841
|
+
post: (body: {
|
|
2842
|
+
minIntervalSeconds: number;
|
|
2843
|
+
shortWindowSeconds: number;
|
|
2844
|
+
shortMaxSends: number;
|
|
2845
|
+
dailyWindowSeconds: number;
|
|
2846
|
+
dailyMaxSends: number;
|
|
2847
|
+
uxCooldownSeconds: number;
|
|
2848
|
+
ipWindowSeconds: number;
|
|
2849
|
+
ipMaxSends: number;
|
|
2850
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2157
2851
|
};
|
|
2158
2852
|
signUpAuth: {
|
|
2159
2853
|
/** 更新用户注册相关配置 */
|
|
2160
2854
|
post: (body: {
|
|
2161
2855
|
enabled: boolean;
|
|
2162
|
-
}, config?: RequestConfig) =>
|
|
2856
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2857
|
+
};
|
|
2858
|
+
authMethods: {
|
|
2859
|
+
/** 配置登录、注册、无密码等认证入口展示与可用性 */
|
|
2860
|
+
post: (body: {
|
|
2861
|
+
login: {
|
|
2862
|
+
emailPassword: boolean;
|
|
2863
|
+
phonePassword: boolean;
|
|
2864
|
+
phoneCode: boolean;
|
|
2865
|
+
emailCode: boolean;
|
|
2866
|
+
passkey: boolean;
|
|
2867
|
+
};
|
|
2868
|
+
signUp: {
|
|
2869
|
+
email: boolean;
|
|
2870
|
+
phone: boolean;
|
|
2871
|
+
};
|
|
2872
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2163
2873
|
};
|
|
2164
2874
|
singleSignOn: {
|
|
2165
2875
|
/** 更新单点登录 (SSO) 配置 */
|
|
2166
2876
|
post: (body: {
|
|
2167
2877
|
enabled: boolean;
|
|
2168
|
-
}, config?: RequestConfig) =>
|
|
2878
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2169
2879
|
};
|
|
2170
2880
|
oauth: {
|
|
2171
2881
|
/** 更新第三方 OAuth 登录配置 */
|
|
2172
2882
|
post: (body: {
|
|
2173
2883
|
type: "google" | "microsoft" | "github" | "wechat";
|
|
2174
2884
|
enabled: boolean;
|
|
2175
|
-
}, config?: RequestConfig) =>
|
|
2885
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2886
|
+
};
|
|
2887
|
+
corsOrigins: {
|
|
2888
|
+
/** 配置应用前端域名白名单(用于跨域请求),格式如 https://app.com */
|
|
2889
|
+
post: (body: {
|
|
2890
|
+
allowedOrigins: string[];
|
|
2891
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2176
2892
|
};
|
|
2177
2893
|
aboutUs: {
|
|
2178
2894
|
personalInformationCollectionList: {
|
|
@@ -2182,7 +2898,7 @@ export interface ApiClient {
|
|
|
2182
2898
|
type: "doc";
|
|
2183
2899
|
content: unknown[];
|
|
2184
2900
|
};
|
|
2185
|
-
}, config?: RequestConfig) =>
|
|
2901
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2186
2902
|
};
|
|
2187
2903
|
thirdPartyInformationSharingList: {
|
|
2188
2904
|
/** 更新第三方信息共享清单配置 */
|
|
@@ -2191,7 +2907,7 @@ export interface ApiClient {
|
|
|
2191
2907
|
type: "doc";
|
|
2192
2908
|
content: unknown[];
|
|
2193
2909
|
};
|
|
2194
|
-
}, config?: RequestConfig) =>
|
|
2910
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2195
2911
|
};
|
|
2196
2912
|
userServiceAgreement: {
|
|
2197
2913
|
/** 更新用户服务协议配置 */
|
|
@@ -2200,7 +2916,7 @@ export interface ApiClient {
|
|
|
2200
2916
|
type: "doc";
|
|
2201
2917
|
content: unknown[];
|
|
2202
2918
|
};
|
|
2203
|
-
}, config?: RequestConfig) =>
|
|
2919
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2204
2920
|
};
|
|
2205
2921
|
privacyPolicy: {
|
|
2206
2922
|
/** 更新隐私政策配置 */
|
|
@@ -2209,7 +2925,7 @@ export interface ApiClient {
|
|
|
2209
2925
|
type: "doc";
|
|
2210
2926
|
content: unknown[];
|
|
2211
2927
|
};
|
|
2212
|
-
}, config?: RequestConfig) =>
|
|
2928
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2213
2929
|
};
|
|
2214
2930
|
licenseInformation: {
|
|
2215
2931
|
/** 更新许可信息配置 */
|
|
@@ -2218,7 +2934,7 @@ export interface ApiClient {
|
|
|
2218
2934
|
type: "doc";
|
|
2219
2935
|
content: unknown[];
|
|
2220
2936
|
};
|
|
2221
|
-
}, config?: RequestConfig) =>
|
|
2937
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2222
2938
|
};
|
|
2223
2939
|
};
|
|
2224
2940
|
};
|
|
@@ -2229,11 +2945,12 @@ export interface ApiClient {
|
|
|
2229
2945
|
pageSize: number;
|
|
2230
2946
|
where: {
|
|
2231
2947
|
id?: string;
|
|
2948
|
+
keyword?: string;
|
|
2232
2949
|
name?: string;
|
|
2233
2950
|
homePageUrl?: string;
|
|
2234
2951
|
extensions?: Record<string, string>;
|
|
2235
2952
|
};
|
|
2236
|
-
}, config?: RequestConfig) =>
|
|
2953
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2237
2954
|
};
|
|
2238
2955
|
findAll: {
|
|
2239
2956
|
/** 查询用户所有应用 */
|
|
@@ -2244,50 +2961,98 @@ export interface ApiClient {
|
|
|
2244
2961
|
homePageUrl?: string;
|
|
2245
2962
|
extensions?: Record<string, string>;
|
|
2246
2963
|
};
|
|
2247
|
-
}, config?: RequestConfig) =>
|
|
2964
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2248
2965
|
};
|
|
2249
2966
|
findOne: {
|
|
2250
2967
|
/** 查询 app-id header 对应的应用详情 */
|
|
2251
|
-
post: (config?: RequestConfig) =>
|
|
2968
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2252
2969
|
};
|
|
2253
2970
|
findByIds: {
|
|
2254
2971
|
/** 根据 ID 列表批量查询应用 */
|
|
2255
2972
|
post: (body: {
|
|
2256
2973
|
ids: string[];
|
|
2257
|
-
}, config?: RequestConfig) =>
|
|
2974
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2975
|
+
};
|
|
2976
|
+
newUserDefaultsSettingsInfo: {
|
|
2977
|
+
/** 获取注册默认角色与积分奖励展示信息 */
|
|
2978
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2979
|
+
};
|
|
2980
|
+
brandSettingsInfo: {
|
|
2981
|
+
/** 获取邮件与短信品牌设置信息 */
|
|
2982
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2983
|
+
};
|
|
2984
|
+
securitySettingsInfo: {
|
|
2985
|
+
/** 获取域名白名单与会话策略展示信息 */
|
|
2986
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2987
|
+
};
|
|
2988
|
+
brandSettings: {
|
|
2989
|
+
sendTestEmail: {
|
|
2990
|
+
/** 向指定邮箱发送一封测试验证码邮件 */
|
|
2991
|
+
post: (body: {
|
|
2992
|
+
email: string;
|
|
2993
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2994
|
+
};
|
|
2995
|
+
sendTestSms: {
|
|
2996
|
+
/** 向指定手机号发送一条测试验证码短信 */
|
|
2997
|
+
post: (body: {
|
|
2998
|
+
phone: string;
|
|
2999
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3000
|
+
};
|
|
2258
3001
|
};
|
|
2259
3002
|
emailConfigInfo: {
|
|
2260
3003
|
/** 获取应用邮件配置信息 */
|
|
2261
|
-
post: (config?: RequestConfig) =>
|
|
3004
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3005
|
+
};
|
|
3006
|
+
authMethods: {
|
|
3007
|
+
impact: {
|
|
3008
|
+
/** 统计配置变更后将无法登录的用户数量 */
|
|
3009
|
+
post: (body: {
|
|
3010
|
+
login: {
|
|
3011
|
+
emailPassword: boolean;
|
|
3012
|
+
phonePassword: boolean;
|
|
3013
|
+
phoneCode: boolean;
|
|
3014
|
+
emailCode: boolean;
|
|
3015
|
+
passkey: boolean;
|
|
3016
|
+
};
|
|
3017
|
+
signUp: {
|
|
3018
|
+
email: boolean;
|
|
3019
|
+
phone: boolean;
|
|
3020
|
+
};
|
|
3021
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3022
|
+
};
|
|
2262
3023
|
};
|
|
2263
3024
|
};
|
|
2264
|
-
|
|
3025
|
+
orgs: {
|
|
2265
3026
|
create: {
|
|
2266
|
-
/**
|
|
3027
|
+
/** 供 ones-server 和外部应用创建组织(需要 API Key 认证) */
|
|
2267
3028
|
post: (body: {
|
|
2268
3029
|
name: string;
|
|
2269
3030
|
domain: string;
|
|
2270
3031
|
email: string;
|
|
2271
|
-
|
|
3032
|
+
creatorId: string;
|
|
3033
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2272
3034
|
};
|
|
2273
3035
|
delete: {
|
|
2274
|
-
/**
|
|
3036
|
+
/** 供 ones-server 和外部应用删除组织(需要 API Key 认证) */
|
|
2275
3037
|
post: (body: {
|
|
2276
3038
|
id: string;
|
|
2277
|
-
|
|
3039
|
+
operatorId: string;
|
|
3040
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2278
3041
|
};
|
|
2279
3042
|
update: {
|
|
2280
|
-
/**
|
|
3043
|
+
/** 供 ones-server 和外部应用更新组织信息(需要 API Key 认证) */
|
|
2281
3044
|
post: (body: {
|
|
2282
3045
|
id: string;
|
|
2283
3046
|
name: string;
|
|
2284
3047
|
domain: string;
|
|
2285
3048
|
email: string;
|
|
2286
|
-
|
|
3049
|
+
operatorId: string;
|
|
3050
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2287
3051
|
};
|
|
2288
3052
|
find: {
|
|
2289
|
-
/**
|
|
3053
|
+
/** 供 ones-server 和外部应用分页查询组织列表(需要 API Key 认证) */
|
|
2290
3054
|
post: (body: {
|
|
3055
|
+
userId: string;
|
|
2291
3056
|
current: number;
|
|
2292
3057
|
pageSize: number;
|
|
2293
3058
|
where?: {
|
|
@@ -2295,59 +3060,123 @@ export interface ApiClient {
|
|
|
2295
3060
|
domain?: string;
|
|
2296
3061
|
email?: string;
|
|
2297
3062
|
};
|
|
2298
|
-
}, config?: RequestConfig) =>
|
|
3063
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2299
3064
|
};
|
|
2300
3065
|
findAll: {
|
|
2301
|
-
/**
|
|
2302
|
-
post: (
|
|
3066
|
+
/** 供 ones-server 和外部应用获取用户的所有组织(需要 API Key 认证) */
|
|
3067
|
+
post: (body: {
|
|
3068
|
+
userId: string;
|
|
3069
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2303
3070
|
};
|
|
2304
3071
|
findOne: {
|
|
2305
|
-
/**
|
|
3072
|
+
/** 供 ones-server 和外部应用获取组织详情(需要 API Key 认证) */
|
|
2306
3073
|
post: (body: {
|
|
2307
3074
|
id: string;
|
|
2308
|
-
}, config?: RequestConfig) =>
|
|
3075
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2309
3076
|
};
|
|
2310
3077
|
addMember: {
|
|
2311
|
-
/**
|
|
3078
|
+
/** 供 ones-server 和外部应用添加组织成员(需要 API Key 认证) */
|
|
2312
3079
|
post: (body: {
|
|
2313
3080
|
organizationId: string;
|
|
2314
3081
|
userId: string;
|
|
2315
3082
|
role?: "admin" | "member";
|
|
2316
|
-
|
|
3083
|
+
operatorId: string;
|
|
3084
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2317
3085
|
};
|
|
2318
3086
|
removeMember: {
|
|
2319
|
-
/**
|
|
3087
|
+
/** 供 ones-server 和外部应用移除组织成员(需要 API Key 认证) */
|
|
2320
3088
|
post: (body: {
|
|
2321
3089
|
organizationId: string;
|
|
2322
3090
|
userId: string;
|
|
2323
|
-
|
|
3091
|
+
operatorId: string;
|
|
3092
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2324
3093
|
};
|
|
2325
3094
|
updateMemberRole: {
|
|
2326
|
-
/**
|
|
3095
|
+
/** 供 ones-server 和外部应用更新组织成员角色(需要 API Key 认证) */
|
|
2327
3096
|
post: (body: {
|
|
2328
3097
|
organizationId: string;
|
|
2329
3098
|
userId: string;
|
|
2330
3099
|
role: "admin" | "member";
|
|
2331
|
-
|
|
3100
|
+
operatorId: string;
|
|
3101
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2332
3102
|
};
|
|
2333
3103
|
getMembers: {
|
|
2334
|
-
/**
|
|
3104
|
+
/** 供 ones-server 和外部应用获取组织成员列表(需要 API Key 认证) */
|
|
2335
3105
|
post: (body: {
|
|
2336
3106
|
organizationId: string;
|
|
2337
|
-
|
|
3107
|
+
userId: string;
|
|
3108
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2338
3109
|
};
|
|
2339
3110
|
addApp: {
|
|
2340
|
-
/**
|
|
3111
|
+
/** 供 ones-server 和外部应用将应用关联到组织(需要 API Key 认证) */
|
|
2341
3112
|
post: (body: {
|
|
2342
3113
|
organizationId: string;
|
|
2343
3114
|
appId: string;
|
|
2344
|
-
|
|
3115
|
+
operatorId: string;
|
|
3116
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2345
3117
|
};
|
|
2346
3118
|
hasApps: {
|
|
2347
3119
|
/** 供 ones-server 和外部应用检查组织下是否有关联的应用(需要 API Key 认证) */
|
|
2348
3120
|
post: (body: {
|
|
2349
3121
|
organizationId: string;
|
|
2350
|
-
}, config?: RequestConfig) =>
|
|
3122
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3123
|
+
};
|
|
3124
|
+
findByApp: {
|
|
3125
|
+
/** 供 ones-server 和外部应用根据应用ID查找所属组织(需要 API Key 认证) */
|
|
3126
|
+
post: (body: {
|
|
3127
|
+
appId: string;
|
|
3128
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3129
|
+
};
|
|
3130
|
+
};
|
|
3131
|
+
permission: {
|
|
3132
|
+
check: {
|
|
3133
|
+
/** 检查用户是否有指定权限 */
|
|
3134
|
+
post: (body: {
|
|
3135
|
+
userId: string;
|
|
3136
|
+
roleId: string;
|
|
3137
|
+
appId: string;
|
|
3138
|
+
permission: string;
|
|
3139
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3140
|
+
};
|
|
3141
|
+
checkAny: {
|
|
3142
|
+
/** 检查用户是否有任一指定权限 */
|
|
3143
|
+
post: (body: {
|
|
3144
|
+
userId: string;
|
|
3145
|
+
roleId: string;
|
|
3146
|
+
appId: string;
|
|
3147
|
+
permissions: string[];
|
|
3148
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3149
|
+
};
|
|
3150
|
+
checkAll: {
|
|
3151
|
+
/** 检查用户是否有所有指定权限 */
|
|
3152
|
+
post: (body: {
|
|
3153
|
+
userId: string;
|
|
3154
|
+
roleId: string;
|
|
3155
|
+
appId: string;
|
|
3156
|
+
permissions: string[];
|
|
3157
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3158
|
+
};
|
|
3159
|
+
getUserPermissions: {
|
|
3160
|
+
/** 获取用户的所有权限列表 */
|
|
3161
|
+
post: (body: {
|
|
3162
|
+
userId: string;
|
|
3163
|
+
roleId: string;
|
|
3164
|
+
appId: string;
|
|
3165
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3166
|
+
};
|
|
3167
|
+
checkOrgAdmin: {
|
|
3168
|
+
/** 检查用户是否是 app 所属组织的管理员(创建者或管理员) */
|
|
3169
|
+
post: (body: {
|
|
3170
|
+
userId: string;
|
|
3171
|
+
appId: string;
|
|
3172
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3173
|
+
};
|
|
3174
|
+
getOrgRole: {
|
|
3175
|
+
/** 获取用户在 app 所属组织中的角色信息 */
|
|
3176
|
+
post: (body: {
|
|
3177
|
+
userId: string;
|
|
3178
|
+
appId: string;
|
|
3179
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2351
3180
|
};
|
|
2352
3181
|
};
|
|
2353
3182
|
oauth: {
|
|
@@ -2359,14 +3188,15 @@ export interface ApiClient {
|
|
|
2359
3188
|
inviteCode?: string;
|
|
2360
3189
|
redirectUri?: string;
|
|
2361
3190
|
mode?: "login" | "bind";
|
|
2362
|
-
|
|
3191
|
+
acceptedTerms?: boolean;
|
|
3192
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2363
3193
|
};
|
|
2364
3194
|
callback: {
|
|
2365
3195
|
/** GitHub 授权回调 */
|
|
2366
3196
|
get: (query?: {
|
|
2367
3197
|
code: string;
|
|
2368
3198
|
state: string;
|
|
2369
|
-
}, config?: RequestConfig) =>
|
|
3199
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2370
3200
|
};
|
|
2371
3201
|
};
|
|
2372
3202
|
google: {
|
|
@@ -2377,14 +3207,15 @@ export interface ApiClient {
|
|
|
2377
3207
|
inviteCode?: string;
|
|
2378
3208
|
redirectUri?: string;
|
|
2379
3209
|
mode?: "login" | "bind";
|
|
2380
|
-
|
|
3210
|
+
acceptedTerms?: boolean;
|
|
3211
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2381
3212
|
};
|
|
2382
3213
|
callback: {
|
|
2383
3214
|
/** Google 授权回调 */
|
|
2384
3215
|
get: (query?: {
|
|
2385
3216
|
code: string;
|
|
2386
3217
|
state: string;
|
|
2387
|
-
}, config?: RequestConfig) =>
|
|
3218
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2388
3219
|
};
|
|
2389
3220
|
};
|
|
2390
3221
|
microsoft: {
|
|
@@ -2395,14 +3226,17 @@ export interface ApiClient {
|
|
|
2395
3226
|
inviteCode?: string;
|
|
2396
3227
|
redirectUri?: string;
|
|
2397
3228
|
mode?: "login" | "bind";
|
|
2398
|
-
|
|
3229
|
+
acceptedTerms?: boolean;
|
|
3230
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2399
3231
|
};
|
|
2400
3232
|
callback: {
|
|
2401
3233
|
/** Microsoft 授权回调 */
|
|
2402
3234
|
get: (query?: {
|
|
2403
|
-
code
|
|
3235
|
+
code?: string;
|
|
2404
3236
|
state: string;
|
|
2405
|
-
|
|
3237
|
+
error?: string;
|
|
3238
|
+
error_description?: string;
|
|
3239
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2406
3240
|
};
|
|
2407
3241
|
};
|
|
2408
3242
|
wechat: {
|
|
@@ -2413,14 +3247,15 @@ export interface ApiClient {
|
|
|
2413
3247
|
inviteCode?: string;
|
|
2414
3248
|
redirectUri?: string;
|
|
2415
3249
|
mode?: "login" | "bind";
|
|
2416
|
-
|
|
3250
|
+
acceptedTerms?: boolean;
|
|
3251
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2417
3252
|
};
|
|
2418
3253
|
callback: {
|
|
2419
3254
|
/** 微信开放平台授权回调 */
|
|
2420
3255
|
get: (query?: {
|
|
2421
3256
|
code: string;
|
|
2422
3257
|
state: string;
|
|
2423
|
-
}, config?: RequestConfig) =>
|
|
3258
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2424
3259
|
};
|
|
2425
3260
|
};
|
|
2426
3261
|
};
|
|
@@ -2433,7 +3268,7 @@ export interface ApiClient {
|
|
|
2433
3268
|
scope: string;
|
|
2434
3269
|
state: string;
|
|
2435
3270
|
response_type: "code" | "token";
|
|
2436
|
-
}, config?: RequestConfig) =>
|
|
3271
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2437
3272
|
};
|
|
2438
3273
|
token: {
|
|
2439
3274
|
/** 使用授权码获取访问令牌 */
|
|
@@ -2443,21 +3278,21 @@ export interface ApiClient {
|
|
|
2443
3278
|
redirect_uri: string;
|
|
2444
3279
|
client_id: string;
|
|
2445
3280
|
client_secret?: string;
|
|
2446
|
-
}, config?: RequestConfig) =>
|
|
3281
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2447
3282
|
};
|
|
2448
3283
|
refresh: {
|
|
2449
3284
|
/** 刷新访问令牌 */
|
|
2450
3285
|
post: (body: {
|
|
2451
3286
|
refresh_token: string;
|
|
2452
3287
|
client_id: string;
|
|
2453
|
-
}, config?: RequestConfig) =>
|
|
3288
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2454
3289
|
};
|
|
2455
3290
|
revoke: {
|
|
2456
3291
|
/** 撤销访问令牌 */
|
|
2457
3292
|
post: (body: {
|
|
2458
3293
|
token: string;
|
|
2459
3294
|
client_id: string;
|
|
2460
|
-
}, config?: RequestConfig) =>
|
|
3295
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2461
3296
|
};
|
|
2462
3297
|
};
|
|
2463
3298
|
auth: {
|
|
@@ -2466,7 +3301,7 @@ export interface ApiClient {
|
|
|
2466
3301
|
post: (body: {
|
|
2467
3302
|
email: string;
|
|
2468
3303
|
password: string;
|
|
2469
|
-
}, config?: RequestConfig) =>
|
|
3304
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2470
3305
|
unified: {
|
|
2471
3306
|
/** 用户通过邮箱/手机号登录(自动识别) */
|
|
2472
3307
|
post: (body: {
|
|
@@ -2475,7 +3310,7 @@ export interface ApiClient {
|
|
|
2475
3310
|
code?: string;
|
|
2476
3311
|
emailVerifyId?: string;
|
|
2477
3312
|
method: "password" | "code";
|
|
2478
|
-
}, config?: RequestConfig) =>
|
|
3313
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2479
3314
|
};
|
|
2480
3315
|
};
|
|
2481
3316
|
signUp: {
|
|
@@ -2486,7 +3321,8 @@ export interface ApiClient {
|
|
|
2486
3321
|
inviteCode?: string;
|
|
2487
3322
|
userToken: string;
|
|
2488
3323
|
emailVerifyId: string;
|
|
2489
|
-
|
|
3324
|
+
acceptedTerms: boolean;
|
|
3325
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2490
3326
|
phone: {
|
|
2491
3327
|
/** 用户通过手机号注册账号 */
|
|
2492
3328
|
post: (body: {
|
|
@@ -2494,38 +3330,39 @@ export interface ApiClient {
|
|
|
2494
3330
|
code: string;
|
|
2495
3331
|
password?: string;
|
|
2496
3332
|
inviteCode?: string;
|
|
2497
|
-
|
|
3333
|
+
acceptedTerms: boolean;
|
|
3334
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2498
3335
|
};
|
|
2499
3336
|
};
|
|
2500
3337
|
refresh: {
|
|
2501
3338
|
/** 使用 refreshToken 刷新 JWT */
|
|
2502
3339
|
post: (body: {
|
|
2503
3340
|
refreshToken: string;
|
|
2504
|
-
}, config?: RequestConfig) =>
|
|
3341
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2505
3342
|
};
|
|
2506
3343
|
signOut: {
|
|
2507
3344
|
/** 用户主动登出当前会话 */
|
|
2508
|
-
post: (config?: RequestConfig) =>
|
|
3345
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2509
3346
|
};
|
|
2510
3347
|
logout: {
|
|
2511
3348
|
/** 登出指定设备的会话 */
|
|
2512
|
-
post: (config?: RequestConfig) =>
|
|
3349
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2513
3350
|
};
|
|
2514
3351
|
logoutAll: {
|
|
2515
3352
|
/** 登出所有设备的会话 */
|
|
2516
|
-
post: (config?: RequestConfig) =>
|
|
3353
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2517
3354
|
};
|
|
2518
3355
|
sessions: {
|
|
2519
3356
|
/** 获取用户所有登录会话 */
|
|
2520
|
-
get: (config?: RequestConfig) =>
|
|
3357
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2521
3358
|
cleanup: {
|
|
2522
3359
|
/** 清理用户过期的会话 */
|
|
2523
|
-
post: (config?: RequestConfig) =>
|
|
3360
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2524
3361
|
};
|
|
2525
3362
|
':id': {
|
|
2526
3363
|
revoke: {
|
|
2527
3364
|
/** 撤销指定的登录会话 */
|
|
2528
|
-
post: (config?: RequestConfig) =>
|
|
3365
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2529
3366
|
};
|
|
2530
3367
|
};
|
|
2531
3368
|
};
|
|
@@ -2533,7 +3370,7 @@ export interface ApiClient {
|
|
|
2533
3370
|
/** 验证用户当前密码 */
|
|
2534
3371
|
post: (body: {
|
|
2535
3372
|
password: string;
|
|
2536
|
-
}, config?: RequestConfig) =>
|
|
3373
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2537
3374
|
};
|
|
2538
3375
|
resetPassword: {
|
|
2539
3376
|
/** 用户通过验证码重置密码 */
|
|
@@ -2545,14 +3382,14 @@ export interface ApiClient {
|
|
|
2545
3382
|
phone?: string;
|
|
2546
3383
|
code?: string;
|
|
2547
3384
|
password: string;
|
|
2548
|
-
}, config?: RequestConfig) =>
|
|
3385
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2549
3386
|
};
|
|
2550
3387
|
verify: {
|
|
2551
3388
|
token: {
|
|
2552
3389
|
/** 验证 JWT Token 有效性 */
|
|
2553
3390
|
post: (body: {
|
|
2554
3391
|
token: string;
|
|
2555
|
-
}, config?: RequestConfig) =>
|
|
3392
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2556
3393
|
};
|
|
2557
3394
|
};
|
|
2558
3395
|
bind: {
|
|
@@ -2562,14 +3399,14 @@ export interface ApiClient {
|
|
|
2562
3399
|
email: string;
|
|
2563
3400
|
userToken: string;
|
|
2564
3401
|
emailVerifyId: string;
|
|
2565
|
-
}, config?: RequestConfig) =>
|
|
3402
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2566
3403
|
};
|
|
2567
3404
|
phone: {
|
|
2568
3405
|
/** 用户绑定手机号 */
|
|
2569
3406
|
post: (body: {
|
|
2570
3407
|
phone: string;
|
|
2571
3408
|
code: string;
|
|
2572
|
-
}, config?: RequestConfig) =>
|
|
3409
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2573
3410
|
};
|
|
2574
3411
|
};
|
|
2575
3412
|
};
|
|
@@ -2577,46 +3414,46 @@ export interface ApiClient {
|
|
|
2577
3414
|
auth: {
|
|
2578
3415
|
options: {
|
|
2579
3416
|
/** 获取 Passkey 登录认证选项 */
|
|
2580
|
-
post: (body
|
|
3417
|
+
post: (body?: {
|
|
2581
3418
|
email?: string;
|
|
2582
|
-
}, config?: RequestConfig) =>
|
|
3419
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2583
3420
|
};
|
|
2584
3421
|
verify: {
|
|
2585
3422
|
/** 用户通过 Passkey 无密码登录 */
|
|
2586
3423
|
post: (body: {
|
|
2587
3424
|
response: unknown;
|
|
2588
|
-
}, config?: RequestConfig) =>
|
|
3425
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2589
3426
|
};
|
|
2590
3427
|
};
|
|
2591
3428
|
register: {
|
|
2592
3429
|
options: {
|
|
2593
3430
|
/** 获取 Passkey 注册选项 */
|
|
2594
|
-
post: (config?: RequestConfig) =>
|
|
3431
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2595
3432
|
};
|
|
2596
3433
|
verify: {
|
|
2597
3434
|
/** 用户注册新的 Passkey 凭证 */
|
|
2598
3435
|
post: (body: {
|
|
2599
3436
|
response: unknown;
|
|
2600
3437
|
name?: string;
|
|
2601
|
-
}, config?: RequestConfig) =>
|
|
3438
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2602
3439
|
};
|
|
2603
3440
|
};
|
|
2604
3441
|
list: {
|
|
2605
3442
|
/** 获取用户已注册的 Passkey 列表 */
|
|
2606
|
-
post: (config?: RequestConfig) =>
|
|
3443
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2607
3444
|
};
|
|
2608
3445
|
delete: {
|
|
2609
3446
|
/** 用户删除 Passkey 凭证 */
|
|
2610
3447
|
post: (body: {
|
|
2611
3448
|
credentialId: string;
|
|
2612
|
-
}, config?: RequestConfig) =>
|
|
3449
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2613
3450
|
};
|
|
2614
3451
|
rename: {
|
|
2615
3452
|
/** 修改 Passkey 名称 */
|
|
2616
3453
|
post: (body: {
|
|
2617
3454
|
credentialId: string;
|
|
2618
3455
|
name: string;
|
|
2619
|
-
}, config?: RequestConfig) =>
|
|
3456
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2620
3457
|
};
|
|
2621
3458
|
};
|
|
2622
3459
|
verify: {
|
|
@@ -2627,13 +3464,13 @@ export interface ApiClient {
|
|
|
2627
3464
|
email: string;
|
|
2628
3465
|
emailVerifyId: string;
|
|
2629
3466
|
purpose?: "signIn" | "signUp" | "bindEmail" | "resetPassword" | "deleteAccount";
|
|
2630
|
-
}, config?: RequestConfig) =>
|
|
3467
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2631
3468
|
retry: {
|
|
2632
3469
|
/** 重新发送邮箱验证码 */
|
|
2633
3470
|
post: (body: {
|
|
2634
3471
|
email: string;
|
|
2635
3472
|
purpose?: "signIn" | "signUp" | "bindEmail" | "resetPassword" | "deleteAccount";
|
|
2636
|
-
}, config?: RequestConfig) =>
|
|
3473
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2637
3474
|
};
|
|
2638
3475
|
};
|
|
2639
3476
|
sms: {
|
|
@@ -2641,30 +3478,30 @@ export interface ApiClient {
|
|
|
2641
3478
|
/** 发送短信验证码 */
|
|
2642
3479
|
post: (body: {
|
|
2643
3480
|
phone: string;
|
|
2644
|
-
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
2645
|
-
}, config?: RequestConfig) =>
|
|
3481
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword" | "deleteAccount";
|
|
3482
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2646
3483
|
};
|
|
2647
3484
|
verify: {
|
|
2648
3485
|
/** 验证短信验证码 */
|
|
2649
3486
|
post: (body: {
|
|
2650
3487
|
phone: string;
|
|
2651
3488
|
code: string;
|
|
2652
|
-
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword";
|
|
2653
|
-
}, config?: RequestConfig) =>
|
|
3489
|
+
purpose?: "signIn" | "signUp" | "bindPhone" | "resetPassword" | "deleteAccount";
|
|
3490
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2654
3491
|
};
|
|
2655
3492
|
};
|
|
2656
3493
|
password: {
|
|
2657
3494
|
/** 验证用户密码 */
|
|
2658
3495
|
post: (body: {
|
|
2659
3496
|
password: string;
|
|
2660
|
-
}, config?: RequestConfig) =>
|
|
3497
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2661
3498
|
};
|
|
2662
3499
|
apiKey: {
|
|
2663
3500
|
/** 验证 API Key 有效性 */
|
|
2664
3501
|
post: (body: {
|
|
2665
3502
|
apiKeyId: string;
|
|
2666
3503
|
secretKey: string;
|
|
2667
|
-
}, config?: RequestConfig) =>
|
|
3504
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2668
3505
|
};
|
|
2669
3506
|
};
|
|
2670
3507
|
roles: {
|
|
@@ -2675,13 +3512,13 @@ export interface ApiClient {
|
|
|
2675
3512
|
roleKey: string;
|
|
2676
3513
|
permissions?: string[];
|
|
2677
3514
|
description: string;
|
|
2678
|
-
}, config?: RequestConfig) =>
|
|
3515
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2679
3516
|
};
|
|
2680
3517
|
delete: {
|
|
2681
3518
|
/** 删除角色 */
|
|
2682
3519
|
post: (body: {
|
|
2683
3520
|
id: string;
|
|
2684
|
-
}, config?: RequestConfig) =>
|
|
3521
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2685
3522
|
};
|
|
2686
3523
|
update: {
|
|
2687
3524
|
/** 更新角色信息 */
|
|
@@ -2691,7 +3528,7 @@ export interface ApiClient {
|
|
|
2691
3528
|
roleKey: string;
|
|
2692
3529
|
permissions?: string[];
|
|
2693
3530
|
description: string;
|
|
2694
|
-
}, config?: RequestConfig) =>
|
|
3531
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2695
3532
|
};
|
|
2696
3533
|
find: {
|
|
2697
3534
|
/** 分页查询角色列表 */
|
|
@@ -2703,17 +3540,17 @@ export interface ApiClient {
|
|
|
2703
3540
|
roleKey?: string;
|
|
2704
3541
|
description?: string;
|
|
2705
3542
|
};
|
|
2706
|
-
}, config?: RequestConfig) =>
|
|
3543
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2707
3544
|
};
|
|
2708
3545
|
findOne: {
|
|
2709
3546
|
/** 根据 ID 查询角色详情 */
|
|
2710
3547
|
post: (body: {
|
|
2711
3548
|
id: string;
|
|
2712
|
-
}, config?: RequestConfig) =>
|
|
3549
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2713
3550
|
};
|
|
2714
3551
|
options: {
|
|
2715
3552
|
/** 获取角色下拉选项 */
|
|
2716
|
-
post: (config?: RequestConfig) =>
|
|
3553
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2717
3554
|
};
|
|
2718
3555
|
};
|
|
2719
3556
|
permissions: {
|
|
@@ -2724,13 +3561,13 @@ export interface ApiClient {
|
|
|
2724
3561
|
permissionKey: string;
|
|
2725
3562
|
description: string;
|
|
2726
3563
|
isPublic: boolean;
|
|
2727
|
-
}, config?: RequestConfig) =>
|
|
3564
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2728
3565
|
};
|
|
2729
3566
|
delete: {
|
|
2730
3567
|
/** 删除权限 */
|
|
2731
3568
|
post: (body: {
|
|
2732
3569
|
id: string;
|
|
2733
|
-
}, config?: RequestConfig) =>
|
|
3570
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2734
3571
|
};
|
|
2735
3572
|
update: {
|
|
2736
3573
|
/** 更新权限信息 */
|
|
@@ -2740,7 +3577,7 @@ export interface ApiClient {
|
|
|
2740
3577
|
permissionKey: string;
|
|
2741
3578
|
description: string;
|
|
2742
3579
|
isPublic: boolean;
|
|
2743
|
-
}, config?: RequestConfig) =>
|
|
3580
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2744
3581
|
};
|
|
2745
3582
|
find: {
|
|
2746
3583
|
/** 分页查询权限列表 */
|
|
@@ -2752,72 +3589,157 @@ export interface ApiClient {
|
|
|
2752
3589
|
permissionKey?: string;
|
|
2753
3590
|
description?: string;
|
|
2754
3591
|
};
|
|
2755
|
-
}, config?: RequestConfig) =>
|
|
3592
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2756
3593
|
};
|
|
2757
3594
|
findOne: {
|
|
2758
3595
|
/** 根据 ID 查询权限详情 */
|
|
2759
3596
|
post: (body: {
|
|
2760
3597
|
id: string;
|
|
2761
|
-
}, config?: RequestConfig) =>
|
|
3598
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2762
3599
|
};
|
|
2763
3600
|
options: {
|
|
2764
3601
|
/** 获取权限下拉选项 */
|
|
2765
|
-
post: (body
|
|
3602
|
+
post: (body?: {
|
|
2766
3603
|
excludePublic?: boolean;
|
|
2767
|
-
}, config?: RequestConfig) =>
|
|
3604
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3605
|
+
};
|
|
3606
|
+
};
|
|
3607
|
+
organizations: {
|
|
3608
|
+
create: {
|
|
3609
|
+
/** 创建新的组织 */
|
|
3610
|
+
post: (body: {
|
|
3611
|
+
name: string;
|
|
3612
|
+
domain: string;
|
|
3613
|
+
email: string;
|
|
3614
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3615
|
+
};
|
|
3616
|
+
delete: {
|
|
3617
|
+
/** 删除指定组织 */
|
|
3618
|
+
post: (body: {
|
|
3619
|
+
id: string;
|
|
3620
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3621
|
+
};
|
|
3622
|
+
update: {
|
|
3623
|
+
/** 更新组织信息 */
|
|
3624
|
+
post: (body: {
|
|
3625
|
+
id: string;
|
|
3626
|
+
name: string;
|
|
3627
|
+
domain: string;
|
|
3628
|
+
email: string;
|
|
3629
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3630
|
+
};
|
|
3631
|
+
find: {
|
|
3632
|
+
/** 分页查询组织列表 */
|
|
3633
|
+
post: (body: {
|
|
3634
|
+
current: number;
|
|
3635
|
+
pageSize: number;
|
|
3636
|
+
where?: {
|
|
3637
|
+
name?: string;
|
|
3638
|
+
domain?: string;
|
|
3639
|
+
email?: string;
|
|
3640
|
+
};
|
|
3641
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3642
|
+
};
|
|
3643
|
+
findAll: {
|
|
3644
|
+
/** 获取当前用户的所有组织 */
|
|
3645
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3646
|
+
};
|
|
3647
|
+
findOne: {
|
|
3648
|
+
/** 根据 ID 获取组织详情 */
|
|
3649
|
+
post: (body: {
|
|
3650
|
+
id: string;
|
|
3651
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3652
|
+
};
|
|
3653
|
+
addMember: {
|
|
3654
|
+
/** 添加用户到组织 */
|
|
3655
|
+
post: (body: {
|
|
3656
|
+
organizationId: string;
|
|
3657
|
+
userId: string;
|
|
3658
|
+
role?: "admin" | "member";
|
|
3659
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3660
|
+
};
|
|
3661
|
+
removeMember: {
|
|
3662
|
+
/** 从组织中移除用户 */
|
|
3663
|
+
post: (body: {
|
|
3664
|
+
organizationId: string;
|
|
3665
|
+
userId: string;
|
|
3666
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3667
|
+
};
|
|
3668
|
+
updateMemberRole: {
|
|
3669
|
+
/** 更新组织成员的角色 */
|
|
3670
|
+
post: (body: {
|
|
3671
|
+
organizationId: string;
|
|
3672
|
+
userId: string;
|
|
3673
|
+
role: "admin" | "member";
|
|
3674
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3675
|
+
};
|
|
3676
|
+
getMembers: {
|
|
3677
|
+
/** 获取指定组织的成员列表 */
|
|
3678
|
+
post: (body: {
|
|
3679
|
+
organizationId: string;
|
|
3680
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3681
|
+
};
|
|
3682
|
+
addApp: {
|
|
3683
|
+
/** 将应用关联到组织 */
|
|
3684
|
+
post: (body: {
|
|
3685
|
+
organizationId: string;
|
|
3686
|
+
appId: string;
|
|
3687
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2768
3688
|
};
|
|
2769
3689
|
};
|
|
2770
3690
|
referrer: {
|
|
2771
3691
|
find: {
|
|
2772
|
-
/**
|
|
3692
|
+
/** 分页查询邀请关系列表 */
|
|
2773
3693
|
post: (body: {
|
|
2774
3694
|
current: number;
|
|
2775
3695
|
pageSize: number;
|
|
2776
3696
|
where: {
|
|
2777
3697
|
referrerId?: string;
|
|
2778
|
-
|
|
2779
|
-
|
|
3698
|
+
refereeId?: string;
|
|
3699
|
+
referrerKeyword?: string;
|
|
3700
|
+
refereeKeyword?: string;
|
|
3701
|
+
inviteCode?: string;
|
|
3702
|
+
distributionChannel?: string;
|
|
3703
|
+
registerMethod?: string;
|
|
3704
|
+
registerSource?: string;
|
|
3705
|
+
rewardStatus?: string;
|
|
2780
3706
|
};
|
|
2781
|
-
}, config?: RequestConfig) =>
|
|
3707
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2782
3708
|
};
|
|
2783
3709
|
findOne: {
|
|
2784
|
-
/** 根据 ID
|
|
3710
|
+
/** 根据 ID 查询邀请关系详情 */
|
|
2785
3711
|
post: (body: {
|
|
2786
3712
|
id: string;
|
|
2787
|
-
}, config?: RequestConfig) =>
|
|
3713
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2788
3714
|
};
|
|
2789
3715
|
referees: {
|
|
2790
|
-
/**
|
|
3716
|
+
/** 查询指定邀请人的被邀请用户列表 */
|
|
2791
3717
|
post: (body: {
|
|
2792
3718
|
current: number;
|
|
2793
3719
|
pageSize: number;
|
|
2794
|
-
|
|
3720
|
+
referrerId?: string;
|
|
3721
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2795
3722
|
};
|
|
2796
3723
|
delete: {
|
|
2797
|
-
/**
|
|
3724
|
+
/** 删除邀请关系记录 */
|
|
2798
3725
|
post: (body: {
|
|
2799
3726
|
id: string;
|
|
2800
|
-
}, config?: RequestConfig) =>
|
|
3727
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2801
3728
|
};
|
|
2802
3729
|
getReferrerStatistics: {
|
|
2803
|
-
/**
|
|
2804
|
-
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2805
|
-
};
|
|
2806
|
-
getReferralCountChart: {
|
|
2807
|
-
/** 获取推荐数量趋势图表 */
|
|
3730
|
+
/** 按时间范围获取邀请统计数据 */
|
|
2808
3731
|
post: (body: {
|
|
2809
3732
|
startTime: string;
|
|
2810
3733
|
endTime: string;
|
|
2811
|
-
|
|
2812
|
-
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
3734
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2813
3735
|
};
|
|
2814
|
-
|
|
2815
|
-
/**
|
|
3736
|
+
getReferralCountChart: {
|
|
3737
|
+
/** 获取推荐数量趋势图表 */
|
|
2816
3738
|
post: (body: {
|
|
2817
3739
|
startTime: string;
|
|
2818
3740
|
endTime: string;
|
|
2819
3741
|
granularity: "minute" | "hour" | "day" | "month" | "year";
|
|
2820
|
-
}, config?: RequestConfig) =>
|
|
3742
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2821
3743
|
};
|
|
2822
3744
|
getAvgReferralsChart: {
|
|
2823
3745
|
/** 获取平均推荐数趋势图表 */
|
|
@@ -2825,29 +3747,20 @@ export interface ApiClient {
|
|
|
2825
3747
|
startTime: string;
|
|
2826
3748
|
endTime: string;
|
|
2827
3749
|
granularity: "minute" | "hour" | "day" | "month" | "year";
|
|
2828
|
-
}, config?: RequestConfig) =>
|
|
2829
|
-
};
|
|
2830
|
-
getReferralOrderAmountChart: {
|
|
2831
|
-
/** 获取推荐订单金额趋势图表 */
|
|
2832
|
-
post: (body: {
|
|
2833
|
-
startTime: string;
|
|
2834
|
-
endTime: string;
|
|
2835
|
-
granularity: "minute" | "hour" | "day" | "month" | "year";
|
|
2836
|
-
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
3750
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2837
3751
|
};
|
|
2838
|
-
|
|
2839
|
-
/**
|
|
3752
|
+
getRegistrationInsights: {
|
|
3753
|
+
/** 按时间范围统计新注册用户邀请占比,以及被邀请用户的投放渠道、注册方式、注册来源占比 */
|
|
2840
3754
|
post: (body: {
|
|
2841
3755
|
startTime: string;
|
|
2842
3756
|
endTime: string;
|
|
2843
|
-
|
|
2844
|
-
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
3757
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2845
3758
|
};
|
|
2846
3759
|
};
|
|
2847
3760
|
authLogs: {
|
|
2848
3761
|
list: {
|
|
2849
3762
|
/** 分页获取认证审计日志列表 */
|
|
2850
|
-
post: (body
|
|
3763
|
+
post: (body?: {
|
|
2851
3764
|
page?: number;
|
|
2852
3765
|
pageSize?: number;
|
|
2853
3766
|
userId?: string;
|
|
@@ -2858,23 +3771,35 @@ export interface ApiClient {
|
|
|
2858
3771
|
endTime?: string;
|
|
2859
3772
|
clientIp?: string;
|
|
2860
3773
|
email?: string;
|
|
2861
|
-
}, config?: RequestConfig) =>
|
|
3774
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2862
3775
|
};
|
|
2863
3776
|
stats: {
|
|
2864
3777
|
/** 获取认证审计日志统计数据 */
|
|
2865
|
-
post: (body
|
|
3778
|
+
post: (body?: {
|
|
2866
3779
|
startTime?: string;
|
|
2867
3780
|
endTime?: string;
|
|
2868
|
-
}, config?: RequestConfig) =>
|
|
3781
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2869
3782
|
};
|
|
2870
3783
|
':id': {
|
|
2871
3784
|
/** 根据 ID 获取认证审计日志详情 */
|
|
2872
|
-
get: (config?: RequestConfig) =>
|
|
3785
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3786
|
+
};
|
|
3787
|
+
delete: {
|
|
3788
|
+
/** 删除单条认证审计日志 */
|
|
3789
|
+
post: (body: {
|
|
3790
|
+
id: string;
|
|
3791
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3792
|
+
};
|
|
3793
|
+
batchDelete: {
|
|
3794
|
+
/** 批量删除认证审计日志 */
|
|
3795
|
+
post: (body: {
|
|
3796
|
+
ids: string[];
|
|
3797
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2873
3798
|
};
|
|
2874
3799
|
};
|
|
2875
3800
|
inviteCodes: {
|
|
2876
3801
|
create: {
|
|
2877
|
-
/**
|
|
3802
|
+
/** 创建运营投放邀请码 */
|
|
2878
3803
|
post: (body: {
|
|
2879
3804
|
name: string;
|
|
2880
3805
|
type: "assigned" | "channel" | "campaign";
|
|
@@ -2883,13 +3808,13 @@ export interface ApiClient {
|
|
|
2883
3808
|
maxUses?: number;
|
|
2884
3809
|
expiresAt?: string;
|
|
2885
3810
|
description?: string;
|
|
2886
|
-
}, config?: RequestConfig) =>
|
|
3811
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2887
3812
|
};
|
|
2888
3813
|
delete: {
|
|
2889
3814
|
/** 删除邀请码 */
|
|
2890
3815
|
post: (body: {
|
|
2891
3816
|
id: string;
|
|
2892
|
-
}, config?: RequestConfig) =>
|
|
3817
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2893
3818
|
};
|
|
2894
3819
|
update: {
|
|
2895
3820
|
/** 更新邀请码信息 */
|
|
@@ -2901,7 +3826,7 @@ export interface ApiClient {
|
|
|
2901
3826
|
expiresAt?: string;
|
|
2902
3827
|
status: "active" | "inactive" | "expired";
|
|
2903
3828
|
description?: string;
|
|
2904
|
-
}, config?: RequestConfig) =>
|
|
3829
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2905
3830
|
};
|
|
2906
3831
|
find: {
|
|
2907
3832
|
/** 分页查询邀请码列表 */
|
|
@@ -2916,28 +3841,28 @@ export interface ApiClient {
|
|
|
2916
3841
|
status?: string;
|
|
2917
3842
|
attributionKeyword?: string;
|
|
2918
3843
|
};
|
|
2919
|
-
}, config?: RequestConfig) =>
|
|
3844
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2920
3845
|
};
|
|
2921
3846
|
findOne: {
|
|
2922
3847
|
/** 根据 ID 查询邀请码详情 */
|
|
2923
3848
|
post: (body: {
|
|
2924
3849
|
id: string;
|
|
2925
|
-
}, config?: RequestConfig) =>
|
|
3850
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2926
3851
|
};
|
|
2927
3852
|
validate: {
|
|
2928
3853
|
/** 验证邀请码是否有效 */
|
|
2929
3854
|
post: (body: {
|
|
2930
3855
|
code: string;
|
|
2931
|
-
}, config?: RequestConfig) =>
|
|
3856
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2932
3857
|
};
|
|
2933
3858
|
options: {
|
|
2934
3859
|
type: {
|
|
2935
3860
|
/** 获取邀请码类型下拉选项 */
|
|
2936
|
-
post: (config?: RequestConfig) =>
|
|
3861
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2937
3862
|
};
|
|
2938
3863
|
status: {
|
|
2939
3864
|
/** 获取邀请码状态下拉选项 */
|
|
2940
|
-
post: (config?: RequestConfig) =>
|
|
3865
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
2941
3866
|
};
|
|
2942
3867
|
};
|
|
2943
3868
|
};
|
|
@@ -2945,54 +3870,111 @@ export interface ApiClient {
|
|
|
2945
3870
|
ip: {
|
|
2946
3871
|
list: {
|
|
2947
3872
|
/** 获取 IP 黑白名单规则列表 */
|
|
2948
|
-
post: (body
|
|
2949
|
-
appId?: string;
|
|
3873
|
+
post: (body?: {
|
|
2950
3874
|
type?: "whitelist" | "blacklist";
|
|
2951
3875
|
ip?: string;
|
|
3876
|
+
description?: string;
|
|
3877
|
+
enabled?: boolean;
|
|
3878
|
+
source?: "manual" | "auto";
|
|
3879
|
+
expiresInMinutes?: number;
|
|
3880
|
+
expireStatus?: "permanent" | "active" | "expired";
|
|
2952
3881
|
startTime?: string;
|
|
2953
3882
|
endTime?: string;
|
|
3883
|
+
expireStartTime?: string;
|
|
3884
|
+
expireEndTime?: string;
|
|
2954
3885
|
page?: number;
|
|
2955
3886
|
pageSize?: number;
|
|
2956
|
-
}, config?: RequestConfig) =>
|
|
3887
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2957
3888
|
};
|
|
2958
3889
|
add: {
|
|
2959
3890
|
/** 添加 IP 黑白名单规则 */
|
|
2960
3891
|
post: (body: {
|
|
2961
|
-
appId?: string;
|
|
2962
3892
|
ip: string;
|
|
2963
3893
|
type: "whitelist" | "blacklist";
|
|
2964
|
-
|
|
3894
|
+
source?: "manual" | "auto";
|
|
3895
|
+
description?: string;
|
|
2965
3896
|
expiresInMinutes?: number;
|
|
2966
|
-
|
|
3897
|
+
enabled?: boolean;
|
|
3898
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2967
3899
|
};
|
|
2968
3900
|
remove: {
|
|
2969
3901
|
/** 删除 IP 黑白名单规则 */
|
|
2970
3902
|
post: (body: {
|
|
2971
3903
|
id: string;
|
|
2972
|
-
}, config?: RequestConfig) =>
|
|
3904
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3905
|
+
};
|
|
3906
|
+
update: {
|
|
3907
|
+
/** 更新 IP 黑白名单规则 */
|
|
3908
|
+
post: (body: {
|
|
3909
|
+
id: string;
|
|
3910
|
+
ip?: string;
|
|
3911
|
+
type?: "whitelist" | "blacklist";
|
|
3912
|
+
source?: "manual" | "auto";
|
|
3913
|
+
description?: string;
|
|
3914
|
+
enabled?: boolean;
|
|
3915
|
+
expiresInMinutes?: number;
|
|
3916
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3917
|
+
};
|
|
3918
|
+
setEnabled: {
|
|
3919
|
+
/** 启用或停用 IP 黑白名单规则 */
|
|
3920
|
+
post: (body: {
|
|
3921
|
+
id: string;
|
|
3922
|
+
enabled: boolean;
|
|
3923
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2973
3924
|
};
|
|
2974
3925
|
block: {
|
|
2975
3926
|
/** 将 IP 加入黑名单 */
|
|
2976
3927
|
post: (body: {
|
|
2977
3928
|
ip: string;
|
|
2978
|
-
|
|
3929
|
+
description: string;
|
|
2979
3930
|
durationMinutes?: number;
|
|
2980
|
-
|
|
2981
|
-
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
3931
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2982
3932
|
};
|
|
2983
3933
|
unblock: {
|
|
2984
3934
|
/** 将 IP 从黑名单移除 */
|
|
2985
3935
|
post: (body: {
|
|
2986
3936
|
ip: string;
|
|
2987
|
-
|
|
2988
|
-
|
|
3937
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3938
|
+
};
|
|
3939
|
+
denyLogs: {
|
|
3940
|
+
list: {
|
|
3941
|
+
/** 分页获取 IP 黑白名单拦截审计日志 */
|
|
3942
|
+
post: (body?: {
|
|
3943
|
+
clientIp?: string;
|
|
3944
|
+
path?: string;
|
|
3945
|
+
method?: string;
|
|
3946
|
+
traceId?: string;
|
|
3947
|
+
startTime?: string;
|
|
3948
|
+
endTime?: string;
|
|
3949
|
+
page?: number;
|
|
3950
|
+
pageSize?: number;
|
|
3951
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3952
|
+
};
|
|
3953
|
+
stats: {
|
|
3954
|
+
/** 获取 IP 拦截审计统计数据 */
|
|
3955
|
+
post: (body?: {
|
|
3956
|
+
startTime?: string;
|
|
3957
|
+
endTime?: string;
|
|
3958
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3959
|
+
};
|
|
3960
|
+
delete: {
|
|
3961
|
+
/** 删除单条 IP 拦截审计日志 */
|
|
3962
|
+
post: (body: {
|
|
3963
|
+
id: string;
|
|
3964
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3965
|
+
};
|
|
3966
|
+
batchDelete: {
|
|
3967
|
+
/** 批量删除 IP 拦截审计日志 */
|
|
3968
|
+
post: (body: {
|
|
3969
|
+
ids: string[];
|
|
3970
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3971
|
+
};
|
|
2989
3972
|
};
|
|
2990
3973
|
};
|
|
2991
3974
|
alerts: {
|
|
2992
3975
|
list: {
|
|
2993
3976
|
/** 获取可疑登录告警列表 */
|
|
2994
|
-
post: (body
|
|
2995
|
-
appId?: string;
|
|
3977
|
+
post: (body?: {
|
|
2996
3978
|
type?: string;
|
|
2997
3979
|
riskLevel?: "low" | "medium" | "high" | "critical";
|
|
2998
3980
|
resolved?: boolean;
|
|
@@ -3000,42 +3982,117 @@ export interface ApiClient {
|
|
|
3000
3982
|
endTime?: string;
|
|
3001
3983
|
page?: number;
|
|
3002
3984
|
pageSize?: number;
|
|
3003
|
-
}, config?: RequestConfig) =>
|
|
3985
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3986
|
+
};
|
|
3987
|
+
detail: {
|
|
3988
|
+
/** 获取安全告警详情,IP 级告警包含近期尝试的邮箱/手机号样本 */
|
|
3989
|
+
post: (body: {
|
|
3990
|
+
alertId: string;
|
|
3991
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3004
3992
|
};
|
|
3005
3993
|
resolve: {
|
|
3006
3994
|
/** 标记安全告警为已处理 */
|
|
3007
3995
|
post: (body: {
|
|
3008
3996
|
alertId: string;
|
|
3009
|
-
|
|
3997
|
+
description: string;
|
|
3998
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3999
|
+
};
|
|
4000
|
+
delete: {
|
|
4001
|
+
/** 删除单条威胁告警记录 */
|
|
4002
|
+
post: (body: {
|
|
4003
|
+
id: string;
|
|
4004
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
4005
|
+
};
|
|
4006
|
+
batchDelete: {
|
|
4007
|
+
/** 批量删除威胁告警记录 */
|
|
4008
|
+
post: (body: {
|
|
4009
|
+
ids: string[];
|
|
4010
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3010
4011
|
};
|
|
3011
4012
|
stats: {
|
|
3012
4013
|
/** 获取安全告警统计数据 */
|
|
3013
|
-
post: (body
|
|
3014
|
-
appId?: string;
|
|
4014
|
+
post: (body?: {
|
|
3015
4015
|
startTime?: string;
|
|
3016
4016
|
endTime?: string;
|
|
3017
|
-
}, config?: RequestConfig) =>
|
|
4017
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
4018
|
+
};
|
|
4019
|
+
getDevTestConfig: {
|
|
4020
|
+
/** 读取当前用户在当前应用下的威胁告警测试通知表单配置 */
|
|
4021
|
+
post: (body?: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
|
|
4022
|
+
};
|
|
4023
|
+
saveDevTestConfig: {
|
|
4024
|
+
/** 保存当前用户在当前应用下的威胁告警测试通知表单配置 */
|
|
4025
|
+
post: (body?: {
|
|
4026
|
+
notificationPreview?: {
|
|
4027
|
+
notificationGroupIds: string[];
|
|
4028
|
+
type: "brute_force" | "multiple_failed" | "unusual_location" | "new_device" | "unusual_time" | "account_enumeration" | "credential_stuffing";
|
|
4029
|
+
riskLevel: "low" | "medium" | "high" | "critical";
|
|
4030
|
+
clientIp: string;
|
|
4031
|
+
email?: string;
|
|
4032
|
+
userId?: string;
|
|
4033
|
+
autoBlocked: boolean;
|
|
4034
|
+
};
|
|
4035
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
4036
|
+
};
|
|
4037
|
+
sendNotificationPreview: {
|
|
4038
|
+
/** 使用预制表单参数发送威胁告警测试通知,预览邮件与 Webhook 样式,不产生告警记录 */
|
|
4039
|
+
post: (body: {
|
|
4040
|
+
notificationGroupIds: string[];
|
|
4041
|
+
type: "brute_force" | "multiple_failed" | "unusual_location" | "new_device" | "unusual_time" | "account_enumeration" | "credential_stuffing";
|
|
4042
|
+
riskLevel: "low" | "medium" | "high" | "critical";
|
|
4043
|
+
clientIp: string;
|
|
4044
|
+
email?: string;
|
|
4045
|
+
userId?: string;
|
|
4046
|
+
autoBlocked: boolean;
|
|
4047
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3018
4048
|
};
|
|
3019
4049
|
};
|
|
3020
4050
|
detection: {
|
|
3021
4051
|
config: {
|
|
3022
|
-
/**
|
|
3023
|
-
get: (config?: RequestConfig) =>
|
|
4052
|
+
/** 获取当前应用的可疑登录检测配置 */
|
|
4053
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
4054
|
+
/** 更新当前应用的可疑登录检测配置 */
|
|
4055
|
+
post: (body?: {
|
|
4056
|
+
bruteForceWindowMinutes?: number;
|
|
4057
|
+
bruteForceThreshold?: number;
|
|
4058
|
+
bruteForceAutoBlock?: boolean;
|
|
4059
|
+
bruteForceBlockDurationMinutes?: number;
|
|
4060
|
+
multipleFailedWindowMinutes?: number;
|
|
4061
|
+
multipleFailedThreshold?: number;
|
|
4062
|
+
accountEnumWindowMinutes?: number;
|
|
4063
|
+
accountEnumThreshold?: number;
|
|
4064
|
+
accountEnumAutoBlock?: boolean;
|
|
4065
|
+
accountEnumBlockDurationMinutes?: number;
|
|
4066
|
+
credentialStuffingWindowMinutes?: number;
|
|
4067
|
+
credentialStuffingThreshold?: number;
|
|
4068
|
+
credentialStuffingAutoBlock?: boolean;
|
|
4069
|
+
credentialStuffingBlockDurationMinutes?: number;
|
|
4070
|
+
unusualTimeStart?: number;
|
|
4071
|
+
unusualTimeEnd?: number;
|
|
4072
|
+
sampleAccountLimit?: number;
|
|
4073
|
+
securityAlertNotificationGroupIds?: string[];
|
|
4074
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3024
4075
|
};
|
|
3025
4076
|
};
|
|
3026
4077
|
};
|
|
4078
|
+
system: {
|
|
4079
|
+
dataRetentionPolicy: {
|
|
4080
|
+
/** 获取 auth-server 认证安全数据保留策略配置 */
|
|
4081
|
+
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
4082
|
+
};
|
|
4083
|
+
};
|
|
3027
4084
|
webhooks: {
|
|
3028
4085
|
events: {
|
|
3029
4086
|
/** 获取所有可用的 Webhook 事件类型 */
|
|
3030
|
-
get: (config?: RequestConfig) =>
|
|
4087
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3031
4088
|
':id': {
|
|
3032
4089
|
/** 获取指定分类的 Webhook 事件 */
|
|
3033
|
-
get: (config?: RequestConfig) =>
|
|
4090
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3034
4091
|
};
|
|
3035
4092
|
};
|
|
3036
4093
|
categories: {
|
|
3037
4094
|
/** 获取所有 Webhook 事件分类 */
|
|
3038
|
-
get: (config?: RequestConfig) =>
|
|
4095
|
+
get: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3039
4096
|
};
|
|
3040
4097
|
};
|
|
3041
4098
|
}
|