@snokam/mcp-api 0.194.0 → 0.195.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/production/employees.json +1240 -0
- package/specs/production/recruitment.json +0 -275
- package/specs/test/employees.json +1240 -0
- package/specs/test/recruitment.json +0 -275
- package/specs/test/accounting.json +0 -6054
|
@@ -1368,236 +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
|
-
"responses": {
|
|
1504
|
-
"200": {
|
|
1505
|
-
"description": "Payload of EmployeeSystemAccess",
|
|
1506
|
-
"content": {
|
|
1507
|
-
"application/json": {
|
|
1508
|
-
"schema": {
|
|
1509
|
-
"$ref": "#/components/schemas/employeeSystemAccess"
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
"x-ms-summary": "Success"
|
|
1514
|
-
},
|
|
1515
|
-
"401": {
|
|
1516
|
-
"description": "No description",
|
|
1517
|
-
"x-ms-summary": "Unauthorized"
|
|
1518
|
-
},
|
|
1519
|
-
"404": {
|
|
1520
|
-
"description": "No description",
|
|
1521
|
-
"x-ms-summary": "Unknown system or employee"
|
|
1522
|
-
},
|
|
1523
|
-
"501": {
|
|
1524
|
-
"description": "No description",
|
|
1525
|
-
"x-ms-summary": "System not configured in this environment"
|
|
1526
|
-
}
|
|
1527
|
-
},
|
|
1528
|
-
"security": [
|
|
1529
|
-
{
|
|
1530
|
-
"Implicit": [
|
|
1531
|
-
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
1532
|
-
]
|
|
1533
|
-
},
|
|
1534
|
-
{
|
|
1535
|
-
"ApiKey": []
|
|
1536
|
-
}
|
|
1537
|
-
]
|
|
1538
|
-
},
|
|
1539
|
-
"delete": {
|
|
1540
|
-
"tags": [
|
|
1541
|
-
"EmployeeSystems"
|
|
1542
|
-
],
|
|
1543
|
-
"summary": "Revoke the employee's access to a system",
|
|
1544
|
-
"description": "Removes the Graph-level assignment that backs the system. SCIM-backed apps deactivate the user on the next sync.",
|
|
1545
|
-
"operationId": "RevokeEmployeeSystem",
|
|
1546
|
-
"parameters": [
|
|
1547
|
-
{
|
|
1548
|
-
"name": "upn",
|
|
1549
|
-
"in": "path",
|
|
1550
|
-
"required": true,
|
|
1551
|
-
"schema": {
|
|
1552
|
-
"type": "string"
|
|
1553
|
-
}
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"name": "systemKey",
|
|
1557
|
-
"in": "path",
|
|
1558
|
-
"required": true,
|
|
1559
|
-
"schema": {
|
|
1560
|
-
"type": "string"
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
],
|
|
1564
|
-
"responses": {
|
|
1565
|
-
"200": {
|
|
1566
|
-
"description": "Payload of EmployeeSystemAccess",
|
|
1567
|
-
"content": {
|
|
1568
|
-
"application/json": {
|
|
1569
|
-
"schema": {
|
|
1570
|
-
"$ref": "#/components/schemas/employeeSystemAccess"
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
},
|
|
1574
|
-
"x-ms-summary": "Success"
|
|
1575
|
-
},
|
|
1576
|
-
"401": {
|
|
1577
|
-
"description": "No description",
|
|
1578
|
-
"x-ms-summary": "Unauthorized"
|
|
1579
|
-
},
|
|
1580
|
-
"404": {
|
|
1581
|
-
"description": "No description",
|
|
1582
|
-
"x-ms-summary": "Unknown system or employee"
|
|
1583
|
-
},
|
|
1584
|
-
"501": {
|
|
1585
|
-
"description": "No description",
|
|
1586
|
-
"x-ms-summary": "System not configured in this environment"
|
|
1587
|
-
}
|
|
1588
|
-
},
|
|
1589
|
-
"security": [
|
|
1590
|
-
{
|
|
1591
|
-
"Implicit": [
|
|
1592
|
-
"api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
|
|
1593
|
-
]
|
|
1594
|
-
},
|
|
1595
|
-
{
|
|
1596
|
-
"ApiKey": []
|
|
1597
|
-
}
|
|
1598
|
-
]
|
|
1599
|
-
}
|
|
1600
|
-
},
|
|
1601
1371
|
"/v1.0/protected/candidates/{id}/notification-preview": {
|
|
1602
1372
|
"get": {
|
|
1603
1373
|
"tags": [
|
|
@@ -2303,40 +2073,6 @@
|
|
|
2303
2073
|
}
|
|
2304
2074
|
}
|
|
2305
2075
|
},
|
|
2306
|
-
"employeeSystemAccess": {
|
|
2307
|
-
"type": "object",
|
|
2308
|
-
"properties": {
|
|
2309
|
-
"key": {
|
|
2310
|
-
"type": "string"
|
|
2311
|
-
},
|
|
2312
|
-
"label": {
|
|
2313
|
-
"type": "string"
|
|
2314
|
-
},
|
|
2315
|
-
"assigned": {
|
|
2316
|
-
"type": "boolean"
|
|
2317
|
-
},
|
|
2318
|
-
"kind": {
|
|
2319
|
-
"type": "string"
|
|
2320
|
-
},
|
|
2321
|
-
"notImplemented": {
|
|
2322
|
-
"type": "boolean"
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
},
|
|
2326
|
-
"employeeSystemAccessRow": {
|
|
2327
|
-
"type": "object",
|
|
2328
|
-
"properties": {
|
|
2329
|
-
"upn": {
|
|
2330
|
-
"type": "string"
|
|
2331
|
-
},
|
|
2332
|
-
"systems": {
|
|
2333
|
-
"type": "array",
|
|
2334
|
-
"items": {
|
|
2335
|
-
"$ref": "#/components/schemas/employeeSystemAccess"
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
},
|
|
2340
2076
|
"eventReference": {
|
|
2341
2077
|
"type": "object",
|
|
2342
2078
|
"properties": {
|
|
@@ -2464,17 +2200,6 @@
|
|
|
2464
2200
|
}
|
|
2465
2201
|
}
|
|
2466
2202
|
},
|
|
2467
|
-
"listEmployeeSystemAccessBatchRequest": {
|
|
2468
|
-
"type": "object",
|
|
2469
|
-
"properties": {
|
|
2470
|
-
"upns": {
|
|
2471
|
-
"type": "array",
|
|
2472
|
-
"items": {
|
|
2473
|
-
"type": "string"
|
|
2474
|
-
}
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
},
|
|
2478
2203
|
"onboardingResult": {
|
|
2479
2204
|
"type": "object",
|
|
2480
2205
|
"properties": {
|