Class SelfSignupPolicy

java.lang.Object
ai.vectros.types.SelfSignupPolicy

public final class SelfSignupPolicy extends Object
  • Method Details

    • getSignupType

      public String getSignupType()
      Returns:
      The plain slug the frontend and the blueprint agree on to select this policy entry (e.g. 'practitioner', 'client'). Same grammar as a role id (lowercase letter first, then a-z 0-9 -, 3-31 chars). Caller-supplied at exchange time via the request's signup_type field; omitted on the request means 'the sole entry', valid only when this list has exactly one.
    • getRoleId

      public String getRoleId()
      Returns:
      The role a brand-new self-signup caller matching this signupType is bound to. Must never resolve to a role carrying elevated (provisioning or wildcard) scope — checked when you register this policy (skipped if the role doesn't exist yet) and always checked again, unskippable, at the moment a caller actually signs up.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static SelfSignupPolicy.SignupTypeStage builder()