@snokam/mcp-api 0.13.0 → 0.15.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.
- package/package.json +6 -6
- package/specs/production/accounting.json +31 -29
- package/specs/production/blog.json +1348 -1
- package/specs/production/chatgpt.json +9 -0
- package/specs/production/employees.json +1089 -88
- package/specs/production/events.json +92 -0
- package/specs/production/notifications.json +116 -0
- package/specs/production/recruitment.json +2446 -1
- package/specs/production/sales.json +3901 -129
- package/specs/production/sanity.json +6090 -3482
- package/specs/production/webshop.json +1 -1
- package/specs/test/accounting.json +31 -29
- package/specs/test/blog.json +1348 -1
- package/specs/test/chatgpt.json +9 -0
- package/specs/test/employees.json +1089 -88
- package/specs/test/events.json +92 -0
- package/specs/test/notifications.json +116 -0
- package/specs/test/recruitment.json +2446 -1
- package/specs/test/sales.json +3901 -129
- package/specs/test/sanity.json +6090 -3482
- package/specs/test/webshop.json +1 -1
|
@@ -1155,6 +1155,63 @@
|
|
|
1155
1155
|
]
|
|
1156
1156
|
}
|
|
1157
1157
|
},
|
|
1158
|
+
"/v1.0/protected/{eventId}/participate/employee": {
|
|
1159
|
+
"post": {
|
|
1160
|
+
"tags": [
|
|
1161
|
+
"Events"
|
|
1162
|
+
],
|
|
1163
|
+
"summary": "Registers an employee as participant",
|
|
1164
|
+
"description": "Registers a specific employee as an internal participant in an event. Requires authentication.",
|
|
1165
|
+
"operationId": "AddParticipationForEmployee",
|
|
1166
|
+
"parameters": [
|
|
1167
|
+
{
|
|
1168
|
+
"name": "eventId",
|
|
1169
|
+
"in": "path",
|
|
1170
|
+
"description": "The ID of the event",
|
|
1171
|
+
"required": true,
|
|
1172
|
+
"schema": {
|
|
1173
|
+
"type": "string"
|
|
1174
|
+
},
|
|
1175
|
+
"x-ms-summary": "The ID of the event"
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
"requestBody": {
|
|
1179
|
+
"description": "Employee participation data",
|
|
1180
|
+
"content": {
|
|
1181
|
+
"application/json": {
|
|
1182
|
+
"schema": {
|
|
1183
|
+
"$ref": "#/components/schemas/participateEmployee"
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
"required": true
|
|
1188
|
+
},
|
|
1189
|
+
"responses": {
|
|
1190
|
+
"200": {
|
|
1191
|
+
"description": "Participation registered successfully",
|
|
1192
|
+
"content": {
|
|
1193
|
+
"application/json": {
|
|
1194
|
+
"schema": {
|
|
1195
|
+
"$ref": "#/components/schemas/participant"
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"x-ms-summary": "Success"
|
|
1200
|
+
},
|
|
1201
|
+
"401": {
|
|
1202
|
+
"description": "User is not authorized",
|
|
1203
|
+
"x-ms-summary": "Unauthorized"
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"security": [
|
|
1207
|
+
{
|
|
1208
|
+
"Implicit": [
|
|
1209
|
+
"api://c9e068a9-4a60-4b00-9982-1e9c6cdcc0a8/.default"
|
|
1210
|
+
]
|
|
1211
|
+
}
|
|
1212
|
+
]
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1158
1215
|
"/v1.0/protected/instagram": {
|
|
1159
1216
|
"post": {
|
|
1160
1217
|
"tags": [
|
|
@@ -1389,6 +1446,9 @@
|
|
|
1389
1446
|
"type": "string",
|
|
1390
1447
|
"default": "event"
|
|
1391
1448
|
},
|
|
1449
|
+
"allowDigitalParticipation": {
|
|
1450
|
+
"type": "boolean"
|
|
1451
|
+
},
|
|
1392
1452
|
"askForFeedback": {
|
|
1393
1453
|
"type": "boolean"
|
|
1394
1454
|
},
|
|
@@ -1465,6 +1525,9 @@
|
|
|
1465
1525
|
"slug": {
|
|
1466
1526
|
"$ref": "#/components/schemas/slug"
|
|
1467
1527
|
},
|
|
1528
|
+
"teamsLink": {
|
|
1529
|
+
"type": "string"
|
|
1530
|
+
},
|
|
1468
1531
|
"time": {
|
|
1469
1532
|
"type": "string"
|
|
1470
1533
|
},
|
|
@@ -1638,6 +1701,13 @@
|
|
|
1638
1701
|
"invitationSent": {
|
|
1639
1702
|
"type": "boolean",
|
|
1640
1703
|
"nullable": true
|
|
1704
|
+
},
|
|
1705
|
+
"allowDigitalParticipation": {
|
|
1706
|
+
"type": "boolean",
|
|
1707
|
+
"nullable": true
|
|
1708
|
+
},
|
|
1709
|
+
"teamsLink": {
|
|
1710
|
+
"type": "string"
|
|
1641
1711
|
}
|
|
1642
1712
|
}
|
|
1643
1713
|
},
|
|
@@ -1845,6 +1915,21 @@
|
|
|
1845
1915
|
}
|
|
1846
1916
|
}
|
|
1847
1917
|
},
|
|
1918
|
+
"participateEmployee": {
|
|
1919
|
+
"required": [
|
|
1920
|
+
"email"
|
|
1921
|
+
],
|
|
1922
|
+
"type": "object",
|
|
1923
|
+
"properties": {
|
|
1924
|
+
"email": {
|
|
1925
|
+
"minLength": 1,
|
|
1926
|
+
"type": "string"
|
|
1927
|
+
},
|
|
1928
|
+
"details": {
|
|
1929
|
+
"type": "string"
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
},
|
|
1848
1933
|
"patchEvent": {
|
|
1849
1934
|
"type": "object",
|
|
1850
1935
|
"properties": {
|
|
@@ -1872,6 +1957,10 @@
|
|
|
1872
1957
|
"default": "active",
|
|
1873
1958
|
"nullable": true
|
|
1874
1959
|
},
|
|
1960
|
+
"allowDigitalParticipation": {
|
|
1961
|
+
"type": "boolean",
|
|
1962
|
+
"nullable": true
|
|
1963
|
+
},
|
|
1875
1964
|
"askForFeedback": {
|
|
1876
1965
|
"type": "boolean",
|
|
1877
1966
|
"nullable": true
|
|
@@ -1951,6 +2040,9 @@
|
|
|
1951
2040
|
"slug": {
|
|
1952
2041
|
"$ref": "#/components/schemas/slug"
|
|
1953
2042
|
},
|
|
2043
|
+
"teamsLink": {
|
|
2044
|
+
"type": "string"
|
|
2045
|
+
},
|
|
1954
2046
|
"time": {
|
|
1955
2047
|
"type": "string"
|
|
1956
2048
|
},
|
|
@@ -11,6 +11,69 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"paths": {
|
|
14
|
+
"/v1.0/protected/newsletter/trigger": {
|
|
15
|
+
"post": {
|
|
16
|
+
"tags": [
|
|
17
|
+
"Notifications"
|
|
18
|
+
],
|
|
19
|
+
"summary": "Trigger newsletter summarizer",
|
|
20
|
+
"description": "Manually runs the weekly knowledge-summarizer cron (iterates active newsletterSeries, posts Olaf's summary to the configured Slack channel per series, and emails subscribers for series with sendEmails=true).",
|
|
21
|
+
"operationId": "TriggerKnowledgeSummarizer",
|
|
22
|
+
"responses": {
|
|
23
|
+
"200": {
|
|
24
|
+
"description": "Summarizer run completed",
|
|
25
|
+
"x-ms-summary": "Success"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"security": [
|
|
29
|
+
{
|
|
30
|
+
"Implicit": [
|
|
31
|
+
"api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"/v1.0/protected/newsletter/debug": {
|
|
38
|
+
"post": {
|
|
39
|
+
"tags": [
|
|
40
|
+
"Notifications"
|
|
41
|
+
],
|
|
42
|
+
"summary": "Preview newsletters by email",
|
|
43
|
+
"description": "Generates Olaf's summary for each active newsletterSeries and emails the rendered body (same composition the real cron uses) to the caller-supplied address. Skips Sanity persistence, Slack posts, and the 7-day dedup check — subscribers are never touched. Defaults to utvikling@snokam.no.",
|
|
44
|
+
"operationId": "DebugNewsletterEmail",
|
|
45
|
+
"parameters": [
|
|
46
|
+
{
|
|
47
|
+
"name": "to",
|
|
48
|
+
"in": "query",
|
|
49
|
+
"schema": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"x-ms-summary": "Recipient email (defaults to utvikling@snokam.no)"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"responses": {
|
|
56
|
+
"200": {
|
|
57
|
+
"description": "Payload of Object",
|
|
58
|
+
"content": {
|
|
59
|
+
"application/json": {
|
|
60
|
+
"schema": {
|
|
61
|
+
"type": "object"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"x-ms-summary": "Preview sent"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"security": [
|
|
69
|
+
{
|
|
70
|
+
"Implicit": [
|
|
71
|
+
"api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
14
77
|
"/v1.0/protected/push/register": {
|
|
15
78
|
"post": {
|
|
16
79
|
"tags": [
|
|
@@ -237,6 +300,59 @@
|
|
|
237
300
|
}
|
|
238
301
|
]
|
|
239
302
|
}
|
|
303
|
+
},
|
|
304
|
+
"/v1.0/protected/sprint-notification/trigger": {
|
|
305
|
+
"post": {
|
|
306
|
+
"tags": [
|
|
307
|
+
"Notifications"
|
|
308
|
+
],
|
|
309
|
+
"summary": "Trigger weekly sprint summary",
|
|
310
|
+
"description": "Manually triggers the weekly sprint summary notification to Slack #general",
|
|
311
|
+
"operationId": "TriggerSprintNotification",
|
|
312
|
+
"responses": {
|
|
313
|
+
"200": {
|
|
314
|
+
"description": "Summary sent successfully",
|
|
315
|
+
"x-ms-summary": "Success"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"security": [
|
|
319
|
+
{
|
|
320
|
+
"Implicit": [
|
|
321
|
+
"api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"/v1.0/protected/sprint-notification/debug": {
|
|
328
|
+
"get": {
|
|
329
|
+
"tags": [
|
|
330
|
+
"Notifications"
|
|
331
|
+
],
|
|
332
|
+
"summary": "Debug friday summary",
|
|
333
|
+
"description": "Returns the full friday summary including ChatGPT output for debugging",
|
|
334
|
+
"operationId": "DebugSprintSummary",
|
|
335
|
+
"responses": {
|
|
336
|
+
"200": {
|
|
337
|
+
"description": "Payload of Object",
|
|
338
|
+
"content": {
|
|
339
|
+
"application/json": {
|
|
340
|
+
"schema": {
|
|
341
|
+
"type": "object"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"x-ms-summary": "Debug data"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"security": [
|
|
349
|
+
{
|
|
350
|
+
"Implicit": [
|
|
351
|
+
"api://46c59afb-0021-439b-a56c-6e29d39f2c7a/.default"
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
240
356
|
}
|
|
241
357
|
},
|
|
242
358
|
"components": {
|