* Builds the auth + version headers shared by every Grain API request.
(accessToken: string)
| 152 | * Builds the auth + version headers shared by every Grain API request. |
| 153 | */ |
| 154 | function 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 |
no outgoing calls
no test coverage detected