Перейти к основному содержимому

Interface: KernelNetworkApi

Defined in: packages/plugin-sdk/src/kernel/authoring.ts:382

Methods​

fetch()​

fetch(url, options?): Promise<{ bodyText: string; headers: Record<string, string>; status: number; }>

Defined in: packages/plugin-sdk/src/kernel/authoring.ts:389

Allowlisted outbound fetch routed through the host (rev4 §M2). With connectionId the request is signed server-side with the stored OAuth token (rev4 §K5) — the sandbox never sees the token; authSecretRef and connectionId are mutually exclusive.

Parameters​

url​

string

options?​
authSecretRef?​

string

body?​

string

connectionId?​

string

headers?​

Record<string, string>

method?​

string

Returns​

Promise<{ bodyText: string; headers: Record<string, string>; status: number; }>