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

Function resolveWebhookProviderConfig

apps/sim/lib/webhooks/env-resolver.ts:38–44  ·  view source on GitHub ↗
(
  providerConfig: unknown,
  userId: string,
  workspaceId?: string
)

Source from the content-addressed store, hash-verified

36 * Resolves environment variable references inside a webhook provider config object.
37 */
38export async function resolveWebhookProviderConfig(
39 providerConfig: unknown,
40 userId: string,
41 workspaceId?: string
42): Promise<Record<string, unknown>> {
43 return resolveEnvVarsInObject(normalizeWebhookProviderConfig(providerConfig), userId, workspaceId)
44}
45
46/**
47 * Clones a webhook-like record with its provider config resolved for runtime use.

Callers 2

Calls 2

resolveEnvVarsInObjectFunction · 0.85

Tested by

no test coverage detected