@smartytalent/openai-tools 0.9.2 → 0.9.4

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 +75 -28
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -185,6 +185,16 @@
185
185
  "type": "object",
186
186
  "description": "Tenant-level outbound-sync defaults (ATS integrations): {syncStage, syncNotes, syncRatings, syncTags, syncReports, syncConversationReports, syncMessages} - overridden per job by job.settings.operation. NOTE: the generated model whitelists keys, so this property MUST be declared for the SDK to carry it."
187
187
  },
188
+ "feedback": {
189
+ "title": "TenantAttributesSettingsFeedbackSchema",
190
+ "type": "object",
191
+ "description": "Organisation-wide switch for outbound candidate feedback. Absent = enabled. enabled=false makes feedback:resolve return enabled=false with reason disabled:tenant BEFORE any policy lookup; default and per-job feedback rows stay stored and come back to life when re-enabled. Explicitly validated: enabled must be a JSON boolean (a string is a 400). NOTE: the generated model whitelists keys, so this property MUST be declared for the SDK to carry it.",
192
+ "properties": {
193
+ "enabled": {
194
+ "type": "boolean"
195
+ }
196
+ }
197
+ },
188
198
  "sso": {
189
199
  "type": "object",
190
200
  "description": "Enterprise SSO configuration. READ-ONLY here: the generic tenant PATCH strips this key, the only writers are the /v1/tenants/{tenantId}/sso doors. Sending it in a PATCH is ignored (not an error).",
@@ -441,7 +451,7 @@
441
451
  "feedbacks": {
442
452
  "title": "TenantRelationshipsFeedbacksSchema",
443
453
  "type": "object",
444
- "description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment). Used when the job has no stage-specific feedback override.",
454
+ "description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment, interview). Used when the job has no stage-specific feedback override. Only sendable rows (status active or accepted) may be pinned here; archived/draft/failed ids are rejected with 400.",
445
455
  "properties": {
446
456
  "data": {
447
457
  "type": "array",
@@ -653,6 +663,16 @@
653
663
  "type": "object",
654
664
  "description": "Tenant-level outbound-sync defaults (ATS integrations): {syncStage, syncNotes, syncRatings, syncTags, syncReports, syncConversationReports, syncMessages} - overridden per job by job.settings.operation. NOTE: the generated model whitelists keys, so this property MUST be declared for the SDK to carry it."
655
665
  },
666
+ "feedback": {
667
+ "title": "TenantAttributesSettingsFeedbackSchema",
668
+ "type": "object",
669
+ "description": "Organisation-wide switch for outbound candidate feedback. Absent = enabled. enabled=false makes feedback:resolve return enabled=false with reason disabled:tenant BEFORE any policy lookup; default and per-job feedback rows stay stored and come back to life when re-enabled. Explicitly validated: enabled must be a JSON boolean (a string is a 400). NOTE: the generated model whitelists keys, so this property MUST be declared for the SDK to carry it.",
670
+ "properties": {
671
+ "enabled": {
672
+ "type": "boolean"
673
+ }
674
+ }
675
+ },
656
676
  "sso": {
657
677
  "type": "object",
658
678
  "description": "Enterprise SSO configuration. READ-ONLY here: the generic tenant PATCH strips this key, the only writers are the /v1/tenants/{tenantId}/sso doors. Sending it in a PATCH is ignored (not an error).",
@@ -909,7 +929,7 @@
909
929
  "feedbacks": {
910
930
  "title": "TenantRelationshipsFeedbacksSchema",
911
931
  "type": "object",
912
- "description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment). Used when the job has no stage-specific feedback override.",
932
+ "description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment, interview). Used when the job has no stage-specific feedback override. Only sendable rows (status active or accepted) may be pinned here; archived/draft/failed ids are rejected with 400.",
913
933
  "properties": {
914
934
  "data": {
915
935
  "type": "array",
@@ -4914,6 +4934,16 @@
4914
4934
  "ratingRestrictiveness": {
4915
4935
  "type": "string",
4916
4936
  "description": "Rating restrictiveness level (e.g. MODERATE, STRICT, LENIENT)"
4937
+ },
4938
+ "feedback": {
4939
+ "title": "JobAttributesSettingsFeedbackSchema",
4940
+ "type": "object",
4941
+ "description": "Per-job switch for outbound candidate feedback. Absent = enabled. enabled=false makes feedback:resolve return enabled=false with reason disabled:job for candidates of this job, before the job override / tenant default lookup. The tenant-level switch (tenant.settings.feedback.enabled) wins over this one. Explicitly validated: enabled must be a JSON boolean.",
4942
+ "properties": {
4943
+ "enabled": {
4944
+ "type": "boolean"
4945
+ }
4946
+ }
4917
4947
  }
4918
4948
  }
4919
4949
  }
@@ -5730,6 +5760,16 @@
5730
5760
  "ratingRestrictiveness": {
5731
5761
  "type": "string",
5732
5762
  "description": "Rating restrictiveness level (e.g. MODERATE, STRICT, LENIENT)"
5763
+ },
5764
+ "feedback": {
5765
+ "title": "JobAttributesSettingsFeedbackSchema",
5766
+ "type": "object",
5767
+ "description": "Per-job switch for outbound candidate feedback. Absent = enabled. enabled=false makes feedback:resolve return enabled=false with reason disabled:job for candidates of this job, before the job override / tenant default lookup. The tenant-level switch (tenant.settings.feedback.enabled) wins over this one. Explicitly validated: enabled must be a JSON boolean.",
5768
+ "properties": {
5769
+ "enabled": {
5770
+ "type": "boolean"
5771
+ }
5772
+ }
5733
5773
  }
5734
5774
  }
5735
5775
  }
@@ -6003,6 +6043,10 @@
6003
6043
  "type": "string",
6004
6044
  "description": "Preferred language code (e.g., en-US, pl-PL)"
6005
6045
  },
6046
+ "profilePictureUrl": {
6047
+ "type": "string",
6048
+ "description": "Public CDN URL of the applicant's photo, snapshotted ONCE from talent.profilePictureUrl when the candidature is created (the CV photo the applicant sent for this application). Read-only here - the talent is the source of truth and later talent photo changes do not propagate. Null when the CV carried no usable portrait or the talent has no future-recruitment consent."
6049
+ },
6006
6050
  "recommendationStatusCode": {
6007
6051
  "oneOf": [
6008
6052
  {
@@ -6551,6 +6595,10 @@
6551
6595
  "type": "string",
6552
6596
  "description": "Preferred language code (e.g., en-US, pl-PL)"
6553
6597
  },
6598
+ "profilePictureUrl": {
6599
+ "type": "string",
6600
+ "description": "Public CDN URL of the applicant's photo, snapshotted ONCE from talent.profilePictureUrl when the candidature is created (the CV photo the applicant sent for this application). Read-only here - the talent is the source of truth and later talent photo changes do not propagate. Null when the CV carried no usable portrait or the talent has no future-recruitment consent."
6601
+ },
6554
6602
  "recommendationStatusCode": {
6555
6603
  "oneOf": [
6556
6604
  {
@@ -8735,14 +8783,24 @@
8735
8783
  "properties": {
8736
8784
  "filterStatus": {
8737
8785
  "type": "string",
8738
- "description": "Returns feedbacks with the current status.",
8786
+ "description": "Returns feedbacks with the given status. No default: omit it to list every status (SLA overrides are draft before gate 2 and accepted after it, so a fixed active default would hide them). One filter at a time: combine with filterStage and the request is a 400.",
8739
8787
  "enum": [
8740
8788
  "active",
8741
8789
  "draft",
8790
+ "accepted",
8742
8791
  "archived",
8743
8792
  "failed"
8744
8793
  ]
8745
8794
  },
8795
+ "filterStage": {
8796
+ "type": "string",
8797
+ "description": "Returns feedbacks for the given pipeline stage (StageIndex lookup). One filter at a time.",
8798
+ "enum": [
8799
+ "screening",
8800
+ "assessment",
8801
+ "interview"
8802
+ ]
8803
+ },
8746
8804
  "filterCreatedFrom": {
8747
8805
  "type": "string",
8748
8806
  "description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
@@ -8820,9 +8878,10 @@
8820
8878
  "type": "string",
8821
8879
  "enum": [
8822
8880
  "screening",
8823
- "assessment"
8881
+ "assessment",
8882
+ "interview"
8824
8883
  ],
8825
- "description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
8884
+ "description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage. interview covers both hiring-manager refusals at candidate.stage=interview (declined before the interview, declined after it)."
8826
8885
  },
8827
8886
  "status": {
8828
8887
  "type": "string",
@@ -8832,11 +8891,16 @@
8832
8891
  "accepted",
8833
8892
  "archived",
8834
8893
  "failed"
8835
- ]
8894
+ ],
8895
+ "description": "active / accepted = sendable (feedback:resolve uses the row; accepted is the gate-2 stamp written by job:accept-artifacts). draft = authored, not sent. archived = soft-deleted, never sent, cannot be pinned as a tenant default. failed = reserved. On create only active or draft are accepted (default active); on update the value must be one of the enum (validated server-side, a bad value is a 400)."
8836
8896
  },
8837
8897
  "source": {
8838
8898
  "type": "string"
8839
8899
  },
8900
+ "jobId": {
8901
+ "type": "string",
8902
+ "description": "Mirror of relationships.jobs[0].id for per-job overrides (server-maintained; absent on tenant defaults). A filterJobId query parameter arrives together with the JobIndex GSI in a later release."
8903
+ },
8840
8904
  "outcomes": {
8841
8905
  "title": "FeedbackOutcomesSchema",
8842
8906
  "type": "object",
@@ -9216,12 +9280,9 @@
9216
9280
  "type": "string"
9217
9281
  },
9218
9282
  "attributes": {
9219
- "title": "FeedbackAttributesSchema",
9283
+ "title": "UpdateFeedbackRequestBodyDataAttributes",
9220
9284
  "type": "object",
9221
- "required": [
9222
- "name",
9223
- "stage"
9224
- ],
9285
+ "description": "Partial update: only the fields present are merged (no field is required, unlike FeedbackAttributesSchema on create). Omitting a field leaves it unchanged.",
9225
9286
  "properties": {
9226
9287
  "name": {
9227
9288
  "type": "string"
@@ -9230,9 +9291,9 @@
9230
9291
  "type": "string",
9231
9292
  "enum": [
9232
9293
  "screening",
9233
- "assessment"
9234
- ],
9235
- "description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
9294
+ "assessment",
9295
+ "interview"
9296
+ ]
9236
9297
  },
9237
9298
  "status": {
9238
9299
  "type": "string",
@@ -9511,20 +9572,6 @@
9511
9572
  }
9512
9573
  }
9513
9574
  }
9514
- },
9515
- "timestamps": {
9516
- "title": "ResourceTimestampsSchema",
9517
- "type": "object",
9518
- "properties": {
9519
- "created": {
9520
- "type": "string",
9521
- "format": "date-time"
9522
- },
9523
- "modified": {
9524
- "type": "string",
9525
- "format": "date-time"
9526
- }
9527
- }
9528
9575
  }
9529
9576
  }
9530
9577
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",