演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
86 lines
1.9 KiB
TypeScript
Generated
86 lines
1.9 KiB
TypeScript
Generated
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* ErrorResponse
|
|
*
|
|
* Documented non-2xx body emitted by ``register_external_error_handlers``.
|
|
*
|
|
* ``params`` and ``details`` appear only on the errors that set them. The schema
|
|
* stays open because ``HTTPException.data`` may carry extra keys.
|
|
*/
|
|
export const zErrorResponse = z.object({
|
|
code: z.string(),
|
|
details: z.record(z.string(), z.unknown()).optional(),
|
|
message: z.string(),
|
|
params: z.string().optional(),
|
|
status: z.int(),
|
|
})
|
|
|
|
/**
|
|
* APIBasedExtensionPayload
|
|
*/
|
|
export const zApiBasedExtensionPayload = z.object({
|
|
api_endpoint: z.string(),
|
|
api_key: z.string(),
|
|
name: z.string(),
|
|
})
|
|
|
|
/**
|
|
* APIBasedExtensionResponse
|
|
*/
|
|
export const zApiBasedExtensionResponse = z.object({
|
|
api_endpoint: z.string(),
|
|
api_key: z.string(),
|
|
created_at: z.int().nullish(),
|
|
id: z.string(),
|
|
name: z.string(),
|
|
})
|
|
|
|
/**
|
|
* APIBasedExtensionListResponse
|
|
*/
|
|
export const zApiBasedExtensionListResponse = z.array(zApiBasedExtensionResponse)
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetApiBasedExtensionResponse = zApiBasedExtensionListResponse
|
|
|
|
export const zPostApiBasedExtensionBody = zApiBasedExtensionPayload
|
|
|
|
/**
|
|
* Extension created successfully
|
|
*/
|
|
export const zPostApiBasedExtensionResponse = zApiBasedExtensionResponse
|
|
|
|
export const zDeleteApiBasedExtensionByIdPath = z.object({
|
|
id: z.uuid(),
|
|
})
|
|
|
|
/**
|
|
* Extension deleted successfully
|
|
*/
|
|
export const zDeleteApiBasedExtensionByIdResponse = z.void()
|
|
|
|
export const zGetApiBasedExtensionByIdPath = z.object({
|
|
id: z.uuid(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetApiBasedExtensionByIdResponse = zApiBasedExtensionResponse
|
|
|
|
export const zPostApiBasedExtensionByIdBody = zApiBasedExtensionPayload
|
|
|
|
export const zPostApiBasedExtensionByIdPath = z.object({
|
|
id: z.uuid(),
|
|
})
|
|
|
|
/**
|
|
* Extension updated successfully
|
|
*/
|
|
export const zPostApiBasedExtensionByIdResponse = zApiBasedExtensionResponse
|