Skip to content

Commit 0b8bdb2

Browse files
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 <noreply@anthropic.com>
1 parent 91eaffc commit 0b8bdb2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

raystack/frontier/v1beta1/frontier.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,11 @@ message DisableOrganizationResponse {}
17931793

17941794
message DeleteOrganizationRequest {
17951795
string id = 1;
1796+
// Set to true to confirm that any unused prepaid tokens on the
1797+
// organization's billing account may be forfeited by this delete.
1798+
// If the account has unused tokens and this is false, the request
1799+
// fails with a failed_precondition error listing the amount at stake.
1800+
bool acknowledge_token_forfeit = 2;
17961801
}
17971802

17981803
message DeleteOrganizationResponse {}

0 commit comments

Comments
 (0)