chore: deprecate endpoints (#3022)

This commit is contained in:
David Nguyen
2026-07-23 12:57:09 +09:00
committed by GitHub
parent 7f85388eb7
commit 26f0c4c5b7
37 changed files with 451 additions and 43 deletions
@@ -12,8 +12,10 @@ export const createAttachmentRoute = authenticatedProcedure
method: 'POST',
path: '/document/attachment/create',
summary: 'Create attachment',
description: 'Create a new attachment for a document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a new attachment for a document',
tags: ['Document'],
deprecated: true,
},
})
.input(ZCreateAttachmentRequestSchema)
@@ -10,8 +10,10 @@ export const deleteAttachmentRoute = authenticatedProcedure
method: 'POST',
path: '/document/attachment/delete',
summary: 'Delete attachment',
description: 'Delete an attachment from a document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Delete an attachment from a document',
tags: ['Document'],
deprecated: true,
},
})
.input(ZDeleteAttachmentRequestSchema)
@@ -12,8 +12,10 @@ export const findAttachmentsRoute = authenticatedProcedure
method: 'GET',
path: '/document/attachment',
summary: 'Find attachments',
description: 'Find all attachments for a document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Find all attachments for a document',
tags: ['Document'],
deprecated: true,
},
})
.input(ZFindAttachmentsRequestSchema)
@@ -10,8 +10,10 @@ export const updateAttachmentRoute = authenticatedProcedure
method: 'POST',
path: '/document/attachment/update',
summary: 'Update attachment',
description: 'Update an existing attachment',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update an existing attachment',
tags: ['Document'],
deprecated: true,
},
})
.input(ZUpdateAttachmentRequestSchema)
@@ -27,7 +27,7 @@ export const createDocumentTemporaryMeta: TrpcRouteMeta = {
path: '/document/create/beta',
summary: 'Create document',
description:
'You will need to upload the PDF to the provided URL returned. Note: Once V2 API is released, this will be removed since we will allow direct uploads, instead of using an upload URL.',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. You will need to upload the PDF to the provided URL returned. This endpoint will be removed since we will allow direct uploads, instead of using an upload URL.',
tags: ['Document'],
deprecated: true,
},
@@ -25,8 +25,10 @@ export const createDocumentMeta: TrpcRouteMeta = {
path: '/document/create',
contentTypes: ['multipart/form-data'],
summary: 'Create document',
description: 'Create a document using form data.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document'],
deprecated: true,
},
};
@@ -8,7 +8,10 @@ export const deleteDocumentMeta: TrpcRouteMeta = {
method: 'POST',
path: '/document/delete',
summary: 'Delete document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document'],
deprecated: true,
},
};
@@ -19,8 +19,10 @@ export const distributeDocumentMeta: TrpcRouteMeta = {
method: 'POST',
path: '/document/distribute',
summary: 'Distribute document',
description: 'Send the document out to recipients based on your distribution method',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Send the document out to recipients based on your distribution method',
tags: ['Document'],
deprecated: true,
},
};
@@ -7,8 +7,10 @@ export const downloadDocumentMeta: TrpcRouteMeta = {
method: 'GET',
path: '/document/{documentId}/download-beta',
summary: 'Download document (beta)',
description: 'Get a pre-signed download URL for the original or signed version of a document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Get a pre-signed download URL for the original or signed version of a document',
tags: ['Document'],
deprecated: true,
},
};
@@ -7,7 +7,10 @@ export const downloadDocumentMeta: TrpcRouteMeta = {
method: 'GET',
path: '/document/{documentId}/download',
summary: 'Download document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document'],
deprecated: true,
responseHeaders: z.object({
'Content-Type': z.literal('application/pdf'),
}),
@@ -7,7 +7,10 @@ export const duplicateDocumentMeta: TrpcRouteMeta = {
method: 'POST',
path: '/document/duplicate',
summary: 'Duplicate document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document'],
deprecated: true,
},
};
@@ -10,8 +10,10 @@ export const ZFindDocumentsMeta: TrpcRouteMeta = {
method: 'GET',
path: '/document',
summary: 'Find documents',
description: 'Find documents based on a search criteria',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Find documents based on a search criteria',
tags: ['Document'],
deprecated: true,
},
};
@@ -8,8 +8,10 @@ export const getDocumentMeta: TrpcRouteMeta = {
method: 'GET',
path: '/document/{documentId}',
summary: 'Get document',
description: 'Returns a document given an ID',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Returns a document given an ID',
tags: ['Document'],
deprecated: true,
},
};
@@ -8,8 +8,10 @@ export const getDocumentsByIdsMeta: TrpcRouteMeta = {
method: 'POST',
path: '/document/get-many',
summary: 'Get multiple documents',
description: 'Retrieve multiple documents by their IDs',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Retrieve multiple documents by their IDs',
tags: ['Document'],
deprecated: true,
},
};
@@ -9,8 +9,9 @@ export const redistributeDocumentMeta: TrpcRouteMeta = {
path: '/document/redistribute',
summary: 'Redistribute document',
description:
'Redistribute the document to the provided recipients who have not actioned the document. Will use the distribution method set in the document',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Redistribute the document to the provided recipients who have not actioned the document. Will use the distribution method set in the document',
tags: ['Document'],
deprecated: true,
},
};
@@ -13,7 +13,10 @@ export const updateDocumentMeta: TrpcRouteMeta = {
method: 'POST',
path: '/document/update',
summary: 'Update document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document'],
deprecated: true,
},
};
+34 -10
View File
@@ -51,8 +51,9 @@ export const fieldRouter = router({
path: '/document/field/{fieldId}',
summary: 'Get document field',
description:
'Returns a single field. If you want to retrieve all the fields for a document, use the "Get Document" endpoint.',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Returns a single field. If you want to retrieve all the fields for a document, use the "Get Document" endpoint.',
tags: ['Document Fields'],
deprecated: true,
},
})
.input(ZGetFieldRequestSchema)
@@ -84,8 +85,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/document/field/create',
summary: 'Create document field',
description: 'Create a single field for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a single field for a document.',
tags: ['Document Fields'],
deprecated: true,
},
})
.input(ZCreateDocumentFieldRequestSchema)
@@ -130,8 +133,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/document/field/create-many',
summary: 'Create document fields',
description: 'Create multiple fields for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create multiple fields for a document.',
tags: ['Document Fields'],
deprecated: true,
},
})
.input(ZCreateDocumentFieldsRequestSchema)
@@ -172,8 +177,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/document/field/update',
summary: 'Update document field',
description: 'Update a single field for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update a single field for a document.',
tags: ['Document Fields'],
deprecated: true,
},
})
.input(ZUpdateDocumentFieldRequestSchema)
@@ -212,8 +219,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/document/field/update-many',
summary: 'Update document fields',
description: 'Update multiple fields for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update multiple fields for a document.',
tags: ['Document Fields'],
deprecated: true,
},
})
.input(ZUpdateDocumentFieldsRequestSchema)
@@ -250,7 +259,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/document/field/delete',
summary: 'Delete document field',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document Fields'],
deprecated: true,
},
})
.input(ZDeleteDocumentFieldRequestSchema)
@@ -323,8 +335,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/template/field/create',
summary: 'Create template field',
description: 'Create a single field for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a single field for a template.',
tags: ['Template Fields'],
deprecated: true,
},
})
.input(ZCreateTemplateFieldRequestSchema)
@@ -370,8 +384,9 @@ export const fieldRouter = router({
path: '/template/field/{fieldId}',
summary: 'Get template field',
description:
'Returns a single field. If you want to retrieve all the fields for a template, use the "Get Template" endpoint.',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Returns a single field. If you want to retrieve all the fields for a template, use the "Get Template" endpoint.',
tags: ['Template Fields'],
deprecated: true,
},
})
.input(ZGetFieldRequestSchema)
@@ -403,8 +418,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/template/field/create-many',
summary: 'Create template fields',
description: 'Create multiple fields for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create multiple fields for a template.',
tags: ['Template Fields'],
deprecated: true,
},
})
.input(ZCreateTemplateFieldsRequestSchema)
@@ -445,8 +462,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/template/field/update',
summary: 'Update template field',
description: 'Update a single field for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update a single field for a template.',
tags: ['Template Fields'],
deprecated: true,
},
})
.input(ZUpdateTemplateFieldRequestSchema)
@@ -485,8 +504,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/template/field/update-many',
summary: 'Update template fields',
description: 'Update multiple fields for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update multiple fields for a template.',
tags: ['Template Fields'],
deprecated: true,
},
})
.input(ZUpdateTemplateFieldsRequestSchema)
@@ -523,7 +544,10 @@ export const fieldRouter = router({
method: 'POST',
path: '/template/field/delete',
summary: 'Delete template field',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template Fields'],
deprecated: true,
},
})
.input(ZDeleteTemplateFieldRequestSchema)
+34 -10
View File
@@ -60,8 +60,9 @@ export const recipientRouter = router({
path: '/document/recipient/{recipientId}',
summary: 'Get document recipient',
description:
'Returns a single recipient. If you want to retrieve all the recipients for a document, use the "Get Document" endpoint.',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Returns a single recipient. If you want to retrieve all the recipients for a document, use the "Get Document" endpoint.',
tags: ['Document Recipients'],
deprecated: true,
},
})
.input(ZGetRecipientRequestSchema)
@@ -93,8 +94,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/document/recipient/create',
summary: 'Create document recipient',
description: 'Create a single recipient for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a single recipient for a document.',
tags: ['Document Recipients'],
deprecated: true,
},
})
.input(ZCreateDocumentRecipientRequestSchema)
@@ -132,8 +135,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/document/recipient/create-many',
summary: 'Create document recipients',
description: 'Create multiple recipients for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create multiple recipients for a document.',
tags: ['Document Recipients'],
deprecated: true,
},
})
.input(ZCreateDocumentRecipientsRequestSchema)
@@ -169,8 +174,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/document/recipient/update',
summary: 'Update document recipient',
description: 'Update a single recipient for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update a single recipient for a document.',
tags: ['Document Recipients'],
deprecated: true,
},
})
.input(ZUpdateDocumentRecipientRequestSchema)
@@ -208,8 +215,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/document/recipient/update-many',
summary: 'Update document recipients',
description: 'Update multiple recipients for a document.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update multiple recipients for a document.',
tags: ['Document Recipients'],
deprecated: true,
},
})
.input(ZUpdateDocumentRecipientsRequestSchema)
@@ -245,7 +254,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/document/recipient/delete',
summary: 'Delete document recipient',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Document Recipients'],
deprecated: true,
},
})
.input(ZDeleteDocumentRecipientRequestSchema)
@@ -315,8 +327,9 @@ export const recipientRouter = router({
path: '/template/recipient/{recipientId}',
summary: 'Get template recipient',
description:
'Returns a single recipient. If you want to retrieve all the recipients for a template, use the "Get Template" endpoint.',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Returns a single recipient. If you want to retrieve all the recipients for a template, use the "Get Template" endpoint.',
tags: ['Template Recipients'],
deprecated: true,
},
})
.input(ZGetRecipientRequestSchema)
@@ -348,8 +361,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/template/recipient/create',
summary: 'Create template recipient',
description: 'Create a single recipient for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a single recipient for a template.',
tags: ['Template Recipients'],
deprecated: true,
},
})
.input(ZCreateTemplateRecipientRequestSchema)
@@ -387,8 +402,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/template/recipient/create-many',
summary: 'Create template recipients',
description: 'Create multiple recipients for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create multiple recipients for a template.',
tags: ['Template Recipients'],
deprecated: true,
},
})
.input(ZCreateTemplateRecipientsRequestSchema)
@@ -424,8 +441,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/template/recipient/update',
summary: 'Update template recipient',
description: 'Update a single recipient for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update a single recipient for a template.',
tags: ['Template Recipients'],
deprecated: true,
},
})
.input(ZUpdateTemplateRecipientRequestSchema)
@@ -463,8 +482,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/template/recipient/update-many',
summary: 'Update template recipients',
description: 'Update multiple recipients for a template.',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Update multiple recipients for a template.',
tags: ['Template Recipients'],
deprecated: true,
},
})
.input(ZUpdateTemplateRecipientsRequestSchema)
@@ -500,7 +521,10 @@ export const recipientRouter = router({
method: 'POST',
path: '/template/recipient/delete',
summary: 'Delete template recipient',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template Recipients'],
deprecated: true,
},
})
.input(ZDeleteTemplateRecipientRequestSchema)
@@ -8,8 +8,10 @@ export const getTemplatesByIdsMeta: TrpcRouteMeta = {
method: 'POST',
path: '/template/get-many',
summary: 'Get multiple templates',
description: 'Retrieve multiple templates by their IDs',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Retrieve multiple templates by their IDs',
tags: ['Template'],
deprecated: true,
},
};
+32 -7
View File
@@ -72,8 +72,10 @@ export const templateRouter = router({
method: 'GET',
path: '/template',
summary: 'Find templates',
description: 'Find templates based on a search criteria',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Find templates based on a search criteria',
tags: ['Template'],
deprecated: true,
},
})
.input(ZFindTemplatesRequestSchema)
@@ -201,7 +203,10 @@ export const templateRouter = router({
method: 'GET',
path: '/template/{templateId}',
summary: 'Get template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template'],
deprecated: true,
},
})
.input(ZGetTemplateByIdRequestSchema)
@@ -245,8 +250,10 @@ export const templateRouter = router({
path: '/template/create',
contentTypes: ['multipart/form-data'],
summary: 'Create template',
description: 'Create a new template',
description:
'Create a new template. Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template'],
deprecated: true,
},
})
.input(ZCreateTemplateMutationSchema)
@@ -334,8 +341,9 @@ export const templateRouter = router({
path: '/template/create/beta',
summary: 'Create template',
description:
'You will need to upload the PDF to the provided URL returned. Note: Once V2 API is released, this will be removed since we will allow direct uploads, instead of using an upload URL.',
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. You will need to upload the PDF to the provided URL returned. Note: Once V2 API is released, this will be removed since we will allow direct uploads, instead of using an upload URL.',
tags: ['Template'],
deprecated: true,
},
})
.input(ZCreateTemplateV2RequestSchema)
@@ -418,7 +426,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/update',
summary: 'Update template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template'],
deprecated: true,
},
})
.input(ZUpdateTemplateRequestSchema)
@@ -461,7 +472,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/duplicate',
summary: 'Duplicate template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template'],
deprecated: true,
},
})
.input(ZDuplicateTemplateMutationSchema)
@@ -497,7 +511,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/delete',
summary: 'Delete template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.',
tags: ['Template'],
deprecated: true,
},
})
.input(ZDeleteTemplateMutationSchema)
@@ -534,8 +551,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/use',
summary: 'Use template',
description: 'Use the template to create a document',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Use the template to create a document',
tags: ['Template'],
deprecated: true,
},
})
.input(ZCreateDocumentFromTemplateRequestSchema)
@@ -687,8 +706,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/direct/create',
summary: 'Create direct link',
description: 'Create a direct link for a template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a direct link for a template',
tags: ['Template'],
deprecated: true,
},
})
.input(ZCreateTemplateDirectLinkRequestSchema)
@@ -743,8 +764,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/direct/delete',
summary: 'Delete direct link',
description: 'Delete a direct link for a template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Delete a direct link for a template',
tags: ['Template'],
deprecated: true,
},
})
.input(ZDeleteTemplateDirectLinkRequestSchema)
@@ -775,8 +798,10 @@ export const templateRouter = router({
method: 'POST',
path: '/template/direct/toggle',
summary: 'Toggle direct link',
description: 'Enable or disable a direct link for a template',
description:
'Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Enable or disable a direct link for a template',
tags: ['Template'],
deprecated: true,
},
})
.input(ZToggleTemplateDirectLinkRequestSchema)