Class AccessProfileRequest

java.lang.Object
ai.vectros.types.AccessProfileRequest

public final class AccessProfileRequest extends Object
  • Method Details

    • getPrincipalId

      public String getPrincipalId()
      Returns:
      Principal this profile applies to. Must start with usr_ (an authenticated user — the suffix is the user id) or key_ (a scoped API key acting as its own principal — the suffix is the key id). The suffix may contain only letters, digits, underscores, and hyphens. Required when creating (POST); ignored when updating (PUT), where it is taken from the path.
    • getScopes

      public Optional<List<ScopeClause>> getScopes()
      Returns:
      Inline scope clauses to grant the principal. Provide exactly one of scopes or roleId — setting both, or neither, returns a 400.
    • getRoleId

      public Optional<String> getRoleId()
      Returns:
      Reference to a role within the same context that supplies this principal's scopes. Provide exactly one of scopes or roleId — setting both, or neither, returns a 400. Changes to the role's scopes take effect for all referencing profiles.
    • getIdentityOverrides

      public Optional<Map<String,Object>> getIdentityOverrides()
      Returns:
      Optional per-context identity overrides. Only orgId and clientId may be overridden; any other key is rejected. An empty or omitted map applies no overrides — the base identity from the user or key record is used as-is.
    • getStatus

      public Optional<AccessProfileRequestStatus> getStatus()
      Returns:
      Profile lifecycle status. active permits token minting; suspended denies it (minting returns a uniform 403). Defaults to active when omitted.
    • 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 AccessProfileRequest.PrincipalIdStage builder()