mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 03:01:01 -04:00
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import {
|
|
zGetActivateCheckQuery,
|
|
zGetActivateCheckResponse,
|
|
zPostActivateBody,
|
|
zPostActivateResponse,
|
|
} from './zod.gen'
|
|
|
|
/**
|
|
* Check if activation token is valid
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description: 'Check if activation token is valid',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getActivateCheck',
|
|
path: '/activate/check',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetActivateCheckQuery }))
|
|
.output(zGetActivateCheckResponse)
|
|
|
|
export const check = {
|
|
get,
|
|
}
|
|
|
|
/**
|
|
* Activate account with invitation token
|
|
*/
|
|
export const post = oc
|
|
.route({
|
|
description: 'Activate account with invitation token',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postActivate',
|
|
path: '/activate',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostActivateBody }))
|
|
.output(zPostActivateResponse)
|
|
|
|
export const activate = {
|
|
post,
|
|
check,
|
|
}
|
|
|
|
export const contract = {
|
|
activate,
|
|
}
|