mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 15:07:33 +08:00
add a special token type for MCP
This commit is contained in:
@@ -2,8 +2,19 @@ import type { ApplicationCloudSetting } from '@/core/setting.ts';
|
||||
|
||||
import type { UserBasicInfo } from './user.ts';
|
||||
|
||||
export const TOKEN_TYPE_MCP: number = 5;
|
||||
|
||||
export const TOKEN_CLI_USER_AGENT: string = 'ezbookkeeping Cli';
|
||||
|
||||
export interface TokenGenerateMCPRequest {
|
||||
readonly password: string;
|
||||
}
|
||||
|
||||
export interface TokenGenerateMCPResponse {
|
||||
readonly token: string;
|
||||
readonly mcpUrl: string;
|
||||
}
|
||||
|
||||
export interface TokenRefreshResponse {
|
||||
readonly newToken?: string;
|
||||
readonly oldTokenId?: string;
|
||||
|
||||
Reference in New Issue
Block a user