mirror of
https://github.com/strapi/strapi.git
synced 2025-10-11 16:13:12 +00:00
45 lines
884 B
TypeScript
45 lines
884 B
TypeScript
import type { errors } from '@strapi/utils';
|
|
|
|
/**
|
|
* GET /users/me/ai-token - Get AI token for the current admin user
|
|
*/
|
|
export declare namespace GetAiToken {
|
|
export interface Request {
|
|
query: {};
|
|
body: {};
|
|
}
|
|
|
|
export interface Response {
|
|
data: {
|
|
token: string;
|
|
expiresAt?: string;
|
|
};
|
|
error?: errors.ApplicationError;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* GET /ai-usage - Get AI usage
|
|
*/
|
|
export declare namespace GetAiUsage {
|
|
export interface Request {
|
|
query: {};
|
|
body: {};
|
|
}
|
|
|
|
export interface Response {
|
|
cmsAiCreditsUsed: number;
|
|
subscription: {
|
|
subscriptionId: string;
|
|
planPriceId: string;
|
|
subscriptionStatus: string;
|
|
isActiveSubscription: boolean;
|
|
cmsAiEnabled: boolean;
|
|
cmsAiCreditsBase: number;
|
|
cmsAiCreditsMaxUsage: number;
|
|
currentTermStart: string;
|
|
currentTermEnd: string;
|
|
};
|
|
}
|
|
}
|