1
This commit is contained in:
@@ -796,20 +796,6 @@ export interface AdminCreditRecordSummary {
|
||||
totalTokens: number;
|
||||
inputTokens: number;
|
||||
outputTokens: number;
|
||||
attachmentImageCount: number;
|
||||
attachmentVideoCount: number;
|
||||
attachmentAudioCount: number;
|
||||
attachmentTotalCount: number;
|
||||
generatedImageCount: number;
|
||||
generatedVideoCount: number;
|
||||
generatedTotalCount: number;
|
||||
providerCostCalculatedTotal: string;
|
||||
providerCostEstimatedTotal: string;
|
||||
providerCostCombinedTotal: string;
|
||||
providerCostTotal: string;
|
||||
providerCostPendingCount: number;
|
||||
providerCostEstimatedCount: number;
|
||||
providerCostAbnormalCount: number;
|
||||
}
|
||||
|
||||
export interface AdminCreditRecord {
|
||||
@@ -862,38 +848,6 @@ export interface AdminCreditRecord {
|
||||
engineName?: string;
|
||||
engineProvider?: string;
|
||||
engineModelName?: string;
|
||||
pricingRuleId?: string;
|
||||
pricingVersionCode?: string;
|
||||
pricingBillingMode?: string;
|
||||
pricingBillingModeLabel?: string;
|
||||
pricingCalculatorVersion?: ModelPricingCalculatorVersion;
|
||||
pricingUsageSource?: string;
|
||||
pricingReferenceAt?: string;
|
||||
pricingEffectiveFrom?: string;
|
||||
pricingEffectiveTo?: string;
|
||||
pricingSnapshotHash?: string;
|
||||
providerCostCurrency?: string;
|
||||
providerCostAmount?: string;
|
||||
providerCostStatus?: string;
|
||||
providerCostStatusLabel?: string;
|
||||
providerCostCalculatedAt?: string;
|
||||
providerCostFinalizedAt?: string;
|
||||
providerCostIsEstimated?: boolean;
|
||||
providerUsagePrimary?: boolean;
|
||||
attachmentImageCount: number;
|
||||
attachmentVideoCount: number;
|
||||
attachmentAudioCount: number;
|
||||
attachmentTotalCount: number;
|
||||
attachmentVideoDurationSeconds?: string;
|
||||
attachmentAudioDurationSeconds?: string;
|
||||
requestedOutputCount: number;
|
||||
generatedImageCount: number;
|
||||
generatedVideoCount: number;
|
||||
generatedTotalCount: number;
|
||||
pricingSnapshotJson?: Record<string, any> | null;
|
||||
usageSnapshotJson?: Record<string, any> | null;
|
||||
attachmentSnapshotJson?: Record<string, any> | null;
|
||||
generationSnapshotJson?: Record<string, any> | null;
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
@@ -919,83 +873,10 @@ export interface AdminCreditRecordQueryParams {
|
||||
sourceModule?: string;
|
||||
sourceStepCode?: string;
|
||||
billingScene?: string;
|
||||
engineProvider?: string;
|
||||
engineModelName?: string;
|
||||
pricingVersionCode?: string;
|
||||
providerCostStatus?: string;
|
||||
providerCostIsEstimated?: boolean;
|
||||
hasAttachment?: boolean;
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
}
|
||||
|
||||
export type ModelPricingCategory = 'text' | 'image' | 'video';
|
||||
export type ModelPricingBillingMode =
|
||||
| 'text_token_tiered'
|
||||
| 'image_per_output'
|
||||
| 'image_input_output_tiered'
|
||||
| 'video_token_rate';
|
||||
export type ModelPricingRuleStatus = 'draft' | 'published' | 'disabled';
|
||||
export type ModelPricingCalculatorVersion =
|
||||
| 'text_token_tiered_v1'
|
||||
| 'image_per_output_v1'
|
||||
| 'image_input_output_tiered_v1'
|
||||
| 'video_pixel_token_v1';
|
||||
|
||||
export interface ModelPricingRule {
|
||||
id: string;
|
||||
provider: string;
|
||||
modelName: string;
|
||||
modelCategory: ModelPricingCategory;
|
||||
billingMode: ModelPricingBillingMode;
|
||||
calculatorVersion: ModelPricingCalculatorVersion;
|
||||
versionCode: string;
|
||||
effectiveFrom: string;
|
||||
effectiveTo?: string | null;
|
||||
publishStatus: ModelPricingRuleStatus;
|
||||
currency: string;
|
||||
ruleSchemaVersion: number;
|
||||
ruleContentHash: string;
|
||||
ruleJson: Record<string, any>;
|
||||
sourceUrl?: string | null;
|
||||
sourceUpdatedAt?: string | null;
|
||||
remark?: string | null;
|
||||
referencedCount: number;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface ModelPricingRulePayload {
|
||||
provider: string;
|
||||
model_name: string;
|
||||
model_category: ModelPricingCategory;
|
||||
billing_mode: ModelPricingBillingMode;
|
||||
calculator_version: ModelPricingCalculatorVersion;
|
||||
version_code: string;
|
||||
effective_from: string;
|
||||
effective_to?: string | null;
|
||||
currency: string;
|
||||
rule_schema_version: number;
|
||||
rule_json: Record<string, any>;
|
||||
source_url?: string | null;
|
||||
source_updated_at?: string | null;
|
||||
remark?: string | null;
|
||||
}
|
||||
|
||||
export interface ModelPricingRuleListResponse {
|
||||
items: ModelPricingRule[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface ModelPricingPreviewResponse {
|
||||
amount: string;
|
||||
currency: string;
|
||||
isEstimated: boolean;
|
||||
selectedRate?: string | null;
|
||||
usageSource: string;
|
||||
breakdown: Record<string, any>;
|
||||
}
|
||||
|
||||
// ── 首页素材行业装修 ──────────────────────────────────────
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user