| 1 | import type { DouyinMiniAppDataAuthScope } from './douyin.constants' |
| 2 | // Source: platforms/douyin.api.ts inline types |
| 3 | // Source: plat/douyin.ts |
| 4 | |
| 5 | /** |
| 6 | * DouyinMiniAppSession 类型。 |
| 7 | */ |
| 8 | export interface DouyinMiniAppSession { |
| 9 | bound: boolean |
| 10 | token?: string |
| 11 | exp?: number |
| 12 | bindInfo: { |
| 13 | provider: 'douyinMiniApp' |
| 14 | bound: boolean |
| 15 | openId?: string |
| 16 | unionIdMasked?: string |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * DouyinMiniAppQrLoginCreate 类型。 |
| 22 | */ |
| 23 | export interface DouyinMiniAppQrLoginCreate { |
| 24 | sessionId: string |
| 25 | expiresAt: number |
| 26 | qrCodePath: string |
| 27 | qrCodeBase64: string |
| 28 | qrCodeDataUrl: string |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * DouyinMiniAppChannelAuthCompleteParams 请求参数。 |
| 33 | */ |
| 34 | export interface DouyinMiniAppChannelAuthCompleteParams { |
| 35 | taskId: string |
| 36 | loginCode: string |
| 37 | nickname?: string |
| 38 | avatar?: string |
| 39 | dataAuthTicket: string |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * DouyinMiniAppDataAuthStatus 类型。 |
| 44 | */ |
| 45 | export interface DouyinMiniAppDataAuthStatus { |
| 46 | authorized: boolean |
| 47 | scope: DouyinMiniAppDataAuthScope | string |
| 48 | openId?: string |
| 49 | expiresAt?: number |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * DouyinMiniAppFansCountItem 数据结构。 |
| 54 | */ |
| 55 | export interface DouyinMiniAppFansCountItem { |
| 56 | date: string |
| 57 | newFans: number |
| 58 | totalFans: number |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * DouyinMiniAppFansCount 类型。 |
| 63 | */ |
| 64 | export interface DouyinMiniAppFansCount { |
| 65 | scope: DouyinMiniAppDataAuthScope | string |
| 66 | dateType: number |
| 67 | list: DouyinMiniAppFansCountItem[] |
| 68 | } |
| 69 | /** |
| 70 | * Douyin mini app channel auth completion response. |
| 71 | */ |
| 72 | export interface DouyinMiniAppChannelAuthCompleteVo { |
| 73 | status: number |
| 74 | accountId?: string |
| 75 | message?: string |
| 76 | } |
| 77 |