MCPcopy Create free account
hub / github.com/OperationT00/T-Code / resolveApproval

Method resolveApproval

clients/t-code-cli/src/runtime-client.ts:70–75  ·  view source on GitHub ↗
(id: string, decision: "APPROVED" | "REJECTED")

Source from the content-addressed store, hash-verified

68 }
69
70 async resolveApproval(id: string, decision: "APPROVED" | "REJECTED"): Promise<void> {
71 await this.requestJson(`/v1/approvals/${id}/decision`, {
72 method: "POST",
73 body: JSON.stringify({ decision }),
74 });
75 }
76
77 private async requestJson(path: string, init: RequestInit): Promise<Record<string, unknown>> {
78 const response = await fetch(`${this.baseUrl}${path}`, {

Callers 2

reviewPendingApprovalFunction · 0.80

Calls 1

requestJsonMethod · 0.95

Tested by

no test coverage detected