mirror of
https://github.com/langgenius/dify.git
synced 2026-05-25 11:27:19 +08:00
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import { zPostTestRetrievalBody, zPostTestRetrievalResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Bedrock retrieval test (internal use only)
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Bedrock retrieval test (internal use only)\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postTestRetrieval',
|
|
path: '/test/retrieval',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostTestRetrievalBody }))
|
|
.output(zPostTestRetrievalResponse)
|
|
|
|
export const retrieval = {
|
|
post,
|
|
}
|
|
|
|
export const test = {
|
|
retrieval,
|
|
}
|
|
|
|
export const contract = {
|
|
test,
|
|
}
|