@superdurable/connector-ashby 0.1.0 → 0.2.0
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/dex-connector.json +1933 -2
- package/dist/chunk-ARSIHHSF.js +1417 -0
- package/dist/connection-BHsC6yC5.d.ts +988 -0
- package/dist/index.d.ts +1759 -5
- package/dist/index.js +2207 -19
- package/dist/mock.d.ts +627 -5
- package/dist/mock.js +1556 -4
- package/package.json +3 -3
- package/dist/chunk-6O5ADW6S.js +0 -107
- package/dist/connection-DrUeqnOI.d.ts +0 -75
|
@@ -0,0 +1,988 @@
|
|
|
1
|
+
import { SecretString, CredentialProvider, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/** Connector configuration; omitted fields use manifest defaults. */
|
|
5
|
+
interface Config {
|
|
6
|
+
/** Ashby API root as an absolute HTTPS URL. Blank uses the displayed endpoint; override only for a trusted local test gateway. */
|
|
7
|
+
baseUrl?: string;
|
|
8
|
+
/** Maximum duration of one API request as a positive Go duration such as 15s. Blank uses the displayed default; increase for slow candidate reads. Runtime value in milliseconds. */
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
/** Maximum complete candidate response in bytes as a positive integer. Blank uses the displayed default; increase for candidates with large metadata. */
|
|
11
|
+
maxResponseBytes?: number;
|
|
12
|
+
}
|
|
13
|
+
/** Runtime schema for manifest configuration. */
|
|
14
|
+
declare const ConfigSchema: z.ZodObject<{
|
|
15
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
16
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
maxResponseBytes: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
/** Private connector credentials resolved by the host. */
|
|
20
|
+
interface Credentials {
|
|
21
|
+
/** Secret Ashby API key from Admin > API Keys. Grant Candidates, Jobs, and Interviews read/write permissions for the operations used, plus Candidates delete for application deletion; copy the complete opaque value once. Blank prevents calls. Dex uses it as the Basic username with an empty password. */
|
|
22
|
+
apiKey: SecretString;
|
|
23
|
+
}
|
|
24
|
+
/** Stored credential material that fails the connector credential checks, so no retry can succeed. */
|
|
25
|
+
declare class CredentialMaterialError extends TypeError {
|
|
26
|
+
constructor(message: string);
|
|
27
|
+
}
|
|
28
|
+
/** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
|
|
29
|
+
declare function isCredentialMaterialError(error: unknown): boolean;
|
|
30
|
+
/** Decode private credential fields for the connector. */
|
|
31
|
+
declare function decodeCredentials(value: unknown): Credentials;
|
|
32
|
+
/** Host-owned source of private connector credentials. */
|
|
33
|
+
type CredentialSource = CredentialProvider<Credentials>;
|
|
34
|
+
/** ListApplicationFeedbackInput selects feedback for an application. */
|
|
35
|
+
interface ListApplicationFeedbackInput {
|
|
36
|
+
/** ApplicationID is the application UUID. */
|
|
37
|
+
"applicationId": string;
|
|
38
|
+
/** Cursor is the opaque Ashby continuation cursor; blank starts the first page. */
|
|
39
|
+
"cursor"?: string | undefined;
|
|
40
|
+
/** Limit caps the page at 100 submissions; zero uses Ashby's default. */
|
|
41
|
+
"limit"?: number | undefined;
|
|
42
|
+
}
|
|
43
|
+
/** ApplicationFeedbackSummary exposes feedback identity without answers or users. */
|
|
44
|
+
interface ApplicationFeedbackSummary {
|
|
45
|
+
/** ID is the Ashby feedback UUID. */
|
|
46
|
+
"id": string;
|
|
47
|
+
/** ApplicationID is the associated application UUID. */
|
|
48
|
+
"applicationId": string;
|
|
49
|
+
/** InterviewID is the associated interview definition UUID. */
|
|
50
|
+
"interviewId": string;
|
|
51
|
+
/** InterviewEventID is the scheduled event UUID. */
|
|
52
|
+
"interviewEventId": string;
|
|
53
|
+
/** SubmittedAt is the Ashby submission timestamp. */
|
|
54
|
+
"submittedAt": string;
|
|
55
|
+
}
|
|
56
|
+
/** ApplicationFeedbackPage contains submission identities and continuation state. */
|
|
57
|
+
interface ApplicationFeedbackPage {
|
|
58
|
+
/** Feedback excludes answers, users, and form definitions. */
|
|
59
|
+
"feedback": Array<ApplicationFeedbackSummary> | null;
|
|
60
|
+
/** NextCursor is passed to the next request when MoreDataAvailable is true. */
|
|
61
|
+
"nextCursor"?: string | undefined;
|
|
62
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
63
|
+
"moreDataAvailable": boolean;
|
|
64
|
+
}
|
|
65
|
+
/** RequestApplicationFeedbackInput asks one Ashby user for feedback on an application. */
|
|
66
|
+
interface RequestApplicationFeedbackInput {
|
|
67
|
+
/** ApplicationID is the application UUID. */
|
|
68
|
+
"applicationId": string;
|
|
69
|
+
/** InterviewID is the interview definition UUID. */
|
|
70
|
+
"interviewId": string;
|
|
71
|
+
/** InterviewerUserID is the Ashby user UUID receiving the request. */
|
|
72
|
+
"interviewerUserId": string;
|
|
73
|
+
}
|
|
74
|
+
/** FeedbackRequestReceipt identifies the feedback request's interview event. */
|
|
75
|
+
interface FeedbackRequestReceipt {
|
|
76
|
+
/** ApplicationID is the application UUID. */
|
|
77
|
+
"applicationId": string;
|
|
78
|
+
/** InterviewEventID is the new event UUID. */
|
|
79
|
+
"interviewEventId": string;
|
|
80
|
+
/** InterviewerUserID is the requested user's UUID. */
|
|
81
|
+
"interviewerUserId": string;
|
|
82
|
+
}
|
|
83
|
+
/** FeedbackFieldSubmission supplies one answer using the Ashby form's field path. */
|
|
84
|
+
interface FeedbackFieldSubmission {
|
|
85
|
+
/** Path is the exact field path from feedbackFormDefinition.info. */
|
|
86
|
+
"path": string;
|
|
87
|
+
/** Value is JSON in the field's declared type; omit secrets. */
|
|
88
|
+
"value": unknown | null;
|
|
89
|
+
}
|
|
90
|
+
/** SubmitApplicationFeedbackInput replaces feedback for one interviewer and event. */
|
|
91
|
+
interface SubmitApplicationFeedbackInput {
|
|
92
|
+
/** ApplicationID is the application UUID. */
|
|
93
|
+
"applicationId": string;
|
|
94
|
+
/** FormDefinitionID is the interview's assigned feedback form UUID. */
|
|
95
|
+
"formDefinitionId": string;
|
|
96
|
+
/** UserID is the interviewer UUID credited with the feedback. */
|
|
97
|
+
"userId": string;
|
|
98
|
+
/** InterviewEventID is the event UUID; its presence makes repeat submissions replace existing feedback. */
|
|
99
|
+
"interviewEventId": string;
|
|
100
|
+
/** FieldSubmissions are answers keyed by form field paths. */
|
|
101
|
+
"fieldSubmissions": Array<FeedbackFieldSubmission> | null;
|
|
102
|
+
}
|
|
103
|
+
/** FeedbackSubmissionReceipt identifies the submitted form without exposing answers. */
|
|
104
|
+
interface FeedbackSubmissionReceipt {
|
|
105
|
+
/** SubmissionID is the submitted form instance UUID. */
|
|
106
|
+
"submissionId": string;
|
|
107
|
+
}
|
|
108
|
+
/** ListInterviewsInput selects a bounded interview page. */
|
|
109
|
+
interface ListInterviewsInput {
|
|
110
|
+
/** Cursor is an opaque Ashby page cursor; blank starts the first page. */
|
|
111
|
+
"cursor"?: string | undefined;
|
|
112
|
+
/** Limit caps the page at 100 interviews; zero uses Ashby's default. */
|
|
113
|
+
"limit"?: number | undefined;
|
|
114
|
+
}
|
|
115
|
+
/** InterviewSummary exposes a reusable interview's identity and type. */
|
|
116
|
+
interface InterviewSummary {
|
|
117
|
+
/** ID is the Ashby interview UUID. */
|
|
118
|
+
"id": string;
|
|
119
|
+
/** Title is the interview's internal title. */
|
|
120
|
+
"title": string;
|
|
121
|
+
/** Type distinguishes interviews, assessments, take-homes, and debriefs. */
|
|
122
|
+
"type": string;
|
|
123
|
+
/** JobID is the associated job UUID for local interviews; blank means shared. */
|
|
124
|
+
"jobId"?: string | undefined;
|
|
125
|
+
}
|
|
126
|
+
/** InterviewPage contains interview identities and continuation information. */
|
|
127
|
+
interface InterviewPage {
|
|
128
|
+
/** Interviews omits instructions and feedback form content. */
|
|
129
|
+
"interviews": Array<InterviewSummary> | null;
|
|
130
|
+
/** NextCursor is passed to the next request when MoreDataAvailable is true. */
|
|
131
|
+
"nextCursor"?: string | undefined;
|
|
132
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
133
|
+
"moreDataAvailable": boolean;
|
|
134
|
+
}
|
|
135
|
+
/** GetInterviewInput identifies one interview definition. */
|
|
136
|
+
interface GetInterviewInput {
|
|
137
|
+
/** InterviewID is the non-secret Ashby interview UUID. */
|
|
138
|
+
"interviewId": string;
|
|
139
|
+
}
|
|
140
|
+
/** ListInterviewSchedulesInput selects schedules for one application. */
|
|
141
|
+
interface ListInterviewSchedulesInput {
|
|
142
|
+
/** ApplicationID is the application UUID to filter by. */
|
|
143
|
+
"applicationId": string;
|
|
144
|
+
/** Cursor is an opaque Ashby page cursor; blank starts the first page. */
|
|
145
|
+
"cursor"?: string | undefined;
|
|
146
|
+
/** Limit caps a page at 100 schedules; zero uses Ashby's default. */
|
|
147
|
+
"limit"?: number | undefined;
|
|
148
|
+
}
|
|
149
|
+
/** InterviewScheduleSummary exposes schedule state without interviewer details. */
|
|
150
|
+
interface InterviewScheduleSummary {
|
|
151
|
+
/** ID is the Ashby schedule UUID. */
|
|
152
|
+
"id": string;
|
|
153
|
+
/** ApplicationID is the associated application UUID. */
|
|
154
|
+
"applicationId": string;
|
|
155
|
+
/** InterviewStageID is the application stage for this schedule. */
|
|
156
|
+
"interviewStageId": string;
|
|
157
|
+
/** Status is Ashby's current schedule status. */
|
|
158
|
+
"status": string;
|
|
159
|
+
/** CreatedAt is the schedule creation timestamp. */
|
|
160
|
+
"createdAt": string;
|
|
161
|
+
/** UpdatedAt is the schedule update timestamp. */
|
|
162
|
+
"updatedAt": string;
|
|
163
|
+
}
|
|
164
|
+
/** InterviewSchedulePage contains schedules and continuation information. */
|
|
165
|
+
interface InterviewSchedulePage {
|
|
166
|
+
/** Schedules omits meeting links and interviewer details. */
|
|
167
|
+
"schedules": Array<InterviewScheduleSummary> | null;
|
|
168
|
+
/** NextCursor is passed to the next request when MoreDataAvailable is true. */
|
|
169
|
+
"nextCursor"?: string | undefined;
|
|
170
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
171
|
+
"moreDataAvailable": boolean;
|
|
172
|
+
}
|
|
173
|
+
/** GetInterviewScheduleInput identifies one schedule. */
|
|
174
|
+
interface GetInterviewScheduleInput {
|
|
175
|
+
/** InterviewScheduleID is the non-secret Ashby schedule UUID. */
|
|
176
|
+
"interviewScheduleId": string;
|
|
177
|
+
}
|
|
178
|
+
/** InterviewScheduleInterviewer identifies an Ashby user by email. */
|
|
179
|
+
interface InterviewScheduleInterviewer {
|
|
180
|
+
/** Email is the interviewer's Ashby account email address. */
|
|
181
|
+
"email": string;
|
|
182
|
+
/** FeedbackRequired indicates whether this interviewer must submit feedback. */
|
|
183
|
+
"feedbackRequired"?: boolean | undefined;
|
|
184
|
+
}
|
|
185
|
+
/** InterviewScheduleEvent supplies a time range and interviewers. */
|
|
186
|
+
interface InterviewScheduleEvent {
|
|
187
|
+
/** StartTime is an RFC3339 timestamp. */
|
|
188
|
+
"startTime": string;
|
|
189
|
+
/** EndTime is an RFC3339 timestamp after StartTime. */
|
|
190
|
+
"endTime": string;
|
|
191
|
+
/** Interviewers are Ashby users who receive this interview. */
|
|
192
|
+
"interviewers": Array<InterviewScheduleInterviewer> | null;
|
|
193
|
+
/** InterviewID selects an interview definition; blank uses Ashby's default. */
|
|
194
|
+
"interviewId"?: string | undefined;
|
|
195
|
+
}
|
|
196
|
+
/** CreateInterviewScheduleInput creates a schedule for one application. */
|
|
197
|
+
interface CreateInterviewScheduleInput {
|
|
198
|
+
/** ApplicationID is the application UUID. */
|
|
199
|
+
"applicationId": string;
|
|
200
|
+
/** InterviewEvents contains one to ten scheduled events. */
|
|
201
|
+
"interviewEvents": Array<InterviewScheduleEvent> | null;
|
|
202
|
+
}
|
|
203
|
+
/** CancelInterviewScheduleInput identifies a schedule to cancel. */
|
|
204
|
+
interface CancelInterviewScheduleInput {
|
|
205
|
+
/** InterviewScheduleID is the schedule UUID. */
|
|
206
|
+
"interviewScheduleId": string;
|
|
207
|
+
}
|
|
208
|
+
/** CancelInterviewEventInput identifies one event on an API-created schedule. */
|
|
209
|
+
interface CancelInterviewEventInput {
|
|
210
|
+
/** InterviewScheduleID is the schedule UUID. */
|
|
211
|
+
"interviewScheduleId": string;
|
|
212
|
+
/** InterviewEventID is the event UUID to cancel. */
|
|
213
|
+
"interviewEventId": string;
|
|
214
|
+
}
|
|
215
|
+
/** ListApplicationsInput selects one bounded application page. */
|
|
216
|
+
interface ListApplicationsInput {
|
|
217
|
+
/** Cursor is an opaque Ashby page cursor; blank starts the first page. */
|
|
218
|
+
"cursor"?: string | undefined;
|
|
219
|
+
/** Limit caps a page at 100 applications; zero uses Ashby's default. */
|
|
220
|
+
"limit"?: number | undefined;
|
|
221
|
+
}
|
|
222
|
+
/** ApplicationSummary exposes only an application's IDs, status, and timestamps. */
|
|
223
|
+
interface ApplicationSummary {
|
|
224
|
+
/** ID is the Ashby application UUID. */
|
|
225
|
+
"id": string;
|
|
226
|
+
/** CandidateID is the associated candidate UUID. */
|
|
227
|
+
"candidateId": string;
|
|
228
|
+
/** JobID is the associated job UUID. */
|
|
229
|
+
"jobId": string;
|
|
230
|
+
/** InterviewStageID is the current interview stage UUID. */
|
|
231
|
+
"interviewStageId": string;
|
|
232
|
+
/** Status is Lead, Active, Archived, or Hired. */
|
|
233
|
+
"status": string;
|
|
234
|
+
/** CreatedAt is the application creation timestamp. */
|
|
235
|
+
"createdAt": string;
|
|
236
|
+
/** UpdatedAt is the application update timestamp. */
|
|
237
|
+
"updatedAt": string;
|
|
238
|
+
}
|
|
239
|
+
/** ApplicationPage contains a bounded page and its continuation cursor. */
|
|
240
|
+
interface ApplicationPage {
|
|
241
|
+
/** Applications omits candidate contact details and form submissions. */
|
|
242
|
+
"applications": Array<ApplicationSummary> | null;
|
|
243
|
+
/** NextCursor is passed to the next request when MoreDataAvailable is true. */
|
|
244
|
+
"nextCursor"?: string | undefined;
|
|
245
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
246
|
+
"moreDataAvailable": boolean;
|
|
247
|
+
}
|
|
248
|
+
/** GetApplicationInput identifies one application. */
|
|
249
|
+
interface GetApplicationInput {
|
|
250
|
+
/** ApplicationID is a non-secret Ashby application UUID. */
|
|
251
|
+
"applicationId": string;
|
|
252
|
+
}
|
|
253
|
+
/** CreateApplicationInput considers an existing candidate for an existing job. */
|
|
254
|
+
interface CreateApplicationInput {
|
|
255
|
+
/** CandidateID is the Ashby candidate UUID. */
|
|
256
|
+
"candidateId": string;
|
|
257
|
+
/** JobID is the Ashby job UUID. */
|
|
258
|
+
"jobId": string;
|
|
259
|
+
}
|
|
260
|
+
/** ChangeApplicationStageInput selects one interview stage without an archive email. */
|
|
261
|
+
interface ChangeApplicationStageInput {
|
|
262
|
+
/** ApplicationID is the Ashby application UUID. */
|
|
263
|
+
"applicationId": string;
|
|
264
|
+
/** InterviewStageID is the target stage UUID. */
|
|
265
|
+
"interviewStageId": string;
|
|
266
|
+
/** ArchiveReasonID is required by Ashby when the target is an Archived stage. */
|
|
267
|
+
"archiveReasonId"?: string | undefined;
|
|
268
|
+
}
|
|
269
|
+
/** TransferApplicationInput selects an absolute target job, plan, and stage. */
|
|
270
|
+
interface TransferApplicationInput {
|
|
271
|
+
/** ApplicationID is the existing application UUID. */
|
|
272
|
+
"applicationId": string;
|
|
273
|
+
/** JobID is the target job UUID. */
|
|
274
|
+
"jobId": string;
|
|
275
|
+
/** InterviewPlanID is the target job's interview plan UUID. */
|
|
276
|
+
"interviewPlanId": string;
|
|
277
|
+
/** InterviewStageID is a stage UUID in the target plan. */
|
|
278
|
+
"interviewStageId": string;
|
|
279
|
+
}
|
|
280
|
+
/** SetApplicationSourceInput selects a source UUID for an application. */
|
|
281
|
+
interface SetApplicationSourceInput {
|
|
282
|
+
/** ApplicationID is the application UUID. */
|
|
283
|
+
"applicationId": string;
|
|
284
|
+
/** SourceID is the selected Ashby source UUID. */
|
|
285
|
+
"sourceId": string;
|
|
286
|
+
}
|
|
287
|
+
/** DeleteApplicationInput identifies an application to remove. */
|
|
288
|
+
interface DeleteApplicationInput {
|
|
289
|
+
/** ApplicationID is the Ashby application UUID. */
|
|
290
|
+
"applicationId": string;
|
|
291
|
+
}
|
|
292
|
+
/** DeletedApplication identifies the removed application. */
|
|
293
|
+
interface DeletedApplication {
|
|
294
|
+
/** ApplicationID is the UUID Ashby reports as deleted. */
|
|
295
|
+
"applicationId": string;
|
|
296
|
+
}
|
|
297
|
+
/** ListJobsInput selects one bounded page of jobs. */
|
|
298
|
+
interface ListJobsInput {
|
|
299
|
+
/** Cursor is an opaque Ashby page cursor; blank starts at the first page. */
|
|
300
|
+
"cursor"?: string | undefined;
|
|
301
|
+
/** Limit caps a page at 100 jobs; zero uses the provider default. */
|
|
302
|
+
"limit"?: number | undefined;
|
|
303
|
+
}
|
|
304
|
+
/** JobSummary exposes the job identity, title, status, and timestamps only. */
|
|
305
|
+
interface JobSummary {
|
|
306
|
+
/** ID is Ashby's job UUID. */
|
|
307
|
+
"id": string;
|
|
308
|
+
/** Title is the job's display title. */
|
|
309
|
+
"title": string;
|
|
310
|
+
/** Status is Draft, Open, Closed, or Archived. */
|
|
311
|
+
"status": string;
|
|
312
|
+
/** CreatedAt is Ashby's UTC creation timestamp. */
|
|
313
|
+
"createdAt": string;
|
|
314
|
+
/** UpdatedAt is Ashby's UTC update timestamp. */
|
|
315
|
+
"updatedAt": string;
|
|
316
|
+
}
|
|
317
|
+
/** JobPage carries job identities and an optional next cursor. */
|
|
318
|
+
interface JobPage {
|
|
319
|
+
/** Jobs contains only job identity fields. */
|
|
320
|
+
"jobs": Array<JobSummary> | null;
|
|
321
|
+
/** NextCursor is passed to the next request when MoreDataAvailable is true. */
|
|
322
|
+
"nextCursor"?: string | undefined;
|
|
323
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
324
|
+
"moreDataAvailable": boolean;
|
|
325
|
+
}
|
|
326
|
+
/** GetJobInput identifies the job to inspect. */
|
|
327
|
+
interface GetJobInput {
|
|
328
|
+
/** JobID is the non-secret Ashby job UUID. */
|
|
329
|
+
"jobId": string;
|
|
330
|
+
}
|
|
331
|
+
/** SearchJobsInput selects matching jobs by title, requisition ID, or both. */
|
|
332
|
+
interface SearchJobsInput {
|
|
333
|
+
/** Title is a title or substring, up to 512 bytes. */
|
|
334
|
+
"title"?: string | undefined;
|
|
335
|
+
/** RequisitionID is an optional custom requisition ID or substring, up to 256 bytes. */
|
|
336
|
+
"requisitionId"?: string | undefined;
|
|
337
|
+
/** Limit caps the search at 100 jobs; zero uses the provider default. */
|
|
338
|
+
"limit"?: number | undefined;
|
|
339
|
+
}
|
|
340
|
+
/** JobSearchResults contains matching job identities. */
|
|
341
|
+
interface JobSearchResults {
|
|
342
|
+
/** Jobs omits hiring-team and compensation details. */
|
|
343
|
+
"jobs": Array<JobSummary> | null;
|
|
344
|
+
}
|
|
345
|
+
/** CreateJobInput supplies Ashby's required job title, team, and location. */
|
|
346
|
+
interface CreateJobInput {
|
|
347
|
+
/** Title is the complete job title, up to 512 bytes. */
|
|
348
|
+
"title": string;
|
|
349
|
+
/** TeamID is the Ashby team or department UUID. */
|
|
350
|
+
"teamId": string;
|
|
351
|
+
/** LocationID is the Ashby location UUID. */
|
|
352
|
+
"locationId": string;
|
|
353
|
+
}
|
|
354
|
+
/** UpdateJobTitleInput replaces a job title with one absolute value. */
|
|
355
|
+
interface UpdateJobTitleInput {
|
|
356
|
+
/** JobID is the non-secret Ashby job UUID. */
|
|
357
|
+
"jobId": string;
|
|
358
|
+
/** Title is the complete new title, up to 512 bytes. */
|
|
359
|
+
"title": string;
|
|
360
|
+
}
|
|
361
|
+
/** SetJobStatusInput selects one absolute job status. */
|
|
362
|
+
interface SetJobStatusInput {
|
|
363
|
+
/** JobID is the non-secret Ashby job UUID. */
|
|
364
|
+
"jobId": string;
|
|
365
|
+
/** Status is Draft, Open, Closed, or Archived. */
|
|
366
|
+
"status": string;
|
|
367
|
+
/** CloseReasonID is an optional close-reason UUID, valid only for Closed. */
|
|
368
|
+
"closeReasonId"?: string | undefined;
|
|
369
|
+
}
|
|
370
|
+
/** ListCandidateNotesInput selects one page of a candidate's notes. */
|
|
371
|
+
interface ListCandidateNotesInput {
|
|
372
|
+
/** CandidateID is the non-secret UUID of the candidate whose notes are listed. */
|
|
373
|
+
"candidateId": string;
|
|
374
|
+
/** Cursor is Ashby's opaque pagination cursor; blank starts at the first page. */
|
|
375
|
+
"cursor"?: string | undefined;
|
|
376
|
+
/** Limit caps the page at 100 notes; zero uses Ashby's default. */
|
|
377
|
+
"limit"?: number | undefined;
|
|
378
|
+
}
|
|
379
|
+
/** CandidateNoteSummary identifies a note without its content or author. */
|
|
380
|
+
interface CandidateNoteSummary {
|
|
381
|
+
/** ID is the note's UUID. */
|
|
382
|
+
"id": string;
|
|
383
|
+
/** CreatedAt is Ashby's creation timestamp in UTC. */
|
|
384
|
+
"createdAt": string;
|
|
385
|
+
/** IsPrivate reports whether Ashby marks the note private. */
|
|
386
|
+
"isPrivate": boolean;
|
|
387
|
+
}
|
|
388
|
+
/** CandidateNotePage is a bounded page with the next cursor when present. */
|
|
389
|
+
interface CandidateNotePage {
|
|
390
|
+
/** Notes are the candidate's associated note identities. */
|
|
391
|
+
"notes": Array<CandidateNoteSummary> | null;
|
|
392
|
+
/** NextCursor is passed to the next call when MoreDataAvailable is true. */
|
|
393
|
+
"nextCursor"?: string | undefined;
|
|
394
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
395
|
+
"moreDataAvailable": boolean;
|
|
396
|
+
}
|
|
397
|
+
/** CreateCandidateNoteInput supplies a candidate ID and plaintext note. */
|
|
398
|
+
interface CreateCandidateNoteInput {
|
|
399
|
+
/** CandidateID is the non-secret UUID of the candidate. */
|
|
400
|
+
"candidateId": string;
|
|
401
|
+
/** Note is plaintext content, up to 8192 bytes; do not include secrets. */
|
|
402
|
+
"note": string;
|
|
403
|
+
}
|
|
404
|
+
/** ListCandidateProjectsInput selects one page of a candidate's projects. */
|
|
405
|
+
interface ListCandidateProjectsInput {
|
|
406
|
+
/** CandidateID is the non-secret UUID of the candidate whose projects are listed. */
|
|
407
|
+
"candidateId": string;
|
|
408
|
+
/** Cursor is Ashby's opaque pagination cursor; blank starts at the first page. */
|
|
409
|
+
"cursor"?: string | undefined;
|
|
410
|
+
/** Limit caps the page at 100 projects; zero uses Ashby's default. */
|
|
411
|
+
"limit"?: number | undefined;
|
|
412
|
+
}
|
|
413
|
+
/** CandidateProjectSummary identifies a project without its description or members. */
|
|
414
|
+
interface CandidateProjectSummary {
|
|
415
|
+
/** ID is the project's UUID. */
|
|
416
|
+
"id": string;
|
|
417
|
+
/** Title is the project's name. */
|
|
418
|
+
"title": string;
|
|
419
|
+
/** CreatedAt is Ashby's creation timestamp in UTC. */
|
|
420
|
+
"createdAt": string;
|
|
421
|
+
/** IsArchived reports whether the project is archived. */
|
|
422
|
+
"isArchived": boolean;
|
|
423
|
+
}
|
|
424
|
+
/** CandidateProjectPage is a bounded page with the next cursor when present. */
|
|
425
|
+
interface CandidateProjectPage {
|
|
426
|
+
/** Projects are the candidate's associated project identities. */
|
|
427
|
+
"projects": Array<CandidateProjectSummary> | null;
|
|
428
|
+
/** NextCursor is passed to the next call when MoreDataAvailable is true. */
|
|
429
|
+
"nextCursor"?: string | undefined;
|
|
430
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
431
|
+
"moreDataAvailable": boolean;
|
|
432
|
+
}
|
|
433
|
+
/** CandidateProjectInput identifies the candidate and existing project to associate or disassociate. */
|
|
434
|
+
interface CandidateProjectInput {
|
|
435
|
+
/** CandidateID is the candidate UUID from Ashby Candidates or candidate.list. */
|
|
436
|
+
"candidateId": string;
|
|
437
|
+
/** ProjectID is the non-secret UUID of an existing Ashby candidate project. */
|
|
438
|
+
"projectId": string;
|
|
439
|
+
}
|
|
440
|
+
/** CandidateProfile excludes email, phone, files, and custom fields. */
|
|
441
|
+
interface CandidateProfile {
|
|
442
|
+
/** ID is the Ashby candidate UUID. */
|
|
443
|
+
"id": string;
|
|
444
|
+
/** Name is the candidate display name. */
|
|
445
|
+
"name": string;
|
|
446
|
+
/** CreatedAt is Ashby's creation timestamp. */
|
|
447
|
+
"createdAt": string;
|
|
448
|
+
/** UpdatedAt is Ashby's update timestamp. */
|
|
449
|
+
"updatedAt": string;
|
|
450
|
+
}
|
|
451
|
+
/** SearchCandidatesInput selects candidate matches by name, email, or both. */
|
|
452
|
+
interface SearchCandidatesInput {
|
|
453
|
+
/** Name is an optional candidate name, up to 512 bytes; one of Name or Email is required. */
|
|
454
|
+
"name"?: string | undefined;
|
|
455
|
+
/** Email is an optional complete email address, up to 320 bytes. */
|
|
456
|
+
"email"?: string | undefined;
|
|
457
|
+
/** Limit caps the response at 100 candidates; zero uses Ashby's default of 100. */
|
|
458
|
+
"limit"?: number | undefined;
|
|
459
|
+
}
|
|
460
|
+
/** CandidateSearchResults contains identity-only search matches. */
|
|
461
|
+
interface CandidateSearchResults {
|
|
462
|
+
/** Candidates omits contact details and all other sensitive profile fields. */
|
|
463
|
+
"candidates": Array<CandidateProfile> | null;
|
|
464
|
+
}
|
|
465
|
+
/** CreateCandidateInput supplies the candidate's complete display name. */
|
|
466
|
+
interface CreateCandidateInput {
|
|
467
|
+
/** Name is the first and last name, up to 512 bytes; blank is invalid. */
|
|
468
|
+
"name": string;
|
|
469
|
+
}
|
|
470
|
+
/** CandidateTagInput identifies the candidate and existing tag to associate or disassociate. */
|
|
471
|
+
interface CandidateTagInput {
|
|
472
|
+
/** CandidateID is the candidate UUID from Ashby Candidates or candidate.list. */
|
|
473
|
+
"candidateId": string;
|
|
474
|
+
/** TagID is the non-secret UUID of an existing Ashby candidate tag. */
|
|
475
|
+
"tagId": string;
|
|
476
|
+
}
|
|
477
|
+
/** ListCandidatesInput selects one page of Ashby candidates. */
|
|
478
|
+
interface ListCandidatesInput {
|
|
479
|
+
/** Cursor is "start" for the first page or the previous nextCursor; blank starts at the first page. */
|
|
480
|
+
"cursor"?: string | undefined;
|
|
481
|
+
/** Limit caps the page at 100 candidates; zero uses Ashby's default. */
|
|
482
|
+
"limit"?: number | undefined;
|
|
483
|
+
}
|
|
484
|
+
/** CandidatePage exposes candidate identities and the cursor for the next page. */
|
|
485
|
+
interface CandidatePage {
|
|
486
|
+
/** Candidates omits contact details and other sensitive profile fields. */
|
|
487
|
+
"candidates": Array<CandidateProfile> | null;
|
|
488
|
+
/** NextCursor is the cursor to pass to a later call when moreDataAvailable is true. */
|
|
489
|
+
"nextCursor"?: string | undefined;
|
|
490
|
+
/** MoreDataAvailable reports whether another page exists. */
|
|
491
|
+
"moreDataAvailable": boolean;
|
|
492
|
+
/** SyncToken is supplied by Ashby on the last page for later incremental synchronization. */
|
|
493
|
+
"syncToken"?: string | undefined;
|
|
494
|
+
}
|
|
495
|
+
/** UpdateCandidateInput replaces the candidate's display name. */
|
|
496
|
+
interface UpdateCandidateInput {
|
|
497
|
+
/** CandidateID is the non-secret UUID of the candidate to rename. */
|
|
498
|
+
"candidateId": string;
|
|
499
|
+
/** Name is the complete new display name. */
|
|
500
|
+
"name": string;
|
|
501
|
+
}
|
|
502
|
+
/** GetCandidateInput selects a candidate by its non-secret Ashby ID. */
|
|
503
|
+
interface GetCandidateInput {
|
|
504
|
+
/** CandidateID is the ID shown in Ashby Candidates or returned by the API. */
|
|
505
|
+
"candidateId": string;
|
|
506
|
+
}
|
|
507
|
+
/** Runtime validator for ListApplicationFeedbackInput. */
|
|
508
|
+
declare const ListApplicationFeedbackInputSchema: z.ZodObject<{
|
|
509
|
+
applicationId: z.ZodString;
|
|
510
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
511
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
512
|
+
}, z.core.$strict>;
|
|
513
|
+
/** Runtime validator for ApplicationFeedbackSummary. */
|
|
514
|
+
declare const ApplicationFeedbackSummarySchema: z.ZodObject<{
|
|
515
|
+
id: z.ZodString;
|
|
516
|
+
applicationId: z.ZodString;
|
|
517
|
+
interviewId: z.ZodString;
|
|
518
|
+
interviewEventId: z.ZodString;
|
|
519
|
+
submittedAt: z.ZodString;
|
|
520
|
+
}, z.core.$strict>;
|
|
521
|
+
/** Runtime validator for ApplicationFeedbackPage. */
|
|
522
|
+
declare const ApplicationFeedbackPageSchema: z.ZodObject<{
|
|
523
|
+
feedback: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
524
|
+
id: z.ZodString;
|
|
525
|
+
applicationId: z.ZodString;
|
|
526
|
+
interviewId: z.ZodString;
|
|
527
|
+
interviewEventId: z.ZodString;
|
|
528
|
+
submittedAt: z.ZodString;
|
|
529
|
+
}, z.core.$strict>>>;
|
|
530
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
531
|
+
moreDataAvailable: z.ZodBoolean;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
/** Runtime validator for RequestApplicationFeedbackInput. */
|
|
534
|
+
declare const RequestApplicationFeedbackInputSchema: z.ZodObject<{
|
|
535
|
+
applicationId: z.ZodString;
|
|
536
|
+
interviewId: z.ZodString;
|
|
537
|
+
interviewerUserId: z.ZodString;
|
|
538
|
+
}, z.core.$strict>;
|
|
539
|
+
/** Runtime validator for FeedbackRequestReceipt. */
|
|
540
|
+
declare const FeedbackRequestReceiptSchema: z.ZodObject<{
|
|
541
|
+
applicationId: z.ZodString;
|
|
542
|
+
interviewEventId: z.ZodString;
|
|
543
|
+
interviewerUserId: z.ZodString;
|
|
544
|
+
}, z.core.$strict>;
|
|
545
|
+
/** Runtime validator for FeedbackFieldSubmission. */
|
|
546
|
+
declare const FeedbackFieldSubmissionSchema: z.ZodObject<{
|
|
547
|
+
path: z.ZodString;
|
|
548
|
+
value: z.ZodNullable<z.ZodUnknown>;
|
|
549
|
+
}, z.core.$strict>;
|
|
550
|
+
/** Runtime validator for SubmitApplicationFeedbackInput. */
|
|
551
|
+
declare const SubmitApplicationFeedbackInputSchema: z.ZodObject<{
|
|
552
|
+
applicationId: z.ZodString;
|
|
553
|
+
formDefinitionId: z.ZodString;
|
|
554
|
+
userId: z.ZodString;
|
|
555
|
+
interviewEventId: z.ZodString;
|
|
556
|
+
fieldSubmissions: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
557
|
+
path: z.ZodString;
|
|
558
|
+
value: z.ZodNullable<z.ZodUnknown>;
|
|
559
|
+
}, z.core.$strict>>>;
|
|
560
|
+
}, z.core.$strict>;
|
|
561
|
+
/** Runtime validator for FeedbackSubmissionReceipt. */
|
|
562
|
+
declare const FeedbackSubmissionReceiptSchema: z.ZodObject<{
|
|
563
|
+
submissionId: z.ZodString;
|
|
564
|
+
}, z.core.$strict>;
|
|
565
|
+
/** Runtime validator for ListInterviewsInput. */
|
|
566
|
+
declare const ListInterviewsInputSchema: z.ZodObject<{
|
|
567
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
568
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
}, z.core.$strict>;
|
|
570
|
+
/** Runtime validator for InterviewSummary. */
|
|
571
|
+
declare const InterviewSummarySchema: z.ZodObject<{
|
|
572
|
+
id: z.ZodString;
|
|
573
|
+
title: z.ZodString;
|
|
574
|
+
type: z.ZodString;
|
|
575
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
/** Runtime validator for InterviewPage. */
|
|
578
|
+
declare const InterviewPageSchema: z.ZodObject<{
|
|
579
|
+
interviews: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
580
|
+
id: z.ZodString;
|
|
581
|
+
title: z.ZodString;
|
|
582
|
+
type: z.ZodString;
|
|
583
|
+
jobId: z.ZodOptional<z.ZodString>;
|
|
584
|
+
}, z.core.$strict>>>;
|
|
585
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
586
|
+
moreDataAvailable: z.ZodBoolean;
|
|
587
|
+
}, z.core.$strict>;
|
|
588
|
+
/** Runtime validator for GetInterviewInput. */
|
|
589
|
+
declare const GetInterviewInputSchema: z.ZodObject<{
|
|
590
|
+
interviewId: z.ZodString;
|
|
591
|
+
}, z.core.$strict>;
|
|
592
|
+
/** Runtime validator for ListInterviewSchedulesInput. */
|
|
593
|
+
declare const ListInterviewSchedulesInputSchema: z.ZodObject<{
|
|
594
|
+
applicationId: z.ZodString;
|
|
595
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
596
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
597
|
+
}, z.core.$strict>;
|
|
598
|
+
/** Runtime validator for InterviewScheduleSummary. */
|
|
599
|
+
declare const InterviewScheduleSummarySchema: z.ZodObject<{
|
|
600
|
+
id: z.ZodString;
|
|
601
|
+
applicationId: z.ZodString;
|
|
602
|
+
interviewStageId: z.ZodString;
|
|
603
|
+
status: z.ZodString;
|
|
604
|
+
createdAt: z.ZodString;
|
|
605
|
+
updatedAt: z.ZodString;
|
|
606
|
+
}, z.core.$strict>;
|
|
607
|
+
/** Runtime validator for InterviewSchedulePage. */
|
|
608
|
+
declare const InterviewSchedulePageSchema: z.ZodObject<{
|
|
609
|
+
schedules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
applicationId: z.ZodString;
|
|
612
|
+
interviewStageId: z.ZodString;
|
|
613
|
+
status: z.ZodString;
|
|
614
|
+
createdAt: z.ZodString;
|
|
615
|
+
updatedAt: z.ZodString;
|
|
616
|
+
}, z.core.$strict>>>;
|
|
617
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
618
|
+
moreDataAvailable: z.ZodBoolean;
|
|
619
|
+
}, z.core.$strict>;
|
|
620
|
+
/** Runtime validator for GetInterviewScheduleInput. */
|
|
621
|
+
declare const GetInterviewScheduleInputSchema: z.ZodObject<{
|
|
622
|
+
interviewScheduleId: z.ZodString;
|
|
623
|
+
}, z.core.$strict>;
|
|
624
|
+
/** Runtime validator for InterviewScheduleInterviewer. */
|
|
625
|
+
declare const InterviewScheduleInterviewerSchema: z.ZodObject<{
|
|
626
|
+
email: z.ZodString;
|
|
627
|
+
feedbackRequired: z.ZodOptional<z.ZodBoolean>;
|
|
628
|
+
}, z.core.$strict>;
|
|
629
|
+
/** Runtime validator for InterviewScheduleEvent. */
|
|
630
|
+
declare const InterviewScheduleEventSchema: z.ZodObject<{
|
|
631
|
+
startTime: z.ZodString;
|
|
632
|
+
endTime: z.ZodString;
|
|
633
|
+
interviewers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
634
|
+
email: z.ZodString;
|
|
635
|
+
feedbackRequired: z.ZodOptional<z.ZodBoolean>;
|
|
636
|
+
}, z.core.$strict>>>;
|
|
637
|
+
interviewId: z.ZodOptional<z.ZodString>;
|
|
638
|
+
}, z.core.$strict>;
|
|
639
|
+
/** Runtime validator for CreateInterviewScheduleInput. */
|
|
640
|
+
declare const CreateInterviewScheduleInputSchema: z.ZodObject<{
|
|
641
|
+
applicationId: z.ZodString;
|
|
642
|
+
interviewEvents: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
643
|
+
startTime: z.ZodString;
|
|
644
|
+
endTime: z.ZodString;
|
|
645
|
+
interviewers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
646
|
+
email: z.ZodString;
|
|
647
|
+
feedbackRequired: z.ZodOptional<z.ZodBoolean>;
|
|
648
|
+
}, z.core.$strict>>>;
|
|
649
|
+
interviewId: z.ZodOptional<z.ZodString>;
|
|
650
|
+
}, z.core.$strict>>>;
|
|
651
|
+
}, z.core.$strict>;
|
|
652
|
+
/** Runtime validator for CancelInterviewScheduleInput. */
|
|
653
|
+
declare const CancelInterviewScheduleInputSchema: z.ZodObject<{
|
|
654
|
+
interviewScheduleId: z.ZodString;
|
|
655
|
+
}, z.core.$strict>;
|
|
656
|
+
/** Runtime validator for CancelInterviewEventInput. */
|
|
657
|
+
declare const CancelInterviewEventInputSchema: z.ZodObject<{
|
|
658
|
+
interviewScheduleId: z.ZodString;
|
|
659
|
+
interviewEventId: z.ZodString;
|
|
660
|
+
}, z.core.$strict>;
|
|
661
|
+
/** Runtime validator for ListApplicationsInput. */
|
|
662
|
+
declare const ListApplicationsInputSchema: z.ZodObject<{
|
|
663
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
664
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
665
|
+
}, z.core.$strict>;
|
|
666
|
+
/** Runtime validator for ApplicationSummary. */
|
|
667
|
+
declare const ApplicationSummarySchema: z.ZodObject<{
|
|
668
|
+
id: z.ZodString;
|
|
669
|
+
candidateId: z.ZodString;
|
|
670
|
+
jobId: z.ZodString;
|
|
671
|
+
interviewStageId: z.ZodString;
|
|
672
|
+
status: z.ZodString;
|
|
673
|
+
createdAt: z.ZodString;
|
|
674
|
+
updatedAt: z.ZodString;
|
|
675
|
+
}, z.core.$strict>;
|
|
676
|
+
/** Runtime validator for ApplicationPage. */
|
|
677
|
+
declare const ApplicationPageSchema: z.ZodObject<{
|
|
678
|
+
applications: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
679
|
+
id: z.ZodString;
|
|
680
|
+
candidateId: z.ZodString;
|
|
681
|
+
jobId: z.ZodString;
|
|
682
|
+
interviewStageId: z.ZodString;
|
|
683
|
+
status: z.ZodString;
|
|
684
|
+
createdAt: z.ZodString;
|
|
685
|
+
updatedAt: z.ZodString;
|
|
686
|
+
}, z.core.$strict>>>;
|
|
687
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
688
|
+
moreDataAvailable: z.ZodBoolean;
|
|
689
|
+
}, z.core.$strict>;
|
|
690
|
+
/** Runtime validator for GetApplicationInput. */
|
|
691
|
+
declare const GetApplicationInputSchema: z.ZodObject<{
|
|
692
|
+
applicationId: z.ZodString;
|
|
693
|
+
}, z.core.$strict>;
|
|
694
|
+
/** Runtime validator for CreateApplicationInput. */
|
|
695
|
+
declare const CreateApplicationInputSchema: z.ZodObject<{
|
|
696
|
+
candidateId: z.ZodString;
|
|
697
|
+
jobId: z.ZodString;
|
|
698
|
+
}, z.core.$strict>;
|
|
699
|
+
/** Runtime validator for ChangeApplicationStageInput. */
|
|
700
|
+
declare const ChangeApplicationStageInputSchema: z.ZodObject<{
|
|
701
|
+
applicationId: z.ZodString;
|
|
702
|
+
interviewStageId: z.ZodString;
|
|
703
|
+
archiveReasonId: z.ZodOptional<z.ZodString>;
|
|
704
|
+
}, z.core.$strict>;
|
|
705
|
+
/** Runtime validator for TransferApplicationInput. */
|
|
706
|
+
declare const TransferApplicationInputSchema: z.ZodObject<{
|
|
707
|
+
applicationId: z.ZodString;
|
|
708
|
+
jobId: z.ZodString;
|
|
709
|
+
interviewPlanId: z.ZodString;
|
|
710
|
+
interviewStageId: z.ZodString;
|
|
711
|
+
}, z.core.$strict>;
|
|
712
|
+
/** Runtime validator for SetApplicationSourceInput. */
|
|
713
|
+
declare const SetApplicationSourceInputSchema: z.ZodObject<{
|
|
714
|
+
applicationId: z.ZodString;
|
|
715
|
+
sourceId: z.ZodString;
|
|
716
|
+
}, z.core.$strict>;
|
|
717
|
+
/** Runtime validator for DeleteApplicationInput. */
|
|
718
|
+
declare const DeleteApplicationInputSchema: z.ZodObject<{
|
|
719
|
+
applicationId: z.ZodString;
|
|
720
|
+
}, z.core.$strict>;
|
|
721
|
+
/** Runtime validator for DeletedApplication. */
|
|
722
|
+
declare const DeletedApplicationSchema: z.ZodObject<{
|
|
723
|
+
applicationId: z.ZodString;
|
|
724
|
+
}, z.core.$strict>;
|
|
725
|
+
/** Runtime validator for ListJobsInput. */
|
|
726
|
+
declare const ListJobsInputSchema: z.ZodObject<{
|
|
727
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
728
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
729
|
+
}, z.core.$strict>;
|
|
730
|
+
/** Runtime validator for JobSummary. */
|
|
731
|
+
declare const JobSummarySchema: z.ZodObject<{
|
|
732
|
+
id: z.ZodString;
|
|
733
|
+
title: z.ZodString;
|
|
734
|
+
status: z.ZodString;
|
|
735
|
+
createdAt: z.ZodString;
|
|
736
|
+
updatedAt: z.ZodString;
|
|
737
|
+
}, z.core.$strict>;
|
|
738
|
+
/** Runtime validator for JobPage. */
|
|
739
|
+
declare const JobPageSchema: z.ZodObject<{
|
|
740
|
+
jobs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
741
|
+
id: z.ZodString;
|
|
742
|
+
title: z.ZodString;
|
|
743
|
+
status: z.ZodString;
|
|
744
|
+
createdAt: z.ZodString;
|
|
745
|
+
updatedAt: z.ZodString;
|
|
746
|
+
}, z.core.$strict>>>;
|
|
747
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
748
|
+
moreDataAvailable: z.ZodBoolean;
|
|
749
|
+
}, z.core.$strict>;
|
|
750
|
+
/** Runtime validator for GetJobInput. */
|
|
751
|
+
declare const GetJobInputSchema: z.ZodObject<{
|
|
752
|
+
jobId: z.ZodString;
|
|
753
|
+
}, z.core.$strict>;
|
|
754
|
+
/** Runtime validator for SearchJobsInput. */
|
|
755
|
+
declare const SearchJobsInputSchema: z.ZodObject<{
|
|
756
|
+
title: z.ZodOptional<z.ZodString>;
|
|
757
|
+
requisitionId: z.ZodOptional<z.ZodString>;
|
|
758
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
759
|
+
}, z.core.$strict>;
|
|
760
|
+
/** Runtime validator for JobSearchResults. */
|
|
761
|
+
declare const JobSearchResultsSchema: z.ZodObject<{
|
|
762
|
+
jobs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
763
|
+
id: z.ZodString;
|
|
764
|
+
title: z.ZodString;
|
|
765
|
+
status: z.ZodString;
|
|
766
|
+
createdAt: z.ZodString;
|
|
767
|
+
updatedAt: z.ZodString;
|
|
768
|
+
}, z.core.$strict>>>;
|
|
769
|
+
}, z.core.$strict>;
|
|
770
|
+
/** Runtime validator for CreateJobInput. */
|
|
771
|
+
declare const CreateJobInputSchema: z.ZodObject<{
|
|
772
|
+
title: z.ZodString;
|
|
773
|
+
teamId: z.ZodString;
|
|
774
|
+
locationId: z.ZodString;
|
|
775
|
+
}, z.core.$strict>;
|
|
776
|
+
/** Runtime validator for UpdateJobTitleInput. */
|
|
777
|
+
declare const UpdateJobTitleInputSchema: z.ZodObject<{
|
|
778
|
+
jobId: z.ZodString;
|
|
779
|
+
title: z.ZodString;
|
|
780
|
+
}, z.core.$strict>;
|
|
781
|
+
/** Runtime validator for SetJobStatusInput. */
|
|
782
|
+
declare const SetJobStatusInputSchema: z.ZodObject<{
|
|
783
|
+
jobId: z.ZodString;
|
|
784
|
+
status: z.ZodString;
|
|
785
|
+
closeReasonId: z.ZodOptional<z.ZodString>;
|
|
786
|
+
}, z.core.$strict>;
|
|
787
|
+
/** Runtime validator for ListCandidateNotesInput. */
|
|
788
|
+
declare const ListCandidateNotesInputSchema: z.ZodObject<{
|
|
789
|
+
candidateId: z.ZodString;
|
|
790
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
791
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
792
|
+
}, z.core.$strict>;
|
|
793
|
+
/** Runtime validator for CandidateNoteSummary. */
|
|
794
|
+
declare const CandidateNoteSummarySchema: z.ZodObject<{
|
|
795
|
+
id: z.ZodString;
|
|
796
|
+
createdAt: z.ZodString;
|
|
797
|
+
isPrivate: z.ZodBoolean;
|
|
798
|
+
}, z.core.$strict>;
|
|
799
|
+
/** Runtime validator for CandidateNotePage. */
|
|
800
|
+
declare const CandidateNotePageSchema: z.ZodObject<{
|
|
801
|
+
notes: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
802
|
+
id: z.ZodString;
|
|
803
|
+
createdAt: z.ZodString;
|
|
804
|
+
isPrivate: z.ZodBoolean;
|
|
805
|
+
}, z.core.$strict>>>;
|
|
806
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
807
|
+
moreDataAvailable: z.ZodBoolean;
|
|
808
|
+
}, z.core.$strict>;
|
|
809
|
+
/** Runtime validator for CreateCandidateNoteInput. */
|
|
810
|
+
declare const CreateCandidateNoteInputSchema: z.ZodObject<{
|
|
811
|
+
candidateId: z.ZodString;
|
|
812
|
+
note: z.ZodString;
|
|
813
|
+
}, z.core.$strict>;
|
|
814
|
+
/** Runtime validator for ListCandidateProjectsInput. */
|
|
815
|
+
declare const ListCandidateProjectsInputSchema: z.ZodObject<{
|
|
816
|
+
candidateId: z.ZodString;
|
|
817
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
818
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
819
|
+
}, z.core.$strict>;
|
|
820
|
+
/** Runtime validator for CandidateProjectSummary. */
|
|
821
|
+
declare const CandidateProjectSummarySchema: z.ZodObject<{
|
|
822
|
+
id: z.ZodString;
|
|
823
|
+
title: z.ZodString;
|
|
824
|
+
createdAt: z.ZodString;
|
|
825
|
+
isArchived: z.ZodBoolean;
|
|
826
|
+
}, z.core.$strict>;
|
|
827
|
+
/** Runtime validator for CandidateProjectPage. */
|
|
828
|
+
declare const CandidateProjectPageSchema: z.ZodObject<{
|
|
829
|
+
projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
830
|
+
id: z.ZodString;
|
|
831
|
+
title: z.ZodString;
|
|
832
|
+
createdAt: z.ZodString;
|
|
833
|
+
isArchived: z.ZodBoolean;
|
|
834
|
+
}, z.core.$strict>>>;
|
|
835
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
836
|
+
moreDataAvailable: z.ZodBoolean;
|
|
837
|
+
}, z.core.$strict>;
|
|
838
|
+
/** Runtime validator for CandidateProjectInput. */
|
|
839
|
+
declare const CandidateProjectInputSchema: z.ZodObject<{
|
|
840
|
+
candidateId: z.ZodString;
|
|
841
|
+
projectId: z.ZodString;
|
|
842
|
+
}, z.core.$strict>;
|
|
843
|
+
/** Runtime validator for CandidateProfile. */
|
|
844
|
+
declare const CandidateProfileSchema: z.ZodObject<{
|
|
845
|
+
id: z.ZodString;
|
|
846
|
+
name: z.ZodString;
|
|
847
|
+
createdAt: z.ZodString;
|
|
848
|
+
updatedAt: z.ZodString;
|
|
849
|
+
}, z.core.$strict>;
|
|
850
|
+
/** Runtime validator for SearchCandidatesInput. */
|
|
851
|
+
declare const SearchCandidatesInputSchema: z.ZodObject<{
|
|
852
|
+
name: z.ZodOptional<z.ZodString>;
|
|
853
|
+
email: z.ZodOptional<z.ZodString>;
|
|
854
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
855
|
+
}, z.core.$strict>;
|
|
856
|
+
/** Runtime validator for CandidateSearchResults. */
|
|
857
|
+
declare const CandidateSearchResultsSchema: z.ZodObject<{
|
|
858
|
+
candidates: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
859
|
+
id: z.ZodString;
|
|
860
|
+
name: z.ZodString;
|
|
861
|
+
createdAt: z.ZodString;
|
|
862
|
+
updatedAt: z.ZodString;
|
|
863
|
+
}, z.core.$strict>>>;
|
|
864
|
+
}, z.core.$strict>;
|
|
865
|
+
/** Runtime validator for CreateCandidateInput. */
|
|
866
|
+
declare const CreateCandidateInputSchema: z.ZodObject<{
|
|
867
|
+
name: z.ZodString;
|
|
868
|
+
}, z.core.$strict>;
|
|
869
|
+
/** Runtime validator for CandidateTagInput. */
|
|
870
|
+
declare const CandidateTagInputSchema: z.ZodObject<{
|
|
871
|
+
candidateId: z.ZodString;
|
|
872
|
+
tagId: z.ZodString;
|
|
873
|
+
}, z.core.$strict>;
|
|
874
|
+
/** Runtime validator for ListCandidatesInput. */
|
|
875
|
+
declare const ListCandidatesInputSchema: z.ZodObject<{
|
|
876
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
877
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
}, z.core.$strict>;
|
|
879
|
+
/** Runtime validator for CandidatePage. */
|
|
880
|
+
declare const CandidatePageSchema: z.ZodObject<{
|
|
881
|
+
candidates: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
882
|
+
id: z.ZodString;
|
|
883
|
+
name: z.ZodString;
|
|
884
|
+
createdAt: z.ZodString;
|
|
885
|
+
updatedAt: z.ZodString;
|
|
886
|
+
}, z.core.$strict>>>;
|
|
887
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
888
|
+
moreDataAvailable: z.ZodBoolean;
|
|
889
|
+
syncToken: z.ZodOptional<z.ZodString>;
|
|
890
|
+
}, z.core.$strict>;
|
|
891
|
+
/** Runtime validator for UpdateCandidateInput. */
|
|
892
|
+
declare const UpdateCandidateInputSchema: z.ZodObject<{
|
|
893
|
+
candidateId: z.ZodString;
|
|
894
|
+
name: z.ZodString;
|
|
895
|
+
}, z.core.$strict>;
|
|
896
|
+
/** Runtime validator for GetCandidateInput. */
|
|
897
|
+
declare const GetCandidateInputSchema: z.ZodObject<{
|
|
898
|
+
candidateId: z.ZodString;
|
|
899
|
+
}, z.core.$strict>;
|
|
900
|
+
|
|
901
|
+
/** Typed operations supplied by a client or mock. */
|
|
902
|
+
interface Operations {
|
|
903
|
+
/** Invoke listApplicationFeedback through this connection. */
|
|
904
|
+
listApplicationFeedback(): Query<ListApplicationFeedbackInput, ApplicationFeedbackPage>;
|
|
905
|
+
/** Invoke requestApplicationFeedback through this connection. */
|
|
906
|
+
requestApplicationFeedback(): Mutation<RequestApplicationFeedbackInput, FeedbackRequestReceipt>;
|
|
907
|
+
/** Invoke submitApplicationFeedback through this connection. */
|
|
908
|
+
submitApplicationFeedback(): Mutation<SubmitApplicationFeedbackInput, FeedbackSubmissionReceipt>;
|
|
909
|
+
/** Invoke listInterviews through this connection. */
|
|
910
|
+
listInterviews(): Query<ListInterviewsInput, InterviewPage>;
|
|
911
|
+
/** Invoke getInterview through this connection. */
|
|
912
|
+
getInterview(): Query<GetInterviewInput, InterviewSummary>;
|
|
913
|
+
/** Invoke listInterviewSchedules through this connection. */
|
|
914
|
+
listInterviewSchedules(): Query<ListInterviewSchedulesInput, InterviewSchedulePage>;
|
|
915
|
+
/** Invoke getInterviewSchedule through this connection. */
|
|
916
|
+
getInterviewSchedule(): Query<GetInterviewScheduleInput, InterviewScheduleSummary>;
|
|
917
|
+
/** Invoke createInterviewSchedule through this connection. */
|
|
918
|
+
createInterviewSchedule(): Mutation<CreateInterviewScheduleInput, InterviewScheduleSummary>;
|
|
919
|
+
/** Invoke cancelInterviewSchedule through this connection. */
|
|
920
|
+
cancelInterviewSchedule(): Mutation<CancelInterviewScheduleInput, InterviewScheduleSummary>;
|
|
921
|
+
/** Invoke cancelInterviewEvent through this connection. */
|
|
922
|
+
cancelInterviewEvent(): Mutation<CancelInterviewEventInput, InterviewScheduleSummary>;
|
|
923
|
+
/** Invoke listApplications through this connection. */
|
|
924
|
+
listApplications(): Query<ListApplicationsInput, ApplicationPage>;
|
|
925
|
+
/** Invoke getApplication through this connection. */
|
|
926
|
+
getApplication(): Query<GetApplicationInput, ApplicationSummary>;
|
|
927
|
+
/** Invoke createApplication through this connection. */
|
|
928
|
+
createApplication(): Mutation<CreateApplicationInput, ApplicationSummary>;
|
|
929
|
+
/** Invoke changeApplicationStage through this connection. */
|
|
930
|
+
changeApplicationStage(): Mutation<ChangeApplicationStageInput, ApplicationSummary>;
|
|
931
|
+
/** Invoke transferApplication through this connection. */
|
|
932
|
+
transferApplication(): Mutation<TransferApplicationInput, ApplicationSummary>;
|
|
933
|
+
/** Invoke setApplicationSource through this connection. */
|
|
934
|
+
setApplicationSource(): Mutation<SetApplicationSourceInput, ApplicationSummary>;
|
|
935
|
+
/** Invoke deleteApplication through this connection. */
|
|
936
|
+
deleteApplication(): Mutation<DeleteApplicationInput, DeletedApplication>;
|
|
937
|
+
/** Invoke listJobs through this connection. */
|
|
938
|
+
listJobs(): Query<ListJobsInput, JobPage>;
|
|
939
|
+
/** Invoke getJob through this connection. */
|
|
940
|
+
getJob(): Query<GetJobInput, JobSummary>;
|
|
941
|
+
/** Invoke searchJobs through this connection. */
|
|
942
|
+
searchJobs(): Query<SearchJobsInput, JobSearchResults>;
|
|
943
|
+
/** Invoke createJob through this connection. */
|
|
944
|
+
createJob(): Mutation<CreateJobInput, JobSummary>;
|
|
945
|
+
/** Invoke updateJobTitle through this connection. */
|
|
946
|
+
updateJobTitle(): Mutation<UpdateJobTitleInput, JobSummary>;
|
|
947
|
+
/** Invoke setJobStatus through this connection. */
|
|
948
|
+
setJobStatus(): Mutation<SetJobStatusInput, JobSummary>;
|
|
949
|
+
/** Invoke listCandidateNotes through this connection. */
|
|
950
|
+
listCandidateNotes(): Query<ListCandidateNotesInput, CandidateNotePage>;
|
|
951
|
+
/** Invoke createCandidateNote through this connection. */
|
|
952
|
+
createCandidateNote(): Mutation<CreateCandidateNoteInput, CandidateNoteSummary>;
|
|
953
|
+
/** Invoke listCandidateProjects through this connection. */
|
|
954
|
+
listCandidateProjects(): Query<ListCandidateProjectsInput, CandidateProjectPage>;
|
|
955
|
+
/** Invoke addCandidateProject through this connection. */
|
|
956
|
+
addCandidateProject(): Mutation<CandidateProjectInput, CandidateProfile>;
|
|
957
|
+
/** Invoke removeCandidateProject through this connection. */
|
|
958
|
+
removeCandidateProject(): Mutation<CandidateProjectInput, CandidateProfile>;
|
|
959
|
+
/** Invoke searchCandidates through this connection. */
|
|
960
|
+
searchCandidates(): Query<SearchCandidatesInput, CandidateSearchResults>;
|
|
961
|
+
/** Invoke createCandidate through this connection. */
|
|
962
|
+
createCandidate(): Mutation<CreateCandidateInput, CandidateProfile>;
|
|
963
|
+
/** Invoke addCandidateTag through this connection. */
|
|
964
|
+
addCandidateTag(): Mutation<CandidateTagInput, CandidateProfile>;
|
|
965
|
+
/** Invoke removeCandidateTag through this connection. */
|
|
966
|
+
removeCandidateTag(): Mutation<CandidateTagInput, CandidateProfile>;
|
|
967
|
+
/** Invoke listCandidates through this connection. */
|
|
968
|
+
listCandidates(): Query<ListCandidatesInput, CandidatePage>;
|
|
969
|
+
/** Invoke updateCandidate through this connection. */
|
|
970
|
+
updateCandidate(): Mutation<UpdateCandidateInput, CandidateProfile>;
|
|
971
|
+
/** Invoke getCandidate through this connection. */
|
|
972
|
+
getCandidate(): Query<GetCandidateInput, CandidateProfile>;
|
|
973
|
+
}
|
|
974
|
+
/** Named connector connection kept outside Flow state. */
|
|
975
|
+
declare class Connection<BoundOperations = Operations> {
|
|
976
|
+
/** Stable provider and connection name. */
|
|
977
|
+
readonly reference: ConnectionRef;
|
|
978
|
+
/** Bound provider operations. */
|
|
979
|
+
readonly operations: BoundOperations;
|
|
980
|
+
/** Validate a reference and bind operations. */
|
|
981
|
+
constructor(reference: ConnectionRef, operations: BoundOperations);
|
|
982
|
+
}
|
|
983
|
+
/** Bind a client to a named connection. */
|
|
984
|
+
declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
|
|
985
|
+
/** Bind scripted operations to a named connection. */
|
|
986
|
+
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
987
|
+
|
|
988
|
+
export { type Operations as $, type ApplicationSummary as A, type CandidatePage as B, type CandidateProjectInput as C, type DeleteApplicationInput as D, type ListInterviewSchedulesInput as E, type InterviewSchedulePage as F, type GetApplicationInput as G, type ListInterviewsInput as H, type InterviewScheduleSummary as I, type JobSummary as J, type InterviewPage as K, type ListApplicationFeedbackInput as L, type ListJobsInput as M, type JobPage as N, type FeedbackRequestReceipt as O, type CandidateSearchResults as P, type SearchJobsInput as Q, type RequestApplicationFeedbackInput as R, type SearchCandidatesInput as S, type JobSearchResults as T, type SetApplicationSourceInput as U, type SetJobStatusInput as V, type SubmitApplicationFeedbackInput as W, type FeedbackSubmissionReceipt as X, type TransferApplicationInput as Y, type UpdateCandidateInput as Z, type UpdateJobTitleInput as _, type CandidateProfile as a, SubmitApplicationFeedbackInputSchema as a$, type Config as a0, type Credentials as a1, ApplicationFeedbackPageSchema as a2, type ApplicationFeedbackSummary as a3, ApplicationFeedbackSummarySchema as a4, ApplicationPageSchema as a5, ApplicationSummarySchema as a6, CancelInterviewEventInputSchema as a7, CancelInterviewScheduleInputSchema as a8, CandidateNotePageSchema as a9, GetInterviewInputSchema as aA, GetInterviewScheduleInputSchema as aB, GetJobInputSchema as aC, InterviewPageSchema as aD, type InterviewScheduleEvent as aE, InterviewScheduleEventSchema as aF, type InterviewScheduleInterviewer as aG, InterviewScheduleInterviewerSchema as aH, InterviewSchedulePageSchema as aI, InterviewScheduleSummarySchema as aJ, InterviewSummarySchema as aK, JobPageSchema as aL, JobSearchResultsSchema as aM, JobSummarySchema as aN, ListApplicationFeedbackInputSchema as aO, ListApplicationsInputSchema as aP, ListCandidateNotesInputSchema as aQ, ListCandidateProjectsInputSchema as aR, ListCandidatesInputSchema as aS, ListInterviewSchedulesInputSchema as aT, ListInterviewsInputSchema as aU, ListJobsInputSchema as aV, RequestApplicationFeedbackInputSchema as aW, SearchCandidatesInputSchema as aX, SearchJobsInputSchema as aY, SetApplicationSourceInputSchema as aZ, SetJobStatusInputSchema as a_, CandidateNoteSummarySchema as aa, CandidatePageSchema as ab, CandidateProfileSchema as ac, CandidateProjectInputSchema as ad, CandidateProjectPageSchema as ae, type CandidateProjectSummary as af, CandidateProjectSummarySchema as ag, CandidateSearchResultsSchema as ah, CandidateTagInputSchema as ai, ChangeApplicationStageInputSchema as aj, ConfigSchema as ak, CreateApplicationInputSchema as al, CreateCandidateInputSchema as am, CreateCandidateNoteInputSchema as an, CreateInterviewScheduleInputSchema as ao, CreateJobInputSchema as ap, CredentialMaterialError as aq, type CredentialSource as ar, DeleteApplicationInputSchema as as, DeletedApplicationSchema as at, type FeedbackFieldSubmission as au, FeedbackFieldSubmissionSchema as av, FeedbackRequestReceiptSchema as aw, FeedbackSubmissionReceiptSchema as ax, GetApplicationInputSchema as ay, GetCandidateInputSchema as az, Connection as b, TransferApplicationInputSchema as b0, UpdateCandidateInputSchema as b1, UpdateJobTitleInputSchema as b2, decodeCredentials as b3, isCredentialMaterialError as b4, newConnection as b5, newConnectionWithOperations as b6, type CandidateTagInput as c, type CancelInterviewEventInput as d, type CancelInterviewScheduleInput as e, type ChangeApplicationStageInput as f, type CreateApplicationInput as g, type CreateCandidateNoteInput as h, type CandidateNoteSummary as i, type CreateCandidateInput as j, type CreateInterviewScheduleInput as k, type CreateJobInput as l, type DeletedApplication as m, type GetCandidateInput as n, type GetInterviewScheduleInput as o, type GetInterviewInput as p, type InterviewSummary as q, type GetJobInput as r, type ApplicationFeedbackPage as s, type ListApplicationsInput as t, type ApplicationPage as u, type ListCandidateNotesInput as v, type CandidateNotePage as w, type ListCandidateProjectsInput as x, type CandidateProjectPage as y, type ListCandidatesInput as z };
|