@snokam/mcp-api 0.194.1 → 0.196.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.
@@ -1368,244 +1368,6 @@
1368
1368
  ]
1369
1369
  }
1370
1370
  },
1371
- "/v1.0/protected/employees/systems-batch": {
1372
- "post": {
1373
- "tags": [
1374
- "EmployeeSystems"
1375
- ],
1376
- "summary": "Bulk list per-employee system access for a set of UPNs",
1377
- "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.",
1378
- "operationId": "ListEmployeeSystemAccessBatch",
1379
- "requestBody": {
1380
- "content": {
1381
- "application/json": {
1382
- "schema": {
1383
- "$ref": "#/components/schemas/listEmployeeSystemAccessBatchRequest"
1384
- }
1385
- }
1386
- },
1387
- "required": true
1388
- },
1389
- "responses": {
1390
- "200": {
1391
- "description": "Payload of Array of EmployeeSystemAccessRow",
1392
- "content": {
1393
- "application/json": {
1394
- "schema": {
1395
- "type": "array",
1396
- "items": {
1397
- "$ref": "#/components/schemas/employeeSystemAccessRow"
1398
- }
1399
- }
1400
- }
1401
- },
1402
- "x-ms-summary": "Success"
1403
- },
1404
- "401": {
1405
- "description": "No description",
1406
- "x-ms-summary": "Unauthorized"
1407
- }
1408
- },
1409
- "security": [
1410
- {
1411
- "Implicit": [
1412
- "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
1413
- ]
1414
- },
1415
- {
1416
- "ApiKey": []
1417
- }
1418
- ]
1419
- }
1420
- },
1421
- "/v1.0/protected/employees/{upn}/systems": {
1422
- "get": {
1423
- "tags": [
1424
- "EmployeeSystems"
1425
- ],
1426
- "summary": "List per-employee system access (Salesforce, …)",
1427
- "description": "Returns the toggle state of each system the admin can grant or revoke for the employee. UI uses the list to render one column per registry entry.",
1428
- "operationId": "ListEmployeeSystemAccess",
1429
- "parameters": [
1430
- {
1431
- "name": "upn",
1432
- "in": "path",
1433
- "required": true,
1434
- "schema": {
1435
- "type": "string"
1436
- },
1437
- "x-ms-summary": "Employee UPN (work email)"
1438
- }
1439
- ],
1440
- "responses": {
1441
- "200": {
1442
- "description": "Payload of Array of EmployeeSystemAccess",
1443
- "content": {
1444
- "application/json": {
1445
- "schema": {
1446
- "type": "array",
1447
- "items": {
1448
- "$ref": "#/components/schemas/employeeSystemAccess"
1449
- }
1450
- }
1451
- }
1452
- },
1453
- "x-ms-summary": "Success"
1454
- },
1455
- "401": {
1456
- "description": "No description",
1457
- "x-ms-summary": "Unauthorized"
1458
- },
1459
- "404": {
1460
- "description": "No description",
1461
- "x-ms-summary": "Employee not found in Entra"
1462
- }
1463
- },
1464
- "security": [
1465
- {
1466
- "Implicit": [
1467
- "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
1468
- ]
1469
- },
1470
- {
1471
- "ApiKey": []
1472
- }
1473
- ]
1474
- }
1475
- },
1476
- "/v1.0/protected/employees/{upn}/systems/{systemKey}": {
1477
- "post": {
1478
- "tags": [
1479
- "EmployeeSystems"
1480
- ],
1481
- "summary": "Grant the employee access to a system",
1482
- "description": "Triggers the Graph call that backs the system (today: app-role assignment on the matching Enterprise App SP). SCIM-backed apps then provision automatically.",
1483
- "operationId": "AssignEmployeeSystem",
1484
- "parameters": [
1485
- {
1486
- "name": "upn",
1487
- "in": "path",
1488
- "required": true,
1489
- "schema": {
1490
- "type": "string"
1491
- }
1492
- },
1493
- {
1494
- "name": "systemKey",
1495
- "in": "path",
1496
- "required": true,
1497
- "schema": {
1498
- "type": "string"
1499
- },
1500
- "x-ms-summary": "Stable system key (e.g. \"salesforce\")"
1501
- },
1502
- {
1503
- "name": "roleId",
1504
- "in": "query",
1505
- "schema": {
1506
- "type": "string"
1507
- },
1508
- "x-ms-summary": "App-role id to assign; falls back to the tenant's default role when omitted. Assigning a different role than the current one replaces the assignment."
1509
- }
1510
- ],
1511
- "responses": {
1512
- "200": {
1513
- "description": "Payload of EmployeeSystemAccess",
1514
- "content": {
1515
- "application/json": {
1516
- "schema": {
1517
- "$ref": "#/components/schemas/employeeSystemAccess"
1518
- }
1519
- }
1520
- },
1521
- "x-ms-summary": "Success"
1522
- },
1523
- "401": {
1524
- "description": "No description",
1525
- "x-ms-summary": "Unauthorized"
1526
- },
1527
- "404": {
1528
- "description": "No description",
1529
- "x-ms-summary": "Unknown system or employee"
1530
- },
1531
- "501": {
1532
- "description": "No description",
1533
- "x-ms-summary": "System not configured in this environment"
1534
- }
1535
- },
1536
- "security": [
1537
- {
1538
- "Implicit": [
1539
- "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
1540
- ]
1541
- },
1542
- {
1543
- "ApiKey": []
1544
- }
1545
- ]
1546
- },
1547
- "delete": {
1548
- "tags": [
1549
- "EmployeeSystems"
1550
- ],
1551
- "summary": "Revoke the employee's access to a system",
1552
- "description": "Removes the Graph-level assignment that backs the system. SCIM-backed apps deactivate the user on the next sync.",
1553
- "operationId": "RevokeEmployeeSystem",
1554
- "parameters": [
1555
- {
1556
- "name": "upn",
1557
- "in": "path",
1558
- "required": true,
1559
- "schema": {
1560
- "type": "string"
1561
- }
1562
- },
1563
- {
1564
- "name": "systemKey",
1565
- "in": "path",
1566
- "required": true,
1567
- "schema": {
1568
- "type": "string"
1569
- }
1570
- }
1571
- ],
1572
- "responses": {
1573
- "200": {
1574
- "description": "Payload of EmployeeSystemAccess",
1575
- "content": {
1576
- "application/json": {
1577
- "schema": {
1578
- "$ref": "#/components/schemas/employeeSystemAccess"
1579
- }
1580
- }
1581
- },
1582
- "x-ms-summary": "Success"
1583
- },
1584
- "401": {
1585
- "description": "No description",
1586
- "x-ms-summary": "Unauthorized"
1587
- },
1588
- "404": {
1589
- "description": "No description",
1590
- "x-ms-summary": "Unknown system or employee"
1591
- },
1592
- "501": {
1593
- "description": "No description",
1594
- "x-ms-summary": "System not configured in this environment"
1595
- }
1596
- },
1597
- "security": [
1598
- {
1599
- "Implicit": [
1600
- "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
1601
- ]
1602
- },
1603
- {
1604
- "ApiKey": []
1605
- }
1606
- ]
1607
- }
1608
- },
1609
1371
  "/v1.0/protected/candidates/{id}/notification-preview": {
1610
1372
  "get": {
1611
1373
  "tags": [
@@ -2311,49 +2073,6 @@
2311
2073
  }
2312
2074
  }
2313
2075
  },
2314
- "employeeSystemAccess": {
2315
- "type": "object",
2316
- "properties": {
2317
- "key": {
2318
- "type": "string"
2319
- },
2320
- "label": {
2321
- "type": "string"
2322
- },
2323
- "assigned": {
2324
- "type": "boolean"
2325
- },
2326
- "kind": {
2327
- "type": "string"
2328
- },
2329
- "notImplemented": {
2330
- "type": "boolean"
2331
- },
2332
- "assignedRoleId": {
2333
- "type": "string"
2334
- },
2335
- "availableRoles": {
2336
- "type": "array",
2337
- "items": {
2338
- "$ref": "#/components/schemas/systemRoleOption"
2339
- }
2340
- }
2341
- }
2342
- },
2343
- "employeeSystemAccessRow": {
2344
- "type": "object",
2345
- "properties": {
2346
- "upn": {
2347
- "type": "string"
2348
- },
2349
- "systems": {
2350
- "type": "array",
2351
- "items": {
2352
- "$ref": "#/components/schemas/employeeSystemAccess"
2353
- }
2354
- }
2355
- }
2356
- },
2357
2076
  "eventReference": {
2358
2077
  "type": "object",
2359
2078
  "properties": {
@@ -2481,17 +2200,6 @@
2481
2200
  }
2482
2201
  }
2483
2202
  },
2484
- "listEmployeeSystemAccessBatchRequest": {
2485
- "type": "object",
2486
- "properties": {
2487
- "upns": {
2488
- "type": "array",
2489
- "items": {
2490
- "type": "string"
2491
- }
2492
- }
2493
- }
2494
- },
2495
2203
  "onboardingResult": {
2496
2204
  "type": "object",
2497
2205
  "properties": {
@@ -3939,17 +3647,6 @@
3939
3647
  "type": "string"
3940
3648
  }
3941
3649
  }
3942
- },
3943
- "systemRoleOption": {
3944
- "type": "object",
3945
- "properties": {
3946
- "id": {
3947
- "type": "string"
3948
- },
3949
- "label": {
3950
- "type": "string"
3951
- }
3952
- }
3953
3650
  }
3954
3651
  },
3955
3652
  "securitySchemes": {