@snokam/mcp-api 0.76.3 → 0.78.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snokam/mcp-api",
3
- "version": "0.76.3",
3
+ "version": "0.78.0",
4
4
  "description": "MCP server exposing Snokam backend APIs as tools for Claude Code and other MCP clients",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1204,6 +1204,53 @@
1204
1204
  ]
1205
1205
  }
1206
1206
  },
1207
+ "/v1.0/protected/employees/systems-batch": {
1208
+ "post": {
1209
+ "tags": [
1210
+ "EmployeeSystems"
1211
+ ],
1212
+ "summary": "Bulk list per-employee system access for a set of UPNs",
1213
+ "description": "/ansatte renders one row per employee with a checkbox per registered system. This batch endpoint resolves them all in a single backend roundtrip — fans out N parallel Graph calls server-side instead of N round-trips from the browser.",
1214
+ "operationId": "ListEmployeeSystemAccessBatch",
1215
+ "requestBody": {
1216
+ "content": {
1217
+ "application/json": {
1218
+ "schema": {
1219
+ "$ref": "#/components/schemas/listEmployeeSystemAccessBatchRequest"
1220
+ }
1221
+ }
1222
+ },
1223
+ "required": true
1224
+ },
1225
+ "responses": {
1226
+ "200": {
1227
+ "description": "Payload of Array of EmployeeSystemAccessRow",
1228
+ "content": {
1229
+ "application/json": {
1230
+ "schema": {
1231
+ "type": "array",
1232
+ "items": {
1233
+ "$ref": "#/components/schemas/employeeSystemAccessRow"
1234
+ }
1235
+ }
1236
+ }
1237
+ },
1238
+ "x-ms-summary": "Success"
1239
+ },
1240
+ "401": {
1241
+ "description": "No description",
1242
+ "x-ms-summary": "Unauthorized"
1243
+ }
1244
+ },
1245
+ "security": [
1246
+ {
1247
+ "Implicit": [
1248
+ "api://b9f9de6f-132f-4a9a-a583-e9054a46f2fa/.default"
1249
+ ]
1250
+ }
1251
+ ]
1252
+ }
1253
+ },
1207
1254
  "/v1.0/protected/employees/{upn}/systems": {
1208
1255
  "get": {
1209
1256
  "tags": [
@@ -2069,6 +2116,20 @@
2069
2116
  }
2070
2117
  }
2071
2118
  },
2119
+ "employeeSystemAccessRow": {
2120
+ "type": "object",
2121
+ "properties": {
2122
+ "upn": {
2123
+ "type": "string"
2124
+ },
2125
+ "systems": {
2126
+ "type": "array",
2127
+ "items": {
2128
+ "$ref": "#/components/schemas/employeeSystemAccess"
2129
+ }
2130
+ }
2131
+ }
2132
+ },
2072
2133
  "issueCandidatePinRequest": {
2073
2134
  "type": "object",
2074
2135
  "properties": {
@@ -2095,6 +2156,17 @@
2095
2156
  }
2096
2157
  }
2097
2158
  },
2159
+ "listEmployeeSystemAccessBatchRequest": {
2160
+ "type": "object",
2161
+ "properties": {
2162
+ "upns": {
2163
+ "type": "array",
2164
+ "items": {
2165
+ "type": "string"
2166
+ }
2167
+ }
2168
+ }
2169
+ },
2098
2170
  "onboardingResult": {
2099
2171
  "type": "object",
2100
2172
  "properties": {
@@ -3858,6 +3858,48 @@
3858
3858
  }
3859
3859
  }
3860
3860
  },
3861
+ "questionLocation": {
3862
+ "type": "object",
3863
+ "properties": {
3864
+ "xmlPart": {
3865
+ "type": "string",
3866
+ "nullable": true
3867
+ },
3868
+ "bodyIndex": {
3869
+ "type": "integer",
3870
+ "format": "int32",
3871
+ "nullable": true
3872
+ },
3873
+ "tableIndex": {
3874
+ "type": "integer",
3875
+ "format": "int32",
3876
+ "nullable": true
3877
+ },
3878
+ "rowIndex": {
3879
+ "type": "integer",
3880
+ "format": "int32",
3881
+ "nullable": true
3882
+ },
3883
+ "colIndex": {
3884
+ "type": "integer",
3885
+ "format": "int32",
3886
+ "nullable": true
3887
+ },
3888
+ "sdtId": {
3889
+ "type": "string",
3890
+ "nullable": true
3891
+ },
3892
+ "sheetName": {
3893
+ "type": "string",
3894
+ "nullable": true
3895
+ },
3896
+ "cellReference": {
3897
+ "type": "string",
3898
+ "nullable": true
3899
+ }
3900
+ },
3901
+ "nullable": true
3902
+ },
3861
3903
  "salesforceAttributes": {
3862
3904
  "type": "object",
3863
3905
  "properties": {
@@ -1204,6 +1204,53 @@
1204
1204
  ]
1205
1205
  }
1206
1206
  },
1207
+ "/v1.0/protected/employees/systems-batch": {
1208
+ "post": {
1209
+ "tags": [
1210
+ "EmployeeSystems"
1211
+ ],
1212
+ "summary": "Bulk list per-employee system access for a set of UPNs",
1213
+ "description": "/ansatte renders one row per employee with a checkbox per registered system. This batch endpoint resolves them all in a single backend roundtrip — fans out N parallel Graph calls server-side instead of N round-trips from the browser.",
1214
+ "operationId": "ListEmployeeSystemAccessBatch",
1215
+ "requestBody": {
1216
+ "content": {
1217
+ "application/json": {
1218
+ "schema": {
1219
+ "$ref": "#/components/schemas/listEmployeeSystemAccessBatchRequest"
1220
+ }
1221
+ }
1222
+ },
1223
+ "required": true
1224
+ },
1225
+ "responses": {
1226
+ "200": {
1227
+ "description": "Payload of Array of EmployeeSystemAccessRow",
1228
+ "content": {
1229
+ "application/json": {
1230
+ "schema": {
1231
+ "type": "array",
1232
+ "items": {
1233
+ "$ref": "#/components/schemas/employeeSystemAccessRow"
1234
+ }
1235
+ }
1236
+ }
1237
+ },
1238
+ "x-ms-summary": "Success"
1239
+ },
1240
+ "401": {
1241
+ "description": "No description",
1242
+ "x-ms-summary": "Unauthorized"
1243
+ }
1244
+ },
1245
+ "security": [
1246
+ {
1247
+ "Implicit": [
1248
+ "api://050da74a-523f-48ba-a9de-e5c8d6805a93/.default"
1249
+ ]
1250
+ }
1251
+ ]
1252
+ }
1253
+ },
1207
1254
  "/v1.0/protected/employees/{upn}/systems": {
1208
1255
  "get": {
1209
1256
  "tags": [
@@ -2069,6 +2116,20 @@
2069
2116
  }
2070
2117
  }
2071
2118
  },
2119
+ "employeeSystemAccessRow": {
2120
+ "type": "object",
2121
+ "properties": {
2122
+ "upn": {
2123
+ "type": "string"
2124
+ },
2125
+ "systems": {
2126
+ "type": "array",
2127
+ "items": {
2128
+ "$ref": "#/components/schemas/employeeSystemAccess"
2129
+ }
2130
+ }
2131
+ }
2132
+ },
2072
2133
  "issueCandidatePinRequest": {
2073
2134
  "type": "object",
2074
2135
  "properties": {
@@ -2095,6 +2156,17 @@
2095
2156
  }
2096
2157
  }
2097
2158
  },
2159
+ "listEmployeeSystemAccessBatchRequest": {
2160
+ "type": "object",
2161
+ "properties": {
2162
+ "upns": {
2163
+ "type": "array",
2164
+ "items": {
2165
+ "type": "string"
2166
+ }
2167
+ }
2168
+ }
2169
+ },
2098
2170
  "onboardingResult": {
2099
2171
  "type": "object",
2100
2172
  "properties": {