@huyooo/ui 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{AuthkitAppSetting-v80fEiq0.js → AuthkitAppSetting-jfSU-9BO.js} +655 -646
  2. package/dist/{AuthkitGithubBinding-CVhCM6AX.js → AuthkitGithubBinding-Co5Z_cD0.js} +260 -255
  3. package/dist/{Clipboard-R3AURqvU.js → Clipboard-Bo7gdpR6.js} +1 -1
  4. package/dist/{Contact-B3AMSHoN.js → Contact-B09Z0y_t.js} +2 -2
  5. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-CAGBbiZD.js → FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js} +3 -3
  6. package/dist/{MessageHandle-BMhGWVHD.js → MessageHandle-BG12aX0i.js} +2 -2
  7. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-ByB_YaVb.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js} +2 -2
  8. package/dist/{PaySubscriptions-D3g1OhiA.js → PaySubscriptions-BFq89DCI.js} +4 -4
  9. package/dist/{PricingPlans-DXea7rl0.js → PricingPlans-TZT6j_Jq.js} +4 -4
  10. package/dist/{ReferrerReferees-BxmZ1w_L.js → ReferrerReferees-jWOIvXrk.js} +18 -18
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CXr8D4VG.js → Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js} +1 -1
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-6xQNhFk3.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BVtXbwch.js} +57 -57
  13. package/dist/{WidthContainer-DVZQV6sM.js → WidthContainer-Ct44rKyS.js} +9 -9
  14. package/dist/{apiClients-DT7o0IpO.js → apiClients-DrGX2iJy.js} +81 -78
  15. package/dist/authkit.js +9 -9
  16. package/dist/common/authPanelWidth.d.ts +2 -0
  17. package/dist/common.js +1 -1
  18. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +2 -2
  19. package/dist/composables/Authkit/readInviteCodeFromLocation.d.ts +2 -0
  20. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
  21. package/dist/composables/Authkit/useOauth.d.ts +5 -9
  22. package/dist/composables.js +13 -13
  23. package/dist/feedback.js +2 -2
  24. package/dist/main.js +29 -29
  25. package/dist/message.js +3 -3
  26. package/dist/pay.js +4 -4
  27. package/dist/privateCom.js +1 -1
  28. package/dist/referrer.js +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/types/api/ai.generated.d.ts +764 -94
  31. package/dist/types/api/auth.generated.d.ts +24 -20
  32. package/dist/types/api/billing.generated.d.ts +206 -514
  33. package/dist/types/api/ones.generated.d.ts +4 -0
  34. package/dist/types/api.d.ts +1 -1
  35. package/dist/types/user.d.ts +1 -1
  36. package/dist/upload.js +2 -2
  37. package/dist/{useAuthkitAppsAuthPageInfo-DScDQfj5.js → useAuthkitAppsAuthPageInfo-DWd0bDP-.js} +1 -1
  38. package/dist/{useAuthkitAuth-DpdKRuJm.js → useAuthkitAuth-DmS-H7M2.js} +60 -53
  39. package/dist/{useAuthkitCreateAndUpdate-MzA4qtTh.js → useAuthkitCreateAndUpdate-oo9517Gj.js} +1 -1
  40. package/dist/{useAuthkitUsersProfile-aw_A7IWb.js → useAuthkitUsersProfile-BZDk21c8.js} +2 -2
  41. package/dist/{useBillingStatusOptions-CAsu1hrf.js → useBillingStatusOptions-B7xLU3fs.js} +1 -1
  42. package/dist/{useEnsureAuthenticated-BEKhtQAl.js → useEnsureAuthenticated-BuIbxqsO.js} +2 -2
  43. package/dist/{useLegalLinks-BijRF_ZD.js → useLegalLinks--qFGF7lO.js} +2 -2
  44. package/dist/{useMessageNotifications-CFku0c2R.js → useMessageNotifications-D85_-mDq.js} +1 -1
  45. package/dist/{useRoutePermission-v4_0B-aO.js → useRoutePermission-chEi45Nb.js} +2 -2
  46. package/dist/{useSEO-CbHCw4gq.js → useSEO-C6DLicfe.js} +1 -1
  47. package/dist/{useSubscriptionCheckout-BjPiHSjA.js → useSubscriptionCheckout-BRk5h9aC.js} +3 -3
  48. package/dist/{useTableHandle-TDJa_Czn.js → useTableHandle-BdujaiNX.js} +1 -1
  49. package/dist/{useUploadCos-DOHnz2MP.js → useUploadCos-BRKRzSy3.js} +1 -1
  50. package/dist/user.js +1 -1
  51. package/dist/utils/apiMiddlewares.d.ts +4 -4
  52. package/package.json +2 -1
@@ -121,7 +121,7 @@ export type Api = {
121
121
  post: {
122
122
  body: {
123
123
  productId: string;
124
- nickname?: string;
124
+ nickname: string;
125
125
  type: "free" | "one_time" | "recurring";
126
126
  currency: string;
127
127
  unitAmount: number;
@@ -129,6 +129,7 @@ export type Api = {
129
129
  allowRepeatTrial?: boolean;
130
130
  interval?: "day" | "week" | "month" | "year";
131
131
  intervalCount?: number;
132
+ bonusPoints?: number;
132
133
  metadata?: Record<string, unknown>;
133
134
  };
134
135
  return: any;
@@ -153,6 +154,7 @@ export type Api = {
153
154
  metadata?: Record<string, unknown>;
154
155
  trialPeriodDays?: number;
155
156
  allowRepeatTrial?: boolean;
157
+ bonusPoints?: number;
156
158
  };
157
159
  return: any;
158
160
  };
@@ -199,6 +201,7 @@ export type Api = {
199
201
  body: {
200
202
  priceId: string;
201
203
  couponCode?: string;
204
+ subjectUserId?: string;
202
205
  };
203
206
  return: any;
204
207
  };
@@ -241,6 +244,7 @@ export type Api = {
241
244
  current?: number;
242
245
  pageSize?: number;
243
246
  status?: string;
247
+ subjectUserId?: string;
244
248
  };
245
249
  return: any;
246
250
  };
@@ -248,6 +252,9 @@ export type Api = {
248
252
  current: {
249
253
  /** 获取当前活跃订阅 */
250
254
  post: {
255
+ body: {
256
+ subjectUserId?: string;
257
+ };
251
258
  return: any;
252
259
  };
253
260
  };
@@ -285,7 +292,7 @@ export type Api = {
285
292
  statistics: {
286
293
  /** 获取订阅概览页统计数据(状态计数、MRR、产品分布、最近订阅) */
287
294
  post: {
288
- query: {
295
+ body: {
289
296
  recentLimit?: number;
290
297
  };
291
298
  return: any;
@@ -427,6 +434,9 @@ export type Api = {
427
434
  my: {
428
435
  /** 获取当前用户的配额使用情况 */
429
436
  post: {
437
+ body: {
438
+ subjectUserId?: string;
439
+ };
430
440
  return: any;
431
441
  };
432
442
  };
@@ -492,6 +502,15 @@ export type Api = {
492
502
  body: {
493
503
  autoGrantFreePriceOnSignup: boolean;
494
504
  defaultFreePriceId?: string;
505
+ signupReward?: {
506
+ enabled: boolean;
507
+ amount: number;
508
+ };
509
+ defaultInviteReward?: {
510
+ enabled: boolean;
511
+ refereeAmount: number;
512
+ referrerAmount: number;
513
+ };
495
514
  };
496
515
  return: any;
497
516
  };
@@ -629,6 +648,7 @@ export type Api = {
629
648
  current?: number;
630
649
  pageSize?: number;
631
650
  status?: string;
651
+ subjectUserId?: string;
632
652
  };
633
653
  return: any;
634
654
  };
@@ -949,237 +969,35 @@ export type Api = {
949
969
  };
950
970
  };
951
971
  };
952
- pointsTrigger: {
953
- trigger: {
954
- /** 根据规则 ID 触发积分发放 */
955
- post: {
956
- body: {
957
- ruleId: string;
958
- eventData?: Record<string, unknown>;
959
- };
960
- return: any;
961
- };
962
- };
963
- triggerByEvent: {
964
- /** 根据事件自动匹配并触发积分规则 */
965
- post: {
966
- body: {
967
- event: string;
968
- eventData?: Record<string, unknown>;
969
- userId?: string;
970
- };
971
- return: any;
972
- };
973
- };
974
- batchTrigger: {
975
- /** 批量触发多个积分规则 */
976
- post: {
977
- body: {
978
- triggers: {
979
- ruleId: string;
980
- eventData?: Record<string, unknown>;
981
- }[];
982
- };
983
- return: any;
984
- };
985
- };
986
- };
987
- pointsTriggerHistory: {
988
- find: {
989
- /** 分页查询积分触发历史记录 */
990
- post: {
991
- body: {
992
- current?: number;
993
- pageSize?: number;
994
- where?: {
995
- userId?: string;
996
- ruleId?: string;
997
- ruleCode?: string;
998
- event?: string;
999
- status?: "pending" | "success" | "completed" | "failed" | "cooldown" | "constraintFailed";
1000
- rewardTarget?: "self" | "referrer";
1001
- startDate?: string;
1002
- endDate?: string;
972
+ pointsRewardPolicy: {
973
+ inviteReward: {
974
+ find: {
975
+ post: {
976
+ body: {
977
+ inviteCodeId: string;
1003
978
  };
979
+ return: any;
1004
980
  };
1005
- return: any;
1006
- };
1007
- };
1008
- findOne: {
1009
- /** 根据 ID 查询积分触发历史详情 */
1010
- post: {
1011
- body: {
1012
- id: string;
1013
- };
1014
- return: any;
1015
- };
1016
- };
1017
- statusOptions: {
1018
- /** 获取积分触发状态下拉选项 */
1019
- post: {
1020
- return: any;
1021
- };
1022
- };
1023
- rewardTargetOptions: {
1024
- /** 获取奖励目标下拉选项 */
1025
- post: {
1026
- return: any;
1027
- };
1028
- };
1029
- statistics: {
1030
- /** 获取积分触发历史统计数据 */
1031
- post: {
1032
- body: {
1033
- userId?: string;
1034
- ruleId?: string;
1035
- startTime?: string;
1036
- endTime?: string;
1037
- period?: "today" | "week" | "month" | "year";
1038
- };
1039
- return: any;
1040
- };
1041
- };
1042
- trends: {
1043
- /** 获取积分触发趋势图表数据 */
1044
- post: {
1045
- body: {
1046
- userId?: string;
1047
- ruleId?: string;
1048
- startTime?: string;
1049
- endTime?: string;
1050
- granularity?: "minute" | "hour" | "day" | "month" | "year";
1051
- };
1052
- return: any;
1053
- };
1054
- };
1055
- pointsTrends: {
1056
- /** 获取积分变动趋势图表数据 */
1057
- post: {
1058
- body: {
1059
- userId?: string;
1060
- ruleId?: string;
1061
- startTime?: string;
1062
- endTime?: string;
1063
- granularity?: "minute" | "hour" | "day" | "month" | "year";
1064
- };
1065
- return: any;
1066
- };
1067
- };
1068
- completionAnalysis: {
1069
- /** 获取积分规则完成度分析数据 */
1070
- post: {
1071
- body: {
1072
- userId?: string;
1073
- ruleId?: string;
1074
- startTime?: string;
1075
- endTime?: string;
1076
- };
1077
- return: any;
1078
- };
1079
- };
1080
- triggerTypeTrends: {
1081
- /** 获取积分触发类型趋势图表数据 */
1082
- post: {
1083
- body: {
1084
- userId?: string;
1085
- ruleId?: string;
1086
- startTime?: string;
1087
- endTime?: string;
1088
- granularity?: "minute" | "hour" | "day" | "month" | "year";
1089
- };
1090
- return: any;
1091
981
  };
1092
- };
1093
- };
1094
- pointsTriggerRule: {
1095
- create: {
1096
- /** 创建新积分触发规则 */
1097
- post: {
1098
- body: {
1099
- ruleName: string;
1100
- ruleCode: string;
1101
- description: string;
1102
- event?: string;
1103
- triggerCondition: unknown;
1104
- pointsReward: unknown;
1105
- constraints: unknown;
1106
- activeTimeRanges: unknown;
1107
- };
1108
- return: any;
1109
- };
1110
- };
1111
- find: {
1112
- /** 分页查询积分触发规则列表 */
1113
- post: {
1114
- body: {
1115
- current?: number;
1116
- pageSize?: number;
1117
- where?: {
1118
- triggerType?: string;
1119
- status?: string;
1120
- ruleName?: string;
1121
- ruleCode?: string;
1122
- event?: string;
982
+ findBatch: {
983
+ post: {
984
+ body: {
985
+ inviteCodeIds: string[];
1123
986
  };
987
+ return: any;
1124
988
  };
1125
- return: any;
1126
- };
1127
- };
1128
- findOne: {
1129
- /** 根据 ID 查询积分触发规则详情 */
1130
- post: {
1131
- body: {
1132
- id: string;
1133
- };
1134
- return: any;
1135
- };
1136
- };
1137
- update: {
1138
- /** 更新积分触发规则配置 */
1139
- post: {
1140
- body: {
1141
- id: string;
1142
- ruleName?: string;
1143
- ruleCode?: string;
1144
- description?: string;
1145
- event?: string | null;
1146
- triggerCondition?: unknown;
1147
- pointsReward?: unknown;
1148
- constraints?: unknown;
1149
- activeTimeRanges?: unknown;
1150
- };
1151
- return: any;
1152
989
  };
1153
- };
1154
- updateStatus: {
1155
- /** 启用或禁用积分触发规则 */
1156
- post: {
1157
- body: {
1158
- id: string;
1159
- status: "draft" | "active" | "inactive";
1160
- };
1161
- return: any;
1162
- };
1163
- };
1164
- delete: {
1165
- /** 删除积分触发规则 */
1166
- post: {
1167
- body: {
1168
- id: string;
990
+ save: {
991
+ post: {
992
+ body: {
993
+ inviteCodeId: string;
994
+ inviteCodeName?: string;
995
+ enabled: boolean;
996
+ refereeAmount?: number;
997
+ referrerAmount?: number;
998
+ };
999
+ return: any;
1169
1000
  };
1170
- return: any;
1171
- };
1172
- };
1173
- statusOptions: {
1174
- /** 获取积分触发规则状态下拉选项 */
1175
- post: {
1176
- return: any;
1177
- };
1178
- };
1179
- eventOptions: {
1180
- /** 获取可绑定的事件类型选项 */
1181
- post: {
1182
- return: any;
1183
1001
  };
1184
1002
  };
1185
1003
  };
@@ -1487,6 +1305,7 @@ export type Api = {
1487
1305
  body: {
1488
1306
  packageId: string;
1489
1307
  payType: "alipay" | "weixinpay";
1308
+ subjectUserId?: string;
1490
1309
  };
1491
1310
  return: any;
1492
1311
  };
@@ -1496,6 +1315,7 @@ export type Api = {
1496
1315
  post: {
1497
1316
  body: {
1498
1317
  packageId: string;
1318
+ subjectUserId?: string;
1499
1319
  };
1500
1320
  return: any;
1501
1321
  };
@@ -1507,6 +1327,7 @@ export type Api = {
1507
1327
  status?: string;
1508
1328
  page?: number;
1509
1329
  pageSize?: number;
1330
+ subjectUserId?: string;
1510
1331
  };
1511
1332
  return: any;
1512
1333
  };
@@ -1559,7 +1380,6 @@ export type Api = {
1559
1380
  accountSummary: {
1560
1381
  /** 汇总当前 app 下所有用户积分账户余额 */
1561
1382
  post: {
1562
- body: Record<string, unknown>;
1563
1383
  return: any;
1564
1384
  };
1565
1385
  };
@@ -1947,7 +1767,7 @@ export type Api = {
1947
1767
  } | {
1948
1768
  type: "tiered";
1949
1769
  priceStructure: "flat" | "segmented";
1950
- tiers: {
1770
+ tiers: ({
1951
1771
  match?: Record<string, string>;
1952
1772
  tierRangeMode?: "at_most" | "at_least" | "between";
1953
1773
  minTokens?: number;
@@ -1957,15 +1777,15 @@ export type Api = {
1957
1777
  originalFenPerUnit: number;
1958
1778
  sellFenPerUnit: number;
1959
1779
  billingEnabled: boolean;
1960
- }[];
1780
+ })[];
1961
1781
  } | {
1962
1782
  type: "meters";
1963
- meters: {
1783
+ meters: ({
1964
1784
  componentKey: string;
1965
1785
  businessLineKey: string;
1966
1786
  serviceKey: string;
1967
1787
  meterKey: string;
1968
- tiers: {
1788
+ tiers: ({
1969
1789
  match?: Record<string, string>;
1970
1790
  tierRangeMode?: "at_most" | "at_least" | "between";
1971
1791
  minTokens?: number;
@@ -1975,8 +1795,8 @@ export type Api = {
1975
1795
  originalFenPerUnit: number;
1976
1796
  sellFenPerUnit: number;
1977
1797
  billingEnabled: boolean;
1978
- }[];
1979
- }[];
1798
+ })[];
1799
+ })[];
1980
1800
  };
1981
1801
  accessScope?: "private" | "all_apps";
1982
1802
  };
@@ -2002,7 +1822,7 @@ export type Api = {
2002
1822
  } | {
2003
1823
  type: "tiered";
2004
1824
  priceStructure: "flat" | "segmented";
2005
- tiers: {
1825
+ tiers: ({
2006
1826
  match?: Record<string, string>;
2007
1827
  tierRangeMode?: "at_most" | "at_least" | "between";
2008
1828
  minTokens?: number;
@@ -2012,15 +1832,15 @@ export type Api = {
2012
1832
  originalFenPerUnit: number;
2013
1833
  sellFenPerUnit: number;
2014
1834
  billingEnabled: boolean;
2015
- }[];
1835
+ })[];
2016
1836
  } | {
2017
1837
  type: "meters";
2018
- meters: {
1838
+ meters: ({
2019
1839
  componentKey: string;
2020
1840
  businessLineKey: string;
2021
1841
  serviceKey: string;
2022
1842
  meterKey: string;
2023
- tiers: {
1843
+ tiers: ({
2024
1844
  match?: Record<string, string>;
2025
1845
  tierRangeMode?: "at_most" | "at_least" | "between";
2026
1846
  minTokens?: number;
@@ -2030,8 +1850,8 @@ export type Api = {
2030
1850
  originalFenPerUnit: number;
2031
1851
  sellFenPerUnit: number;
2032
1852
  billingEnabled: boolean;
2033
- }[];
2034
- }[];
1853
+ })[];
1854
+ })[];
2035
1855
  };
2036
1856
  accessScope?: "private" | "all_apps";
2037
1857
  };
@@ -2360,14 +2180,14 @@ export type Api = {
2360
2180
  label: string;
2361
2181
  }[];
2362
2182
  }[];
2363
- tiers: {
2183
+ tiers: ({
2364
2184
  match?: Record<string, string>;
2365
2185
  tierRangeMode?: "at_most" | "at_least" | "between";
2366
2186
  minTokens?: number;
2367
2187
  maxTokens?: number;
2368
2188
  minInclusive?: boolean;
2369
2189
  maxInclusive?: boolean;
2370
- }[];
2190
+ })[];
2371
2191
  };
2372
2192
  enabled?: boolean;
2373
2193
  accessScope?: "private" | "all_apps";
@@ -2398,14 +2218,14 @@ export type Api = {
2398
2218
  label: string;
2399
2219
  }[];
2400
2220
  }[];
2401
- tiers: {
2221
+ tiers: ({
2402
2222
  match?: Record<string, string>;
2403
2223
  tierRangeMode?: "at_most" | "at_least" | "between";
2404
2224
  minTokens?: number;
2405
2225
  maxTokens?: number;
2406
2226
  minInclusive?: boolean;
2407
2227
  maxInclusive?: boolean;
2408
- }[];
2228
+ })[];
2409
2229
  };
2410
2230
  enabled?: boolean;
2411
2231
  accessScope?: "private" | "all_apps";
@@ -2654,6 +2474,7 @@ export type Api = {
2654
2474
  receiverPhone?: string;
2655
2475
  receiverAddress?: string;
2656
2476
  orderIds?: string[];
2477
+ subjectUserId?: string;
2657
2478
  remark?: string;
2658
2479
  };
2659
2480
  return: any;
@@ -2787,14 +2608,16 @@ export type Api = {
2787
2608
  };
2788
2609
  };
2789
2610
  internal: {
2790
- events: {
2791
- trigger: {
2792
- /** 供 auth-server 等内部服务发布业务事件 */
2611
+ rewards: {
2612
+ grant: {
2613
+ /** 供 auth-server 等内部服务按场景发放积分奖励 */
2793
2614
  post: {
2794
2615
  body: {
2795
2616
  appId: string;
2617
+ scene: string;
2796
2618
  userId: string;
2797
- event: string;
2619
+ referrerId?: string;
2620
+ inviteCodeId?: string;
2798
2621
  eventData?: Record<string, unknown>;
2799
2622
  };
2800
2623
  return: any;
@@ -2934,7 +2757,7 @@ export type Api = {
2934
2757
  appId: string;
2935
2758
  userId?: string;
2936
2759
  serviceGroup?: "ai" | "platform" | "storage";
2937
- serviceGroups?: "ai" | "platform" | "storage"[];
2760
+ serviceGroups?: ("ai" | "platform" | "storage")[];
2938
2761
  resourceId?: string;
2939
2762
  serviceKey?: string;
2940
2763
  model?: string;
@@ -3169,7 +2992,7 @@ export interface ApiClient {
3169
2992
  };
3170
2993
  manageOptions: {
3171
2994
  /** 管理端表单与筛选用产品选项 */
3172
- post: (body: {
2995
+ post: (body?: {
3173
2996
  status?: "" | "active" | "archived";
3174
2997
  }, config?: RequestConfig) => RequestBuilder<any>;
3175
2998
  };
@@ -3192,7 +3015,7 @@ export interface ApiClient {
3192
3015
  /** 创建新价格方案 */
3193
3016
  post: (body: {
3194
3017
  productId: string;
3195
- nickname?: string;
3018
+ nickname: string;
3196
3019
  type: "free" | "one_time" | "recurring";
3197
3020
  currency: string;
3198
3021
  unitAmount: number;
@@ -3200,6 +3023,7 @@ export interface ApiClient {
3200
3023
  allowRepeatTrial?: boolean;
3201
3024
  interval?: "day" | "week" | "month" | "year";
3202
3025
  intervalCount?: number;
3026
+ bonusPoints?: number;
3203
3027
  metadata?: Record<string, unknown>;
3204
3028
  }, config?: RequestConfig) => RequestBuilder<any>;
3205
3029
  };
@@ -3218,6 +3042,7 @@ export interface ApiClient {
3218
3042
  metadata?: Record<string, unknown>;
3219
3043
  trialPeriodDays?: number;
3220
3044
  allowRepeatTrial?: boolean;
3045
+ bonusPoints?: number;
3221
3046
  }, config?: RequestConfig) => RequestBuilder<any>;
3222
3047
  };
3223
3048
  find: {
@@ -3240,7 +3065,7 @@ export interface ApiClient {
3240
3065
  };
3241
3066
  options: {
3242
3067
  /** 按产品或免费体验筛选可用价格方案 */
3243
- post: (body: {
3068
+ post: (body?: {
3244
3069
  productId?: string;
3245
3070
  freeOnly?: boolean;
3246
3071
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -3252,6 +3077,7 @@ export interface ApiClient {
3252
3077
  post: (body: {
3253
3078
  priceId: string;
3254
3079
  couponCode?: string;
3080
+ subjectUserId?: string;
3255
3081
  }, config?: RequestConfig) => RequestBuilder<any>;
3256
3082
  };
3257
3083
  cancel: {
@@ -3278,15 +3104,18 @@ export interface ApiClient {
3278
3104
  };
3279
3105
  my: {
3280
3106
  /** 查询当前用户的订阅列表 */
3281
- post: (body: {
3107
+ post: (body?: {
3282
3108
  current?: number;
3283
3109
  pageSize?: number;
3284
3110
  status?: string;
3111
+ subjectUserId?: string;
3285
3112
  }, config?: RequestConfig) => RequestBuilder<any>;
3286
3113
  };
3287
3114
  current: {
3288
3115
  /** 获取当前活跃订阅 */
3289
- post: (config?: RequestConfig) => RequestBuilder<any>;
3116
+ post: (body?: {
3117
+ subjectUserId?: string;
3118
+ }, config?: RequestConfig) => RequestBuilder<any>;
3290
3119
  };
3291
3120
  summary: {
3292
3121
  /** 获取当前用户订阅、配额、积分和待支付账单摘要 */
@@ -3313,7 +3142,7 @@ export interface ApiClient {
3313
3142
  };
3314
3143
  statistics: {
3315
3144
  /** 获取订阅概览页统计数据(状态计数、MRR、产品分布、最近订阅) */
3316
- post: (query?: {
3145
+ post: (body?: {
3317
3146
  recentLimit?: number;
3318
3147
  }, config?: RequestConfig) => RequestBuilder<any>;
3319
3148
  };
@@ -3363,7 +3192,7 @@ export interface ApiClient {
3363
3192
  notify: {
3364
3193
  alipay: {
3365
3194
  /** 支付宝订阅支付回调通知 */
3366
- post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3195
+ post: (body?: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3367
3196
  };
3368
3197
  };
3369
3198
  };
@@ -3419,7 +3248,9 @@ export interface ApiClient {
3419
3248
  };
3420
3249
  my: {
3421
3250
  /** 获取当前用户的配额使用情况 */
3422
- post: (config?: RequestConfig) => RequestBuilder<any>;
3251
+ post: (body?: {
3252
+ subjectUserId?: string;
3253
+ }, config?: RequestConfig) => RequestBuilder<any>;
3423
3254
  };
3424
3255
  reserve: {
3425
3256
  /** 供其他服务检查并预占配额 */
@@ -3451,7 +3282,7 @@ export interface ApiClient {
3451
3282
  };
3452
3283
  start: {
3453
3284
  /** 领取当前应用的免费体验权益 */
3454
- post: (body: {
3285
+ post: (body?: {
3455
3286
  priceId?: string;
3456
3287
  }, config?: RequestConfig) => RequestBuilder<any>;
3457
3288
  };
@@ -3466,11 +3297,20 @@ export interface ApiClient {
3466
3297
  post: (body: {
3467
3298
  autoGrantFreePriceOnSignup: boolean;
3468
3299
  defaultFreePriceId?: string;
3300
+ signupReward?: {
3301
+ enabled: boolean;
3302
+ amount: number;
3303
+ };
3304
+ defaultInviteReward?: {
3305
+ enabled: boolean;
3306
+ refereeAmount: number;
3307
+ referrerAmount: number;
3308
+ };
3469
3309
  }, config?: RequestConfig) => RequestBuilder<any>;
3470
3310
  };
3471
3311
  grantMissingFreeEntitlements: {
3472
3312
  /** 给当前应用下没有活跃订阅/体验的用户补发默认免费价格方案 */
3473
- post: (body: {
3313
+ post: (body?: {
3474
3314
  dryRun?: boolean;
3475
3315
  userIds?: string[];
3476
3316
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -3523,7 +3363,7 @@ export interface ApiClient {
3523
3363
  };
3524
3364
  my: {
3525
3365
  /** 查询当前用户的使用记录 */
3526
- post: (body: {
3366
+ post: (body?: {
3527
3367
  current?: number;
3528
3368
  pageSize?: number;
3529
3369
  featureKey?: string;
@@ -3566,10 +3406,11 @@ export interface ApiClient {
3566
3406
  };
3567
3407
  my: {
3568
3408
  /** 查询当前用户的订阅账单列表 */
3569
- post: (body: {
3409
+ post: (body?: {
3570
3410
  current?: number;
3571
3411
  pageSize?: number;
3572
3412
  status?: string;
3413
+ subjectUserId?: string;
3573
3414
  }, config?: RequestConfig) => RequestBuilder<any>;
3574
3415
  };
3575
3416
  cancel: {
@@ -3600,7 +3441,7 @@ export interface ApiClient {
3600
3441
  };
3601
3442
  statistics: {
3602
3443
  /** 获取订阅账单统计数据 */
3603
- post: (body: {
3444
+ post: (body?: {
3604
3445
  startTime?: string;
3605
3446
  endTime?: string;
3606
3447
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -3615,7 +3456,7 @@ export interface ApiClient {
3615
3456
  };
3616
3457
  revenueByProduct: {
3617
3458
  /** 获取按产品分布的收入数据 */
3618
- post: (body: {
3459
+ post: (body?: {
3619
3460
  startTime?: string;
3620
3461
  endTime?: string;
3621
3462
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -3644,7 +3485,7 @@ export interface ApiClient {
3644
3485
  points: {
3645
3486
  account: {
3646
3487
  /** 查询用户积分账户余额 */
3647
- post: (body: {
3488
+ post: (body?: {
3648
3489
  userId?: string;
3649
3490
  }, config?: RequestConfig) => RequestBuilder<any>;
3650
3491
  };
@@ -3731,13 +3572,13 @@ export interface ApiClient {
3731
3572
  };
3732
3573
  statistics: {
3733
3574
  /** 获取用户积分统计数据 */
3734
- post: (body: {
3575
+ post: (body?: {
3735
3576
  userId?: string;
3736
3577
  }, config?: RequestConfig) => RequestBuilder<any>;
3737
3578
  };
3738
3579
  leaderboard: {
3739
3580
  /** 获取积分排行榜 */
3740
- post: (body: {
3581
+ post: (body?: {
3741
3582
  limit?: number;
3742
3583
  }, config?: RequestConfig) => RequestBuilder<any>;
3743
3584
  };
@@ -3745,7 +3586,7 @@ export interface ApiClient {
3745
3586
  pointsHistory: {
3746
3587
  find: {
3747
3588
  /** 分页查询积分变动历史 */
3748
- post: (body: {
3589
+ post: (body?: {
3749
3590
  userId?: string;
3750
3591
  type?: "earn" | "consume" | "reversal" | "clawback" | "adjust";
3751
3592
  subType?: string;
@@ -3763,7 +3604,7 @@ export interface ApiClient {
3763
3604
  };
3764
3605
  statistics: {
3765
3606
  /** 获取积分统计数据 */
3766
- post: (body: {
3607
+ post: (body?: {
3767
3608
  userId?: string;
3768
3609
  period?: "day" | "week" | "month" | "year";
3769
3610
  startTime?: string;
@@ -3781,7 +3622,7 @@ export interface ApiClient {
3781
3622
  };
3782
3623
  typeDistributionChart: {
3783
3624
  /** 获取积分类型分布图表数据 */
3784
- post: (body: {
3625
+ post: (body?: {
3785
3626
  userId?: string;
3786
3627
  startTime?: string;
3787
3628
  endTime?: string;
@@ -3789,7 +3630,7 @@ export interface ApiClient {
3789
3630
  };
3790
3631
  businessLineConsumptionChart: {
3791
3632
  /** 按服务计费引擎业务线聚合积分消费 */
3792
- post: (body: {
3633
+ post: (body?: {
3793
3634
  userId?: string;
3794
3635
  startTime?: string;
3795
3636
  endTime?: string;
@@ -3797,7 +3638,7 @@ export interface ApiClient {
3797
3638
  };
3798
3639
  rankingChart: {
3799
3640
  /** 获取用户积分排行榜 */
3800
- post: (body: {
3641
+ post: (body?: {
3801
3642
  type?: "earn" | "consume" | "reversal" | "clawback" | "adjust";
3802
3643
  startTime?: string;
3803
3644
  endTime?: string;
@@ -3805,182 +3646,27 @@ export interface ApiClient {
3805
3646
  }, config?: RequestConfig) => RequestBuilder<any>;
3806
3647
  };
3807
3648
  };
3808
- pointsTrigger: {
3809
- trigger: {
3810
- /** 根据规则 ID 触发积分发放 */
3811
- post: (body: {
3812
- ruleId: string;
3813
- eventData?: Record<string, unknown>;
3814
- }, config?: RequestConfig) => RequestBuilder<any>;
3815
- };
3816
- triggerByEvent: {
3817
- /** 根据事件自动匹配并触发积分规则 */
3818
- post: (body: {
3819
- event: string;
3820
- eventData?: Record<string, unknown>;
3821
- userId?: string;
3822
- }, config?: RequestConfig) => RequestBuilder<any>;
3823
- };
3824
- batchTrigger: {
3825
- /** 批量触发多个积分规则 */
3826
- post: (body: {
3827
- triggers: {
3828
- ruleId: string;
3829
- eventData?: Record<string, unknown>;
3830
- }[];
3831
- }, config?: RequestConfig) => RequestBuilder<any>;
3832
- };
3833
- };
3834
- pointsTriggerHistory: {
3835
- find: {
3836
- /** 分页查询积分触发历史记录 */
3837
- post: (body: {
3838
- current?: number;
3839
- pageSize?: number;
3840
- where?: {
3841
- userId?: string;
3842
- ruleId?: string;
3843
- ruleCode?: string;
3844
- event?: string;
3845
- status?: "pending" | "success" | "completed" | "failed" | "cooldown" | "constraintFailed";
3846
- rewardTarget?: "self" | "referrer";
3847
- startDate?: string;
3848
- endDate?: string;
3849
- };
3850
- }, config?: RequestConfig) => RequestBuilder<any>;
3851
- };
3852
- findOne: {
3853
- /** 根据 ID 查询积分触发历史详情 */
3854
- post: (body: {
3855
- id: string;
3856
- }, config?: RequestConfig) => RequestBuilder<any>;
3857
- };
3858
- statusOptions: {
3859
- /** 获取积分触发状态下拉选项 */
3860
- post: (config?: RequestConfig) => RequestBuilder<any>;
3861
- };
3862
- rewardTargetOptions: {
3863
- /** 获取奖励目标下拉选项 */
3864
- post: (config?: RequestConfig) => RequestBuilder<any>;
3865
- };
3866
- statistics: {
3867
- /** 获取积分触发历史统计数据 */
3868
- post: (body: {
3869
- userId?: string;
3870
- ruleId?: string;
3871
- startTime?: string;
3872
- endTime?: string;
3873
- period?: "today" | "week" | "month" | "year";
3874
- }, config?: RequestConfig) => RequestBuilder<any>;
3875
- };
3876
- trends: {
3877
- /** 获取积分触发趋势图表数据 */
3878
- post: (body: {
3879
- userId?: string;
3880
- ruleId?: string;
3881
- startTime?: string;
3882
- endTime?: string;
3883
- granularity?: "minute" | "hour" | "day" | "month" | "year";
3884
- }, config?: RequestConfig) => RequestBuilder<any>;
3885
- };
3886
- pointsTrends: {
3887
- /** 获取积分变动趋势图表数据 */
3888
- post: (body: {
3889
- userId?: string;
3890
- ruleId?: string;
3891
- startTime?: string;
3892
- endTime?: string;
3893
- granularity?: "minute" | "hour" | "day" | "month" | "year";
3894
- }, config?: RequestConfig) => RequestBuilder<any>;
3895
- };
3896
- completionAnalysis: {
3897
- /** 获取积分规则完成度分析数据 */
3898
- post: (body: {
3899
- userId?: string;
3900
- ruleId?: string;
3901
- startTime?: string;
3902
- endTime?: string;
3903
- }, config?: RequestConfig) => RequestBuilder<any>;
3904
- };
3905
- triggerTypeTrends: {
3906
- /** 获取积分触发类型趋势图表数据 */
3907
- post: (body: {
3908
- userId?: string;
3909
- ruleId?: string;
3910
- startTime?: string;
3911
- endTime?: string;
3912
- granularity?: "minute" | "hour" | "day" | "month" | "year";
3913
- }, config?: RequestConfig) => RequestBuilder<any>;
3914
- };
3915
- };
3916
- pointsTriggerRule: {
3917
- create: {
3918
- /** 创建新积分触发规则 */
3919
- post: (body: {
3920
- ruleName: string;
3921
- ruleCode: string;
3922
- description: string;
3923
- event?: string;
3924
- triggerCondition: unknown;
3925
- pointsReward: unknown;
3926
- constraints: unknown;
3927
- activeTimeRanges: unknown;
3928
- }, config?: RequestConfig) => RequestBuilder<any>;
3929
- };
3930
- find: {
3931
- /** 分页查询积分触发规则列表 */
3932
- post: (body: {
3933
- current?: number;
3934
- pageSize?: number;
3935
- where?: {
3936
- triggerType?: string;
3937
- status?: string;
3938
- ruleName?: string;
3939
- ruleCode?: string;
3940
- event?: string;
3941
- };
3942
- }, config?: RequestConfig) => RequestBuilder<any>;
3943
- };
3944
- findOne: {
3945
- /** 根据 ID 查询积分触发规则详情 */
3946
- post: (body: {
3947
- id: string;
3948
- }, config?: RequestConfig) => RequestBuilder<any>;
3949
- };
3950
- update: {
3951
- /** 更新积分触发规则配置 */
3952
- post: (body: {
3953
- id: string;
3954
- ruleName?: string;
3955
- ruleCode?: string;
3956
- description?: string;
3957
- event?: string | null;
3958
- triggerCondition?: unknown;
3959
- pointsReward?: unknown;
3960
- constraints?: unknown;
3961
- activeTimeRanges?: unknown;
3962
- }, config?: RequestConfig) => RequestBuilder<any>;
3963
- };
3964
- updateStatus: {
3965
- /** 启用或禁用积分触发规则 */
3966
- post: (body: {
3967
- id: string;
3968
- status: "draft" | "active" | "inactive";
3969
- }, config?: RequestConfig) => RequestBuilder<any>;
3970
- };
3971
- delete: {
3972
- /** 删除积分触发规则 */
3973
- post: (body: {
3974
- id: string;
3975
- }, config?: RequestConfig) => RequestBuilder<any>;
3976
- };
3977
- statusOptions: {
3978
- /** 获取积分触发规则状态下拉选项 */
3979
- post: (config?: RequestConfig) => RequestBuilder<any>;
3980
- };
3981
- eventOptions: {
3982
- /** 获取可绑定的事件类型选项 */
3983
- post: (config?: RequestConfig) => RequestBuilder<any>;
3649
+ pointsRewardPolicy: {
3650
+ inviteReward: {
3651
+ find: {
3652
+ post: (body: {
3653
+ inviteCodeId: string;
3654
+ }, config?: RequestConfig) => RequestBuilder<any>;
3655
+ };
3656
+ findBatch: {
3657
+ post: (body: {
3658
+ inviteCodeIds: string[];
3659
+ }, config?: RequestConfig) => RequestBuilder<any>;
3660
+ };
3661
+ save: {
3662
+ post: (body: {
3663
+ inviteCodeId: string;
3664
+ inviteCodeName?: string;
3665
+ enabled: boolean;
3666
+ refereeAmount?: number;
3667
+ referrerAmount?: number;
3668
+ }, config?: RequestConfig) => RequestBuilder<any>;
3669
+ };
3984
3670
  };
3985
3671
  };
3986
3672
  pointsPriceConfig: {
@@ -3999,7 +3685,7 @@ export interface ApiClient {
3999
3685
  };
4000
3686
  find: {
4001
3687
  /** 分页查询计价配置列表 */
4002
- post: (body: {
3688
+ post: (body?: {
4003
3689
  where?: {
4004
3690
  code?: string;
4005
3691
  name?: string;
@@ -4012,7 +3698,7 @@ export interface ApiClient {
4012
3698
  };
4013
3699
  findOne: {
4014
3700
  /** 根据 ID 或 code 查询计价配置详情 */
4015
- post: (body: {
3701
+ post: (body?: {
4016
3702
  id?: string;
4017
3703
  code?: string;
4018
3704
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4051,7 +3737,7 @@ export interface ApiClient {
4051
3737
  pointsUsageRecord: {
4052
3738
  find: {
4053
3739
  /** 分页查询积分消费记录 */
4054
- post: (body: {
3740
+ post: (body?: {
4055
3741
  where?: {
4056
3742
  userId?: string;
4057
3743
  priceCode?: string;
@@ -4077,7 +3763,7 @@ export interface ApiClient {
4077
3763
  };
4078
3764
  overview: {
4079
3765
  /** 获取消费概览数据 */
4080
- post: (body: {
3766
+ post: (body?: {
4081
3767
  startDate?: string;
4082
3768
  endDate?: string;
4083
3769
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4100,7 +3786,7 @@ export interface ApiClient {
4100
3786
  };
4101
3787
  find: {
4102
3788
  /** 分页查询预警记录 */
4103
- post: (body: {
3789
+ post: (body?: {
4104
3790
  where?: {
4105
3791
  userId?: string;
4106
3792
  alertType?: string;
@@ -4121,7 +3807,7 @@ export interface ApiClient {
4121
3807
  consumption: {
4122
3808
  trend: {
4123
3809
  /** 聚合积分消耗趋势 */
4124
- post: (body: {
3810
+ post: (body?: {
4125
3811
  startDate?: string;
4126
3812
  endDate?: string;
4127
3813
  limit?: number;
@@ -4129,7 +3815,7 @@ export interface ApiClient {
4129
3815
  };
4130
3816
  overview: {
4131
3817
  /** 聚合积分消耗概览 */
4132
- post: (body: {
3818
+ post: (body?: {
4133
3819
  startDate?: string;
4134
3820
  endDate?: string;
4135
3821
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4139,7 +3825,7 @@ export interface ApiClient {
4139
3825
  charges: {
4140
3826
  find: {
4141
3827
  /** 查询 billingUsageRecord 全站扣费明细 */
4142
- post: (body: {
3828
+ post: (body?: {
4143
3829
  where?: {
4144
3830
  keyword?: string;
4145
3831
  userId?: string;
@@ -4173,7 +3859,7 @@ export interface ApiClient {
4173
3859
  consumption: {
4174
3860
  overview: {
4175
3861
  /** 聚合已入账扣费结果 */
4176
- post: (body: {
3862
+ post: (body?: {
4177
3863
  where?: {
4178
3864
  userId?: string;
4179
3865
  serviceGroup?: "ai" | "platform" | "storage";
@@ -4188,7 +3874,7 @@ export interface ApiClient {
4188
3874
  };
4189
3875
  trend: {
4190
3876
  /** 按日聚合积分消耗趋势 */
4191
- post: (body: {
3877
+ post: (body?: {
4192
3878
  where?: {
4193
3879
  userId?: string;
4194
3880
  serviceGroup?: "ai" | "platform" | "storage";
@@ -4223,20 +3909,23 @@ export interface ApiClient {
4223
3909
  post: (body: {
4224
3910
  packageId: string;
4225
3911
  payType: "alipay" | "weixinpay";
3912
+ subjectUserId?: string;
4226
3913
  }, config?: RequestConfig) => RequestBuilder<any>;
4227
3914
  };
4228
3915
  createQRCodeOrder: {
4229
3916
  /** 创建支付宝扫码支付订单(当面付) */
4230
3917
  post: (body: {
4231
3918
  packageId: string;
3919
+ subjectUserId?: string;
4232
3920
  }, config?: RequestConfig) => RequestBuilder<any>;
4233
3921
  };
4234
3922
  orders: {
4235
3923
  /** 查询用户的充值订单记录 */
4236
- post: (body: {
3924
+ post: (body?: {
4237
3925
  status?: string;
4238
3926
  page?: number;
4239
3927
  pageSize?: number;
3928
+ subjectUserId?: string;
4240
3929
  }, config?: RequestConfig) => RequestBuilder<any>;
4241
3930
  };
4242
3931
  find: {
@@ -4260,21 +3949,21 @@ export interface ApiClient {
4260
3949
  };
4261
3950
  adminStatistics: {
4262
3951
  /** 管理端积分充值订单统计 */
4263
- post: (body: {
3952
+ post: (body?: {
4264
3953
  startTime?: string;
4265
3954
  endTime?: string;
4266
3955
  }, config?: RequestConfig) => RequestBuilder<any>;
4267
3956
  };
4268
3957
  statistics: {
4269
3958
  /** 获取当前 app 积分充值订单统计 */
4270
- post: (body: {
3959
+ post: (body?: {
4271
3960
  startTime?: string;
4272
3961
  endTime?: string;
4273
3962
  }, config?: RequestConfig) => RequestBuilder<any>;
4274
3963
  };
4275
3964
  accountSummary: {
4276
3965
  /** 汇总当前 app 下所有用户积分账户余额 */
4277
- post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3966
+ post: (config?: RequestConfig) => RequestBuilder<any>;
4278
3967
  };
4279
3968
  trend: {
4280
3969
  /** 按日聚合当前 app 已支付充值订单 */
@@ -4297,14 +3986,14 @@ export interface ApiClient {
4297
3986
  notify: {
4298
3987
  alipay: {
4299
3988
  /** 支付宝积分充值回调通知 */
4300
- post: (body: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
3989
+ post: (body?: Record<string, unknown>, config?: RequestConfig) => RequestBuilder<any>;
4301
3990
  };
4302
3991
  };
4303
3992
  };
4304
3993
  rechargePackage: {
4305
3994
  find: {
4306
3995
  /** 获取充值套餐列表(管理端) */
4307
- post: (body: {
3996
+ post: (body?: {
4308
3997
  includeDisabled?: boolean;
4309
3998
  }, config?: RequestConfig) => RequestBuilder<any>;
4310
3999
  };
@@ -4390,7 +4079,7 @@ export interface ApiClient {
4390
4079
  };
4391
4080
  find: {
4392
4081
  /** 查询退款记录列表 */
4393
- post: (body: {
4082
+ post: (body?: {
4394
4083
  page?: number;
4395
4084
  pageSize?: number;
4396
4085
  status?: string;
@@ -4408,7 +4097,7 @@ export interface ApiClient {
4408
4097
  };
4409
4098
  stats: {
4410
4099
  /** 获取退款统计数据 */
4411
- post: (body: {
4100
+ post: (body?: {
4412
4101
  startDate?: string;
4413
4102
  endDate?: string;
4414
4103
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4427,7 +4116,7 @@ export interface ApiClient {
4427
4116
  serviceDefinition: {
4428
4117
  find: {
4429
4118
  /** 获取应用的所有服务定义 */
4430
- post: (body: {
4119
+ post: (body?: {
4431
4120
  page?: number;
4432
4121
  pageSize?: number;
4433
4122
  keyword?: string;
@@ -4480,7 +4169,7 @@ export interface ApiClient {
4480
4169
  };
4481
4170
  stats: {
4482
4171
  /** 获取用量统计数据 */
4483
- post: (body: {
4172
+ post: (body?: {
4484
4173
  startDate?: string;
4485
4174
  endDate?: string;
4486
4175
  serviceType?: string;
@@ -4490,7 +4179,7 @@ export interface ApiClient {
4490
4179
  };
4491
4180
  records: {
4492
4181
  /** 获取用量记录列表 */
4493
- post: (body: {
4182
+ post: (body?: {
4494
4183
  page?: number;
4495
4184
  pageSize?: number;
4496
4185
  id?: string;
@@ -4505,7 +4194,7 @@ export interface ApiClient {
4505
4194
  };
4506
4195
  priceList: {
4507
4196
  find: {
4508
- post: (body: {
4197
+ post: (body?: {
4509
4198
  where?: {
4510
4199
  priceListId?: string;
4511
4200
  businessLineKey?: string;
@@ -4528,7 +4217,7 @@ export interface ApiClient {
4528
4217
  };
4529
4218
  options: {
4530
4219
  /** 筛选项、绑价表单 Select 用价目表下拉 */
4531
- post: (body: {
4220
+ post: (body?: {
4532
4221
  businessLineKey?: string;
4533
4222
  billingProductLineKey?: string;
4534
4223
  serviceKey?: string;
@@ -4568,7 +4257,7 @@ export interface ApiClient {
4568
4257
  } | {
4569
4258
  type: "tiered";
4570
4259
  priceStructure: "flat" | "segmented";
4571
- tiers: {
4260
+ tiers: ({
4572
4261
  match?: Record<string, string>;
4573
4262
  tierRangeMode?: "at_most" | "at_least" | "between";
4574
4263
  minTokens?: number;
@@ -4578,15 +4267,15 @@ export interface ApiClient {
4578
4267
  originalFenPerUnit: number;
4579
4268
  sellFenPerUnit: number;
4580
4269
  billingEnabled: boolean;
4581
- }[];
4270
+ })[];
4582
4271
  } | {
4583
4272
  type: "meters";
4584
- meters: {
4273
+ meters: ({
4585
4274
  componentKey: string;
4586
4275
  businessLineKey: string;
4587
4276
  serviceKey: string;
4588
4277
  meterKey: string;
4589
- tiers: {
4278
+ tiers: ({
4590
4279
  match?: Record<string, string>;
4591
4280
  tierRangeMode?: "at_most" | "at_least" | "between";
4592
4281
  minTokens?: number;
@@ -4596,8 +4285,8 @@ export interface ApiClient {
4596
4285
  originalFenPerUnit: number;
4597
4286
  sellFenPerUnit: number;
4598
4287
  billingEnabled: boolean;
4599
- }[];
4600
- }[];
4288
+ })[];
4289
+ })[];
4601
4290
  };
4602
4291
  accessScope?: "private" | "all_apps";
4603
4292
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4620,7 +4309,7 @@ export interface ApiClient {
4620
4309
  } | {
4621
4310
  type: "tiered";
4622
4311
  priceStructure: "flat" | "segmented";
4623
- tiers: {
4312
+ tiers: ({
4624
4313
  match?: Record<string, string>;
4625
4314
  tierRangeMode?: "at_most" | "at_least" | "between";
4626
4315
  minTokens?: number;
@@ -4630,15 +4319,15 @@ export interface ApiClient {
4630
4319
  originalFenPerUnit: number;
4631
4320
  sellFenPerUnit: number;
4632
4321
  billingEnabled: boolean;
4633
- }[];
4322
+ })[];
4634
4323
  } | {
4635
4324
  type: "meters";
4636
- meters: {
4325
+ meters: ({
4637
4326
  componentKey: string;
4638
4327
  businessLineKey: string;
4639
4328
  serviceKey: string;
4640
4329
  meterKey: string;
4641
- tiers: {
4330
+ tiers: ({
4642
4331
  match?: Record<string, string>;
4643
4332
  tierRangeMode?: "at_most" | "at_least" | "between";
4644
4333
  minTokens?: number;
@@ -4648,8 +4337,8 @@ export interface ApiClient {
4648
4337
  originalFenPerUnit: number;
4649
4338
  sellFenPerUnit: number;
4650
4339
  billingEnabled: boolean;
4651
- }[];
4652
- }[];
4340
+ })[];
4341
+ })[];
4653
4342
  };
4654
4343
  accessScope?: "private" | "all_apps";
4655
4344
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4662,7 +4351,7 @@ export interface ApiClient {
4662
4351
  };
4663
4352
  priceBinding: {
4664
4353
  find: {
4665
- post: (body: {
4354
+ post: (body?: {
4666
4355
  where?: {
4667
4356
  subjectType?: "model-profile";
4668
4357
  subjectKey?: string;
@@ -4688,7 +4377,7 @@ export interface ApiClient {
4688
4377
  };
4689
4378
  businessLine: {
4690
4379
  find: {
4691
- post: (body: {
4380
+ post: (body?: {
4692
4381
  where?: {
4693
4382
  keyword?: string;
4694
4383
  enabled?: boolean;
@@ -4706,7 +4395,7 @@ export interface ApiClient {
4706
4395
  };
4707
4396
  options: {
4708
4397
  /** 筛选项、表单 Select 用业务线下拉 */
4709
- post: (body: {
4398
+ post: (body?: {
4710
4399
  enabled?: boolean;
4711
4400
  accessScope?: "private" | "all_apps";
4712
4401
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4734,7 +4423,7 @@ export interface ApiClient {
4734
4423
  };
4735
4424
  billingProductLine: {
4736
4425
  find: {
4737
- post: (body: {
4426
+ post: (body?: {
4738
4427
  where?: {
4739
4428
  businessLineKey?: string;
4740
4429
  keyword?: string;
@@ -4753,7 +4442,7 @@ export interface ApiClient {
4753
4442
  };
4754
4443
  options: {
4755
4444
  /** 筛选项、表单 Select 用产品线下拉 */
4756
- post: (body: {
4445
+ post: (body?: {
4757
4446
  businessLineKey?: string;
4758
4447
  enabled?: boolean;
4759
4448
  accessScope?: "private" | "all_apps";
@@ -4784,7 +4473,7 @@ export interface ApiClient {
4784
4473
  billingServiceCatalog: {
4785
4474
  service: {
4786
4475
  find: {
4787
- post: (body: {
4476
+ post: (body?: {
4788
4477
  where?: {
4789
4478
  businessLineKey?: string;
4790
4479
  billingProductLineKey?: string;
@@ -4801,7 +4490,7 @@ export interface ApiClient {
4801
4490
  };
4802
4491
  options: {
4803
4492
  /** 筛选项、表单 Select 用服务下拉 */
4804
- post: (body: {
4493
+ post: (body?: {
4805
4494
  businessLineKey?: string;
4806
4495
  billingProductLineKey?: string;
4807
4496
  enabled?: boolean;
@@ -4859,7 +4548,7 @@ export interface ApiClient {
4859
4548
  };
4860
4549
  billingMeter: {
4861
4550
  find: {
4862
- post: (body: {
4551
+ post: (body?: {
4863
4552
  where?: {
4864
4553
  businessLineKey?: string;
4865
4554
  billingProductLineKey?: string;
@@ -4875,7 +4564,7 @@ export interface ApiClient {
4875
4564
  }, config?: RequestConfig) => RequestBuilder<any>;
4876
4565
  };
4877
4566
  options: {
4878
- post: (body: {
4567
+ post: (body?: {
4879
4568
  businessLineKey?: string;
4880
4569
  billingProductLineKey?: string;
4881
4570
  serviceKey?: string;
@@ -4904,14 +4593,14 @@ export interface ApiClient {
4904
4593
  label: string;
4905
4594
  }[];
4906
4595
  }[];
4907
- tiers: {
4596
+ tiers: ({
4908
4597
  match?: Record<string, string>;
4909
4598
  tierRangeMode?: "at_most" | "at_least" | "between";
4910
4599
  minTokens?: number;
4911
4600
  maxTokens?: number;
4912
4601
  minInclusive?: boolean;
4913
4602
  maxInclusive?: boolean;
4914
- }[];
4603
+ })[];
4915
4604
  };
4916
4605
  enabled?: boolean;
4917
4606
  accessScope?: "private" | "all_apps";
@@ -4939,14 +4628,14 @@ export interface ApiClient {
4939
4628
  label: string;
4940
4629
  }[];
4941
4630
  }[];
4942
- tiers: {
4631
+ tiers: ({
4943
4632
  match?: Record<string, string>;
4944
4633
  tierRangeMode?: "at_most" | "at_least" | "between";
4945
4634
  minTokens?: number;
4946
4635
  maxTokens?: number;
4947
4636
  minInclusive?: boolean;
4948
4637
  maxInclusive?: boolean;
4949
- }[];
4638
+ })[];
4950
4639
  };
4951
4640
  enabled?: boolean;
4952
4641
  accessScope?: "private" | "all_apps";
@@ -4960,7 +4649,7 @@ export interface ApiClient {
4960
4649
  };
4961
4650
  billingMeterChargeItem: {
4962
4651
  find: {
4963
- post: (body: {
4652
+ post: (body?: {
4964
4653
  where?: {
4965
4654
  keyword?: string;
4966
4655
  userId?: string;
@@ -4984,7 +4673,7 @@ export interface ApiClient {
4984
4673
  }, config?: RequestConfig) => RequestBuilder<any>;
4985
4674
  };
4986
4675
  overview: {
4987
- post: (body: {
4676
+ post: (body?: {
4988
4677
  where?: {
4989
4678
  keyword?: string;
4990
4679
  userId?: string;
@@ -5006,7 +4695,7 @@ export interface ApiClient {
5006
4695
  }, config?: RequestConfig) => RequestBuilder<any>;
5007
4696
  };
5008
4697
  trend: {
5009
- post: (body: {
4698
+ post: (body?: {
5010
4699
  where?: {
5011
4700
  keyword?: string;
5012
4701
  userId?: string;
@@ -5032,7 +4721,7 @@ export interface ApiClient {
5032
4721
  export: {
5033
4722
  recharge: {
5034
4723
  /** 导出充值订单记录为 CSV 格式 */
5035
- post: (body: {
4724
+ post: (body?: {
5036
4725
  startDate?: string;
5037
4726
  endDate?: string;
5038
4727
  status?: string;
@@ -5040,7 +4729,7 @@ export interface ApiClient {
5040
4729
  };
5041
4730
  refund: {
5042
4731
  /** 导出退款记录为 CSV 格式 */
5043
- post: (body: {
4732
+ post: (body?: {
5044
4733
  startDate?: string;
5045
4734
  endDate?: string;
5046
4735
  status?: string;
@@ -5048,7 +4737,7 @@ export interface ApiClient {
5048
4737
  };
5049
4738
  pointsHistory: {
5050
4739
  /** 导出积分变动记录为 CSV 格式 */
5051
- post: (body: {
4740
+ post: (body?: {
5052
4741
  startDate?: string;
5053
4742
  endDate?: string;
5054
4743
  type?: string;
@@ -5059,7 +4748,7 @@ export interface ApiClient {
5059
4748
  financeReport: {
5060
4749
  overview: {
5061
4750
  /** 获取收入概览数据 */
5062
- post: (body: {
4751
+ post: (body?: {
5063
4752
  startDate?: string;
5064
4753
  endDate?: string;
5065
4754
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -5073,7 +4762,7 @@ export interface ApiClient {
5073
4762
  };
5074
4763
  packageRank: {
5075
4764
  /** 获取套餐销售排行数据 */
5076
- post: (body: {
4765
+ post: (body?: {
5077
4766
  startDate?: string;
5078
4767
  endDate?: string;
5079
4768
  limit?: number;
@@ -5081,7 +4770,7 @@ export interface ApiClient {
5081
4770
  };
5082
4771
  userRank: {
5083
4772
  /** 获取用户充值排行数据 */
5084
- post: (body: {
4773
+ post: (body?: {
5085
4774
  startDate?: string;
5086
4775
  endDate?: string;
5087
4776
  limit?: number;
@@ -5097,7 +4786,7 @@ export interface ApiClient {
5097
4786
  };
5098
4787
  find: {
5099
4788
  /** 查询对账报告列表 */
5100
- post: (body: {
4789
+ post: (body?: {
5101
4790
  page?: number;
5102
4791
  pageSize?: number;
5103
4792
  status?: string;
@@ -5144,12 +4833,13 @@ export interface ApiClient {
5144
4833
  receiverPhone?: string;
5145
4834
  receiverAddress?: string;
5146
4835
  orderIds?: string[];
4836
+ subjectUserId?: string;
5147
4837
  remark?: string;
5148
4838
  }, config?: RequestConfig) => RequestBuilder<any>;
5149
4839
  };
5150
4840
  find: {
5151
4841
  /** 查询发票申请列表 */
5152
- post: (body: {
4842
+ post: (body?: {
5153
4843
  page?: number;
5154
4844
  pageSize?: number;
5155
4845
  status?: string;
@@ -5183,7 +4873,7 @@ export interface ApiClient {
5183
4873
  };
5184
4874
  stats: {
5185
4875
  /** 获取发票统计数据 */
5186
- post: (body: {
4876
+ post: (body?: {
5187
4877
  startDate?: string;
5188
4878
  endDate?: string;
5189
4879
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -5207,7 +4897,7 @@ export interface ApiClient {
5207
4897
  };
5208
4898
  query: {
5209
4899
  /** 查询签约状态 */
5210
- post: (body: {
4900
+ post: (body?: {
5211
4901
  externalAgreementNo?: string;
5212
4902
  }, config?: RequestConfig) => RequestBuilder<any>;
5213
4903
  };
@@ -5221,14 +4911,14 @@ export interface ApiClient {
5221
4911
  };
5222
4912
  history: {
5223
4913
  /** 查询签约历史记录 */
5224
- post: (body: {
4914
+ post: (body?: {
5225
4915
  page?: number;
5226
4916
  pageSize?: number;
5227
4917
  }, config?: RequestConfig) => RequestBuilder<any>;
5228
4918
  };
5229
4919
  deductLogs: {
5230
4920
  /** 查询代扣扣款记录 */
5231
- post: (body: {
4921
+ post: (body?: {
5232
4922
  page?: number;
5233
4923
  pageSize?: number;
5234
4924
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -5239,13 +4929,15 @@ export interface ApiClient {
5239
4929
  };
5240
4930
  };
5241
4931
  internal: {
5242
- events: {
5243
- trigger: {
5244
- /** 供 auth-server 等内部服务发布业务事件 */
4932
+ rewards: {
4933
+ grant: {
4934
+ /** 供 auth-server 等内部服务按场景发放积分奖励 */
5245
4935
  post: (body: {
5246
4936
  appId: string;
4937
+ scene: string;
5247
4938
  userId: string;
5248
- event: string;
4939
+ referrerId?: string;
4940
+ inviteCodeId?: string;
5249
4941
  eventData?: Record<string, unknown>;
5250
4942
  }, config?: RequestConfig) => RequestBuilder<any>;
5251
4943
  };
@@ -5361,7 +5053,7 @@ export interface ApiClient {
5361
5053
  appId: string;
5362
5054
  userId?: string;
5363
5055
  serviceGroup?: "ai" | "platform" | "storage";
5364
- serviceGroups?: "ai" | "platform" | "storage"[];
5056
+ serviceGroups?: ("ai" | "platform" | "storage")[];
5365
5057
  resourceId?: string;
5366
5058
  serviceKey?: string;
5367
5059
  model?: string;