This repository has no description
1{
2 "lexicon": 1,
3 "id": "org.tangled.temp.repo.createWebhook",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Create a new webhook for a repository.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": ["repoDid", "url", "events"],
13 "properties": {
14 "repoDid": {
15 "type": "string",
16 "format": "did",
17 "description": "DID of the repository as minted by the knot."
18 },
19 "url": {
20 "type": "string",
21 "format": "uri",
22 "description": "Endpoint URL that will receive webhook payloads."
23 },
24 "secret": {
25 "type": "string",
26 "description": "Optional HMAC secret used to sign payloads. If omitted, payloads are not signed."
27 },
28 "active": {
29 "type": "boolean",
30 "description": "Whether the webhook should be active immediately. Defaults to true."
31 },
32 "events": {
33 "type": "array",
34 "description": "Event types to subscribe to (e.g. 'push', 'repository:renamed').",
35 "items": {
36 "type": "string"
37 }
38 }
39 }
40 }
41 },
42 "output": {
43 "encoding": "application/json",
44 "schema": {
45 "type": "object",
46 "required": ["id"],
47 "properties": {
48 "id": {
49 "type": "integer",
50 "description": "ID of the newly created webhook."
51 }
52 }
53 }
54 },
55 "errors": [
56 { "name": "NoEventsSelected", "description": "At least one event type must be specified." }
57 ]
58 }
59 }
60}