@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,13 +11,36 @@
11
11
  }
12
12
  ],
13
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
+ },
14
37
  "/v1.0/sanity-webhook-to-azure": {
15
38
  "post": {
16
39
  "tags": [
17
40
  "Sanity"
18
41
  ],
19
42
  "summary": "Handles Sanity webhook events",
20
- "description": "This function processes events from Sanity webhooks and forwards them to Azure Web PubSub and Service Bus.",
43
+ "description": "Forwards Sanity webhook events to Azure Web PubSub and Service Bus.",
21
44
  "operationId": "SanityWebhookToAzure",
22
45
  "requestBody": {
23
46
  "description": "The Sanity webhook payload",
@@ -35,30 +58,15 @@
35
58
  "description": "Event processed successfully",
36
59
  "x-ms-summary": "Success"
37
60
  }
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"
61
+ },
62
+ "security": [
63
+ {
64
+ "Implicit": []
65
+ },
66
+ {
67
+ "ApiKey": []
60
68
  }
61
- }
69
+ ]
62
70
  }
63
71
  }
64
72
  },
@@ -68,7 +76,8 @@
68
76
  "type": "object",
69
77
  "properties": {
70
78
  "uri": {
71
- "type": "string"
79
+ "type": "string",
80
+ "nullable": true
72
81
  }
73
82
  }
74
83
  },
@@ -103,6 +112,26 @@
103
112
  }
104
113
  }
105
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://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default": "Default function scope"
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "ApiKey": {
131
+ "type": "http",
132
+ "scheme": "bearer",
133
+ "bearerFormat": "JWT"
134
+ }
106
135
  }
107
136
  }
108
137
  }