Class SchemaResponse.Builder
- Enclosing class:
SchemaResponse
-
Method Summary
Modifier and TypeMethodDescriptionWhether this schema is active.additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) allowedSurfaces(List<SchemaResponseAllowedSurfacesItem> allowedSurfaces) allowedSurfaces(Optional<List<SchemaResponseAllowedSurfacesItem>> allowedSurfaces) Which typed surfaces may bind this schema:record,document,user, orentity— identity entities in ANY namespace (org,client, or one you registered) bind under the singleentitysurface.The id of the schema this one is a customization of, or null if this schema IS the shared base fortypeNamein this context.build()capabilities(Map<String, Boolean> capabilities) capabilities(Optional<Map<String, Boolean>> capabilities) Feature flags for this schema.Whether this call created a new schema.When the schema was created, as an ISO-8601 UTC timestamp.description(String description) description(Optional<String> description) Description of what this schema is for.displayName(String displayName) displayName(Optional<String> displayName) Human-readable display name.Field definitions used to validate record payloads.from(SchemaResponse other) Unique identifier for this schema.indexMode(SchemaResponseIndexMode indexMode) indexMode(Optional<SchemaResponseIndexMode> indexMode) Default search-index mode for this type's records: HYBRID, SEMANTIC, TEXT, or NONE (store-only, not searchable).lookupFields(List<LookupDef> lookupFields) lookupFields(Optional<List<LookupDef>> lookupFields) Payload fields indexed for direct lookup queries.renderHints(Map<String, RenderHintDef> renderHints) renderHints(Optional<Map<String, RenderHintDef>> renderHints) UI rendering hints keyed by field id.schemaVersion(Integer schemaVersion) schemaVersion(Optional<Integer> schemaVersion) Schema version number, incremented each time the schema definition changes.storageProfile(SchemaResponseStorageProfile storageProfile) storageProfile(Optional<SchemaResponseStorageProfile> storageProfile) Payload storage profile: STANDARD (externalize large payloads to S3), LOW_LATENCY (always store inline), or LARGE_PAYLOAD (always externalize).Type identifier for this schema.When the schema was last modified, as an ISO-8601 UTC timestamp.
-
Method Details
-
from
-
created
Whether this call created a new schema. True when a new schema was created; false when a schema with the same
typeNamealready existed and was returned unchanged (idempotent create) or reconciled to the submitted shape (when?upsert=true). Present only on the create response (POST /v1/schemas); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing schema was returned. -
created
-
id
Unique identifier for this schema.
-
id
-
typeName
Type identifier for this schema.
-
typeName
-
displayName
Human-readable display name.
-
displayName
-
description
Description of what this schema is for.
-
description
-
fields
Field definitions used to validate record payloads.
-
fields
-
lookupFields
Payload fields indexed for direct lookup queries.
-
lookupFields
-
renderHints
UI rendering hints keyed by field id.
-
renderHints
-
capabilities
Feature flags for this schema.
auditHistory(default true) controls whether a change-history (version) trail is kept for this type's data; it never affects the records themselves.readAccessLog(default false) controls accounting-of-disclosures logging for reads of this type's records. -
capabilities
-
storageProfile
Payload storage profile: STANDARD (externalize large payloads to S3), LOW_LATENCY (always store inline), or LARGE_PAYLOAD (always externalize). Defaults to STANDARD.
-
storageProfile
-
indexMode
Default search-index mode for this type's records: HYBRID, SEMANTIC, TEXT, or NONE (store-only, not searchable).
-
indexMode
-
allowedSurfaces
public SchemaResponse.Builder allowedSurfaces(Optional<List<SchemaResponseAllowedSurfacesItem>> allowedSurfaces) Which typed surfaces may bind this schema:
record,document,user, orentity— identity entities in ANY namespace (org,client, or one you registered) bind under the singleentitysurface. Always present (it is required at write time). -
allowedSurfaces
public SchemaResponse.Builder allowedSurfaces(List<SchemaResponseAllowedSurfacesItem> allowedSurfaces) -
active
Whether this schema is active.
-
active
-
basedOn
The id of the schema this one is a customization of, or null if this schema IS the shared base for
typeNamein this context. -
basedOn
-
schemaVersion
Schema version number, incremented each time the schema definition changes.
-
schemaVersion
-
createdAt
When the schema was created, as an ISO-8601 UTC timestamp.
-
createdAt
-
updatedAt
When the schema was last modified, as an ISO-8601 UTC timestamp.
-
updatedAt
-
build
-
additionalProperty
-
additionalProperties
-