@smartytalent/openai-tools 0.9.3 → 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 +67 -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
  }
@@ -8743,14 +8783,24 @@
8743
8783
  "properties": {
8744
8784
  "filterStatus": {
8745
8785
  "type": "string",
8746
- "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.",
8747
8787
  "enum": [
8748
8788
  "active",
8749
8789
  "draft",
8790
+ "accepted",
8750
8791
  "archived",
8751
8792
  "failed"
8752
8793
  ]
8753
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
+ },
8754
8804
  "filterCreatedFrom": {
8755
8805
  "type": "string",
8756
8806
  "description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
@@ -8828,9 +8878,10 @@
8828
8878
  "type": "string",
8829
8879
  "enum": [
8830
8880
  "screening",
8831
- "assessment"
8881
+ "assessment",
8882
+ "interview"
8832
8883
  ],
8833
- "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)."
8834
8885
  },
8835
8886
  "status": {
8836
8887
  "type": "string",
@@ -8840,11 +8891,16 @@
8840
8891
  "accepted",
8841
8892
  "archived",
8842
8893
  "failed"
8843
- ]
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)."
8844
8896
  },
8845
8897
  "source": {
8846
8898
  "type": "string"
8847
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
+ },
8848
8904
  "outcomes": {
8849
8905
  "title": "FeedbackOutcomesSchema",
8850
8906
  "type": "object",
@@ -9224,12 +9280,9 @@
9224
9280
  "type": "string"
9225
9281
  },
9226
9282
  "attributes": {
9227
- "title": "FeedbackAttributesSchema",
9283
+ "title": "UpdateFeedbackRequestBodyDataAttributes",
9228
9284
  "type": "object",
9229
- "required": [
9230
- "name",
9231
- "stage"
9232
- ],
9285
+ "description": "Partial update: only the fields present are merged (no field is required, unlike FeedbackAttributesSchema on create). Omitting a field leaves it unchanged.",
9233
9286
  "properties": {
9234
9287
  "name": {
9235
9288
  "type": "string"
@@ -9238,9 +9291,9 @@
9238
9291
  "type": "string",
9239
9292
  "enum": [
9240
9293
  "screening",
9241
- "assessment"
9242
- ],
9243
- "description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
9294
+ "assessment",
9295
+ "interview"
9296
+ ]
9244
9297
  },
9245
9298
  "status": {
9246
9299
  "type": "string",
@@ -9519,20 +9572,6 @@
9519
9572
  }
9520
9573
  }
9521
9574
  }
9522
- },
9523
- "timestamps": {
9524
- "title": "ResourceTimestampsSchema",
9525
- "type": "object",
9526
- "properties": {
9527
- "created": {
9528
- "type": "string",
9529
- "format": "date-time"
9530
- },
9531
- "modified": {
9532
- "type": "string",
9533
- "format": "date-time"
9534
- }
9535
- }
9536
9575
  }
9537
9576
  }
9538
9577
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.9.3",
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",