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

Function grainHeaders

apps/sim/connectors/grain/grain.ts:154–160  ·  view source on GitHub ↗

* Builds the auth + version headers shared by every Grain API request.

(accessToken: string)

Source from the content-addressed store, hash-verified

152 * Builds the auth + version headers shared by every Grain API request.
153 */
154function grainHeaders(accessToken: string): Record<string, string> {
155 return {
156 'Content-Type': 'application/json',
157 Authorization: `Bearer ${accessToken}`,
158 'Public-Api-Version': GRAIN_API_VERSION,
159 }
160}
161
162/**
163 * Resolves the recording's unique identifier. The v2 Public API returns the recording

Callers 3

fetchRecordingFunction · 0.85
fetchTranscriptFunction · 0.85
grain.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected