@smartytalent/openai-tools 0.9.52 → 0.9.54

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 +208 -0
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -4057,6 +4057,60 @@
4057
4057
  "timestamp": {
4058
4058
  "type": "string",
4059
4059
  "description": "ISO 8601 time the consent was recorded."
4060
+ },
4061
+ "currentProof": {
4062
+ "title": "TalentConsentProofSchema",
4063
+ "type": "object",
4064
+ "description": "The proof of a consent (stage 3, 2026-10-06): the privacy notice the candidate was shown and when.\n`currentProof` = the latest application's consent to its recruitment; `futureProof` = the latest consent\nto future recruitments (kept as evidence when the consent is withdrawn later).",
4065
+ "properties": {
4066
+ "version": {
4067
+ "type": "integer"
4068
+ },
4069
+ "hash": {
4070
+ "type": "string",
4071
+ "description": "sha256:<64 hex> of the notice's text in `language` (tenants/{shortCode}/privacy/v{version}.json)."
4072
+ },
4073
+ "language": {
4074
+ "type": "string"
4075
+ },
4076
+ "at": {
4077
+ "type": "string",
4078
+ "format": "date-time"
4079
+ },
4080
+ "submissionId": {
4081
+ "type": "string"
4082
+ },
4083
+ "jobId": {
4084
+ "type": "string"
4085
+ }
4086
+ }
4087
+ },
4088
+ "futureProof": {
4089
+ "title": "TalentConsentProofSchema",
4090
+ "type": "object",
4091
+ "description": "The proof of a consent (stage 3, 2026-10-06): the privacy notice the candidate was shown and when.\n`currentProof` = the latest application's consent to its recruitment; `futureProof` = the latest consent\nto future recruitments (kept as evidence when the consent is withdrawn later).",
4092
+ "properties": {
4093
+ "version": {
4094
+ "type": "integer"
4095
+ },
4096
+ "hash": {
4097
+ "type": "string",
4098
+ "description": "sha256:<64 hex> of the notice's text in `language` (tenants/{shortCode}/privacy/v{version}.json)."
4099
+ },
4100
+ "language": {
4101
+ "type": "string"
4102
+ },
4103
+ "at": {
4104
+ "type": "string",
4105
+ "format": "date-time"
4106
+ },
4107
+ "submissionId": {
4108
+ "type": "string"
4109
+ },
4110
+ "jobId": {
4111
+ "type": "string"
4112
+ }
4113
+ }
4060
4114
  }
4061
4115
  }
4062
4116
  },
@@ -4723,6 +4777,60 @@
4723
4777
  "timestamp": {
4724
4778
  "type": "string",
4725
4779
  "description": "ISO 8601 time the consent was recorded."
4780
+ },
4781
+ "currentProof": {
4782
+ "title": "TalentConsentProofSchema",
4783
+ "type": "object",
4784
+ "description": "The proof of a consent (stage 3, 2026-10-06): the privacy notice the candidate was shown and when.\n`currentProof` = the latest application's consent to its recruitment; `futureProof` = the latest consent\nto future recruitments (kept as evidence when the consent is withdrawn later).",
4785
+ "properties": {
4786
+ "version": {
4787
+ "type": "integer"
4788
+ },
4789
+ "hash": {
4790
+ "type": "string",
4791
+ "description": "sha256:<64 hex> of the notice's text in `language` (tenants/{shortCode}/privacy/v{version}.json)."
4792
+ },
4793
+ "language": {
4794
+ "type": "string"
4795
+ },
4796
+ "at": {
4797
+ "type": "string",
4798
+ "format": "date-time"
4799
+ },
4800
+ "submissionId": {
4801
+ "type": "string"
4802
+ },
4803
+ "jobId": {
4804
+ "type": "string"
4805
+ }
4806
+ }
4807
+ },
4808
+ "futureProof": {
4809
+ "title": "TalentConsentProofSchema",
4810
+ "type": "object",
4811
+ "description": "The proof of a consent (stage 3, 2026-10-06): the privacy notice the candidate was shown and when.\n`currentProof` = the latest application's consent to its recruitment; `futureProof` = the latest consent\nto future recruitments (kept as evidence when the consent is withdrawn later).",
4812
+ "properties": {
4813
+ "version": {
4814
+ "type": "integer"
4815
+ },
4816
+ "hash": {
4817
+ "type": "string",
4818
+ "description": "sha256:<64 hex> of the notice's text in `language` (tenants/{shortCode}/privacy/v{version}.json)."
4819
+ },
4820
+ "language": {
4821
+ "type": "string"
4822
+ },
4823
+ "at": {
4824
+ "type": "string",
4825
+ "format": "date-time"
4826
+ },
4827
+ "submissionId": {
4828
+ "type": "string"
4829
+ },
4830
+ "jobId": {
4831
+ "type": "string"
4832
+ }
4833
+ }
4726
4834
  }
4727
4835
  }
4728
4836
  },
@@ -5032,6 +5140,39 @@
5032
5140
  }
5033
5141
  }
5034
5142
  },
5143
+ "employmentType": {
5144
+ "title": "JobAttributesEmploymentTypeSchema",
5145
+ "type": "object",
5146
+ "additionalProperties": {
5147
+ "type": "string",
5148
+ "maxLength": 255
5149
+ },
5150
+ "description": "Stage 3 (2026-10-06): the contract and the working time as the hiring manager stated them in the accepted brief (brief.employmentType), language-keyed: en-US and the job's language when the brief holds it in that language. Written by the job build (copied, never inferred); absent on a job not built from a brief. A PATCH writes a language-keyed object of strings (at most 255 characters each); null clears it."
5151
+ },
5152
+ "workModel": {
5153
+ "title": "JobAttributesWorkModelSchema",
5154
+ "type": "object",
5155
+ "additionalProperties": {
5156
+ "type": "string",
5157
+ "maxLength": 500
5158
+ },
5159
+ "description": "Stage 3 (2026-10-06): the work mode and the schedule as the hiring manager stated them (brief.intakeContext.workModel: on-site / hybrid with its office days / remote, the shifts, the hours), language-keyed like employmentType. Written by the job build (copied); PATCH-able (strings of at most 500 characters); null clears it."
5160
+ },
5161
+ "startDate": {
5162
+ "title": "JobAttributesStartDateSchema",
5163
+ "type": "object",
5164
+ "additionalProperties": {
5165
+ "type": "string",
5166
+ "maxLength": 255
5167
+ },
5168
+ "description": "Stage 3 (2026-10-06): the hiring manager's own words about the start (brief.intakeContext.startDate, e.g. 'Immediately', 'From November 1', 'Notice period up to 3 months is fine'), language-keyed; NEVER a computed date. The availability criterion carries an ISO date only when the manager named one, and never as a hard requirement unless his brief made it a condition. Written by the job build (copied); PATCH-able; null clears it."
5169
+ },
5170
+ "headcount": {
5171
+ "type": "integer",
5172
+ "minimum": 1,
5173
+ "maximum": 1000,
5174
+ "description": "Stage 3 (2026-10-06): how many people the job hires (brief.intakeContext.headcount). Written by the job build (copied); PATCH-able (an integer from 1 to 1000); null clears it."
5175
+ },
5035
5176
  "languageCode": {
5036
5177
  "type": "string",
5037
5178
  "description": "Primary language code for the job posting (e.g. en-US, pl-PL)"
@@ -5961,6 +6102,39 @@
5961
6102
  }
5962
6103
  }
5963
6104
  },
6105
+ "employmentType": {
6106
+ "title": "JobAttributesEmploymentTypeSchema",
6107
+ "type": "object",
6108
+ "additionalProperties": {
6109
+ "type": "string",
6110
+ "maxLength": 255
6111
+ },
6112
+ "description": "Stage 3 (2026-10-06): the contract and the working time as the hiring manager stated them in the accepted brief (brief.employmentType), language-keyed: en-US and the job's language when the brief holds it in that language. Written by the job build (copied, never inferred); absent on a job not built from a brief. A PATCH writes a language-keyed object of strings (at most 255 characters each); null clears it."
6113
+ },
6114
+ "workModel": {
6115
+ "title": "JobAttributesWorkModelSchema",
6116
+ "type": "object",
6117
+ "additionalProperties": {
6118
+ "type": "string",
6119
+ "maxLength": 500
6120
+ },
6121
+ "description": "Stage 3 (2026-10-06): the work mode and the schedule as the hiring manager stated them (brief.intakeContext.workModel: on-site / hybrid with its office days / remote, the shifts, the hours), language-keyed like employmentType. Written by the job build (copied); PATCH-able (strings of at most 500 characters); null clears it."
6122
+ },
6123
+ "startDate": {
6124
+ "title": "JobAttributesStartDateSchema",
6125
+ "type": "object",
6126
+ "additionalProperties": {
6127
+ "type": "string",
6128
+ "maxLength": 255
6129
+ },
6130
+ "description": "Stage 3 (2026-10-06): the hiring manager's own words about the start (brief.intakeContext.startDate, e.g. 'Immediately', 'From November 1', 'Notice period up to 3 months is fine'), language-keyed; NEVER a computed date. The availability criterion carries an ISO date only when the manager named one, and never as a hard requirement unless his brief made it a condition. Written by the job build (copied); PATCH-able; null clears it."
6131
+ },
6132
+ "headcount": {
6133
+ "type": "integer",
6134
+ "minimum": 1,
6135
+ "maximum": 1000,
6136
+ "description": "Stage 3 (2026-10-06): how many people the job hires (brief.intakeContext.headcount). Written by the job build (copied); PATCH-able (an integer from 1 to 1000); null clears it."
6137
+ },
5964
6138
  "languageCode": {
5965
6139
  "type": "string",
5966
6140
  "description": "Primary language code for the job posting (e.g. en-US, pl-PL)"
@@ -13033,12 +13207,29 @@
13033
13207
  },
13034
13208
  "consent": {
13035
13209
  "type": "object",
13210
+ "description": "The candidate's consents at submission (stage 3, 2026-10-06). `current` = this recruitment, `future` =\nfuture recruitments (the talent pool). The guest door stores the PROOF of the privacy notice the\ncandidate was shown: `version`, `hash` (that notice's hashes[language]), `language` and `at` (server\ntime); `legacy: true` = a submission without the proof, accepted before the environment enforces it.\nThe talent takes the proof over (TalentConsentSchema.currentProof / futureProof).",
13036
13211
  "properties": {
13037
13212
  "current": {
13038
13213
  "type": "boolean"
13039
13214
  },
13040
13215
  "future": {
13041
13216
  "type": "boolean"
13217
+ },
13218
+ "version": {
13219
+ "type": "integer"
13220
+ },
13221
+ "hash": {
13222
+ "type": "string"
13223
+ },
13224
+ "language": {
13225
+ "type": "string"
13226
+ },
13227
+ "at": {
13228
+ "type": "string",
13229
+ "format": "date-time"
13230
+ },
13231
+ "legacy": {
13232
+ "type": "boolean"
13042
13233
  }
13043
13234
  }
13044
13235
  },
@@ -13541,12 +13732,29 @@
13541
13732
  },
13542
13733
  "consent": {
13543
13734
  "type": "object",
13735
+ "description": "The candidate's consents at submission (stage 3, 2026-10-06). `current` = this recruitment, `future` =\nfuture recruitments (the talent pool). The guest door stores the PROOF of the privacy notice the\ncandidate was shown: `version`, `hash` (that notice's hashes[language]), `language` and `at` (server\ntime); `legacy: true` = a submission without the proof, accepted before the environment enforces it.\nThe talent takes the proof over (TalentConsentSchema.currentProof / futureProof).",
13544
13736
  "properties": {
13545
13737
  "current": {
13546
13738
  "type": "boolean"
13547
13739
  },
13548
13740
  "future": {
13549
13741
  "type": "boolean"
13742
+ },
13743
+ "version": {
13744
+ "type": "integer"
13745
+ },
13746
+ "hash": {
13747
+ "type": "string"
13748
+ },
13749
+ "language": {
13750
+ "type": "string"
13751
+ },
13752
+ "at": {
13753
+ "type": "string",
13754
+ "format": "date-time"
13755
+ },
13756
+ "legacy": {
13757
+ "type": "boolean"
13550
13758
  }
13551
13759
  }
13552
13760
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.9.52",
3
+ "version": "0.9.54",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",