Package ai.vectros.resources.folders
Class AsyncRawFoldersClient
java.lang.Object
ai.vectros.resources.folders.AsyncRawFoldersClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFolder(CreateFolderRequest request) Creates a folder to organize your documents and records.createFolder(CreateFolderRequest request, RequestOptions requestOptions) Creates a folder to organize your documents and records.createFolder(FolderRequest body) Creates a folder to organize your documents and records.createFolder(FolderRequest body, RequestOptions requestOptions) Creates a folder to organize your documents and records.deleteFolder(String id) Permanently deletes a folder.deleteFolder(String id, RequestOptions requestOptions) Permanently deletes a folder.deleteFolder(String id, DeleteFolderRequest request) Permanently deletes a folder.deleteFolder(String id, DeleteFolderRequest request, RequestOptions requestOptions) Permanently deletes a folder.Retrieves a single folder by its ID.getFolder(String id, RequestOptions requestOptions) Retrieves a single folder by its ID.getFolder(String id, GetFolderRequest request) Retrieves a single folder by its ID.getFolder(String id, GetFolderRequest request, RequestOptions requestOptions) Retrieves a single folder by its ID.Returns the audit trail of changes (create, update, and delete events) for a folder, newest first.getFolderVersions(String id, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a folder, newest first.getFolderVersions(String id, GetFolderVersionsRequest request) Returns the audit trail of changes (create, update, and delete events) for a folder, newest first.getFolderVersions(String id, GetFolderVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a folder, newest first.Returns a paginated list of your folders.listFolders(RequestOptions requestOptions) Returns a paginated list of your folders.listFolders(ListFoldersRequest request) Returns a paginated list of your folders.listFolders(ListFoldersRequest request, RequestOptions requestOptions) Returns a paginated list of your folders.patchFolder(String id, PatchFolderRequest request) Partially updates a folder using an RFC 7386 JSON Merge Patch.patchFolder(String id, PatchFolderRequest request, RequestOptions requestOptions) Partially updates a folder using an RFC 7386 JSON Merge Patch.updateFolder(String id, UpdateFolderRequest request) Replaces a folder's name and description.updateFolder(String id, UpdateFolderRequest request, RequestOptions requestOptions) Replaces a folder's name and description.
-
Field Details
-
clientOptions
-
-
Constructor Details
-
AsyncRawFoldersClient
-
-
Method Details
-
listFolders
Returns a paginated list of your folders. PassparentFolderIdto list the direct children of a specific folder (tree navigation); omit it for a flat list across your account. You can also filter by owner usinguserIdorscope. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
listFolders
public CompletableFuture<VectrosApiHttpResponse<FolderPage>> listFolders(RequestOptions requestOptions) Returns a paginated list of your folders. PassparentFolderIdto list the direct children of a specific folder (tree navigation); omit it for a flat list across your account. You can also filter by owner usinguserIdorscope. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
listFolders
public CompletableFuture<VectrosApiHttpResponse<FolderPage>> listFolders(ListFoldersRequest request) Returns a paginated list of your folders. PassparentFolderIdto list the direct children of a specific folder (tree navigation); omit it for a flat list across your account. You can also filter by owner usinguserIdorscope. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
listFolders
public CompletableFuture<VectrosApiHttpResponse<FolderPage>> listFolders(ListFoldersRequest request, RequestOptions requestOptions) Returns a paginated list of your folders. PassparentFolderIdto list the direct children of a specific folder (tree navigation); omit it for a flat list across your account. You can also filter by owner usinguserIdorscope. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
createFolder
Creates a folder to organize your documents and records. IfparentFolderIdis omitted, the folder is created under your context's default root folder. Folder creation is idempotent by (slug + parent): if a folder with the same slug already exists under the same parent, that existing folder is returned unchanged instead of a duplicate being created. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing folder was returned) tells the two apart. To overwrite an existing folder's mutable fields instead of returning it unchanged, set?upsert=true(this also requires thefolders:uscope). Requires thefolders:cscope to create. Being returned the existing folder on a collision is a read of that folder's data and additionally requires thefolders:rscope — a credential holdingfolders:calone receives a400("already exists") on collision instead of the folder. -
createFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> createFolder(FolderRequest body, RequestOptions requestOptions) Creates a folder to organize your documents and records. IfparentFolderIdis omitted, the folder is created under your context's default root folder. Folder creation is idempotent by (slug + parent): if a folder with the same slug already exists under the same parent, that existing folder is returned unchanged instead of a duplicate being created. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing folder was returned) tells the two apart. To overwrite an existing folder's mutable fields instead of returning it unchanged, set?upsert=true(this also requires thefolders:uscope). Requires thefolders:cscope to create. Being returned the existing folder on a collision is a read of that folder's data and additionally requires thefolders:rscope — a credential holdingfolders:calone receives a400("already exists") on collision instead of the folder. -
createFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> createFolder(CreateFolderRequest request) Creates a folder to organize your documents and records. IfparentFolderIdis omitted, the folder is created under your context's default root folder. Folder creation is idempotent by (slug + parent): if a folder with the same slug already exists under the same parent, that existing folder is returned unchanged instead of a duplicate being created. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing folder was returned) tells the two apart. To overwrite an existing folder's mutable fields instead of returning it unchanged, set?upsert=true(this also requires thefolders:uscope). Requires thefolders:cscope to create. Being returned the existing folder on a collision is a read of that folder's data and additionally requires thefolders:rscope — a credential holdingfolders:calone receives a400("already exists") on collision instead of the folder. -
createFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> createFolder(CreateFolderRequest request, RequestOptions requestOptions) Creates a folder to organize your documents and records. IfparentFolderIdis omitted, the folder is created under your context's default root folder. Folder creation is idempotent by (slug + parent): if a folder with the same slug already exists under the same parent, that existing folder is returned unchanged instead of a duplicate being created. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing folder was returned) tells the two apart. To overwrite an existing folder's mutable fields instead of returning it unchanged, set?upsert=true(this also requires thefolders:uscope). Requires thefolders:cscope to create. Being returned the existing folder on a collision is a read of that folder's data and additionally requires thefolders:rscope — a credential holdingfolders:calone receives a400("already exists") on collision instead of the folder. -
getFolder
Retrieves a single folder by its ID. Requires thefolders:rscope. -
getFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> getFolder(String id, RequestOptions requestOptions) Retrieves a single folder by its ID. Requires thefolders:rscope. -
getFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> getFolder(String id, GetFolderRequest request) Retrieves a single folder by its ID. Requires thefolders:rscope. -
getFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> getFolder(String id, GetFolderRequest request, RequestOptions requestOptions) Retrieves a single folder by its ID. Requires thefolders:rscope. -
updateFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> updateFolder(String id, UpdateFolderRequest request) Replaces a folder's name and description. Omitted fields are preserved (a null does not clear a field). The slug and parent folder are immutable and cannot be changed here. Requires thefolders:uscope. -
updateFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> updateFolder(String id, UpdateFolderRequest request, RequestOptions requestOptions) Replaces a folder's name and description. Omitted fields are preserved (a null does not clear a field). The slug and parent folder are immutable and cannot be changed here. Requires thefolders:uscope. -
deleteFolder
Permanently deletes a folder. The folder must be empty (contain no documents or sub-folders) and must not be protected. Your context's root folder is protected and cannot be deleted. Requires thefolders:dscope. -
deleteFolder
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteFolder(String id, RequestOptions requestOptions) Permanently deletes a folder. The folder must be empty (contain no documents or sub-folders) and must not be protected. Your context's root folder is protected and cannot be deleted. Requires thefolders:dscope. -
deleteFolder
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteFolder(String id, DeleteFolderRequest request) Permanently deletes a folder. The folder must be empty (contain no documents or sub-folders) and must not be protected. Your context's root folder is protected and cannot be deleted. Requires thefolders:dscope. -
deleteFolder
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteFolder(String id, DeleteFolderRequest request, RequestOptions requestOptions) Permanently deletes a folder. The folder must be empty (contain no documents or sub-folders) and must not be protected. Your context's root folder is protected and cannot be deleted. Requires thefolders:dscope. -
patchFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> patchFolder(String id, PatchFolderRequest request) Partially updates a folder using an RFC 7386 JSON Merge Patch. Thename,description, and ownership fields (userId,scopes) are applied when present and left unchanged when omitted; sending any of these as null is rejected, because clearing a field is not supported in this release (omit it instead).slugandparentFolderIdare immutable — a folder cannot be re-slugged or moved via the API — and the request is rejected if either is present. PassexpectedVersionfor optimistic concurrency (you get a 409 if the folder changed since you last read it). Requires thefolders:uscope. -
patchFolder
public CompletableFuture<VectrosApiHttpResponse<FolderResponse>> patchFolder(String id, PatchFolderRequest request, RequestOptions requestOptions) Partially updates a folder using an RFC 7386 JSON Merge Patch. Thename,description, and ownership fields (userId,scopes) are applied when present and left unchanged when omitted; sending any of these as null is rejected, because clearing a field is not supported in this release (omit it instead).slugandparentFolderIdare immutable — a folder cannot be re-slugged or moved via the API — and the request is rejected if either is present. PassexpectedVersionfor optimistic concurrency (you get a 409 if the folder changed since you last read it). Requires thefolders:uscope. -
getFolderVersions
Returns the audit trail of changes (create, update, and delete events) for a folder, newest first. Folder version history is always recorded; there is no setting to turn it off. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
getFolderVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getFolderVersions(String id, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a folder, newest first. Folder version history is always recorded; there is no setting to turn it off. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
getFolderVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getFolderVersions(String id, GetFolderVersionsRequest request) Returns the audit trail of changes (create, update, and delete events) for a folder, newest first. Folder version history is always recorded; there is no setting to turn it off. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope. -
getFolderVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getFolderVersions(String id, GetFolderVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a folder, newest first. Folder version history is always recorded; there is no setting to turn it off. Results are returned as a{data, nextCursor}envelope — passnextCursorasstartFromto fetch the next page. Requires thefolders:rscope.
-