Package ai.vectros.types
Class AccessProfileResponse
java.lang.Object
ai.vectros.types.AccessProfileResponse
-
Method Details
-
getCreated
- Returns:
- Whether this call created a new access profile. True when a new profile was created; false when a profile with the same
principalIdalready existed and was returned unchanged (idempotent create) or updated (when?upsert=true). Present only on the create response (POST /v1/app-contexts/{contextId}/profiles); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing profile was returned.
-
getId
- Returns:
- Opaque identifier for this profile. Also serves as the pagination cursor.
-
getContextId
- Returns:
- The app context this profile belongs to.
-
getPrincipalId
- Returns:
- Principal this profile applies to —
usr_<userId>for a user, orkey_<keyId>for a scoped API key acting as its own principal.
-
getScopes
- Returns:
- Inline scope clauses granted to the principal. Mutually exclusive with
roleIds— exactly one of the two is present.
-
getRoleIds
- Returns:
- The roles that together supply this principal's scopes, in composition order — the effective grant is each role's own clauses concatenated. Mutually exclusive with
scopes: exactly one of the two is present.
-
getRoleId
- Returns:
- Deprecated single-role view of
roleIds, present only when exactly one role composes. A profile composing two or more roles omits this field entirely — readroleIds, which is always present for a role-referencing profile.
-
getIdentityOverrides
- Returns:
- Per-context identity overrides, keyed by ownership namespace in
scope:<namespace>form (for examplescope:org,scope:client,scope:group). Read back exactly as authored.
-
getAssumable
- Returns:
- Which values, per
scope:<namespace>, a holder of this profile may assume viaPOST /v1/auth/token/assume. Only meaningful whenscopes(notroleId) is set — seeassumable's own request-field doc. Absent when the profile grants no assumption of anything (the common case, and always the case for a role-referencing profile — the grant lives on the Role instead).
-
getStatus
- Returns:
- Profile lifecycle status:
activeorsuspended.
-
getCreatedAt
- Returns:
- When the profile was created (ISO-8601 UTC).
-
getLastModified
- Returns:
- When the profile was last modified (ISO-8601 UTC).
-
getEmail
- Returns:
- The principal's email, when resolvable. Set only for a
usr_principal with a matching user record in your tenant; null for akey_principal (a scoped API key has no email), ausr_principal that could not be resolved (for example, the user was deleted), or when your token lacks theusers:rscope in addition to this endpoint's own scope (email is user data, gated the same as GET /v1/users).
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-