basalt / webhooks/src / WebhookTenantRequiredError
Class: WebhookTenantRequiredError
Defined in: webhooks/src/index.ts:59
Thrown when a webhook management call runs without a tenant (no ambient tenant, no explicit tenantId) in a multi-tenant app and without the explicit { system: true } opt-in — it would otherwise create a global endpoint that receives every tenant's events, or read/delete every tenant's endpoints.
Extends
Error
Constructors
Constructor
> new WebhookTenantRequiredError(operation): WebhookTenantRequiredError
Defined in: webhooks/src/index.ts:61
Parameters
operation
string
Returns
WebhookTenantRequiredError
Overrides
Error.constructor
Properties
code
> readonly code: "WEBHOOKS_TENANT_REQUIRED" = 'WEBHOOKS_TENANT_REQUIRED'
Defined in: webhooks/src/index.ts:60