MCPcopy
hub / github.com/simstudioai/sim / temporalRequestHeaders

Function temporalRequestHeaders

apps/sim/tools/temporal/utils.ts:99–106  ·  view source on GitHub ↗
(params: { apiKey?: string })

Source from the content-addressed store, hash-verified

97 * always carry full `{metadata, data}` payload objects that {@link decodePayload} understands.
98 */
99export function temporalRequestHeaders(params: { apiKey?: string }): Record<string, string> {
100 const headers: Record<string, string> = {
101 'Content-Type': 'application/json',
102 Accept: 'application/json+no-payload-shorthand',
103 }
104 if (params.apiKey) headers.Authorization = `Bearer ${params.apiKey.trim()}`
105 return headers
106}
107
108/** Encodes a single JSON value as a Temporal `json/plain` payload. */
109export function encodePayload(value: unknown): TemporalPayload {

Callers 15

signal_workflow.tsFile · 0.90
list_schedules.tsFile · 0.90
list_workflows.tsFile · 0.90
delete_schedule.tsFile · 0.90
cancel_workflow.tsFile · 0.90
reset_workflow.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected