mirror of
https://github.com/langgenius/dify.git
synced 2026-07-24 13:08:34 +08:00
Co-authored-by: hjlarry <hjlarry@163.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
56 lines
1.3 KiB
TypeScript
56 lines
1.3 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
import {
|
|
zGetOnboardingStepByStepTourStateResponse,
|
|
zPatchOnboardingStepByStepTourStateBody,
|
|
zPatchOnboardingStepByStepTourStateResponse,
|
|
} from './zod.gen'
|
|
|
|
/**
|
|
* Get account-level Step-by-step Tour state
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description: 'Get account-level Step-by-step Tour state',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getOnboardingStepByStepTourState',
|
|
path: '/onboarding/step-by-step-tour/state',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetOnboardingStepByStepTourStateResponse)
|
|
|
|
/**
|
|
* Update account-level Step-by-step Tour state
|
|
*/
|
|
export const patch = oc
|
|
.route({
|
|
description: 'Update account-level Step-by-step Tour state',
|
|
inputStructure: 'detailed',
|
|
method: 'PATCH',
|
|
operationId: 'patchOnboardingStepByStepTourState',
|
|
path: '/onboarding/step-by-step-tour/state',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPatchOnboardingStepByStepTourStateBody }))
|
|
.output(zPatchOnboardingStepByStepTourStateResponse)
|
|
|
|
export const state = {
|
|
get,
|
|
patch,
|
|
}
|
|
|
|
export const stepByStepTour = {
|
|
state,
|
|
}
|
|
|
|
export const onboarding = {
|
|
stepByStepTour,
|
|
}
|
|
|
|
export const contract = {
|
|
onboarding,
|
|
}
|