SDK
SDK Reference
Complete reference for the TrustyGorilla SDK.
TrustyGorilla
The main client class.
new TrustyGorilla(options: ClientOptions)ClientOptions
| Property | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your API key |
baseUrl | string | No | Override API base URL |
timeout | number | No | Request timeout (ms) |
tg.verify(params)
Verify the trust level of a resource.
tg.verify(params: VerifyParams): Promise<VerifyResult>VerifyParams
| Property | Type | Required | Description |
|---|---|---|---|
resource | string | Yes | URL or identifier |
type | string | No | Resource type hint |
VerifyResult
| Property | Type | Description |
|---|---|---|
trusted | boolean | Whether the resource is trusted |
score | number | Trust score (0–100) |
reason | string | Reason if not trusted |