@snokam/mcp-api 0.17.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,6 +11,39 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"paths": {
|
|
14
|
+
"/v1.0/protected/alerts/azure": {
|
|
15
|
+
"post": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"Alerts"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Receive Azure Monitor alert",
|
|
20
|
+
"description": "Action Group webhook receiver for the Azure Monitor common alert schema. Posts a formatted summary to the channel given by ?channel= (defaults to #feed-errors).",
|
|
21
|
+
"operationId": "ReceiveAzureAlert",
|
|
22
|
+
"parameters": [
|
|
23
|
+
{
|
|
24
|
+
"name": "channel",
|
|
25
|
+
"in": "query",
|
|
26
|
+
"schema": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"x-ms-summary": "Slack channel including the leading # (defaults to #feed-errors)"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "Alert relayed",
|
|
35
|
+
"x-ms-summary": "Success"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"security": [
|
|
39
|
+
{
|
|
40
|
+
"Implicit": [
|
|
41
|
+
"api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
14
47
|
"/v1.0/protected/newsletter/trigger": {
|
|
15
48
|
"post": {
|
|
16
49
|
"tags": [
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Broker API",
|
|
5
|
+
"description": "Event broker for Sanity webhooks",
|
|
6
|
+
"version": "v1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://broker.api.test.snokam.no"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"paths": {
|
|
14
|
+
"/v1.0/sanity-webhook-to-azure": {
|
|
15
|
+
"post": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"Sanity"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Handles Sanity webhook events",
|
|
20
|
+
"description": "This function processes events from Sanity webhooks and forwards them to Azure Web PubSub and Service Bus.",
|
|
21
|
+
"operationId": "SanityWebhookToAzure",
|
|
22
|
+
"requestBody": {
|
|
23
|
+
"description": "The Sanity webhook payload",
|
|
24
|
+
"content": {
|
|
25
|
+
"application/json": {
|
|
26
|
+
"schema": {
|
|
27
|
+
"$ref": "#/components/schemas/sanityDocument"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
"responses": {
|
|
34
|
+
"200": {
|
|
35
|
+
"description": "Event processed successfully",
|
|
36
|
+
"x-ms-summary": "Success"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"/v1.0/pubsub/tv/uri": {
|
|
42
|
+
"get": {
|
|
43
|
+
"tags": [
|
|
44
|
+
"WebPubSub"
|
|
45
|
+
],
|
|
46
|
+
"summary": "Gets a Web PubSub token",
|
|
47
|
+
"description": "Generates a Web PubSub token for joining and leaving the 'tv' group.",
|
|
48
|
+
"operationId": "GetPubsubToken",
|
|
49
|
+
"responses": {
|
|
50
|
+
"200": {
|
|
51
|
+
"description": "Web PubSub token generated",
|
|
52
|
+
"content": {
|
|
53
|
+
"application/json": {
|
|
54
|
+
"schema": {
|
|
55
|
+
"$ref": "#/components/schemas/pubSubToken"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"x-ms-summary": "Success"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"components": {
|
|
66
|
+
"schemas": {
|
|
67
|
+
"pubSubToken": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"uri": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"nullable": true
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"sanityDocument": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"_id": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"nullable": true
|
|
82
|
+
},
|
|
83
|
+
"_type": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"nullable": true
|
|
86
|
+
},
|
|
87
|
+
"_rev": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"nullable": true
|
|
90
|
+
},
|
|
91
|
+
"_key": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"nullable": true
|
|
94
|
+
},
|
|
95
|
+
"_createdAt": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"format": "date-time",
|
|
98
|
+
"nullable": true
|
|
99
|
+
},
|
|
100
|
+
"_updatedAt": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"format": "date-time",
|
|
103
|
+
"nullable": true
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -11,6 +11,39 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"paths": {
|
|
14
|
+
"/v1.0/protected/alerts/azure": {
|
|
15
|
+
"post": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"Alerts"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Receive Azure Monitor alert",
|
|
20
|
+
"description": "Action Group webhook receiver for the Azure Monitor common alert schema. Posts a formatted summary to the channel given by ?channel= (defaults to #feed-errors).",
|
|
21
|
+
"operationId": "ReceiveAzureAlert",
|
|
22
|
+
"parameters": [
|
|
23
|
+
{
|
|
24
|
+
"name": "channel",
|
|
25
|
+
"in": "query",
|
|
26
|
+
"schema": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"x-ms-summary": "Slack channel including the leading # (defaults to #feed-errors)"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "Alert relayed",
|
|
35
|
+
"x-ms-summary": "Success"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"security": [
|
|
39
|
+
{
|
|
40
|
+
"Implicit": [
|
|
41
|
+
"api://246713d5-cd48-4a00-84dd-7fc7ae290a62/.default"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
14
47
|
"/v1.0/protected/newsletter/trigger": {
|
|
15
48
|
"post": {
|
|
16
49
|
"tags": [
|