Plugin types
Zod schemas
Catalog helpers
Errors
Non-2xx responses throwCorsairApiError:
| Field | Meaning |
|---|---|
status | HTTP status |
code | Machine-readable code |
message | Human-readable message |
details | Optional validation details |
Connect links
tenant.connectLink.create() returns a ConnectLinkCreated object:
| Field | Meaning |
|---|---|
url | Self-service connect page — send this to the user |
token | Signed token embedded in the URL |
expiresAt | ISO timestamp when the link expires |
ttlMs | TTL in milliseconds (default 7 days) |
run() results
tenant.run() returns { success: true, data } or { success: false, signInLink } when auth is missing — it does not throw for missing credentials. signInLink points to the same connect page as connectLink.create().