@snokam/mcp-api 2.61.0 → 3.0.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.
Files changed (43) hide show
  1. package/dist/auth.d.ts +0 -15
  2. package/dist/auth.js +17 -61
  3. package/dist/builtin-tools.d.ts +109 -0
  4. package/dist/builtin-tools.js +200 -0
  5. package/dist/execute-call.d.ts +5 -0
  6. package/dist/execute-call.js +45 -0
  7. package/dist/index.d.ts +0 -7
  8. package/dist/index.js +16 -311
  9. package/dist/openapi-loader.d.ts +1 -14
  10. package/dist/openapi-loader.js +27 -50
  11. package/dist/requirements.d.ts +10 -0
  12. package/dist/requirements.js +92 -0
  13. package/dist/state.d.ts +14 -0
  14. package/dist/state.js +66 -0
  15. package/dist/tool-schema.d.ts +2 -0
  16. package/dist/tool-schema.js +42 -0
  17. package/package.json +8 -3
  18. package/specs/production/accounting.json +2759 -2107
  19. package/specs/production/blog.json +783 -1504
  20. package/specs/production/broker.json +52 -24
  21. package/specs/production/chatgpt.json +285 -35
  22. package/specs/production/employees.json +2225 -1267
  23. package/specs/production/events.json +475 -755
  24. package/specs/production/notifications.json +329 -15
  25. package/specs/production/office.json +818 -836
  26. package/specs/production/recruitment.json +1889 -1116
  27. package/specs/production/sales.json +2392 -853
  28. package/specs/production/sanity.json +26027 -15014
  29. package/specs/production/sync.json +116 -20
  30. package/specs/production/webshop.json +37 -17
  31. package/specs/test/accounting.json +2869 -2159
  32. package/specs/test/blog.json +774 -1511
  33. package/specs/test/broker.json +54 -25
  34. package/specs/test/chatgpt.json +561 -198
  35. package/specs/test/employees.json +2490 -1479
  36. package/specs/test/events.json +481 -773
  37. package/specs/test/notifications.json +329 -15
  38. package/specs/test/office.json +818 -836
  39. package/specs/test/recruitment.json +1894 -1121
  40. package/specs/test/sales.json +2909 -1172
  41. package/specs/test/sanity.json +47384 -16348
  42. package/specs/test/sync.json +116 -20
  43. package/specs/test/webshop.json +37 -17
@@ -11,6 +11,47 @@
11
11
  }
12
12
  ],
13
13
  "paths": {
14
+ "/v1.0/protected/health/{provider}": {
15
+ "get": {
16
+ "tags": [
17
+ "Health"
18
+ ],
19
+ "summary": "Checks an integration's connectivity",
20
+ "operationId": "NotificationsIntegrationHealth",
21
+ "parameters": [
22
+ {
23
+ "name": "provider",
24
+ "in": "path",
25
+ "required": true,
26
+ "schema": {
27
+ "type": "string"
28
+ }
29
+ }
30
+ ],
31
+ "responses": {
32
+ "200": {
33
+ "description": "Health result",
34
+ "content": {
35
+ "application/json": {
36
+ "schema": {
37
+ "$ref": "#/components/schemas/integrationHealthResult"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ },
43
+ "security": [
44
+ {
45
+ "Implicit": [
46
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
47
+ ]
48
+ },
49
+ {
50
+ "ApiKey": []
51
+ }
52
+ ]
53
+ }
54
+ },
14
55
  "/v1.0/protected/newsletter/trigger": {
15
56
  "post": {
16
57
  "tags": [
@@ -28,8 +69,11 @@
28
69
  "security": [
29
70
  {
30
71
  "Implicit": [
31
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
72
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
32
73
  ]
74
+ },
75
+ {
76
+ "ApiKey": []
33
77
  }
34
78
  ]
35
79
  }
@@ -68,8 +112,118 @@
68
112
  "security": [
69
113
  {
70
114
  "Implicit": [
71
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
115
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
72
116
  ]
117
+ },
118
+ {
119
+ "ApiKey": []
120
+ }
121
+ ]
122
+ }
123
+ },
124
+ "/v1.0/protected/alerts/azure": {
125
+ "post": {
126
+ "tags": [
127
+ "Alerts"
128
+ ],
129
+ "summary": "Receive Azure Monitor alert",
130
+ "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).",
131
+ "operationId": "ReceiveAzureAlert",
132
+ "parameters": [
133
+ {
134
+ "name": "channel",
135
+ "in": "query",
136
+ "schema": {
137
+ "type": "string"
138
+ },
139
+ "x-ms-summary": "Slack channel including the leading # (defaults to #feed-errors)"
140
+ }
141
+ ],
142
+ "responses": {
143
+ "200": {
144
+ "description": "Alert relayed",
145
+ "x-ms-summary": "Success"
146
+ }
147
+ },
148
+ "security": [
149
+ {
150
+ "Implicit": [
151
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
152
+ ]
153
+ },
154
+ {
155
+ "ApiKey": []
156
+ }
157
+ ]
158
+ }
159
+ },
160
+ "/v1.0/protected/routing": {
161
+ "get": {
162
+ "tags": [
163
+ "Notifications"
164
+ ],
165
+ "summary": "Get notification routing",
166
+ "description": "Returns the tenant's notification routing plus the known keys and active chat provider.",
167
+ "operationId": "GetNotificationRouting",
168
+ "responses": {
169
+ "200": {
170
+ "description": "Payload of NotificationRoutingResponse",
171
+ "content": {
172
+ "application/json": {
173
+ "schema": {
174
+ "$ref": "#/components/schemas/notificationRoutingResponse"
175
+ }
176
+ }
177
+ },
178
+ "x-ms-summary": "Success"
179
+ }
180
+ },
181
+ "security": [
182
+ {
183
+ "Implicit": [
184
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
185
+ ]
186
+ },
187
+ {
188
+ "ApiKey": []
189
+ }
190
+ ]
191
+ },
192
+ "put": {
193
+ "tags": [
194
+ "Notifications"
195
+ ],
196
+ "summary": "Update notification routing",
197
+ "description": "Upserts the tenant's notification routing (routes + default destination).",
198
+ "operationId": "UpdateNotificationRouting",
199
+ "requestBody": {
200
+ "content": {
201
+ "application/json": {
202
+ "schema": {
203
+ "$ref": "#/components/schemas/updateNotificationRoutingRequest"
204
+ }
205
+ }
206
+ },
207
+ "required": true
208
+ },
209
+ "responses": {
210
+ "204": {
211
+ "description": "No description",
212
+ "x-ms-summary": "Saved"
213
+ },
214
+ "400": {
215
+ "description": "No description",
216
+ "x-ms-summary": "Invalid body"
217
+ }
218
+ },
219
+ "security": [
220
+ {
221
+ "Implicit": [
222
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
223
+ ]
224
+ },
225
+ {
226
+ "ApiKey": []
73
227
  }
74
228
  ]
75
229
  }
@@ -102,8 +256,11 @@
102
256
  "security": [
103
257
  {
104
258
  "Implicit": [
105
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
259
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
106
260
  ]
261
+ },
262
+ {
263
+ "ApiKey": []
107
264
  }
108
265
  ]
109
266
  }
@@ -125,8 +282,11 @@
125
282
  "security": [
126
283
  {
127
284
  "Implicit": [
128
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
285
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
129
286
  ]
287
+ },
288
+ {
289
+ "ApiKey": []
130
290
  }
131
291
  ]
132
292
  }
@@ -159,8 +319,11 @@
159
319
  "security": [
160
320
  {
161
321
  "Implicit": [
162
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
322
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
163
323
  ]
324
+ },
325
+ {
326
+ "ApiKey": []
164
327
  }
165
328
  ]
166
329
  }
@@ -193,8 +356,11 @@
193
356
  "security": [
194
357
  {
195
358
  "Implicit": [
196
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
359
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
197
360
  ]
361
+ },
362
+ {
363
+ "ApiKey": []
198
364
  }
199
365
  ]
200
366
  }
@@ -227,8 +393,11 @@
227
393
  "security": [
228
394
  {
229
395
  "Implicit": [
230
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
396
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
231
397
  ]
398
+ },
399
+ {
400
+ "ApiKey": []
232
401
  }
233
402
  ]
234
403
  }
@@ -261,8 +430,11 @@
261
430
  "security": [
262
431
  {
263
432
  "Implicit": [
264
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
433
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
265
434
  ]
435
+ },
436
+ {
437
+ "ApiKey": []
266
438
  }
267
439
  ]
268
440
  }
@@ -295,8 +467,11 @@
295
467
  "security": [
296
468
  {
297
469
  "Implicit": [
298
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
470
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
299
471
  ]
472
+ },
473
+ {
474
+ "ApiKey": []
300
475
  }
301
476
  ]
302
477
  }
@@ -318,8 +493,11 @@
318
493
  "security": [
319
494
  {
320
495
  "Implicit": [
321
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
496
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
322
497
  ]
498
+ },
499
+ {
500
+ "ApiKey": []
323
501
  }
324
502
  ]
325
503
  }
@@ -348,8 +526,60 @@
348
526
  "security": [
349
527
  {
350
528
  "Implicit": [
351
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
529
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
530
+ ]
531
+ }
532
+ ]
533
+ }
534
+ },
535
+ "/v1.0/protected/time-logging/reminder/trigger": {
536
+ "post": {
537
+ "tags": [
538
+ "Notifications"
539
+ ],
540
+ "summary": "Trigger the time-logging SMS reminder",
541
+ "description": "Manually runs the personal time-logging SMS reminder for the calling tenant: texts active employees who have not yet locked their hours for the current month. Ignores the last-day-of-month gate.",
542
+ "operationId": "TriggerTimeLoggingReminder",
543
+ "responses": {
544
+ "200": {
545
+ "description": "Reminder run completed",
546
+ "x-ms-summary": "Success"
547
+ }
548
+ },
549
+ "security": [
550
+ {
551
+ "Implicit": [
552
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
553
+ ]
554
+ },
555
+ {
556
+ "ApiKey": []
557
+ }
558
+ ]
559
+ }
560
+ },
561
+ "/v1.0/protected/time-logging/shame/trigger": {
562
+ "post": {
563
+ "tags": [
564
+ "Notifications"
565
+ ],
566
+ "summary": "Trigger the monthly time-logging shame",
567
+ "description": "Manually runs the monthly time-logging shame for the calling tenant: reads employees without all hours approved for last month from accounting/PowerOffice and posts the public reminder to #general.",
568
+ "operationId": "TriggerTimeLoggingShame",
569
+ "responses": {
570
+ "200": {
571
+ "description": "Shame run completed",
572
+ "x-ms-summary": "Success"
573
+ }
574
+ },
575
+ "security": [
576
+ {
577
+ "Implicit": [
578
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default"
352
579
  ]
580
+ },
581
+ {
582
+ "ApiKey": []
353
583
  }
354
584
  ]
355
585
  }
@@ -377,6 +607,71 @@
377
607
  }
378
608
  }
379
609
  },
610
+ "integrationHealthResult": {
611
+ "type": "object",
612
+ "properties": {
613
+ "key": {
614
+ "type": "string"
615
+ },
616
+ "status": {
617
+ "type": "string"
618
+ },
619
+ "message": {
620
+ "type": "string"
621
+ }
622
+ }
623
+ },
624
+ "notificationKnownKeyDto": {
625
+ "type": "object",
626
+ "properties": {
627
+ "key": {
628
+ "type": "string"
629
+ },
630
+ "title": {
631
+ "type": "string"
632
+ },
633
+ "group": {
634
+ "type": "string"
635
+ }
636
+ }
637
+ },
638
+ "notificationRouteDto": {
639
+ "type": "object",
640
+ "properties": {
641
+ "key": {
642
+ "type": "string"
643
+ },
644
+ "destination": {
645
+ "type": "string"
646
+ },
647
+ "enabled": {
648
+ "type": "boolean"
649
+ }
650
+ }
651
+ },
652
+ "notificationRoutingResponse": {
653
+ "type": "object",
654
+ "properties": {
655
+ "routes": {
656
+ "type": "array",
657
+ "items": {
658
+ "$ref": "#/components/schemas/notificationRouteDto"
659
+ }
660
+ },
661
+ "defaultDestination": {
662
+ "type": "string"
663
+ },
664
+ "knownKeys": {
665
+ "type": "array",
666
+ "items": {
667
+ "$ref": "#/components/schemas/notificationKnownKeyDto"
668
+ }
669
+ },
670
+ "activeChatProvider": {
671
+ "type": "string"
672
+ }
673
+ }
674
+ },
380
675
  "sendEmailAttachmentRequest": {
381
676
  "type": "object",
382
677
  "properties": {
@@ -505,6 +800,20 @@
505
800
  "type": "string"
506
801
  }
507
802
  }
803
+ },
804
+ "updateNotificationRoutingRequest": {
805
+ "type": "object",
806
+ "properties": {
807
+ "routes": {
808
+ "type": "array",
809
+ "items": {
810
+ "$ref": "#/components/schemas/notificationRouteDto"
811
+ }
812
+ },
813
+ "defaultDestination": {
814
+ "type": "string"
815
+ }
816
+ }
508
817
  }
509
818
  },
510
819
  "securitySchemes": {
@@ -512,14 +821,19 @@
512
821
  "type": "oauth2",
513
822
  "flows": {
514
823
  "implicit": {
515
- "authorizationUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/authorize",
516
- "tokenUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
517
- "refreshUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
824
+ "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
825
+ "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
826
+ "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
518
827
  "scopes": {
519
- "api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default": "Default function scope"
828
+ "api://bb21a8d0-366b-4a95-aa59-dbbf708322d1/.default": "Default function scope"
520
829
  }
521
830
  }
522
831
  }
832
+ },
833
+ "ApiKey": {
834
+ "type": "http",
835
+ "scheme": "bearer",
836
+ "bearerFormat": "JWT"
523
837
  }
524
838
  }
525
839
  }