@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 19 lines 602 Bytes
Raw
1 import * as firestore from "@distilled.cloud/gcp/firestore_v1";
2 import * as Layer from "effect/Layer";
3 import { DeleteDocument } from "./DeleteDocument.ts";
4 import { makeDocumentHttpBinding } from "./DocumentHttp.ts";
5
6 /**
7 * HTTP implementation of {@link DeleteDocument}.
8 *
9 * @layer
10 * @provides GCP.Firestore.DeleteDocument
11 */
12 export const DeleteDocumentHttp = Layer.effect(
13 DeleteDocument,
14 makeDocumentHttpBinding({
15 tag: "GCP.Firestore.DeleteDocument",
16 iam: { role: "roles/datastore.user", scopeByCondition: true },
17 operation: firestore.deleteProjectsDatabasesDocuments,
18 }),
19 );