@snokam/mcp-api 0.54.0 → 0.56.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.54.0",
3
+ "version": "0.56.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": {
@@ -1635,6 +1635,69 @@
1635
1635
  }
1636
1636
  ]
1637
1637
  }
1638
+ },
1639
+ "/v1.0/protected/candidates/{id}/issue-pin": {
1640
+ "post": {
1641
+ "tags": [
1642
+ "Candidates"
1643
+ ],
1644
+ "summary": "Generate or set a candidate PIN code and SMS it to them",
1645
+ "description": "Issues the six-digit PIN that gates the candidate's tilbud-, signert- and onboarding-side. Pass an empty body to generate a fresh code; pass {\"pin\": \"123456\"} to override with a specific value (handy when the candidate calls in for help). Patches candidate.pin in Sanity and SMSes the code to candidate.telephone via notifications-function. Returns the updated candidate.",
1646
+ "operationId": "IssueCandidatePin",
1647
+ "parameters": [
1648
+ {
1649
+ "name": "id",
1650
+ "in": "path",
1651
+ "required": true,
1652
+ "schema": {
1653
+ "type": "string"
1654
+ },
1655
+ "x-ms-summary": "Candidate Sanity id"
1656
+ }
1657
+ ],
1658
+ "requestBody": {
1659
+ "description": "Optional override",
1660
+ "content": {
1661
+ "application/json": {
1662
+ "schema": {
1663
+ "$ref": "#/components/schemas/issueCandidatePinRequest"
1664
+ }
1665
+ }
1666
+ }
1667
+ },
1668
+ "responses": {
1669
+ "200": {
1670
+ "description": "Payload of SanityCandidate",
1671
+ "content": {
1672
+ "application/json": {
1673
+ "schema": {
1674
+ "$ref": "#/components/schemas/sanityCandidate"
1675
+ }
1676
+ }
1677
+ },
1678
+ "x-ms-summary": "Success"
1679
+ },
1680
+ "400": {
1681
+ "description": "No description",
1682
+ "x-ms-summary": "Invalid PIN value"
1683
+ },
1684
+ "401": {
1685
+ "description": "No description",
1686
+ "x-ms-summary": "Unauthorized"
1687
+ },
1688
+ "404": {
1689
+ "description": "No description",
1690
+ "x-ms-summary": "Not Found"
1691
+ }
1692
+ },
1693
+ "security": [
1694
+ {
1695
+ "Implicit": [
1696
+ "api://b9f9de6f-132f-4a9a-a583-e9054a46f2fa/.default"
1697
+ ]
1698
+ }
1699
+ ]
1700
+ }
1638
1701
  }
1639
1702
  },
1640
1703
  "components": {
@@ -1814,6 +1877,14 @@
1814
1877
  }
1815
1878
  }
1816
1879
  },
1880
+ "issueCandidatePinRequest": {
1881
+ "type": "object",
1882
+ "properties": {
1883
+ "pin": {
1884
+ "type": "string"
1885
+ }
1886
+ }
1887
+ },
1817
1888
  "jobPositionReference": {
1818
1889
  "type": "object",
1819
1890
  "properties": {
@@ -2081,6 +2152,9 @@
2081
2152
  "personalNumber": {
2082
2153
  "type": "string"
2083
2154
  },
2155
+ "pin": {
2156
+ "type": "string"
2157
+ },
2084
2158
  "preferredDisplayName": {
2085
2159
  "type": "string"
2086
2160
  },
@@ -2711,6 +2785,9 @@
2711
2785
  "personalNumber": {
2712
2786
  "type": "string"
2713
2787
  },
2788
+ "pin": {
2789
+ "type": "string"
2790
+ },
2714
2791
  "preferredDisplayName": {
2715
2792
  "type": "string"
2716
2793
  },
@@ -31459,6 +31459,9 @@
31459
31459
  "type": "object",
31460
31460
  "nullable": true
31461
31461
  },
31462
+ "pin": {
31463
+ "type": "string"
31464
+ },
31462
31465
  "personalNumber": {
31463
31466
  "type": "string"
31464
31467
  },
@@ -31747,6 +31750,10 @@
31747
31750
  "type": "string",
31748
31751
  "nullable": true
31749
31752
  },
31753
+ "pin": {
31754
+ "type": "string",
31755
+ "nullable": true
31756
+ },
31750
31757
  "contractSigner": {
31751
31758
  "allOf": [
31752
31759
  {