mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 21:01:18 -04:00
67 lines
1.4 KiB
TypeScript
67 lines
1.4 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* 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(),
|
|
})
|
|
|
|
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.string(),
|
|
})
|
|
|
|
/**
|
|
* Extension deleted successfully
|
|
*/
|
|
export const zDeleteApiBasedExtensionByIdResponse = z.record(z.string(), z.unknown())
|
|
|
|
export const zGetApiBasedExtensionByIdPath = z.object({
|
|
id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetApiBasedExtensionByIdResponse = zApiBasedExtensionResponse
|
|
|
|
export const zPostApiBasedExtensionByIdBody = zApiBasedExtensionPayload
|
|
|
|
export const zPostApiBasedExtensionByIdPath = z.object({
|
|
id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Extension updated successfully
|
|
*/
|
|
export const zPostApiBasedExtensionByIdResponse = zApiBasedExtensionResponse
|