@smartytalent/openai-tools 0.7.12 → 0.8.1

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 +222 -0
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -3633,6 +3633,14 @@
3633
3633
  "meta": {
3634
3634
  "type": "object",
3635
3635
  "additionalProperties": true
3636
+ },
3637
+ "consentCurrent": {
3638
+ "type": "boolean",
3639
+ "description": "Write-only, honoured on PATCH. Consent to process for the current recruitment. Merges into `consent.current`, which is what reads return."
3640
+ },
3641
+ "consentFuture": {
3642
+ "type": "boolean",
3643
+ "description": "Write-only, honoured on PATCH. Consent to be kept for future recruitments (TalentPool). The TalentPool search hard-gates on it, so changing this flag re-indexes the talent - set it false to honour a withdrawal."
3636
3644
  }
3637
3645
  }
3638
3646
  },
@@ -4250,6 +4258,14 @@
4250
4258
  "meta": {
4251
4259
  "type": "object",
4252
4260
  "additionalProperties": true
4261
+ },
4262
+ "consentCurrent": {
4263
+ "type": "boolean",
4264
+ "description": "Write-only, honoured on PATCH. Consent to process for the current recruitment. Merges into `consent.current`, which is what reads return."
4265
+ },
4266
+ "consentFuture": {
4267
+ "type": "boolean",
4268
+ "description": "Write-only, honoured on PATCH. Consent to be kept for future recruitments (TalentPool). The TalentPool search hard-gates on it, so changing this flag re-indexes the talent - set it false to honour a withdrawal."
4253
4269
  }
4254
4270
  }
4255
4271
  }
@@ -9272,6 +9288,212 @@
9272
9288
  }
9273
9289
  }
9274
9290
  },
9291
+ {
9292
+ "type": "function",
9293
+ "function": {
9294
+ "name": "list_surveys",
9295
+ "description": "List Surveys",
9296
+ "parameters": {
9297
+ "type": "object",
9298
+ "properties": {
9299
+ "filterStatus": {
9300
+ "type": "string",
9301
+ "description": "Returns surveys with the current status.",
9302
+ "enum": [
9303
+ "pending",
9304
+ "completed",
9305
+ "expired"
9306
+ ]
9307
+ },
9308
+ "filterCandidateId": {
9309
+ "type": "string",
9310
+ "description": "Filter by the candidate the survey was sent to."
9311
+ },
9312
+ "filterCreatedFrom": {
9313
+ "type": "string",
9314
+ "description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
9315
+ },
9316
+ "filterCreatedTo": {
9317
+ "type": "string",
9318
+ "description": "Filters results to include only those created up to the specified date and time. The value must be in ISO 8601 format."
9319
+ },
9320
+ "filterModifiedFrom": {
9321
+ "type": "string",
9322
+ "description": "Filters results to include only those modified from the specified date and time. The value must be in ISO 8601 format."
9323
+ },
9324
+ "filterModifiedTo": {
9325
+ "type": "string",
9326
+ "description": "Filters results to include only those modified up to the specified date and time. The value must be in ISO 8601 format."
9327
+ },
9328
+ "pageSize": {
9329
+ "type": "integer",
9330
+ "description": "Specifies the number of items to retrieve per page. The maximum value is 100."
9331
+ },
9332
+ "pageNumber": {
9333
+ "type": "integer",
9334
+ "description": "Specifies the page number to retrieve. Used for traditional pagination."
9335
+ },
9336
+ "pageAfter": {
9337
+ "type": "string",
9338
+ "description": "Opaque base64-encoded cursor returned by a previous list response, used for forward cursor-based pagination. Pass the value verbatim; do not decode or mutate it."
9339
+ },
9340
+ "pageBefore": {
9341
+ "type": "string",
9342
+ "description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
9343
+ }
9344
+ }
9345
+ }
9346
+ }
9347
+ },
9348
+ {
9349
+ "type": "function",
9350
+ "function": {
9351
+ "name": "surveys_options",
9352
+ "description": "Surveys Options",
9353
+ "parameters": {
9354
+ "type": "object",
9355
+ "properties": {}
9356
+ }
9357
+ }
9358
+ },
9359
+ {
9360
+ "type": "function",
9361
+ "function": {
9362
+ "name": "show_survey",
9363
+ "description": "Show Survey",
9364
+ "parameters": {
9365
+ "type": "object",
9366
+ "properties": {
9367
+ "surveyId": {
9368
+ "type": "string",
9369
+ "description": "surveyId parameter"
9370
+ }
9371
+ },
9372
+ "required": [
9373
+ "surveyId"
9374
+ ]
9375
+ }
9376
+ }
9377
+ },
9378
+ {
9379
+ "type": "function",
9380
+ "function": {
9381
+ "name": "survey_options",
9382
+ "description": "Survey Options",
9383
+ "parameters": {
9384
+ "type": "object",
9385
+ "properties": {}
9386
+ }
9387
+ }
9388
+ },
9389
+ {
9390
+ "type": "function",
9391
+ "function": {
9392
+ "name": "show_guest_survey",
9393
+ "description": "Show Guest Survey",
9394
+ "parameters": {
9395
+ "type": "object",
9396
+ "properties": {
9397
+ "tenantId": {
9398
+ "type": "string",
9399
+ "description": "Base tenant id from the emailed link. Half of the guest auth pair."
9400
+ },
9401
+ "token": {
9402
+ "type": "string",
9403
+ "description": "Per-survey accessToken from the emailed link. Compared with hmac.compare_digest; mismatch returns 404."
9404
+ }
9405
+ },
9406
+ "required": [
9407
+ "tenantId",
9408
+ "token"
9409
+ ]
9410
+ }
9411
+ }
9412
+ },
9413
+ {
9414
+ "type": "function",
9415
+ "function": {
9416
+ "name": "submit_guest_survey",
9417
+ "description": "Submit Guest Survey",
9418
+ "parameters": {
9419
+ "title": "SubmitGuestSurveyRequestBody",
9420
+ "type": "object",
9421
+ "required": [
9422
+ "data",
9423
+ "meta"
9424
+ ],
9425
+ "properties": {
9426
+ "data": {
9427
+ "title": "SubmitGuestSurveyRequestBodyData",
9428
+ "type": "object",
9429
+ "required": [
9430
+ "type",
9431
+ "attributes"
9432
+ ],
9433
+ "properties": {
9434
+ "type": {
9435
+ "type": "string",
9436
+ "enum": [
9437
+ "surveys"
9438
+ ]
9439
+ },
9440
+ "id": {
9441
+ "type": "string"
9442
+ },
9443
+ "attributes": {
9444
+ "title": "SubmitGuestSurveyRequestBodyDataAttributes",
9445
+ "type": "object",
9446
+ "required": [
9447
+ "score"
9448
+ ],
9449
+ "properties": {
9450
+ "score": {
9451
+ "type": "integer",
9452
+ "minimum": 0,
9453
+ "maximum": 10,
9454
+ "description": "The NPS answer. 0-6 buckets to detractor, 7-8 passive, 9-10 promoter - the bucketing happens server-side."
9455
+ },
9456
+ "comment": {
9457
+ "type": "string",
9458
+ "maxLength": 2000,
9459
+ "description": "Optional free text. Trimmed server-side; an empty string is stored as absent."
9460
+ }
9461
+ }
9462
+ }
9463
+ }
9464
+ },
9465
+ "meta": {
9466
+ "title": "GuestSurveyMetaSchema",
9467
+ "description": "Auth context for the unauthenticated PATCH /v1/guest/surveys/{id}.\nBoth values come from the emailed link, never from a session -\nthere is no authorizer on the guest path. tenantId is the BASE\ntenant id; accessToken is the per-survey token minted at create and\ncompared with hmac.compare_digest. Any mismatch returns 404,\nintentionally indistinguishable from \"survey not found\" so survey\nexistence is never leaked.",
9468
+ "type": "object",
9469
+ "required": [
9470
+ "tenantId",
9471
+ "accessToken"
9472
+ ],
9473
+ "properties": {
9474
+ "tenantId": {
9475
+ "type": "string"
9476
+ },
9477
+ "accessToken": {
9478
+ "type": "string"
9479
+ }
9480
+ }
9481
+ }
9482
+ }
9483
+ }
9484
+ }
9485
+ },
9486
+ {
9487
+ "type": "function",
9488
+ "function": {
9489
+ "name": "guest_survey_options",
9490
+ "description": "Guest Survey Options",
9491
+ "parameters": {
9492
+ "type": "object",
9493
+ "properties": {}
9494
+ }
9495
+ }
9496
+ },
9275
9497
  {
9276
9498
  "type": "function",
9277
9499
  "function": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.7.12",
3
+ "version": "0.8.1",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",