dify/packages/contracts/generated/api/console/explore/zod.gen.ts
Asuka Minato 6c0cce4b7f
chore: update to openapi v3 by change dep (#37316)
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-12 07:52:19 +00:00

63 lines
1.4 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* RecommendedAppInfoResponse
*/
export const zRecommendedAppInfoResponse = z.object({
icon: z.string().nullish(),
icon_background: z.string().nullish(),
icon_type: z.string().nullish(),
id: z.string(),
mode: z.string().nullish(),
name: z.string().nullish(),
})
/**
* RecommendedAppResponse
*/
export const zRecommendedAppResponse = z.object({
app: zRecommendedAppInfoResponse.nullish(),
app_id: z.string(),
can_trial: z.boolean().nullish(),
categories: z.array(z.string()).optional(),
copyright: z.string().nullish(),
custom_disclaimer: z.string().nullish(),
description: z.string().nullish(),
is_listed: z.boolean().nullish(),
position: z.int().nullish(),
privacy_policy: z.string().nullish(),
})
/**
* RecommendedAppListResponse
*/
export const zRecommendedAppListResponse = z.object({
categories: z.array(z.string()),
recommended_apps: z.array(zRecommendedAppResponse),
})
export const zGetExploreAppsQuery = z.object({
language: z.string().optional(),
})
/**
* Success
*/
export const zGetExploreAppsResponse = zRecommendedAppListResponse
export const zGetExploreAppsByAppIdPath = z.object({
app_id: z.string(),
})
/**
* Success
*/
export const zGetExploreAppsByAppIdResponse = z.record(z.string(), z.unknown())
/**
* Success
*/
export const zGetExploreBannersResponse = z.record(z.string(), z.unknown())