~james/core

core/api/org_tangled/webhookdefs.go -rw-r--r-- 1.7 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// 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"`
}