Repository: Infisical/infisical
File: backend/src/lib/api-docs/constants.ts (TypeScript)

Code before:
    groupSearchFilter:
      "The template used when constructing the group membership query such as `(&(objectClass=posixGroup)(memberUid={{.Username}}))`. The template can access the following context variables: `[UserDN, UserName]`. The default is `(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))` which is compatible with several common directory schemas.",
    caCert: "The CA certificate to use when verifying the LDAP server certificate."
  },
  UPDATE_CONFIG: {
    organizationId: "The ID of the organization to update the LDAP config for.",
    isActive: "Whether to enable or disable this LDAP configuration.",
    url: "The LDAP server to connect to such as `ldap://ldap.your-org.com`, `ldaps://ldap.myorg.com:636` (for connection over SSL/TLS), etc.",
    bindDN:
      "The distinguished name of object to bind when performing the user search such as `cn=infisical,ou=Users,dc=acme,dc=com`",
    bindPass: "The password to use along with Bind DN when performing the user search.",
    uniqueUserAttribute:
      "The attribute to use as the unique identifier of LDAP users such as `sAMAccountName`, `cn`, `uid`, `objectGUID`. If left blank, defaults to uidNumber",
    searchFilter:
      "The template used to construct the LDAP user search filter such as `(uid={{username}})` uses literal `{{username}}` to have the given username used in the search. The default is `(uid={{username}})` which is compatible with several common directory schemas.",
    searchBase: "The base DN to use for the user search such as `ou=Users,dc=acme,dc=com`",
    groupSearchBase: "LDAP search base to use for group membership search such as `ou=Groups,dc=acme,dc=com`",
    groupSearchFilter:
      "The template used when constructing the group membership query such as `(&(objectClass=posixGroup)(memberUid={{.Username}}))`. The template can access the following context variables: `[UserDN, UserName]`. The default is `(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))` which is compatible with several common directory schemas.",
    caCert: "The CA certificate to use when verifying the LDAP server certificate."
  }
};

export const EventSubscriptions = {
  SUBSCRIBE_PROJECT_EVENTS: {
    projectId: "The ID of the project the group belongs to.",
    register: "List of events you want to subscribe to"
  }
};


Review comment (suggestion):
```suggestion
    projectId: "The ID of the project the subscription belongs to.",
```

Code after:
    searchFilter:
      "The template used to construct the LDAP user search filter such as `(uid={{username}})` uses literal `{{username}}` to have the given username used in the search. The default is `(uid={{username}})` which is compatible with several common directory schemas.",
    groupSearchBase: "LDAP search base to use for group membership search such as `ou=Groups,dc=acme,dc=com`",
    groupSearchFilter:
      "The template used when constructing the group membership query such as `(&(objectClass=posixGroup)(memberUid={{.Username}}))`. The template can access the following context variables: `[UserDN, UserName]`. The default is `(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))` which is compatible with several common directory schemas.",
    caCert: "The CA certificate to use when verifying the LDAP server certificate."
  },
  UPDATE_CONFIG: {
    organizationId: "The ID of the organization to update the LDAP config for.",
    isActive: "Whether to enable or disable this LDAP configuration.",
    url: "The LDAP server to connect to such as `ldap://ldap.your-org.com`, `ldaps://ldap.myorg.com:636` (for connection over SSL/TLS), etc.",
    bindDN:
      "The distinguished name of object to bind when performing the user search such as `cn=infisical,ou=Users,dc=acme,dc=com`",
    bindPass: "The password to use along with Bind DN when performing the user search.",
    uniqueUserAttribute:
      "The attribute to use as the unique identifier of LDAP users such as `sAMAccountName`, `cn`, `uid`, `objectGUID`. If left blank, defaults to uidNumber",
    searchFilter:
      "The template used to construct the LDAP user search filter such as `(uid={{username}})` uses literal `{{username}}` to have the given username used in the search. The default is `(uid={{username}})` which is compatible with several common directory schemas.",
    searchBase: "The base DN to use for the user search such as `ou=Users,dc=acme,dc=com`",
    groupSearchBase: "LDAP search base to use for group membership search such as `ou=Groups,dc=acme,dc=com`",
    groupSearchFilter:
      "The template used when constructing the group membership query such as `(&(objectClass=posixGroup)(memberUid={{.Username}}))`. The template can access the following context variables: `[UserDN, UserName]`. The default is `(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))` which is compatible with several common directory schemas.",
    caCert: "The CA certificate to use when verifying the LDAP server certificate."
  }
};

export const EventSubscriptions = {
  SUBSCRIBE_PROJECT_EVENTS: {
    projectId: "The ID of the project to subscribe to events for.",
    register: "List of events you want to subscribe to"
  }
};