Package ai.vectros.types
Class ScopeRequest
java.lang.Object
ai.vectros.types.ScopeRequest
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeRequest.Builderbuilder()booleaninthashCode()toString()
-
Method Details
-
getAllowedActions
- Returns:
- The actions this token may perform. Each entry has the form
resource:operations, whereoperationsis one ofr(read),c(create),u(update),d(delete),crud(all four), or a colon-separated combination. For records you may append a type qualifier, e.g.records:r:intake_form. For identity entities the grammar isentities:<verb>:<namespace>, e.g.entities:r:orgorentities:c:client(reserved namespacesorgandclient). Valid resources are:entities,users,documents,folders,records,schemas, andsearch.namespacesis deliberately not among them: reading the namespace registry is open to any credential, and registering, updating, or deleting a namespace requires a root API key — so anamespaces:<verb>entry would neither grant nor withhold anything.
-
getIdentity
- Returns:
- Ownership fields automatically stamped onto resources created with this token. Optional. Keys are ownership dimensions:
userId, or any scope namespace in canonicalscope:<namespace>form (e.g.scope:org,scope:client,scope:group). Entity values must be Vectros UUIDs — look them up withGET /v1/usersorGET /v1/entities/{namespace}; custom-scope values are identifiers you define. The token holder cannot override these values when creating resources, but may narrow which of them stamp per create via thescopesrequest field.
-
getDataScope
- Returns:
- Restricts which records the token can access. Optional. Keys are ownership dimensions:
userId, or any scope namespace in canonicalscope:<namespace>form (e.g.scope:org,scope:client,scope:group); values are arrays of permitted values — the token can only access records whose dimension matches one of these values. Every non-null entity UUID must be a real entity in your account, and each dimension may be named only once. Include a JSONnullin the array (e.g.["uuid", null]) to ALSO grant access to records with no value in THAT dimension — an explicit per-dimension sentinel, NOT a wildcard. To grant access regardless of value, omit the key from the data scope entirely.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-