@smartytalent/mcp-tools 0.1.33-dev.39 → 0.1.33-dev.40

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.
Files changed (2) hide show
  1. package/dist/tools.json +101 -10
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -17055,6 +17055,10 @@
17055
17055
  {
17056
17056
  "type": "object",
17057
17057
  "description": "situational-judgment",
17058
+ "required": [
17059
+ "best",
17060
+ "worst"
17061
+ ],
17058
17062
  "properties": {
17059
17063
  "best": {
17060
17064
  "type": "string"
@@ -17537,6 +17541,10 @@
17537
17541
  {
17538
17542
  "type": "object",
17539
17543
  "description": "situational-judgment",
17544
+ "required": [
17545
+ "best",
17546
+ "worst"
17547
+ ],
17540
17548
  "properties": {
17541
17549
  "best": {
17542
17550
  "type": "string"
@@ -17805,6 +17813,7 @@
17805
17813
  "name": "start_guest_attempt",
17806
17814
  "description": "Start Guest Attempt",
17807
17815
  "inputSchema": {
17816
+ "title": "StartGuestAttemptRequestBody",
17808
17817
  "type": "object",
17809
17818
  "required": [
17810
17819
  "data",
@@ -17812,6 +17821,7 @@
17812
17821
  ],
17813
17822
  "properties": {
17814
17823
  "data": {
17824
+ "title": "StartGuestAttemptRequestBodyData",
17815
17825
  "type": "object",
17816
17826
  "required": [
17817
17827
  "type",
@@ -17897,6 +17907,7 @@
17897
17907
  "name": "update_guest_attempt",
17898
17908
  "description": "Update Guest Attempt",
17899
17909
  "inputSchema": {
17910
+ "title": "UpdateGuestAttemptRequestBody",
17900
17911
  "type": "object",
17901
17912
  "required": [
17902
17913
  "data",
@@ -17904,6 +17915,7 @@
17904
17915
  ],
17905
17916
  "properties": {
17906
17917
  "data": {
17918
+ "title": "UpdateGuestAttemptRequestBodyData",
17907
17919
  "type": "object",
17908
17920
  "required": [
17909
17921
  "type",
@@ -17920,37 +17932,95 @@
17920
17932
  "type": "string"
17921
17933
  },
17922
17934
  "attributes": {
17935
+ "title": "UpdateGuestAttemptRequestBodyDataAttributes",
17923
17936
  "type": "object",
17924
17937
  "properties": {
17925
17938
  "answers": {
17926
17939
  "type": "array",
17927
- "description": "Per-question answer objects. Free-form because question types vary (multiple-choice, free-text, file upload, code editor).",
17940
+ "description": "Per-question answers. Each entry follows the\ncanonical AnswerSchema with `value` as the\ntype-discriminated payload (string / number /\nstring[] / situational-judgment object).",
17928
17941
  "items": {
17942
+ "title": "AnswerSchema",
17943
+ "description": "A candidate's answer to one question. The `value` shape depends\non the question type - branch on `questionType` to know how to\nread it. File uploads (file-upload / video-recording question\ntypes) live in the separate `files` array, NOT in `value`. This\nmirrors the wire shape used by /v1/guest/attempts/{id} PATCH\nand avoids OpenAPI generator collisions on multiple array\nvariants in a single oneOf.",
17929
17944
  "type": "object",
17945
+ "required": [
17946
+ "questionId"
17947
+ ],
17930
17948
  "properties": {
17931
17949
  "questionId": {
17932
- "type": "string"
17950
+ "type": "string",
17951
+ "description": "References QuestionSchema.questionId."
17933
17952
  },
17934
- "answer": {
17935
- "description": "Candidate's answer - string, number, array of selected option ids, etc. Validation against the template's question type happens at evaluation time."
17953
+ "questionType": {
17954
+ "type": "string",
17955
+ "description": "Mirror of the question's type for client-side discrimination.",
17956
+ "enum": [
17957
+ "single-choice",
17958
+ "multiple-choice",
17959
+ "scale",
17960
+ "open-text",
17961
+ "ranking",
17962
+ "situational-judgment",
17963
+ "file-upload",
17964
+ "video-recording"
17965
+ ]
17966
+ },
17967
+ "value": {
17968
+ "description": "Non-file answer payload. Discriminated by questionType:\n single-choice -> string (option id)\n multiple-choice -> string[] (option ids)\n scale -> number\n open-text -> string\n ranking -> string[] (option ids in order)\n situational-judgment -> { best: string; worst: string }\n file-upload -> usually empty / null (use `files`)\n video-recording -> usually empty / null (use `files`)",
17969
+ "oneOf": [
17970
+ {
17971
+ "type": "string",
17972
+ "description": "single-choice / open-text"
17973
+ },
17974
+ {
17975
+ "type": "number",
17976
+ "description": "scale"
17977
+ },
17978
+ {
17979
+ "type": "array",
17980
+ "items": {
17981
+ "type": "string"
17982
+ },
17983
+ "description": "multiple-choice / ranking - array of option ids"
17984
+ },
17985
+ {
17986
+ "type": "object",
17987
+ "description": "situational-judgment",
17988
+ "required": [
17989
+ "best",
17990
+ "worst"
17991
+ ],
17992
+ "properties": {
17993
+ "best": {
17994
+ "type": "string"
17995
+ },
17996
+ "worst": {
17997
+ "type": "string"
17998
+ }
17999
+ }
18000
+ }
18001
+ ]
17936
18002
  },
17937
18003
  "files": {
17938
18004
  "type": "array",
17939
- "description": "Optional file uploads attached to this answer.",
18005
+ "description": "File / video uploads for `file-upload` and `video-recording`\nquestion types. Empty for all other types. Files are uploaded\nvia presigned PUT to S3 first; this carries the resulting\nreferences.",
17940
18006
  "items": {
18007
+ "title": "AnswerFileSchema",
18008
+ "description": "File reference for upload-type answers. fileUrl is the S3 path; FE never writes there directly - server issues presigned PUT.",
17941
18009
  "type": "object",
17942
18010
  "properties": {
17943
- "fileKey": {
17944
- "type": "string"
18011
+ "fileUrl": {
18012
+ "type": "string",
18013
+ "description": "S3 location (s3://bucket/key) - resolves to a presigned download URL on the recruiter review screen."
17945
18014
  },
17946
- "fileName": {
18015
+ "originalFilename": {
17947
18016
  "type": "string"
17948
18017
  },
17949
18018
  "contentType": {
17950
18019
  "type": "string"
17951
18020
  },
17952
18021
  "size": {
17953
- "type": "integer"
18022
+ "type": "integer",
18023
+ "description": "Bytes."
17954
18024
  }
17955
18025
  }
17956
18026
  }
@@ -17959,10 +18029,31 @@
17959
18029
  }
17960
18030
  },
17961
18031
  "proctoring": {
17962
- "type": "object"
18032
+ "title": "AttemptProctoringSchema",
18033
+ "description": "Anti-cheat telemetry collected by the candidate UI. Not used to block, only to inform recruiters.",
18034
+ "type": "object",
18035
+ "properties": {
18036
+ "tabSwitches": {
18037
+ "type": "integer"
18038
+ },
18039
+ "pasteEvents": {
18040
+ "type": "integer"
18041
+ },
18042
+ "focusLost": {
18043
+ "type": "integer",
18044
+ "description": "Total milliseconds the window was unfocused."
18045
+ },
18046
+ "suspiciousFlags": {
18047
+ "type": "array",
18048
+ "items": {
18049
+ "type": "string"
18050
+ }
18051
+ }
18052
+ }
17963
18053
  },
17964
18054
  "status": {
17965
18055
  "type": "string",
18056
+ "description": "Only `submitted` is candidate-writable through\nthis path. Other transitions (evaluated, etc.)\nare server-set.",
17966
18057
  "enum": [
17967
18058
  "submitted"
17968
18059
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/mcp-tools",
3
- "version": "0.1.33-dev.39",
3
+ "version": "0.1.33-dev.40",
4
4
  "description": "MCP tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",