@bondi-labs/integration-sdk - v0.0.2
    Preparing search index...

    Class BondiGuard

    NestJS guard that verifies inbound HMAC-signed requests from Bondi. Apply with @UseGuards(BondiGuard) on any controller method decorated with BondiAction.

    Critical setup requirement: the NestJS app must be created with rawBody: true, e.g. NestFactory.create(AppModule, { rawBody: true }), so the guard can verify against the original byte payload (re-serializing JSON breaks signatures).

    import { BondiGuard, BondiAction } from "@bondi-labs/integration-sdk/nestjs";

    @Controller("contacts")
    export class ContactsController {
    @UseGuards(BondiGuard)
    @BondiAction({ name: "createContact", label: "Create Contact" })
    @Post()
    async create(@Body() dto: unknown) { ... }
    }

    Implements

    • CanActivate
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • context: ExecutionContext

        Current execution context. Provides access to details about the current request pipeline.

      Returns boolean

      Value indicating whether or not the current request is allowed to proceed.