@bubblelab/bubble-core 0.1.247 → 0.1.249
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/dist/bubble-bundle.d.ts +13 -13
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +2243 -74
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ashby/ashby.js +411 -24
- package/dist/bubbles/service-bubble/ashby/ashby.js.map +1 -1
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2567 -92
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ashby/ashby.schema.js +603 -0
- package/dist/bubbles/service-bubble/ashby/ashby.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/firecrawl.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +4 -4
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +4 -4
- package/dist/bubbles.json +2722 -285
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ashby.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/ashby/ashby.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAM3D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAMW,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAMU,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAOI,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBI,C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AAsB,GAAG,OAAO,CAC1C,WAAW,EACX;IAAE,SAAS,EAAE,cAAc,CAAA;CAAE,CAC9B,CAAC;AACF,MAAM,MAAM,8BAA8B,GAAG,OAAO,CAClD,WAAW,EACX;IAAE,SAAS,EAAE,uBAAuB,CAAA;CAAE,CACvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,WAAW,EACX;IAAE,SAAS,EAAE,cAAc,CAAA;CAAE,CAC9B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,WAAW,EACX;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,WAAW,EACX;IAAE,SAAS,EAAE,aAAa,CAAA;CAAE,CAC7B,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,OAAO,CACpD,WAAW,EACX;IAAE,SAAS,EAAE,yBAAyB,CAAA;CAAE,CACzC,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,OAAO,CACpD,WAAW,EACX;IAAE,SAAS,EAAE,0BAA0B,CAAA;CAAE,CAC1C,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG,OAAO,CACzD,WAAW,EACX;IAAE,SAAS,EAAE,+BAA+B,CAAA;CAAE,CAC/C,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -164,8 +164,165 @@ export const AshbyCandidateListItemSchema = z
|
|
|
164
164
|
.array(AshbyCustomFieldSchema)
|
|
165
165
|
.optional()
|
|
166
166
|
.describe('Custom field values'),
|
|
167
|
+
profileUrl: z
|
|
168
|
+
.string()
|
|
169
|
+
.optional()
|
|
170
|
+
.nullable()
|
|
171
|
+
.describe('URL to the candidate profile in Ashby'),
|
|
172
|
+
source: z.unknown().optional().nullable().describe('Candidate source'),
|
|
173
|
+
creditedToUser: z
|
|
174
|
+
.unknown()
|
|
175
|
+
.optional()
|
|
176
|
+
.nullable()
|
|
177
|
+
.describe('User credited for the candidate'),
|
|
167
178
|
})
|
|
168
179
|
.describe('Ashby candidate list item');
|
|
180
|
+
/**
|
|
181
|
+
* Job object from Ashby API
|
|
182
|
+
*/
|
|
183
|
+
export const AshbyJobSchema = z
|
|
184
|
+
.object({
|
|
185
|
+
id: z.string().describe('Unique job identifier (UUID)'),
|
|
186
|
+
title: z.string().describe('Job title'),
|
|
187
|
+
status: z
|
|
188
|
+
.string()
|
|
189
|
+
.optional()
|
|
190
|
+
.describe('Job status (e.g., Open, Closed, Draft, Archived)'),
|
|
191
|
+
departmentId: z.string().optional().nullable().describe('Department ID'),
|
|
192
|
+
teamId: z.string().optional().nullable().describe('Team ID'),
|
|
193
|
+
locationId: z.string().optional().nullable().describe('Location ID'),
|
|
194
|
+
locationIds: z.array(z.string()).optional().describe('Location IDs'),
|
|
195
|
+
customFields: z
|
|
196
|
+
.array(AshbyCustomFieldSchema)
|
|
197
|
+
.optional()
|
|
198
|
+
.describe('Custom field values'),
|
|
199
|
+
openedAt: z
|
|
200
|
+
.string()
|
|
201
|
+
.optional()
|
|
202
|
+
.nullable()
|
|
203
|
+
.describe('ISO 8601 opened timestamp'),
|
|
204
|
+
closedAt: z
|
|
205
|
+
.string()
|
|
206
|
+
.optional()
|
|
207
|
+
.nullable()
|
|
208
|
+
.describe('ISO 8601 closed timestamp'),
|
|
209
|
+
createdAt: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
210
|
+
updatedAt: z.string().optional().describe('ISO 8601 update timestamp'),
|
|
211
|
+
})
|
|
212
|
+
.describe('Ashby job record');
|
|
213
|
+
/**
|
|
214
|
+
* Interview stage object from Ashby API
|
|
215
|
+
*/
|
|
216
|
+
export const AshbyInterviewStageSchema = z
|
|
217
|
+
.object({
|
|
218
|
+
id: z.string().describe('Interview stage ID (UUID)'),
|
|
219
|
+
title: z.string().describe('Stage title'),
|
|
220
|
+
type: z
|
|
221
|
+
.string()
|
|
222
|
+
.optional()
|
|
223
|
+
.describe('Stage type (e.g., PreInterviewScreen, IndividualInterview)'),
|
|
224
|
+
orderInInterviewPlan: z
|
|
225
|
+
.number()
|
|
226
|
+
.optional()
|
|
227
|
+
.describe('Order in the interview plan'),
|
|
228
|
+
interviewPlanId: z.string().optional().describe('Interview plan ID'),
|
|
229
|
+
})
|
|
230
|
+
.describe('Interview stage');
|
|
231
|
+
/**
|
|
232
|
+
* Application object from Ashby API
|
|
233
|
+
*/
|
|
234
|
+
export const AshbyApplicationSchema = z
|
|
235
|
+
.object({
|
|
236
|
+
id: z.string().describe('Unique application identifier (UUID)'),
|
|
237
|
+
createdAt: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
238
|
+
updatedAt: z.string().optional().describe('ISO 8601 update timestamp'),
|
|
239
|
+
status: z
|
|
240
|
+
.string()
|
|
241
|
+
.optional()
|
|
242
|
+
.describe('Application status (Active, Hired, Archived, Lead)'),
|
|
243
|
+
candidateId: z.string().optional().nullable().describe('Candidate ID'),
|
|
244
|
+
jobId: z.string().optional().nullable().describe('Job ID'),
|
|
245
|
+
currentInterviewStage: AshbyInterviewStageSchema.optional()
|
|
246
|
+
.nullable()
|
|
247
|
+
.describe('Current interview stage'),
|
|
248
|
+
source: z.unknown().optional().nullable().describe('Application source'),
|
|
249
|
+
archiveReason: z
|
|
250
|
+
.unknown()
|
|
251
|
+
.optional()
|
|
252
|
+
.nullable()
|
|
253
|
+
.describe('Archive reason if archived'),
|
|
254
|
+
customFields: z
|
|
255
|
+
.array(AshbyCustomFieldSchema)
|
|
256
|
+
.optional()
|
|
257
|
+
.describe('Custom field values'),
|
|
258
|
+
hiringTeam: z
|
|
259
|
+
.array(z.object({
|
|
260
|
+
userId: z.string().describe('Team member user ID'),
|
|
261
|
+
role: z.string().describe('Role in hiring team'),
|
|
262
|
+
email: z.string().optional().describe('Team member email'),
|
|
263
|
+
firstName: z.string().optional().describe('First name'),
|
|
264
|
+
lastName: z.string().optional().describe('Last name'),
|
|
265
|
+
}))
|
|
266
|
+
.optional()
|
|
267
|
+
.describe('Hiring team members'),
|
|
268
|
+
})
|
|
269
|
+
.describe('Ashby application record');
|
|
270
|
+
/**
|
|
271
|
+
* Note object from Ashby API
|
|
272
|
+
*/
|
|
273
|
+
export const AshbyNoteSchema = z
|
|
274
|
+
.object({
|
|
275
|
+
id: z.string().describe('Note ID (UUID)'),
|
|
276
|
+
createdAt: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
277
|
+
content: z.string().describe('Note content (HTML)'),
|
|
278
|
+
author: z
|
|
279
|
+
.object({
|
|
280
|
+
id: z.string().describe('Author user ID'),
|
|
281
|
+
firstName: z.string().optional().describe('Author first name'),
|
|
282
|
+
lastName: z.string().optional().describe('Author last name'),
|
|
283
|
+
email: z.string().optional().describe('Author email'),
|
|
284
|
+
})
|
|
285
|
+
.optional()
|
|
286
|
+
.nullable()
|
|
287
|
+
.describe('Note author'),
|
|
288
|
+
})
|
|
289
|
+
.describe('Candidate note');
|
|
290
|
+
/**
|
|
291
|
+
* Source object from Ashby API
|
|
292
|
+
*/
|
|
293
|
+
export const AshbySourceSchema = z
|
|
294
|
+
.object({
|
|
295
|
+
id: z.string().describe('Source ID (UUID)'),
|
|
296
|
+
title: z.string().describe('Source title'),
|
|
297
|
+
isArchived: z
|
|
298
|
+
.boolean()
|
|
299
|
+
.optional()
|
|
300
|
+
.describe('Whether the source is archived'),
|
|
301
|
+
})
|
|
302
|
+
.describe('Candidate source');
|
|
303
|
+
/**
|
|
304
|
+
* Project object from Ashby API
|
|
305
|
+
*/
|
|
306
|
+
export const AshbyProjectSchema = z
|
|
307
|
+
.object({
|
|
308
|
+
id: z.string().describe('Project ID (UUID)'),
|
|
309
|
+
title: z.string().describe('Project title'),
|
|
310
|
+
isArchived: z
|
|
311
|
+
.boolean()
|
|
312
|
+
.optional()
|
|
313
|
+
.describe('Whether the project is archived'),
|
|
314
|
+
})
|
|
315
|
+
.describe('Ashby project');
|
|
316
|
+
/**
|
|
317
|
+
* File info response from Ashby API (file.info endpoint)
|
|
318
|
+
*/
|
|
319
|
+
export const AshbyFileInfoSchema = z
|
|
320
|
+
.object({
|
|
321
|
+
id: z.string().optional().describe('File ID'),
|
|
322
|
+
name: z.string().optional().describe('File name'),
|
|
323
|
+
url: z.string().describe('Temporary download URL'),
|
|
324
|
+
})
|
|
325
|
+
.describe('File info with download URL');
|
|
169
326
|
// ============================================================================
|
|
170
327
|
// PARAMETER SCHEMAS - Discriminated Union for Multiple Operations
|
|
171
328
|
// ============================================================================
|
|
@@ -354,6 +511,289 @@ export const AshbyParamsSchema = z.discriminatedUnion('operation', [
|
|
|
354
511
|
.optional()
|
|
355
512
|
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
356
513
|
}),
|
|
514
|
+
// List jobs operation
|
|
515
|
+
z.object({
|
|
516
|
+
operation: z.literal('list_jobs').describe('List all jobs'),
|
|
517
|
+
limit: z
|
|
518
|
+
.number()
|
|
519
|
+
.min(1)
|
|
520
|
+
.max(100)
|
|
521
|
+
.optional()
|
|
522
|
+
.default(100)
|
|
523
|
+
.describe('Maximum number of jobs to return (1-100)'),
|
|
524
|
+
cursor: z
|
|
525
|
+
.string()
|
|
526
|
+
.optional()
|
|
527
|
+
.describe('Pagination cursor for fetching subsequent pages'),
|
|
528
|
+
status: z
|
|
529
|
+
.enum(['Open', 'Closed', 'Draft', 'Archived'])
|
|
530
|
+
.optional()
|
|
531
|
+
.describe('Filter jobs by status'),
|
|
532
|
+
credentials: z
|
|
533
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
534
|
+
.optional()
|
|
535
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
536
|
+
}),
|
|
537
|
+
// Get job info operation
|
|
538
|
+
z.object({
|
|
539
|
+
operation: z
|
|
540
|
+
.literal('get_job')
|
|
541
|
+
.describe('Get detailed information about a specific job'),
|
|
542
|
+
job_id: z
|
|
543
|
+
.string()
|
|
544
|
+
.min(1, 'Job ID is required')
|
|
545
|
+
.describe('UUID of the job to retrieve'),
|
|
546
|
+
credentials: z
|
|
547
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
548
|
+
.optional()
|
|
549
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
550
|
+
}),
|
|
551
|
+
// List applications operation
|
|
552
|
+
z.object({
|
|
553
|
+
operation: z
|
|
554
|
+
.literal('list_applications')
|
|
555
|
+
.describe('List applications with optional filtering'),
|
|
556
|
+
candidate_id: z.string().optional().describe('Filter by candidate ID'),
|
|
557
|
+
job_id: z.string().optional().describe('Filter by job ID'),
|
|
558
|
+
status: z
|
|
559
|
+
.enum(['Active', 'Hired', 'Archived', 'Lead'])
|
|
560
|
+
.optional()
|
|
561
|
+
.describe('Filter by application status'),
|
|
562
|
+
limit: z
|
|
563
|
+
.number()
|
|
564
|
+
.min(1)
|
|
565
|
+
.max(100)
|
|
566
|
+
.optional()
|
|
567
|
+
.default(100)
|
|
568
|
+
.describe('Maximum number of applications to return (1-100)'),
|
|
569
|
+
cursor: z
|
|
570
|
+
.string()
|
|
571
|
+
.optional()
|
|
572
|
+
.describe('Pagination cursor for fetching subsequent pages'),
|
|
573
|
+
created_after: z
|
|
574
|
+
.number()
|
|
575
|
+
.optional()
|
|
576
|
+
.describe('Unix timestamp in milliseconds — only return applications created after this time'),
|
|
577
|
+
credentials: z
|
|
578
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
579
|
+
.optional()
|
|
580
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
581
|
+
}),
|
|
582
|
+
// Get application info operation
|
|
583
|
+
z.object({
|
|
584
|
+
operation: z
|
|
585
|
+
.literal('get_application')
|
|
586
|
+
.describe('Get detailed information about a specific application'),
|
|
587
|
+
application_id: z
|
|
588
|
+
.string()
|
|
589
|
+
.min(1, 'Application ID is required')
|
|
590
|
+
.describe('UUID of the application to retrieve'),
|
|
591
|
+
credentials: z
|
|
592
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
593
|
+
.optional()
|
|
594
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
595
|
+
}),
|
|
596
|
+
// Create application operation (submit candidate to job)
|
|
597
|
+
z.object({
|
|
598
|
+
operation: z
|
|
599
|
+
.literal('create_application')
|
|
600
|
+
.describe('Submit a candidate to a job by creating an application'),
|
|
601
|
+
candidate_id: z
|
|
602
|
+
.string()
|
|
603
|
+
.min(1, 'Candidate ID is required')
|
|
604
|
+
.describe('UUID of the candidate'),
|
|
605
|
+
job_id: z
|
|
606
|
+
.string()
|
|
607
|
+
.min(1, 'Job ID is required')
|
|
608
|
+
.describe('UUID of the job to apply to'),
|
|
609
|
+
interview_stage_id: z
|
|
610
|
+
.string()
|
|
611
|
+
.optional()
|
|
612
|
+
.describe('Optional interview stage ID to start at'),
|
|
613
|
+
source_id: z
|
|
614
|
+
.string()
|
|
615
|
+
.optional()
|
|
616
|
+
.describe('Optional source ID to attribute the application to'),
|
|
617
|
+
credentials: z
|
|
618
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
619
|
+
.optional()
|
|
620
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
621
|
+
}),
|
|
622
|
+
// Change application stage operation
|
|
623
|
+
z.object({
|
|
624
|
+
operation: z
|
|
625
|
+
.literal('change_application_stage')
|
|
626
|
+
.describe('Move an application to a different interview stage'),
|
|
627
|
+
application_id: z
|
|
628
|
+
.string()
|
|
629
|
+
.min(1, 'Application ID is required')
|
|
630
|
+
.describe('UUID of the application'),
|
|
631
|
+
interview_stage_id: z
|
|
632
|
+
.string()
|
|
633
|
+
.min(1, 'Interview stage ID is required')
|
|
634
|
+
.describe('UUID of the interview stage to move to'),
|
|
635
|
+
credentials: z
|
|
636
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
637
|
+
.optional()
|
|
638
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
639
|
+
}),
|
|
640
|
+
// Update candidate operation
|
|
641
|
+
z.object({
|
|
642
|
+
operation: z
|
|
643
|
+
.literal('update_candidate')
|
|
644
|
+
.describe('Update an existing candidate'),
|
|
645
|
+
candidate_id: z
|
|
646
|
+
.string()
|
|
647
|
+
.min(1, 'Candidate ID is required')
|
|
648
|
+
.describe('UUID of the candidate to update'),
|
|
649
|
+
name: z.string().optional().describe('Updated candidate name'),
|
|
650
|
+
email: z.string().optional().describe('Updated primary email'),
|
|
651
|
+
phone_number: z.string().optional().describe('Updated phone number'),
|
|
652
|
+
linkedin_url: z
|
|
653
|
+
.string()
|
|
654
|
+
.optional()
|
|
655
|
+
.describe('Updated LinkedIn profile URL'),
|
|
656
|
+
github_url: z.string().optional().describe('Updated GitHub profile URL'),
|
|
657
|
+
website: z.string().optional().describe('Updated website URL'),
|
|
658
|
+
credentials: z
|
|
659
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
660
|
+
.optional()
|
|
661
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
662
|
+
}),
|
|
663
|
+
// Create note operation
|
|
664
|
+
z.object({
|
|
665
|
+
operation: z.literal('create_note').describe('Add a note to a candidate'),
|
|
666
|
+
candidate_id: z
|
|
667
|
+
.string()
|
|
668
|
+
.min(1, 'Candidate ID is required')
|
|
669
|
+
.describe('UUID of the candidate'),
|
|
670
|
+
content: z
|
|
671
|
+
.string()
|
|
672
|
+
.min(1, 'Note content is required')
|
|
673
|
+
.describe('Note content (plain text or HTML)'),
|
|
674
|
+
credentials: z
|
|
675
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
676
|
+
.optional()
|
|
677
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
678
|
+
}),
|
|
679
|
+
// List notes operation
|
|
680
|
+
z.object({
|
|
681
|
+
operation: z.literal('list_notes').describe('List notes for a candidate'),
|
|
682
|
+
candidate_id: z
|
|
683
|
+
.string()
|
|
684
|
+
.min(1, 'Candidate ID is required')
|
|
685
|
+
.describe('UUID of the candidate'),
|
|
686
|
+
credentials: z
|
|
687
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
688
|
+
.optional()
|
|
689
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
690
|
+
}),
|
|
691
|
+
// List sources operation
|
|
692
|
+
z.object({
|
|
693
|
+
operation: z.literal('list_sources').describe('List all candidate sources'),
|
|
694
|
+
credentials: z
|
|
695
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
696
|
+
.optional()
|
|
697
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
698
|
+
}),
|
|
699
|
+
// List interview stages operation
|
|
700
|
+
z.object({
|
|
701
|
+
operation: z
|
|
702
|
+
.literal('list_interview_stages')
|
|
703
|
+
.describe('List interview stages for a job'),
|
|
704
|
+
job_id: z
|
|
705
|
+
.string()
|
|
706
|
+
.min(1, 'Job ID is required')
|
|
707
|
+
.describe('UUID of the job to get interview stages for'),
|
|
708
|
+
credentials: z
|
|
709
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
710
|
+
.optional()
|
|
711
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
712
|
+
}),
|
|
713
|
+
// Get file URL operation
|
|
714
|
+
z.object({
|
|
715
|
+
operation: z
|
|
716
|
+
.literal('get_file_url')
|
|
717
|
+
.describe('Get a download URL for a file (e.g., resume)'),
|
|
718
|
+
file_handle: z
|
|
719
|
+
.string()
|
|
720
|
+
.min(1, 'File handle is required')
|
|
721
|
+
.describe('File handle from a candidate record (e.g., resumeFileHandle.handle)'),
|
|
722
|
+
credentials: z
|
|
723
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
724
|
+
.optional()
|
|
725
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
726
|
+
}),
|
|
727
|
+
// List projects operation
|
|
728
|
+
z.object({
|
|
729
|
+
operation: z.literal('list_projects').describe('List all projects'),
|
|
730
|
+
credentials: z
|
|
731
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
732
|
+
.optional()
|
|
733
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
734
|
+
}),
|
|
735
|
+
// Get project info operation
|
|
736
|
+
z.object({
|
|
737
|
+
operation: z.literal('get_project').describe('Get project details'),
|
|
738
|
+
project_id: z
|
|
739
|
+
.string()
|
|
740
|
+
.min(1, 'Project ID is required')
|
|
741
|
+
.describe('UUID of the project'),
|
|
742
|
+
credentials: z
|
|
743
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
744
|
+
.optional()
|
|
745
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
746
|
+
}),
|
|
747
|
+
// List candidate projects operation
|
|
748
|
+
z.object({
|
|
749
|
+
operation: z
|
|
750
|
+
.literal('list_candidate_projects')
|
|
751
|
+
.describe('List all projects a candidate belongs to'),
|
|
752
|
+
candidate_id: z
|
|
753
|
+
.string()
|
|
754
|
+
.min(1, 'Candidate ID is required')
|
|
755
|
+
.describe('UUID of the candidate'),
|
|
756
|
+
credentials: z
|
|
757
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
758
|
+
.optional()
|
|
759
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
760
|
+
}),
|
|
761
|
+
// Add candidate to project operation
|
|
762
|
+
z.object({
|
|
763
|
+
operation: z
|
|
764
|
+
.literal('add_candidate_to_project')
|
|
765
|
+
.describe('Add a candidate to a project'),
|
|
766
|
+
candidate_id: z
|
|
767
|
+
.string()
|
|
768
|
+
.min(1, 'Candidate ID is required')
|
|
769
|
+
.describe('UUID of the candidate'),
|
|
770
|
+
project_id: z
|
|
771
|
+
.string()
|
|
772
|
+
.min(1, 'Project ID is required')
|
|
773
|
+
.describe('UUID of the project'),
|
|
774
|
+
credentials: z
|
|
775
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
776
|
+
.optional()
|
|
777
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
778
|
+
}),
|
|
779
|
+
// Remove candidate from project operation
|
|
780
|
+
z.object({
|
|
781
|
+
operation: z
|
|
782
|
+
.literal('remove_candidate_from_project')
|
|
783
|
+
.describe('Remove a candidate from a project'),
|
|
784
|
+
candidate_id: z
|
|
785
|
+
.string()
|
|
786
|
+
.min(1, 'Candidate ID is required')
|
|
787
|
+
.describe('UUID of the candidate'),
|
|
788
|
+
project_id: z
|
|
789
|
+
.string()
|
|
790
|
+
.min(1, 'Project ID is required')
|
|
791
|
+
.describe('UUID of the project'),
|
|
792
|
+
credentials: z
|
|
793
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
794
|
+
.optional()
|
|
795
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
796
|
+
}),
|
|
357
797
|
]);
|
|
358
798
|
// ============================================================================
|
|
359
799
|
// RESULT SCHEMAS - Discriminated Union for Operation Results
|
|
@@ -454,5 +894,168 @@ export const AshbyResultSchema = z.discriminatedUnion('operation', [
|
|
|
454
894
|
sync_token: z.string().optional().describe('Token for incremental sync'),
|
|
455
895
|
error: z.string().describe('Error message if operation failed'),
|
|
456
896
|
}),
|
|
897
|
+
// List jobs result
|
|
898
|
+
z.object({
|
|
899
|
+
operation: z.literal('list_jobs').describe('List jobs operation'),
|
|
900
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
901
|
+
jobs: z.array(AshbyJobSchema).optional().describe('List of jobs'),
|
|
902
|
+
next_cursor: z.string().optional().describe('Cursor for next page'),
|
|
903
|
+
more_data_available: z
|
|
904
|
+
.boolean()
|
|
905
|
+
.optional()
|
|
906
|
+
.describe('Whether more data is available'),
|
|
907
|
+
error: z.string().describe('Error message if operation failed'),
|
|
908
|
+
}),
|
|
909
|
+
// Get job result
|
|
910
|
+
z.object({
|
|
911
|
+
operation: z.literal('get_job').describe('Get job operation'),
|
|
912
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
913
|
+
job: AshbyJobSchema.optional().describe('Job details'),
|
|
914
|
+
interview_stages: z
|
|
915
|
+
.array(AshbyInterviewStageSchema)
|
|
916
|
+
.optional()
|
|
917
|
+
.describe('Interview stages for this job'),
|
|
918
|
+
error: z.string().describe('Error message if operation failed'),
|
|
919
|
+
}),
|
|
920
|
+
// List applications result
|
|
921
|
+
z.object({
|
|
922
|
+
operation: z
|
|
923
|
+
.literal('list_applications')
|
|
924
|
+
.describe('List applications operation'),
|
|
925
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
926
|
+
applications: z
|
|
927
|
+
.array(AshbyApplicationSchema)
|
|
928
|
+
.optional()
|
|
929
|
+
.describe('List of applications'),
|
|
930
|
+
next_cursor: z.string().optional().describe('Cursor for next page'),
|
|
931
|
+
more_data_available: z
|
|
932
|
+
.boolean()
|
|
933
|
+
.optional()
|
|
934
|
+
.describe('Whether more data is available'),
|
|
935
|
+
error: z.string().describe('Error message if operation failed'),
|
|
936
|
+
}),
|
|
937
|
+
// Get application result
|
|
938
|
+
z.object({
|
|
939
|
+
operation: z
|
|
940
|
+
.literal('get_application')
|
|
941
|
+
.describe('Get application operation'),
|
|
942
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
943
|
+
application: AshbyApplicationSchema.optional().describe('Application details'),
|
|
944
|
+
candidate: AshbyCandidateSchema.optional().describe('Associated candidate'),
|
|
945
|
+
job: AshbyJobSchema.optional().describe('Associated job'),
|
|
946
|
+
error: z.string().describe('Error message if operation failed'),
|
|
947
|
+
}),
|
|
948
|
+
// Create application result
|
|
949
|
+
z.object({
|
|
950
|
+
operation: z
|
|
951
|
+
.literal('create_application')
|
|
952
|
+
.describe('Create application operation'),
|
|
953
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
954
|
+
application: AshbyApplicationSchema.optional().describe('Created application'),
|
|
955
|
+
error: z.string().describe('Error message if operation failed'),
|
|
956
|
+
}),
|
|
957
|
+
// Change application stage result
|
|
958
|
+
z.object({
|
|
959
|
+
operation: z
|
|
960
|
+
.literal('change_application_stage')
|
|
961
|
+
.describe('Change application stage operation'),
|
|
962
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
963
|
+
application: AshbyApplicationSchema.optional().describe('Updated application'),
|
|
964
|
+
error: z.string().describe('Error message if operation failed'),
|
|
965
|
+
}),
|
|
966
|
+
// Update candidate result
|
|
967
|
+
z.object({
|
|
968
|
+
operation: z
|
|
969
|
+
.literal('update_candidate')
|
|
970
|
+
.describe('Update candidate operation'),
|
|
971
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
972
|
+
candidate: AshbyCandidateSchema.optional().describe('Updated candidate'),
|
|
973
|
+
error: z.string().describe('Error message if operation failed'),
|
|
974
|
+
}),
|
|
975
|
+
// Create note result
|
|
976
|
+
z.object({
|
|
977
|
+
operation: z.literal('create_note').describe('Create note operation'),
|
|
978
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
979
|
+
note: AshbyNoteSchema.optional().describe('Created note'),
|
|
980
|
+
error: z.string().describe('Error message if operation failed'),
|
|
981
|
+
}),
|
|
982
|
+
// List notes result
|
|
983
|
+
z.object({
|
|
984
|
+
operation: z.literal('list_notes').describe('List notes operation'),
|
|
985
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
986
|
+
notes: z.array(AshbyNoteSchema).optional().describe('List of notes'),
|
|
987
|
+
error: z.string().describe('Error message if operation failed'),
|
|
988
|
+
}),
|
|
989
|
+
// List sources result
|
|
990
|
+
z.object({
|
|
991
|
+
operation: z.literal('list_sources').describe('List sources operation'),
|
|
992
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
993
|
+
sources: z.array(AshbySourceSchema).optional().describe('List of sources'),
|
|
994
|
+
error: z.string().describe('Error message if operation failed'),
|
|
995
|
+
}),
|
|
996
|
+
// List interview stages result
|
|
997
|
+
z.object({
|
|
998
|
+
operation: z
|
|
999
|
+
.literal('list_interview_stages')
|
|
1000
|
+
.describe('List interview stages operation'),
|
|
1001
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1002
|
+
interview_stages: z
|
|
1003
|
+
.array(AshbyInterviewStageSchema)
|
|
1004
|
+
.optional()
|
|
1005
|
+
.describe('List of interview stages'),
|
|
1006
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1007
|
+
}),
|
|
1008
|
+
// Get file URL result
|
|
1009
|
+
z.object({
|
|
1010
|
+
operation: z.literal('get_file_url').describe('Get file URL operation'),
|
|
1011
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1012
|
+
file: AshbyFileInfoSchema.optional().describe('File info with download URL'),
|
|
1013
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1014
|
+
}),
|
|
1015
|
+
// List projects result
|
|
1016
|
+
z.object({
|
|
1017
|
+
operation: z.literal('list_projects').describe('List projects operation'),
|
|
1018
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1019
|
+
projects: z
|
|
1020
|
+
.array(AshbyProjectSchema)
|
|
1021
|
+
.optional()
|
|
1022
|
+
.describe('List of projects'),
|
|
1023
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1024
|
+
}),
|
|
1025
|
+
// Get project result
|
|
1026
|
+
z.object({
|
|
1027
|
+
operation: z.literal('get_project').describe('Get project operation'),
|
|
1028
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1029
|
+
project: AshbyProjectSchema.optional().describe('Project details'),
|
|
1030
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1031
|
+
}),
|
|
1032
|
+
// List candidate projects result
|
|
1033
|
+
z.object({
|
|
1034
|
+
operation: z
|
|
1035
|
+
.literal('list_candidate_projects')
|
|
1036
|
+
.describe('List candidate projects operation'),
|
|
1037
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1038
|
+
projects: z
|
|
1039
|
+
.array(AshbyProjectSchema)
|
|
1040
|
+
.optional()
|
|
1041
|
+
.describe('Projects the candidate belongs to'),
|
|
1042
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1043
|
+
}),
|
|
1044
|
+
// Add candidate to project result
|
|
1045
|
+
z.object({
|
|
1046
|
+
operation: z
|
|
1047
|
+
.literal('add_candidate_to_project')
|
|
1048
|
+
.describe('Add candidate to project operation'),
|
|
1049
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1050
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1051
|
+
}),
|
|
1052
|
+
// Remove candidate from project result
|
|
1053
|
+
z.object({
|
|
1054
|
+
operation: z
|
|
1055
|
+
.literal('remove_candidate_from_project')
|
|
1056
|
+
.describe('Remove candidate from project operation'),
|
|
1057
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
1058
|
+
error: z.string().describe('Error message if operation failed'),
|
|
1059
|
+
}),
|
|
457
1060
|
]);
|
|
458
1061
|
//# sourceMappingURL=ashby.schema.js.map
|