Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.0 KB
Raw Blame
// This file is auto-generated by @hey-api/openapi-ts

import { oc } from '@orpc/contract'
import * as z from 'zod'
import {
  zAccountBannedError,
  zAccountInFreezeError,
  zEmailDomainSuspendedError,
  zPasswordResetRateLimitExceededError,
} from './zod.gen.ts'
import { zPostResetPasswordBody, zPostResetPasswordResponse } from './zod.gen.ts'

export const post = oc
  .route({
    inputStructure: 'detailed',
    method: 'POST',
    operationId: 'postResetPassword',
    path: '/reset-password',
    tags: ['console'],
  })
  .input(z.object({ body: zPostResetPasswordBody }))
  .output(zPostResetPasswordResponse)
  .errors({
    account_banned: { status: 400, data: zAccountBannedError },
    account_in_freeze: { status: 400, data: zAccountInFreezeError },
    email_domain_suspended: { status: 400, data: zEmailDomainSuspendedError },
    password_reset_rate_limit_exceeded: { status: 429, data: zPasswordResetRateLimitExceededError },
  })

export const resetPassword = {
  post,
}

export const contract = {
  resetPassword,
}