@smartytalent/openai-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
@@ -16517,6 +16517,10 @@
16517
16517
  {
16518
16518
  "type": "object",
16519
16519
  "description": "situational-judgment",
16520
+ "required": [
16521
+ "best",
16522
+ "worst"
16523
+ ],
16520
16524
  "properties": {
16521
16525
  "best": {
16522
16526
  "type": "string"
@@ -16991,6 +16995,10 @@
16991
16995
  {
16992
16996
  "type": "object",
16993
16997
  "description": "situational-judgment",
16998
+ "required": [
16999
+ "best",
17000
+ "worst"
17001
+ ],
16994
17002
  "properties": {
16995
17003
  "best": {
16996
17004
  "type": "string"
@@ -17249,6 +17257,7 @@
17249
17257
  "name": "start_guest_attempt",
17250
17258
  "description": "Start Guest Attempt",
17251
17259
  "parameters": {
17260
+ "title": "StartGuestAttemptRequestBody",
17252
17261
  "type": "object",
17253
17262
  "required": [
17254
17263
  "data",
@@ -17256,6 +17265,7 @@
17256
17265
  ],
17257
17266
  "properties": {
17258
17267
  "data": {
17268
+ "title": "StartGuestAttemptRequestBodyData",
17259
17269
  "type": "object",
17260
17270
  "required": [
17261
17271
  "type",
@@ -17335,6 +17345,7 @@
17335
17345
  "name": "update_guest_attempt",
17336
17346
  "description": "Update Guest Attempt",
17337
17347
  "parameters": {
17348
+ "title": "UpdateGuestAttemptRequestBody",
17338
17349
  "type": "object",
17339
17350
  "required": [
17340
17351
  "data",
@@ -17342,6 +17353,7 @@
17342
17353
  ],
17343
17354
  "properties": {
17344
17355
  "data": {
17356
+ "title": "UpdateGuestAttemptRequestBodyData",
17345
17357
  "type": "object",
17346
17358
  "required": [
17347
17359
  "type",
@@ -17358,37 +17370,95 @@
17358
17370
  "type": "string"
17359
17371
  },
17360
17372
  "attributes": {
17373
+ "title": "UpdateGuestAttemptRequestBodyDataAttributes",
17361
17374
  "type": "object",
17362
17375
  "properties": {
17363
17376
  "answers": {
17364
17377
  "type": "array",
17365
- "description": "Per-question answer objects. Free-form because question types vary (multiple-choice, free-text, file upload, code editor).",
17378
+ "description": "Per-question answers. Each entry follows the\ncanonical AnswerSchema with `value` as the\ntype-discriminated payload (string / number /\nstring[] / situational-judgment object).",
17366
17379
  "items": {
17380
+ "title": "AnswerSchema",
17381
+ "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.",
17367
17382
  "type": "object",
17383
+ "required": [
17384
+ "questionId"
17385
+ ],
17368
17386
  "properties": {
17369
17387
  "questionId": {
17370
- "type": "string"
17388
+ "type": "string",
17389
+ "description": "References QuestionSchema.questionId."
17371
17390
  },
17372
- "answer": {
17373
- "description": "Candidate's answer - string, number, array of selected option ids, etc. Validation against the template's question type happens at evaluation time."
17391
+ "questionType": {
17392
+ "type": "string",
17393
+ "description": "Mirror of the question's type for client-side discrimination.",
17394
+ "enum": [
17395
+ "single-choice",
17396
+ "multiple-choice",
17397
+ "scale",
17398
+ "open-text",
17399
+ "ranking",
17400
+ "situational-judgment",
17401
+ "file-upload",
17402
+ "video-recording"
17403
+ ]
17404
+ },
17405
+ "value": {
17406
+ "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`)",
17407
+ "oneOf": [
17408
+ {
17409
+ "type": "string",
17410
+ "description": "single-choice / open-text"
17411
+ },
17412
+ {
17413
+ "type": "number",
17414
+ "description": "scale"
17415
+ },
17416
+ {
17417
+ "type": "array",
17418
+ "items": {
17419
+ "type": "string"
17420
+ },
17421
+ "description": "multiple-choice / ranking - array of option ids"
17422
+ },
17423
+ {
17424
+ "type": "object",
17425
+ "description": "situational-judgment",
17426
+ "required": [
17427
+ "best",
17428
+ "worst"
17429
+ ],
17430
+ "properties": {
17431
+ "best": {
17432
+ "type": "string"
17433
+ },
17434
+ "worst": {
17435
+ "type": "string"
17436
+ }
17437
+ }
17438
+ }
17439
+ ]
17374
17440
  },
17375
17441
  "files": {
17376
17442
  "type": "array",
17377
- "description": "Optional file uploads attached to this answer.",
17443
+ "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.",
17378
17444
  "items": {
17445
+ "title": "AnswerFileSchema",
17446
+ "description": "File reference for upload-type answers. fileUrl is the S3 path; FE never writes there directly - server issues presigned PUT.",
17379
17447
  "type": "object",
17380
17448
  "properties": {
17381
- "fileKey": {
17382
- "type": "string"
17449
+ "fileUrl": {
17450
+ "type": "string",
17451
+ "description": "S3 location (s3://bucket/key) - resolves to a presigned download URL on the recruiter review screen."
17383
17452
  },
17384
- "fileName": {
17453
+ "originalFilename": {
17385
17454
  "type": "string"
17386
17455
  },
17387
17456
  "contentType": {
17388
17457
  "type": "string"
17389
17458
  },
17390
17459
  "size": {
17391
- "type": "integer"
17460
+ "type": "integer",
17461
+ "description": "Bytes."
17392
17462
  }
17393
17463
  }
17394
17464
  }
@@ -17397,10 +17467,31 @@
17397
17467
  }
17398
17468
  },
17399
17469
  "proctoring": {
17400
- "type": "object"
17470
+ "title": "AttemptProctoringSchema",
17471
+ "description": "Anti-cheat telemetry collected by the candidate UI. Not used to block, only to inform recruiters.",
17472
+ "type": "object",
17473
+ "properties": {
17474
+ "tabSwitches": {
17475
+ "type": "integer"
17476
+ },
17477
+ "pasteEvents": {
17478
+ "type": "integer"
17479
+ },
17480
+ "focusLost": {
17481
+ "type": "integer",
17482
+ "description": "Total milliseconds the window was unfocused."
17483
+ },
17484
+ "suspiciousFlags": {
17485
+ "type": "array",
17486
+ "items": {
17487
+ "type": "string"
17488
+ }
17489
+ }
17490
+ }
17401
17491
  },
17402
17492
  "status": {
17403
17493
  "type": "string",
17494
+ "description": "Only `submitted` is candidate-writable through\nthis path. Other transitions (evaluated, etc.)\nare server-set.",
17404
17495
  "enum": [
17405
17496
  "submitted"
17406
17497
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.1.33-dev.39",
3
+ "version": "0.1.33-dev.40",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",