@smartytalent/openai-tools 0.1.29 → 0.1.31
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.
- package/LICENSE +202 -0
- package/README.md +99 -0
- package/dist/tools.json +609 -154
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Copyright (c) 2026 SmartyTalent (SmartyMeet sp. z o.o.)
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for describing the origin of the Work and
|
|
143
|
+
reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may accept support,
|
|
169
|
+
warranty, indemnity, or other liability obligations and/or rights
|
|
170
|
+
consistent with this License. However, in accepting such obligations,
|
|
171
|
+
You may act only on Your own behalf and on Your sole responsibility,
|
|
172
|
+
not on behalf of any other Contributor, and only if You agree to
|
|
173
|
+
indemnify, defend, and hold each Contributor harmless for any
|
|
174
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
175
|
+
by reason of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 SmartyTalent (SmartyMeet sp. z o.o.)
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# @smartytalent/openai-tools
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@smartytalent/openai-tools)
|
|
4
|
+
[](https://www.npmjs.com/package/@smartytalent/openai-tools)
|
|
5
|
+
|
|
6
|
+
OpenAI **function / tool calling** definitions for the **SmartyTalent** recruitment API.
|
|
7
|
+
|
|
8
|
+
This package ships a pre-built `tools.json` generated from the SmartyTalent OpenAPI spec — one tool per API operation — ready to drop into the `tools` parameter of the OpenAI Chat Completions or Responses API.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @smartytalent/openai-tools
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## What's inside
|
|
17
|
+
|
|
18
|
+
An array of tool definitions in OpenAI's `{ type: "function", function: {...} }` format:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
interface OpenAITool {
|
|
22
|
+
type: 'function'
|
|
23
|
+
function: {
|
|
24
|
+
name: string // snake_case, e.g. "list_tenants"
|
|
25
|
+
description: string // from OpenAPI summary/description
|
|
26
|
+
parameters: Record<string, unknown> // JSON Schema
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Quick start
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import OpenAI from 'openai'
|
|
35
|
+
import { tools } from '@smartytalent/openai-tools'
|
|
36
|
+
|
|
37
|
+
const openai = new OpenAI()
|
|
38
|
+
|
|
39
|
+
const response = await openai.chat.completions.create({
|
|
40
|
+
model: 'gpt-4o',
|
|
41
|
+
messages: [{ role: 'user', content: 'List all active tenants' }],
|
|
42
|
+
tools,
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const toolCall = response.choices[0].message.tool_calls?.[0]
|
|
46
|
+
if (toolCall) {
|
|
47
|
+
const args = JSON.parse(toolCall.function.arguments)
|
|
48
|
+
const result = await executeSmartyTalentTool(toolCall.function.name, args)
|
|
49
|
+
// feed result back into the conversation...
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Executing tool calls
|
|
54
|
+
|
|
55
|
+
This package **only defines the tool schemas** — it doesn't ship an executor. Pair it with [`@smartytalent/api-client`](https://www.npmjs.com/package/@smartytalent/api-client) to dispatch tool calls against the live API:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import { Configuration, TenantsApi } from '@smartytalent/api-client'
|
|
59
|
+
|
|
60
|
+
const config = new Configuration({ basePath: '...', apiKey: `Bearer ${token}` })
|
|
61
|
+
|
|
62
|
+
async function executeSmartyTalentTool(name: string, args: Record<string, unknown>) {
|
|
63
|
+
switch (name) {
|
|
64
|
+
case 'list_tenants':
|
|
65
|
+
return new TenantsApi(config).listTenants(args)
|
|
66
|
+
// ... map other tool names to their API methods
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
A generic dispatcher can be built by parsing the tool name back to an operationId and routing through the appropriate API class.
|
|
72
|
+
|
|
73
|
+
## Filtering the tool catalog
|
|
74
|
+
|
|
75
|
+
The API exposes a lot of operations — feeding all of them to a model wastes context. Filter to the ones relevant for your use case:
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
import { tools } from '@smartytalent/openai-tools'
|
|
79
|
+
|
|
80
|
+
const candidateTools = tools.filter((t) =>
|
|
81
|
+
t.function.name.includes('candidate') || t.function.name.includes('job'),
|
|
82
|
+
)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Raw JSON
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import tools from '@smartytalent/openai-tools/dist/tools.json'
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Versioning
|
|
92
|
+
|
|
93
|
+
Published in lockstep with `@smartytalent/api-client`. Pin both packages to the same version.
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
Licensed under the [Apache License, Version 2.0](./LICENSE).
|
|
98
|
+
|
|
99
|
+
Copyright © 2026 SmartyTalent (SmartyMeet sp. z o.o.)
|
package/dist/tools.json
CHANGED
|
@@ -227,10 +227,6 @@
|
|
|
227
227
|
"type": "string",
|
|
228
228
|
"description": "Email address assigned to the Boe AI agent for this tenant"
|
|
229
229
|
},
|
|
230
|
-
"defaultFeedbackId": {
|
|
231
|
-
"type": "string",
|
|
232
|
-
"description": "Tenant-wide default feedback configuration applied when a job has no feedback override. Set to null to clear."
|
|
233
|
-
},
|
|
234
230
|
"defaultFormId": {
|
|
235
231
|
"type": "string",
|
|
236
232
|
"description": "Tenant-wide default form used for guest submissions when no job-specific form is configured. Set to null to clear."
|
|
@@ -239,7 +235,31 @@
|
|
|
239
235
|
},
|
|
240
236
|
"relationships": {
|
|
241
237
|
"title": "TenantRelationshipsSchema",
|
|
242
|
-
"type": "object"
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"feedbacks": {
|
|
241
|
+
"title": "TenantRelationshipsFeedbacksSchema",
|
|
242
|
+
"type": "object",
|
|
243
|
+
"description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment). Used when the job has no stage-specific feedback override.",
|
|
244
|
+
"properties": {
|
|
245
|
+
"data": {
|
|
246
|
+
"type": "array",
|
|
247
|
+
"items": {
|
|
248
|
+
"title": "TenantRelationshipsFeedbacksDataSchema",
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"type": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
"id": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
243
263
|
}
|
|
244
264
|
}
|
|
245
265
|
}
|
|
@@ -265,7 +285,19 @@
|
|
|
265
285
|
"description": "Show Tenant",
|
|
266
286
|
"parameters": {
|
|
267
287
|
"type": "object",
|
|
268
|
-
"properties": {
|
|
288
|
+
"properties": {
|
|
289
|
+
"tenantId": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"description": "The tenant's identifier"
|
|
292
|
+
},
|
|
293
|
+
"include": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"description": "JSON:API compound document request — comma-separated list of relationship paths to include in the response (e.g. `feedbacks`, `feedbacks,boeUser`). Currently advisory: the service always returns all declared relationships with empty defaults."
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"required": [
|
|
299
|
+
"tenantId"
|
|
300
|
+
]
|
|
269
301
|
}
|
|
270
302
|
}
|
|
271
303
|
},
|
|
@@ -286,8 +318,7 @@
|
|
|
286
318
|
"type": "object",
|
|
287
319
|
"required": [
|
|
288
320
|
"type",
|
|
289
|
-
"id"
|
|
290
|
-
"attributes"
|
|
321
|
+
"id"
|
|
291
322
|
],
|
|
292
323
|
"properties": {
|
|
293
324
|
"type": {
|
|
@@ -441,15 +472,39 @@
|
|
|
441
472
|
"type": "string",
|
|
442
473
|
"description": "Email address assigned to the Boe AI agent for this tenant"
|
|
443
474
|
},
|
|
444
|
-
"defaultFeedbackId": {
|
|
445
|
-
"type": "string",
|
|
446
|
-
"description": "Tenant-wide default feedback configuration applied when a job has no feedback override. Set to null to clear."
|
|
447
|
-
},
|
|
448
475
|
"defaultFormId": {
|
|
449
476
|
"type": "string",
|
|
450
477
|
"description": "Tenant-wide default form used for guest submissions when no job-specific form is configured. Set to null to clear."
|
|
451
478
|
}
|
|
452
479
|
}
|
|
480
|
+
},
|
|
481
|
+
"relationships": {
|
|
482
|
+
"title": "TenantRelationshipsSchema",
|
|
483
|
+
"type": "object",
|
|
484
|
+
"properties": {
|
|
485
|
+
"feedbacks": {
|
|
486
|
+
"title": "TenantRelationshipsFeedbacksSchema",
|
|
487
|
+
"type": "object",
|
|
488
|
+
"description": "Tenant-wide default feedback configurations. Up to one per stage (screening, assessment). Used when the job has no stage-specific feedback override.",
|
|
489
|
+
"properties": {
|
|
490
|
+
"data": {
|
|
491
|
+
"type": "array",
|
|
492
|
+
"items": {
|
|
493
|
+
"title": "TenantRelationshipsFeedbacksDataSchema",
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"type": {
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
499
|
+
"id": {
|
|
500
|
+
"type": "string"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
453
508
|
}
|
|
454
509
|
}
|
|
455
510
|
}
|
|
@@ -7178,98 +7233,298 @@
|
|
|
7178
7233
|
"title": "FeedbackAttributesSchema",
|
|
7179
7234
|
"type": "object",
|
|
7180
7235
|
"required": [
|
|
7181
|
-
"name"
|
|
7236
|
+
"name",
|
|
7237
|
+
"stage"
|
|
7182
7238
|
],
|
|
7183
7239
|
"properties": {
|
|
7184
7240
|
"name": {
|
|
7185
7241
|
"type": "string"
|
|
7186
7242
|
},
|
|
7187
|
-
"
|
|
7243
|
+
"stage": {
|
|
7188
7244
|
"type": "string",
|
|
7189
7245
|
"enum": [
|
|
7190
|
-
"
|
|
7191
|
-
"
|
|
7192
|
-
|
|
7193
|
-
|
|
7246
|
+
"screening",
|
|
7247
|
+
"assessment"
|
|
7248
|
+
],
|
|
7249
|
+
"description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
|
|
7194
7250
|
},
|
|
7195
|
-
"
|
|
7251
|
+
"status": {
|
|
7196
7252
|
"type": "string",
|
|
7197
7253
|
"enum": [
|
|
7198
|
-
"
|
|
7199
|
-
"
|
|
7200
|
-
"
|
|
7254
|
+
"active",
|
|
7255
|
+
"draft",
|
|
7256
|
+
"archived",
|
|
7257
|
+
"failed"
|
|
7201
7258
|
]
|
|
7202
7259
|
},
|
|
7203
|
-
"
|
|
7204
|
-
"type": "
|
|
7205
|
-
"default": 72
|
|
7206
|
-
},
|
|
7207
|
-
"respectBusinessDays": {
|
|
7208
|
-
"type": "boolean",
|
|
7209
|
-
"default": false
|
|
7260
|
+
"source": {
|
|
7261
|
+
"type": "string"
|
|
7210
7262
|
},
|
|
7211
|
-
"
|
|
7263
|
+
"outcomes": {
|
|
7264
|
+
"title": "FeedbackOutcomesSchema",
|
|
7212
7265
|
"type": "object",
|
|
7266
|
+
"description": "Per-outcome feedback rules. Outcome keys map to candidate.recommendationStatusCode: 1=notFit, 2=maybe, 3=fit. Code 0 (not evaluated) never triggers feedback — the workflow pauses instead.",
|
|
7213
7267
|
"properties": {
|
|
7214
|
-
"
|
|
7215
|
-
"
|
|
7268
|
+
"notFit": {
|
|
7269
|
+
"title": "FeedbackOutcomeRuleSchema",
|
|
7270
|
+
"type": "object",
|
|
7271
|
+
"description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
|
|
7272
|
+
"properties": {
|
|
7273
|
+
"enabled": {
|
|
7274
|
+
"type": "boolean",
|
|
7275
|
+
"default": false,
|
|
7276
|
+
"description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
|
|
7277
|
+
},
|
|
7278
|
+
"tone": {
|
|
7279
|
+
"type": "string",
|
|
7280
|
+
"enum": [
|
|
7281
|
+
"casual",
|
|
7282
|
+
"formal",
|
|
7283
|
+
"superFormal"
|
|
7284
|
+
]
|
|
7285
|
+
},
|
|
7286
|
+
"transparency": {
|
|
7287
|
+
"type": "string",
|
|
7288
|
+
"enum": [
|
|
7289
|
+
"generic",
|
|
7290
|
+
"category",
|
|
7291
|
+
"specific"
|
|
7292
|
+
]
|
|
7293
|
+
},
|
|
7294
|
+
"delay": {
|
|
7295
|
+
"type": "integer",
|
|
7296
|
+
"default": 72
|
|
7297
|
+
},
|
|
7298
|
+
"respectBusinessDays": {
|
|
7299
|
+
"type": "boolean",
|
|
7300
|
+
"default": false
|
|
7301
|
+
},
|
|
7302
|
+
"aiDisclosure": {
|
|
7303
|
+
"type": "boolean",
|
|
7304
|
+
"default": true
|
|
7305
|
+
},
|
|
7306
|
+
"signature": {
|
|
7307
|
+
"type": "object",
|
|
7308
|
+
"properties": {
|
|
7309
|
+
"name": {
|
|
7310
|
+
"type": "string"
|
|
7311
|
+
},
|
|
7312
|
+
"title": {
|
|
7313
|
+
"type": "string"
|
|
7314
|
+
},
|
|
7315
|
+
"company": {
|
|
7316
|
+
"type": "string"
|
|
7317
|
+
}
|
|
7318
|
+
}
|
|
7319
|
+
},
|
|
7320
|
+
"instructions": {
|
|
7321
|
+
"type": "string"
|
|
7322
|
+
},
|
|
7323
|
+
"categories": {
|
|
7324
|
+
"type": "array",
|
|
7325
|
+
"items": {
|
|
7326
|
+
"type": "string"
|
|
7327
|
+
}
|
|
7328
|
+
},
|
|
7329
|
+
"reasons": {
|
|
7330
|
+
"type": "array",
|
|
7331
|
+
"items": {
|
|
7332
|
+
"type": "string"
|
|
7333
|
+
}
|
|
7334
|
+
},
|
|
7335
|
+
"links": {
|
|
7336
|
+
"type": "array",
|
|
7337
|
+
"items": {
|
|
7338
|
+
"type": "object",
|
|
7339
|
+
"properties": {
|
|
7340
|
+
"label": {
|
|
7341
|
+
"type": "string"
|
|
7342
|
+
},
|
|
7343
|
+
"url": {
|
|
7344
|
+
"type": "string"
|
|
7345
|
+
}
|
|
7346
|
+
}
|
|
7347
|
+
}
|
|
7348
|
+
},
|
|
7349
|
+
"feedbackFormUrl": {
|
|
7350
|
+
"type": "string"
|
|
7351
|
+
}
|
|
7352
|
+
}
|
|
7216
7353
|
},
|
|
7217
|
-
"
|
|
7218
|
-
"
|
|
7354
|
+
"maybe": {
|
|
7355
|
+
"title": "FeedbackOutcomeRuleSchema",
|
|
7356
|
+
"type": "object",
|
|
7357
|
+
"description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
|
|
7358
|
+
"properties": {
|
|
7359
|
+
"enabled": {
|
|
7360
|
+
"type": "boolean",
|
|
7361
|
+
"default": false,
|
|
7362
|
+
"description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
|
|
7363
|
+
},
|
|
7364
|
+
"tone": {
|
|
7365
|
+
"type": "string",
|
|
7366
|
+
"enum": [
|
|
7367
|
+
"casual",
|
|
7368
|
+
"formal",
|
|
7369
|
+
"superFormal"
|
|
7370
|
+
]
|
|
7371
|
+
},
|
|
7372
|
+
"transparency": {
|
|
7373
|
+
"type": "string",
|
|
7374
|
+
"enum": [
|
|
7375
|
+
"generic",
|
|
7376
|
+
"category",
|
|
7377
|
+
"specific"
|
|
7378
|
+
]
|
|
7379
|
+
},
|
|
7380
|
+
"delay": {
|
|
7381
|
+
"type": "integer",
|
|
7382
|
+
"default": 72
|
|
7383
|
+
},
|
|
7384
|
+
"respectBusinessDays": {
|
|
7385
|
+
"type": "boolean",
|
|
7386
|
+
"default": false
|
|
7387
|
+
},
|
|
7388
|
+
"aiDisclosure": {
|
|
7389
|
+
"type": "boolean",
|
|
7390
|
+
"default": true
|
|
7391
|
+
},
|
|
7392
|
+
"signature": {
|
|
7393
|
+
"type": "object",
|
|
7394
|
+
"properties": {
|
|
7395
|
+
"name": {
|
|
7396
|
+
"type": "string"
|
|
7397
|
+
},
|
|
7398
|
+
"title": {
|
|
7399
|
+
"type": "string"
|
|
7400
|
+
},
|
|
7401
|
+
"company": {
|
|
7402
|
+
"type": "string"
|
|
7403
|
+
}
|
|
7404
|
+
}
|
|
7405
|
+
},
|
|
7406
|
+
"instructions": {
|
|
7407
|
+
"type": "string"
|
|
7408
|
+
},
|
|
7409
|
+
"categories": {
|
|
7410
|
+
"type": "array",
|
|
7411
|
+
"items": {
|
|
7412
|
+
"type": "string"
|
|
7413
|
+
}
|
|
7414
|
+
},
|
|
7415
|
+
"reasons": {
|
|
7416
|
+
"type": "array",
|
|
7417
|
+
"items": {
|
|
7418
|
+
"type": "string"
|
|
7419
|
+
}
|
|
7420
|
+
},
|
|
7421
|
+
"links": {
|
|
7422
|
+
"type": "array",
|
|
7423
|
+
"items": {
|
|
7424
|
+
"type": "object",
|
|
7425
|
+
"properties": {
|
|
7426
|
+
"label": {
|
|
7427
|
+
"type": "string"
|
|
7428
|
+
},
|
|
7429
|
+
"url": {
|
|
7430
|
+
"type": "string"
|
|
7431
|
+
}
|
|
7432
|
+
}
|
|
7433
|
+
}
|
|
7434
|
+
},
|
|
7435
|
+
"feedbackFormUrl": {
|
|
7436
|
+
"type": "string"
|
|
7437
|
+
}
|
|
7438
|
+
}
|
|
7219
7439
|
},
|
|
7220
|
-
"
|
|
7221
|
-
"
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
"
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7440
|
+
"fit": {
|
|
7441
|
+
"title": "FeedbackOutcomeRuleSchema",
|
|
7442
|
+
"type": "object",
|
|
7443
|
+
"description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
|
|
7444
|
+
"properties": {
|
|
7445
|
+
"enabled": {
|
|
7446
|
+
"type": "boolean",
|
|
7447
|
+
"default": false,
|
|
7448
|
+
"description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
|
|
7449
|
+
},
|
|
7450
|
+
"tone": {
|
|
7451
|
+
"type": "string",
|
|
7452
|
+
"enum": [
|
|
7453
|
+
"casual",
|
|
7454
|
+
"formal",
|
|
7455
|
+
"superFormal"
|
|
7456
|
+
]
|
|
7457
|
+
},
|
|
7458
|
+
"transparency": {
|
|
7459
|
+
"type": "string",
|
|
7460
|
+
"enum": [
|
|
7461
|
+
"generic",
|
|
7462
|
+
"category",
|
|
7463
|
+
"specific"
|
|
7464
|
+
]
|
|
7465
|
+
},
|
|
7466
|
+
"delay": {
|
|
7467
|
+
"type": "integer",
|
|
7468
|
+
"default": 72
|
|
7469
|
+
},
|
|
7470
|
+
"respectBusinessDays": {
|
|
7471
|
+
"type": "boolean",
|
|
7472
|
+
"default": false
|
|
7473
|
+
},
|
|
7474
|
+
"aiDisclosure": {
|
|
7475
|
+
"type": "boolean",
|
|
7476
|
+
"default": true
|
|
7477
|
+
},
|
|
7478
|
+
"signature": {
|
|
7479
|
+
"type": "object",
|
|
7480
|
+
"properties": {
|
|
7481
|
+
"name": {
|
|
7482
|
+
"type": "string"
|
|
7483
|
+
},
|
|
7484
|
+
"title": {
|
|
7485
|
+
"type": "string"
|
|
7486
|
+
},
|
|
7487
|
+
"company": {
|
|
7488
|
+
"type": "string"
|
|
7489
|
+
}
|
|
7490
|
+
}
|
|
7491
|
+
},
|
|
7492
|
+
"instructions": {
|
|
7493
|
+
"type": "string"
|
|
7494
|
+
},
|
|
7495
|
+
"categories": {
|
|
7496
|
+
"type": "array",
|
|
7497
|
+
"items": {
|
|
7498
|
+
"type": "string"
|
|
7499
|
+
}
|
|
7500
|
+
},
|
|
7501
|
+
"reasons": {
|
|
7502
|
+
"type": "array",
|
|
7503
|
+
"items": {
|
|
7504
|
+
"type": "string"
|
|
7505
|
+
}
|
|
7506
|
+
},
|
|
7507
|
+
"links": {
|
|
7508
|
+
"type": "array",
|
|
7509
|
+
"items": {
|
|
7510
|
+
"type": "object",
|
|
7511
|
+
"properties": {
|
|
7512
|
+
"label": {
|
|
7513
|
+
"type": "string"
|
|
7514
|
+
},
|
|
7515
|
+
"url": {
|
|
7516
|
+
"type": "string"
|
|
7517
|
+
}
|
|
7518
|
+
}
|
|
7519
|
+
}
|
|
7520
|
+
},
|
|
7521
|
+
"feedbackFormUrl": {
|
|
7522
|
+
"type": "string"
|
|
7523
|
+
}
|
|
7254
7524
|
}
|
|
7255
7525
|
}
|
|
7256
7526
|
}
|
|
7257
7527
|
},
|
|
7258
|
-
"feedbackFormUrl": {
|
|
7259
|
-
"type": "string"
|
|
7260
|
-
},
|
|
7261
|
-
"status": {
|
|
7262
|
-
"type": "string",
|
|
7263
|
-
"enum": [
|
|
7264
|
-
"active",
|
|
7265
|
-
"draft",
|
|
7266
|
-
"archived",
|
|
7267
|
-
"failed"
|
|
7268
|
-
]
|
|
7269
|
-
},
|
|
7270
|
-
"source": {
|
|
7271
|
-
"type": "string"
|
|
7272
|
-
},
|
|
7273
7528
|
"timestamps": {
|
|
7274
7529
|
"title": "ResourceTimestampsSchema",
|
|
7275
7530
|
"type": "object",
|
|
@@ -7386,98 +7641,298 @@
|
|
|
7386
7641
|
"title": "FeedbackAttributesSchema",
|
|
7387
7642
|
"type": "object",
|
|
7388
7643
|
"required": [
|
|
7389
|
-
"name"
|
|
7644
|
+
"name",
|
|
7645
|
+
"stage"
|
|
7390
7646
|
],
|
|
7391
7647
|
"properties": {
|
|
7392
7648
|
"name": {
|
|
7393
7649
|
"type": "string"
|
|
7394
7650
|
},
|
|
7395
|
-
"
|
|
7651
|
+
"stage": {
|
|
7396
7652
|
"type": "string",
|
|
7397
7653
|
"enum": [
|
|
7398
|
-
"
|
|
7399
|
-
"
|
|
7400
|
-
|
|
7401
|
-
|
|
7654
|
+
"screening",
|
|
7655
|
+
"assessment"
|
|
7656
|
+
],
|
|
7657
|
+
"description": "Pipeline stage this feedback configuration applies to. Matches candidate.stage."
|
|
7402
7658
|
},
|
|
7403
|
-
"
|
|
7659
|
+
"status": {
|
|
7404
7660
|
"type": "string",
|
|
7405
7661
|
"enum": [
|
|
7406
|
-
"
|
|
7407
|
-
"
|
|
7408
|
-
"
|
|
7662
|
+
"active",
|
|
7663
|
+
"draft",
|
|
7664
|
+
"archived",
|
|
7665
|
+
"failed"
|
|
7409
7666
|
]
|
|
7410
7667
|
},
|
|
7411
|
-
"
|
|
7412
|
-
"type": "
|
|
7413
|
-
"default": 72
|
|
7414
|
-
},
|
|
7415
|
-
"respectBusinessDays": {
|
|
7416
|
-
"type": "boolean",
|
|
7417
|
-
"default": false
|
|
7668
|
+
"source": {
|
|
7669
|
+
"type": "string"
|
|
7418
7670
|
},
|
|
7419
|
-
"
|
|
7671
|
+
"outcomes": {
|
|
7672
|
+
"title": "FeedbackOutcomesSchema",
|
|
7420
7673
|
"type": "object",
|
|
7674
|
+
"description": "Per-outcome feedback rules. Outcome keys map to candidate.recommendationStatusCode: 1=notFit, 2=maybe, 3=fit. Code 0 (not evaluated) never triggers feedback — the workflow pauses instead.",
|
|
7421
7675
|
"properties": {
|
|
7422
|
-
"
|
|
7423
|
-
"
|
|
7676
|
+
"notFit": {
|
|
7677
|
+
"title": "FeedbackOutcomeRuleSchema",
|
|
7678
|
+
"type": "object",
|
|
7679
|
+
"description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
|
|
7680
|
+
"properties": {
|
|
7681
|
+
"enabled": {
|
|
7682
|
+
"type": "boolean",
|
|
7683
|
+
"default": false,
|
|
7684
|
+
"description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
|
|
7685
|
+
},
|
|
7686
|
+
"tone": {
|
|
7687
|
+
"type": "string",
|
|
7688
|
+
"enum": [
|
|
7689
|
+
"casual",
|
|
7690
|
+
"formal",
|
|
7691
|
+
"superFormal"
|
|
7692
|
+
]
|
|
7693
|
+
},
|
|
7694
|
+
"transparency": {
|
|
7695
|
+
"type": "string",
|
|
7696
|
+
"enum": [
|
|
7697
|
+
"generic",
|
|
7698
|
+
"category",
|
|
7699
|
+
"specific"
|
|
7700
|
+
]
|
|
7701
|
+
},
|
|
7702
|
+
"delay": {
|
|
7703
|
+
"type": "integer",
|
|
7704
|
+
"default": 72
|
|
7705
|
+
},
|
|
7706
|
+
"respectBusinessDays": {
|
|
7707
|
+
"type": "boolean",
|
|
7708
|
+
"default": false
|
|
7709
|
+
},
|
|
7710
|
+
"aiDisclosure": {
|
|
7711
|
+
"type": "boolean",
|
|
7712
|
+
"default": true
|
|
7713
|
+
},
|
|
7714
|
+
"signature": {
|
|
7715
|
+
"type": "object",
|
|
7716
|
+
"properties": {
|
|
7717
|
+
"name": {
|
|
7718
|
+
"type": "string"
|
|
7719
|
+
},
|
|
7720
|
+
"title": {
|
|
7721
|
+
"type": "string"
|
|
7722
|
+
},
|
|
7723
|
+
"company": {
|
|
7724
|
+
"type": "string"
|
|
7725
|
+
}
|
|
7726
|
+
}
|
|
7727
|
+
},
|
|
7728
|
+
"instructions": {
|
|
7729
|
+
"type": "string"
|
|
7730
|
+
},
|
|
7731
|
+
"categories": {
|
|
7732
|
+
"type": "array",
|
|
7733
|
+
"items": {
|
|
7734
|
+
"type": "string"
|
|
7735
|
+
}
|
|
7736
|
+
},
|
|
7737
|
+
"reasons": {
|
|
7738
|
+
"type": "array",
|
|
7739
|
+
"items": {
|
|
7740
|
+
"type": "string"
|
|
7741
|
+
}
|
|
7742
|
+
},
|
|
7743
|
+
"links": {
|
|
7744
|
+
"type": "array",
|
|
7745
|
+
"items": {
|
|
7746
|
+
"type": "object",
|
|
7747
|
+
"properties": {
|
|
7748
|
+
"label": {
|
|
7749
|
+
"type": "string"
|
|
7750
|
+
},
|
|
7751
|
+
"url": {
|
|
7752
|
+
"type": "string"
|
|
7753
|
+
}
|
|
7754
|
+
}
|
|
7755
|
+
}
|
|
7756
|
+
},
|
|
7757
|
+
"feedbackFormUrl": {
|
|
7758
|
+
"type": "string"
|
|
7759
|
+
}
|
|
7760
|
+
}
|
|
7424
7761
|
},
|
|
7425
|
-
"
|
|
7426
|
-
"
|
|
7762
|
+
"maybe": {
|
|
7763
|
+
"title": "FeedbackOutcomeRuleSchema",
|
|
7764
|
+
"type": "object",
|
|
7765
|
+
"description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
|
|
7766
|
+
"properties": {
|
|
7767
|
+
"enabled": {
|
|
7768
|
+
"type": "boolean",
|
|
7769
|
+
"default": false,
|
|
7770
|
+
"description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
|
|
7771
|
+
},
|
|
7772
|
+
"tone": {
|
|
7773
|
+
"type": "string",
|
|
7774
|
+
"enum": [
|
|
7775
|
+
"casual",
|
|
7776
|
+
"formal",
|
|
7777
|
+
"superFormal"
|
|
7778
|
+
]
|
|
7779
|
+
},
|
|
7780
|
+
"transparency": {
|
|
7781
|
+
"type": "string",
|
|
7782
|
+
"enum": [
|
|
7783
|
+
"generic",
|
|
7784
|
+
"category",
|
|
7785
|
+
"specific"
|
|
7786
|
+
]
|
|
7787
|
+
},
|
|
7788
|
+
"delay": {
|
|
7789
|
+
"type": "integer",
|
|
7790
|
+
"default": 72
|
|
7791
|
+
},
|
|
7792
|
+
"respectBusinessDays": {
|
|
7793
|
+
"type": "boolean",
|
|
7794
|
+
"default": false
|
|
7795
|
+
},
|
|
7796
|
+
"aiDisclosure": {
|
|
7797
|
+
"type": "boolean",
|
|
7798
|
+
"default": true
|
|
7799
|
+
},
|
|
7800
|
+
"signature": {
|
|
7801
|
+
"type": "object",
|
|
7802
|
+
"properties": {
|
|
7803
|
+
"name": {
|
|
7804
|
+
"type": "string"
|
|
7805
|
+
},
|
|
7806
|
+
"title": {
|
|
7807
|
+
"type": "string"
|
|
7808
|
+
},
|
|
7809
|
+
"company": {
|
|
7810
|
+
"type": "string"
|
|
7811
|
+
}
|
|
7812
|
+
}
|
|
7813
|
+
},
|
|
7814
|
+
"instructions": {
|
|
7815
|
+
"type": "string"
|
|
7816
|
+
},
|
|
7817
|
+
"categories": {
|
|
7818
|
+
"type": "array",
|
|
7819
|
+
"items": {
|
|
7820
|
+
"type": "string"
|
|
7821
|
+
}
|
|
7822
|
+
},
|
|
7823
|
+
"reasons": {
|
|
7824
|
+
"type": "array",
|
|
7825
|
+
"items": {
|
|
7826
|
+
"type": "string"
|
|
7827
|
+
}
|
|
7828
|
+
},
|
|
7829
|
+
"links": {
|
|
7830
|
+
"type": "array",
|
|
7831
|
+
"items": {
|
|
7832
|
+
"type": "object",
|
|
7833
|
+
"properties": {
|
|
7834
|
+
"label": {
|
|
7835
|
+
"type": "string"
|
|
7836
|
+
},
|
|
7837
|
+
"url": {
|
|
7838
|
+
"type": "string"
|
|
7839
|
+
}
|
|
7840
|
+
}
|
|
7841
|
+
}
|
|
7842
|
+
},
|
|
7843
|
+
"feedbackFormUrl": {
|
|
7844
|
+
"type": "string"
|
|
7845
|
+
}
|
|
7846
|
+
}
|
|
7427
7847
|
},
|
|
7428
|
-
"
|
|
7429
|
-
"
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
"
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7848
|
+
"fit": {
|
|
7849
|
+
"title": "FeedbackOutcomeRuleSchema",
|
|
7850
|
+
"type": "object",
|
|
7851
|
+
"description": "Feedback rule for a single outcome within a stage. Every field is per-outcome; there are no top-level defaults.",
|
|
7852
|
+
"properties": {
|
|
7853
|
+
"enabled": {
|
|
7854
|
+
"type": "boolean",
|
|
7855
|
+
"default": false,
|
|
7856
|
+
"description": "When false, the workflow skips the feedback email for this outcome. The admin handles the candidate manually."
|
|
7857
|
+
},
|
|
7858
|
+
"tone": {
|
|
7859
|
+
"type": "string",
|
|
7860
|
+
"enum": [
|
|
7861
|
+
"casual",
|
|
7862
|
+
"formal",
|
|
7863
|
+
"superFormal"
|
|
7864
|
+
]
|
|
7865
|
+
},
|
|
7866
|
+
"transparency": {
|
|
7867
|
+
"type": "string",
|
|
7868
|
+
"enum": [
|
|
7869
|
+
"generic",
|
|
7870
|
+
"category",
|
|
7871
|
+
"specific"
|
|
7872
|
+
]
|
|
7873
|
+
},
|
|
7874
|
+
"delay": {
|
|
7875
|
+
"type": "integer",
|
|
7876
|
+
"default": 72
|
|
7877
|
+
},
|
|
7878
|
+
"respectBusinessDays": {
|
|
7879
|
+
"type": "boolean",
|
|
7880
|
+
"default": false
|
|
7881
|
+
},
|
|
7882
|
+
"aiDisclosure": {
|
|
7883
|
+
"type": "boolean",
|
|
7884
|
+
"default": true
|
|
7885
|
+
},
|
|
7886
|
+
"signature": {
|
|
7887
|
+
"type": "object",
|
|
7888
|
+
"properties": {
|
|
7889
|
+
"name": {
|
|
7890
|
+
"type": "string"
|
|
7891
|
+
},
|
|
7892
|
+
"title": {
|
|
7893
|
+
"type": "string"
|
|
7894
|
+
},
|
|
7895
|
+
"company": {
|
|
7896
|
+
"type": "string"
|
|
7897
|
+
}
|
|
7898
|
+
}
|
|
7899
|
+
},
|
|
7900
|
+
"instructions": {
|
|
7901
|
+
"type": "string"
|
|
7902
|
+
},
|
|
7903
|
+
"categories": {
|
|
7904
|
+
"type": "array",
|
|
7905
|
+
"items": {
|
|
7906
|
+
"type": "string"
|
|
7907
|
+
}
|
|
7908
|
+
},
|
|
7909
|
+
"reasons": {
|
|
7910
|
+
"type": "array",
|
|
7911
|
+
"items": {
|
|
7912
|
+
"type": "string"
|
|
7913
|
+
}
|
|
7914
|
+
},
|
|
7915
|
+
"links": {
|
|
7916
|
+
"type": "array",
|
|
7917
|
+
"items": {
|
|
7918
|
+
"type": "object",
|
|
7919
|
+
"properties": {
|
|
7920
|
+
"label": {
|
|
7921
|
+
"type": "string"
|
|
7922
|
+
},
|
|
7923
|
+
"url": {
|
|
7924
|
+
"type": "string"
|
|
7925
|
+
}
|
|
7926
|
+
}
|
|
7927
|
+
}
|
|
7928
|
+
},
|
|
7929
|
+
"feedbackFormUrl": {
|
|
7930
|
+
"type": "string"
|
|
7931
|
+
}
|
|
7462
7932
|
}
|
|
7463
7933
|
}
|
|
7464
7934
|
}
|
|
7465
7935
|
},
|
|
7466
|
-
"feedbackFormUrl": {
|
|
7467
|
-
"type": "string"
|
|
7468
|
-
},
|
|
7469
|
-
"status": {
|
|
7470
|
-
"type": "string",
|
|
7471
|
-
"enum": [
|
|
7472
|
-
"active",
|
|
7473
|
-
"draft",
|
|
7474
|
-
"archived",
|
|
7475
|
-
"failed"
|
|
7476
|
-
]
|
|
7477
|
-
},
|
|
7478
|
-
"source": {
|
|
7479
|
-
"type": "string"
|
|
7480
|
-
},
|
|
7481
7936
|
"timestamps": {
|
|
7482
7937
|
"title": "ResourceTimestampsSchema",
|
|
7483
7938
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartytalent/openai-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"description": "OpenAI function/tool definitions for SmartyTalent API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"tools",
|
|
21
21
|
"api"
|
|
22
22
|
],
|
|
23
|
-
"license": "
|
|
23
|
+
"license": "Apache-2.0"
|
|
24
24
|
}
|