Package ai.vectros.resources.schemas
Class RawSchemasClient
java.lang.Object
ai.vectros.resources.schemas.RawSchemasClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSchema(CreateSchemaRequest request) Defines a new record type with optional field definitions, validation rules, and lookup indexes.createSchema(CreateSchemaRequest request, RequestOptions requestOptions) Defines a new record type with optional field definitions, validation rules, and lookup indexes.createSchema(SchemaRequest body) Defines a new record type with optional field definitions, validation rules, and lookup indexes.createSchema(SchemaRequest body, RequestOptions requestOptions) Defines a new record type with optional field definitions, validation rules, and lookup indexes.deleteSchema(String id) Permanently deletes a record schema.deleteSchema(String id, RequestOptions requestOptions) Permanently deletes a record schema.deleteSchema(String id, DeleteSchemaRequest request) Permanently deletes a record schema.deleteSchema(String id, DeleteSchemaRequest request, RequestOptions requestOptions) Permanently deletes a record schema.Retrieves a single record schema by its id.getSchema(String id, RequestOptions requestOptions) Retrieves a single record schema by its id.getSchema(String id, GetSchemaRequest request) Retrieves a single record schema by its id.getSchema(String id, GetSchemaRequest request, RequestOptions requestOptions) Retrieves a single record schema by its id.Returns the audit trail of changes to a record schema, newest first (create, update, and delete).getSchemaVersions(String id, RequestOptions requestOptions) Returns the audit trail of changes to a record schema, newest first (create, update, and delete).getSchemaVersions(String id, GetSchemaVersionsRequest request) Returns the audit trail of changes to a record schema, newest first (create, update, and delete).getSchemaVersions(String id, GetSchemaVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes to a record schema, newest first (create, update, and delete).Returns a paginated list of the record schemas defined in your account.listSchemas(RequestOptions requestOptions) Returns a paginated list of the record schemas defined in your account.listSchemas(ListSchemasRequest request) Returns a paginated list of the record schemas defined in your account.listSchemas(ListSchemasRequest request, RequestOptions requestOptions) Returns a paginated list of the record schemas defined in your account.updateSchema(String id, UpdateSchemaRequest request) Updates a record schema.updateSchema(String id, UpdateSchemaRequest request, RequestOptions requestOptions) Updates a record schema.
-
Field Details
-
clientOptions
-
-
Constructor Details
-
RawSchemasClient
-
-
Method Details
-
listSchemas
Returns a paginated list of the record schemas defined in your account. Filter byuserIdorscopeto scope to an owner, bysurfaceto list the types bindable to one surface, or byrecordTypeto resolve the single schema for a type directly. Filtering bysurface=userlists your account-wide identity schemas regardless of the calling context (auser-surfaced schema always has one tenant-wide home). Filtering bysurface=entityreads your own app context's entity schemas AND the tenant-wide home together, newest first, through a single cursor — an entity schema may live in either home depending on where its namespace is placed (seePOST /v1/namespaces). Filtering byrecordordocumentlists within the calling context only. Requires theschemas:rscope. -
listSchemas
Returns a paginated list of the record schemas defined in your account. Filter byuserIdorscopeto scope to an owner, bysurfaceto list the types bindable to one surface, or byrecordTypeto resolve the single schema for a type directly. Filtering bysurface=userlists your account-wide identity schemas regardless of the calling context (auser-surfaced schema always has one tenant-wide home). Filtering bysurface=entityreads your own app context's entity schemas AND the tenant-wide home together, newest first, through a single cursor — an entity schema may live in either home depending on where its namespace is placed (seePOST /v1/namespaces). Filtering byrecordordocumentlists within the calling context only. Requires theschemas:rscope. -
listSchemas
Returns a paginated list of the record schemas defined in your account. Filter byuserIdorscopeto scope to an owner, bysurfaceto list the types bindable to one surface, or byrecordTypeto resolve the single schema for a type directly. Filtering bysurface=userlists your account-wide identity schemas regardless of the calling context (auser-surfaced schema always has one tenant-wide home). Filtering bysurface=entityreads your own app context's entity schemas AND the tenant-wide home together, newest first, through a single cursor — an entity schema may live in either home depending on where its namespace is placed (seePOST /v1/namespaces). Filtering byrecordordocumentlists within the calling context only. Requires theschemas:rscope. -
listSchemas
public VectrosApiHttpResponse<SchemaPage> listSchemas(ListSchemasRequest request, RequestOptions requestOptions) Returns a paginated list of the record schemas defined in your account. Filter byuserIdorscopeto scope to an owner, bysurfaceto list the types bindable to one surface, or byrecordTypeto resolve the single schema for a type directly. Filtering bysurface=userlists your account-wide identity schemas regardless of the calling context (auser-surfaced schema always has one tenant-wide home). Filtering bysurface=entityreads your own app context's entity schemas AND the tenant-wide home together, newest first, through a single cursor — an entity schema may live in either home depending on where its namespace is placed (seePOST /v1/namespaces). Filtering byrecordordocumentlists within the calling context only. Requires theschemas:rscope. -
createSchema
Defines a new record type with optional field definitions, validation rules, and lookup indexes. Idempotent bytypeNamewithin the same ownership scope: re-creating an existingtypeNamereturns the existing schema rather than failing. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing schema was returned) tells the two apart. To reconcile an existing schema to the submitted shape instead of returning it unchanged, set?upsert=true(this also requires theschemas:uscope; only legal schema changes are applied — migration-locked changes are rejected). Requires theschemas:cscope to create. Being returned the existing schema on a collision is a read of that schema's data and additionally requires theschemas:rscope — a credential holdingschemas:calone receives a400("already in use") on collision instead of the schema. -
createSchema
public VectrosApiHttpResponse<SchemaResponse> createSchema(SchemaRequest body, RequestOptions requestOptions) Defines a new record type with optional field definitions, validation rules, and lookup indexes. Idempotent bytypeNamewithin the same ownership scope: re-creating an existingtypeNamereturns the existing schema rather than failing. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing schema was returned) tells the two apart. To reconcile an existing schema to the submitted shape instead of returning it unchanged, set?upsert=true(this also requires theschemas:uscope; only legal schema changes are applied — migration-locked changes are rejected). Requires theschemas:cscope to create. Being returned the existing schema on a collision is a read of that schema's data and additionally requires theschemas:rscope — a credential holdingschemas:calone receives a400("already in use") on collision instead of the schema. -
createSchema
Defines a new record type with optional field definitions, validation rules, and lookup indexes. Idempotent bytypeNamewithin the same ownership scope: re-creating an existingtypeNamereturns the existing schema rather than failing. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing schema was returned) tells the two apart. To reconcile an existing schema to the submitted shape instead of returning it unchanged, set?upsert=true(this also requires theschemas:uscope; only legal schema changes are applied — migration-locked changes are rejected). Requires theschemas:cscope to create. Being returned the existing schema on a collision is a read of that schema's data and additionally requires theschemas:rscope — a credential holdingschemas:calone receives a400("already in use") on collision instead of the schema. -
createSchema
public VectrosApiHttpResponse<SchemaResponse> createSchema(CreateSchemaRequest request, RequestOptions requestOptions) Defines a new record type with optional field definitions, validation rules, and lookup indexes. Idempotent bytypeNamewithin the same ownership scope: re-creating an existingtypeNamereturns the existing schema rather than failing. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing schema was returned) tells the two apart. To reconcile an existing schema to the submitted shape instead of returning it unchanged, set?upsert=true(this also requires theschemas:uscope; only legal schema changes are applied — migration-locked changes are rejected). Requires theschemas:cscope to create. Being returned the existing schema on a collision is a read of that schema's data and additionally requires theschemas:rscope — a credential holdingschemas:calone receives a400("already in use") on collision instead of the schema. -
getSchema
Retrieves a single record schema by its id. Requires theschemas:rscope. -
getSchema
Retrieves a single record schema by its id. Requires theschemas:rscope. -
getSchema
Retrieves a single record schema by its id. Requires theschemas:rscope. -
getSchema
public VectrosApiHttpResponse<SchemaResponse> getSchema(String id, GetSchemaRequest request, RequestOptions requestOptions) Retrieves a single record schema by its id. Requires theschemas:rscope. -
updateSchema
Updates a record schema. Fields you omit are preserved;typeNameis immutable and cannot be changed. Collection fields (fields,lookupFields,renderHints,capabilities) are replaced in full when supplied. Requires theschemas:uscope. -
updateSchema
public VectrosApiHttpResponse<SchemaResponse> updateSchema(String id, UpdateSchemaRequest request, RequestOptions requestOptions) Updates a record schema. Fields you omit are preserved;typeNameis immutable and cannot be changed. Collection fields (fields,lookupFields,renderHints,capabilities) are replaced in full when supplied. Requires theschemas:uscope. -
deleteSchema
Permanently deletes a record schema. The request is refused with 409 if records of this type still exist — delete those records first, since every record must reference a live schema. A lineage base (a schema other schemas declarebasedOn) also cannot be deleted while any such variant still exists — delete the variant schema(s) first. Requires theschemas:dscope. -
deleteSchema
Permanently deletes a record schema. The request is refused with 409 if records of this type still exist — delete those records first, since every record must reference a live schema. A lineage base (a schema other schemas declarebasedOn) also cannot be deleted while any such variant still exists — delete the variant schema(s) first. Requires theschemas:dscope. -
deleteSchema
Permanently deletes a record schema. The request is refused with 409 if records of this type still exist — delete those records first, since every record must reference a live schema. A lineage base (a schema other schemas declarebasedOn) also cannot be deleted while any such variant still exists — delete the variant schema(s) first. Requires theschemas:dscope. -
deleteSchema
public VectrosApiHttpResponse<Void> deleteSchema(String id, DeleteSchemaRequest request, RequestOptions requestOptions) Permanently deletes a record schema. The request is refused with 409 if records of this type still exist — delete those records first, since every record must reference a live schema. A lineage base (a schema other schemas declarebasedOn) also cannot be deleted while any such variant still exists — delete the variant schema(s) first. Requires theschemas:dscope. -
getSchemaVersions
Returns the audit trail of changes to a record schema, newest first (create, update, and delete). Schema version history is always recorded — there is no per-schema toggle to disable it. Requires theschemas:rscope. -
getSchemaVersions
public VectrosApiHttpResponse<ModelDataVersionPage> getSchemaVersions(String id, RequestOptions requestOptions) Returns the audit trail of changes to a record schema, newest first (create, update, and delete). Schema version history is always recorded — there is no per-schema toggle to disable it. Requires theschemas:rscope. -
getSchemaVersions
public VectrosApiHttpResponse<ModelDataVersionPage> getSchemaVersions(String id, GetSchemaVersionsRequest request) Returns the audit trail of changes to a record schema, newest first (create, update, and delete). Schema version history is always recorded — there is no per-schema toggle to disable it. Requires theschemas:rscope. -
getSchemaVersions
public VectrosApiHttpResponse<ModelDataVersionPage> getSchemaVersions(String id, GetSchemaVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes to a record schema, newest first (create, update, and delete). Schema version history is always recorded — there is no per-schema toggle to disable it. Requires theschemas:rscope.
-