@snokam/mcp-api 1.11.0 → 1.11.2
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 +0 -15
- package/dist/auth.js +15 -59
- package/dist/builtin-tools.d.ts +109 -0
- package/dist/builtin-tools.js +200 -0
- package/dist/execute-call.d.ts +5 -0
- package/dist/execute-call.js +45 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +7 -312
- package/dist/openapi-loader.d.ts +1 -14
- package/dist/openapi-loader.js +8 -49
- package/dist/state.d.ts +13 -0
- package/dist/state.js +54 -0
- package/dist/tool-schema.d.ts +2 -0
- package/dist/tool-schema.js +42 -0
- package/package.json +6 -6
- package/specs/production/accounting.json +2629 -1754
- package/specs/production/blog.json +1608 -1
- package/specs/production/broker.json +52 -24
- package/specs/production/chatgpt.json +299 -17
- package/specs/production/employees.json +2979 -299
- package/specs/production/events.json +366 -52
- package/specs/production/notifications.json +419 -12
- package/specs/production/office.json +818 -836
- package/specs/production/recruitment.json +3635 -1
- package/specs/production/sales.json +5250 -417
- package/specs/production/sanity.json +29008 -15539
- package/specs/production/sync.json +116 -20
- package/specs/production/webshop.json +38 -18
- package/specs/test/accounting.json +2629 -1754
- package/specs/test/blog.json +1608 -1
- package/specs/test/broker.json +52 -24
- package/specs/test/chatgpt.json +299 -17
- package/specs/test/employees.json +2979 -299
- package/specs/test/events.json +366 -52
- package/specs/test/notifications.json +419 -12
- package/specs/test/office.json +818 -836
- package/specs/test/recruitment.json +3635 -1
- package/specs/test/sales.json +5250 -417
- package/specs/test/sanity.json +29008 -15539
- package/specs/test/sync.json +116 -20
- package/specs/test/webshop.json +38 -18
|
@@ -11,36 +11,44 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"paths": {
|
|
14
|
-
"/v1.0/
|
|
14
|
+
"/v1.0/protected/health/{provider}": {
|
|
15
15
|
"get": {
|
|
16
16
|
"tags": [
|
|
17
|
-
"
|
|
17
|
+
"Health"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Checks an integration's connectivity",
|
|
20
|
+
"operationId": "SyncIntegrationHealth",
|
|
21
|
+
"parameters": [
|
|
22
|
+
{
|
|
23
|
+
"name": "provider",
|
|
24
|
+
"in": "path",
|
|
25
|
+
"required": true,
|
|
26
|
+
"schema": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
18
30
|
],
|
|
19
|
-
"summary": "Syncs Azure AD to Sanity",
|
|
20
|
-
"description": "Synchronizes data from Azure AD to Sanity.",
|
|
21
|
-
"operationId": "SyncAzureAdToSanity",
|
|
22
31
|
"responses": {
|
|
23
32
|
"200": {
|
|
24
|
-
"description": "
|
|
33
|
+
"description": "Payload of IntegrationHealthResult",
|
|
25
34
|
"content": {
|
|
26
35
|
"application/json": {
|
|
27
36
|
"schema": {
|
|
28
|
-
"
|
|
37
|
+
"$ref": "#/components/schemas/integrationHealthResult"
|
|
29
38
|
}
|
|
30
39
|
}
|
|
31
40
|
},
|
|
32
|
-
"x-ms-summary": "
|
|
33
|
-
},
|
|
34
|
-
"401": {
|
|
35
|
-
"description": "Unauthorized access",
|
|
36
|
-
"x-ms-summary": "Unauthorized"
|
|
41
|
+
"x-ms-summary": "Health result"
|
|
37
42
|
}
|
|
38
43
|
},
|
|
39
44
|
"security": [
|
|
40
45
|
{
|
|
41
46
|
"Implicit": [
|
|
42
|
-
"api://
|
|
47
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
43
48
|
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"ApiKey": []
|
|
44
52
|
}
|
|
45
53
|
]
|
|
46
54
|
}
|
|
@@ -73,8 +81,11 @@
|
|
|
73
81
|
"security": [
|
|
74
82
|
{
|
|
75
83
|
"Implicit": [
|
|
76
|
-
"api://
|
|
84
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
77
85
|
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"ApiKey": []
|
|
78
89
|
}
|
|
79
90
|
]
|
|
80
91
|
}
|
|
@@ -131,8 +142,48 @@
|
|
|
131
142
|
"security": [
|
|
132
143
|
{
|
|
133
144
|
"Implicit": [
|
|
134
|
-
"api://
|
|
145
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
135
146
|
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"ApiKey": []
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"/v1.0/sanity-groups-to-azure-ad": {
|
|
155
|
+
"get": {
|
|
156
|
+
"tags": [
|
|
157
|
+
"Sync"
|
|
158
|
+
],
|
|
159
|
+
"summary": "Syncs Sanity workgroups to Azure AD",
|
|
160
|
+
"description": "Mirrors the Sanity workgroup taxonomy to Azure AD security groups, and reconciles each group's membership against the Sanity-tracked employees. Same handler the cron runs.",
|
|
161
|
+
"operationId": "SyncSanityGroupsToAzureAd",
|
|
162
|
+
"responses": {
|
|
163
|
+
"200": {
|
|
164
|
+
"description": "Sync stats — groups created/updated, members added/removed.",
|
|
165
|
+
"content": {
|
|
166
|
+
"application/json": {
|
|
167
|
+
"schema": {
|
|
168
|
+
"$ref": "#/components/schemas/syncSanityGroupsResult"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"x-ms-summary": "Success"
|
|
173
|
+
},
|
|
174
|
+
"401": {
|
|
175
|
+
"description": "Unauthorized access",
|
|
176
|
+
"x-ms-summary": "Unauthorized"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"security": [
|
|
180
|
+
{
|
|
181
|
+
"Implicit": [
|
|
182
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"ApiKey": []
|
|
136
187
|
}
|
|
137
188
|
]
|
|
138
189
|
}
|
|
@@ -154,27 +205,72 @@
|
|
|
154
205
|
"security": [
|
|
155
206
|
{
|
|
156
207
|
"Implicit": [
|
|
157
|
-
"api://
|
|
208
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
158
209
|
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"ApiKey": []
|
|
159
213
|
}
|
|
160
214
|
]
|
|
161
215
|
}
|
|
162
216
|
}
|
|
163
217
|
},
|
|
164
218
|
"components": {
|
|
219
|
+
"schemas": {
|
|
220
|
+
"integrationHealthResult": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"key": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"status": {
|
|
227
|
+
"type": "string"
|
|
228
|
+
},
|
|
229
|
+
"message": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"syncSanityGroupsResult": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"groupsCreated": {
|
|
238
|
+
"type": "integer",
|
|
239
|
+
"format": "int32"
|
|
240
|
+
},
|
|
241
|
+
"groupsUpdated": {
|
|
242
|
+
"type": "integer",
|
|
243
|
+
"format": "int32"
|
|
244
|
+
},
|
|
245
|
+
"membersAdded": {
|
|
246
|
+
"type": "integer",
|
|
247
|
+
"format": "int32"
|
|
248
|
+
},
|
|
249
|
+
"membersRemoved": {
|
|
250
|
+
"type": "integer",
|
|
251
|
+
"format": "int32"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
165
256
|
"securitySchemes": {
|
|
166
257
|
"Implicit": {
|
|
167
258
|
"type": "oauth2",
|
|
168
259
|
"flows": {
|
|
169
260
|
"implicit": {
|
|
170
|
-
"authorizationUrl": "https://login.microsoftonline.com/
|
|
171
|
-
"tokenUrl": "https://login.microsoftonline.com/
|
|
172
|
-
"refreshUrl": "https://login.microsoftonline.com/
|
|
261
|
+
"authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
|
|
262
|
+
"tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
263
|
+
"refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
173
264
|
"scopes": {
|
|
174
|
-
"api://
|
|
265
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
|
|
175
266
|
}
|
|
176
267
|
}
|
|
177
268
|
}
|
|
269
|
+
},
|
|
270
|
+
"ApiKey": {
|
|
271
|
+
"type": "http",
|
|
272
|
+
"scheme": "bearer",
|
|
273
|
+
"bearerFormat": "JWT"
|
|
178
274
|
}
|
|
179
275
|
}
|
|
180
276
|
}
|
|
@@ -38,8 +38,11 @@
|
|
|
38
38
|
"security": [
|
|
39
39
|
{
|
|
40
40
|
"Implicit": [
|
|
41
|
-
"api://
|
|
41
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
42
42
|
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"ApiKey": []
|
|
43
46
|
}
|
|
44
47
|
]
|
|
45
48
|
}
|
|
@@ -75,8 +78,11 @@
|
|
|
75
78
|
"security": [
|
|
76
79
|
{
|
|
77
80
|
"Implicit": [
|
|
78
|
-
"api://
|
|
81
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
79
82
|
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"ApiKey": []
|
|
80
86
|
}
|
|
81
87
|
]
|
|
82
88
|
}
|
|
@@ -120,8 +126,11 @@
|
|
|
120
126
|
"security": [
|
|
121
127
|
{
|
|
122
128
|
"Implicit": [
|
|
123
|
-
"api://
|
|
129
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
124
130
|
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"ApiKey": []
|
|
125
134
|
}
|
|
126
135
|
]
|
|
127
136
|
}
|
|
@@ -135,7 +144,7 @@
|
|
|
135
144
|
"description": "Removes an order for the authenticated user.",
|
|
136
145
|
"operationId": "RemoveMyOrder",
|
|
137
146
|
"requestBody": {
|
|
138
|
-
"description": "
|
|
147
|
+
"description": "Sanity document ID of the order to remove",
|
|
139
148
|
"content": {
|
|
140
149
|
"application/json": {
|
|
141
150
|
"schema": {
|
|
@@ -169,8 +178,11 @@
|
|
|
169
178
|
"security": [
|
|
170
179
|
{
|
|
171
180
|
"Implicit": [
|
|
172
|
-
"api://
|
|
181
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
173
182
|
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"ApiKey": []
|
|
174
186
|
}
|
|
175
187
|
]
|
|
176
188
|
}
|
|
@@ -202,8 +214,11 @@
|
|
|
202
214
|
"security": [
|
|
203
215
|
{
|
|
204
216
|
"Implicit": [
|
|
205
|
-
"api://
|
|
217
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
206
218
|
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"ApiKey": []
|
|
207
222
|
}
|
|
208
223
|
]
|
|
209
224
|
}
|
|
@@ -235,8 +250,11 @@
|
|
|
235
250
|
"security": [
|
|
236
251
|
{
|
|
237
252
|
"Implicit": [
|
|
238
|
-
"api://
|
|
253
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
239
254
|
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"ApiKey": []
|
|
240
258
|
}
|
|
241
259
|
]
|
|
242
260
|
}
|
|
@@ -283,8 +301,11 @@
|
|
|
283
301
|
"security": [
|
|
284
302
|
{
|
|
285
303
|
"Implicit": [
|
|
286
|
-
"api://
|
|
304
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
|
|
287
305
|
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"ApiKey": []
|
|
288
309
|
}
|
|
289
310
|
]
|
|
290
311
|
}
|
|
@@ -442,12 +463,6 @@
|
|
|
442
463
|
"type": "boolean",
|
|
443
464
|
"nullable": true
|
|
444
465
|
},
|
|
445
|
-
"availableSize": {
|
|
446
|
-
"type": "array",
|
|
447
|
-
"items": {
|
|
448
|
-
"type": "string"
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
466
|
"availableSex": {
|
|
452
467
|
"type": "array",
|
|
453
468
|
"items": {
|
|
@@ -617,14 +632,19 @@
|
|
|
617
632
|
"type": "oauth2",
|
|
618
633
|
"flows": {
|
|
619
634
|
"implicit": {
|
|
620
|
-
"authorizationUrl": "https://login.microsoftonline.com/
|
|
621
|
-
"tokenUrl": "https://login.microsoftonline.com/
|
|
622
|
-
"refreshUrl": "https://login.microsoftonline.com/
|
|
635
|
+
"authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
|
|
636
|
+
"tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
637
|
+
"refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
623
638
|
"scopes": {
|
|
624
|
-
"api://
|
|
639
|
+
"api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
|
|
625
640
|
}
|
|
626
641
|
}
|
|
627
642
|
}
|
|
643
|
+
},
|
|
644
|
+
"ApiKey": {
|
|
645
|
+
"type": "http",
|
|
646
|
+
"scheme": "bearer",
|
|
647
|
+
"bearerFormat": "JWT"
|
|
628
648
|
}
|
|
629
649
|
}
|
|
630
650
|
}
|