mirror of
https://github.com/langgenius/dify.git
synced 2026-05-23 02:18:23 +08:00
61 lines
1.4 KiB
TypeScript
61 lines
1.4 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
|
|
*
|
|
* 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 get = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Check if activation token is valid\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: '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,
|
|
}
|