@smartytalent/openai-tools 0.1.33-dev.44 → 0.1.33-dev.46

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 +71 -15
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -16539,15 +16539,16 @@
16539
16539
  "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.",
16540
16540
  "items": {
16541
16541
  "title": "AnswerFileSchema",
16542
- "description": "File reference for upload-type answers. fileUrl is the S3 path; FE never writes there directly - server issues presigned PUT.",
16542
+ "description": "File reference for upload-type answers (file-upload /\nvideo-recording question types). The candidate UI obtains\n`fileKey` from POST /v1/guest/attempts/uploads, PUTs the file\nto S3 via the presigned URL returned alongside it, then\nincludes a reference like `{fileKey, fileName, contentType,\nsize}` here on the guest PATCH submission. Wire field names\nmatch what file:process and the eval Lambda's\n_enrich_answers_with_file_content expect (fileKey, not\nfileUrl - the S3 path is server-side only).",
16543
16543
  "type": "object",
16544
16544
  "properties": {
16545
- "fileUrl": {
16545
+ "fileKey": {
16546
16546
  "type": "string",
16547
- "description": "S3 location (s3://bucket/key) - resolves to a presigned download URL on the recruiter review screen."
16547
+ "description": "S3 key in the attempt bucket. Returned by POST /v1/guest/attempts/uploads as data.attributes.fileKey; FE echoes it here."
16548
16548
  },
16549
- "originalFilename": {
16550
- "type": "string"
16549
+ "fileName": {
16550
+ "type": "string",
16551
+ "description": "Candidate-supplied original file name (display + audit trail)."
16551
16552
  },
16552
16553
  "contentType": {
16553
16554
  "type": "string"
@@ -17017,15 +17018,16 @@
17017
17018
  "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.",
17018
17019
  "items": {
17019
17020
  "title": "AnswerFileSchema",
17020
- "description": "File reference for upload-type answers. fileUrl is the S3 path; FE never writes there directly - server issues presigned PUT.",
17021
+ "description": "File reference for upload-type answers (file-upload /\nvideo-recording question types). The candidate UI obtains\n`fileKey` from POST /v1/guest/attempts/uploads, PUTs the file\nto S3 via the presigned URL returned alongside it, then\nincludes a reference like `{fileKey, fileName, contentType,\nsize}` here on the guest PATCH submission. Wire field names\nmatch what file:process and the eval Lambda's\n_enrich_answers_with_file_content expect (fileKey, not\nfileUrl - the S3 path is server-side only).",
17021
17022
  "type": "object",
17022
17023
  "properties": {
17023
- "fileUrl": {
17024
+ "fileKey": {
17024
17025
  "type": "string",
17025
- "description": "S3 location (s3://bucket/key) - resolves to a presigned download URL on the recruiter review screen."
17026
+ "description": "S3 key in the attempt bucket. Returned by POST /v1/guest/attempts/uploads as data.attributes.fileKey; FE echoes it here."
17026
17027
  },
17027
- "originalFilename": {
17028
- "type": "string"
17028
+ "fileName": {
17029
+ "type": "string",
17030
+ "description": "Candidate-supplied original file name (display + audit trail)."
17029
17031
  },
17030
17032
  "contentType": {
17031
17033
  "type": "string"
@@ -17253,6 +17255,59 @@
17253
17255
  }
17254
17256
  }
17255
17257
  },
17258
+ {
17259
+ "type": "function",
17260
+ "function": {
17261
+ "name": "upload_guest_attempt_file",
17262
+ "description": "Upload Attempt File (Guest)",
17263
+ "parameters": {
17264
+ "title": "UploadGuestAttemptFileRequestBody",
17265
+ "type": "object",
17266
+ "required": [
17267
+ "tenantId",
17268
+ "accessToken",
17269
+ "attemptId",
17270
+ "fileName",
17271
+ "contentType"
17272
+ ],
17273
+ "properties": {
17274
+ "tenantId": {
17275
+ "type": "string"
17276
+ },
17277
+ "accessToken": {
17278
+ "type": "string",
17279
+ "description": "Per-attempt token (same value as meta.accessToken on other guest endpoints)."
17280
+ },
17281
+ "attemptId": {
17282
+ "type": "string"
17283
+ },
17284
+ "fileName": {
17285
+ "type": "string",
17286
+ "description": "Candidate-supplied file name (no path traversal). Used for the audit trail and extension fallback."
17287
+ },
17288
+ "contentType": {
17289
+ "type": "string",
17290
+ "description": "MIME type. Server prefers a known value (mapped to canonical extension) but accepts unknown types - file:process derives extension from fileName."
17291
+ },
17292
+ "questionId": {
17293
+ "type": "string",
17294
+ "description": "Optional question id this upload is for. Used for S3 key partitioning + downstream join hint; not auth-relevant."
17295
+ }
17296
+ }
17297
+ }
17298
+ }
17299
+ },
17300
+ {
17301
+ "type": "function",
17302
+ "function": {
17303
+ "name": "guest_attempt_upload_options",
17304
+ "description": "Guest Attempt Upload Options",
17305
+ "parameters": {
17306
+ "type": "object",
17307
+ "properties": {}
17308
+ }
17309
+ }
17310
+ },
17256
17311
  {
17257
17312
  "type": "function",
17258
17313
  "function": {
@@ -17445,15 +17500,16 @@
17445
17500
  "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.",
17446
17501
  "items": {
17447
17502
  "title": "AnswerFileSchema",
17448
- "description": "File reference for upload-type answers. fileUrl is the S3 path; FE never writes there directly - server issues presigned PUT.",
17503
+ "description": "File reference for upload-type answers (file-upload /\nvideo-recording question types). The candidate UI obtains\n`fileKey` from POST /v1/guest/attempts/uploads, PUTs the file\nto S3 via the presigned URL returned alongside it, then\nincludes a reference like `{fileKey, fileName, contentType,\nsize}` here on the guest PATCH submission. Wire field names\nmatch what file:process and the eval Lambda's\n_enrich_answers_with_file_content expect (fileKey, not\nfileUrl - the S3 path is server-side only).",
17449
17504
  "type": "object",
17450
17505
  "properties": {
17451
- "fileUrl": {
17506
+ "fileKey": {
17452
17507
  "type": "string",
17453
- "description": "S3 location (s3://bucket/key) - resolves to a presigned download URL on the recruiter review screen."
17508
+ "description": "S3 key in the attempt bucket. Returned by POST /v1/guest/attempts/uploads as data.attributes.fileKey; FE echoes it here."
17454
17509
  },
17455
- "originalFilename": {
17456
- "type": "string"
17510
+ "fileName": {
17511
+ "type": "string",
17512
+ "description": "Candidate-supplied original file name (display + audit trail)."
17457
17513
  },
17458
17514
  "contentType": {
17459
17515
  "type": "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.1.33-dev.44",
3
+ "version": "0.1.33-dev.46",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",