@snokam/mcp-api 0.33.0 → 0.34.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/recruitment.json +118 -1
- package/specs/test/recruitment.json +118 -1
package/package.json
CHANGED
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
"Candidates"
|
|
760
760
|
],
|
|
761
761
|
"summary": "Reject a candidate",
|
|
762
|
-
"description": "Sets status=REJECTED.
|
|
762
|
+
"description": "Sets status=REJECTED. Optionally sends an admin-edited rejection email and/or SMS — both default to off so the status flip is the only guaranteed side-effect.",
|
|
763
763
|
"operationId": "RejectCandidate",
|
|
764
764
|
"parameters": [
|
|
765
765
|
{
|
|
@@ -772,6 +772,16 @@
|
|
|
772
772
|
"x-ms-summary": "Candidate Sanity id"
|
|
773
773
|
}
|
|
774
774
|
],
|
|
775
|
+
"requestBody": {
|
|
776
|
+
"description": "Optional admin-edited email/SMS draft + per-channel send flags. Omit to reject without notifying.",
|
|
777
|
+
"content": {
|
|
778
|
+
"application/json": {
|
|
779
|
+
"schema": {
|
|
780
|
+
"$ref": "#/components/schemas/rejectCandidateMessage"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
},
|
|
775
785
|
"responses": {
|
|
776
786
|
"200": {
|
|
777
787
|
"description": "Payload of SanityCandidate",
|
|
@@ -802,6 +812,65 @@
|
|
|
802
812
|
]
|
|
803
813
|
}
|
|
804
814
|
},
|
|
815
|
+
"/v1.0/protected/candidates/{id}/rejection-suggestion": {
|
|
816
|
+
"post": {
|
|
817
|
+
"tags": [
|
|
818
|
+
"Candidates"
|
|
819
|
+
],
|
|
820
|
+
"summary": "Draft a personalised rejection email for a candidate",
|
|
821
|
+
"description": "Uses chatgpt-function to generate a Norwegian email + SMS draft based on the candidate, the job position, and optional internal feedback. The admin reviews and edits before deciding whether to send.",
|
|
822
|
+
"operationId": "SuggestRejectionMessage",
|
|
823
|
+
"parameters": [
|
|
824
|
+
{
|
|
825
|
+
"name": "id",
|
|
826
|
+
"in": "path",
|
|
827
|
+
"required": true,
|
|
828
|
+
"schema": {
|
|
829
|
+
"type": "string"
|
|
830
|
+
},
|
|
831
|
+
"x-ms-summary": "Candidate Sanity id"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"requestBody": {
|
|
835
|
+
"description": "Optional internal admin notes used as LLM context (never quoted back to the candidate).",
|
|
836
|
+
"content": {
|
|
837
|
+
"application/json": {
|
|
838
|
+
"schema": {
|
|
839
|
+
"$ref": "#/components/schemas/rejectionSuggestionRequest"
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"responses": {
|
|
845
|
+
"200": {
|
|
846
|
+
"description": "Payload of RejectionSuggestion",
|
|
847
|
+
"content": {
|
|
848
|
+
"application/json": {
|
|
849
|
+
"schema": {
|
|
850
|
+
"$ref": "#/components/schemas/rejectionSuggestion"
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"x-ms-summary": "Success"
|
|
855
|
+
},
|
|
856
|
+
"401": {
|
|
857
|
+
"description": "No description",
|
|
858
|
+
"x-ms-summary": "Unauthorized"
|
|
859
|
+
},
|
|
860
|
+
"404": {
|
|
861
|
+
"description": "No description",
|
|
862
|
+
"x-ms-summary": "Not Found"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"security": [
|
|
866
|
+
{
|
|
867
|
+
"Implicit": [
|
|
868
|
+
"api://b9f9de6f-132f-4a9a-a583-e9054a46f2fa/.default"
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
},
|
|
805
874
|
"/v1.0/protected/job-positions": {
|
|
806
875
|
"get": {
|
|
807
876
|
"tags": [
|
|
@@ -1639,6 +1708,54 @@
|
|
|
1639
1708
|
}
|
|
1640
1709
|
}
|
|
1641
1710
|
},
|
|
1711
|
+
"rejectCandidateMessage": {
|
|
1712
|
+
"type": "object",
|
|
1713
|
+
"properties": {
|
|
1714
|
+
"subject": {
|
|
1715
|
+
"type": "string"
|
|
1716
|
+
},
|
|
1717
|
+
"plainText": {
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
"htmlBody": {
|
|
1721
|
+
"type": "string"
|
|
1722
|
+
},
|
|
1723
|
+
"smsBody": {
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
},
|
|
1726
|
+
"sendEmail": {
|
|
1727
|
+
"type": "boolean"
|
|
1728
|
+
},
|
|
1729
|
+
"sendSms": {
|
|
1730
|
+
"type": "boolean"
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
"rejectionSuggestion": {
|
|
1735
|
+
"type": "object",
|
|
1736
|
+
"properties": {
|
|
1737
|
+
"subject": {
|
|
1738
|
+
"type": "string"
|
|
1739
|
+
},
|
|
1740
|
+
"plainText": {
|
|
1741
|
+
"type": "string"
|
|
1742
|
+
},
|
|
1743
|
+
"htmlBody": {
|
|
1744
|
+
"type": "string"
|
|
1745
|
+
},
|
|
1746
|
+
"smsBody": {
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"rejectionSuggestionRequest": {
|
|
1752
|
+
"type": "object",
|
|
1753
|
+
"properties": {
|
|
1754
|
+
"feedback": {
|
|
1755
|
+
"type": "string"
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
},
|
|
1642
1759
|
"sanityAssetSourceData": {
|
|
1643
1760
|
"type": "object",
|
|
1644
1761
|
"properties": {
|
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
"Candidates"
|
|
760
760
|
],
|
|
761
761
|
"summary": "Reject a candidate",
|
|
762
|
-
"description": "Sets status=REJECTED.
|
|
762
|
+
"description": "Sets status=REJECTED. Optionally sends an admin-edited rejection email and/or SMS — both default to off so the status flip is the only guaranteed side-effect.",
|
|
763
763
|
"operationId": "RejectCandidate",
|
|
764
764
|
"parameters": [
|
|
765
765
|
{
|
|
@@ -772,6 +772,16 @@
|
|
|
772
772
|
"x-ms-summary": "Candidate Sanity id"
|
|
773
773
|
}
|
|
774
774
|
],
|
|
775
|
+
"requestBody": {
|
|
776
|
+
"description": "Optional admin-edited email/SMS draft + per-channel send flags. Omit to reject without notifying.",
|
|
777
|
+
"content": {
|
|
778
|
+
"application/json": {
|
|
779
|
+
"schema": {
|
|
780
|
+
"$ref": "#/components/schemas/rejectCandidateMessage"
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
},
|
|
775
785
|
"responses": {
|
|
776
786
|
"200": {
|
|
777
787
|
"description": "Payload of SanityCandidate",
|
|
@@ -802,6 +812,65 @@
|
|
|
802
812
|
]
|
|
803
813
|
}
|
|
804
814
|
},
|
|
815
|
+
"/v1.0/protected/candidates/{id}/rejection-suggestion": {
|
|
816
|
+
"post": {
|
|
817
|
+
"tags": [
|
|
818
|
+
"Candidates"
|
|
819
|
+
],
|
|
820
|
+
"summary": "Draft a personalised rejection email for a candidate",
|
|
821
|
+
"description": "Uses chatgpt-function to generate a Norwegian email + SMS draft based on the candidate, the job position, and optional internal feedback. The admin reviews and edits before deciding whether to send.",
|
|
822
|
+
"operationId": "SuggestRejectionMessage",
|
|
823
|
+
"parameters": [
|
|
824
|
+
{
|
|
825
|
+
"name": "id",
|
|
826
|
+
"in": "path",
|
|
827
|
+
"required": true,
|
|
828
|
+
"schema": {
|
|
829
|
+
"type": "string"
|
|
830
|
+
},
|
|
831
|
+
"x-ms-summary": "Candidate Sanity id"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"requestBody": {
|
|
835
|
+
"description": "Optional internal admin notes used as LLM context (never quoted back to the candidate).",
|
|
836
|
+
"content": {
|
|
837
|
+
"application/json": {
|
|
838
|
+
"schema": {
|
|
839
|
+
"$ref": "#/components/schemas/rejectionSuggestionRequest"
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"responses": {
|
|
845
|
+
"200": {
|
|
846
|
+
"description": "Payload of RejectionSuggestion",
|
|
847
|
+
"content": {
|
|
848
|
+
"application/json": {
|
|
849
|
+
"schema": {
|
|
850
|
+
"$ref": "#/components/schemas/rejectionSuggestion"
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"x-ms-summary": "Success"
|
|
855
|
+
},
|
|
856
|
+
"401": {
|
|
857
|
+
"description": "No description",
|
|
858
|
+
"x-ms-summary": "Unauthorized"
|
|
859
|
+
},
|
|
860
|
+
"404": {
|
|
861
|
+
"description": "No description",
|
|
862
|
+
"x-ms-summary": "Not Found"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"security": [
|
|
866
|
+
{
|
|
867
|
+
"Implicit": [
|
|
868
|
+
"api://050da74a-523f-48ba-a9de-e5c8d6805a93/.default"
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
},
|
|
805
874
|
"/v1.0/protected/job-positions": {
|
|
806
875
|
"get": {
|
|
807
876
|
"tags": [
|
|
@@ -1639,6 +1708,54 @@
|
|
|
1639
1708
|
}
|
|
1640
1709
|
}
|
|
1641
1710
|
},
|
|
1711
|
+
"rejectCandidateMessage": {
|
|
1712
|
+
"type": "object",
|
|
1713
|
+
"properties": {
|
|
1714
|
+
"subject": {
|
|
1715
|
+
"type": "string"
|
|
1716
|
+
},
|
|
1717
|
+
"plainText": {
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
"htmlBody": {
|
|
1721
|
+
"type": "string"
|
|
1722
|
+
},
|
|
1723
|
+
"smsBody": {
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
},
|
|
1726
|
+
"sendEmail": {
|
|
1727
|
+
"type": "boolean"
|
|
1728
|
+
},
|
|
1729
|
+
"sendSms": {
|
|
1730
|
+
"type": "boolean"
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
"rejectionSuggestion": {
|
|
1735
|
+
"type": "object",
|
|
1736
|
+
"properties": {
|
|
1737
|
+
"subject": {
|
|
1738
|
+
"type": "string"
|
|
1739
|
+
},
|
|
1740
|
+
"plainText": {
|
|
1741
|
+
"type": "string"
|
|
1742
|
+
},
|
|
1743
|
+
"htmlBody": {
|
|
1744
|
+
"type": "string"
|
|
1745
|
+
},
|
|
1746
|
+
"smsBody": {
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"rejectionSuggestionRequest": {
|
|
1752
|
+
"type": "object",
|
|
1753
|
+
"properties": {
|
|
1754
|
+
"feedback": {
|
|
1755
|
+
"type": "string"
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
},
|
|
1642
1759
|
"sanityAssetSourceData": {
|
|
1643
1760
|
"type": "object",
|
|
1644
1761
|
"properties": {
|