feat: add gateway billing estimate and rate limit details

This commit is contained in:
2026-05-15 01:53:52 +08:00
parent bdc9be63d5
commit 37d0f919e5
14 changed files with 916 additions and 66 deletions
+26
View File
@@ -506,6 +506,32 @@ export interface PlayableGatewayApiKey extends GatewayApiKey {
secret: string;
}
export interface GatewayPricingEstimateItem {
amount?: number;
currency?: string;
discountFactor?: number;
durationSeconds?: number;
durationUnit?: string;
durationUnitCount?: number;
model?: string;
modelAlias?: string;
platformId?: string;
platformModelId?: string;
provider?: string;
quantity?: number | string;
resourceType?: string;
simulated?: boolean;
unit?: string;
[key: string]: unknown;
}
export interface GatewayPricingEstimate {
items: GatewayPricingEstimateItem[];
resolver: string;
totalAmount?: number;
currency?: string;
}
export interface GatewayWalletAccount {
id: string;
gatewayTenantId?: string;