[PR #1338] [MERGED] feat: add authOptions to the API #1568

Closed
opened 2026-02-26 19:33:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1338
Author: @Mythie
Created: 9/10/2024
Status: Merged
Merged: 9/10/2024
Merged by: @Mythie

Base: mainHead: feat/add-auth-options-to-api


📝 Commits (1)

  • 581f849 feat: add authOptions to the API

📊 Changes

3 files changed (+95 additions, -2 deletions)

View changed files

📝 packages/api/v1/implementation.ts (+35 -2)
📝 packages/api/v1/schema.ts (+28 -0)
📝 packages/lib/server-only/recipient/update-recipient.ts (+32 -0)

📄 Description

Description

Add the authOptions property to the document and
recipient related API endpoints.

These were previously missing so the only way API
users could set the authOptions was via templates
and using the generateTemplate endpoint.

N/A

Changes Made

  • Added the appropriate properties to the API requests schemas
  • Updated the updateRecipient method to support authOptions

Summary by CodeRabbit

  • New Features

    • Enhanced API functionality for dynamic document settings and recipient data management.
    • Introduced authOptions in multiple mutation schemas for improved authorization control during document and recipient creation.
  • Bug Fixes

    • Added authorization checks in the updateRecipient function to ensure only authorized users can modify action-related settings.
  • Documentation

    • Updated schema definitions to include new authOptions fields for better clarity on authorization requirements.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1338 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 9/10/2024 **Status:** ✅ Merged **Merged:** 9/10/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/add-auth-options-to-api` --- ### 📝 Commits (1) - [`581f849`](https://github.com/documenso/documenso/commit/581f849136fb39ad09e5ef7ab2cd14517c56fad4) feat: add authOptions to the API ### 📊 Changes **3 files changed** (+95 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/v1/implementation.ts` (+35 -2) 📝 `packages/api/v1/schema.ts` (+28 -0) 📝 `packages/lib/server-only/recipient/update-recipient.ts` (+32 -0) </details> ### 📄 Description ## Description Add the authOptions property to the document and recipient related API endpoints. These were previously missing so the only way API users could set the authOptions was via templates and using the generateTemplate endpoint. ## Related Issue N/A ## Changes Made - Added the appropriate properties to the API requests schemas - Updated the `updateRecipient` method to support `authOptions` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced API functionality for dynamic document settings and recipient data management. - Introduced `authOptions` in multiple mutation schemas for improved authorization control during document and recipient creation. - **Bug Fixes** - Added authorization checks in the `updateRecipient` function to ensure only authorized users can modify action-related settings. - **Documentation** - Updated schema definitions to include new `authOptions` fields for better clarity on authorization requirements. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:33:49 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1568
No description provided.