@snokam/mcp-api 0.106.1 → 0.107.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 +1 -1
- package/specs/test/accounting.json +58 -58
- package/specs/test/blog.json +1602 -0
- package/specs/test/chatgpt.json +1721 -0
- package/specs/test/employees.json +66 -27
- package/specs/test/events.json +39 -39
- package/specs/test/notifications.json +611 -0
- package/specs/test/office.json +2028 -0
- package/specs/test/recruitment.json +3770 -0
- package/specs/test/sales.json +4795 -0
- package/specs/test/sanity.json +235 -244
- package/specs/test/sync.json +291 -0
- package/specs/test/webshop.json +625 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Sync API",
|
|
5
|
+
"description": "Data synchronization service",
|
|
6
|
+
"version": "v1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://sync.api.test.snokam.no"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"paths": {
|
|
14
|
+
"/v1.0/protected/health/{provider}": {
|
|
15
|
+
"get": {
|
|
16
|
+
"tags": [
|
|
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
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"responses": {
|
|
32
|
+
"200": {
|
|
33
|
+
"description": "Payload of IntegrationHealthResult",
|
|
34
|
+
"content": {
|
|
35
|
+
"application/json": {
|
|
36
|
+
"schema": {
|
|
37
|
+
"$ref": "#/components/schemas/integrationHealthResult"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"x-ms-summary": "Health result"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"security": [
|
|
45
|
+
{
|
|
46
|
+
"Implicit": [
|
|
47
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"/v1.0/azure-ad-to-sanity": {
|
|
54
|
+
"get": {
|
|
55
|
+
"tags": [
|
|
56
|
+
"Sync"
|
|
57
|
+
],
|
|
58
|
+
"summary": "Syncs Azure AD to Sanity",
|
|
59
|
+
"description": "Synchronizes data from Azure AD to Sanity.",
|
|
60
|
+
"operationId": "SyncAzureAdToSanity",
|
|
61
|
+
"responses": {
|
|
62
|
+
"200": {
|
|
63
|
+
"description": "Data synchronized successfully",
|
|
64
|
+
"content": {
|
|
65
|
+
"application/json": {
|
|
66
|
+
"schema": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"x-ms-summary": "Success"
|
|
72
|
+
},
|
|
73
|
+
"401": {
|
|
74
|
+
"description": "Unauthorized access",
|
|
75
|
+
"x-ms-summary": "Unauthorized"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"security": [
|
|
79
|
+
{
|
|
80
|
+
"Implicit": [
|
|
81
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"/v1.0/cv-partner-to-sanity": {
|
|
88
|
+
"get": {
|
|
89
|
+
"tags": [
|
|
90
|
+
"Sync"
|
|
91
|
+
],
|
|
92
|
+
"summary": "Syncs CV Partner to Sanity",
|
|
93
|
+
"description": "Synchronizes data from CV Partner to Sanity.",
|
|
94
|
+
"operationId": "SyncCvPartnerToSanity",
|
|
95
|
+
"responses": {
|
|
96
|
+
"200": {
|
|
97
|
+
"description": "Data synchronized successfully",
|
|
98
|
+
"content": {
|
|
99
|
+
"application/json": {
|
|
100
|
+
"schema": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"x-ms-summary": "Success"
|
|
106
|
+
},
|
|
107
|
+
"401": {
|
|
108
|
+
"description": "Unauthorized access",
|
|
109
|
+
"x-ms-summary": "Unauthorized"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"security": [
|
|
113
|
+
{
|
|
114
|
+
"Implicit": [
|
|
115
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"/v1.0/power-office-to-sanity": {
|
|
122
|
+
"get": {
|
|
123
|
+
"tags": [
|
|
124
|
+
"Sync"
|
|
125
|
+
],
|
|
126
|
+
"summary": "Sync power office data to sanity",
|
|
127
|
+
"description": "Sync power office data to sanity",
|
|
128
|
+
"operationId": "SyncPowerOfficeToSanity",
|
|
129
|
+
"parameters": [
|
|
130
|
+
{
|
|
131
|
+
"name": "from",
|
|
132
|
+
"in": "query",
|
|
133
|
+
"description": "",
|
|
134
|
+
"required": true,
|
|
135
|
+
"schema": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"format": "date-time"
|
|
138
|
+
},
|
|
139
|
+
"x-ms-summary": "Date from"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "to",
|
|
143
|
+
"in": "query",
|
|
144
|
+
"description": "",
|
|
145
|
+
"required": true,
|
|
146
|
+
"schema": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"format": "date-time"
|
|
149
|
+
},
|
|
150
|
+
"x-ms-summary": "Date to"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"responses": {
|
|
154
|
+
"200": {
|
|
155
|
+
"description": "Data synchronized successfully",
|
|
156
|
+
"content": {
|
|
157
|
+
"application/json": {
|
|
158
|
+
"schema": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"x-ms-summary": "Success"
|
|
164
|
+
},
|
|
165
|
+
"401": {
|
|
166
|
+
"description": "Unauthorized access",
|
|
167
|
+
"x-ms-summary": "Unauthorized"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"security": [
|
|
171
|
+
{
|
|
172
|
+
"Implicit": [
|
|
173
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"/v1.0/sanity-groups-to-azure-ad": {
|
|
180
|
+
"get": {
|
|
181
|
+
"tags": [
|
|
182
|
+
"Sync"
|
|
183
|
+
],
|
|
184
|
+
"summary": "Syncs Sanity workgroups to Azure AD",
|
|
185
|
+
"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.",
|
|
186
|
+
"operationId": "SyncSanityGroupsToAzureAd",
|
|
187
|
+
"responses": {
|
|
188
|
+
"200": {
|
|
189
|
+
"description": "Sync stats — groups created/updated, members added/removed.",
|
|
190
|
+
"content": {
|
|
191
|
+
"application/json": {
|
|
192
|
+
"schema": {
|
|
193
|
+
"$ref": "#/components/schemas/syncSanityGroupsResult"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"x-ms-summary": "Success"
|
|
198
|
+
},
|
|
199
|
+
"401": {
|
|
200
|
+
"description": "Unauthorized access",
|
|
201
|
+
"x-ms-summary": "Unauthorized"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"security": [
|
|
205
|
+
{
|
|
206
|
+
"Implicit": [
|
|
207
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"/v1.0/okrs-to-sanity": {
|
|
214
|
+
"get": {
|
|
215
|
+
"tags": [
|
|
216
|
+
"Sync"
|
|
217
|
+
],
|
|
218
|
+
"summary": "Sync OKRs",
|
|
219
|
+
"description": "Synchronizes OKRs",
|
|
220
|
+
"operationId": "SyncOkrs",
|
|
221
|
+
"responses": {
|
|
222
|
+
"200": {
|
|
223
|
+
"description": "OKRs synchronized successfully",
|
|
224
|
+
"x-ms-summary": "Success"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"security": [
|
|
228
|
+
{
|
|
229
|
+
"Implicit": [
|
|
230
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"components": {
|
|
238
|
+
"schemas": {
|
|
239
|
+
"integrationHealthResult": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"properties": {
|
|
242
|
+
"key": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"status": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
"message": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"syncSanityGroupsResult": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"groupsCreated": {
|
|
257
|
+
"type": "integer",
|
|
258
|
+
"format": "int32"
|
|
259
|
+
},
|
|
260
|
+
"groupsUpdated": {
|
|
261
|
+
"type": "integer",
|
|
262
|
+
"format": "int32"
|
|
263
|
+
},
|
|
264
|
+
"membersAdded": {
|
|
265
|
+
"type": "integer",
|
|
266
|
+
"format": "int32"
|
|
267
|
+
},
|
|
268
|
+
"membersRemoved": {
|
|
269
|
+
"type": "integer",
|
|
270
|
+
"format": "int32"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"securitySchemes": {
|
|
276
|
+
"Implicit": {
|
|
277
|
+
"type": "oauth2",
|
|
278
|
+
"flows": {
|
|
279
|
+
"implicit": {
|
|
280
|
+
"authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
|
|
281
|
+
"tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
282
|
+
"refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
283
|
+
"scopes": {
|
|
284
|
+
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default": "Default function scope"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|