@huyooo/ui 1.0.3 → 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.
Files changed (182) hide show
  1. package/dist/AuthkitAppSetting-BN8-xgNq.js +2674 -0
  2. package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
  3. package/dist/CustomTable-BzGfaAVH.js +276 -0
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
  5. package/dist/LandingPageDescription-BczWZHKy.js +12 -0
  6. package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
  7. package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
  8. package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
  9. package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
  10. package/dist/Menu-uCexrsKP.js +199 -0
  11. package/dist/MessageHandle-mEkCsv9e.js +1173 -0
  12. package/dist/MessageList-Ce-_LNTk.js +244 -0
  13. package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
  14. package/dist/PricingPlans-DoWP5aX7.js +427 -0
  15. package/dist/ReferrerReferees-DgygiIiE.js +237 -0
  16. package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
  17. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
  18. package/dist/WidthContainer-PeWkCK0p.js +721 -0
  19. package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
  20. package/dist/authkit.d.ts +6 -2
  21. package/dist/authkit.js +53 -44
  22. package/dist/common/authProviderIcons.d.ts +12 -0
  23. package/dist/common/globalConfig.d.ts +5 -0
  24. package/dist/common/tableColumnWidths.d.ts +11 -0
  25. package/dist/common.js +3 -3
  26. package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
  27. package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
  28. package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
  29. package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
  30. package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
  31. package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
  32. package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
  33. package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
  34. package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
  35. package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
  36. package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
  37. package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
  38. package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
  39. package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
  40. package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
  41. package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
  42. package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
  43. package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
  44. package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
  45. package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
  46. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
  47. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
  48. package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
  49. package/dist/components/CustomTable.vue.d.ts +27 -1
  50. package/dist/components/Ellipsis.vue.d.ts +2 -6
  51. package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
  52. package/dist/components/Gradientbackground.vue.d.ts +2 -2
  53. package/dist/components/HeaderMenus.vue.d.ts +4 -1
  54. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  55. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
  56. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
  57. package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
  58. package/dist/components/Menu.vue.d.ts +2 -1
  59. package/dist/components/MenuItem.vue.d.ts +3 -1
  60. package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
  61. package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
  62. package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
  63. package/dist/components/Message/MessageList.vue.d.ts +4 -3
  64. package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
  65. package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
  66. package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
  67. package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
  68. package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
  69. package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
  70. package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
  71. package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
  72. package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
  73. package/dist/components/Message/messageBody/types.d.ts +7 -0
  74. package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
  75. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
  76. package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
  77. package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
  78. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
  79. package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
  80. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
  81. package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
  82. package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
  83. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
  84. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  85. package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
  86. package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
  87. package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
  88. package/dist/composables/Authkit/useOauth.d.ts +17 -4
  89. package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
  90. package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
  91. package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
  92. package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
  93. package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
  94. package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
  95. package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
  96. package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
  97. package/dist/composables/useInfiniteList.d.ts +19 -0
  98. package/dist/composables/useMessageNotifications.d.ts +3 -6
  99. package/dist/composables.d.ts +4 -2
  100. package/dist/composables.js +50 -45
  101. package/dist/feedback.d.ts +1 -0
  102. package/dist/feedback.js +12 -11
  103. package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
  104. package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
  105. package/dist/landingPage.js +21 -21
  106. package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
  107. package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
  108. package/dist/legalDocs/index.d.ts +7 -0
  109. package/dist/legalDocs/isConfigured.d.ts +7 -0
  110. package/dist/legalDocs/open.d.ts +3 -0
  111. package/dist/legalDocs/resolveAppId.d.ts +8 -0
  112. package/dist/legalDocs/resolveTarget.d.ts +4 -0
  113. package/dist/legalDocs/types.d.ts +12 -0
  114. package/dist/main.js +320 -308
  115. package/dist/message.d.ts +3 -0
  116. package/dist/message.js +301 -21
  117. package/dist/pay.d.ts +1 -1
  118. package/dist/pay.js +14 -17
  119. package/dist/privateCom.js +1 -1
  120. package/dist/referrer.js +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/types/api/auth.generated.d.ts +1385 -328
  123. package/dist/types/api/billing.generated.d.ts +907 -76
  124. package/dist/types/api/ones.generated.d.ts +131 -2
  125. package/dist/types/api.d.ts +1 -0
  126. package/dist/types/app.d.ts +10 -0
  127. package/dist/types/user.d.ts +1 -0
  128. package/dist/upload.js +2 -2
  129. package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
  130. package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
  131. package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
  132. package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
  133. package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
  134. package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
  135. package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
  136. package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
  137. package/dist/useRoutePermission-CEiya9AM.js +218 -0
  138. package/dist/useSEO-CDWxbk8B.js +221 -0
  139. package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
  140. package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
  141. package/dist/user.js +1 -1
  142. package/dist/userMenuModal-D-nDaYqM.js +66 -0
  143. package/dist/utils/apiMiddlewares.d.ts +5 -5
  144. package/dist/utils/apiResponse.d.ts +11 -0
  145. package/dist/utils/authProviderIcon.d.ts +3 -0
  146. package/dist/utils/authkit.d.ts +20 -7
  147. package/dist/utils/formatPoints.d.ts +8 -0
  148. package/dist/utils/messageNotificationContent.d.ts +4 -0
  149. package/dist/utils/messageTextLink.d.ts +9 -0
  150. package/dist/utils/passkeySupport.d.ts +8 -0
  151. package/dist/utils/pointsFlowTypes.d.ts +10 -0
  152. package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
  153. package/dist/utils/refundStatusDisplay.d.ts +1 -0
  154. package/dist/utils/subscriptionDisplay.d.ts +7 -0
  155. package/dist/utils/userDisplay.d.ts +41 -0
  156. package/package.json +11 -3
  157. package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
  158. package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
  159. package/dist/CustomTable-nsxN4Ja4.js +0 -276
  160. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
  161. package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
  162. package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
  163. package/dist/Menu-Cy2ZPeaz.js +0 -170
  164. package/dist/MessageHandle-BG12aX0i.js +0 -924
  165. package/dist/MessageList-CrCF8mU6.js +0 -233
  166. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
  167. package/dist/PaySubscriptions-lWnEioX5.js +0 -1241
  168. package/dist/PricingPlans-DFcjOMWS.js +0 -404
  169. package/dist/ReferrerReferees-Cn7KaO8z.js +0 -106
  170. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js +0 -520
  171. package/dist/WidthContainer-CF3qOLWW.js +0 -688
  172. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
  173. package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
  174. package/dist/index-D3Kp6R4z.js +0 -4
  175. package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
  176. package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
  177. package/dist/useLegalLinks-Cwr45PBT.js +0 -60
  178. package/dist/useRoutePermission-CaWtjLRA.js +0 -212
  179. package/dist/useSEO-BSMQdBR9.js +0 -158
  180. package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
  181. package/dist/useTableHandle-BdujaiNX.js +0 -69
  182. /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
@@ -125,12 +125,11 @@ export type Api = {
125
125
  type: "free" | "one_time" | "recurring";
126
126
  currency: string;
127
127
  unitAmount: number;
128
- trialPeriodDays?: number;
129
- allowRepeatTrial?: boolean;
130
128
  interval?: "day" | "week" | "month" | "year";
131
129
  intervalCount?: number;
132
130
  bonusPoints?: number;
133
131
  metadata?: Record<string, unknown>;
132
+ active?: boolean;
134
133
  };
135
134
  return: any;
136
135
  };
@@ -145,16 +144,20 @@ export type Api = {
145
144
  };
146
145
  };
147
146
  update: {
148
- /** 更新价格方案信息 */
147
+ /** 更新价格方案并发布新版本 */
149
148
  post: {
150
149
  body: {
151
150
  id: string;
151
+ productId?: string;
152
152
  nickname?: string;
153
+ type?: "free" | "one_time" | "recurring";
154
+ currency?: string;
153
155
  active?: boolean;
154
156
  metadata?: Record<string, unknown>;
155
- trialPeriodDays?: number;
156
- allowRepeatTrial?: boolean;
157
157
  bonusPoints?: number;
158
+ unitAmount?: number;
159
+ interval?: "day" | "week" | "month" | "year";
160
+ intervalCount?: number;
158
161
  };
159
162
  return: any;
160
163
  };
@@ -194,13 +197,38 @@ export type Api = {
194
197
  };
195
198
  };
196
199
  };
200
+ priceHistories: {
201
+ find: {
202
+ /** 分页查询价格方案历史版本 */
203
+ post: {
204
+ body: {
205
+ current: number;
206
+ pageSize: number;
207
+ where: {
208
+ priceId?: string;
209
+ id?: string;
210
+ };
211
+ };
212
+ return: any;
213
+ };
214
+ };
215
+ rollback: {
216
+ /** 将当前价格方案恢复为指定历史版本,并生成新版本 */
217
+ post: {
218
+ body: {
219
+ priceId: string;
220
+ historyId: string;
221
+ };
222
+ return: any;
223
+ };
224
+ };
225
+ };
197
226
  subscriptions: {
198
227
  create: {
199
228
  /** 创建新订阅并发起支付 */
200
229
  post: {
201
230
  body: {
202
231
  priceId: string;
203
- couponCode?: string;
204
232
  subjectUserId?: string;
205
233
  };
206
234
  return: any;
@@ -489,19 +517,68 @@ export type Api = {
489
517
  };
490
518
  };
491
519
  };
520
+ entitlementGrants: {
521
+ find: {
522
+ /** 分页查询后台权益发放批次 */
523
+ post: {
524
+ body: {
525
+ current: number;
526
+ pageSize: number;
527
+ where: {
528
+ type?: "" | "backfill" | "beta";
529
+ productId?: string;
530
+ priceId?: string;
531
+ userId?: string;
532
+ };
533
+ };
534
+ return: any;
535
+ };
536
+ };
537
+ create: {
538
+ /** 给指定用户发放补发权益或内测资格 */
539
+ post: {
540
+ body: {
541
+ type: "backfill" | "beta";
542
+ userIds: string[];
543
+ productId: string;
544
+ priceId: string;
545
+ grantPeriods: number;
546
+ reason: string;
547
+ };
548
+ return: any;
549
+ };
550
+ };
551
+ revoke: {
552
+ /** 撤销指定发放批次中仍然生效的权益 */
553
+ post: {
554
+ body: {
555
+ id: string;
556
+ reason: string;
557
+ };
558
+ return: any;
559
+ };
560
+ };
561
+ delete: {
562
+ /** 删除指定权益发放记录;仍有生效权益时需要先撤销 */
563
+ post: {
564
+ body: {
565
+ id: string;
566
+ };
567
+ return: any;
568
+ };
569
+ };
570
+ };
492
571
  newUserDefaults: {
493
572
  find: {
494
- /** 查询注册后默认授予的免费权益配置 */
573
+ /** 查询注册赠送积分与默认邀请奖励配置 */
495
574
  post: {
496
575
  return: any;
497
576
  };
498
577
  };
499
578
  update: {
500
- /** 更新注册后默认授予的免费权益配置 */
579
+ /** 更新注册赠送积分与默认邀请奖励配置 */
501
580
  post: {
502
581
  body: {
503
- autoGrantFreePriceOnSignup: boolean;
504
- defaultFreePriceId?: string;
505
582
  signupReward?: {
506
583
  enabled: boolean;
507
584
  amount: number;
@@ -515,16 +592,6 @@ export type Api = {
515
592
  return: any;
516
593
  };
517
594
  };
518
- grantMissingFreeEntitlements: {
519
- /** 给当前应用下没有活跃订阅/体验的用户补发默认免费价格方案 */
520
- post: {
521
- body: {
522
- dryRun?: boolean;
523
- userIds?: string[];
524
- };
525
- return: any;
526
- };
527
- };
528
595
  };
529
596
  usageRecords: {
530
597
  checkQuota: {
@@ -622,6 +689,7 @@ export type Api = {
622
689
  current: number;
623
690
  pageSize: number;
624
691
  where: {
692
+ id?: string;
625
693
  userId?: string;
626
694
  subscriptionId?: string;
627
695
  status?: string;
@@ -972,6 +1040,7 @@ export type Api = {
972
1040
  pointsRewardPolicy: {
973
1041
  inviteReward: {
974
1042
  find: {
1043
+ /** 查询指定邀请码的奖励配置(专属或默认) */
975
1044
  post: {
976
1045
  body: {
977
1046
  inviteCodeId: string;
@@ -980,6 +1049,7 @@ export type Api = {
980
1049
  };
981
1050
  };
982
1051
  findBatch: {
1052
+ /** 批量查询多个邀请码的奖励配置(专属或默认) */
983
1053
  post: {
984
1054
  body: {
985
1055
  inviteCodeIds: string[];
@@ -988,6 +1058,7 @@ export type Api = {
988
1058
  };
989
1059
  };
990
1060
  save: {
1061
+ /** 为指定邀请码配置专属奖励,关闭时删除专属策略 */
991
1062
  post: {
992
1063
  body: {
993
1064
  inviteCodeId: string;
@@ -1328,6 +1399,18 @@ export type Api = {
1328
1399
  page?: number;
1329
1400
  pageSize?: number;
1330
1401
  subjectUserId?: string;
1402
+ orderId?: string;
1403
+ startTime?: string;
1404
+ endTime?: string;
1405
+ };
1406
+ return: any;
1407
+ };
1408
+ };
1409
+ orderDetail: {
1410
+ /** 查询当前用户自己的充值订单详情、操作记录与积分流水 */
1411
+ post: {
1412
+ body: {
1413
+ orderId: string;
1331
1414
  };
1332
1415
  return: any;
1333
1416
  };
@@ -1339,6 +1422,7 @@ export type Api = {
1339
1422
  current: number;
1340
1423
  pageSize: number;
1341
1424
  where: {
1425
+ id?: string;
1342
1426
  userId?: string;
1343
1427
  status?: string;
1344
1428
  startTime?: string;
@@ -1545,6 +1629,7 @@ export type Api = {
1545
1629
  status?: string;
1546
1630
  sourceType?: "points_recharge" | "subscription_invoice";
1547
1631
  userId?: string;
1632
+ refundNo?: string;
1548
1633
  startDate?: string;
1549
1634
  endDate?: string;
1550
1635
  };
@@ -1757,6 +1842,11 @@ export type Api = {
1757
1842
  serviceKey: string;
1758
1843
  meterKey: string;
1759
1844
  }[];
1845
+ dependencyMeterRefs?: {
1846
+ businessLineKey: string;
1847
+ serviceKey: string;
1848
+ meterKey: string;
1849
+ }[];
1760
1850
  name: string;
1761
1851
  currency?: "CNY" | "USD";
1762
1852
  enabled?: boolean;
@@ -1815,6 +1905,11 @@ export type Api = {
1815
1905
  serviceKey: string;
1816
1906
  meterKey: string;
1817
1907
  }[];
1908
+ dependencyMeterRefs?: {
1909
+ businessLineKey: string;
1910
+ serviceKey: string;
1911
+ meterKey: string;
1912
+ }[];
1818
1913
  pricingValues?: {
1819
1914
  type: "flat";
1820
1915
  originalPrice: number;
@@ -1858,6 +1953,62 @@ export type Api = {
1858
1953
  return: any;
1859
1954
  };
1860
1955
  };
1956
+ upsertSellBinding: {
1957
+ /** 编辑平台共享价目表的本应用共享配置(售价覆盖,原价不可改) */
1958
+ post: {
1959
+ body: {
1960
+ priceListId: string;
1961
+ sellPricingValues: {
1962
+ type: "flat";
1963
+ originalPrice: number;
1964
+ sellPrice: number;
1965
+ } | {
1966
+ type: "tiered";
1967
+ priceStructure: "flat" | "segmented";
1968
+ tiers: ({
1969
+ match?: Record<string, string>;
1970
+ tierRangeMode?: "at_most" | "at_least" | "between";
1971
+ minTokens?: number;
1972
+ maxTokens?: number;
1973
+ minInclusive?: boolean;
1974
+ maxInclusive?: boolean;
1975
+ originalFenPerUnit: number;
1976
+ sellFenPerUnit: number;
1977
+ billingEnabled: boolean;
1978
+ })[];
1979
+ } | {
1980
+ type: "meters";
1981
+ meters: ({
1982
+ componentKey: string;
1983
+ businessLineKey: string;
1984
+ serviceKey: string;
1985
+ meterKey: string;
1986
+ tiers: ({
1987
+ match?: Record<string, string>;
1988
+ tierRangeMode?: "at_most" | "at_least" | "between";
1989
+ minTokens?: number;
1990
+ maxTokens?: number;
1991
+ minInclusive?: boolean;
1992
+ maxInclusive?: boolean;
1993
+ originalFenPerUnit: number;
1994
+ sellFenPerUnit: number;
1995
+ billingEnabled: boolean;
1996
+ })[];
1997
+ })[];
1998
+ };
1999
+ enabled?: boolean;
2000
+ };
2001
+ return: any;
2002
+ };
2003
+ };
2004
+ deleteSellBinding: {
2005
+ post: {
2006
+ body: {
2007
+ priceListId: string;
2008
+ };
2009
+ return: any;
2010
+ };
2011
+ };
1861
2012
  delete: {
1862
2013
  post: {
1863
2014
  body: {
@@ -2334,6 +2485,17 @@ export type Api = {
2334
2485
  return: any;
2335
2486
  };
2336
2487
  };
2488
+ subscription: {
2489
+ /** 导出订阅账单记录为 CSV 格式 */
2490
+ post: {
2491
+ body: {
2492
+ startDate?: string;
2493
+ endDate?: string;
2494
+ status?: string;
2495
+ };
2496
+ return: any;
2497
+ };
2498
+ };
2337
2499
  refund: {
2338
2500
  /** 导出退款记录为 CSV 格式 */
2339
2501
  post: {
@@ -2374,29 +2536,8 @@ export type Api = {
2374
2536
  post: {
2375
2537
  body: {
2376
2538
  period: "day" | "week" | "month";
2377
- days?: number;
2378
- };
2379
- return: any;
2380
- };
2381
- };
2382
- packageRank: {
2383
- /** 获取套餐销售排行数据 */
2384
- post: {
2385
- body: {
2386
2539
  startDate?: string;
2387
2540
  endDate?: string;
2388
- limit?: number;
2389
- };
2390
- return: any;
2391
- };
2392
- };
2393
- userRank: {
2394
- /** 获取用户充值排行数据 */
2395
- post: {
2396
- body: {
2397
- startDate?: string;
2398
- endDate?: string;
2399
- limit?: number;
2400
2541
  };
2401
2542
  return: any;
2402
2543
  };
@@ -2487,6 +2628,7 @@ export type Api = {
2487
2628
  page?: number;
2488
2629
  pageSize?: number;
2489
2630
  status?: string;
2631
+ invoiceNo?: string;
2490
2632
  userId?: string;
2491
2633
  startDate?: string;
2492
2634
  endDate?: string;
@@ -2714,6 +2856,10 @@ export type Api = {
2714
2856
  meterUsage: Record<string, number>;
2715
2857
  meterMatchContext?: Record<string, Record<string, string>>;
2716
2858
  meterTierMatchUsage?: Record<string, number>;
2859
+ dependencySubjects?: Record<string, {
2860
+ subjectType: "model-profile";
2861
+ subjectKey: string;
2862
+ }>;
2717
2863
  exchangeRate?: number;
2718
2864
  };
2719
2865
  return: any;
@@ -2728,7 +2874,7 @@ export type Api = {
2728
2874
  businessLineKey: string;
2729
2875
  idempotencyKey: string;
2730
2876
  serviceKey: string;
2731
- priceListId: string;
2877
+ priceListId?: string;
2732
2878
  resourceId?: string;
2733
2879
  subjectKey: string;
2734
2880
  sourceService?: string;
@@ -2740,9 +2886,14 @@ export type Api = {
2740
2886
  meterUsage: Record<string, number>;
2741
2887
  meterMatchContext?: Record<string, Record<string, string>>;
2742
2888
  meterTierMatchUsage?: Record<string, number>;
2889
+ dependencySubjects?: Record<string, {
2890
+ subjectType: "model-profile";
2891
+ subjectKey: string;
2892
+ }>;
2743
2893
  exchangeRate?: number;
2744
2894
  snapshot?: {
2745
2895
  priceListId?: string;
2896
+ priceListIds?: string[];
2746
2897
  usage?: Record<string, number>;
2747
2898
  cost?: Record<string, unknown>;
2748
2899
  };
@@ -2826,6 +2977,17 @@ export type Api = {
2826
2977
  return: any;
2827
2978
  };
2828
2979
  };
2980
+ 'resolve-dependency-config': {
2981
+ /** 供组合服务扣费前解析自身 dependencyMeterRefs 配置价目表 */
2982
+ post: {
2983
+ body: {
2984
+ appId: string;
2985
+ businessLineKey: string;
2986
+ serviceKey: string;
2987
+ };
2988
+ return: any;
2989
+ };
2990
+ };
2829
2991
  'sync-model': {
2830
2992
  post: {
2831
2993
  body: {
@@ -2885,6 +3047,16 @@ export type Api = {
2885
3047
  };
2886
3048
  };
2887
3049
  points: {
3050
+ account: {
3051
+ /** 供 ai-server 等服务间查询用户积分余额 */
3052
+ post: {
3053
+ body: {
3054
+ appId: string;
3055
+ userId: string;
3056
+ };
3057
+ return: any;
3058
+ };
3059
+ };
2888
3060
  'by-request-ids': {
2889
3061
  /** 供 ai-server 溯源:通过 requestId 列表查询 pointsHistory */
2890
3062
  post: {
@@ -2896,6 +3068,275 @@ export type Api = {
2896
3068
  };
2897
3069
  };
2898
3070
  };
3071
+ queue: {
3072
+ billing: {
3073
+ 'recharge-expire': {
3074
+ /** 关闭超时未支付的积分充值订单 */
3075
+ post: {
3076
+ body: {
3077
+ appId: string;
3078
+ queueKey: string;
3079
+ queueDefinitionId: string;
3080
+ taskRunId: string;
3081
+ queueServiceKey: string;
3082
+ context: {
3083
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3084
+ actor: {
3085
+ type: "user" | "service" | "system" | "queue";
3086
+ id?: string;
3087
+ };
3088
+ businessContext: {
3089
+ resourceType?: string;
3090
+ resourceId?: string;
3091
+ operation?: string;
3092
+ };
3093
+ traceContext: {
3094
+ requestId?: string;
3095
+ traceId?: string;
3096
+ parentTaskRunId?: string;
3097
+ };
3098
+ };
3099
+ } & {
3100
+ payload: {
3101
+ scheduledAt?: string;
3102
+ source?: string;
3103
+ schedulerJobId?: string;
3104
+ };
3105
+ };
3106
+ return: any;
3107
+ };
3108
+ };
3109
+ 'recharge-poll': {
3110
+ /** 查询支付宝充值订单状态并完成积分发放 */
3111
+ post: {
3112
+ body: {
3113
+ appId: string;
3114
+ queueKey: string;
3115
+ queueDefinitionId: string;
3116
+ taskRunId: string;
3117
+ queueServiceKey: string;
3118
+ context: {
3119
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3120
+ actor: {
3121
+ type: "user" | "service" | "system" | "queue";
3122
+ id?: string;
3123
+ };
3124
+ businessContext: {
3125
+ resourceType?: string;
3126
+ resourceId?: string;
3127
+ operation?: string;
3128
+ };
3129
+ traceContext: {
3130
+ requestId?: string;
3131
+ traceId?: string;
3132
+ parentTaskRunId?: string;
3133
+ };
3134
+ };
3135
+ } & {
3136
+ payload: {
3137
+ scheduledAt?: string;
3138
+ source?: string;
3139
+ schedulerJobId?: string;
3140
+ orderId?: string;
3141
+ };
3142
+ };
3143
+ return: any;
3144
+ };
3145
+ };
3146
+ 'subscription-invoice-poll': {
3147
+ /** 查询订阅账单支付状态并处理支付成功/过期 */
3148
+ post: {
3149
+ body: {
3150
+ appId: string;
3151
+ queueKey: string;
3152
+ queueDefinitionId: string;
3153
+ taskRunId: string;
3154
+ queueServiceKey: string;
3155
+ context: {
3156
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3157
+ actor: {
3158
+ type: "user" | "service" | "system" | "queue";
3159
+ id?: string;
3160
+ };
3161
+ businessContext: {
3162
+ resourceType?: string;
3163
+ resourceId?: string;
3164
+ operation?: string;
3165
+ };
3166
+ traceContext: {
3167
+ requestId?: string;
3168
+ traceId?: string;
3169
+ parentTaskRunId?: string;
3170
+ };
3171
+ };
3172
+ } & {
3173
+ payload: {
3174
+ scheduledAt?: string;
3175
+ source?: string;
3176
+ schedulerJobId?: string;
3177
+ invoiceId?: string;
3178
+ };
3179
+ };
3180
+ return: any;
3181
+ };
3182
+ };
3183
+ 'subscription-tick': {
3184
+ /** 续费提醒、订阅到期、免费体验到期与期末取消 */
3185
+ post: {
3186
+ body: {
3187
+ appId: string;
3188
+ queueKey: string;
3189
+ queueDefinitionId: string;
3190
+ taskRunId: string;
3191
+ queueServiceKey: string;
3192
+ context: {
3193
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3194
+ actor: {
3195
+ type: "user" | "service" | "system" | "queue";
3196
+ id?: string;
3197
+ };
3198
+ businessContext: {
3199
+ resourceType?: string;
3200
+ resourceId?: string;
3201
+ operation?: string;
3202
+ };
3203
+ traceContext: {
3204
+ requestId?: string;
3205
+ traceId?: string;
3206
+ parentTaskRunId?: string;
3207
+ };
3208
+ };
3209
+ } & {
3210
+ payload: {
3211
+ scheduledAt?: string;
3212
+ source?: string;
3213
+ schedulerJobId?: string;
3214
+ };
3215
+ };
3216
+ return: any;
3217
+ };
3218
+ };
3219
+ 'entitlement-sync': {
3220
+ /** 补偿订阅权益发放/清理失败记录 */
3221
+ post: {
3222
+ body: {
3223
+ appId: string;
3224
+ queueKey: string;
3225
+ queueDefinitionId: string;
3226
+ taskRunId: string;
3227
+ queueServiceKey: string;
3228
+ context: {
3229
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3230
+ actor: {
3231
+ type: "user" | "service" | "system" | "queue";
3232
+ id?: string;
3233
+ };
3234
+ businessContext: {
3235
+ resourceType?: string;
3236
+ resourceId?: string;
3237
+ operation?: string;
3238
+ };
3239
+ traceContext: {
3240
+ requestId?: string;
3241
+ traceId?: string;
3242
+ parentTaskRunId?: string;
3243
+ };
3244
+ };
3245
+ } & {
3246
+ payload: {
3247
+ scheduledAt?: string;
3248
+ source?: string;
3249
+ schedulerJobId?: string;
3250
+ };
3251
+ };
3252
+ return: any;
3253
+ };
3254
+ };
3255
+ 'refund-poll': {
3256
+ /** 查询支付宝退款状态并处理退款完成 */
3257
+ post: {
3258
+ body: {
3259
+ appId: string;
3260
+ queueKey: string;
3261
+ queueDefinitionId: string;
3262
+ taskRunId: string;
3263
+ queueServiceKey: string;
3264
+ context: {
3265
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3266
+ actor: {
3267
+ type: "user" | "service" | "system" | "queue";
3268
+ id?: string;
3269
+ };
3270
+ businessContext: {
3271
+ resourceType?: string;
3272
+ resourceId?: string;
3273
+ operation?: string;
3274
+ };
3275
+ traceContext: {
3276
+ requestId?: string;
3277
+ traceId?: string;
3278
+ parentTaskRunId?: string;
3279
+ };
3280
+ };
3281
+ } & {
3282
+ payload: {
3283
+ scheduledAt?: string;
3284
+ source?: string;
3285
+ schedulerJobId?: string;
3286
+ };
3287
+ };
3288
+ return: any;
3289
+ };
3290
+ };
3291
+ 'reconciliation-daily': {
3292
+ /** 按业务日生成对账报告 */
3293
+ post: {
3294
+ body: {
3295
+ appId: string;
3296
+ queueKey: string;
3297
+ queueDefinitionId: string;
3298
+ taskRunId: string;
3299
+ queueServiceKey: string;
3300
+ context: {
3301
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
3302
+ actor: {
3303
+ type: "user" | "service" | "system" | "queue";
3304
+ id?: string;
3305
+ };
3306
+ businessContext: {
3307
+ resourceType?: string;
3308
+ resourceId?: string;
3309
+ operation?: string;
3310
+ };
3311
+ traceContext: {
3312
+ requestId?: string;
3313
+ traceId?: string;
3314
+ parentTaskRunId?: string;
3315
+ };
3316
+ };
3317
+ } & {
3318
+ payload: {
3319
+ scheduledAt?: string;
3320
+ source?: string;
3321
+ schedulerJobId?: string;
3322
+ };
3323
+ };
3324
+ return: any;
3325
+ };
3326
+ };
3327
+ 'scheduled-scan': {
3328
+ /** 供 queue-server 平台调度触发,按 queueServiceKey 扫描全部相关租户 */
3329
+ post: {
3330
+ body: {
3331
+ queueServiceKey: string;
3332
+ scheduledAt?: string;
3333
+ source?: string;
3334
+ };
3335
+ return: any;
3336
+ };
3337
+ };
3338
+ };
3339
+ };
2899
3340
  };
2900
3341
  webhooks: {
2901
3342
  events: {
@@ -3019,12 +3460,11 @@ export interface ApiClient {
3019
3460
  type: "free" | "one_time" | "recurring";
3020
3461
  currency: string;
3021
3462
  unitAmount: number;
3022
- trialPeriodDays?: number;
3023
- allowRepeatTrial?: boolean;
3024
3463
  interval?: "day" | "week" | "month" | "year";
3025
3464
  intervalCount?: number;
3026
3465
  bonusPoints?: number;
3027
3466
  metadata?: Record<string, unknown>;
3467
+ active?: boolean;
3028
3468
  }, config?: RequestConfig) => RequestBuilder<any>;
3029
3469
  };
3030
3470
  delete: {
@@ -3034,15 +3474,19 @@ export interface ApiClient {
3034
3474
  }, config?: RequestConfig) => RequestBuilder<any>;
3035
3475
  };
3036
3476
  update: {
3037
- /** 更新价格方案信息 */
3477
+ /** 更新价格方案并发布新版本 */
3038
3478
  post: (body: {
3039
3479
  id: string;
3480
+ productId?: string;
3040
3481
  nickname?: string;
3482
+ type?: "free" | "one_time" | "recurring";
3483
+ currency?: string;
3041
3484
  active?: boolean;
3042
3485
  metadata?: Record<string, unknown>;
3043
- trialPeriodDays?: number;
3044
- allowRepeatTrial?: boolean;
3045
3486
  bonusPoints?: number;
3487
+ unitAmount?: number;
3488
+ interval?: "day" | "week" | "month" | "year";
3489
+ intervalCount?: number;
3046
3490
  }, config?: RequestConfig) => RequestBuilder<any>;
3047
3491
  };
3048
3492
  find: {
@@ -3071,12 +3515,31 @@ export interface ApiClient {
3071
3515
  }, config?: RequestConfig) => RequestBuilder<any>;
3072
3516
  };
3073
3517
  };
3518
+ priceHistories: {
3519
+ find: {
3520
+ /** 分页查询价格方案历史版本 */
3521
+ post: (body: {
3522
+ current: number;
3523
+ pageSize: number;
3524
+ where: {
3525
+ priceId?: string;
3526
+ id?: string;
3527
+ };
3528
+ }, config?: RequestConfig) => RequestBuilder<any>;
3529
+ };
3530
+ rollback: {
3531
+ /** 将当前价格方案恢复为指定历史版本,并生成新版本 */
3532
+ post: (body: {
3533
+ priceId: string;
3534
+ historyId: string;
3535
+ }, config?: RequestConfig) => RequestBuilder<any>;
3536
+ };
3537
+ };
3074
3538
  subscriptions: {
3075
3539
  create: {
3076
3540
  /** 创建新订阅并发起支付 */
3077
3541
  post: (body: {
3078
3542
  priceId: string;
3079
- couponCode?: string;
3080
3543
  subjectUserId?: string;
3081
3544
  }, config?: RequestConfig) => RequestBuilder<any>;
3082
3545
  };
@@ -3287,16 +3750,53 @@ export interface ApiClient {
3287
3750
  }, config?: RequestConfig) => RequestBuilder<any>;
3288
3751
  };
3289
3752
  };
3753
+ entitlementGrants: {
3754
+ find: {
3755
+ /** 分页查询后台权益发放批次 */
3756
+ post: (body: {
3757
+ current: number;
3758
+ pageSize: number;
3759
+ where: {
3760
+ type?: "" | "backfill" | "beta";
3761
+ productId?: string;
3762
+ priceId?: string;
3763
+ userId?: string;
3764
+ };
3765
+ }, config?: RequestConfig) => RequestBuilder<any>;
3766
+ };
3767
+ create: {
3768
+ /** 给指定用户发放补发权益或内测资格 */
3769
+ post: (body: {
3770
+ type: "backfill" | "beta";
3771
+ userIds: string[];
3772
+ productId: string;
3773
+ priceId: string;
3774
+ grantPeriods: number;
3775
+ reason: string;
3776
+ }, config?: RequestConfig) => RequestBuilder<any>;
3777
+ };
3778
+ revoke: {
3779
+ /** 撤销指定发放批次中仍然生效的权益 */
3780
+ post: (body: {
3781
+ id: string;
3782
+ reason: string;
3783
+ }, config?: RequestConfig) => RequestBuilder<any>;
3784
+ };
3785
+ delete: {
3786
+ /** 删除指定权益发放记录;仍有生效权益时需要先撤销 */
3787
+ post: (body: {
3788
+ id: string;
3789
+ }, config?: RequestConfig) => RequestBuilder<any>;
3790
+ };
3791
+ };
3290
3792
  newUserDefaults: {
3291
3793
  find: {
3292
- /** 查询注册后默认授予的免费权益配置 */
3794
+ /** 查询注册赠送积分与默认邀请奖励配置 */
3293
3795
  post: (config?: RequestConfig) => RequestBuilder<any>;
3294
3796
  };
3295
3797
  update: {
3296
- /** 更新注册后默认授予的免费权益配置 */
3297
- post: (body: {
3298
- autoGrantFreePriceOnSignup: boolean;
3299
- defaultFreePriceId?: string;
3798
+ /** 更新注册赠送积分与默认邀请奖励配置 */
3799
+ post: (body?: {
3300
3800
  signupReward?: {
3301
3801
  enabled: boolean;
3302
3802
  amount: number;
@@ -3308,13 +3808,6 @@ export interface ApiClient {
3308
3808
  };
3309
3809
  }, config?: RequestConfig) => RequestBuilder<any>;
3310
3810
  };
3311
- grantMissingFreeEntitlements: {
3312
- /** 给当前应用下没有活跃订阅/体验的用户补发默认免费价格方案 */
3313
- post: (body?: {
3314
- dryRun?: boolean;
3315
- userIds?: string[];
3316
- }, config?: RequestConfig) => RequestBuilder<any>;
3317
- };
3318
3811
  };
3319
3812
  usageRecords: {
3320
3813
  checkQuota: {
@@ -3390,6 +3883,7 @@ export interface ApiClient {
3390
3883
  current: number;
3391
3884
  pageSize: number;
3392
3885
  where: {
3886
+ id?: string;
3393
3887
  userId?: string;
3394
3888
  subscriptionId?: string;
3395
3889
  status?: string;
@@ -3649,16 +4143,19 @@ export interface ApiClient {
3649
4143
  pointsRewardPolicy: {
3650
4144
  inviteReward: {
3651
4145
  find: {
4146
+ /** 查询指定邀请码的奖励配置(专属或默认) */
3652
4147
  post: (body: {
3653
4148
  inviteCodeId: string;
3654
4149
  }, config?: RequestConfig) => RequestBuilder<any>;
3655
4150
  };
3656
4151
  findBatch: {
4152
+ /** 批量查询多个邀请码的奖励配置(专属或默认) */
3657
4153
  post: (body: {
3658
4154
  inviteCodeIds: string[];
3659
4155
  }, config?: RequestConfig) => RequestBuilder<any>;
3660
4156
  };
3661
4157
  save: {
4158
+ /** 为指定邀请码配置专属奖励,关闭时删除专属策略 */
3662
4159
  post: (body: {
3663
4160
  inviteCodeId: string;
3664
4161
  inviteCodeName?: string;
@@ -3926,6 +4423,15 @@ export interface ApiClient {
3926
4423
  page?: number;
3927
4424
  pageSize?: number;
3928
4425
  subjectUserId?: string;
4426
+ orderId?: string;
4427
+ startTime?: string;
4428
+ endTime?: string;
4429
+ }, config?: RequestConfig) => RequestBuilder<any>;
4430
+ };
4431
+ orderDetail: {
4432
+ /** 查询当前用户自己的充值订单详情、操作记录与积分流水 */
4433
+ post: (body: {
4434
+ orderId: string;
3929
4435
  }, config?: RequestConfig) => RequestBuilder<any>;
3930
4436
  };
3931
4437
  find: {
@@ -3934,6 +4440,7 @@ export interface ApiClient {
3934
4440
  current: number;
3935
4441
  pageSize: number;
3936
4442
  where: {
4443
+ id?: string;
3937
4444
  userId?: string;
3938
4445
  status?: string;
3939
4446
  startTime?: string;
@@ -4085,6 +4592,7 @@ export interface ApiClient {
4085
4592
  status?: string;
4086
4593
  sourceType?: "points_recharge" | "subscription_invoice";
4087
4594
  userId?: string;
4595
+ refundNo?: string;
4088
4596
  startDate?: string;
4089
4597
  endDate?: string;
4090
4598
  }, config?: RequestConfig) => RequestBuilder<any>;
@@ -4247,6 +4755,11 @@ export interface ApiClient {
4247
4755
  serviceKey: string;
4248
4756
  meterKey: string;
4249
4757
  }[];
4758
+ dependencyMeterRefs?: {
4759
+ businessLineKey: string;
4760
+ serviceKey: string;
4761
+ meterKey: string;
4762
+ }[];
4250
4763
  name: string;
4251
4764
  currency?: "CNY" | "USD";
4252
4765
  enabled?: boolean;
@@ -4302,6 +4815,11 @@ export interface ApiClient {
4302
4815
  serviceKey: string;
4303
4816
  meterKey: string;
4304
4817
  }[];
4818
+ dependencyMeterRefs?: {
4819
+ businessLineKey: string;
4820
+ serviceKey: string;
4821
+ meterKey: string;
4822
+ }[];
4305
4823
  pricingValues?: {
4306
4824
  type: "flat";
4307
4825
  originalPrice: number;
@@ -4343,6 +4861,56 @@ export interface ApiClient {
4343
4861
  accessScope?: "private" | "all_apps";
4344
4862
  }, config?: RequestConfig) => RequestBuilder<any>;
4345
4863
  };
4864
+ upsertSellBinding: {
4865
+ /** 编辑平台共享价目表的本应用共享配置(售价覆盖,原价不可改) */
4866
+ post: (body: {
4867
+ priceListId: string;
4868
+ sellPricingValues: {
4869
+ type: "flat";
4870
+ originalPrice: number;
4871
+ sellPrice: number;
4872
+ } | {
4873
+ type: "tiered";
4874
+ priceStructure: "flat" | "segmented";
4875
+ tiers: ({
4876
+ match?: Record<string, string>;
4877
+ tierRangeMode?: "at_most" | "at_least" | "between";
4878
+ minTokens?: number;
4879
+ maxTokens?: number;
4880
+ minInclusive?: boolean;
4881
+ maxInclusive?: boolean;
4882
+ originalFenPerUnit: number;
4883
+ sellFenPerUnit: number;
4884
+ billingEnabled: boolean;
4885
+ })[];
4886
+ } | {
4887
+ type: "meters";
4888
+ meters: ({
4889
+ componentKey: string;
4890
+ businessLineKey: string;
4891
+ serviceKey: string;
4892
+ meterKey: string;
4893
+ tiers: ({
4894
+ match?: Record<string, string>;
4895
+ tierRangeMode?: "at_most" | "at_least" | "between";
4896
+ minTokens?: number;
4897
+ maxTokens?: number;
4898
+ minInclusive?: boolean;
4899
+ maxInclusive?: boolean;
4900
+ originalFenPerUnit: number;
4901
+ sellFenPerUnit: number;
4902
+ billingEnabled: boolean;
4903
+ })[];
4904
+ })[];
4905
+ };
4906
+ enabled?: boolean;
4907
+ }, config?: RequestConfig) => RequestBuilder<any>;
4908
+ };
4909
+ deleteSellBinding: {
4910
+ post: (body: {
4911
+ priceListId: string;
4912
+ }, config?: RequestConfig) => RequestBuilder<any>;
4913
+ };
4346
4914
  delete: {
4347
4915
  post: (body: {
4348
4916
  id: string;
@@ -4727,6 +5295,14 @@ export interface ApiClient {
4727
5295
  status?: string;
4728
5296
  }, config?: RequestConfig) => RequestBuilder<any>;
4729
5297
  };
5298
+ subscription: {
5299
+ /** 导出订阅账单记录为 CSV 格式 */
5300
+ post: (body?: {
5301
+ startDate?: string;
5302
+ endDate?: string;
5303
+ status?: string;
5304
+ }, config?: RequestConfig) => RequestBuilder<any>;
5305
+ };
4730
5306
  refund: {
4731
5307
  /** 导出退款记录为 CSV 格式 */
4732
5308
  post: (body?: {
@@ -4757,23 +5333,8 @@ export interface ApiClient {
4757
5333
  /** 获取收入趋势数据(按日/周/月) */
4758
5334
  post: (body: {
4759
5335
  period: "day" | "week" | "month";
4760
- days?: number;
4761
- }, config?: RequestConfig) => RequestBuilder<any>;
4762
- };
4763
- packageRank: {
4764
- /** 获取套餐销售排行数据 */
4765
- post: (body?: {
4766
- startDate?: string;
4767
- endDate?: string;
4768
- limit?: number;
4769
- }, config?: RequestConfig) => RequestBuilder<any>;
4770
- };
4771
- userRank: {
4772
- /** 获取用户充值排行数据 */
4773
- post: (body?: {
4774
5336
  startDate?: string;
4775
5337
  endDate?: string;
4776
- limit?: number;
4777
5338
  }, config?: RequestConfig) => RequestBuilder<any>;
4778
5339
  };
4779
5340
  };
@@ -4843,6 +5404,7 @@ export interface ApiClient {
4843
5404
  page?: number;
4844
5405
  pageSize?: number;
4845
5406
  status?: string;
5407
+ invoiceNo?: string;
4846
5408
  userId?: string;
4847
5409
  startDate?: string;
4848
5410
  endDate?: string;
@@ -5016,6 +5578,10 @@ export interface ApiClient {
5016
5578
  meterUsage: Record<string, number>;
5017
5579
  meterMatchContext?: Record<string, Record<string, string>>;
5018
5580
  meterTierMatchUsage?: Record<string, number>;
5581
+ dependencySubjects?: Record<string, {
5582
+ subjectType: "model-profile";
5583
+ subjectKey: string;
5584
+ }>;
5019
5585
  exchangeRate?: number;
5020
5586
  }, config?: RequestConfig) => RequestBuilder<any>;
5021
5587
  };
@@ -5027,7 +5593,7 @@ export interface ApiClient {
5027
5593
  businessLineKey: string;
5028
5594
  idempotencyKey: string;
5029
5595
  serviceKey: string;
5030
- priceListId: string;
5596
+ priceListId?: string;
5031
5597
  resourceId?: string;
5032
5598
  subjectKey: string;
5033
5599
  sourceService?: string;
@@ -5039,9 +5605,14 @@ export interface ApiClient {
5039
5605
  meterUsage: Record<string, number>;
5040
5606
  meterMatchContext?: Record<string, Record<string, string>>;
5041
5607
  meterTierMatchUsage?: Record<string, number>;
5608
+ dependencySubjects?: Record<string, {
5609
+ subjectType: "model-profile";
5610
+ subjectKey: string;
5611
+ }>;
5042
5612
  exchangeRate?: number;
5043
5613
  snapshot?: {
5044
5614
  priceListId?: string;
5615
+ priceListIds?: string[];
5045
5616
  usage?: Record<string, number>;
5046
5617
  cost?: Record<string, unknown>;
5047
5618
  };
@@ -5108,6 +5679,14 @@ export interface ApiClient {
5108
5679
  billingPlan?: string;
5109
5680
  }, config?: RequestConfig) => RequestBuilder<any>;
5110
5681
  };
5682
+ 'resolve-dependency-config': {
5683
+ /** 供组合服务扣费前解析自身 dependencyMeterRefs 配置价目表 */
5684
+ post: (body: {
5685
+ appId: string;
5686
+ businessLineKey: string;
5687
+ serviceKey: string;
5688
+ }, config?: RequestConfig) => RequestBuilder<any>;
5689
+ };
5111
5690
  'sync-model': {
5112
5691
  post: (body: {
5113
5692
  appId: string;
@@ -5152,6 +5731,13 @@ export interface ApiClient {
5152
5731
  };
5153
5732
  };
5154
5733
  points: {
5734
+ account: {
5735
+ /** 供 ai-server 等服务间查询用户积分余额 */
5736
+ post: (body: {
5737
+ appId: string;
5738
+ userId: string;
5739
+ }, config?: RequestConfig) => RequestBuilder<any>;
5740
+ };
5155
5741
  'by-request-ids': {
5156
5742
  /** 供 ai-server 溯源:通过 requestId 列表查询 pointsHistory */
5157
5743
  post: (body: {
@@ -5160,6 +5746,251 @@ export interface ApiClient {
5160
5746
  }, config?: RequestConfig) => RequestBuilder<any>;
5161
5747
  };
5162
5748
  };
5749
+ queue: {
5750
+ billing: {
5751
+ 'recharge-expire': {
5752
+ /** 关闭超时未支付的积分充值订单 */
5753
+ post: (body?: {
5754
+ appId: string;
5755
+ queueKey: string;
5756
+ queueDefinitionId: string;
5757
+ taskRunId: string;
5758
+ queueServiceKey: string;
5759
+ context: {
5760
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5761
+ actor: {
5762
+ type: "user" | "service" | "system" | "queue";
5763
+ id?: string;
5764
+ };
5765
+ businessContext: {
5766
+ resourceType?: string;
5767
+ resourceId?: string;
5768
+ operation?: string;
5769
+ };
5770
+ traceContext: {
5771
+ requestId?: string;
5772
+ traceId?: string;
5773
+ parentTaskRunId?: string;
5774
+ };
5775
+ };
5776
+ } & {
5777
+ payload: {
5778
+ scheduledAt?: string;
5779
+ source?: string;
5780
+ schedulerJobId?: string;
5781
+ };
5782
+ }, config?: RequestConfig) => RequestBuilder<any>;
5783
+ };
5784
+ 'recharge-poll': {
5785
+ /** 查询支付宝充值订单状态并完成积分发放 */
5786
+ post: (body?: {
5787
+ appId: string;
5788
+ queueKey: string;
5789
+ queueDefinitionId: string;
5790
+ taskRunId: string;
5791
+ queueServiceKey: string;
5792
+ context: {
5793
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5794
+ actor: {
5795
+ type: "user" | "service" | "system" | "queue";
5796
+ id?: string;
5797
+ };
5798
+ businessContext: {
5799
+ resourceType?: string;
5800
+ resourceId?: string;
5801
+ operation?: string;
5802
+ };
5803
+ traceContext: {
5804
+ requestId?: string;
5805
+ traceId?: string;
5806
+ parentTaskRunId?: string;
5807
+ };
5808
+ };
5809
+ } & {
5810
+ payload: {
5811
+ scheduledAt?: string;
5812
+ source?: string;
5813
+ schedulerJobId?: string;
5814
+ orderId?: string;
5815
+ };
5816
+ }, config?: RequestConfig) => RequestBuilder<any>;
5817
+ };
5818
+ 'subscription-invoice-poll': {
5819
+ /** 查询订阅账单支付状态并处理支付成功/过期 */
5820
+ post: (body?: {
5821
+ appId: string;
5822
+ queueKey: string;
5823
+ queueDefinitionId: string;
5824
+ taskRunId: string;
5825
+ queueServiceKey: string;
5826
+ context: {
5827
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5828
+ actor: {
5829
+ type: "user" | "service" | "system" | "queue";
5830
+ id?: string;
5831
+ };
5832
+ businessContext: {
5833
+ resourceType?: string;
5834
+ resourceId?: string;
5835
+ operation?: string;
5836
+ };
5837
+ traceContext: {
5838
+ requestId?: string;
5839
+ traceId?: string;
5840
+ parentTaskRunId?: string;
5841
+ };
5842
+ };
5843
+ } & {
5844
+ payload: {
5845
+ scheduledAt?: string;
5846
+ source?: string;
5847
+ schedulerJobId?: string;
5848
+ invoiceId?: string;
5849
+ };
5850
+ }, config?: RequestConfig) => RequestBuilder<any>;
5851
+ };
5852
+ 'subscription-tick': {
5853
+ /** 续费提醒、订阅到期、免费体验到期与期末取消 */
5854
+ post: (body?: {
5855
+ appId: string;
5856
+ queueKey: string;
5857
+ queueDefinitionId: string;
5858
+ taskRunId: string;
5859
+ queueServiceKey: string;
5860
+ context: {
5861
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5862
+ actor: {
5863
+ type: "user" | "service" | "system" | "queue";
5864
+ id?: string;
5865
+ };
5866
+ businessContext: {
5867
+ resourceType?: string;
5868
+ resourceId?: string;
5869
+ operation?: string;
5870
+ };
5871
+ traceContext: {
5872
+ requestId?: string;
5873
+ traceId?: string;
5874
+ parentTaskRunId?: string;
5875
+ };
5876
+ };
5877
+ } & {
5878
+ payload: {
5879
+ scheduledAt?: string;
5880
+ source?: string;
5881
+ schedulerJobId?: string;
5882
+ };
5883
+ }, config?: RequestConfig) => RequestBuilder<any>;
5884
+ };
5885
+ 'entitlement-sync': {
5886
+ /** 补偿订阅权益发放/清理失败记录 */
5887
+ post: (body?: {
5888
+ appId: string;
5889
+ queueKey: string;
5890
+ queueDefinitionId: string;
5891
+ taskRunId: string;
5892
+ queueServiceKey: string;
5893
+ context: {
5894
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5895
+ actor: {
5896
+ type: "user" | "service" | "system" | "queue";
5897
+ id?: string;
5898
+ };
5899
+ businessContext: {
5900
+ resourceType?: string;
5901
+ resourceId?: string;
5902
+ operation?: string;
5903
+ };
5904
+ traceContext: {
5905
+ requestId?: string;
5906
+ traceId?: string;
5907
+ parentTaskRunId?: string;
5908
+ };
5909
+ };
5910
+ } & {
5911
+ payload: {
5912
+ scheduledAt?: string;
5913
+ source?: string;
5914
+ schedulerJobId?: string;
5915
+ };
5916
+ }, config?: RequestConfig) => RequestBuilder<any>;
5917
+ };
5918
+ 'refund-poll': {
5919
+ /** 查询支付宝退款状态并处理退款完成 */
5920
+ post: (body?: {
5921
+ appId: string;
5922
+ queueKey: string;
5923
+ queueDefinitionId: string;
5924
+ taskRunId: string;
5925
+ queueServiceKey: string;
5926
+ context: {
5927
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5928
+ actor: {
5929
+ type: "user" | "service" | "system" | "queue";
5930
+ id?: string;
5931
+ };
5932
+ businessContext: {
5933
+ resourceType?: string;
5934
+ resourceId?: string;
5935
+ operation?: string;
5936
+ };
5937
+ traceContext: {
5938
+ requestId?: string;
5939
+ traceId?: string;
5940
+ parentTaskRunId?: string;
5941
+ };
5942
+ };
5943
+ } & {
5944
+ payload: {
5945
+ scheduledAt?: string;
5946
+ source?: string;
5947
+ schedulerJobId?: string;
5948
+ };
5949
+ }, config?: RequestConfig) => RequestBuilder<any>;
5950
+ };
5951
+ 'reconciliation-daily': {
5952
+ /** 按业务日生成对账报告 */
5953
+ post: (body?: {
5954
+ appId: string;
5955
+ queueKey: string;
5956
+ queueDefinitionId: string;
5957
+ taskRunId: string;
5958
+ queueServiceKey: string;
5959
+ context: {
5960
+ triggerSource: "manual" | "internal" | "scheduler" | "planner" | "retry";
5961
+ actor: {
5962
+ type: "user" | "service" | "system" | "queue";
5963
+ id?: string;
5964
+ };
5965
+ businessContext: {
5966
+ resourceType?: string;
5967
+ resourceId?: string;
5968
+ operation?: string;
5969
+ };
5970
+ traceContext: {
5971
+ requestId?: string;
5972
+ traceId?: string;
5973
+ parentTaskRunId?: string;
5974
+ };
5975
+ };
5976
+ } & {
5977
+ payload: {
5978
+ scheduledAt?: string;
5979
+ source?: string;
5980
+ schedulerJobId?: string;
5981
+ };
5982
+ }, config?: RequestConfig) => RequestBuilder<any>;
5983
+ };
5984
+ 'scheduled-scan': {
5985
+ /** 供 queue-server 平台调度触发,按 queueServiceKey 扫描全部相关租户 */
5986
+ post: (body: {
5987
+ queueServiceKey: string;
5988
+ scheduledAt?: string;
5989
+ source?: string;
5990
+ }, config?: RequestConfig) => RequestBuilder<any>;
5991
+ };
5992
+ };
5993
+ };
5163
5994
  };
5164
5995
  webhooks: {
5165
5996
  events: {