1 #[cfg(debug_assertions)]
2 pub const GH_OAUTH_CLIENT_ID: &str = "053e152f1b78ecee552b";
3 #[cfg(not(debug_assertions))]
4 pub const GH_OAUTH_CLIENT_ID: &str = "bf1f12d97659a6495e43";
5
6 pub const GH_OAUTH_REDIRECT_HOST: &str = "http://localhost";
7 pub const GH_OAUTH_REDIRECT_PORT: &str = "8808";
8
9 // GitHub App slug used to build the installation URL. Provisional until the
10 // app is registered; the dev app is separate so webhooks can target a dev API.
11 #[cfg(debug_assertions)]
12 pub const GH_APP_SLUG: &str = "smbcloud-dev";
13 #[cfg(not(debug_assertions))]
14 pub const GH_APP_SLUG: &str = "smbcloud";
15
16 pub const SMB_USER_AGENT: &str = "smbcloud-cli";
17
18 // Paths
19 pub const PATH_USERS_CHECK_EMAIL: &str = "v1/check_email";
20 pub const PATH_ACCOUNT_STATUS: &str = "v1/account_status";
21 pub const PATH_USERS_ME: &str = "v1/me";
22 pub const PATH_USERS: &str = "v1/users";
23 pub const PATH_USERS_PASSWORD: &str = "v1/users/password";
24 pub const PATH_USERS_SIGN_OUT: &str = "v1/users/sign_out";
25 pub const PATH_USERS_SIGN_IN: &str = "v1/users/sign_in";
26 pub const PATH_LINK_GITHUB_ACCOUNT: &str = "v1/link_github_account";
27 pub const PATH_RESET_PASSWORD_INSTRUCTIONS: &str = "v1/resend_reset_password_instructions";
28 pub const PATH_RESEND_CONFIRMATION: &str = "v1/resend_confirmation";
29 pub const PATH_AUTHORIZE: &str = "v1/authorize";