Files
zeekay b2083a6610 Say Hanzo eSign wherever the product names itself
Emails, the signing page's title, the sealed PDF's reason, the sign-in
refusal and the dialogs still said Hanzo Sign. The catalogs change with
the strings, message for message, so every translation keeps its id.
2026-10-20 13:12:22 -07:00

46 lines
1.1 KiB
TypeScript

import { generateOpenApi } from '@ts-rest/open-api';
import { NEXT_PUBLIC_WEBAPP_URL } from '@hanzo/esign-lib/constants/app';
import { env } from '@hanzo/esign-lib/utils/env';
import { ApiContractV1 } from './contract';
const appName = env('NEXT_PUBLIC_APP_NAME') || 'Hanzo eSign';
export const OpenAPIV1 = Object.assign(
generateOpenApi(
ApiContractV1,
{
info: {
title: `${appName} API`,
version: '1.0.0',
description: `API V1 is deprecated, but will continue to be supported. For more details, see https://docs.esign.hanzo.ai/developers/public-api. \n\nThe ${appName} API for retrieving, creating, updating and deleting documents.`,
},
servers: [
{
url: NEXT_PUBLIC_WEBAPP_URL(),
},
],
},
{
setOperationId: true,
},
),
{
components: {
securitySchemes: {
authorization: {
type: 'apiKey',
in: 'header',
name: 'Authorization',
},
},
},
security: [
{
authorization: [],
},
],
},
);