Package ai.vectros.types
Class UserResponse
java.lang.Object
ai.vectros.types.UserResponse
-
Method Details
-
getCreated
- Returns:
- Whether this call created a new user. True when a new user was created; false when a user with the same
externalIdalready existed and was returned unchanged (idempotent create) or updated (when?upsert=true). Present only on the create response (POST /v1/users); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing user was returned.
-
getId
- Returns:
- The Vectros-assigned UUID for this user. Use this ID when referencing the user in token minting, record ownership, and filters.
-
getExternalId
- Returns:
- Your own identifier for this user, supplied when the user was created.
-
getEmail
- Returns:
- The user's email address.
-
getStatus
- Returns:
- The user's lifecycle status.
ACTIVEandSUSPENDEDapply to normal users;PENDINGmarks an invited user who has not yet completed acceptance.
-
getType
- Returns:
- The kind of user:
HUMANfor a real person, orSERVICEfor a bot, agent, or automated integration. Users created before this field existed are reported asHUMAN.
-
getPayload
- Returns:
- Arbitrary key-value attributes stored on this user.
-
getSchemaId
- Returns:
- The ID of the record schema that governs this user's payload validation and lookup indexing, or null if the user is not bound to a schema.
-
getSchemaVersion
- Returns:
- The version of the governing schema captured at the time this user was last written. The user keeps the version it was stamped with even after the schema is edited. Null when the user is not bound to a schema.
-
getCreatedAt
- Returns:
- When the user was created, as an ISO-8601 UTC timestamp.
-
getExternalSubject
- Returns:
- The user's identifier in your own authentication system (for example, a Cognito sub or Auth0 user ID). This is set when an invitation is accepted via PUT /v1/users/{id} with status=ACTIVE, and is null until the user is activated.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-