Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

2.6 KB
Raw Blame
export const publicPaths = [
  "/",
  // `/integrations`,
  "/signupinvite",
  "/pricing",
  "/signup",
  "/signup/sso",
  "/login",
  "/login/ldap",
  "/login/oidc",
  "/login/saml",
  "/blog",
  "/docs",
  "/changelog",
  "/security",
  "/scheduledemo",
  "/blog/[slug]",
  "/faq",
  "/privacy",
  "/terms",
  "/subprocessors",
  "/verify-email",
  "/password-reset",
  "/saml-sso",
  "/login/provider/error",
  "/admin/signup",
  "/shared/secret/[id]",
  "/shared/new",
  "/secret-request/secret/[id]",
  "/share-secret"
];

export const languageMap = {
  en: "English",
  ko: "한국어",
  fr: "Français"
};

interface Mapping {
  [key: string]: string;
}

const plansDev: Mapping = {
  starter: "prod_Nt6kPvYsVBuzVH",
  team: "prod_NEpD2WMXUS2eDn",
  professional: "prod_Mb4CetZ2jE7jdl",
  enterprise: "licence_key_required"
};

const plansProd: Mapping = {
  starter: "prod_Mb8oR5XNwyFTul",
  team: "prod_NEp7fAB3UJWK6A",
  professional: "prod_Mb8pUIpA0OUi5N",
  enterprise: "licence_key_required"
};

export const plans = plansProd || plansDev;

export const leaveConfirmDefaultMessage =
  "Your changes will be lost if you leave the page. Are you sure you want to continue?";

// Name of the sample project created during onboarding (see UserInfoStep). Referenced when
// excluding the demo project from growth nudges; use this constant instead of the bare literal.
export const EXAMPLE_PROJECT_NAME = "Example Project";

export enum SessionStorageKeys {
  CLI_TERMINAL_TOKEN = "CLI_TERMINAL_TOKEN",
  ORG_LOGIN_SUCCESS_REDIRECT_URL = "ORG_LOGIN_SUCCESS_REDIRECT_URL",
  AUTH_CONSENT = "AUTH_CONSENT",
  MFA_TEMP_TOKEN = "MFA_TEMP_TOKEN"
}

export const secretTagsColors = [
  {
    id: 1,
    hex: "#bec2c8",
    rgba: "rgb(128,128,128, 0.8)",
    name: "Grey",
    selected: true
  },
  {
    id: 2,
    hex: "#95a2b3",
    rgba: "rgb(0,0,255, 0.8)",
    name: "blue",
    selected: false
  },
  {
    id: 3,
    hex: "#5e6ad2",
    rgba: "rgb(128,0,128, 0.8)",
    name: "Purple",
    selected: false
  },
  {
    id: 4,
    hex: "#26b5ce",
    rgba: "rgb(0,128,128, 0.8)",
    name: "Teal",
    selected: false
  },
  {
    id: 5,
    hex: "#4cb782",
    rgba: "rgb(0,128,0, 0.8)",
    name: "Green",
    selected: false
  },
  {
    id: 6,
    hex: "#f2c94c",
    rgba: "rgb(255,255,0, 0.8)",
    name: "Yellow",
    selected: false
  },
  {
    id: 7,
    hex: "#f2994a",
    rgba: "rgb(128,128,0, 0.8)",
    name: "Orange",
    selected: false
  },
  {
    id: 8,
    hex: "#f7c8c1",
    rgba: "rgb(128,0,0, 0.8)",
    name: "Pink",
    selected: false
  },
  {
    id: 9,
    hex: "#eb5757",
    rgba: "rgb(255,0,0, 0.8)",
    name: "Red",
    selected: false
  }
];