forked from clerk/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplayConfig.ts
More file actions
96 lines (92 loc) · 3.07 KB
/
Copy pathdisplayConfig.ts
File metadata and controls
96 lines (92 loc) · 3.07 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import type { DisplayConfigJSONSnapshot } from 'snapshots';
import type { DisplayThemeJSON } from './json';
import type { ClerkResource } from './resource';
import type { OAuthStrategy } from './strategies';
export type PreferredSignInStrategy = 'password' | 'otp';
export type CaptchaWidgetType = 'smart' | 'invisible' | null;
export type CaptchaProvider = 'turnstile';
export interface DisplayConfigJSON {
object: 'display_config';
id: string;
after_sign_in_url: string;
after_sign_out_all_url: string;
after_sign_out_one_url: string;
after_sign_up_url: string;
after_switch_session_url: string;
application_name: string;
branded: boolean;
captcha_public_key: string | null;
captcha_widget_type: CaptchaWidgetType;
captcha_public_key_invisible: string | null;
captcha_provider: CaptchaProvider;
captcha_oauth_bypass: OAuthStrategy[] | null;
captcha_heartbeat?: boolean;
captcha_heartbeat_interval_ms?: number;
home_url: string;
instance_environment_type: string;
logo_image_url: string;
favicon_image_url: string;
preferred_sign_in_strategy: PreferredSignInStrategy;
sign_in_url: string;
sign_up_url: string;
support_email: string;
theme: DisplayThemeJSON;
user_profile_url: string;
clerk_js_version?: string;
organization_profile_url: string;
create_organization_url: string;
after_leave_organization_url: string;
after_create_organization_url: string;
google_one_tap_client_id?: string;
show_devmode_warning: boolean;
terms_url: string;
privacy_policy_url: string;
waitlist_url: string;
after_join_waitlist_url: string;
}
export interface DisplayConfigResource extends ClerkResource {
id: string;
afterSignInUrl: string;
afterSignOutAllUrl: string;
afterSignOutOneUrl: string;
afterSignUpUrl: string;
afterSwitchSessionUrl: string;
applicationName: string;
backendHost: string;
branded: boolean;
captchaPublicKey: string | null;
captchaWidgetType: CaptchaWidgetType;
captchaProvider: CaptchaProvider;
captchaPublicKeyInvisible: string | null;
/**
* An array of OAuth strategies for which we will bypass the captcha.
* We trust that the provider will verify that the user is not a bot on their end.
* This can also be used to bypass the captcha for a specific OAuth provider on a per-instance basis.
*/
captchaOauthBypass: OAuthStrategy[];
captchaHeartbeat: boolean;
captchaHeartbeatIntervalMs?: number;
homeUrl: string;
instanceEnvironmentType: string;
logoImageUrl: string;
faviconImageUrl: string;
preferredSignInStrategy: PreferredSignInStrategy;
signInUrl: string;
signUpUrl: string;
supportEmail: string;
theme: DisplayThemeJSON;
userProfileUrl: string;
clerkJSVersion?: string;
experimental__forceOauthFirst?: boolean;
organizationProfileUrl: string;
createOrganizationUrl: string;
afterLeaveOrganizationUrl: string;
afterCreateOrganizationUrl: string;
googleOneTapClientId?: string;
showDevModeWarning: boolean;
termsUrl: string;
privacyPolicyUrl: string;
waitlistUrl: string;
afterJoinWaitlistUrl: string;
__internal_toSnapshot: () => DisplayConfigJSONSnapshot;
}