New:Socket for Asana Is Now Available.Learn more
Sign In

@trigguard/provider-sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trigguard/provider-sdk

Public contract for TrigGuard providers: map vendor payloads to ExecutionRequest (no HTTP, no policy)

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@trigguard/provider-sdk

Public API for building TrigGuard providers — adapters that map a vendor payload (webhook body, admission review, payment object) to a canonical ExecutionRequest for POST /execute.

This package has no HTTP client and no policy logic. Execution and receipt verification stay in @trigguard/execution-sdk; the gateway evaluates policy.

Install

npm install @trigguard/provider-sdk

Usage

import {
  defineProvider,
  type ExecutionRequest,
} from "@trigguard/provider-sdk";

export const acmeProvider = defineProvider({
  id: "acme",
  name: "Acme API",
  defaultSurface: "dataExport",
  mapAction(input: unknown): ExecutionRequest {
    const o = input as { userId?: string };
    return {
      surface: "dataExport",
      actorId: o.userId ?? "unknown",
      context: { source: "acme" },
    };
  },
});

Register with ProviderRegistry (also exported from this package) or publish as a standalone npm module (@trigguard/provider-acme).

  • packages/trigguard-providers — first-party adapters (github, stripe, …)
  • docs/PROTECTION_MODULES.md — copy-paste “protection modules” and examples index

Keywords

trigguard

FAQs

Package last updated on 23 Aug 2026

Related posts