继续收紧 TypeScript:ClaimIdentity 契约与 flow 出口类型

- 新增 types/claim-identity,统一 ClaimIdentity / Payload / AdminSummary
- 导出 KuaishouCloudFlow、KuaishouFeifeiFlow 作为 normalize 出口
- 生产路径 JsonObject 统一从 types/json 导入,去掉 rebind as any
- 前后端 claimIdentity 类型字段对齐
This commit is contained in:
yml2213
2026-07-10 15:56:25 +08:00
parent 8bcd9bbd81
commit 042574dea3
20 changed files with 219 additions and 88 deletions
+14 -11
View File
@@ -58,6 +58,19 @@ export interface AdminTaskActionResponse {
token?: string
}
/** 与后端 ClaimIdentityAdminSummary / AdminClaimIdentitySummary 对齐 */
export interface AdminClaimIdentitySummary {
expectedUid: string
submittedAt: string | null
source: string
ready: boolean
boundUid: string
boundRoleName: string
uidMatched: boolean | null
compatibilityMode: 'uid' | 'legacy_no_uid'
note: string
}
export interface AdminTaskDetail {
task: AdminTaskListItem
order: null | {
@@ -105,17 +118,7 @@ export interface AdminTaskDetail {
resultMessage: string
}>
}
claimIdentity: null | {
expectedUid: string
submittedAt: string | null
source: string
ready: boolean
boundUid: string
boundRoleName: string
uidMatched: boolean | null
compatibilityMode: 'uid' | 'legacy_no_uid'
note: string
}
claimIdentity: AdminClaimIdentitySummary | null
kuaishouCloudFulfillment: null | {
flowType: string
configId: string
+1
View File
@@ -4,6 +4,7 @@ export type ClaimTokenStatus = 'active' | 'used' | 'expired' | 'revoked' | (stri
export type ClaimTaskStatus = KnownTaskStatus | (string & {})
/** 与后端 ClaimIdentityPayload 对齐 */
export interface ClaimIdentityInfo {
expectedUid: string
submittedAt: string | null