-
Notifications
You must be signed in to change notification settings - Fork 337
/
Copy pathEnums.ts
58 lines (43 loc) · 1.79 KB
/
Enums.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import type { OrganizationCustomRoleKey } from '@clerk/types';
export type OAuthProvider =
| 'facebook'
| 'google'
| 'hubspot'
| 'github'
| 'tiktok'
| 'gitlab'
| 'discord'
| 'twitter'
| 'twitch'
| 'linkedin'
| 'linkedin_oidc'
| 'dropbox'
| 'bitbucket'
| 'microsoft'
| 'notion'
| 'apple'
| 'x';
export type OAuthStrategy = `oauth_${OAuthProvider}`;
export type OrganizationInvitationStatus = 'pending' | 'accepted' | 'revoked';
export type OrganizationDomainVerificationStatus = 'unverified' | 'verified';
export type OrganizationDomainVerificationStrategy = 'email_code'; // only available value for now
export type OrganizationEnrollmentMode = 'manual_invitation' | 'automatic_invitation' | 'automatic_suggestion';
export type OrganizationMembershipRole = OrganizationCustomRoleKey;
export type SignInStatus = 'needs_identifier' | 'needs_factor_one' | 'needs_factor_two' | 'complete';
export type SignUpVerificationNextAction = 'needs_prepare' | 'needs_attempt' | '';
export type InvitationStatus = 'pending' | 'accepted' | 'revoked' | 'expired';
export const DomainsEnrollmentModes = {
ManualInvitation: 'manual_invitation',
AutomaticInvitation: 'automatic_invitation',
AutomaticSuggestion: 'automatic_suggestion',
} as const;
export type DomainsEnrollmentModes = (typeof DomainsEnrollmentModes)[keyof typeof DomainsEnrollmentModes];
export const ActorTokenStatus = {
Pending: 'pending',
Accepted: 'accepted',
Revoked: 'revoked',
} as const;
export type ActorTokenStatus = (typeof ActorTokenStatus)[keyof typeof ActorTokenStatus];
export type AllowlistIdentifierType = 'email_address' | 'phone_number' | 'web3_wallet';
export type BlocklistIdentifierType = AllowlistIdentifierType;
export type WaitlistEntryStatus = 'pending' | 'invited' | 'completed' | 'rejected';