Type Alias: PermissionCheckedFetch
PermissionCheckedFetch = (
url,init?) =>Promise<{ok:boolean;status:number;json:Promise<unknown>;text:Promise<string>; }>
Defined in: packages/plugin-sdk/src/backend.ts:57
fetch guarded by the plugin's network:<host> permissions. Requests to
non-granted hosts reject. Secrets from other providers are never injected.
Parameters
url
string
init?
body?
string
headers?
Record<string, string>
method?
string
signal?
AbortSignal
Returns
Promise<{ ok: boolean; status: number; json: Promise<unknown>; text: Promise<string>; }>