@snokam/mcp-api 0.173.2 → 0.173.3

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.
@@ -0,0 +1,137 @@
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.snokam.no"
11
+ }
12
+ ],
13
+ "paths": {
14
+ "/v1.0/pubsub/tv/uri": {
15
+ "get": {
16
+ "tags": [
17
+ "WebPubSub"
18
+ ],
19
+ "summary": "Gets a Web PubSub token",
20
+ "description": "Generates a Web PubSub token for joining and leaving the 'tv' group.",
21
+ "operationId": "GetPubsubToken",
22
+ "responses": {
23
+ "200": {
24
+ "description": "Web PubSub token generated",
25
+ "content": {
26
+ "application/json": {
27
+ "schema": {
28
+ "$ref": "#/components/schemas/pubSubToken"
29
+ }
30
+ }
31
+ },
32
+ "x-ms-summary": "Success"
33
+ }
34
+ }
35
+ }
36
+ },
37
+ "/v1.0/sanity-webhook-to-azure": {
38
+ "post": {
39
+ "tags": [
40
+ "Sanity"
41
+ ],
42
+ "summary": "Handles Sanity webhook events",
43
+ "description": "Forwards Sanity webhook events to Azure Web PubSub and Service Bus.",
44
+ "operationId": "SanityWebhookToAzure",
45
+ "requestBody": {
46
+ "description": "The Sanity webhook payload",
47
+ "content": {
48
+ "application/json": {
49
+ "schema": {
50
+ "$ref": "#/components/schemas/sanityDocument"
51
+ }
52
+ }
53
+ },
54
+ "required": true
55
+ },
56
+ "responses": {
57
+ "200": {
58
+ "description": "Event processed successfully",
59
+ "x-ms-summary": "Success"
60
+ }
61
+ },
62
+ "security": [
63
+ {
64
+ "Implicit": []
65
+ },
66
+ {
67
+ "ApiKey": []
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ },
73
+ "components": {
74
+ "schemas": {
75
+ "pubSubToken": {
76
+ "type": "object",
77
+ "properties": {
78
+ "uri": {
79
+ "type": "string",
80
+ "nullable": true
81
+ }
82
+ }
83
+ },
84
+ "sanityDocument": {
85
+ "type": "object",
86
+ "properties": {
87
+ "_id": {
88
+ "type": "string",
89
+ "nullable": true
90
+ },
91
+ "_type": {
92
+ "type": "string",
93
+ "nullable": true
94
+ },
95
+ "_rev": {
96
+ "type": "string",
97
+ "nullable": true
98
+ },
99
+ "_key": {
100
+ "type": "string",
101
+ "nullable": true
102
+ },
103
+ "_createdAt": {
104
+ "type": "string",
105
+ "format": "date-time",
106
+ "nullable": true
107
+ },
108
+ "_updatedAt": {
109
+ "type": "string",
110
+ "format": "date-time",
111
+ "nullable": true
112
+ }
113
+ }
114
+ }
115
+ },
116
+ "securitySchemes": {
117
+ "Implicit": {
118
+ "type": "oauth2",
119
+ "flows": {
120
+ "implicit": {
121
+ "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
122
+ "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
123
+ "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
124
+ "scopes": {
125
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "ApiKey": {
131
+ "type": "http",
132
+ "scheme": "bearer",
133
+ "bearerFormat": "JWT"
134
+ }
135
+ }
136
+ }
137
+ }