This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
import z from 'zod';
|
||||
|
||||
import { type FlowGramAPIDefine } from '@api/type';
|
||||
import { FlowGramAPIMethod, FlowGramAPIModule, FlowGramAPIName } from '@api/constant';
|
||||
|
||||
export interface ServerInfoInput {}
|
||||
|
||||
export interface ServerInfoOutput {
|
||||
name: string;
|
||||
title: string;
|
||||
description: string;
|
||||
runtime: string;
|
||||
version: string;
|
||||
time: string;
|
||||
}
|
||||
|
||||
export const ServerInfoDefine: FlowGramAPIDefine = {
|
||||
name: FlowGramAPIName.ServerInfo,
|
||||
method: FlowGramAPIMethod.GET,
|
||||
path: '/info',
|
||||
module: FlowGramAPIModule.Info,
|
||||
schema: {
|
||||
input: z.undefined(),
|
||||
output: z.object({
|
||||
name: z.string(),
|
||||
runtime: z.string(),
|
||||
version: z.string(),
|
||||
time: z.string(),
|
||||
}),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user