@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.
@@ -382,6 +382,9 @@ export declare const AshbyCandidateListItemSchema: z.ZodObject<{
382
382
  value?: unknown;
383
383
  isPrivate?: boolean | undefined;
384
384
  }>, "many">>;
385
+ profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
387
+ creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
385
388
  }, "strip", z.ZodTypeAny, {
386
389
  name: string;
387
390
  id: string;
@@ -391,6 +394,8 @@ export declare const AshbyCandidateListItemSchema: z.ZodObject<{
391
394
  isArchived?: boolean | undefined;
392
395
  }[] | undefined;
393
396
  position?: string | null | undefined;
397
+ profileUrl?: string | null | undefined;
398
+ source?: unknown;
394
399
  createdAt?: string | undefined;
395
400
  updatedAt?: string | undefined;
396
401
  primaryEmailAddress?: {
@@ -436,6 +441,7 @@ export declare const AshbyCandidateListItemSchema: z.ZodObject<{
436
441
  id: string;
437
442
  handle: string;
438
443
  }[] | undefined;
444
+ creditedToUser?: unknown;
439
445
  }, {
440
446
  name: string;
441
447
  id: string;
@@ -445,6 +451,8 @@ export declare const AshbyCandidateListItemSchema: z.ZodObject<{
445
451
  isArchived?: boolean | undefined;
446
452
  }[] | undefined;
447
453
  position?: string | null | undefined;
454
+ profileUrl?: string | null | undefined;
455
+ source?: unknown;
448
456
  createdAt?: string | undefined;
449
457
  updatedAt?: string | undefined;
450
458
  primaryEmailAddress?: {
@@ -490,6 +498,314 @@ export declare const AshbyCandidateListItemSchema: z.ZodObject<{
490
498
  id: string;
491
499
  handle: string;
492
500
  }[] | undefined;
501
+ creditedToUser?: unknown;
502
+ }>;
503
+ /**
504
+ * Job object from Ashby API
505
+ */
506
+ export declare const AshbyJobSchema: z.ZodObject<{
507
+ id: z.ZodString;
508
+ title: z.ZodString;
509
+ status: z.ZodOptional<z.ZodString>;
510
+ departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
511
+ teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
512
+ locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
513
+ locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
514
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
515
+ id: z.ZodString;
516
+ title: z.ZodString;
517
+ value: z.ZodUnknown;
518
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ title: string;
521
+ id: string;
522
+ value?: unknown;
523
+ isPrivate?: boolean | undefined;
524
+ }, {
525
+ title: string;
526
+ id: string;
527
+ value?: unknown;
528
+ isPrivate?: boolean | undefined;
529
+ }>, "many">>;
530
+ openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
531
+ closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
532
+ createdAt: z.ZodOptional<z.ZodString>;
533
+ updatedAt: z.ZodOptional<z.ZodString>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ title: string;
536
+ id: string;
537
+ status?: string | undefined;
538
+ locationId?: string | null | undefined;
539
+ createdAt?: string | undefined;
540
+ updatedAt?: string | undefined;
541
+ teamId?: string | null | undefined;
542
+ customFields?: {
543
+ title: string;
544
+ id: string;
545
+ value?: unknown;
546
+ isPrivate?: boolean | undefined;
547
+ }[] | undefined;
548
+ departmentId?: string | null | undefined;
549
+ locationIds?: string[] | undefined;
550
+ openedAt?: string | null | undefined;
551
+ closedAt?: string | null | undefined;
552
+ }, {
553
+ title: string;
554
+ id: string;
555
+ status?: string | undefined;
556
+ locationId?: string | null | undefined;
557
+ createdAt?: string | undefined;
558
+ updatedAt?: string | undefined;
559
+ teamId?: string | null | undefined;
560
+ customFields?: {
561
+ title: string;
562
+ id: string;
563
+ value?: unknown;
564
+ isPrivate?: boolean | undefined;
565
+ }[] | undefined;
566
+ departmentId?: string | null | undefined;
567
+ locationIds?: string[] | undefined;
568
+ openedAt?: string | null | undefined;
569
+ closedAt?: string | null | undefined;
570
+ }>;
571
+ /**
572
+ * Interview stage object from Ashby API
573
+ */
574
+ export declare const AshbyInterviewStageSchema: z.ZodObject<{
575
+ id: z.ZodString;
576
+ title: z.ZodString;
577
+ type: z.ZodOptional<z.ZodString>;
578
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
579
+ interviewPlanId: z.ZodOptional<z.ZodString>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ title: string;
582
+ id: string;
583
+ type?: string | undefined;
584
+ orderInInterviewPlan?: number | undefined;
585
+ interviewPlanId?: string | undefined;
586
+ }, {
587
+ title: string;
588
+ id: string;
589
+ type?: string | undefined;
590
+ orderInInterviewPlan?: number | undefined;
591
+ interviewPlanId?: string | undefined;
592
+ }>;
593
+ /**
594
+ * Application object from Ashby API
595
+ */
596
+ export declare const AshbyApplicationSchema: z.ZodObject<{
597
+ id: z.ZodString;
598
+ createdAt: z.ZodOptional<z.ZodString>;
599
+ updatedAt: z.ZodOptional<z.ZodString>;
600
+ status: z.ZodOptional<z.ZodString>;
601
+ candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
602
+ jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
603
+ currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
604
+ id: z.ZodString;
605
+ title: z.ZodString;
606
+ type: z.ZodOptional<z.ZodString>;
607
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
608
+ interviewPlanId: z.ZodOptional<z.ZodString>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ title: string;
611
+ id: string;
612
+ type?: string | undefined;
613
+ orderInInterviewPlan?: number | undefined;
614
+ interviewPlanId?: string | undefined;
615
+ }, {
616
+ title: string;
617
+ id: string;
618
+ type?: string | undefined;
619
+ orderInInterviewPlan?: number | undefined;
620
+ interviewPlanId?: string | undefined;
621
+ }>>>;
622
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
623
+ archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
624
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
625
+ id: z.ZodString;
626
+ title: z.ZodString;
627
+ value: z.ZodUnknown;
628
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ title: string;
631
+ id: string;
632
+ value?: unknown;
633
+ isPrivate?: boolean | undefined;
634
+ }, {
635
+ title: string;
636
+ id: string;
637
+ value?: unknown;
638
+ isPrivate?: boolean | undefined;
639
+ }>, "many">>;
640
+ hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ userId: z.ZodString;
642
+ role: z.ZodString;
643
+ email: z.ZodOptional<z.ZodString>;
644
+ firstName: z.ZodOptional<z.ZodString>;
645
+ lastName: z.ZodOptional<z.ZodString>;
646
+ }, "strip", z.ZodTypeAny, {
647
+ role: string;
648
+ userId: string;
649
+ email?: string | undefined;
650
+ firstName?: string | undefined;
651
+ lastName?: string | undefined;
652
+ }, {
653
+ role: string;
654
+ userId: string;
655
+ email?: string | undefined;
656
+ firstName?: string | undefined;
657
+ lastName?: string | undefined;
658
+ }>, "many">>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ id: string;
661
+ status?: string | undefined;
662
+ source?: unknown;
663
+ createdAt?: string | undefined;
664
+ updatedAt?: string | undefined;
665
+ customFields?: {
666
+ title: string;
667
+ id: string;
668
+ value?: unknown;
669
+ isPrivate?: boolean | undefined;
670
+ }[] | undefined;
671
+ candidateId?: string | null | undefined;
672
+ jobId?: string | null | undefined;
673
+ currentInterviewStage?: {
674
+ title: string;
675
+ id: string;
676
+ type?: string | undefined;
677
+ orderInInterviewPlan?: number | undefined;
678
+ interviewPlanId?: string | undefined;
679
+ } | null | undefined;
680
+ archiveReason?: unknown;
681
+ hiringTeam?: {
682
+ role: string;
683
+ userId: string;
684
+ email?: string | undefined;
685
+ firstName?: string | undefined;
686
+ lastName?: string | undefined;
687
+ }[] | undefined;
688
+ }, {
689
+ id: string;
690
+ status?: string | undefined;
691
+ source?: unknown;
692
+ createdAt?: string | undefined;
693
+ updatedAt?: string | undefined;
694
+ customFields?: {
695
+ title: string;
696
+ id: string;
697
+ value?: unknown;
698
+ isPrivate?: boolean | undefined;
699
+ }[] | undefined;
700
+ candidateId?: string | null | undefined;
701
+ jobId?: string | null | undefined;
702
+ currentInterviewStage?: {
703
+ title: string;
704
+ id: string;
705
+ type?: string | undefined;
706
+ orderInInterviewPlan?: number | undefined;
707
+ interviewPlanId?: string | undefined;
708
+ } | null | undefined;
709
+ archiveReason?: unknown;
710
+ hiringTeam?: {
711
+ role: string;
712
+ userId: string;
713
+ email?: string | undefined;
714
+ firstName?: string | undefined;
715
+ lastName?: string | undefined;
716
+ }[] | undefined;
717
+ }>;
718
+ /**
719
+ * Note object from Ashby API
720
+ */
721
+ export declare const AshbyNoteSchema: z.ZodObject<{
722
+ id: z.ZodString;
723
+ createdAt: z.ZodOptional<z.ZodString>;
724
+ content: z.ZodString;
725
+ author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
726
+ id: z.ZodString;
727
+ firstName: z.ZodOptional<z.ZodString>;
728
+ lastName: z.ZodOptional<z.ZodString>;
729
+ email: z.ZodOptional<z.ZodString>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ id: string;
732
+ email?: string | undefined;
733
+ firstName?: string | undefined;
734
+ lastName?: string | undefined;
735
+ }, {
736
+ id: string;
737
+ email?: string | undefined;
738
+ firstName?: string | undefined;
739
+ lastName?: string | undefined;
740
+ }>>>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ content: string;
743
+ id: string;
744
+ author?: {
745
+ id: string;
746
+ email?: string | undefined;
747
+ firstName?: string | undefined;
748
+ lastName?: string | undefined;
749
+ } | null | undefined;
750
+ createdAt?: string | undefined;
751
+ }, {
752
+ content: string;
753
+ id: string;
754
+ author?: {
755
+ id: string;
756
+ email?: string | undefined;
757
+ firstName?: string | undefined;
758
+ lastName?: string | undefined;
759
+ } | null | undefined;
760
+ createdAt?: string | undefined;
761
+ }>;
762
+ /**
763
+ * Source object from Ashby API
764
+ */
765
+ export declare const AshbySourceSchema: z.ZodObject<{
766
+ id: z.ZodString;
767
+ title: z.ZodString;
768
+ isArchived: z.ZodOptional<z.ZodBoolean>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ title: string;
771
+ id: string;
772
+ isArchived?: boolean | undefined;
773
+ }, {
774
+ title: string;
775
+ id: string;
776
+ isArchived?: boolean | undefined;
777
+ }>;
778
+ /**
779
+ * Project object from Ashby API
780
+ */
781
+ export declare const AshbyProjectSchema: z.ZodObject<{
782
+ id: z.ZodString;
783
+ title: z.ZodString;
784
+ isArchived: z.ZodOptional<z.ZodBoolean>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ title: string;
787
+ id: string;
788
+ isArchived?: boolean | undefined;
789
+ }, {
790
+ title: string;
791
+ id: string;
792
+ isArchived?: boolean | undefined;
793
+ }>;
794
+ /**
795
+ * File info response from Ashby API (file.info endpoint)
796
+ */
797
+ export declare const AshbyFileInfoSchema: z.ZodObject<{
798
+ id: z.ZodOptional<z.ZodString>;
799
+ name: z.ZodOptional<z.ZodString>;
800
+ url: z.ZodString;
801
+ }, "strip", z.ZodTypeAny, {
802
+ url: string;
803
+ name?: string | undefined;
804
+ id?: string | undefined;
805
+ }, {
806
+ url: string;
807
+ name?: string | undefined;
808
+ id?: string | undefined;
493
809
  }>;
494
810
  export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
495
811
  operation: z.ZodLiteral<"list_candidates">;
@@ -653,84 +969,342 @@ export declare const AshbyParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.
653
969
  limit?: number | undefined;
654
970
  cursor?: string | undefined;
655
971
  sync_token?: string | undefined;
656
- }>]>;
657
- export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
658
- operation: z.ZodLiteral<"list_candidates">;
659
- success: z.ZodBoolean;
660
- candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
- id: z.ZodString;
662
- createdAt: z.ZodOptional<z.ZodString>;
663
- updatedAt: z.ZodOptional<z.ZodString>;
664
- name: z.ZodString;
665
- primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
666
- value: z.ZodString;
667
- type: z.ZodEnum<["Personal", "Work", "Other"]>;
668
- isPrimary: z.ZodBoolean;
669
- }, "strip", z.ZodTypeAny, {
670
- value: string;
671
- type: "Personal" | "Work" | "Other";
672
- isPrimary: boolean;
673
- }, {
674
- value: string;
675
- type: "Personal" | "Work" | "Other";
676
- isPrimary: boolean;
677
- }>>>;
678
- emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
- value: z.ZodString;
680
- type: z.ZodEnum<["Personal", "Work", "Other"]>;
681
- isPrimary: z.ZodBoolean;
682
- }, "strip", z.ZodTypeAny, {
683
- value: string;
684
- type: "Personal" | "Work" | "Other";
685
- isPrimary: boolean;
686
- }, {
687
- value: string;
688
- type: "Personal" | "Work" | "Other";
689
- isPrimary: boolean;
690
- }>, "many">>;
691
- primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{
692
- value: z.ZodString;
693
- type: z.ZodEnum<["Personal", "Work", "Other"]>;
694
- isPrimary: z.ZodBoolean;
695
- }, "strip", z.ZodTypeAny, {
696
- value: string;
697
- type: "Personal" | "Work" | "Other";
698
- isPrimary: boolean;
699
- }, {
700
- value: string;
701
- type: "Personal" | "Work" | "Other";
702
- isPrimary: boolean;
703
- }>>>;
704
- phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{
705
- value: z.ZodString;
706
- type: z.ZodEnum<["Personal", "Work", "Other"]>;
707
- isPrimary: z.ZodBoolean;
708
- }, "strip", z.ZodTypeAny, {
709
- value: string;
710
- type: "Personal" | "Work" | "Other";
711
- isPrimary: boolean;
712
- }, {
713
- value: string;
714
- type: "Personal" | "Work" | "Other";
715
- isPrimary: boolean;
716
- }>, "many">>;
717
- socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
- url: z.ZodString;
719
- type: z.ZodString;
720
- }, "strip", z.ZodTypeAny, {
721
- type: string;
722
- url: string;
723
- }, {
724
- type: string;
725
- url: string;
726
- }>, "many">>;
727
- tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
728
- id: z.ZodString;
729
- title: z.ZodString;
730
- isArchived: z.ZodOptional<z.ZodBoolean>;
731
- }, "strip", z.ZodTypeAny, {
732
- title: string;
733
- id: string;
972
+ }>, z.ZodObject<{
973
+ operation: z.ZodLiteral<"list_jobs">;
974
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
975
+ cursor: z.ZodOptional<z.ZodString>;
976
+ status: z.ZodOptional<z.ZodEnum<["Open", "Closed", "Draft", "Archived"]>>;
977
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ operation: "list_jobs";
980
+ limit: number;
981
+ status?: "Archived" | "Open" | "Closed" | "Draft" | undefined;
982
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
983
+ cursor?: string | undefined;
984
+ }, {
985
+ operation: "list_jobs";
986
+ status?: "Archived" | "Open" | "Closed" | "Draft" | undefined;
987
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
988
+ limit?: number | undefined;
989
+ cursor?: string | undefined;
990
+ }>, z.ZodObject<{
991
+ operation: z.ZodLiteral<"get_job">;
992
+ job_id: z.ZodString;
993
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ operation: "get_job";
996
+ job_id: string;
997
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
998
+ }, {
999
+ operation: "get_job";
1000
+ job_id: string;
1001
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1002
+ }>, z.ZodObject<{
1003
+ operation: z.ZodLiteral<"list_applications">;
1004
+ candidate_id: z.ZodOptional<z.ZodString>;
1005
+ job_id: z.ZodOptional<z.ZodString>;
1006
+ status: z.ZodOptional<z.ZodEnum<["Active", "Hired", "Archived", "Lead"]>>;
1007
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1008
+ cursor: z.ZodOptional<z.ZodString>;
1009
+ created_after: z.ZodOptional<z.ZodNumber>;
1010
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ operation: "list_applications";
1013
+ limit: number;
1014
+ status?: "Hired" | "Archived" | "Active" | "Lead" | undefined;
1015
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1016
+ cursor?: string | undefined;
1017
+ job_id?: string | undefined;
1018
+ created_after?: number | undefined;
1019
+ candidate_id?: string | undefined;
1020
+ }, {
1021
+ operation: "list_applications";
1022
+ status?: "Hired" | "Archived" | "Active" | "Lead" | undefined;
1023
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1024
+ limit?: number | undefined;
1025
+ cursor?: string | undefined;
1026
+ job_id?: string | undefined;
1027
+ created_after?: number | undefined;
1028
+ candidate_id?: string | undefined;
1029
+ }>, z.ZodObject<{
1030
+ operation: z.ZodLiteral<"get_application">;
1031
+ application_id: z.ZodString;
1032
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ operation: "get_application";
1035
+ application_id: string;
1036
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1037
+ }, {
1038
+ operation: "get_application";
1039
+ application_id: string;
1040
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1041
+ }>, z.ZodObject<{
1042
+ operation: z.ZodLiteral<"create_application">;
1043
+ candidate_id: z.ZodString;
1044
+ job_id: z.ZodString;
1045
+ interview_stage_id: z.ZodOptional<z.ZodString>;
1046
+ source_id: z.ZodOptional<z.ZodString>;
1047
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ operation: "create_application";
1050
+ job_id: string;
1051
+ candidate_id: string;
1052
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1053
+ source_id?: string | undefined;
1054
+ interview_stage_id?: string | undefined;
1055
+ }, {
1056
+ operation: "create_application";
1057
+ job_id: string;
1058
+ candidate_id: string;
1059
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1060
+ source_id?: string | undefined;
1061
+ interview_stage_id?: string | undefined;
1062
+ }>, z.ZodObject<{
1063
+ operation: z.ZodLiteral<"change_application_stage">;
1064
+ application_id: z.ZodString;
1065
+ interview_stage_id: z.ZodString;
1066
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ operation: "change_application_stage";
1069
+ application_id: string;
1070
+ interview_stage_id: string;
1071
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1072
+ }, {
1073
+ operation: "change_application_stage";
1074
+ application_id: string;
1075
+ interview_stage_id: string;
1076
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1077
+ }>, z.ZodObject<{
1078
+ operation: z.ZodLiteral<"update_candidate">;
1079
+ candidate_id: z.ZodString;
1080
+ name: z.ZodOptional<z.ZodString>;
1081
+ email: z.ZodOptional<z.ZodString>;
1082
+ phone_number: z.ZodOptional<z.ZodString>;
1083
+ linkedin_url: z.ZodOptional<z.ZodString>;
1084
+ github_url: z.ZodOptional<z.ZodString>;
1085
+ website: z.ZodOptional<z.ZodString>;
1086
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ operation: "update_candidate";
1089
+ candidate_id: string;
1090
+ name?: string | undefined;
1091
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1092
+ email?: string | undefined;
1093
+ website?: string | undefined;
1094
+ phone_number?: string | undefined;
1095
+ linkedin_url?: string | undefined;
1096
+ github_url?: string | undefined;
1097
+ }, {
1098
+ operation: "update_candidate";
1099
+ candidate_id: string;
1100
+ name?: string | undefined;
1101
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1102
+ email?: string | undefined;
1103
+ website?: string | undefined;
1104
+ phone_number?: string | undefined;
1105
+ linkedin_url?: string | undefined;
1106
+ github_url?: string | undefined;
1107
+ }>, z.ZodObject<{
1108
+ operation: z.ZodLiteral<"create_note">;
1109
+ candidate_id: z.ZodString;
1110
+ content: z.ZodString;
1111
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ content: string;
1114
+ operation: "create_note";
1115
+ candidate_id: string;
1116
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1117
+ }, {
1118
+ content: string;
1119
+ operation: "create_note";
1120
+ candidate_id: string;
1121
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1122
+ }>, z.ZodObject<{
1123
+ operation: z.ZodLiteral<"list_notes">;
1124
+ candidate_id: z.ZodString;
1125
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ operation: "list_notes";
1128
+ candidate_id: string;
1129
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1130
+ }, {
1131
+ operation: "list_notes";
1132
+ candidate_id: string;
1133
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1134
+ }>, z.ZodObject<{
1135
+ operation: z.ZodLiteral<"list_sources">;
1136
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ operation: "list_sources";
1139
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1140
+ }, {
1141
+ operation: "list_sources";
1142
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1143
+ }>, z.ZodObject<{
1144
+ operation: z.ZodLiteral<"list_interview_stages">;
1145
+ job_id: z.ZodString;
1146
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ operation: "list_interview_stages";
1149
+ job_id: string;
1150
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1151
+ }, {
1152
+ operation: "list_interview_stages";
1153
+ job_id: string;
1154
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1155
+ }>, z.ZodObject<{
1156
+ operation: z.ZodLiteral<"get_file_url">;
1157
+ file_handle: z.ZodString;
1158
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ operation: "get_file_url";
1161
+ file_handle: string;
1162
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1163
+ }, {
1164
+ operation: "get_file_url";
1165
+ file_handle: string;
1166
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1167
+ }>, z.ZodObject<{
1168
+ operation: z.ZodLiteral<"list_projects">;
1169
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ operation: "list_projects";
1172
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1173
+ }, {
1174
+ operation: "list_projects";
1175
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1176
+ }>, z.ZodObject<{
1177
+ operation: z.ZodLiteral<"get_project">;
1178
+ project_id: z.ZodString;
1179
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ operation: "get_project";
1182
+ project_id: string;
1183
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1184
+ }, {
1185
+ operation: "get_project";
1186
+ project_id: string;
1187
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1188
+ }>, z.ZodObject<{
1189
+ operation: z.ZodLiteral<"list_candidate_projects">;
1190
+ candidate_id: z.ZodString;
1191
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ operation: "list_candidate_projects";
1194
+ candidate_id: string;
1195
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1196
+ }, {
1197
+ operation: "list_candidate_projects";
1198
+ candidate_id: string;
1199
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1200
+ }>, z.ZodObject<{
1201
+ operation: z.ZodLiteral<"add_candidate_to_project">;
1202
+ candidate_id: z.ZodString;
1203
+ project_id: z.ZodString;
1204
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ operation: "add_candidate_to_project";
1207
+ candidate_id: string;
1208
+ project_id: string;
1209
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1210
+ }, {
1211
+ operation: "add_candidate_to_project";
1212
+ candidate_id: string;
1213
+ project_id: string;
1214
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1215
+ }>, z.ZodObject<{
1216
+ operation: z.ZodLiteral<"remove_candidate_from_project">;
1217
+ candidate_id: z.ZodString;
1218
+ project_id: z.ZodString;
1219
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ operation: "remove_candidate_from_project";
1222
+ candidate_id: string;
1223
+ project_id: string;
1224
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1225
+ }, {
1226
+ operation: "remove_candidate_from_project";
1227
+ candidate_id: string;
1228
+ project_id: string;
1229
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1230
+ }>]>;
1231
+ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
1232
+ operation: z.ZodLiteral<"list_candidates">;
1233
+ success: z.ZodBoolean;
1234
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ createdAt: z.ZodOptional<z.ZodString>;
1237
+ updatedAt: z.ZodOptional<z.ZodString>;
1238
+ name: z.ZodString;
1239
+ primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1240
+ value: z.ZodString;
1241
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
1242
+ isPrimary: z.ZodBoolean;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ value: string;
1245
+ type: "Personal" | "Work" | "Other";
1246
+ isPrimary: boolean;
1247
+ }, {
1248
+ value: string;
1249
+ type: "Personal" | "Work" | "Other";
1250
+ isPrimary: boolean;
1251
+ }>>>;
1252
+ emailAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
1253
+ value: z.ZodString;
1254
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
1255
+ isPrimary: z.ZodBoolean;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ value: string;
1258
+ type: "Personal" | "Work" | "Other";
1259
+ isPrimary: boolean;
1260
+ }, {
1261
+ value: string;
1262
+ type: "Personal" | "Work" | "Other";
1263
+ isPrimary: boolean;
1264
+ }>, "many">>;
1265
+ primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1266
+ value: z.ZodString;
1267
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
1268
+ isPrimary: z.ZodBoolean;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ value: string;
1271
+ type: "Personal" | "Work" | "Other";
1272
+ isPrimary: boolean;
1273
+ }, {
1274
+ value: string;
1275
+ type: "Personal" | "Work" | "Other";
1276
+ isPrimary: boolean;
1277
+ }>>>;
1278
+ phoneNumbers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1279
+ value: z.ZodString;
1280
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
1281
+ isPrimary: z.ZodBoolean;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ value: string;
1284
+ type: "Personal" | "Work" | "Other";
1285
+ isPrimary: boolean;
1286
+ }, {
1287
+ value: string;
1288
+ type: "Personal" | "Work" | "Other";
1289
+ isPrimary: boolean;
1290
+ }>, "many">>;
1291
+ socialLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1292
+ url: z.ZodString;
1293
+ type: z.ZodString;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: string;
1296
+ url: string;
1297
+ }, {
1298
+ type: string;
1299
+ url: string;
1300
+ }>, "many">>;
1301
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1302
+ id: z.ZodString;
1303
+ title: z.ZodString;
1304
+ isArchived: z.ZodOptional<z.ZodBoolean>;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ title: string;
1307
+ id: string;
734
1308
  isArchived?: boolean | undefined;
735
1309
  }, {
736
1310
  title: string;
@@ -783,6 +1357,9 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
783
1357
  value?: unknown;
784
1358
  isPrivate?: boolean | undefined;
785
1359
  }>, "many">>;
1360
+ profileUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1361
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
1362
+ creditedToUser: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
786
1363
  }, "strip", z.ZodTypeAny, {
787
1364
  name: string;
788
1365
  id: string;
@@ -792,6 +1369,8 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
792
1369
  isArchived?: boolean | undefined;
793
1370
  }[] | undefined;
794
1371
  position?: string | null | undefined;
1372
+ profileUrl?: string | null | undefined;
1373
+ source?: unknown;
795
1374
  createdAt?: string | undefined;
796
1375
  updatedAt?: string | undefined;
797
1376
  primaryEmailAddress?: {
@@ -837,6 +1416,7 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
837
1416
  id: string;
838
1417
  handle: string;
839
1418
  }[] | undefined;
1419
+ creditedToUser?: unknown;
840
1420
  }, {
841
1421
  name: string;
842
1422
  id: string;
@@ -846,6 +1426,8 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
846
1426
  isArchived?: boolean | undefined;
847
1427
  }[] | undefined;
848
1428
  position?: string | null | undefined;
1429
+ profileUrl?: string | null | undefined;
1430
+ source?: unknown;
849
1431
  createdAt?: string | undefined;
850
1432
  updatedAt?: string | undefined;
851
1433
  primaryEmailAddress?: {
@@ -891,6 +1473,7 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
891
1473
  id: string;
892
1474
  handle: string;
893
1475
  }[] | undefined;
1476
+ creditedToUser?: unknown;
894
1477
  }>, "many">>;
895
1478
  next_cursor: z.ZodOptional<z.ZodString>;
896
1479
  more_data_available: z.ZodOptional<z.ZodBoolean>;
@@ -911,6 +1494,8 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
911
1494
  isArchived?: boolean | undefined;
912
1495
  }[] | undefined;
913
1496
  position?: string | null | undefined;
1497
+ profileUrl?: string | null | undefined;
1498
+ source?: unknown;
914
1499
  createdAt?: string | undefined;
915
1500
  updatedAt?: string | undefined;
916
1501
  primaryEmailAddress?: {
@@ -956,6 +1541,7 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
956
1541
  id: string;
957
1542
  handle: string;
958
1543
  }[] | undefined;
1544
+ creditedToUser?: unknown;
959
1545
  }[] | undefined;
960
1546
  more_data_available?: boolean | undefined;
961
1547
  }, {
@@ -973,6 +1559,8 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
973
1559
  isArchived?: boolean | undefined;
974
1560
  }[] | undefined;
975
1561
  position?: string | null | undefined;
1562
+ profileUrl?: string | null | undefined;
1563
+ source?: unknown;
976
1564
  createdAt?: string | undefined;
977
1565
  updatedAt?: string | undefined;
978
1566
  primaryEmailAddress?: {
@@ -1018,6 +1606,7 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
1018
1606
  id: string;
1019
1607
  handle: string;
1020
1608
  }[] | undefined;
1609
+ creditedToUser?: unknown;
1021
1610
  }[] | undefined;
1022
1611
  more_data_available?: boolean | undefined;
1023
1612
  }>, z.ZodObject<{
@@ -1769,20 +2358,1854 @@ export declare const AshbyResultSchema: z.ZodDiscriminatedUnion<"operation", [z.
1769
2358
  }[] | undefined;
1770
2359
  sync_token?: string | undefined;
1771
2360
  more_data_available?: boolean | undefined;
1772
- }>]>;
1773
- export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>;
1774
- export type AshbyParams = z.output<typeof AshbyParamsSchema>;
1775
- export type AshbyResult = z.output<typeof AshbyResultSchema>;
1776
- export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>;
1777
- export type AshbyEmail = z.output<typeof AshbyEmailSchema>;
1778
- export type AshbyPhone = z.output<typeof AshbyPhoneSchema>;
1779
- export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>;
1780
- export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>;
1781
- export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>;
1782
- export type AshbyTag = z.output<typeof AshbyTagSchema>;
1783
- export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>;
1784
- export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>;
1785
- export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>;
2361
+ }>, z.ZodObject<{
2362
+ operation: z.ZodLiteral<"list_jobs">;
2363
+ success: z.ZodBoolean;
2364
+ jobs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2365
+ id: z.ZodString;
2366
+ title: z.ZodString;
2367
+ status: z.ZodOptional<z.ZodString>;
2368
+ departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2369
+ teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2370
+ locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2371
+ locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2372
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2373
+ id: z.ZodString;
2374
+ title: z.ZodString;
2375
+ value: z.ZodUnknown;
2376
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
2377
+ }, "strip", z.ZodTypeAny, {
2378
+ title: string;
2379
+ id: string;
2380
+ value?: unknown;
2381
+ isPrivate?: boolean | undefined;
2382
+ }, {
2383
+ title: string;
2384
+ id: string;
2385
+ value?: unknown;
2386
+ isPrivate?: boolean | undefined;
2387
+ }>, "many">>;
2388
+ openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2389
+ closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2390
+ createdAt: z.ZodOptional<z.ZodString>;
2391
+ updatedAt: z.ZodOptional<z.ZodString>;
2392
+ }, "strip", z.ZodTypeAny, {
2393
+ title: string;
2394
+ id: string;
2395
+ status?: string | undefined;
2396
+ locationId?: string | null | undefined;
2397
+ createdAt?: string | undefined;
2398
+ updatedAt?: string | undefined;
2399
+ teamId?: string | null | undefined;
2400
+ customFields?: {
2401
+ title: string;
2402
+ id: string;
2403
+ value?: unknown;
2404
+ isPrivate?: boolean | undefined;
2405
+ }[] | undefined;
2406
+ departmentId?: string | null | undefined;
2407
+ locationIds?: string[] | undefined;
2408
+ openedAt?: string | null | undefined;
2409
+ closedAt?: string | null | undefined;
2410
+ }, {
2411
+ title: string;
2412
+ id: string;
2413
+ status?: string | undefined;
2414
+ locationId?: string | null | undefined;
2415
+ createdAt?: string | undefined;
2416
+ updatedAt?: string | undefined;
2417
+ teamId?: string | null | undefined;
2418
+ customFields?: {
2419
+ title: string;
2420
+ id: string;
2421
+ value?: unknown;
2422
+ isPrivate?: boolean | undefined;
2423
+ }[] | undefined;
2424
+ departmentId?: string | null | undefined;
2425
+ locationIds?: string[] | undefined;
2426
+ openedAt?: string | null | undefined;
2427
+ closedAt?: string | null | undefined;
2428
+ }>, "many">>;
2429
+ next_cursor: z.ZodOptional<z.ZodString>;
2430
+ more_data_available: z.ZodOptional<z.ZodBoolean>;
2431
+ error: z.ZodString;
2432
+ }, "strip", z.ZodTypeAny, {
2433
+ error: string;
2434
+ success: boolean;
2435
+ operation: "list_jobs";
2436
+ next_cursor?: string | undefined;
2437
+ jobs?: {
2438
+ title: string;
2439
+ id: string;
2440
+ status?: string | undefined;
2441
+ locationId?: string | null | undefined;
2442
+ createdAt?: string | undefined;
2443
+ updatedAt?: string | undefined;
2444
+ teamId?: string | null | undefined;
2445
+ customFields?: {
2446
+ title: string;
2447
+ id: string;
2448
+ value?: unknown;
2449
+ isPrivate?: boolean | undefined;
2450
+ }[] | undefined;
2451
+ departmentId?: string | null | undefined;
2452
+ locationIds?: string[] | undefined;
2453
+ openedAt?: string | null | undefined;
2454
+ closedAt?: string | null | undefined;
2455
+ }[] | undefined;
2456
+ more_data_available?: boolean | undefined;
2457
+ }, {
2458
+ error: string;
2459
+ success: boolean;
2460
+ operation: "list_jobs";
2461
+ next_cursor?: string | undefined;
2462
+ jobs?: {
2463
+ title: string;
2464
+ id: string;
2465
+ status?: string | undefined;
2466
+ locationId?: string | null | undefined;
2467
+ createdAt?: string | undefined;
2468
+ updatedAt?: string | undefined;
2469
+ teamId?: string | null | undefined;
2470
+ customFields?: {
2471
+ title: string;
2472
+ id: string;
2473
+ value?: unknown;
2474
+ isPrivate?: boolean | undefined;
2475
+ }[] | undefined;
2476
+ departmentId?: string | null | undefined;
2477
+ locationIds?: string[] | undefined;
2478
+ openedAt?: string | null | undefined;
2479
+ closedAt?: string | null | undefined;
2480
+ }[] | undefined;
2481
+ more_data_available?: boolean | undefined;
2482
+ }>, z.ZodObject<{
2483
+ operation: z.ZodLiteral<"get_job">;
2484
+ success: z.ZodBoolean;
2485
+ job: z.ZodOptional<z.ZodObject<{
2486
+ id: z.ZodString;
2487
+ title: z.ZodString;
2488
+ status: z.ZodOptional<z.ZodString>;
2489
+ departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2490
+ teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2491
+ locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2492
+ locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2493
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2494
+ id: z.ZodString;
2495
+ title: z.ZodString;
2496
+ value: z.ZodUnknown;
2497
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
2498
+ }, "strip", z.ZodTypeAny, {
2499
+ title: string;
2500
+ id: string;
2501
+ value?: unknown;
2502
+ isPrivate?: boolean | undefined;
2503
+ }, {
2504
+ title: string;
2505
+ id: string;
2506
+ value?: unknown;
2507
+ isPrivate?: boolean | undefined;
2508
+ }>, "many">>;
2509
+ openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2510
+ closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2511
+ createdAt: z.ZodOptional<z.ZodString>;
2512
+ updatedAt: z.ZodOptional<z.ZodString>;
2513
+ }, "strip", z.ZodTypeAny, {
2514
+ title: string;
2515
+ id: string;
2516
+ status?: string | undefined;
2517
+ locationId?: string | null | undefined;
2518
+ createdAt?: string | undefined;
2519
+ updatedAt?: string | undefined;
2520
+ teamId?: string | null | undefined;
2521
+ customFields?: {
2522
+ title: string;
2523
+ id: string;
2524
+ value?: unknown;
2525
+ isPrivate?: boolean | undefined;
2526
+ }[] | undefined;
2527
+ departmentId?: string | null | undefined;
2528
+ locationIds?: string[] | undefined;
2529
+ openedAt?: string | null | undefined;
2530
+ closedAt?: string | null | undefined;
2531
+ }, {
2532
+ title: string;
2533
+ id: string;
2534
+ status?: string | undefined;
2535
+ locationId?: string | null | undefined;
2536
+ createdAt?: string | undefined;
2537
+ updatedAt?: string | undefined;
2538
+ teamId?: string | null | undefined;
2539
+ customFields?: {
2540
+ title: string;
2541
+ id: string;
2542
+ value?: unknown;
2543
+ isPrivate?: boolean | undefined;
2544
+ }[] | undefined;
2545
+ departmentId?: string | null | undefined;
2546
+ locationIds?: string[] | undefined;
2547
+ openedAt?: string | null | undefined;
2548
+ closedAt?: string | null | undefined;
2549
+ }>>;
2550
+ interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2551
+ id: z.ZodString;
2552
+ title: z.ZodString;
2553
+ type: z.ZodOptional<z.ZodString>;
2554
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
2555
+ interviewPlanId: z.ZodOptional<z.ZodString>;
2556
+ }, "strip", z.ZodTypeAny, {
2557
+ title: string;
2558
+ id: string;
2559
+ type?: string | undefined;
2560
+ orderInInterviewPlan?: number | undefined;
2561
+ interviewPlanId?: string | undefined;
2562
+ }, {
2563
+ title: string;
2564
+ id: string;
2565
+ type?: string | undefined;
2566
+ orderInInterviewPlan?: number | undefined;
2567
+ interviewPlanId?: string | undefined;
2568
+ }>, "many">>;
2569
+ error: z.ZodString;
2570
+ }, "strip", z.ZodTypeAny, {
2571
+ error: string;
2572
+ success: boolean;
2573
+ operation: "get_job";
2574
+ job?: {
2575
+ title: string;
2576
+ id: string;
2577
+ status?: string | undefined;
2578
+ locationId?: string | null | undefined;
2579
+ createdAt?: string | undefined;
2580
+ updatedAt?: string | undefined;
2581
+ teamId?: string | null | undefined;
2582
+ customFields?: {
2583
+ title: string;
2584
+ id: string;
2585
+ value?: unknown;
2586
+ isPrivate?: boolean | undefined;
2587
+ }[] | undefined;
2588
+ departmentId?: string | null | undefined;
2589
+ locationIds?: string[] | undefined;
2590
+ openedAt?: string | null | undefined;
2591
+ closedAt?: string | null | undefined;
2592
+ } | undefined;
2593
+ interview_stages?: {
2594
+ title: string;
2595
+ id: string;
2596
+ type?: string | undefined;
2597
+ orderInInterviewPlan?: number | undefined;
2598
+ interviewPlanId?: string | undefined;
2599
+ }[] | undefined;
2600
+ }, {
2601
+ error: string;
2602
+ success: boolean;
2603
+ operation: "get_job";
2604
+ job?: {
2605
+ title: string;
2606
+ id: string;
2607
+ status?: string | undefined;
2608
+ locationId?: string | null | undefined;
2609
+ createdAt?: string | undefined;
2610
+ updatedAt?: string | undefined;
2611
+ teamId?: string | null | undefined;
2612
+ customFields?: {
2613
+ title: string;
2614
+ id: string;
2615
+ value?: unknown;
2616
+ isPrivate?: boolean | undefined;
2617
+ }[] | undefined;
2618
+ departmentId?: string | null | undefined;
2619
+ locationIds?: string[] | undefined;
2620
+ openedAt?: string | null | undefined;
2621
+ closedAt?: string | null | undefined;
2622
+ } | undefined;
2623
+ interview_stages?: {
2624
+ title: string;
2625
+ id: string;
2626
+ type?: string | undefined;
2627
+ orderInInterviewPlan?: number | undefined;
2628
+ interviewPlanId?: string | undefined;
2629
+ }[] | undefined;
2630
+ }>, z.ZodObject<{
2631
+ operation: z.ZodLiteral<"list_applications">;
2632
+ success: z.ZodBoolean;
2633
+ applications: z.ZodOptional<z.ZodArray<z.ZodObject<{
2634
+ id: z.ZodString;
2635
+ createdAt: z.ZodOptional<z.ZodString>;
2636
+ updatedAt: z.ZodOptional<z.ZodString>;
2637
+ status: z.ZodOptional<z.ZodString>;
2638
+ candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2639
+ jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2640
+ currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2641
+ id: z.ZodString;
2642
+ title: z.ZodString;
2643
+ type: z.ZodOptional<z.ZodString>;
2644
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
2645
+ interviewPlanId: z.ZodOptional<z.ZodString>;
2646
+ }, "strip", z.ZodTypeAny, {
2647
+ title: string;
2648
+ id: string;
2649
+ type?: string | undefined;
2650
+ orderInInterviewPlan?: number | undefined;
2651
+ interviewPlanId?: string | undefined;
2652
+ }, {
2653
+ title: string;
2654
+ id: string;
2655
+ type?: string | undefined;
2656
+ orderInInterviewPlan?: number | undefined;
2657
+ interviewPlanId?: string | undefined;
2658
+ }>>>;
2659
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
2660
+ archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
2661
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2662
+ id: z.ZodString;
2663
+ title: z.ZodString;
2664
+ value: z.ZodUnknown;
2665
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
2666
+ }, "strip", z.ZodTypeAny, {
2667
+ title: string;
2668
+ id: string;
2669
+ value?: unknown;
2670
+ isPrivate?: boolean | undefined;
2671
+ }, {
2672
+ title: string;
2673
+ id: string;
2674
+ value?: unknown;
2675
+ isPrivate?: boolean | undefined;
2676
+ }>, "many">>;
2677
+ hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{
2678
+ userId: z.ZodString;
2679
+ role: z.ZodString;
2680
+ email: z.ZodOptional<z.ZodString>;
2681
+ firstName: z.ZodOptional<z.ZodString>;
2682
+ lastName: z.ZodOptional<z.ZodString>;
2683
+ }, "strip", z.ZodTypeAny, {
2684
+ role: string;
2685
+ userId: string;
2686
+ email?: string | undefined;
2687
+ firstName?: string | undefined;
2688
+ lastName?: string | undefined;
2689
+ }, {
2690
+ role: string;
2691
+ userId: string;
2692
+ email?: string | undefined;
2693
+ firstName?: string | undefined;
2694
+ lastName?: string | undefined;
2695
+ }>, "many">>;
2696
+ }, "strip", z.ZodTypeAny, {
2697
+ id: string;
2698
+ status?: string | undefined;
2699
+ source?: unknown;
2700
+ createdAt?: string | undefined;
2701
+ updatedAt?: string | undefined;
2702
+ customFields?: {
2703
+ title: string;
2704
+ id: string;
2705
+ value?: unknown;
2706
+ isPrivate?: boolean | undefined;
2707
+ }[] | undefined;
2708
+ candidateId?: string | null | undefined;
2709
+ jobId?: string | null | undefined;
2710
+ currentInterviewStage?: {
2711
+ title: string;
2712
+ id: string;
2713
+ type?: string | undefined;
2714
+ orderInInterviewPlan?: number | undefined;
2715
+ interviewPlanId?: string | undefined;
2716
+ } | null | undefined;
2717
+ archiveReason?: unknown;
2718
+ hiringTeam?: {
2719
+ role: string;
2720
+ userId: string;
2721
+ email?: string | undefined;
2722
+ firstName?: string | undefined;
2723
+ lastName?: string | undefined;
2724
+ }[] | undefined;
2725
+ }, {
2726
+ id: string;
2727
+ status?: string | undefined;
2728
+ source?: unknown;
2729
+ createdAt?: string | undefined;
2730
+ updatedAt?: string | undefined;
2731
+ customFields?: {
2732
+ title: string;
2733
+ id: string;
2734
+ value?: unknown;
2735
+ isPrivate?: boolean | undefined;
2736
+ }[] | undefined;
2737
+ candidateId?: string | null | undefined;
2738
+ jobId?: string | null | undefined;
2739
+ currentInterviewStage?: {
2740
+ title: string;
2741
+ id: string;
2742
+ type?: string | undefined;
2743
+ orderInInterviewPlan?: number | undefined;
2744
+ interviewPlanId?: string | undefined;
2745
+ } | null | undefined;
2746
+ archiveReason?: unknown;
2747
+ hiringTeam?: {
2748
+ role: string;
2749
+ userId: string;
2750
+ email?: string | undefined;
2751
+ firstName?: string | undefined;
2752
+ lastName?: string | undefined;
2753
+ }[] | undefined;
2754
+ }>, "many">>;
2755
+ next_cursor: z.ZodOptional<z.ZodString>;
2756
+ more_data_available: z.ZodOptional<z.ZodBoolean>;
2757
+ error: z.ZodString;
2758
+ }, "strip", z.ZodTypeAny, {
2759
+ error: string;
2760
+ success: boolean;
2761
+ operation: "list_applications";
2762
+ next_cursor?: string | undefined;
2763
+ more_data_available?: boolean | undefined;
2764
+ applications?: {
2765
+ id: string;
2766
+ status?: string | undefined;
2767
+ source?: unknown;
2768
+ createdAt?: string | undefined;
2769
+ updatedAt?: string | undefined;
2770
+ customFields?: {
2771
+ title: string;
2772
+ id: string;
2773
+ value?: unknown;
2774
+ isPrivate?: boolean | undefined;
2775
+ }[] | undefined;
2776
+ candidateId?: string | null | undefined;
2777
+ jobId?: string | null | undefined;
2778
+ currentInterviewStage?: {
2779
+ title: string;
2780
+ id: string;
2781
+ type?: string | undefined;
2782
+ orderInInterviewPlan?: number | undefined;
2783
+ interviewPlanId?: string | undefined;
2784
+ } | null | undefined;
2785
+ archiveReason?: unknown;
2786
+ hiringTeam?: {
2787
+ role: string;
2788
+ userId: string;
2789
+ email?: string | undefined;
2790
+ firstName?: string | undefined;
2791
+ lastName?: string | undefined;
2792
+ }[] | undefined;
2793
+ }[] | undefined;
2794
+ }, {
2795
+ error: string;
2796
+ success: boolean;
2797
+ operation: "list_applications";
2798
+ next_cursor?: string | undefined;
2799
+ more_data_available?: boolean | undefined;
2800
+ applications?: {
2801
+ id: string;
2802
+ status?: string | undefined;
2803
+ source?: unknown;
2804
+ createdAt?: string | undefined;
2805
+ updatedAt?: string | undefined;
2806
+ customFields?: {
2807
+ title: string;
2808
+ id: string;
2809
+ value?: unknown;
2810
+ isPrivate?: boolean | undefined;
2811
+ }[] | undefined;
2812
+ candidateId?: string | null | undefined;
2813
+ jobId?: string | null | undefined;
2814
+ currentInterviewStage?: {
2815
+ title: string;
2816
+ id: string;
2817
+ type?: string | undefined;
2818
+ orderInInterviewPlan?: number | undefined;
2819
+ interviewPlanId?: string | undefined;
2820
+ } | null | undefined;
2821
+ archiveReason?: unknown;
2822
+ hiringTeam?: {
2823
+ role: string;
2824
+ userId: string;
2825
+ email?: string | undefined;
2826
+ firstName?: string | undefined;
2827
+ lastName?: string | undefined;
2828
+ }[] | undefined;
2829
+ }[] | undefined;
2830
+ }>, z.ZodObject<{
2831
+ operation: z.ZodLiteral<"get_application">;
2832
+ success: z.ZodBoolean;
2833
+ application: z.ZodOptional<z.ZodObject<{
2834
+ id: z.ZodString;
2835
+ createdAt: z.ZodOptional<z.ZodString>;
2836
+ updatedAt: z.ZodOptional<z.ZodString>;
2837
+ status: z.ZodOptional<z.ZodString>;
2838
+ candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2839
+ jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2840
+ currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2841
+ id: z.ZodString;
2842
+ title: z.ZodString;
2843
+ type: z.ZodOptional<z.ZodString>;
2844
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
2845
+ interviewPlanId: z.ZodOptional<z.ZodString>;
2846
+ }, "strip", z.ZodTypeAny, {
2847
+ title: string;
2848
+ id: string;
2849
+ type?: string | undefined;
2850
+ orderInInterviewPlan?: number | undefined;
2851
+ interviewPlanId?: string | undefined;
2852
+ }, {
2853
+ title: string;
2854
+ id: string;
2855
+ type?: string | undefined;
2856
+ orderInInterviewPlan?: number | undefined;
2857
+ interviewPlanId?: string | undefined;
2858
+ }>>>;
2859
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
2860
+ archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
2861
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2862
+ id: z.ZodString;
2863
+ title: z.ZodString;
2864
+ value: z.ZodUnknown;
2865
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
2866
+ }, "strip", z.ZodTypeAny, {
2867
+ title: string;
2868
+ id: string;
2869
+ value?: unknown;
2870
+ isPrivate?: boolean | undefined;
2871
+ }, {
2872
+ title: string;
2873
+ id: string;
2874
+ value?: unknown;
2875
+ isPrivate?: boolean | undefined;
2876
+ }>, "many">>;
2877
+ hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{
2878
+ userId: z.ZodString;
2879
+ role: z.ZodString;
2880
+ email: z.ZodOptional<z.ZodString>;
2881
+ firstName: z.ZodOptional<z.ZodString>;
2882
+ lastName: z.ZodOptional<z.ZodString>;
2883
+ }, "strip", z.ZodTypeAny, {
2884
+ role: string;
2885
+ userId: string;
2886
+ email?: string | undefined;
2887
+ firstName?: string | undefined;
2888
+ lastName?: string | undefined;
2889
+ }, {
2890
+ role: string;
2891
+ userId: string;
2892
+ email?: string | undefined;
2893
+ firstName?: string | undefined;
2894
+ lastName?: string | undefined;
2895
+ }>, "many">>;
2896
+ }, "strip", z.ZodTypeAny, {
2897
+ id: string;
2898
+ status?: string | undefined;
2899
+ source?: unknown;
2900
+ createdAt?: string | undefined;
2901
+ updatedAt?: string | undefined;
2902
+ customFields?: {
2903
+ title: string;
2904
+ id: string;
2905
+ value?: unknown;
2906
+ isPrivate?: boolean | undefined;
2907
+ }[] | undefined;
2908
+ candidateId?: string | null | undefined;
2909
+ jobId?: string | null | undefined;
2910
+ currentInterviewStage?: {
2911
+ title: string;
2912
+ id: string;
2913
+ type?: string | undefined;
2914
+ orderInInterviewPlan?: number | undefined;
2915
+ interviewPlanId?: string | undefined;
2916
+ } | null | undefined;
2917
+ archiveReason?: unknown;
2918
+ hiringTeam?: {
2919
+ role: string;
2920
+ userId: string;
2921
+ email?: string | undefined;
2922
+ firstName?: string | undefined;
2923
+ lastName?: string | undefined;
2924
+ }[] | undefined;
2925
+ }, {
2926
+ id: string;
2927
+ status?: string | undefined;
2928
+ source?: unknown;
2929
+ createdAt?: string | undefined;
2930
+ updatedAt?: string | undefined;
2931
+ customFields?: {
2932
+ title: string;
2933
+ id: string;
2934
+ value?: unknown;
2935
+ isPrivate?: boolean | undefined;
2936
+ }[] | undefined;
2937
+ candidateId?: string | null | undefined;
2938
+ jobId?: string | null | undefined;
2939
+ currentInterviewStage?: {
2940
+ title: string;
2941
+ id: string;
2942
+ type?: string | undefined;
2943
+ orderInInterviewPlan?: number | undefined;
2944
+ interviewPlanId?: string | undefined;
2945
+ } | null | undefined;
2946
+ archiveReason?: unknown;
2947
+ hiringTeam?: {
2948
+ role: string;
2949
+ userId: string;
2950
+ email?: string | undefined;
2951
+ firstName?: string | undefined;
2952
+ lastName?: string | undefined;
2953
+ }[] | undefined;
2954
+ }>>;
2955
+ candidate: z.ZodOptional<z.ZodObject<{
2956
+ id: z.ZodString;
2957
+ createdAt: z.ZodOptional<z.ZodString>;
2958
+ updatedAt: z.ZodOptional<z.ZodString>;
2959
+ name: z.ZodString;
2960
+ primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2961
+ value: z.ZodString;
2962
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
2963
+ isPrimary: z.ZodBoolean;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ value: string;
2966
+ type: "Personal" | "Work" | "Other";
2967
+ isPrimary: boolean;
2968
+ }, {
2969
+ value: string;
2970
+ type: "Personal" | "Work" | "Other";
2971
+ isPrimary: boolean;
2972
+ }>>>;
2973
+ primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2974
+ value: z.ZodString;
2975
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
2976
+ isPrimary: z.ZodBoolean;
2977
+ }, "strip", z.ZodTypeAny, {
2978
+ value: string;
2979
+ type: "Personal" | "Work" | "Other";
2980
+ isPrimary: boolean;
2981
+ }, {
2982
+ value: string;
2983
+ type: "Personal" | "Work" | "Other";
2984
+ isPrimary: boolean;
2985
+ }>>>;
2986
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2987
+ id: z.ZodString;
2988
+ title: z.ZodString;
2989
+ value: z.ZodUnknown;
2990
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
2991
+ }, "strip", z.ZodTypeAny, {
2992
+ title: string;
2993
+ id: string;
2994
+ value?: unknown;
2995
+ isPrivate?: boolean | undefined;
2996
+ }, {
2997
+ title: string;
2998
+ id: string;
2999
+ value?: unknown;
3000
+ isPrivate?: boolean | undefined;
3001
+ }>, "many">>;
3002
+ }, "strip", z.ZodTypeAny, {
3003
+ name: string;
3004
+ id: string;
3005
+ createdAt?: string | undefined;
3006
+ updatedAt?: string | undefined;
3007
+ primaryEmailAddress?: {
3008
+ value: string;
3009
+ type: "Personal" | "Work" | "Other";
3010
+ isPrimary: boolean;
3011
+ } | null | undefined;
3012
+ primaryPhoneNumber?: {
3013
+ value: string;
3014
+ type: "Personal" | "Work" | "Other";
3015
+ isPrimary: boolean;
3016
+ } | null | undefined;
3017
+ customFields?: {
3018
+ title: string;
3019
+ id: string;
3020
+ value?: unknown;
3021
+ isPrivate?: boolean | undefined;
3022
+ }[] | undefined;
3023
+ }, {
3024
+ name: string;
3025
+ id: string;
3026
+ createdAt?: string | undefined;
3027
+ updatedAt?: string | undefined;
3028
+ primaryEmailAddress?: {
3029
+ value: string;
3030
+ type: "Personal" | "Work" | "Other";
3031
+ isPrimary: boolean;
3032
+ } | null | undefined;
3033
+ primaryPhoneNumber?: {
3034
+ value: string;
3035
+ type: "Personal" | "Work" | "Other";
3036
+ isPrimary: boolean;
3037
+ } | null | undefined;
3038
+ customFields?: {
3039
+ title: string;
3040
+ id: string;
3041
+ value?: unknown;
3042
+ isPrivate?: boolean | undefined;
3043
+ }[] | undefined;
3044
+ }>>;
3045
+ job: z.ZodOptional<z.ZodObject<{
3046
+ id: z.ZodString;
3047
+ title: z.ZodString;
3048
+ status: z.ZodOptional<z.ZodString>;
3049
+ departmentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3050
+ teamId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3051
+ locationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3052
+ locationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3053
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3054
+ id: z.ZodString;
3055
+ title: z.ZodString;
3056
+ value: z.ZodUnknown;
3057
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ title: string;
3060
+ id: string;
3061
+ value?: unknown;
3062
+ isPrivate?: boolean | undefined;
3063
+ }, {
3064
+ title: string;
3065
+ id: string;
3066
+ value?: unknown;
3067
+ isPrivate?: boolean | undefined;
3068
+ }>, "many">>;
3069
+ openedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3070
+ closedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3071
+ createdAt: z.ZodOptional<z.ZodString>;
3072
+ updatedAt: z.ZodOptional<z.ZodString>;
3073
+ }, "strip", z.ZodTypeAny, {
3074
+ title: string;
3075
+ id: string;
3076
+ status?: string | undefined;
3077
+ locationId?: string | null | undefined;
3078
+ createdAt?: string | undefined;
3079
+ updatedAt?: string | undefined;
3080
+ teamId?: string | null | undefined;
3081
+ customFields?: {
3082
+ title: string;
3083
+ id: string;
3084
+ value?: unknown;
3085
+ isPrivate?: boolean | undefined;
3086
+ }[] | undefined;
3087
+ departmentId?: string | null | undefined;
3088
+ locationIds?: string[] | undefined;
3089
+ openedAt?: string | null | undefined;
3090
+ closedAt?: string | null | undefined;
3091
+ }, {
3092
+ title: string;
3093
+ id: string;
3094
+ status?: string | undefined;
3095
+ locationId?: string | null | undefined;
3096
+ createdAt?: string | undefined;
3097
+ updatedAt?: string | undefined;
3098
+ teamId?: string | null | undefined;
3099
+ customFields?: {
3100
+ title: string;
3101
+ id: string;
3102
+ value?: unknown;
3103
+ isPrivate?: boolean | undefined;
3104
+ }[] | undefined;
3105
+ departmentId?: string | null | undefined;
3106
+ locationIds?: string[] | undefined;
3107
+ openedAt?: string | null | undefined;
3108
+ closedAt?: string | null | undefined;
3109
+ }>>;
3110
+ error: z.ZodString;
3111
+ }, "strip", z.ZodTypeAny, {
3112
+ error: string;
3113
+ success: boolean;
3114
+ operation: "get_application";
3115
+ candidate?: {
3116
+ name: string;
3117
+ id: string;
3118
+ createdAt?: string | undefined;
3119
+ updatedAt?: string | undefined;
3120
+ primaryEmailAddress?: {
3121
+ value: string;
3122
+ type: "Personal" | "Work" | "Other";
3123
+ isPrimary: boolean;
3124
+ } | null | undefined;
3125
+ primaryPhoneNumber?: {
3126
+ value: string;
3127
+ type: "Personal" | "Work" | "Other";
3128
+ isPrimary: boolean;
3129
+ } | null | undefined;
3130
+ customFields?: {
3131
+ title: string;
3132
+ id: string;
3133
+ value?: unknown;
3134
+ isPrivate?: boolean | undefined;
3135
+ }[] | undefined;
3136
+ } | undefined;
3137
+ job?: {
3138
+ title: string;
3139
+ id: string;
3140
+ status?: string | undefined;
3141
+ locationId?: string | null | undefined;
3142
+ createdAt?: string | undefined;
3143
+ updatedAt?: string | undefined;
3144
+ teamId?: string | null | undefined;
3145
+ customFields?: {
3146
+ title: string;
3147
+ id: string;
3148
+ value?: unknown;
3149
+ isPrivate?: boolean | undefined;
3150
+ }[] | undefined;
3151
+ departmentId?: string | null | undefined;
3152
+ locationIds?: string[] | undefined;
3153
+ openedAt?: string | null | undefined;
3154
+ closedAt?: string | null | undefined;
3155
+ } | undefined;
3156
+ application?: {
3157
+ id: string;
3158
+ status?: string | undefined;
3159
+ source?: unknown;
3160
+ createdAt?: string | undefined;
3161
+ updatedAt?: string | undefined;
3162
+ customFields?: {
3163
+ title: string;
3164
+ id: string;
3165
+ value?: unknown;
3166
+ isPrivate?: boolean | undefined;
3167
+ }[] | undefined;
3168
+ candidateId?: string | null | undefined;
3169
+ jobId?: string | null | undefined;
3170
+ currentInterviewStage?: {
3171
+ title: string;
3172
+ id: string;
3173
+ type?: string | undefined;
3174
+ orderInInterviewPlan?: number | undefined;
3175
+ interviewPlanId?: string | undefined;
3176
+ } | null | undefined;
3177
+ archiveReason?: unknown;
3178
+ hiringTeam?: {
3179
+ role: string;
3180
+ userId: string;
3181
+ email?: string | undefined;
3182
+ firstName?: string | undefined;
3183
+ lastName?: string | undefined;
3184
+ }[] | undefined;
3185
+ } | undefined;
3186
+ }, {
3187
+ error: string;
3188
+ success: boolean;
3189
+ operation: "get_application";
3190
+ candidate?: {
3191
+ name: string;
3192
+ id: string;
3193
+ createdAt?: string | undefined;
3194
+ updatedAt?: string | undefined;
3195
+ primaryEmailAddress?: {
3196
+ value: string;
3197
+ type: "Personal" | "Work" | "Other";
3198
+ isPrimary: boolean;
3199
+ } | null | undefined;
3200
+ primaryPhoneNumber?: {
3201
+ value: string;
3202
+ type: "Personal" | "Work" | "Other";
3203
+ isPrimary: boolean;
3204
+ } | null | undefined;
3205
+ customFields?: {
3206
+ title: string;
3207
+ id: string;
3208
+ value?: unknown;
3209
+ isPrivate?: boolean | undefined;
3210
+ }[] | undefined;
3211
+ } | undefined;
3212
+ job?: {
3213
+ title: string;
3214
+ id: string;
3215
+ status?: string | undefined;
3216
+ locationId?: string | null | undefined;
3217
+ createdAt?: string | undefined;
3218
+ updatedAt?: string | undefined;
3219
+ teamId?: string | null | undefined;
3220
+ customFields?: {
3221
+ title: string;
3222
+ id: string;
3223
+ value?: unknown;
3224
+ isPrivate?: boolean | undefined;
3225
+ }[] | undefined;
3226
+ departmentId?: string | null | undefined;
3227
+ locationIds?: string[] | undefined;
3228
+ openedAt?: string | null | undefined;
3229
+ closedAt?: string | null | undefined;
3230
+ } | undefined;
3231
+ application?: {
3232
+ id: string;
3233
+ status?: string | undefined;
3234
+ source?: unknown;
3235
+ createdAt?: string | undefined;
3236
+ updatedAt?: string | undefined;
3237
+ customFields?: {
3238
+ title: string;
3239
+ id: string;
3240
+ value?: unknown;
3241
+ isPrivate?: boolean | undefined;
3242
+ }[] | undefined;
3243
+ candidateId?: string | null | undefined;
3244
+ jobId?: string | null | undefined;
3245
+ currentInterviewStage?: {
3246
+ title: string;
3247
+ id: string;
3248
+ type?: string | undefined;
3249
+ orderInInterviewPlan?: number | undefined;
3250
+ interviewPlanId?: string | undefined;
3251
+ } | null | undefined;
3252
+ archiveReason?: unknown;
3253
+ hiringTeam?: {
3254
+ role: string;
3255
+ userId: string;
3256
+ email?: string | undefined;
3257
+ firstName?: string | undefined;
3258
+ lastName?: string | undefined;
3259
+ }[] | undefined;
3260
+ } | undefined;
3261
+ }>, z.ZodObject<{
3262
+ operation: z.ZodLiteral<"create_application">;
3263
+ success: z.ZodBoolean;
3264
+ application: z.ZodOptional<z.ZodObject<{
3265
+ id: z.ZodString;
3266
+ createdAt: z.ZodOptional<z.ZodString>;
3267
+ updatedAt: z.ZodOptional<z.ZodString>;
3268
+ status: z.ZodOptional<z.ZodString>;
3269
+ candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3270
+ jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3271
+ currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3272
+ id: z.ZodString;
3273
+ title: z.ZodString;
3274
+ type: z.ZodOptional<z.ZodString>;
3275
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
3276
+ interviewPlanId: z.ZodOptional<z.ZodString>;
3277
+ }, "strip", z.ZodTypeAny, {
3278
+ title: string;
3279
+ id: string;
3280
+ type?: string | undefined;
3281
+ orderInInterviewPlan?: number | undefined;
3282
+ interviewPlanId?: string | undefined;
3283
+ }, {
3284
+ title: string;
3285
+ id: string;
3286
+ type?: string | undefined;
3287
+ orderInInterviewPlan?: number | undefined;
3288
+ interviewPlanId?: string | undefined;
3289
+ }>>>;
3290
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
3291
+ archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
3292
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3293
+ id: z.ZodString;
3294
+ title: z.ZodString;
3295
+ value: z.ZodUnknown;
3296
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
3297
+ }, "strip", z.ZodTypeAny, {
3298
+ title: string;
3299
+ id: string;
3300
+ value?: unknown;
3301
+ isPrivate?: boolean | undefined;
3302
+ }, {
3303
+ title: string;
3304
+ id: string;
3305
+ value?: unknown;
3306
+ isPrivate?: boolean | undefined;
3307
+ }>, "many">>;
3308
+ hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{
3309
+ userId: z.ZodString;
3310
+ role: z.ZodString;
3311
+ email: z.ZodOptional<z.ZodString>;
3312
+ firstName: z.ZodOptional<z.ZodString>;
3313
+ lastName: z.ZodOptional<z.ZodString>;
3314
+ }, "strip", z.ZodTypeAny, {
3315
+ role: string;
3316
+ userId: string;
3317
+ email?: string | undefined;
3318
+ firstName?: string | undefined;
3319
+ lastName?: string | undefined;
3320
+ }, {
3321
+ role: string;
3322
+ userId: string;
3323
+ email?: string | undefined;
3324
+ firstName?: string | undefined;
3325
+ lastName?: string | undefined;
3326
+ }>, "many">>;
3327
+ }, "strip", z.ZodTypeAny, {
3328
+ id: string;
3329
+ status?: string | undefined;
3330
+ source?: unknown;
3331
+ createdAt?: string | undefined;
3332
+ updatedAt?: string | undefined;
3333
+ customFields?: {
3334
+ title: string;
3335
+ id: string;
3336
+ value?: unknown;
3337
+ isPrivate?: boolean | undefined;
3338
+ }[] | undefined;
3339
+ candidateId?: string | null | undefined;
3340
+ jobId?: string | null | undefined;
3341
+ currentInterviewStage?: {
3342
+ title: string;
3343
+ id: string;
3344
+ type?: string | undefined;
3345
+ orderInInterviewPlan?: number | undefined;
3346
+ interviewPlanId?: string | undefined;
3347
+ } | null | undefined;
3348
+ archiveReason?: unknown;
3349
+ hiringTeam?: {
3350
+ role: string;
3351
+ userId: string;
3352
+ email?: string | undefined;
3353
+ firstName?: string | undefined;
3354
+ lastName?: string | undefined;
3355
+ }[] | undefined;
3356
+ }, {
3357
+ id: string;
3358
+ status?: string | undefined;
3359
+ source?: unknown;
3360
+ createdAt?: string | undefined;
3361
+ updatedAt?: string | undefined;
3362
+ customFields?: {
3363
+ title: string;
3364
+ id: string;
3365
+ value?: unknown;
3366
+ isPrivate?: boolean | undefined;
3367
+ }[] | undefined;
3368
+ candidateId?: string | null | undefined;
3369
+ jobId?: string | null | undefined;
3370
+ currentInterviewStage?: {
3371
+ title: string;
3372
+ id: string;
3373
+ type?: string | undefined;
3374
+ orderInInterviewPlan?: number | undefined;
3375
+ interviewPlanId?: string | undefined;
3376
+ } | null | undefined;
3377
+ archiveReason?: unknown;
3378
+ hiringTeam?: {
3379
+ role: string;
3380
+ userId: string;
3381
+ email?: string | undefined;
3382
+ firstName?: string | undefined;
3383
+ lastName?: string | undefined;
3384
+ }[] | undefined;
3385
+ }>>;
3386
+ error: z.ZodString;
3387
+ }, "strip", z.ZodTypeAny, {
3388
+ error: string;
3389
+ success: boolean;
3390
+ operation: "create_application";
3391
+ application?: {
3392
+ id: string;
3393
+ status?: string | undefined;
3394
+ source?: unknown;
3395
+ createdAt?: string | undefined;
3396
+ updatedAt?: string | undefined;
3397
+ customFields?: {
3398
+ title: string;
3399
+ id: string;
3400
+ value?: unknown;
3401
+ isPrivate?: boolean | undefined;
3402
+ }[] | undefined;
3403
+ candidateId?: string | null | undefined;
3404
+ jobId?: string | null | undefined;
3405
+ currentInterviewStage?: {
3406
+ title: string;
3407
+ id: string;
3408
+ type?: string | undefined;
3409
+ orderInInterviewPlan?: number | undefined;
3410
+ interviewPlanId?: string | undefined;
3411
+ } | null | undefined;
3412
+ archiveReason?: unknown;
3413
+ hiringTeam?: {
3414
+ role: string;
3415
+ userId: string;
3416
+ email?: string | undefined;
3417
+ firstName?: string | undefined;
3418
+ lastName?: string | undefined;
3419
+ }[] | undefined;
3420
+ } | undefined;
3421
+ }, {
3422
+ error: string;
3423
+ success: boolean;
3424
+ operation: "create_application";
3425
+ application?: {
3426
+ id: string;
3427
+ status?: string | undefined;
3428
+ source?: unknown;
3429
+ createdAt?: string | undefined;
3430
+ updatedAt?: string | undefined;
3431
+ customFields?: {
3432
+ title: string;
3433
+ id: string;
3434
+ value?: unknown;
3435
+ isPrivate?: boolean | undefined;
3436
+ }[] | undefined;
3437
+ candidateId?: string | null | undefined;
3438
+ jobId?: string | null | undefined;
3439
+ currentInterviewStage?: {
3440
+ title: string;
3441
+ id: string;
3442
+ type?: string | undefined;
3443
+ orderInInterviewPlan?: number | undefined;
3444
+ interviewPlanId?: string | undefined;
3445
+ } | null | undefined;
3446
+ archiveReason?: unknown;
3447
+ hiringTeam?: {
3448
+ role: string;
3449
+ userId: string;
3450
+ email?: string | undefined;
3451
+ firstName?: string | undefined;
3452
+ lastName?: string | undefined;
3453
+ }[] | undefined;
3454
+ } | undefined;
3455
+ }>, z.ZodObject<{
3456
+ operation: z.ZodLiteral<"change_application_stage">;
3457
+ success: z.ZodBoolean;
3458
+ application: z.ZodOptional<z.ZodObject<{
3459
+ id: z.ZodString;
3460
+ createdAt: z.ZodOptional<z.ZodString>;
3461
+ updatedAt: z.ZodOptional<z.ZodString>;
3462
+ status: z.ZodOptional<z.ZodString>;
3463
+ candidateId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3464
+ jobId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3465
+ currentInterviewStage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3466
+ id: z.ZodString;
3467
+ title: z.ZodString;
3468
+ type: z.ZodOptional<z.ZodString>;
3469
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
3470
+ interviewPlanId: z.ZodOptional<z.ZodString>;
3471
+ }, "strip", z.ZodTypeAny, {
3472
+ title: string;
3473
+ id: string;
3474
+ type?: string | undefined;
3475
+ orderInInterviewPlan?: number | undefined;
3476
+ interviewPlanId?: string | undefined;
3477
+ }, {
3478
+ title: string;
3479
+ id: string;
3480
+ type?: string | undefined;
3481
+ orderInInterviewPlan?: number | undefined;
3482
+ interviewPlanId?: string | undefined;
3483
+ }>>>;
3484
+ source: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
3485
+ archiveReason: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
3486
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3487
+ id: z.ZodString;
3488
+ title: z.ZodString;
3489
+ value: z.ZodUnknown;
3490
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ title: string;
3493
+ id: string;
3494
+ value?: unknown;
3495
+ isPrivate?: boolean | undefined;
3496
+ }, {
3497
+ title: string;
3498
+ id: string;
3499
+ value?: unknown;
3500
+ isPrivate?: boolean | undefined;
3501
+ }>, "many">>;
3502
+ hiringTeam: z.ZodOptional<z.ZodArray<z.ZodObject<{
3503
+ userId: z.ZodString;
3504
+ role: z.ZodString;
3505
+ email: z.ZodOptional<z.ZodString>;
3506
+ firstName: z.ZodOptional<z.ZodString>;
3507
+ lastName: z.ZodOptional<z.ZodString>;
3508
+ }, "strip", z.ZodTypeAny, {
3509
+ role: string;
3510
+ userId: string;
3511
+ email?: string | undefined;
3512
+ firstName?: string | undefined;
3513
+ lastName?: string | undefined;
3514
+ }, {
3515
+ role: string;
3516
+ userId: string;
3517
+ email?: string | undefined;
3518
+ firstName?: string | undefined;
3519
+ lastName?: string | undefined;
3520
+ }>, "many">>;
3521
+ }, "strip", z.ZodTypeAny, {
3522
+ id: string;
3523
+ status?: string | undefined;
3524
+ source?: unknown;
3525
+ createdAt?: string | undefined;
3526
+ updatedAt?: string | undefined;
3527
+ customFields?: {
3528
+ title: string;
3529
+ id: string;
3530
+ value?: unknown;
3531
+ isPrivate?: boolean | undefined;
3532
+ }[] | undefined;
3533
+ candidateId?: string | null | undefined;
3534
+ jobId?: string | null | undefined;
3535
+ currentInterviewStage?: {
3536
+ title: string;
3537
+ id: string;
3538
+ type?: string | undefined;
3539
+ orderInInterviewPlan?: number | undefined;
3540
+ interviewPlanId?: string | undefined;
3541
+ } | null | undefined;
3542
+ archiveReason?: unknown;
3543
+ hiringTeam?: {
3544
+ role: string;
3545
+ userId: string;
3546
+ email?: string | undefined;
3547
+ firstName?: string | undefined;
3548
+ lastName?: string | undefined;
3549
+ }[] | undefined;
3550
+ }, {
3551
+ id: string;
3552
+ status?: string | undefined;
3553
+ source?: unknown;
3554
+ createdAt?: string | undefined;
3555
+ updatedAt?: string | undefined;
3556
+ customFields?: {
3557
+ title: string;
3558
+ id: string;
3559
+ value?: unknown;
3560
+ isPrivate?: boolean | undefined;
3561
+ }[] | undefined;
3562
+ candidateId?: string | null | undefined;
3563
+ jobId?: string | null | undefined;
3564
+ currentInterviewStage?: {
3565
+ title: string;
3566
+ id: string;
3567
+ type?: string | undefined;
3568
+ orderInInterviewPlan?: number | undefined;
3569
+ interviewPlanId?: string | undefined;
3570
+ } | null | undefined;
3571
+ archiveReason?: unknown;
3572
+ hiringTeam?: {
3573
+ role: string;
3574
+ userId: string;
3575
+ email?: string | undefined;
3576
+ firstName?: string | undefined;
3577
+ lastName?: string | undefined;
3578
+ }[] | undefined;
3579
+ }>>;
3580
+ error: z.ZodString;
3581
+ }, "strip", z.ZodTypeAny, {
3582
+ error: string;
3583
+ success: boolean;
3584
+ operation: "change_application_stage";
3585
+ application?: {
3586
+ id: string;
3587
+ status?: string | undefined;
3588
+ source?: unknown;
3589
+ createdAt?: string | undefined;
3590
+ updatedAt?: string | undefined;
3591
+ customFields?: {
3592
+ title: string;
3593
+ id: string;
3594
+ value?: unknown;
3595
+ isPrivate?: boolean | undefined;
3596
+ }[] | undefined;
3597
+ candidateId?: string | null | undefined;
3598
+ jobId?: string | null | undefined;
3599
+ currentInterviewStage?: {
3600
+ title: string;
3601
+ id: string;
3602
+ type?: string | undefined;
3603
+ orderInInterviewPlan?: number | undefined;
3604
+ interviewPlanId?: string | undefined;
3605
+ } | null | undefined;
3606
+ archiveReason?: unknown;
3607
+ hiringTeam?: {
3608
+ role: string;
3609
+ userId: string;
3610
+ email?: string | undefined;
3611
+ firstName?: string | undefined;
3612
+ lastName?: string | undefined;
3613
+ }[] | undefined;
3614
+ } | undefined;
3615
+ }, {
3616
+ error: string;
3617
+ success: boolean;
3618
+ operation: "change_application_stage";
3619
+ application?: {
3620
+ id: string;
3621
+ status?: string | undefined;
3622
+ source?: unknown;
3623
+ createdAt?: string | undefined;
3624
+ updatedAt?: string | undefined;
3625
+ customFields?: {
3626
+ title: string;
3627
+ id: string;
3628
+ value?: unknown;
3629
+ isPrivate?: boolean | undefined;
3630
+ }[] | undefined;
3631
+ candidateId?: string | null | undefined;
3632
+ jobId?: string | null | undefined;
3633
+ currentInterviewStage?: {
3634
+ title: string;
3635
+ id: string;
3636
+ type?: string | undefined;
3637
+ orderInInterviewPlan?: number | undefined;
3638
+ interviewPlanId?: string | undefined;
3639
+ } | null | undefined;
3640
+ archiveReason?: unknown;
3641
+ hiringTeam?: {
3642
+ role: string;
3643
+ userId: string;
3644
+ email?: string | undefined;
3645
+ firstName?: string | undefined;
3646
+ lastName?: string | undefined;
3647
+ }[] | undefined;
3648
+ } | undefined;
3649
+ }>, z.ZodObject<{
3650
+ operation: z.ZodLiteral<"update_candidate">;
3651
+ success: z.ZodBoolean;
3652
+ candidate: z.ZodOptional<z.ZodObject<{
3653
+ id: z.ZodString;
3654
+ createdAt: z.ZodOptional<z.ZodString>;
3655
+ updatedAt: z.ZodOptional<z.ZodString>;
3656
+ name: z.ZodString;
3657
+ primaryEmailAddress: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3658
+ value: z.ZodString;
3659
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
3660
+ isPrimary: z.ZodBoolean;
3661
+ }, "strip", z.ZodTypeAny, {
3662
+ value: string;
3663
+ type: "Personal" | "Work" | "Other";
3664
+ isPrimary: boolean;
3665
+ }, {
3666
+ value: string;
3667
+ type: "Personal" | "Work" | "Other";
3668
+ isPrimary: boolean;
3669
+ }>>>;
3670
+ primaryPhoneNumber: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3671
+ value: z.ZodString;
3672
+ type: z.ZodEnum<["Personal", "Work", "Other"]>;
3673
+ isPrimary: z.ZodBoolean;
3674
+ }, "strip", z.ZodTypeAny, {
3675
+ value: string;
3676
+ type: "Personal" | "Work" | "Other";
3677
+ isPrimary: boolean;
3678
+ }, {
3679
+ value: string;
3680
+ type: "Personal" | "Work" | "Other";
3681
+ isPrimary: boolean;
3682
+ }>>>;
3683
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3684
+ id: z.ZodString;
3685
+ title: z.ZodString;
3686
+ value: z.ZodUnknown;
3687
+ isPrivate: z.ZodOptional<z.ZodBoolean>;
3688
+ }, "strip", z.ZodTypeAny, {
3689
+ title: string;
3690
+ id: string;
3691
+ value?: unknown;
3692
+ isPrivate?: boolean | undefined;
3693
+ }, {
3694
+ title: string;
3695
+ id: string;
3696
+ value?: unknown;
3697
+ isPrivate?: boolean | undefined;
3698
+ }>, "many">>;
3699
+ }, "strip", z.ZodTypeAny, {
3700
+ name: string;
3701
+ id: string;
3702
+ createdAt?: string | undefined;
3703
+ updatedAt?: string | undefined;
3704
+ primaryEmailAddress?: {
3705
+ value: string;
3706
+ type: "Personal" | "Work" | "Other";
3707
+ isPrimary: boolean;
3708
+ } | null | undefined;
3709
+ primaryPhoneNumber?: {
3710
+ value: string;
3711
+ type: "Personal" | "Work" | "Other";
3712
+ isPrimary: boolean;
3713
+ } | null | undefined;
3714
+ customFields?: {
3715
+ title: string;
3716
+ id: string;
3717
+ value?: unknown;
3718
+ isPrivate?: boolean | undefined;
3719
+ }[] | undefined;
3720
+ }, {
3721
+ name: string;
3722
+ id: string;
3723
+ createdAt?: string | undefined;
3724
+ updatedAt?: string | undefined;
3725
+ primaryEmailAddress?: {
3726
+ value: string;
3727
+ type: "Personal" | "Work" | "Other";
3728
+ isPrimary: boolean;
3729
+ } | null | undefined;
3730
+ primaryPhoneNumber?: {
3731
+ value: string;
3732
+ type: "Personal" | "Work" | "Other";
3733
+ isPrimary: boolean;
3734
+ } | null | undefined;
3735
+ customFields?: {
3736
+ title: string;
3737
+ id: string;
3738
+ value?: unknown;
3739
+ isPrivate?: boolean | undefined;
3740
+ }[] | undefined;
3741
+ }>>;
3742
+ error: z.ZodString;
3743
+ }, "strip", z.ZodTypeAny, {
3744
+ error: string;
3745
+ success: boolean;
3746
+ operation: "update_candidate";
3747
+ candidate?: {
3748
+ name: string;
3749
+ id: string;
3750
+ createdAt?: string | undefined;
3751
+ updatedAt?: string | undefined;
3752
+ primaryEmailAddress?: {
3753
+ value: string;
3754
+ type: "Personal" | "Work" | "Other";
3755
+ isPrimary: boolean;
3756
+ } | null | undefined;
3757
+ primaryPhoneNumber?: {
3758
+ value: string;
3759
+ type: "Personal" | "Work" | "Other";
3760
+ isPrimary: boolean;
3761
+ } | null | undefined;
3762
+ customFields?: {
3763
+ title: string;
3764
+ id: string;
3765
+ value?: unknown;
3766
+ isPrivate?: boolean | undefined;
3767
+ }[] | undefined;
3768
+ } | undefined;
3769
+ }, {
3770
+ error: string;
3771
+ success: boolean;
3772
+ operation: "update_candidate";
3773
+ candidate?: {
3774
+ name: string;
3775
+ id: string;
3776
+ createdAt?: string | undefined;
3777
+ updatedAt?: string | undefined;
3778
+ primaryEmailAddress?: {
3779
+ value: string;
3780
+ type: "Personal" | "Work" | "Other";
3781
+ isPrimary: boolean;
3782
+ } | null | undefined;
3783
+ primaryPhoneNumber?: {
3784
+ value: string;
3785
+ type: "Personal" | "Work" | "Other";
3786
+ isPrimary: boolean;
3787
+ } | null | undefined;
3788
+ customFields?: {
3789
+ title: string;
3790
+ id: string;
3791
+ value?: unknown;
3792
+ isPrivate?: boolean | undefined;
3793
+ }[] | undefined;
3794
+ } | undefined;
3795
+ }>, z.ZodObject<{
3796
+ operation: z.ZodLiteral<"create_note">;
3797
+ success: z.ZodBoolean;
3798
+ note: z.ZodOptional<z.ZodObject<{
3799
+ id: z.ZodString;
3800
+ createdAt: z.ZodOptional<z.ZodString>;
3801
+ content: z.ZodString;
3802
+ author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3803
+ id: z.ZodString;
3804
+ firstName: z.ZodOptional<z.ZodString>;
3805
+ lastName: z.ZodOptional<z.ZodString>;
3806
+ email: z.ZodOptional<z.ZodString>;
3807
+ }, "strip", z.ZodTypeAny, {
3808
+ id: string;
3809
+ email?: string | undefined;
3810
+ firstName?: string | undefined;
3811
+ lastName?: string | undefined;
3812
+ }, {
3813
+ id: string;
3814
+ email?: string | undefined;
3815
+ firstName?: string | undefined;
3816
+ lastName?: string | undefined;
3817
+ }>>>;
3818
+ }, "strip", z.ZodTypeAny, {
3819
+ content: string;
3820
+ id: string;
3821
+ author?: {
3822
+ id: string;
3823
+ email?: string | undefined;
3824
+ firstName?: string | undefined;
3825
+ lastName?: string | undefined;
3826
+ } | null | undefined;
3827
+ createdAt?: string | undefined;
3828
+ }, {
3829
+ content: string;
3830
+ id: string;
3831
+ author?: {
3832
+ id: string;
3833
+ email?: string | undefined;
3834
+ firstName?: string | undefined;
3835
+ lastName?: string | undefined;
3836
+ } | null | undefined;
3837
+ createdAt?: string | undefined;
3838
+ }>>;
3839
+ error: z.ZodString;
3840
+ }, "strip", z.ZodTypeAny, {
3841
+ error: string;
3842
+ success: boolean;
3843
+ operation: "create_note";
3844
+ note?: {
3845
+ content: string;
3846
+ id: string;
3847
+ author?: {
3848
+ id: string;
3849
+ email?: string | undefined;
3850
+ firstName?: string | undefined;
3851
+ lastName?: string | undefined;
3852
+ } | null | undefined;
3853
+ createdAt?: string | undefined;
3854
+ } | undefined;
3855
+ }, {
3856
+ error: string;
3857
+ success: boolean;
3858
+ operation: "create_note";
3859
+ note?: {
3860
+ content: string;
3861
+ id: string;
3862
+ author?: {
3863
+ id: string;
3864
+ email?: string | undefined;
3865
+ firstName?: string | undefined;
3866
+ lastName?: string | undefined;
3867
+ } | null | undefined;
3868
+ createdAt?: string | undefined;
3869
+ } | undefined;
3870
+ }>, z.ZodObject<{
3871
+ operation: z.ZodLiteral<"list_notes">;
3872
+ success: z.ZodBoolean;
3873
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3874
+ id: z.ZodString;
3875
+ createdAt: z.ZodOptional<z.ZodString>;
3876
+ content: z.ZodString;
3877
+ author: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3878
+ id: z.ZodString;
3879
+ firstName: z.ZodOptional<z.ZodString>;
3880
+ lastName: z.ZodOptional<z.ZodString>;
3881
+ email: z.ZodOptional<z.ZodString>;
3882
+ }, "strip", z.ZodTypeAny, {
3883
+ id: string;
3884
+ email?: string | undefined;
3885
+ firstName?: string | undefined;
3886
+ lastName?: string | undefined;
3887
+ }, {
3888
+ id: string;
3889
+ email?: string | undefined;
3890
+ firstName?: string | undefined;
3891
+ lastName?: string | undefined;
3892
+ }>>>;
3893
+ }, "strip", z.ZodTypeAny, {
3894
+ content: string;
3895
+ id: string;
3896
+ author?: {
3897
+ id: string;
3898
+ email?: string | undefined;
3899
+ firstName?: string | undefined;
3900
+ lastName?: string | undefined;
3901
+ } | null | undefined;
3902
+ createdAt?: string | undefined;
3903
+ }, {
3904
+ content: string;
3905
+ id: string;
3906
+ author?: {
3907
+ id: string;
3908
+ email?: string | undefined;
3909
+ firstName?: string | undefined;
3910
+ lastName?: string | undefined;
3911
+ } | null | undefined;
3912
+ createdAt?: string | undefined;
3913
+ }>, "many">>;
3914
+ error: z.ZodString;
3915
+ }, "strip", z.ZodTypeAny, {
3916
+ error: string;
3917
+ success: boolean;
3918
+ operation: "list_notes";
3919
+ notes?: {
3920
+ content: string;
3921
+ id: string;
3922
+ author?: {
3923
+ id: string;
3924
+ email?: string | undefined;
3925
+ firstName?: string | undefined;
3926
+ lastName?: string | undefined;
3927
+ } | null | undefined;
3928
+ createdAt?: string | undefined;
3929
+ }[] | undefined;
3930
+ }, {
3931
+ error: string;
3932
+ success: boolean;
3933
+ operation: "list_notes";
3934
+ notes?: {
3935
+ content: string;
3936
+ id: string;
3937
+ author?: {
3938
+ id: string;
3939
+ email?: string | undefined;
3940
+ firstName?: string | undefined;
3941
+ lastName?: string | undefined;
3942
+ } | null | undefined;
3943
+ createdAt?: string | undefined;
3944
+ }[] | undefined;
3945
+ }>, z.ZodObject<{
3946
+ operation: z.ZodLiteral<"list_sources">;
3947
+ success: z.ZodBoolean;
3948
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
3949
+ id: z.ZodString;
3950
+ title: z.ZodString;
3951
+ isArchived: z.ZodOptional<z.ZodBoolean>;
3952
+ }, "strip", z.ZodTypeAny, {
3953
+ title: string;
3954
+ id: string;
3955
+ isArchived?: boolean | undefined;
3956
+ }, {
3957
+ title: string;
3958
+ id: string;
3959
+ isArchived?: boolean | undefined;
3960
+ }>, "many">>;
3961
+ error: z.ZodString;
3962
+ }, "strip", z.ZodTypeAny, {
3963
+ error: string;
3964
+ success: boolean;
3965
+ operation: "list_sources";
3966
+ sources?: {
3967
+ title: string;
3968
+ id: string;
3969
+ isArchived?: boolean | undefined;
3970
+ }[] | undefined;
3971
+ }, {
3972
+ error: string;
3973
+ success: boolean;
3974
+ operation: "list_sources";
3975
+ sources?: {
3976
+ title: string;
3977
+ id: string;
3978
+ isArchived?: boolean | undefined;
3979
+ }[] | undefined;
3980
+ }>, z.ZodObject<{
3981
+ operation: z.ZodLiteral<"list_interview_stages">;
3982
+ success: z.ZodBoolean;
3983
+ interview_stages: z.ZodOptional<z.ZodArray<z.ZodObject<{
3984
+ id: z.ZodString;
3985
+ title: z.ZodString;
3986
+ type: z.ZodOptional<z.ZodString>;
3987
+ orderInInterviewPlan: z.ZodOptional<z.ZodNumber>;
3988
+ interviewPlanId: z.ZodOptional<z.ZodString>;
3989
+ }, "strip", z.ZodTypeAny, {
3990
+ title: string;
3991
+ id: string;
3992
+ type?: string | undefined;
3993
+ orderInInterviewPlan?: number | undefined;
3994
+ interviewPlanId?: string | undefined;
3995
+ }, {
3996
+ title: string;
3997
+ id: string;
3998
+ type?: string | undefined;
3999
+ orderInInterviewPlan?: number | undefined;
4000
+ interviewPlanId?: string | undefined;
4001
+ }>, "many">>;
4002
+ error: z.ZodString;
4003
+ }, "strip", z.ZodTypeAny, {
4004
+ error: string;
4005
+ success: boolean;
4006
+ operation: "list_interview_stages";
4007
+ interview_stages?: {
4008
+ title: string;
4009
+ id: string;
4010
+ type?: string | undefined;
4011
+ orderInInterviewPlan?: number | undefined;
4012
+ interviewPlanId?: string | undefined;
4013
+ }[] | undefined;
4014
+ }, {
4015
+ error: string;
4016
+ success: boolean;
4017
+ operation: "list_interview_stages";
4018
+ interview_stages?: {
4019
+ title: string;
4020
+ id: string;
4021
+ type?: string | undefined;
4022
+ orderInInterviewPlan?: number | undefined;
4023
+ interviewPlanId?: string | undefined;
4024
+ }[] | undefined;
4025
+ }>, z.ZodObject<{
4026
+ operation: z.ZodLiteral<"get_file_url">;
4027
+ success: z.ZodBoolean;
4028
+ file: z.ZodOptional<z.ZodObject<{
4029
+ id: z.ZodOptional<z.ZodString>;
4030
+ name: z.ZodOptional<z.ZodString>;
4031
+ url: z.ZodString;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ url: string;
4034
+ name?: string | undefined;
4035
+ id?: string | undefined;
4036
+ }, {
4037
+ url: string;
4038
+ name?: string | undefined;
4039
+ id?: string | undefined;
4040
+ }>>;
4041
+ error: z.ZodString;
4042
+ }, "strip", z.ZodTypeAny, {
4043
+ error: string;
4044
+ success: boolean;
4045
+ operation: "get_file_url";
4046
+ file?: {
4047
+ url: string;
4048
+ name?: string | undefined;
4049
+ id?: string | undefined;
4050
+ } | undefined;
4051
+ }, {
4052
+ error: string;
4053
+ success: boolean;
4054
+ operation: "get_file_url";
4055
+ file?: {
4056
+ url: string;
4057
+ name?: string | undefined;
4058
+ id?: string | undefined;
4059
+ } | undefined;
4060
+ }>, z.ZodObject<{
4061
+ operation: z.ZodLiteral<"list_projects">;
4062
+ success: z.ZodBoolean;
4063
+ projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
4064
+ id: z.ZodString;
4065
+ title: z.ZodString;
4066
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4067
+ }, "strip", z.ZodTypeAny, {
4068
+ title: string;
4069
+ id: string;
4070
+ isArchived?: boolean | undefined;
4071
+ }, {
4072
+ title: string;
4073
+ id: string;
4074
+ isArchived?: boolean | undefined;
4075
+ }>, "many">>;
4076
+ error: z.ZodString;
4077
+ }, "strip", z.ZodTypeAny, {
4078
+ error: string;
4079
+ success: boolean;
4080
+ operation: "list_projects";
4081
+ projects?: {
4082
+ title: string;
4083
+ id: string;
4084
+ isArchived?: boolean | undefined;
4085
+ }[] | undefined;
4086
+ }, {
4087
+ error: string;
4088
+ success: boolean;
4089
+ operation: "list_projects";
4090
+ projects?: {
4091
+ title: string;
4092
+ id: string;
4093
+ isArchived?: boolean | undefined;
4094
+ }[] | undefined;
4095
+ }>, z.ZodObject<{
4096
+ operation: z.ZodLiteral<"get_project">;
4097
+ success: z.ZodBoolean;
4098
+ project: z.ZodOptional<z.ZodObject<{
4099
+ id: z.ZodString;
4100
+ title: z.ZodString;
4101
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ title: string;
4104
+ id: string;
4105
+ isArchived?: boolean | undefined;
4106
+ }, {
4107
+ title: string;
4108
+ id: string;
4109
+ isArchived?: boolean | undefined;
4110
+ }>>;
4111
+ error: z.ZodString;
4112
+ }, "strip", z.ZodTypeAny, {
4113
+ error: string;
4114
+ success: boolean;
4115
+ operation: "get_project";
4116
+ project?: {
4117
+ title: string;
4118
+ id: string;
4119
+ isArchived?: boolean | undefined;
4120
+ } | undefined;
4121
+ }, {
4122
+ error: string;
4123
+ success: boolean;
4124
+ operation: "get_project";
4125
+ project?: {
4126
+ title: string;
4127
+ id: string;
4128
+ isArchived?: boolean | undefined;
4129
+ } | undefined;
4130
+ }>, z.ZodObject<{
4131
+ operation: z.ZodLiteral<"list_candidate_projects">;
4132
+ success: z.ZodBoolean;
4133
+ projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
4134
+ id: z.ZodString;
4135
+ title: z.ZodString;
4136
+ isArchived: z.ZodOptional<z.ZodBoolean>;
4137
+ }, "strip", z.ZodTypeAny, {
4138
+ title: string;
4139
+ id: string;
4140
+ isArchived?: boolean | undefined;
4141
+ }, {
4142
+ title: string;
4143
+ id: string;
4144
+ isArchived?: boolean | undefined;
4145
+ }>, "many">>;
4146
+ error: z.ZodString;
4147
+ }, "strip", z.ZodTypeAny, {
4148
+ error: string;
4149
+ success: boolean;
4150
+ operation: "list_candidate_projects";
4151
+ projects?: {
4152
+ title: string;
4153
+ id: string;
4154
+ isArchived?: boolean | undefined;
4155
+ }[] | undefined;
4156
+ }, {
4157
+ error: string;
4158
+ success: boolean;
4159
+ operation: "list_candidate_projects";
4160
+ projects?: {
4161
+ title: string;
4162
+ id: string;
4163
+ isArchived?: boolean | undefined;
4164
+ }[] | undefined;
4165
+ }>, z.ZodObject<{
4166
+ operation: z.ZodLiteral<"add_candidate_to_project">;
4167
+ success: z.ZodBoolean;
4168
+ error: z.ZodString;
4169
+ }, "strip", z.ZodTypeAny, {
4170
+ error: string;
4171
+ success: boolean;
4172
+ operation: "add_candidate_to_project";
4173
+ }, {
4174
+ error: string;
4175
+ success: boolean;
4176
+ operation: "add_candidate_to_project";
4177
+ }>, z.ZodObject<{
4178
+ operation: z.ZodLiteral<"remove_candidate_from_project">;
4179
+ success: z.ZodBoolean;
4180
+ error: z.ZodString;
4181
+ }, "strip", z.ZodTypeAny, {
4182
+ error: string;
4183
+ success: boolean;
4184
+ operation: "remove_candidate_from_project";
4185
+ }, {
4186
+ error: string;
4187
+ success: boolean;
4188
+ operation: "remove_candidate_from_project";
4189
+ }>]>;
4190
+ export type AshbyParamsInput = z.input<typeof AshbyParamsSchema>;
4191
+ export type AshbyParams = z.output<typeof AshbyParamsSchema>;
4192
+ export type AshbyResult = z.output<typeof AshbyResultSchema>;
4193
+ export type AshbyCandidate = z.output<typeof AshbyCandidateSchema>;
4194
+ export type AshbyEmail = z.output<typeof AshbyEmailSchema>;
4195
+ export type AshbyPhone = z.output<typeof AshbyPhoneSchema>;
4196
+ export type AshbyCustomField = z.output<typeof AshbyCustomFieldSchema>;
4197
+ export type AshbyCandidateListItem = z.output<typeof AshbyCandidateListItemSchema>;
4198
+ export type AshbySocialLink = z.output<typeof AshbySocialLinkSchema>;
4199
+ export type AshbyTag = z.output<typeof AshbyTagSchema>;
4200
+ export type AshbyFileHandle = z.output<typeof AshbyFileHandleSchema>;
4201
+ export type AshbySelectableValue = z.output<typeof AshbySelectableValueSchema>;
4202
+ export type AshbyCustomFieldDefinition = z.output<typeof AshbyCustomFieldDefinitionSchema>;
4203
+ export type AshbyJob = z.output<typeof AshbyJobSchema>;
4204
+ export type AshbyApplication = z.output<typeof AshbyApplicationSchema>;
4205
+ export type AshbyInterviewStage = z.output<typeof AshbyInterviewStageSchema>;
4206
+ export type AshbyNote = z.output<typeof AshbyNoteSchema>;
4207
+ export type AshbySource = z.output<typeof AshbySourceSchema>;
4208
+ export type AshbyFileInfo = z.output<typeof AshbyFileInfoSchema>;
1786
4209
  export type AshbyListCandidatesParams = Extract<AshbyParams, {
1787
4210
  operation: 'list_candidates';
1788
4211
  }>;
@@ -1807,4 +4230,56 @@ export type AshbyCreateTagParams = Extract<AshbyParams, {
1807
4230
  export type AshbyListCustomFieldsParams = Extract<AshbyParams, {
1808
4231
  operation: 'list_custom_fields';
1809
4232
  }>;
4233
+ export type AshbyListJobsParams = Extract<AshbyParams, {
4234
+ operation: 'list_jobs';
4235
+ }>;
4236
+ export type AshbyGetJobParams = Extract<AshbyParams, {
4237
+ operation: 'get_job';
4238
+ }>;
4239
+ export type AshbyListApplicationsParams = Extract<AshbyParams, {
4240
+ operation: 'list_applications';
4241
+ }>;
4242
+ export type AshbyGetApplicationParams = Extract<AshbyParams, {
4243
+ operation: 'get_application';
4244
+ }>;
4245
+ export type AshbyCreateApplicationParams = Extract<AshbyParams, {
4246
+ operation: 'create_application';
4247
+ }>;
4248
+ export type AshbyChangeApplicationStageParams = Extract<AshbyParams, {
4249
+ operation: 'change_application_stage';
4250
+ }>;
4251
+ export type AshbyUpdateCandidateParams = Extract<AshbyParams, {
4252
+ operation: 'update_candidate';
4253
+ }>;
4254
+ export type AshbyCreateNoteParams = Extract<AshbyParams, {
4255
+ operation: 'create_note';
4256
+ }>;
4257
+ export type AshbyListNotesParams = Extract<AshbyParams, {
4258
+ operation: 'list_notes';
4259
+ }>;
4260
+ export type AshbyListSourcesParams = Extract<AshbyParams, {
4261
+ operation: 'list_sources';
4262
+ }>;
4263
+ export type AshbyListInterviewStagesParams = Extract<AshbyParams, {
4264
+ operation: 'list_interview_stages';
4265
+ }>;
4266
+ export type AshbyGetFileUrlParams = Extract<AshbyParams, {
4267
+ operation: 'get_file_url';
4268
+ }>;
4269
+ export type AshbyListProjectsParams = Extract<AshbyParams, {
4270
+ operation: 'list_projects';
4271
+ }>;
4272
+ export type AshbyGetProjectParams = Extract<AshbyParams, {
4273
+ operation: 'get_project';
4274
+ }>;
4275
+ export type AshbyListCandidateProjectsParams = Extract<AshbyParams, {
4276
+ operation: 'list_candidate_projects';
4277
+ }>;
4278
+ export type AshbyAddCandidateToProjectParams = Extract<AshbyParams, {
4279
+ operation: 'add_candidate_to_project';
4280
+ }>;
4281
+ export type AshbyRemoveCandidateFromProjectParams = Extract<AshbyParams, {
4282
+ operation: 'remove_candidate_from_project';
4283
+ }>;
4284
+ export type AshbyProject = z.output<typeof AshbyProjectSchema>;
1810
4285
  //# sourceMappingURL=ashby.schema.d.ts.map