import { GetWebhookLogResponse } from "livepeer/models/operations";
let value: GetWebhookLogResponse = {
contentType: "<value>",
statusCode: 302,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
webhookLog: {
id: "de7818e7-610a-4057-8f6f-b785dc1e6f88",
webhookId: "de7818e7-610a-4057-8f6f-b785dc1e6f88",
event: "stream.started",
createdAt: 1587667174725,
duration: 0.5,
success: true,
request: {
url: "https://my-service.com/webhook",
method: "POST",
headers: {
"User-Agent": "livepeer.studio",
},
body: "{\"event\": \"stream.started\"}",
},
},
error: {
errors: [
"[\"id not provided\",\"Account not found\"]",
],
},
};
Field |
Type |
Required |
Description |
contentType |
string |
✔️ |
HTTP response content type for this operation |
statusCode |
number |
✔️ |
HTTP response status code for this operation |
rawResponse |
Response |
✔️ |
Raw HTTP response; suitable for custom response parsing |
webhookLog |
components.WebhookLog |
➖ |
Success |
error |
components.ErrorT |
➖ |
Error |