// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package org_tangled

// schema: org.tangled.webhook.defs

import (
	"github.com/bluesky-social/indigo/lex/util"
)

const ()

// WebhookDefs_Delivery is a "delivery" in the org.tangled.webhook.defs schema.
type WebhookDefs_Delivery struct {
	CreatedAt string `json:"createdAt" cborgen:"createdAt"`
	// event: Event type that triggered the delivery.
	Event *string `json:"event" cborgen:"event"`
	// id: Unique ID for tracking this delivery attempt.
	Id           string        `json:"id" cborgen:"id"`
	RequestBody  util.LexBytes `json:"requestBody,omitempty" cborgen:"requestBody,omitempty"`
	ResponseBody util.LexBytes `json:"responseBody,omitempty" cborgen:"responseBody,omitempty"`
	ResponseCode *int64        `json:"responseCode,omitempty" cborgen:"responseCode,omitempty"`
	Success      bool          `json:"success" cborgen:"success"`
	Url          string        `json:"url" cborgen:"url"`
	// webhook: ID of the webhook this delivery belongs to.
	Webhook string `json:"webhook" cborgen:"webhook"`
}

// WebhookDefs_Webhook is a "webhook" in the org.tangled.webhook.defs schema.
type WebhookDefs_Webhook struct {
	// active: Whether the webhook is currently enabled.
	Active    bool   `json:"active" cborgen:"active"`
	CreatedAt string `json:"createdAt" cborgen:"createdAt"`
	// events: Event types this webhook is subscribed to.
	Events []*string `json:"events" cborgen:"events"`
	// id: Webhook identifier.
	Id        string  `json:"id" cborgen:"id"`
	UpdatedAt *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
	// url: Endpoint URL that receives webhook payloads.
	Url string `json:"url" cborgen:"url"`
}
