MCPcopy Index your code
hub / github.com/simstudioai/sim / assertSafeSapExternalUrl

Function assertSafeSapExternalUrl

apps/sim/lib/api/contracts/tools/sap.ts:130–134  ·  view source on GitHub ↗
(rawUrl: string, label: string)

Source from the content-addressed store, hash-verified

128}
129
130export function assertSafeSapExternalUrl(rawUrl: string, label: string): URL {
131 const result = checkSapExternalUrlSafety(rawUrl, label)
132 if (!result.ok) throw new Error(result.message)
133 return result.url
134}
135
136export const sapS4HanaProxyBodySchema = z
137 .object({

Callers 2

fetchAccessTokenFunction · 0.90
resolveHostFunction · 0.90

Calls 1

Tested by

no test coverage detected