@oxide/turnstile.ts 0.6.6 → 0.7.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Api-DUOjHzpm.d.cts → Api-Z7zZcVks.d.cts} +146 -34
- package/dist/{Api-DUOjHzpm.d.ts → Api-Z7zZcVks.d.ts} +146 -34
- package/dist/Api.cjs +87 -0
- package/dist/Api.d.cts +1 -1
- package/dist/Api.d.ts +1 -1
- package/dist/Api.js +87 -0
- package/dist/retry.cjs +87 -0
- package/dist/retry.d.cts +1 -1
- package/dist/retry.d.ts +1 -1
- package/dist/retry.js +87 -0
- package/dist/validate.cjs +197 -41
- package/dist/validate.d.cts +1444 -663
- package/dist/validate.d.ts +1444 -663
- package/dist/validate.js +181 -41
- package/package.json +1 -1
- package/src/Api.ts +201 -32
- package/src/util.ts +1 -1
- package/src/validate.ts +196 -47
|
@@ -76,6 +76,7 @@ type DocumentParent = {
|
|
|
76
76
|
type TypedUuidForDepartmentId = string;
|
|
77
77
|
type TypedUuidForRoleId = string;
|
|
78
78
|
type TypedUuidForListingId = string;
|
|
79
|
+
type TypedUuidForPoolId = string;
|
|
79
80
|
type TypedUuidForReviewerId = string;
|
|
80
81
|
type TypedUuidForReviewId = string;
|
|
81
82
|
type TypedUuidForInterviewerId = string;
|
|
@@ -87,7 +88,7 @@ type TypedUuidForAccessGroupId = string;
|
|
|
87
88
|
type TypedUuidForMapperId = string;
|
|
88
89
|
type TypedUuidForOAuthClientId = string;
|
|
89
90
|
type TypedUuidForMagicLinkId = string;
|
|
90
|
-
type TurnstilePermission = 'CreateNotificationsAll' | 'GetNotificationsAll' | 'ScheduleNotification' | 'SendNotification' | 'GetApplicantsAssigned' | 'GetApplicantsAll' | 'GetApplicantSelf' | 'CreateApplicantsAssigned' | 'CreateApplicantsAll' | 'CreateApplicantSelf' | 'ManageApplicantsAssigned' | 'ManageApplicantsAll' | 'ManageApplicantSelf' | 'GetApplicationsAssigned' | 'GetApplicationsAll' | 'CreateApplicationAssigned' | 'CreateApplicationSelf' | 'SubmitApplicationsAssigned' | 'WithdrawApplicationsAssigned' | 'ManageApplicationsAssigned' | 'ManageApplicationsAll' | 'GetDocumentsAssigned' | 'GetDocumentsAll' | 'CreateDocument' | 'ManageDocumentsAssigned' | 'ManageDocumentsAll' | 'AttachDocumentsAssigned' | 'AttachDocumentsAll' | 'GetDepartmentsAssigned' | 'GetDepartmentsAll' | 'CreateDepartment' | 'GetRolesAssigned' | 'GetRolesAll' | 'CreateRole' | 'GetListingsAssigned' | 'GetListingsAll' | 'CreateListing' | 'ManageListingsAll' | 'GetReviewersAssigned' | 'GetReviewersAll' | 'GetReviewerSelf' | 'CreateReviewersAssigned' | 'CreateReviewersAll' | 'CreateReviewerSelf' | 'GetReviewsAssigned' | 'GetReviewsAll' | 'CreateReview' | 'ManageReviewsAssigned' | 'ManageReviewsAll' | 'GetReviewAssignmentsAll' | 'CompleteReviewAssignmentSelf' | 'CompleteReviewAssignmentsAll' | 'ManageReviewAssignmentsAll' | 'GetReviewSummariesAll' | 'GetInterviewersAssigned' | 'GetInterviewersAll' | 'CreateInterviewersAssigned' | 'CreateInterviewersAll' | 'CreateInterviewerSelf' | 'ManageInterviewersAssigned' | 'ManageInterviewersAll' | 'GetInterviewsAssigned' | 'GetInterviewsAll' | 'CreateInterview' | 'ManageInterviewsAssigned' | 'ManageInterviewsAll' | 'GetBackgroundChecksAssigned' | 'GetBackgroundChecksAll' | 'CreateBackgroundChecksAll' | 'ManageBackgroundChecksAssigned' | 'ManageBackgroundChecksAll' | 'GetEnvelope' | 'SendEnvelope' | 'GetEmployeesAssigned' | 'GetEmployeesAll' | 'CreateEmployee' | 'ManageEmployeesAssigned' | 'ManageEmployeesAll' | 'GetOnboardingsAll' | 'CreateOnboarding' | 'GetBatchOperationsAssigned' | 'GetBatchOperationsAll' | 'CreateBatchOperation' | 'ManageBatchOperationsAll' | 'CreateApiUser' | 'GetApiUserSelf' | 'GetApiUsersAssigned' | 'GetApiUsersAll' | 'ManageApiUsersAssigned' | 'ManageApiUsersAll' | 'CreateApiKeySelf' | 'CreateApiKeyAssigned' | 'CreateApiKeyAll' | 'GetApiKeysAssigned' | 'GetApiKeysAll' | 'ManageApiKeysAssigned' | 'ManageApiKeysAll' | 'CreateUserApiProviderLinkToken' | 'CreateGroup' | 'GetGroupsJoined' | 'GetGroupsAll' | 'ManageGroupsAssigned' | 'ManageGroupsAll' | 'ManageGroupMembershipsAssigned' | 'ManageGroupMembershipsAll' | 'CreateMapper' | 'GetMappersAll' | 'ManageMappersAssigned' | 'ManageMappersAll' | 'CreateOAuthClient' | 'GetOAuthClientsAssigned' | 'GetOAuthClientsAll' | 'ManageOAuthClientsAssigned' | 'ManageOAuthClientsAll' | 'CreateMagicLinkClient' | 'GetMagicLinkClientsAssigned' | 'GetMagicLinkClientsAll' | 'ManageMagicLinkClientsAssigned' | 'ManageMagicLinkClientsAll' | 'CreateAccessToken' | {
|
|
91
|
+
type TurnstilePermission = 'CreateNotificationsAll' | 'GetNotificationsAll' | 'ScheduleNotification' | 'SendNotification' | 'GetApplicantsAssigned' | 'GetApplicantsAll' | 'GetApplicantSelf' | 'CreateApplicantsAssigned' | 'CreateApplicantsAll' | 'CreateApplicantSelf' | 'ManageApplicantsAssigned' | 'ManageApplicantsAll' | 'ManageApplicantSelf' | 'GetApplicationsAssigned' | 'GetApplicationsAll' | 'CreateApplicationAssigned' | 'CreateApplicationSelf' | 'SubmitApplicationsAssigned' | 'WithdrawApplicationsAssigned' | 'ManageApplicationsAssigned' | 'ManageApplicationsAll' | 'GetDocumentsAssigned' | 'GetDocumentsAll' | 'CreateDocument' | 'ManageDocumentsAssigned' | 'ManageDocumentsAll' | 'AttachDocumentsAssigned' | 'AttachDocumentsAll' | 'GetDepartmentsAssigned' | 'GetDepartmentsAll' | 'CreateDepartment' | 'GetRolesAssigned' | 'GetRolesAll' | 'CreateRole' | 'GetListingsAssigned' | 'GetListingsAll' | 'CreateListing' | 'ManageListingsAll' | 'GetPoolsAssigned' | 'GetPoolsAll' | 'CreatePool' | 'ManagePoolsAll' | 'GetReviewersAssigned' | 'GetReviewersAll' | 'GetReviewerSelf' | 'CreateReviewersAssigned' | 'CreateReviewersAll' | 'CreateReviewerSelf' | 'GetReviewsAssigned' | 'GetReviewsAll' | 'CreateReview' | 'ManageReviewsAssigned' | 'ManageReviewsAll' | 'GetReviewAssignmentsAll' | 'CompleteReviewAssignmentSelf' | 'CompleteReviewAssignmentsAll' | 'ManageReviewAssignmentsAll' | 'GetReviewSummariesAll' | 'GetInterviewersAssigned' | 'GetInterviewersAll' | 'CreateInterviewersAssigned' | 'CreateInterviewersAll' | 'CreateInterviewerSelf' | 'ManageInterviewersAssigned' | 'ManageInterviewersAll' | 'GetInterviewsAssigned' | 'GetInterviewsAll' | 'CreateInterview' | 'ManageInterviewsAssigned' | 'ManageInterviewsAll' | 'GetBackgroundChecksAssigned' | 'GetBackgroundChecksAll' | 'CreateBackgroundChecksAll' | 'ManageBackgroundChecksAssigned' | 'ManageBackgroundChecksAll' | 'GetEnvelope' | 'SendEnvelope' | 'GetEmployeesAssigned' | 'GetEmployeesAll' | 'CreateEmployee' | 'ManageEmployeesAssigned' | 'ManageEmployeesAll' | 'GetOnboardingsAll' | 'CreateOnboarding' | 'GetBatchOperationsAssigned' | 'GetBatchOperationsAll' | 'CreateBatchOperation' | 'ManageBatchOperationsAll' | 'CreateApiUser' | 'GetApiUserSelf' | 'GetApiUsersAssigned' | 'GetApiUsersAll' | 'ManageApiUsersAssigned' | 'ManageApiUsersAll' | 'CreateApiKeySelf' | 'CreateApiKeyAssigned' | 'CreateApiKeyAll' | 'GetApiKeysAssigned' | 'GetApiKeysAll' | 'ManageApiKeysAssigned' | 'ManageApiKeysAll' | 'CreateUserApiProviderLinkToken' | 'CreateGroup' | 'GetGroupsJoined' | 'GetGroupsAll' | 'ManageGroupsAssigned' | 'ManageGroupsAll' | 'ManageGroupMembershipsAssigned' | 'ManageGroupMembershipsAll' | 'CreateMapper' | 'GetMappersAll' | 'ManageMappersAssigned' | 'ManageMappersAll' | 'CreateOAuthClient' | 'GetOAuthClientsAssigned' | 'GetOAuthClientsAll' | 'ManageOAuthClientsAssigned' | 'ManageOAuthClientsAll' | 'CreateMagicLinkClient' | 'GetMagicLinkClientsAssigned' | 'GetMagicLinkClientsAll' | 'ManageMagicLinkClientsAssigned' | 'ManageMagicLinkClientsAll' | 'CreateAccessToken' | {
|
|
91
92
|
'GetApplicant': TypedUuidForApplicantId;
|
|
92
93
|
} | {
|
|
93
94
|
'GetApplicants': TypedUuidForApplicantId[];
|
|
@@ -141,6 +142,10 @@ type TurnstilePermission = 'CreateNotificationsAll' | 'GetNotificationsAll' | 'S
|
|
|
141
142
|
'GetListing': TypedUuidForListingId;
|
|
142
143
|
} | {
|
|
143
144
|
'GetListings': TypedUuidForListingId[];
|
|
145
|
+
} | {
|
|
146
|
+
'GetPool': TypedUuidForPoolId;
|
|
147
|
+
} | {
|
|
148
|
+
'GetPools': TypedUuidForPoolId[];
|
|
144
149
|
} | {
|
|
145
150
|
'GetReviewer': TypedUuidForReviewerId;
|
|
146
151
|
} | {
|
|
@@ -411,6 +416,14 @@ type ApplicationStateRecord = {
|
|
|
411
416
|
'state': ApplicationState;
|
|
412
417
|
'updatedAt': Date;
|
|
413
418
|
};
|
|
419
|
+
type ListingPoolAssociation = 'first' | 'early_positive' | 'positive';
|
|
420
|
+
type PoolAction = {
|
|
421
|
+
'action': 'add';
|
|
422
|
+
'association': ListingPoolAssociation;
|
|
423
|
+
'count': number;
|
|
424
|
+
} | {
|
|
425
|
+
'action': 'triage';
|
|
426
|
+
};
|
|
414
427
|
type ReviewScore = 'emphatic_yes' | 'yes' | 'pass' | 'no' | 'emphatic_no' | 'incomplete';
|
|
415
428
|
type Reviews = {
|
|
416
429
|
'applicationId': TypedUuidForApplicationId;
|
|
@@ -420,6 +433,7 @@ type Reviews = {
|
|
|
420
433
|
'scores': ReviewScore[];
|
|
421
434
|
};
|
|
422
435
|
type ExpandedApplicationSummary = {
|
|
436
|
+
'action': PoolAction;
|
|
423
437
|
'applicant': ApplicantInfo;
|
|
424
438
|
'application': Application;
|
|
425
439
|
'documents': Document[];
|
|
@@ -440,6 +454,10 @@ type ApplicationSummaryResponse = {
|
|
|
440
454
|
'summary': ExpandedApplicationSummary;
|
|
441
455
|
'users': Evaluator[];
|
|
442
456
|
};
|
|
457
|
+
type AssignPool = {
|
|
458
|
+
'association': ListingPoolAssociation;
|
|
459
|
+
'listing': TypedUuidForListingId;
|
|
460
|
+
};
|
|
443
461
|
type AttachDocument = {
|
|
444
462
|
'externalId': string;
|
|
445
463
|
'mime'?: string;
|
|
@@ -496,6 +514,11 @@ type CreateMapper = {
|
|
|
496
514
|
'name': string;
|
|
497
515
|
'rule': Record<string, unknown>;
|
|
498
516
|
};
|
|
517
|
+
type CreatePool = {
|
|
518
|
+
'description'?: string;
|
|
519
|
+
'name': string;
|
|
520
|
+
'reviwers'?: TypedUuidForReviewerId[];
|
|
521
|
+
};
|
|
499
522
|
type CreateReview = {
|
|
500
523
|
'application': TypedUuidForApplicationId;
|
|
501
524
|
'content': string;
|
|
@@ -511,7 +534,16 @@ type CreateReview = {
|
|
|
511
534
|
type CreateReviewAssignments = {
|
|
512
535
|
'reviewers': TypedUuidForReviewerId[];
|
|
513
536
|
};
|
|
514
|
-
|
|
537
|
+
/**
|
|
538
|
+
* Failures that can occur when assigning a reviewer
|
|
539
|
+
*/
|
|
540
|
+
type ReviewAssignmentCreationError =
|
|
541
|
+
/** A requested object resource does not exist */
|
|
542
|
+
'DoesNotExist'
|
|
543
|
+
/** Caller does not have access to a require object resource */
|
|
544
|
+
| 'Forbidden'
|
|
545
|
+
/** Internal server error */
|
|
546
|
+
| 'Internal';
|
|
515
547
|
type TypedUuidForReviewAssignmentId = string;
|
|
516
548
|
type ReviewAssignmentState = 'pending' | 'complete';
|
|
517
549
|
type ReviewAssignment = {
|
|
@@ -523,38 +555,15 @@ type ReviewAssignment = {
|
|
|
523
555
|
'state': ReviewAssignmentState;
|
|
524
556
|
'updatedAt': Date;
|
|
525
557
|
};
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
'from': string;
|
|
530
|
-
'html'?: string;
|
|
531
|
-
'name': string;
|
|
532
|
-
'subject': string;
|
|
533
|
-
'text': string;
|
|
534
|
-
};
|
|
535
|
-
type RecipientId = {
|
|
536
|
-
'Applicant': TypedUuidForApplicantId;
|
|
537
|
-
} | {
|
|
538
|
-
'Custom': string;
|
|
539
|
-
} | {
|
|
540
|
-
'Reviewer': TypedUuidForReviewerId;
|
|
541
|
-
};
|
|
542
|
-
type NotificationStatus = 'Failed' | 'Pending' | 'Scheduled' | 'Sent';
|
|
543
|
-
type Notification_for_RenderedEmail = {
|
|
544
|
-
'createdAt': Date;
|
|
545
|
-
'deletedAt'?: Date;
|
|
546
|
-
'id': TypedUuidForNotificationId;
|
|
547
|
-
'kind': string;
|
|
548
|
-
'medium': NotificationMedium;
|
|
549
|
-
'message'?: RenderedEmail;
|
|
550
|
-
'recipient': RecipientId;
|
|
551
|
-
'status': NotificationStatus;
|
|
552
|
-
'updatedAt': Date;
|
|
553
|
-
};
|
|
558
|
+
/**
|
|
559
|
+
* Wrapper containing the assignment object
|
|
560
|
+
*/
|
|
554
561
|
type CreatedAssignment = {
|
|
555
562
|
'assignment': ReviewAssignment;
|
|
556
|
-
'notification': Notification_for_RenderedEmail;
|
|
557
563
|
};
|
|
564
|
+
/**
|
|
565
|
+
* Aggregate collection of results indexed by the reviewer ids that were requested to be assigned to the applcation
|
|
566
|
+
*/
|
|
558
567
|
type CreateReviewAssignmentsResponse = {
|
|
559
568
|
'failure': Record<string, ReviewAssignmentCreationError>;
|
|
560
569
|
'success': Record<string, CreatedAssignment>;
|
|
@@ -655,6 +664,16 @@ type Listing = {
|
|
|
655
664
|
'state': RoleListingStatus;
|
|
656
665
|
'updatedAt': Date;
|
|
657
666
|
};
|
|
667
|
+
type TypedUuidForListingPoolId = string;
|
|
668
|
+
type ListingPool = {
|
|
669
|
+
'association': ListingPoolAssociation;
|
|
670
|
+
'createdAt': Date;
|
|
671
|
+
'deletedAt'?: Date;
|
|
672
|
+
'id': TypedUuidForListingPoolId;
|
|
673
|
+
'listingId': TypedUuidForListingId;
|
|
674
|
+
'poolId': TypedUuidForPoolId;
|
|
675
|
+
'updatedAt': Date;
|
|
676
|
+
};
|
|
658
677
|
type TypedUuidForMagicLinkRedirectUriId = string;
|
|
659
678
|
type MagicLinkRedirectUri = {
|
|
660
679
|
'createdAt': Date;
|
|
@@ -711,9 +730,37 @@ type Mapper = {
|
|
|
711
730
|
'rule': Record<string, unknown>;
|
|
712
731
|
'updatedAt': Date;
|
|
713
732
|
};
|
|
733
|
+
type NotificationMedium = 'Email';
|
|
734
|
+
type NotificationStatus = 'Failed' | 'Pending' | 'Scheduled' | 'Sent';
|
|
735
|
+
type TypedUuidForNotificationId = string;
|
|
736
|
+
type RenderedEmail = {
|
|
737
|
+
'from': string;
|
|
738
|
+
'html'?: string;
|
|
739
|
+
'name': string;
|
|
740
|
+
'subject': string;
|
|
741
|
+
'text': string;
|
|
742
|
+
};
|
|
743
|
+
type RecipientId = {
|
|
744
|
+
'Applicant': TypedUuidForApplicantId;
|
|
745
|
+
} | {
|
|
746
|
+
'Custom': string;
|
|
747
|
+
} | {
|
|
748
|
+
'Reviewer': TypedUuidForReviewerId;
|
|
749
|
+
};
|
|
750
|
+
type Notification_for_RenderedEmail = {
|
|
751
|
+
'createdAt': Date;
|
|
752
|
+
'deletedAt'?: Date;
|
|
753
|
+
'id': TypedUuidForNotificationId;
|
|
754
|
+
'kind': string;
|
|
755
|
+
'medium': NotificationMedium;
|
|
756
|
+
'message'?: RenderedEmail;
|
|
757
|
+
'recipient': RecipientId;
|
|
758
|
+
'status': NotificationStatus;
|
|
759
|
+
'updatedAt': Date;
|
|
760
|
+
};
|
|
714
761
|
type OAuthAuthzCodeExchangeBody = {
|
|
715
|
-
'clientId'
|
|
716
|
-
'clientSecret'
|
|
762
|
+
'clientId'?: TypedUuidForOAuthClientId;
|
|
763
|
+
'clientSecret'?: SecretString;
|
|
717
764
|
'code': string;
|
|
718
765
|
'grantType': string;
|
|
719
766
|
'pkceVerifier'?: string;
|
|
@@ -805,6 +852,16 @@ type Operation_for_TurnstilePermission_and_TransitionApplicationToDeferredBatchE
|
|
|
805
852
|
type OptionalTransitionBody = {
|
|
806
853
|
'message'?: EmailConfig;
|
|
807
854
|
};
|
|
855
|
+
type Pool = {
|
|
856
|
+
'createdAt': Date;
|
|
857
|
+
'deletedAt'?: Date;
|
|
858
|
+
'description'?: string;
|
|
859
|
+
'id': TypedUuidForPoolId;
|
|
860
|
+
'listings': ListingPool[];
|
|
861
|
+
'name': string;
|
|
862
|
+
'reviewers': TypedUuidForReviewerId[];
|
|
863
|
+
'updatedAt': Date;
|
|
864
|
+
};
|
|
808
865
|
type RegisterApplicant = {
|
|
809
866
|
'email': string;
|
|
810
867
|
};
|
|
@@ -925,6 +982,9 @@ interface UpdateApplicantContactPathParams {
|
|
|
925
982
|
interface ViewApplicationPathParams {
|
|
926
983
|
application: TypedUuidForApplicationId;
|
|
927
984
|
}
|
|
985
|
+
interface ApplyReviewActionPathParams {
|
|
986
|
+
application: TypedUuidForApplicationId;
|
|
987
|
+
}
|
|
928
988
|
interface ListApplicationReviewAssignmentsPathParams {
|
|
929
989
|
application: TypedUuidForApplicationId;
|
|
930
990
|
}
|
|
@@ -947,6 +1007,9 @@ interface CreateDocumentUploadUrlPathParams {
|
|
|
947
1007
|
interface GetApplicationInterviewCodePathParams {
|
|
948
1008
|
application: TypedUuidForApplicationId;
|
|
949
1009
|
}
|
|
1010
|
+
interface SimulateReviewActionPathParams {
|
|
1011
|
+
application: TypedUuidForApplicationId;
|
|
1012
|
+
}
|
|
950
1013
|
interface SubmitApplicationPathParams {
|
|
951
1014
|
application: TypedUuidForApplicationId;
|
|
952
1015
|
}
|
|
@@ -969,6 +1032,7 @@ interface TransitionApplicationToWithdrawnPathParams {
|
|
|
969
1032
|
application: TypedUuidForApplicationId;
|
|
970
1033
|
}
|
|
971
1034
|
interface ListApplicationSummariesQueryParams {
|
|
1035
|
+
applicant?: TypedUuidForApplicantId;
|
|
972
1036
|
state?: ScalarApplicationState;
|
|
973
1037
|
}
|
|
974
1038
|
interface ViewApplicationSummaryPathParams {
|
|
@@ -1111,6 +1175,18 @@ interface DeleteOauthClientSecretPathParams {
|
|
|
1111
1175
|
clientId: TypedUuidForOAuthClientId;
|
|
1112
1176
|
secretId: TypedUuidForOAuthSecretId;
|
|
1113
1177
|
}
|
|
1178
|
+
interface ViewPoolPathParams {
|
|
1179
|
+
pool: TypedUuidForPoolId;
|
|
1180
|
+
}
|
|
1181
|
+
interface UpdatePoolPathParams {
|
|
1182
|
+
pool: TypedUuidForPoolId;
|
|
1183
|
+
}
|
|
1184
|
+
interface AssignPoolPathParams {
|
|
1185
|
+
pool: TypedUuidForPoolId;
|
|
1186
|
+
}
|
|
1187
|
+
interface UnassignPoolPathParams {
|
|
1188
|
+
assignment: TypedUuidForListingPoolId;
|
|
1189
|
+
}
|
|
1114
1190
|
interface ListReviewsQueryParams {
|
|
1115
1191
|
application?: TypedUuidForApplicationId;
|
|
1116
1192
|
reviewer?: TypedUuidForReviewerId;
|
|
@@ -1233,9 +1309,21 @@ declare class Api extends HttpClient {
|
|
|
1233
1309
|
viewApplication: ({ path, }: {
|
|
1234
1310
|
path: ViewApplicationPathParams;
|
|
1235
1311
|
}, params?: FetchParams) => Promise<ApiResult<Application>>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Compute the next review action to take on this application and apply the necessary changes
|
|
1314
|
+
*/
|
|
1315
|
+
applyReviewAction: ({ path, }: {
|
|
1316
|
+
path: ApplyReviewActionPathParams;
|
|
1317
|
+
}, params?: FetchParams) => Promise<ApiResult<ReviewAssignment[]>>;
|
|
1318
|
+
/**
|
|
1319
|
+
* List the individual reviewers that are assigned to this application
|
|
1320
|
+
*/
|
|
1236
1321
|
listApplicationReviewAssignments: ({ path, }: {
|
|
1237
1322
|
path: ListApplicationReviewAssignmentsPathParams;
|
|
1238
1323
|
}, params?: FetchParams) => Promise<ApiResult<ReviewAssignment[]>>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Assign individual reviewers to this application
|
|
1326
|
+
*/
|
|
1239
1327
|
createApplicationReviewAssignments: ({ path, body, }: {
|
|
1240
1328
|
path: CreateApplicationReviewAssignmentsPathParams;
|
|
1241
1329
|
body: CreateReviewAssignments;
|
|
@@ -1253,6 +1341,12 @@ declare class Api extends HttpClient {
|
|
|
1253
1341
|
getApplicationInterviewCode: ({ path, }: {
|
|
1254
1342
|
path: GetApplicationInterviewCodePathParams;
|
|
1255
1343
|
}, params?: FetchParams) => Promise<ApiResult<ApplicationInterviewCode>>;
|
|
1344
|
+
/**
|
|
1345
|
+
* Simulate the selection of the next review action without performing any changes
|
|
1346
|
+
*/
|
|
1347
|
+
simulateReviewAction: ({ path, }: {
|
|
1348
|
+
path: SimulateReviewActionPathParams;
|
|
1349
|
+
}, params?: FetchParams) => Promise<ApiResult<PoolAction>>;
|
|
1256
1350
|
submitApplication: ({ path, }: {
|
|
1257
1351
|
path: SubmitApplicationPathParams;
|
|
1258
1352
|
}, params?: FetchParams) => Promise<ApiResult<ApplicationStateRecord>>;
|
|
@@ -1539,6 +1633,24 @@ declare class Api extends HttpClient {
|
|
|
1539
1633
|
deleteOauthClientSecret: ({ path, }: {
|
|
1540
1634
|
path: DeleteOauthClientSecretPathParams;
|
|
1541
1635
|
}, params?: FetchParams) => Promise<ApiResult<OAuthClientSecret>>;
|
|
1636
|
+
listPools: (_: EmptyObj, params?: FetchParams) => Promise<ApiResult<Pool[]>>;
|
|
1637
|
+
createPool: ({ body, }: {
|
|
1638
|
+
body: CreatePool;
|
|
1639
|
+
}, params?: FetchParams) => Promise<ApiResult<Pool>>;
|
|
1640
|
+
viewPool: ({ path, }: {
|
|
1641
|
+
path: ViewPoolPathParams;
|
|
1642
|
+
}, params?: FetchParams) => Promise<ApiResult<Pool>>;
|
|
1643
|
+
updatePool: ({ path, body, }: {
|
|
1644
|
+
path: UpdatePoolPathParams;
|
|
1645
|
+
body: CreatePool;
|
|
1646
|
+
}, params?: FetchParams) => Promise<ApiResult<Pool>>;
|
|
1647
|
+
assignPool: ({ path, body, }: {
|
|
1648
|
+
path: AssignPoolPathParams;
|
|
1649
|
+
body: AssignPool;
|
|
1650
|
+
}, params?: FetchParams) => Promise<ApiResult<Pool>>;
|
|
1651
|
+
unassignPool: ({ path, }: {
|
|
1652
|
+
path: UnassignPoolPathParams;
|
|
1653
|
+
}, params?: FetchParams) => Promise<ApiResult<void>>;
|
|
1542
1654
|
listReviews: ({ query, }: {
|
|
1543
1655
|
query?: ListReviewsQueryParams;
|
|
1544
1656
|
}, params?: FetchParams) => Promise<ApiResult<ReviewInfo[]>>;
|
|
@@ -1575,4 +1687,4 @@ declare class Api extends HttpClient {
|
|
|
1575
1687
|
ws: {};
|
|
1576
1688
|
}
|
|
1577
1689
|
|
|
1578
|
-
export { type
|
|
1690
|
+
export { type OfferState as $, type ApiConfig as A, type AddGroupBody as B, type AddMagicLinkRedirectBody as C, type DocumentParent as D, type AddOAuthClientRedirectBody as E, type FullParams as F, type ApiKeyCreateParams_for_TurnstilePermission as G, type ApiKeyResponse_for_TurnstilePermission as H, type TypedUuidForUserProviderId as I, type ApiUserContactEmail as J, type ApiUserEmailUpdateParams as K, type ApiUserProvider as L, type ApiUser_for_TurnstilePermission as M, type ApiUserInfo_for_TurnstilePermission as N, type ApiUserLinkRequestPayload as O, type Permissions_for_TurnstilePermission as P, type ApiUserLinkRequestResponse as Q, type ApiUserProviderLinkPayload as R, type SecretString as S, type TypedUuidForApplicantId as T, type ApiUserUpdateParams_for_TurnstilePermission as U, type Applicant as V, type TypedUuidForApplicantContactId as W, type ApplicantContactField as X, type ApplicantContact as Y, type ApplicantInfo as Z, type InterviewingState as _, Api as a, type MagicLinkSecret as a$, type ApplicationState as a0, type Application as a1, type DocumentKind as a2, type DocumentSource as a3, type Document as a4, type ApplicationBundle as a5, type TypedUuidForApplicationInterviewCodeId as a6, type ApplicationInterviewCode as a7, type TypedUuidForApplicationStateRecordId as a8, type ApplicationStateRecord as a9, type TypedUuidForReviewAssignmentId as aA, type ReviewAssignmentState as aB, type ReviewAssignment as aC, type CreatedAssignment as aD, type CreateReviewAssignmentsResponse as aE, type CreateRole as aF, type CreatedApplication as aG, type Department as aH, type DocumentUploadUrlResponse as aI, type EmailApplicantBody as aJ, type GetUserResponse_for_TurnstilePermission as aK, type InitialApiKeyResponse_for_TurnstilePermission as aL, type TypedUuidForMagicLinkSecretId as aM, type InitialMagicLinkSecretResponse as aN, type TypedUuidForOAuthSecretId as aO, type InitialOAuthClientSecretResponse as aP, type TypedUuidForInterviewAttendeeId as aQ, type InterviewAttendee as aR, type Interview as aS, type Interviewer as aT, type Jwk as aU, type Jwks as aV, type Listing as aW, type TypedUuidForListingPoolId as aX, type ListingPool as aY, type TypedUuidForMagicLinkRedirectUriId as aZ, type MagicLinkRedirectUri as a_, type ListingPoolAssociation as aa, type PoolAction as ab, type ReviewScore as ac, type Reviews as ad, type ExpandedApplicationSummary as ae, type Evaluator as af, type ApplicationSummariesResponse as ag, type ApplicationSummaryResponse as ah, type AssignPool as ai, type AttachDocument as aj, type EmailConfig as ak, type TransitionMessage as al, type TransitionBody as am, type BatchParameter_for_TransitionBody as an, type ViewApplication as ao, type BatchParameter_for_ViewApplication as ap, type CreateApplication as aq, type CreateDepartment as ar, type CreateDocument as as, type RoleListingStatus as at, type CreateListing as au, type CreateMapper as av, type CreatePool as aw, type CreateReview as ax, type CreateReviewAssignments as ay, type ReviewAssignmentCreationError as az, type ApiResult as b, type ApplyReviewActionPathParams as b$, type MagicLink as b0, type TypedUuidForMagicLinkAttemptId as b1, type MagicLinkExchangeRequest as b2, type MagicLinkExchangeResponse as b3, type MagicLinkMedium as b4, type MagicLinkSendRequest as b5, type MagicLinkSendResponse as b6, type Mapper as b7, type NotificationMedium as b8, type NotificationStatus as b9, type Reviewer as bA, type ReviewerInfo as bB, type ReviewInfo as bC, type Role as bD, type TransitionApplicationToDeclinedBatch as bE, type TransitionApplicationToDeferredBatch as bF, type UpdateApplicantContact as bG, type UpdateDocument as bH, type UpdateDocumentStatus as bI, type UpdateListing as bJ, type UpdateReview as bK, type ScalarApplicationState as bL, type GetApiUserPathParams as bM, type UpdateApiUserPathParams as bN, type SetApiUserContactEmailPathParams as bO, type AddApiUserToGroupPathParams as bP, type RemoveApiUserFromGroupPathParams as bQ, type LinkProviderPathParams as bR, type ListApiUserTokensPathParams as bS, type CreateApiUserTokenPathParams as bT, type GetApiUserTokenPathParams as bU, type DeleteApiUserTokenPathParams as bV, type CreateLinkTokenPathParams as bW, type ListApplicantsQueryParams as bX, type ViewApplicantPathParams as bY, type UpdateApplicantContactPathParams as bZ, type ViewApplicationPathParams as b_, type TypedUuidForNotificationId as ba, type RenderedEmail as bb, type RecipientId as bc, type Notification_for_RenderedEmail as bd, type OAuthAuthzCodeExchangeBody as be, type OAuthAuthzCodeExchangeResponse as bf, type TypedUuidForOAuthRedirectUriId as bg, type OAuthClientRedirectUri as bh, type OAuthClientSecret as bi, type OAuthClient as bj, type OAuthProviderName as bk, type OAuthProviderInfo as bl, type OpenIdConfiguration as bm, type OperationState as bn, type OperationTaskState as bo, type TypedUuidForOperationTaskId as bp, type OperationTask_for_AnyValue_and_AnyValue_and_AnyValue_and_AnyValue as bq, type Operation_for_TurnstilePermission_and_String as br, type TransitionApplicationToDeclinedBatchEndpoint as bs, type Operation_for_TurnstilePermission_and_TransitionApplicationToDeclinedBatchEndpoint as bt, type TransitionApplicationToDeferredBatchEndpoint as bu, type Operation_for_TurnstilePermission_and_TransitionApplicationToDeferredBatchEndpoint as bv, type OptionalTransitionBody as bw, type Pool as bx, type RegisterApplicant as by, type Review as bz, type TypedUuidForUserId as c, type DeleteReviewPathParams as c$, type ListApplicationReviewAssignmentsPathParams as c0, type CreateApplicationReviewAssignmentsPathParams as c1, type ViewApplicationBundlePathParams as c2, type AttachDocumentPathParams as c3, type CreateDocumentUploadUrlPathParams as c4, type GetApplicationInterviewCodePathParams as c5, type SimulateReviewActionPathParams as c6, type SubmitApplicationPathParams as c7, type TransitionApplicationToDeclinedPathParams as c8, type TransitionApplicationToDeferredPathParams as c9, type AuthzCodeRedirectQueryParams as cA, type AuthzCodeCallbackPathParams as cB, type AuthzCodeCallbackQueryParams as cC, type AuthzCodeExchangePathParams as cD, type GetDeviceProviderPathParams as cE, type ExchangeDeviceTokenPathParams as cF, type GetMagicLinkPathParams as cG, type CreateMagicLinkRedirectUriPathParams as cH, type DeleteMagicLinkRedirectUriPathParams as cI, type CreateMagicLinkSecretPathParams as cJ, type DeleteMagicLinkSecretPathParams as cK, type GetMappersQueryParams as cL, type DeleteMapperPathParams as cM, type ListNotificationsQueryParams as cN, type EmailApplicantPathParams as cO, type GetOauthClientPathParams as cP, type CreateOauthClientRedirectUriPathParams as cQ, type DeleteOauthClientRedirectUriPathParams as cR, type CreateOauthClientSecretPathParams as cS, type DeleteOauthClientSecretPathParams as cT, type ViewPoolPathParams as cU, type UpdatePoolPathParams as cV, type AssignPoolPathParams as cW, type UnassignPoolPathParams as cX, type ListReviewsQueryParams as cY, type ViewReviewPathParams as cZ, type UpdateReviewPathParams as c_, type TransitionApplicationToInterviewingPathParams as ca, type TransitionApplicationToNextStepsPathParams as cb, type TransitionApplicationToOfferPathParams as cc, type TransitionApplicationToWithdrawnPathParams as cd, type ListApplicationSummariesQueryParams as ce, type ViewApplicationSummaryPathParams as cf, type ListOperationsQueryParams as cg, type GetOperationPathParams as ch, type ListOperationTasksQueryParams as ci, type ViewDepartmentPathParams as cj, type ListDocumentsQueryParams as ck, type ViewDocumentPathParams as cl, type UpdateDocumentPathParams as cm, type DeleteDocumentPathParams as cn, type ViewDocumentDataPathParams as co, type UpdateDocumentStatusPathParams as cp, type UpdateGroupPathParams as cq, type DeleteGroupPathParams as cr, type ListInterviewsQueryParams as cs, type ListInterviewersQueryParams as ct, type ViewListingPathParams as cu, type UpdateListingPathParams as cv, type UpdateListingStatePathParams as cw, type MagicLinkExchangePathParams as cx, type MagicLinkSendPathParams as cy, type AuthzCodeRedirectPathParams as cz, type TypedUuidForApplicationId as d, type ListReviewersQueryParams as d0, type ViewRolePathParams as d1, type ErrorBody as d2, type ErrorResult as d3, type TypedUuidForDocumentId as e, type TypedUuidForEmployeeId as f, type TypedUuidForOnboardingId as g, type TypedUuidForDepartmentId as h, type TypedUuidForRoleId as i, type TypedUuidForListingId as j, type TypedUuidForPoolId as k, type TypedUuidForReviewerId as l, type TypedUuidForReviewId as m, type TypedUuidForInterviewerId as n, type TypedUuidForInterviewId as o, type TypedUuidForBackgroundCheckId as p, type TypedUuidForOperationId as q, type TypedUuidForApiKeyId as r, type TypedUuidForAccessGroupId as s, type TypedUuidForMapperId as t, type TypedUuidForOAuthClientId as u, type TypedUuidForMagicLinkId as v, type TurnstilePermission as w, type AccessGroupUpdateParams_for_TurnstilePermission as x, type AccessGroup_for_TurnstilePermission as y, type AccessTokenExchangeRequest as z };
|