@snokam/mcp-api 0.5.1
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/dist/auth.d.ts +16 -0
- package/dist/auth.js +72 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +271 -0
- package/dist/openapi-loader.d.ts +46 -0
- package/dist/openapi-loader.js +174 -0
- package/package.json +35 -0
- package/specs/production/accounting.json +1131 -0
- package/specs/production/broker.json +109 -0
- package/specs/production/calculators.json +1523 -0
- package/specs/production/chatgpt.json +1655 -0
- package/specs/production/crypto.json +1998 -0
- package/specs/production/employees.json +1867 -0
- package/specs/production/events.json +2322 -0
- package/specs/production/notifications.json +270 -0
- package/specs/production/office.json +1984 -0
- package/specs/production/power-office.json +2383 -0
- package/specs/production/sanity.json +29509 -0
- package/specs/production/sync.json +181 -0
- package/specs/production/webshop.json +631 -0
- package/specs/test/accounting.json +1131 -0
- package/specs/test/broker.json +109 -0
- package/specs/test/calculators.json +1523 -0
- package/specs/test/chatgpt.json +1655 -0
- package/specs/test/crypto.json +1998 -0
- package/specs/test/employees.json +1867 -0
- package/specs/test/events.json +2322 -0
- package/specs/test/notifications.json +270 -0
- package/specs/test/power-office.json +2383 -0
- package/specs/test/sanity.json +29509 -0
- package/specs/test/sync.json +181 -0
- package/specs/test/webshop.json +631 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Broker Function",
|
|
5
|
+
"description": "Message broker for Sanity events (Webhook) to Azure Service Bus / PubSub",
|
|
6
|
+
"version": "v1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://broker.api.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
|
+
}
|