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

Function fetchPersonalEnvironment

apps/sim/lib/environment/api.ts:14–24  ·  view source on GitHub ↗
(
  signal?: AbortSignal
)

Source from the content-addressed store, hash-verified

12export type WorkspaceEnvironmentData = z.output<typeof workspaceEnvironmentDataSchema>
13
14export async function fetchPersonalEnvironment(
15 signal?: AbortSignal
16): Promise<Record<string, EnvironmentVariable>> {
17 const { data } = await requestJson(getPersonalEnvironmentContract, { signal })
18
19 if (data && typeof data === 'object') {
20 return data
21 }
22
23 return {}
24}
25
26export async function fetchWorkspaceEnvironment(
27 workspaceId: string,

Callers 1

usePersonalEnvironmentFunction · 0.90

Calls 1

requestJsonFunction · 0.90

Tested by

no test coverage detected