From b037da5a1eb0e8123c811ec3b1e1721458d486e5 Mon Sep 17 00:00:00 2001 From: Abhishek Sah Date: Wed, 5 Aug 2026 17:40:20 +0530 Subject: [PATCH] feat(frontier): add acknowledge_token_forfeit to DeleteOrganizationRequest Deleting an organization can forfeit unused prepaid tokens on its billing account. The server needs the caller's consent inside the request to enforce this, so add a bool flag. When the account has unused tokens and the flag is not set, the delete fails with a failed_precondition error naming the amount at stake. Co-Authored-By: Claude Fable 5 --- raystack/frontier/v1beta1/frontier.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index 89b6e095..cb1c8a49 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -1744,6 +1744,11 @@ message DisableOrganizationResponse {} message DeleteOrganizationRequest { string id = 1; + // Set to true to confirm that any unused prepaid tokens on the + // organization's billing account may be forfeited by this delete. + // If the account has unused tokens and this is false, the request + // fails with a failed_precondition error listing the amount at stake. + bool acknowledge_token_forfeit = 2; } message DeleteOrganizationResponse {}