Files
bytedance--flowgram.ai/packages/runtime/interface/src/api/server-info/index.ts
T
wehub-resource-sync 0232b4e2bb
CI / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:09:51 +08:00

37 lines
800 B
TypeScript

/**
* 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(),
}),
},
};