# Table of Contents
Table of Contents
Section titled “Table of Contents”- FileServiceClient
- FilesImpl
- Parameters
- getByPath
- getByPath
- getByPath
- getByPath
- get
- get
- get
- get
- update
- updateWithOptions
- delete
- deleteWithOptions
- move
- moveWithOptions
- rename
- renameWithOptions
- copy
- copy
- copy
- copy
- copyWithOptions
- restore
- restore
- restore
- restore
- restoreWithOptions
- getVersion
- getVersion
- getVersion
- getVersion
- listVersions
- listVersions
- listVersions
- listVersions
- getVersionByPath
- getVersionByPath
- getVersionByPath
- getVersionByPath
- listVersionsByPath
- listVersionsByPath
- listVersionsByPath
- listVersionsByPath
- listResources
- listResources
- listResources
- listResources
- listResourcesByPath
- listResourcesByPath
- listResourcesByPath
- listResourcesByPath
- createFileUpload
- createFileUploadWithOptions
- createSupportFileUpload
- createSupportFileUploadWithOptions
- uploadFile
- upload
- createOrUpdateLinks
- getUploadDetails
- lock
- lock
- lock
- lock
- unlock
- checkout
- checkin
- defineProperty
- defineProperty
- byteLength
- validateFileUploadConfiguration
- SpacesImpl
- getQueryParametersFromObject
- FoldersImpl
- Parameters
- create
- create
- create
- create
- getByPath
- getByPath
- getByPath
- getByPath
- get
- get
- get
- get
- update
- updateWithOptions
- delete
- deleteWithOptions
- move
- moveWithOptions
- rename
- renameWithOptions
- copy
- copy
- copy
- copy
- copyWithOptions
- restore
- restore
- restore
- restore
- restoreWithOptions
- list
- list
- list
- list
- getVersion
- getVersion
- getVersion
- getVersion
- listVersions
- listVersions
- listVersions
- listVersions
- listByPath
- listByPath
- listByPath
- listByPath
- getVersionByPath
- getVersionByPath
- getVersionByPath
- getVersionByPath
- listVersionsByPath
- listVersionsByPath
- listVersionsByPath
- listVersionsByPath
- JobsImpl
- ExportsImpl
- EventType
- EventType
- EventsManager
- ResourcesImpl
- __awaiter
- transformDateKey
- transformLinksKey
- transformDefaultKey
- transformKey
- transformResponse
- isValidUrlDuration
- getJobIdFromPath
- getNextPageToken
- getClientId
- Acl
- Acl
- Acl
- Acl
- SpaceCreateOptionalParams
- SoftDeleteRetention
- Provider
- SpaceResponse
- MinimalSpaceResponse
- SpaceUpdateParams
- SpaceDeleteOptionalParams
- SpaceDeleteResponse
- SpaceRestoreResponse
- SpaceStatistics
- Status
- EntityType
- SpacePermissionsLocal
- SpaceUpdatePermissionsLocal
- SpaceUpdateAcl
- SpaceRemoveAcl
- SpaceListOptionalParams
- SpaceListResponse
- AclRole
- AclRole
- AclActor
- InheritedAcl
- PermissionsEvaluated
- PermissionsInherited
- FolderCreateOptionalParams
- FolderResponse
- MinimalFolderResponse
- FolderUpdateParams
- FolderDeleteOptionalParams
- FolderCopyOptionalParams
- FolderDeleteResponse
- FolderRestoreOptionalParams
- FolderListOptionalParams
- FileOrFolderListResponse
- FolderListResponse
- FolderRestoreResponse
- FolderJobResponse
- FolderCopyResponse
- FolderRenameResponse
- FolderMoveResponse
- FolderStatistics
- FolderPermissionsLocal
- FolderUpdatePermissionsLocal
- FolderUpdateAcl
- FileResponse
- createdAt
- createdByTrn
- updatedAt
- updatedByTrn
- deleted
- deletedAt
- name
- id
- resourceTrn
- type
- spaceId
- spaceTrn
- version
- metadata
- path
- parentId
- parentType
- parentTrn
- permissionsLocal
- permissionsEvaluated
- permissionsInherited
- restrictedAccess
- fileset
- expiresAt
- multipart
- responseHeaders
- response
- download
- malwareScanStatus
- malwareScanResult
- malwareType
- lastMalwareScanDate
- size
- links
- md5
- lock
- stats
- capabilities
- checkout
- MinimalFileResponse
- FilePermissionsLocal
- FileLockResponse
- Checkout
- FileStatistics
- SupportFileResponse
- FileGetOptionalParams
- MalwareScanStatus
- FileUpdateParams
- FileUpdatePermissionsLocal
- FileUpdateAcl
- SupportFileLinkParams
- SupportFileLinkDetails
- FileDeleteOptionalParams
- FileDeleteResponse
- FileRestoreOptionalParams
- FileJobResponse
- FileRestoreResponse
- FileCopyResponse
- FileListOptionalParams
- FileListResponse
- UploadOptions
- FileUploadOptionalParams
- multipart
- urlDuration
- restrictedAccess
- fileset
- expiresAt
- responseHeaders
- metadata
- multipart
- supportFileKey
- parentMajorVersion
- addToLinks
- SupportFileUploadResponse
- FileUploadResponse
- FileInputUploadDetails
- Upload
- FileUploadType
- UploadStatus
- FileChunkUploadResponse
- UploadResponse
- FileCopyOptionalParams
- UploadOptionalParams
- FileLockOptionalParams
- FileCheckoutOptionalParams
- FileContent
- JobResponse
- JobResponse
- JobType
- JobStatus
- EventResponse
- EventResponse
- Capabilities
- Capabilities
- ExportResponse
- ExportResponse
- ExportStatus
- Output
- ResourceGetOptionalParams
- ResourceBatchGetParams
- ResourceBatchResponse
- InvalidItems
FileServiceClient
Section titled “FileServiceClient”Represents a client for interacting with the File Service API.
Parameters
Section titled “Parameters”tokenProviderITokenProvider The token provider.baseUrlstring The base URL of the File Service API.
httpClientProvider
Section titled “httpClientProvider”Represents the HTTP client provider.
Type: BearerTokenHttpClientProvider
tokenProvider
Section titled “tokenProvider”Represents a token provider.
Type: ITokenProvider
spaces
Section titled “spaces”Represents the implementation of the Spaces.
Type: SpacesImpl
folders
Section titled “folders”Represents the implementation of the Folders.
Type: FoldersImpl
Represents the implementation of the Files.
Type: FilesImpl
Represents the implementation of the Jobs.
Type: JobsImpl
exports
Section titled “exports”Represents the implementation of the Exports.
Type: ExportsImpl
resources
Section titled “resources”Represents the implementation of the
FilesImpl
Section titled “FilesImpl”Represents the implementation of the Files operations.
Parameters
Section titled “Parameters”clientFileServiceClient A FileServiceClient instance used to make API calls.
getByPath
Section titled “getByPath”Get file by path.
Parameters
Section titled “Parameters”- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to a complete file response.
getByPath
Section titled “getByPath”Get file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Path of the fileparamsFileGetOptionalParams Optional parameters used to get file.
- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to a complete file response.
getByPath
Section titled “getByPath”Get file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Path of the fileminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
getByPath
Section titled “getByPath”Get file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Path of the fileparamsFileGetOptionalParams Optional parameters used to get file.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
Get file by ID.
Parameters
Section titled “Parameters”- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to complete file response.
Get file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileGetOptionalParams Optional parameters used to get file.
- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to complete file response.
Get file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to file response.
Get file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileGetOptionalParams Optional parameters used to get file.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to file response.
update
Section titled “update”Updates the file metadata and ACL. Linking/unlinking operation can only be done on a parent file.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileUpdateParams Parameters for the file update.minimalResponseboolean Indicate if the response should be complete or minimal (optional, defaultfalse)
- Throws Error If there was an error updating the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a updated file object.
updateWithOptions
Section titled “updateWithOptions”Updates file by ID.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
fileIdstring File identifier -
paramsFileUpdateParams Parameters for the file update. -
optionsobject Additional options for the update operation. (optional, default{minimalResponse:false})
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to an updated file object.
delete
Section titled “delete”Deletes the file by ID. If the file is a parent file, then all the support files linked to the parent file are also deleted.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileDeleteOptionalParams Optional parameters for the file delete.
- Throws Error If there was an error deleting the file.
Returns Promise<FileDeleteResponse> A promise that resolves to the result of the delete operation.
deleteWithOptions
Section titled “deleteWithOptions”Deletes the file by ID.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
fileIdstring File identifier -
optionsobject Additional options for the delete operation.options.paramsFileDeleteOptionalParams? Optional parameters for the file delete.options.requestHeadersRecord<string, (string | Array<string>)>? Optional request headers to include in the delete request. Supported headers: “If-Match”, “If-None-Match”.
- Throws Error If there was an error deleting the file.
Returns Promise<FileDeleteResponse> A promise that resolves to the result of the delete operation.
Move a file to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifiertargetParentIdstring target where the source file need to be movedminimalResponseboolean Indicate if the response should be complete or minimal (optional, defaultfalse)
- Throws Error If there was an error moving the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves the moved file response.
moveWithOptions
Section titled “moveWithOptions”Move a file to a new location within the same space.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
fileIdstring File identifier -
targetParentIdstring Target where the source file needs to be moved. -
optionsobject Additional options for the move operation. (optional, default{minimalResponse:false})
- Throws Error If there was an error moving the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to the moved file response.
rename
Section titled “rename”Rename a file within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifiernamestring New name for the fileminimalResponseboolean Indicate if the response should be complete or minimal (optional, defaultfalse)
- Throws Error If there was an error renaming the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to the renamed file response.
renameWithOptions
Section titled “renameWithOptions”Rename a file within the same space.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
fileIdstring File identifier -
namestring New name for the file -
optionsobject Additional options for the rename operation. (optional, default{minimalResponse:false})
- Throws Error If there was an error renaming the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to the renamed file response.
Copies a file from one folder to another within the given space. Support files can be copied and linked to parent file during the copy operation by using the copySupportFiles parameter.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.fileIdstring File identifier.targetParentIdstring Target where the source file needs to be copied.
- Throws any If there was an error copying the file.
Returns Promise<FileCopyResponse> A Promise that resolves to the result of the copy operation with a complete response.
Copies a file from one folder to another within the given space. Support files can be copied and linked to parent file during the copy operation by using the copySupportFiles parameter.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.fileIdstring File identifier.targetParentIdstring Target where the source file needs to be copied.paramsFileCopyOptionalParams Optional parameters for copying the file.
- Throws any If there was an error copying the file.
Returns Promise<FileCopyResponse> A Promise that resolves to the result of the copy operation with a complete response.
Copies a file from one folder to another within the given space. Support files can be copied and linked to parent file during the copy operation by using the copySupportFiles parameter.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.fileIdstring File identifier.targetParentIdstring Target where the source file needs to be copied.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error copying the file.
Returns Promise<FileCopyResponse> A Promise that resolves to the result of the copy operation.
Copies a file from one folder to another within the given space. Support files can be copied and linked to parent file during the copy operation by using the copySupportFiles parameter.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.fileIdstring File identifier.targetParentIdstring Target where the source file needs to be copied.paramsFileCopyOptionalParams Optional parameters for copying the file.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error copying the file.
Returns Promise<FileCopyResponse> A Promise that resolves to the result of the copy operation.
copyWithOptions
Section titled “copyWithOptions”Copies a file from one folder to another within the given space with additional options.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier. -
fileIdstring File identifier. -
targetParentIdstring Target where the source file needs to be copied. -
optionsobject Additional options for the copy operation. (optional, default{minimalResponse:false})options.paramsFileCopyOptionalParams? Optional parameters for copying the file.options.requestHeadersRecord<string, (string | Array<string>)>? Optional request headers to include in the copy request. Supported headers: “If-Match”, “If-None-Match”.options.minimalResponseboolean? Indicate if the response should be complete or minimal.
- Throws any If there was an error copying the file.
Returns Promise<FileCopyResponse> A Promise that resolves to the result of the copy operation.
restore
Section titled “restore”Restore a deleted file by ID.
Parameters
Section titled “Parameters”- Throws Error If there was an error restoring the file.
Returns Promise<FileRestoreResponse> A Promise that resolves to the result of the restore operation with a complete response.
restore
Section titled “restore”Restore a deleted file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparams(FileRestoreOptionalParams | boolean) Optional parameters for the file restore.
- Throws Error If there was an error restoring the file.
Returns Promise<FileRestoreResponse> A Promise that resolves to the result of the restore operation with a complete response.
restore
Section titled “restore”Restore a deleted file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error restoring the file.
Returns Promise<FileRestoreResponse> A Promise that resolves to the result of the restore operation.
restore
Section titled “restore”Restore a deleted file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparams(FileRestoreOptionalParams | boolean) Optional parameters for the file restore.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error restoring the file.
Returns Promise<FileRestoreResponse> A Promise that resolves to the result of the restore operation.
restoreWithOptions
Section titled “restoreWithOptions”Restore a deleted file by ID.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
fileIdstring File identifier -
optionsobject Additional options for the restore operation. (optional, default{minimalResponse:false})options.paramsFileRestoreOptionalParams? Optional parameters for the file restore.options.requestHeadersRecord<string, (string | Array<string>)>? Optional request headers to include in the restore request. Supported headers: “If-Match”, “If-None-Match”.options.minimalResponseboolean? Indicate if the response should be complete or minimal
- Throws Error If there was an error restoring the file.
Returns Promise<FileRestoreResponse> A Promise that resolves to the result of the restore operation.
getVersion
Section titled “getVersion”Get a specific version of a file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.
- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to a complete file response.
getVersion
Section titled “getVersion”Get a specific version of a file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.paramsFileGetOptionalParams Optional parameters used to get a file version.
- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to a complete file response.
getVersion
Section titled “getVersion”Get a specific version of a file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
getVersion
Section titled “getVersion”Get a specific version of a file by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.paramsFileGetOptionalParams Optional parameters used to get a file version.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
listVersions
Section titled “listVersions”Get all versions of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a complete file list response.
listVersions
Section titled “listVersions”Get all versions of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileListOptionalParams Optional parameters used to list file versions.
- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a complete file list response.
listVersions
Section titled “listVersions”Get all versions of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a file list response.
listVersions
Section titled “listVersions”Get all versions of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileListOptionalParams Optional parameters used to list file versions.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a file list response.
getVersionByPath
Section titled “getVersionByPath”Get a specific version of a file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.pathstring Path of the file.
- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> A promise that resolves to a complete file response.
getVersionByPath
Section titled “getVersionByPath”Get a specific version of a file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.pathstring Path of the file.paramsFileGetOptionalParams Optional parameters used to get file versions.
- Throws Error If there was an error retrieving the file information.
Returns Promise<FileResponse> -A promise that resolves to a complete file response.
getVersionByPath
Section titled “getVersionByPath”Get a specific version of a file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.pathstring Path of the file.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
getVersionByPath
Section titled “getVersionByPath”Get a specific version of a file by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the file. The version identifier follows the major and minor version format.pathstring Path of the file.paramsFileGetOptionalParams Optional parameters used to get file versions.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file information.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
listVersionsByPath
Section titled “listVersionsByPath”Get all versions of a file by path.
The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a complete file list response.
listVersionsByPath
Section titled “listVersionsByPath”Get all versions of a file by path.
The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstringparamsFileListOptionalParams Optional parameters used to get file versions.
- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a complete file list response.
listVersionsByPath
Section titled “listVersionsByPath”Get all versions of a file by path.
The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstringminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a file list response.
listVersionsByPath
Section titled “listVersionsByPath”Get all versions of a file by path.
The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstringparamsFileListOptionalParams Optional parameters used to get file versions.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file versions.
Returns Promise<FileListResponse> A promise that resolves to a file list response.
listResources
Section titled “listResources”Lists all resources (support files) of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a complete resource list response.
listResources
Section titled “listResources”Lists all resources (support files) of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileListResourcesOptionalParams Optional parameters used to get resources.
- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a complete resource list response.
listResources
Section titled “listResources”Lists all resources (support files) of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a resource list response.
listResources
Section titled “listResources”Lists all resources (support files) of a file by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileListResourcesOptionalParams Optional parameters used to get resources.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a resource list response.
listResourcesByPath
Section titled “listResourcesByPath”Lists all resources (support files) of a file by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a complete resource list response.
listResourcesByPath
Section titled “listResourcesByPath”Lists all resources (support files) of a file by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Path of the fileparamsFileListResourcesOptionalParams Optional parameters used to get resources.
- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a complete resource list response.
listResourcesByPath
Section titled “listResourcesByPath”Lists all resources (support files) of a file by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Path of the fileminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a resource list response.
listResourcesByPath
Section titled “listResourcesByPath”Lists all resources (support files) of a file by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Path of the fileparamsFileListResourcesOptionalParams Optional parameters used to get resources.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error retrieving the file resources.
Returns Promise<FileListResponse> A promise that resolves to a resource list response.
createFileUpload
Section titled “createFileUpload”Generates a pre-signed upload url for the given name and parentId.
Parameters
Section titled “Parameters”spaceIdstring Space identifiernamestring The name of the file.parentIdstring Parent folder identifier to which the file has to be uploaded.paramsFileUploadCreateOptionalParams Optional parameters for the file upload.
- Throws Error If there was an error creating the upload.
Returns Promise<FileUploadResponse> A promise that resolves to a file upload response.
createFileUploadWithOptions
Section titled “createFileUploadWithOptions”Generates a pre-signed upload url for the given name and parentId with additional options.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
namestring The name of the file. -
parentIdstring Parent folder identifier to which the file has to be uploaded. -
optionsobject Additional options for the file upload.
- Throws Error If there was an error creating the upload.
Returns Promise<FileUploadResponse> A promise that resolves to a file upload response.
createSupportFileUpload
Section titled “createSupportFileUpload”Generates a pre-signed upload url for the given name and parentId of support file.
Parameters
Section titled “Parameters”spaceIdstring Space identifiernamestring name of the fileparentIdstring ID of a file to which the support file has to be uploaded.paramsSupportFileUploadCreateOptionalParams Optional parameters for the file upload.
- Throws Error If there was an error creating the upload.
Returns Promise<SupportFileUploadResponse> A promise that resolves to a support file upload response.
createSupportFileUploadWithOptions
Section titled “createSupportFileUploadWithOptions”Generates a pre-signed upload url for the given name and parentId of support file.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
namestring name of the file -
parentIdstring ID of a file to which the support file has to be uploaded. -
optionsobject Additional options for the file upload.
- Throws Error If there was an error creating the upload.
Returns Promise<SupportFileUploadResponse> A promise that resolves to a support file upload response.
uploadFile
Section titled “uploadFile”Uploads a file/support file to the given upload URL.
Parameters
Section titled “Parameters”spaceIdstring Space identifieruploadIdstring Upload identifierfileFileContent The file to upload.paramsUploadOptionalParams Optional parameters for the file upload.
- Throws Error If there was an error uploading the file.
Returns Promise<boolean> A promise that resolves to true if the upload was successful.
upload
Section titled “upload”Handles file uploads with support for both multipart and single part methods. Generates a pre-signed URL for the file based on its name and parentId and upload the file to the url.
Parameters
Section titled “Parameters”spaceIdstring Space identifiernamestring The name of the file.parentIdstring Parent folder identifier to which the file has to be uploaded.fileFileContent The file to upload.optionsUploadOptions Options for the file upload.
- Throws Error If there was an error uploading the file.
Returns Promise<UploadResponse> A promise that resolves to an upload response.
createOrUpdateLinks
Section titled “createOrUpdateLinks”Link support files to a specific version of a file. The support files will be linked to the target main file and main file minor version will be incremented.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierfileMajorVersionstring The major version of the parent file.paramsSupportFileLinkParams The support file link parameters.minimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws Error If there was an error linking support files.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.
getUploadDetails
Section titled “getUploadDetails”Retrieve the upload details by Id
Parameters
Section titled “Parameters”spaceIdstring Space identifieruploadIdstring upload identifierurlDurationstring The duration for which the pre-signed URL is valid. The duration is specified in the format of ‘1h’, ‘1d’, ‘1w’, ‘1m’, ‘1y’.
- Throws Error If there was an error getting the upload details.
Returns Promise<FileUploadResponse> A promise that resolves to a file upload response.
Lock a file within a space.
Parameters
Section titled “Parameters”- Throws Error If there was an error locking the file.
Returns Promise<FileResponse> A promise that resolves to a locked file with a complete response.
Lock a file within a space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileLockOptionalParams Optional parameters for the file lock.
- Throws Error If there was an error locking the file.
Returns Promise<FileResponse> A promise that resolves to a locked file with a complete response.
Lock a file within a space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error locking the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a locked file response.
Lock a file within a space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierparamsFileLockOptionalParams Optional parameters for the file lock.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws Error If there was an error locking the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to locked file response.
unlock
Section titled “unlock”Unlock a file within a space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal (optional, defaultfalse)
- Throws Error If there was an error unlocking the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to an unlocked file response.
checkout
Section titled “checkout”Checking out a file will prevent other actors from creating a new version or other mutation operations.
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
fileIdstring File identifier -
optionsobject Additional options for the checkout operation. (optional, default{minimalResponse:false})
- Throws Error If there was an error checking out the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a checked out file response.
checkin
Section titled “checkin”Checking in a file will allow other actors to create a new version or perform other mutation operations.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfileIdstring File identifierminimalResponseboolean Indicate if the response should be complete or minimal (optional, defaultfalse)
- Throws Error If there was an error checking in the file.
Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a checked in file response.
defineProperty
Section titled “defineProperty”Copyright (c) Trimble Inc.
defineProperty
Section titled “defineProperty”Copyright (c) Trimble Inc.
byteLength
Section titled “byteLength”Calculates the byte length of the input.
Parameters
Section titled “Parameters”inputThe input value to calculate the byte length of.
Returns any The byte length of the input.
validateFileUploadConfiguration
Section titled “validateFileUploadConfiguration”Validates the upload file configuration.
Parameters
Section titled “Parameters”chunkSizeconcurrentRequestuploadFileConfigurationThe upload file configuration to validate.
- Throws Error If the upload file configuration is invalid.
SpacesImpl
Section titled “SpacesImpl”Represents the implementation of the Spaces operations.
Parameters
Section titled “Parameters”clientFileServiceClient A FileServiceClient instance used to make API calls.
create
Section titled “create”Create a new space.
Parameters
Section titled “Parameters”- Throws Error If there was an error creating the space.
Returns Promise<SpaceResponse> A Promise that resolves to the created space with a complete response.
create
Section titled “create”Create a new space.
Parameters
Section titled “Parameters”namestring The name of the space.accountIdstring The unique identifier of the IAM account.paramsSpaceCreateOptionalParams Optional parameters for creating the space.
- Throws Error If there was an error creating the space.
Returns Promise<SpaceResponse> A Promise that resolves to the created space with a complete response.
create
Section titled “create”Create a new space.
Parameters
Section titled “Parameters”namestring The name of the space.accountIdstring The unique identifier of the IAM account.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws Error If there was an error creating the space.
Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to the created space.
create
Section titled “create”Create a new space.
Parameters
Section titled “Parameters”namestring The name of the space.accountIdstring The unique identifier of the IAM account.paramsSpaceCreateOptionalParams Optional parameters for creating the space.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws Error If there was an error creating the space.
Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to the created space.
Get space by Id. Retrieves the complete space filtered by the active status.
Parameters
Section titled “Parameters”spaceIdstring Space identifier
- Throws any If there was an error retrieving the space information.
Returns Promise<SpaceResponse> A Promise that resolves to a complete space response.
Get space by Id. Retrieves the complete space response filtered by the specified status.
Parameters
Section titled “Parameters”- Throws any If there was an error retrieving the space information.
Returns Promise<SpaceResponse> A Promise that resolves to a complete space response.
Get space by Id.
Parameters
Section titled “Parameters”spaceIdstring Space identifierminimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the space information.
Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to space response.
Get space by Id.
Parameters
Section titled “Parameters”spaceIdstring Space identifierstatus(Status | boolean) Filter the space by status.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the space information.
Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to space response.
update
Section titled “update”Update space by ID. Only the name and acl details can be updated for the given space.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.paramsSpaceUpdateParams The parameters for updating the space.minimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws any An error if the space update fails.
Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to the updated space.
delete
Section titled “delete”Delete space by ID. By default, it is a soft delete operation.
Parameters
Section titled “Parameters”spaceIdstring Space identifierparamsSpaceDeleteOptionalParams Optional parameters for deleting the space.
- Throws any If there was an error deleting the space.
Returns Promise<SpaceDeleteResponse> A Promise that resolves to the space delete response.
restore
Section titled “restore”Restore a deleted space by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierminimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws any If there was an error restoring the space.
Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to the space restore response.
List child resources of a space by ID with additional options. Returns the resources of the space including itself, the root folder, and its children (files and folders).
Parameters
Section titled “Parameters”-
spaceIdstring Space identifier -
optionsobject Options for listing space children (optional, default{minimalResponse:false})options.paramsSpaceListOptionalParams Optional parameters to filter the list of space childrenoptions.minimalResponseboolean Indicate if the response should be complete or minimal
- Throws any If there was an error listing the space children.
Returns Promise<SpaceListResponse> A Promise that resolves to the list of space children.
getQueryParametersFromObject
Section titled “getQueryParametersFromObject”Constructs a query string from the given query parameters object.
Parameters
Section titled “Parameters”queryParametersThe query parameters object.
Returns string The generated query string. If no parameters are provided, it returns an empty string. *
FoldersImpl
Section titled “FoldersImpl”Represents the implementation of the folders operations.
Parameters
Section titled “Parameters”clientFileServiceClient A FileServiceClient instance used to make API calls.
create
Section titled “create”Create a new folder under the given parentId.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.parentIdstring Parent folder identifier.namestring Name of the folder. The name must be unique within the parent folder.
- Throws any If there was an error creating the folder.
Returns Promise<FolderResponse> A Promise that resolves to the created folder with a complete response.
create
Section titled “create”Create a new folder under the given parentId.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.parentIdstring Parent folder identifier.namestring Name of the folder. The name must be unique within the parent folder.paramsFolderCreateOptionalParams Optional parameters for creating the folder.
- Throws any If there was an error creating the folder.
Returns Promise<FolderResponse> A Promise that resolves to the created folder with a complete response.
create
Section titled “create”Create a new folder under the given parentId.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.parentIdstring Parent folder identifier.namestring Name of the folder. The name must be unique within the parent folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error creating the folder.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the created folder.
create
Section titled “create”Create a new folder under the given parentId.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.parentIdstring Parent folder identifier.namestring Name of the folder. The name must be unique within the parent folder.paramsFolderCreateOptionalParams Optional parameters for creating the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error creating the folder.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the created folder.
getByPath
Section titled “getByPath”Get Folder by Path. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
getByPath
Section titled “getByPath”Get Folder by Path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.statusStatus Filter the folder by status.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
getByPath
Section titled “getByPath”Get Folder by Path. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to folder response.
getByPath
Section titled “getByPath”Get Folder by Path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.statusStatus Filter the folder by status.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to folder response.
Get folder by ID. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
Get folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierstatusStatus Filter the folder by status.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
Get folder by ID. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierminimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the folder response.
Get folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierstatusStatus Filter the folder by status.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the folder response.
update
Section titled “update”Update Folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier.paramsFolderUpdateParams The parameters for updating the folder.minimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws any If there was an error updating the folder.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the updated folder response.
updateWithOptions
Section titled “updateWithOptions”Update Folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier.paramsFolderUpdateParams The parameters for updating the folder.optionsobject Optional parameters for the folder update. (optional, default{minimalResponse:false})
Properties
Section titled “Properties”requestHeadersRecord<string, (string | Array<string>)>? Optional request headers.minimalResponseboolean? Indicate if the response should be complete or minimal.
- Throws any If there was an error updating the folder.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the updated folder response.
delete
Section titled “delete”Delete Folder by ID. By default, it is a soft delete operation.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierparamsFolderDeleteOptionalParams Optional parameters for deleting the folder.
- Throws any If there was an error deleting the folder.
Returns Promise<FolderDeleteResponse> A Promise that resolves to the result of the delete operation.
deleteWithOptions
Section titled “deleteWithOptions”Delete Folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifieroptionsobject Optional parameters for the folder delete operation.
Properties
Section titled “Properties”paramsFolderDeleteOptionalParams? Optional parameters for deleting the folder.requestHeadersRecord<string, (string | Array<string>)>? Optional request headers. Supported headers: “If-Match”, “If-None-Match”.
- Throws any If there was an error deleting the folder.
Returns Promise<FolderDeleteResponse> A Promise that resolves to the result of the delete operation.
Move a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.targetParentIdstring target where the source folder need to be movedminimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws any If there was an error moving the folder.
Returns Promise<FolderMoveResponse> A Promise that resolves to the result of the move operation.
moveWithOptions
Section titled “moveWithOptions”Move a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.targetParentIdstring Target where the source folder needs to be moved.optionsobject Optional parameters for the folder move operation. (optional, default{minimalResponse:false})
- Throws any If there was an error moving the folder.
Returns Promise<FolderMoveResponse> A Promise that resolves to the result of the move operation.
rename
Section titled “rename”Rename a folder with a new name.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.namestring new nameminimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws any If there was an error renaming the folder.
Returns Promise<FolderRenameResponse> A Promise that resolves to the result of the rename operation.
renameWithOptions
Section titled “renameWithOptions”Rename a folder with a new name.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.namestring new nameoptionsobject Optional parameters for the folder rename operation. (optional, default{minimalResponse:false})
- Throws any If there was an error renaming the folder.
Returns Promise<FolderRenameResponse> A Promise that resolves to the result of the rename operation.
Copy a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier to operate on.targetParentIdstring Target where the source folder needs to be copied.
- Throws any If there was an error copying the folder.
Returns Promise<FolderCopyResponse> A Promise that resolves to the result of the copy operation with a complete response.
Copy a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier to operate on.targetParentIdstring Target where the source folder needs to be copied.paramsFolderCopyOptionalParams Optional parameters for copying the folder.
- Throws any If there was an error copying the folder.
Returns Promise<FolderCopyResponse> A Promise that resolves to the result of the copy operation with a complete response.
Copy a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier to operate on.targetParentIdstring Target where the source folder needs to be copied.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error copying the folder.
Returns Promise<FolderCopyResponse> A Promise that resolves to the result of the copy operation.
Copy a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier to operate on.targetParentIdstring Target where the source folder needs to be copied.paramsFolderCopyOptionalParams Optional parameters for copying the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error copying the folder.
Returns Promise<FolderCopyResponse> A Promise that resolves to the result of the copy operation.
copyWithOptions
Section titled “copyWithOptions”Copy a folder to a new location within the same space.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier to operate on.targetParentIdstring Target where the source folder needs to be copied.optionsobject Optional parameters for the folder copy operation. (optional, default{minimalResponse:false})
- Throws any If there was an error copying the folder.
Returns Promise<FolderCopyResponse> A Promise that resolves to the result of the copy operation.
restore
Section titled “restore”Restore a deleted folder by ID.
Parameters
Section titled “Parameters”- Throws any If there was an error restoring the folder.
Returns Promise<FolderRestoreResponse> A Promise that resolves to the result of the restore operation with a complete response.
restore
Section titled “restore”Restore a deleted folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.paramsFolderRestoreOptionalParams Optional parameters for restoring the folder.
- Throws any If the restore operation fails, an error is thrown.
Returns Promise<FolderRestoreResponse> A Promise that resolves to the result of the restore operation with a complete response.
restore
Section titled “restore”Restore a deleted folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If the restore operation fails, an error is thrown.
Returns Promise<FolderRestoreResponse> A Promise that resolves to the result of the restore operation.
restore
Section titled “restore”Restore a deleted folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.paramsFolderRestoreOptionalParams Optional parameters for restoring the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If the restore operation fails, an error is thrown.
Returns Promise<FolderRestoreResponse> A Promise that resolves to the result of the restore operation.
restoreWithOptions
Section titled “restoreWithOptions”Restore a deleted folder by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.optionsobject Optional parameters for the folder restore operation. (optional, default{minimalResponse:false})
- Throws any If the restore operation fails, an error is thrown.
Returns Promise<FolderRestoreResponse> A Promise that resolves to the result of the restore operation.
Lists all children of a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder with a complete response.
Lists all children of a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.paramsFolderListOptionalParams Optional parameters to list the children of the folder.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder with a complete response.
Lists all children of a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder.
Lists all children of a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifier to operate on.paramsFolderListOptionalParams Optional parameters to list the children of the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder.
getVersion
Section titled “getVersion”Get details for the specified folder version. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring folder identifier to operate on.versionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
getVersion
Section titled “getVersion”Get details for the specified folder version.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.statusStatus Filter the folder by status.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
getVersion
Section titled “getVersion”Get details for the specified folder version. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the folder response.
getVersion
Section titled “getVersion”Get details for the specified folder version.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring Folder identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.statusStatus Filter the folder by status.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the folder response.
listVersions
Section titled “listVersions”List all versions for a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder with a complete response.
listVersions
Section titled “listVersions”List all versions for a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring folder identifier to operate on.paramsFolderListOptionalParams Optional parameters to filter the list of versions of the folder.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder with a complete response.
listVersions
Section titled “listVersions”List all versions for a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring folder identifier to operate on.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder.
listVersions
Section titled “listVersions”List all versions for a folder in a space by ID. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierfolderIdstring folder identifier to operate on.paramsFolderListOptionalParams Optional parameters to filter the list of versions of the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder.
listByPath
Section titled “listByPath”Lists all children of a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder with a complete response.
listByPath
Section titled “listByPath”Lists all children of a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.paramsFolderListOptionalParams Optional parameters to filter the list of children of the folder.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder with a complete response.
listByPath
Section titled “listByPath”Lists all children of a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder.
listByPath
Section titled “listByPath”Lists all children of a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.paramsFolderListOptionalParams Optional parameters to filter the list of children of the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the children of the folder.
Returns Promise<FileOrFolderListResponse> A Promise that resolves to the list of children of the folder.
getVersionByPath
Section titled “getVersionByPath”Get details for the specified folder version by path. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.pathstring Full path of the folder including all parent folders. The path should start with the root folder.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
getVersionByPath
Section titled “getVersionByPath”Get details for the specified folder version by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.pathstring Full path of the folder including all parent folders. The path should start with the root folder.statusStatus Filter the folder by status.
- Throws any If there was an error retrieving the folder information.
Returns Promise<FolderResponse> A Promise that resolves to a complete folder response.
getVersionByPath
Section titled “getVersionByPath”Get details for the specified folder version by path. Retrieves the folder with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.pathstring Full path of the folder including all parent folders. The path should start with the root folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to a folder response.
getVersionByPath
Section titled “getVersionByPath”Get details for the specified folder version by path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierversionIdstring Version identifier of the folder. The version identifier will be a whole number for folders.pathstring Full path of the folder including all parent folders. The path should start with the root folder.statusStatus Filter the folder by status.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to a folder response.
listVersionsByPath
Section titled “listVersionsByPath”List all versions for a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder with a complete response.
listVersionsByPath
Section titled “listVersionsByPath”List all versions for a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.paramsFolderListOptionalParams Optional parameters to filter the list of versions of the folder.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder with a complete response.
listVersionsByPath
Section titled “listVersionsByPath”List all versions for a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder.
listVersionsByPath
Section titled “listVersionsByPath”List all versions for a folder in a space by path. The operation is paginated and the response contains a token that can be used to get the next page of results.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the folder including all parent folders. The path should start with the root folder.paramsFolderListOptionalParams Optional parameters to filter the list of versions of the folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error listing the versions of the folder.
Returns Promise<FolderListResponse> A Promise that resolves to the list of versions of the folder.
JobsImpl
Section titled “JobsImpl”Creating and managing jobs.
Parameters
Section titled “Parameters”clientFileServiceClient A FileServiceClient instance used to make API calls.
Get Job details for a given job identifier. By default, this operation returns 404 NotFound in case of job not present or if the resource is in deleted state.
Parameters
Section titled “Parameters”jobIdstring The job identifier.
- Throws Error If the request fails.
Returns Promise<JobResponse> A promise that resolves with the job details.
ExportsImpl
Section titled “ExportsImpl”Creating and managing exports.
Parameters
Section titled “Parameters”clientFileServiceClient A FileServiceClient instance used to make API calls.
create
Section titled “create”Create a new export.
Parameters
Section titled “Parameters”spaceIdstring Space identifier.folderIdstring Folder identifier.includeTopLevelboolean If true, the export will include the top level folder inside the export as the first subfolder. If false, the export will only include the children of the top level folder. Default is true. (optional, defaulttrue)
- Throws any An error if the export creation fails.
Returns Promise<string> A Promise that resolves to the export identifier.
Get Export details for a given export identifier.
Parameters
Section titled “Parameters”spaceIdstring Space identifierexportIdstring Export identifierurlDurationstring The duration for which the download URL is valid. The default is 1 hour. (optional, default"60m")
- Throws any If there was an error retrieving the export information.
Returns Promise<ExportResponse> A Promise that resolves to the retrieved export information.
EventType
Section titled “EventType”Copyright (c) Trimble Inc.
EventType
Section titled “EventType”Represents the type of event that can occur during file upload.
EventsManager
Section titled “EventsManager”Manages event subscriptions and publishes events to subscribers.
publish
Section titled “publish”Publishes one or more events to their respective subscribers.
Parameters
Section titled “Parameters”events(Array<EventResponse> | EventResponse) An array of events or a single event object.
Returns void
subscribe
Section titled “subscribe”Subscribes to one or more event types with a callback function.
Parameters
Section titled “Parameters”eventTypes(Array<EventType> | EventType) An array of event types or a single event type string.callbackEventCallback The callback function to be invoked when the event is published.
Returns void
unsubscribe
Section titled “unsubscribe”Unsubscribes from one or more event types with a callback function.
Parameters
Section titled “Parameters”eventTypes(Array<EventType> | EventType) An array of event types or a single event type string.callbackEventCallback The callback function to be removed from the subscribers list.
Returns void
ResourcesImpl
Section titled “ResourcesImpl”Represents the resources operations in the Trimble Cloud File Service.
Parameters
Section titled “Parameters”clientFileServiceClient A FileServiceClient instance used to make API calls.
getByPath
Section titled “getByPath”Get resource by Path. Retrieves the resource with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | FolderResponse)> A Promise that resolves to a complete file or folder response.
getByPath
Section titled “getByPath”Get resource by Path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.paramsResourceGetOptionalParams Optional parameters for retrieving the resource.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | FolderResponse)> A Promise that resolves to a complete file or folder response.
getByPath
Section titled “getByPath”Get resource by Path. Retrieves the resource with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | MinimalFileResponse | FolderResponse | MinimalFolderResponse)> A Promise that resolves to file or folder response.
getByPath
Section titled “getByPath”Get resource by Path.
Parameters
Section titled “Parameters”spaceIdstring Space identifierpathstring Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.paramsResourceGetOptionalParams Optional parameters for retrieving the resource.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | MinimalFileResponse | FolderResponse | MinimalFolderResponse)> A Promise that resolves to file or folder response.
Get resource by ID. Retrieves the resource with status set to active.
Parameters
Section titled “Parameters”- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | FolderResponse)> A Promise that resolves to a complete file or folder response.
Get resource by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierresourceIdstring Resource identifier (file or folder ID).paramsResourceGetOptionalParams Optional parameters for retrieving the resource.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | FolderResponse)> A Promise that resolves to a complete file or folder response.
Get resource by ID. Retrieves the resource with status set to active.
Parameters
Section titled “Parameters”spaceIdstring Space identifierresourceIdstring Resource identifier (file or folder ID).minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | MinimalFileResponse | FolderResponse | MinimalFolderResponse)> A Promise that resolves to file or folder response.
Get resource by ID.
Parameters
Section titled “Parameters”spaceIdstring Space identifierresourceIdstring Resource identifier (file or folder ID).paramsResourceGetOptionalParams Optional parameters for retrieving the resource.minimalResponseboolean Indicate if the response should be complete or minimal.
- Throws any If there was an error retrieving the folder information.
Returns Promise<(FileResponse | MinimalFileResponse | FolderResponse | MinimalFolderResponse)> A Promise that resolves to file or folder response.
getBatch
Section titled “getBatch”Retrieve resources in batch.
Parameters
Section titled “Parameters”spaceIdstring Space identifierparamsResourceBatchGetParams Parameters for retrieving resources in batch.minimalResponseboolean Indicate if the response should be complete or minimal. (optional, defaultfalse)
- Throws any If there was an error retrieving the folder information.
Returns Promise<ResourceBatchResponse> A Promise that resolves to a resource batch response.
__awaiter
Section titled “__awaiter”Copyright (c) Trimble Inc.
transformDateKey
Section titled “transformDateKey”Transforms the response object by applying specific transformations to certain keys. Recursively transforms nested objects and arrays.
Parameters
Section titled “Parameters”keyvalueaccitemThe item to be transformed.
Returns any The transformed item.
transformLinksKey
Section titled “transformLinksKey”Transforms the links key in the response object.
Parameters
Section titled “Parameters”valueThe value of the links key.accThe accumulator object for transformed values.itemThe original item being transformed.
transformDefaultKey
Section titled “transformDefaultKey”Transforms the default key in the response object.
Parameters
Section titled “Parameters”keyThe key to be transformed.valueThe value associated with the key.accThe accumulator object for transformed values.
transformKey
Section titled “transformKey”Transforms the key in the response object.
Parameters
Section titled “Parameters”keyThe key to be transformed.valueThe value associated with the key.accThe accumulator object for transformed values.itemThe original item being transformed.
transformResponse
Section titled “transformResponse”Transforms the response object by applying specific transformations to certain keys. Recursively transforms nested objects and arrays.
Parameters
Section titled “Parameters”itemThe item to be transformed.
Returns any The transformed item.
isValidUrlDuration
Section titled “isValidUrlDuration”Checks if the given URL duration is valid.
Parameters
Section titled “Parameters”urlDurationThe URL duration to validate.
Returns any true if the URL duration is valid, false otherwise.
getJobIdFromPath
Section titled “getJobIdFromPath”Retrieves the job ID from a given path.
Parameters
Section titled “Parameters”pathstring The path from which to extract the job ID.
Returns string The extracted job ID.
getNextPageToken
Section titled “getNextPageToken”Retrieves the next page token from the given result object.
Parameters
Section titled “Parameters”resultany The result object from which to extract the next page token.
Returns string The extracted next page token.
getClientId
Section titled “getClientId”Gets the client ID from the token provider. Retrieves the client ID from the azp (authorized party) claim if present, otherwise falls back to the sub (subject) claim.
Parameters
Section titled “Parameters”tokenProvider
- Throws Error If the token cannot be retrieved or decoded, or if neither azp nor sub claims are present.
Returns Promise<string> The client ID extracted from the token.
Copyright (c) Trimble Inc.
Copyright (c) Trimble Inc.
The role assigned to the actor.
Type: AclRole
The actor identifier. The actor could be a user or application or group or a device.
Type: string
Represents an access control list (ACL) identity.
The role assigned to the actor.
Type: AclRole
The actor identifier. The actor could be a user or application or group or a device.
Type: string
Copyright (c) Trimble Inc.
The role assigned to the actor.
Type: AclRole
The actor identifier. The actor could be a user or application or group or a device.
Type: string
Copyright (c) Trimble Inc.
The role assigned to the actor.
Type: AclRole
The actor identifier. The actor could be a user or application or group or a device.
Type: string
SpaceCreateOptionalParams
Section titled “SpaceCreateOptionalParams”Represents the optional parameters for creating a space.
provider
Section titled “provider”The cloud provider where the space will be created. Supported values are “aws” and “azure”.
Type: Provider
permissionsLocal
Section titled “permissionsLocal”Permission request on the space.
Type: SpacePermissionsLocal
softDeleteRetention
Section titled “softDeleteRetention”Duration of soft deleted resources being retained before being permanently removed.
Type: SoftDeleteRetention
SoftDeleteRetention
Section titled “SoftDeleteRetention”Duration of soft deleted resources being retained before being permanently removed.
THIRTY_DAYS
Section titled “THIRTY_DAYS”The space will be deleted after 30 days.
Type: string
SIX_MONTHS
Section titled “SIX_MONTHS”The space will be deleted after 180 days.
Type: string
ONE_YEAR
Section titled “ONE_YEAR”The space will be deleted after 1 year.
Type: string
NEVER_DELETE
Section titled “NEVER_DELETE”The space will never be deleted.
Type: string
Provider
Section titled “Provider”The cloud provider where the space will be created. Supported values are “aws” and “azure”.
SpaceResponse
Section titled “SpaceResponse”Represents a space in the file service.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”The TRN (Tenant Resource Name) of the user, application, or device that created the space.
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”The TRN (Tenant Resource Name) of the user, application, or device that last updated the space.
Type: string
deleted
Section titled “deleted”Indicates whether the space has been deleted.
Type: boolean
deletedAt
Section titled “deletedAt”A date time expressed in ISO 8601 format.
Type: Date
The unique identifier of the space.
Type: string
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
The name of the space.
Type: string
rootId
Section titled “rootId”The unique identifier of the root folder.
Type: string
rootTrn
Section titled “rootTrn”The TRN of the root folder.
Type: string
permissionsLocal
Section titled “permissionsLocal”Permission request on the space.
Type: SpacePermissionsLocal
permissionsEvaluated
Section titled “permissionsEvaluated”Permissions that are evaluated for the user.
Type: PermissionsEvaluated
The type of the space.
Type: EntityType.SPACE
accountId
Section titled “accountId”The unique identifier of the IAM account.
Type: string
provider
Section titled “provider”The cloud provider of the space. Allowed values are aws, azure
Type: Provider
softDeleteRetention
Section titled “softDeleteRetention”Duration of soft deleted resources being retained before being permanently removed.
Type: SoftDeleteRetention
The statistics of the space.
Type: SpaceStatistics
capabilities
Section titled “capabilities”Describes the list of actions that can be performed on the resource by the current user.
Type: Capabilities
MinimalSpaceResponse
Section titled “MinimalSpaceResponse”Represents a minimal space response.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”The TRN (Tenant Resource Name) of the user, application, or device that created the space.
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”The TRN (Tenant Resource Name) of the user, application, or device that last updated the space.
Type: string
deleted
Section titled “deleted”Indicates whether the space has been deleted.
Type: boolean
The unique identifier of the space.
Type: string
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
The name of the space.
Type: string
rootId
Section titled “rootId”The unique identifier of the root folder.
Type: string
The type of the space.
Type: EntityType.SPACE
rootTrn
Section titled “rootTrn”The TRN of the root folder.
Type: string
SpaceUpdateParams
Section titled “SpaceUpdateParams”Space parameters that can updated.
The name of the space
Type: string
permissionsLocal
Section titled “permissionsLocal”Update the permissions on the resource.
Type: SpaceUpdatePermissionsLocal
softDeleteRetention
Section titled “softDeleteRetention”Duration of soft deleted resources being retained before being permanently removed.
Type: SoftDeleteRetention
SpaceDeleteOptionalParams
Section titled “SpaceDeleteOptionalParams”Represents the optional parameters for deleting a space.
permanent
Section titled “permanent”If true, the space and its content will be hard deleted. If false, the space and its content will be soft deleted.
Type: boolean
recursive
Section titled “recursive”This needs to be set to true in order to delete a space that is not empty.
Type: boolean
SpaceDeleteResponse
Section titled “SpaceDeleteResponse”Represents the response object for deleting a space.
The ID of the job associated with the space deletion for non-empty spaces. For empty spaces, the job ID will be null.
Type: string
SpaceRestoreResponse
Section titled “SpaceRestoreResponse”Represents the response for restoring a space.
Restored space details.
Type: (SpaceResponse | MinimalSpaceResponse)
ID of the job associated with the restoration of non-empty spaces. For empty spaces, the job ID will not be present.
Type: string
SpaceStatistics
Section titled “SpaceStatistics”Represents the statistics of a space.
The sum of sizes of all the active resources in the space in bytes
Type: number
supportFilesSize
Section titled “supportFilesSize”The sum of size of all the active support files in the space in bytes
Type: number
deletedSize
Section titled “deletedSize”The sum of sizes of all the soft deleted resources in the space in bytes
Type: number
deletedSupportFilesSize
Section titled “deletedSupportFilesSize”The sum of sizes of all the soft deleted support files in the space in bytes
Type: number
filesCount
Section titled “filesCount”The count of all active files in the space
Type: number
foldersCount
Section titled “foldersCount”The count of all active folders in the space
Type: number
deletedFilesCount
Section titled “deletedFilesCount”The count of all soft deleted files in the space
Type: number
deletedFoldersCount
Section titled “deletedFoldersCount”The count of all soft deleted folders in the space
Type: number
totalStorageUsed
Section titled “totalStorageUsed”The total storage used by the space and its contents, including versions, in bytes
Type: number
contentsUpdatedAt
Section titled “contentsUpdatedAt”The date and time when the contents of the space were last updated
Type: Date
Status
Section titled “Status”The status query parameter is used to filter the resources based on their status. It accepts a comma-separated list of statuses. The possible statuses are ‘active’ and ‘deleted’. If ‘active’ is specified, only active resources will be returned. If ‘deleted’ is specified, only deleted resources will be returned. If both ‘active’ and ‘deleted’ are specified (as ‘active,deleted’), the API will return both active and deleted files.
Type: ("active" | "deleted" | "active,deleted")
EntityType
Section titled “EntityType”Represents the type of an entity.
SpacePermissionsLocal
Section titled “SpacePermissionsLocal”Permission request on the space.
The list of actors and their roles.
SpaceUpdatePermissionsLocal
Section titled “SpaceUpdatePermissionsLocal”Represents a space permissions update request. Note: Both replaceAcl and updateAcl cannot be used in the same request.
Completely replace the existing permissions on the resource. When this field is used, all previous permissions are overwritten by the new ones.
updateAcl
Section titled “updateAcl”Modify the current permissions by adding or removing permissions, without fully replacing the existing permissions.
Type: SpaceUpdateAcl
SpaceUpdateAcl
Section titled “SpaceUpdateAcl”Allow modifications to the current permissions by adding or removing permissions, without fully replacing the existing permissions.
Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.
remove
Section titled “remove”Represent acl to remove
Type: Array<SpaceRemoveAcl>
SpaceRemoveAcl
Section titled “SpaceRemoveAcl”Remove access from the resource
The actor id to be removed from the permissions.
Type: string
The role to be removed for the actor.
Type: AclRole
SpaceListOptionalParams
Section titled “SpaceListOptionalParams”Represents the optional parameters for listing space children.
pageSize
Section titled “pageSize”Maximum number of results to return per page.
Type: number
nextPageToken
Section titled “nextPageToken”Token to retrieve the next page of results.
Type: string
status
Section titled “status”Filter the children by status.
Type: Status
sinceTime
Section titled “sinceTime”The date and time since when the resources were last updated.
Type: Date
resourceType
Section titled “resourceType”Filter the children by resource type.
Type: EntityType
supportFiles
Section titled “supportFiles”Include support files in the response.
Type: boolean
urlDuration
Section titled “urlDuration”Duration of the download URL in seconds.
Type: number
sortOrder
Section titled “sortOrder”Sort order of the results.
Type: string
SpaceListResponse
Section titled “SpaceListResponse”Represents a list of resources in a space.
List of resources in the space.
Type: (Array<(FolderResponse | FileResponse | SpaceResponse)> | Array<(MinimalFolderResponse | MinimalFileResponse | MinimalSpaceResponse)>)
nextPageToken
Section titled “nextPageToken”Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.
Type: string
AclRole
Section titled “AclRole”Copyright (c) Trimble Inc.
SpaceManager
Section titled “SpaceManager”SpaceManager has the highest level of permissions in the file space. Can perform all operations on the file space.
Type: string
ContentManager
Section titled “ContentManager”ContentManager has almost as many permissions as SpaceManager, but cannot update/delete the file space.
Type: string
ContentContributor
Section titled “ContentContributor”ContentContributor has all operations on the file and folder except for the ACL control.
Type: string
ContentViewer
Section titled “ContentViewer”ContentViewer has all read permissions on the file and folder.
Type: string
AclRole
Section titled “AclRole”The role assigned to the actor.
SpaceManager
Section titled “SpaceManager”SpaceManager has the highest level of permissions in the file space. Can perform all operations on the file space.
Type: string
ContentManager
Section titled “ContentManager”ContentManager has almost as many permissions as SpaceManager, but cannot update/delete the file space.
Type: string
ContentContributor
Section titled “ContentContributor”ContentContributor has all operations on the file and folder except for the ACL control.
Type: string
ContentViewer
Section titled “ContentViewer”ContentViewer has all read permissions on the file and folder.
Type: string
AclActor
Section titled “AclActor”The actor identifier
The actor identifier. The actor could be a user or application or group or a device.
Type: string
InheritedAcl
Section titled “InheritedAcl”Represents the actor role mapping for the resources that are inherited.
The actor identifier. The actor could be a user or application or group or a device.
Type: string
The role assigned to the actor.
Type: AclRole
inheritedFrom
Section titled “inheritedFrom”The resource identifier from which the permissions are inherited.
Type: string
inheritedFromTrn
Section titled “inheritedFromTrn”The TRN of the resource.
Type: string
PermissionsEvaluated
Section titled “PermissionsEvaluated”Represents the permissions evaluated for the actors on the resource. It shows the most permissible role applicable for the actor, considering both the direct and inherited permissions.
The list of actors and their roles.
Type: Array<InheritedAcl>
PermissionsInherited
Section titled “PermissionsInherited”Lists the permissions inherited from the entire parent hierarchy applicable for the actor.
The list of actors and their roles.
Type: Array<InheritedAcl>
FolderCreateOptionalParams
Section titled “FolderCreateOptionalParams”Represents the optional parameters required to create a folder.
permissionsLocal
Section titled “permissionsLocal”Permission request on the folder.
Type: FolderPermissionsLocal
metadata
Section titled “metadata”Clients may set additional information related to the folder here.
Type: Record<string, (object | string)>
FolderResponse
Section titled “FolderResponse”Represents a folder entity.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
deleted
Section titled “deleted”True if the entity has been deleted
Type: boolean
deletedAt
Section titled “deletedAt”A date time expressed in ISO 8601 format.
Type: Date
The unique identifier of the entity
Type: string
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
The name of the entity
Type: string
The type of the entity. Possible values are SPACE, FOLDER, and FILE
Type: EntityType.FOLDER
spaceId
Section titled “spaceId”The unique identifier of the space where the entity is stored
Type: string
spaceTrn
Section titled “spaceTrn”TRN of the space where the entity is stored
Type: string
version
Section titled “version”The version of the entity
Type: string
metadata
Section titled “metadata”Clients may set additional information related to the folder here.
Type: Record<string, (object | string)>
Full path of the folder.
Type: string
parentId
Section titled “parentId”Folder identifier of the parent folder. Not present for root folder or for files not attached to any folder
Type: string
parentTrn
Section titled “parentTrn”The TRN of the parent resource.
Type: string
The size of the folder in bytes.
Type: number
The statistics of the folder.
Type: FolderStatistics
capabilities
Section titled “capabilities”Describes the list of actions that can be performed on the resource by the current user.
Type: Capabilities
permissionsLocal
Section titled “permissionsLocal”Permissions that are set directly for an actor on the resource itself.
Type: FolderPermissionsLocal
permissionsEvaluated
Section titled “permissionsEvaluated”Permissions that are evaluated for the user.
Type: PermissionsEvaluated
permissionsInherited
Section titled “permissionsInherited”Lists the permissions inherited from the entire parent hierarchy applicable for the actor.
Type: PermissionsInherited
MinimalFolderResponse
Section titled “MinimalFolderResponse”Represents a minimal folder entity.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
deleted
Section titled “deleted”True if the entity has been deleted
Type: boolean
The unique identifier of the entity
Type: string
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
The name of the entity
Type: string
The type of the entity. Possible values are SPACE, FOLDER, and FILE
Type: EntityType.FOLDER
spaceId
Section titled “spaceId”The unique identifier of the space where the entity is stored
Type: string
spaceTrn
Section titled “spaceTrn”TRN of the space where the entity is stored
Type: string
version
Section titled “version”The version of the entity
Type: string
FolderUpdateParams
Section titled “FolderUpdateParams”Folder parameters that can updated.
metadata
Section titled “metadata”Clients may set additional information related to the file here.
Type: Record<string, (object | string)>
permissionsLocal
Section titled “permissionsLocal”Update the permissions on the resource.
Type: FolderUpdatePermissionsLocal
FolderDeleteOptionalParams
Section titled “FolderDeleteOptionalParams”Represents the optional parameters for deleting a folder.
permanent
Section titled “permanent”If true, the folder and its content will be hard deleted. If false, the folder and its content will be soft deleted.
Type: boolean
recursive
Section titled “recursive”This needs to be set to true in order to delete a folder that is not empty.
Type: boolean
FolderCopyOptionalParams
Section titled “FolderCopyOptionalParams”Represents the optional parameters for copying a folder.
Optionally provide a new name for the copied folder
Type: string
copySupportFiles
Section titled “copySupportFiles”The copySupportFiles query parameter determines whether to copy the support files along with the main file. If specified and true, the support files are copied and links are created between the copied main file and the copied support files.
Type: boolean
overwriteExisting
Section titled “overwriteExisting”The overwriteExisting query parameter determines whether to overwrite an existing resource. If specified and true, the existing resource will have a new version created with the copied content.
Type: boolean
copyAcl
Section titled “copyAcl”The copyAcl query parameter determines whether to copy the ACL from the resource to the target resource.
Type: boolean
permissionsLocal
Section titled “permissionsLocal”Permissions that are set directly for an actor on the resource itself.
Type: FolderPermissionsLocal
FolderDeleteResponse
Section titled “FolderDeleteResponse”Represents the response for deleting a folder.
The ID of the job associated with the folder deletion for non-empty folders. For empty folders, this will be null.
Type: string
FolderRestoreOptionalParams
Section titled “FolderRestoreOptionalParams”Represents the parameters for restoring a folder.
targetParentId
Section titled “targetParentId”The target parent ID where the source folder needs to be restored.
Type: string
The new name of the folder.
Type: string
FolderListOptionalParams
Section titled “FolderListOptionalParams”Represents the query parameters for listing folders.
pageSize
Section titled “pageSize”The largest quantity of items to be returned in a single response (in a single page).
Type: number
status
Section titled “status”The status query parameter is used to filter the resources based on their status.
Type: Status
nextPageToken
Section titled “nextPageToken”Pagination token that can be used as input from a previous response to get the next page of results.
Type: string
urlDuration
Section titled “urlDuration”The duration for which the upload URL is valid.
Type: string
sortBy
Section titled “sortBy”Field to sort the results by.
Type: string
sortOrder
Section titled “sortOrder”Sort order of the results.
Type: string
recursive
Section titled “recursive”Whether to recursively list all children of subfolders.
Type: boolean
FileOrFolderListResponse
Section titled “FileOrFolderListResponse”Represents a list of folders and files in a space.
List of file and folder descriptors in the space. The response will contain the folder and its children (files and folders) descriptors and their metadata information.
Type: (Array<(FolderResponse | FileResponse)> | Array<(MinimalFolderResponse | MinimalFileResponse)>)
nextPageToken
Section titled “nextPageToken”Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.
Type: string
FolderListResponse
Section titled “FolderListResponse”Represents a list of all versions of a folder.
List of folders in the space.
Type: (Array<FolderResponse> | Array<MinimalFolderResponse>)
nextPageToken
Section titled “nextPageToken”Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.
Type: string
FolderRestoreResponse
Section titled “FolderRestoreResponse”Extends FolderJobResponse
Represents the response for restoring a folder.
FolderJobResponse
Section titled “FolderJobResponse”Folder job response.
folder
Section titled “folder”Folder response.
Type: (FolderResponse | MinimalFolderResponse)
The ID of the job associated with the folder operation.
Type: string
FolderCopyResponse
Section titled “FolderCopyResponse”Extends FolderJobResponse
Represents the response for copying a folder.
FolderRenameResponse
Section titled “FolderRenameResponse”Extends FolderJobResponse
Represents the response for renaming a folder.
FolderMoveResponse
Section titled “FolderMoveResponse”Extends FolderJobResponse
Represents the response for moving a folder.
FolderStatistics
Section titled “FolderStatistics”Represents the statistics of a folder.
supportFilesSize
Section titled “supportFilesSize”The sum of sizes of all the latest versions of the support files in the folder in bytes
Type: number
immediateFilesCount
Section titled “immediateFilesCount”The count of files directly under the folder
Type: number
immediateFoldersCount
Section titled “immediateFoldersCount”The count of folders directly under the folder
Type: number
contentsUpdatedAt
Section titled “contentsUpdatedAt”The date and time when the contents of the folder were last updated
Type: Date
FolderPermissionsLocal
Section titled “FolderPermissionsLocal”Permission request on the folder.
inherits
Section titled “inherits”Specifies if permissions are inherited from the parent resources.
Type: boolean
The list of actors and their roles.
FolderUpdatePermissionsLocal
Section titled “FolderUpdatePermissionsLocal”Represents a folder permissions update request. Note: Both replaceAcl and updateAcl cannot be used in the same request.
inherits
Section titled “inherits”Specifies if permissions are inherited from the parent resources.
Type: boolean
Completely replace the existing permissions on the resource. When this field is used, all previous permissions are overwritten by the new ones.
updateAcl
Section titled “updateAcl”Modify the current permissions by adding or removing permissions, without fully replacing the existing permissions.
Type: FolderUpdateAcl
FolderUpdateAcl
Section titled “FolderUpdateAcl”Allow modifications to the current permissions by adding or removing permissions, without fully replacing the existing permissions.
Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.
remove
Section titled “remove”Actors to be removed from the permissions.
FileResponse
Section titled “FileResponse”Represents a file entity.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
deleted
Section titled “deleted”True if the entity has been deleted
Type: boolean
deletedAt
Section titled “deletedAt”A date time expressed in ISO 8601 format.
Type: Date
The name of the entity
Type: string
The unique identifier of the entity. This is a UUID.
Type: string
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
The type of the file.
Type: EntityType.FILE
spaceId
Section titled “spaceId”The unique identifier of the space where the file is stored
Type: string
spaceTrn
Section titled “spaceTrn”TRN of the space where the entity is stored
Type: string
version
Section titled “version”The version of the file
Type: string
metadata
Section titled “metadata”Clients may set additional information related to the file here.
Type: Record<string, (object | string)>
Path where file is created.
Type: string
parentId
Section titled “parentId”Parent Folder Id where the file was created.
Type: string
parentType
Section titled “parentType”The type of the parent file. It can be either FOLDER or FILE and parentType should be FILE when the file is a support file.
Type: string
parentTrn
Section titled “parentTrn”TRN of the parent resource.
Type: string
permissionsLocal
Section titled “permissionsLocal”Permissions that are set directly for an actor on the resource itself.
Type: FilePermissionsLocal
permissionsEvaluated
Section titled “permissionsEvaluated”Permissions that are evaluated for the user.
Type: PermissionsEvaluated
permissionsInherited
Section titled “permissionsInherited”Lists the permissions inherited from the entire parent hierarchy applicable for the actor.
Type: PermissionsInherited
restrictedAccess
Section titled “restrictedAccess”Set to false if the download url of the file shouldn’t be expired. Whereas when true download url expiration takes place according to the configured value
Type: boolean
fileset
Section titled “fileset”Whether the object consists of a set of multiple files that should be treated as a single file, such as with shape files.
Type: boolean
expiresAt
Section titled “expiresAt”Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.
Type: Date
multipart
Section titled “multipart”Whether the object consists of multiple parts that should be treated as a single file, such as with multipart uploads.
Type: boolean
responseHeaders
Section titled “responseHeaders”Download HTTP response headers can be set here.
Type: Record<string, (object | string)>
response
Section titled “response”The optional response attributes to use during creation. Whether the response should be full or brief. A brief response will only return upload URL. This is provided to support devices that may have a limited amount of memory.
Type: {brief: boolean}
download
Section titled “download”The download URL for the file.
Type: {url: string}
malwareScanStatus
Section titled “malwareScanStatus”The status of the malware scan for the file.
Type: MalwareScanStatus
malwareScanResult
Section titled “malwareScanResult”The result of the malware scan for the file. Only applicable when the MalwareScanStatus is INFECTED or CANNOT_SCAN.
Type: string
malwareType
Section titled “malwareType”The type of malware detected. Only applicable when the MalwareScanStatus is INFECTED. Format is threat type (virus, adware, spyware, pua etc):threat name. For suspicious files the threat type is ‘unknown’.
Type: string
lastMalwareScanDate
Section titled “lastMalwareScanDate”The date and time of the last malware scan for the file.
Type: Date
The size of the file in bytes.
Type: number
Links to support files
Type: Record<string, SupportFileResponse>
MD5 hash of the file object.
Type: string
Lock attached to the file.
Type: FileLockResponse
The statistics of the file.
Type: FileStatistics
capabilities
Section titled “capabilities”Describes the list of actions that can be performed on the resource by the current user.
Type: Capabilities
checkout
Section titled “checkout”Checkout attached to the file.
Type: Checkout
MinimalFileResponse
Section titled “MinimalFileResponse”Represents a minimal file entity.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
deleted
Section titled “deleted”True if the entity has been deleted
Type: boolean
The name of the entity
Type: string
The unique identifier of the entity. This is a UUID.
Type: string
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
The type of the file.
Type: EntityType.FILE
spaceId
Section titled “spaceId”The unique identifier of the space where the file is stored
Type: string
spaceTrn
Section titled “spaceTrn”TRN of the space where the entity is stored
Type: string
version
Section titled “version”The version of the file
Type: string
FilePermissionsLocal
Section titled “FilePermissionsLocal”Permission request on the file.
inherits
Section titled “inherits”Specifies if permissions are inherited from the parent resources.
Type: boolean
The list of actors and their roles.
FileLockResponse
Section titled “FileLockResponse”Lock attached to the file.
lockedBy
Section titled “lockedBy”TRN of the user, application, or device that locked the file.
Type: string
lockedAt
Section titled “lockedAt”The date and time when the file was locked.
Type: Date
reason
Section titled “reason”The reason for locking the file.
Type: string
Checkout
Section titled “Checkout”Checkout attached to the file.
checkedOutBy
Section titled “checkedOutBy”TRN of the user, application, or device that checked out the file.
Type: string
checkedOutAt
Section titled “checkedOutAt”The date and time when the file was checked out.
Type: Date
reason
Section titled “reason”The reason for checking out the file.
Type: string
FileStatistics
Section titled “FileStatistics”Represents the statistics of a file.
supportFilesSize
Section titled “supportFilesSize”The sum of sizes of all the latest versions of the support files in the file in bytes
Type: number
supportFilesCount
Section titled “supportFilesCount”The count of support files under the main file
Type: number
decompressedSize
Section titled “decompressedSize”The size of decompressed file in bytes. This field is only applicable for file set.
Type: number
supportFilesUpdatedAt
Section titled “supportFilesUpdatedAt”The date and time when the support files were last updated
Type: Date
SupportFileResponse
Section titled “SupportFileResponse”Support file response object
The unique identifier of the support file
Type: string
version
Section titled “version”The version of the support file
Type: string
downloadUrl
Section titled “downloadUrl”Download URL of the support file
Type: string
resourceTrn
Section titled “resourceTrn”TRN of the resource
Type: string
FileGetOptionalParams
Section titled “FileGetOptionalParams”Represents the parameters for retrieving a file.
The content type is used to determine the format of the response. It overrides the file settings for the response content type which is given when creating the file.
Type: string
status
Section titled “status”Status of the file.
Type: Status
urlDuration
Section titled “urlDuration”The duration for which the download URL is valid.
Type: string
MalwareScanStatus
Section titled “MalwareScanStatus”The status of the malware scan for the file.
FileUpdateParams
Section titled “FileUpdateParams”Represents the parameters for updating a file.
metadata
Section titled “metadata”Clients may set additional information related to the file here.
Type: Record<string, (object | string)>
permissionsLocal
Section titled “permissionsLocal”Update the permissions on the resource.
Type: FileUpdatePermissionsLocal
Links to support files
Type: Record<string, SupportFileLinkDetails>
FileUpdatePermissionsLocal
Section titled “FileUpdatePermissionsLocal”Represents a file permissions update request. Note: Both replaceAcl and updateAcl cannot be used in the same request.
inherits
Section titled “inherits”Specifies if permissions are inherited from the parent resources.
Type: boolean
Completely replace the existing permissions on the resource. When this field is used, all previous permissions are overwritten by the new ones.
updateAcl
Section titled “updateAcl”Modify the current permissions by adding or removing permissions, without fully replacing the existing permissions.
Type: FileUpdateAcl
FileUpdateAcl
Section titled “FileUpdateAcl”Allow modifications to the current permissions by adding or removing permissions, without fully replacing the existing permissions.
Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.
remove
Section titled “remove”The actors to be removed from the permissions.
SupportFileLinkParams
Section titled “SupportFileLinkParams”Represents the list of support files to be linked.
The links to support files
Type: Record<string, SupportFileLinkDetails>
SupportFileLinkDetails
Section titled “SupportFileLinkDetails”Support file link details
The unique identifier of the support file
Type: string
version
Section titled “version”The version of the support file
Type: string
FileDeleteOptionalParams
Section titled “FileDeleteOptionalParams”Represents the optional parameters for deleting a file.
permanent
Section titled “permanent”If true, the file is permanently deleted.
Type: boolean
FileDeleteResponse
Section titled “FileDeleteResponse”Represents the response for deleting a file.
The ID of the job associated with deletion of the file.
Type: string
FileRestoreOptionalParams
Section titled “FileRestoreOptionalParams”Represents the parameters for restoring a file.
targetParentId
Section titled “targetParentId”The target parent ID where the source file needs to be restored.
Type: string
The new name of the file.
Type: string
FileJobResponse
Section titled “FileJobResponse”File job response
The ID of the job associated with the operation on the file.
Type: string
File response.
Type: (FileResponse | MinimalFileResponse)
FileRestoreResponse
Section titled “FileRestoreResponse”Extends FileJobResponse
Represents the response for restoring a file.
FileCopyResponse
Section titled “FileCopyResponse”Extends FileJobResponse
Represents the parameters for copying a file.
FileListOptionalParams
Section titled “FileListOptionalParams”Represents the query parameters for listing file versions.
pageSize
Section titled “pageSize”The largest quantity of items to be returned in a single response (in a single page).
Type: number
status
Section titled “status”The status query parameter is used to filter the resources based on their status.
Type: Status
nextPageToken
Section titled “nextPageToken”Pagination token that can be used as input from a previous response to get the next page of results.
Type: string
urlDuration
Section titled “urlDuration”The file download URL’s validity duration can be set in days (d), hours (h), or minutes (m). Minimum value is 5 minutes (5m), maximum value is 7 days (7d).
Type: string
FileListResponse
Section titled “FileListResponse”Represents the response for a list of files.
List of file objects.
Type: (Array<FileResponse> | Array<MinimalFileResponse>)
nextPageToken
Section titled “nextPageToken”Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.
Type: string
UploadOptions
Section titled “UploadOptions”Represents the configuration options for file uploads.
multipart
Section titled “multipart”Specifies whether the client will split the upload into multiple parts. If set to true, the file service will respond with a templated URL that the client can use to perform each partial upload. After completing all partial uploads, the client must call the Update File Upload endpoint.
Type: boolean
chunkSize
Section titled “chunkSize”The size of each chunk in bytes for multipart upload. Provide the value in bytes.
Type: number
maxConcurrentRequests
Section titled “maxConcurrentRequests”The number of concurrent requests to be made during the upload process. Valid only with multipart upload.
Type: number
requestHeaders
Section titled “requestHeaders”Optional headers to be included in the upload request. Supported headers: “If-Match”, “If-None-Match”.
Type: Record<string, (string | Array<string>)>
params
Section titled “params”Optional parameters for uploading a file.
Type: FileUploadOptionalParams
FileUploadOptionalParams
Section titled “FileUploadOptionalParams”Represents the parameters for uploading a file.
urlDuration
Section titled “urlDuration”The duration for which the upload URL is valid. @default: “60m”
Type: string
copyLinks
Section titled “copyLinks”Include the links from the last version during a parent file’s major version change. If specified and true, the links are carried over to the new major version and if there are no links in the last version, the new version will not have any links.
Type: boolean
restrictedAccess
Section titled “restrictedAccess”Set to false if the download url of the file shouldn’t be expired. Whereas when true download url expiration takes place according to the configured value
Type: boolean
fileset
Section titled “fileset”Type: boolean
expiresAt
Section titled “expiresAt”Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.
Type: Date
responseHeaders
Section titled “responseHeaders”Download HTTP response headers can be set here.
Type: Record<string, (object | string)>
metadata
Section titled “metadata”Type: Record<string, (object | string)>
permissionsLocal
Section titled “permissionsLocal”Permission request on the file.
Type: FilePermissionsLocal
multipart
Section titled “multipart”True if the client will split the upload into multiple parts.
Type: boolean
urlDuration
Section titled “urlDuration”The duration for which the upload URL is valid. @default: “60m”
Type: string
restrictedAccess
Section titled “restrictedAccess”Set to false if the download url of the file shouldn’t be expired. Whereas when true download url expiration takes place according to the configured value
Type: boolean
fileset
Section titled “fileset”Type: boolean
expiresAt
Section titled “expiresAt”Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.
Type: Date
responseHeaders
Section titled “responseHeaders”Download HTTP response headers can be set here.
Type: Record<string, (object | string)>
metadata
Section titled “metadata”Type: Record<string, (object | string)>
multipart
Section titled “multipart”True if the client will split the upload into multiple parts.
Type: boolean
supportFileKey
Section titled “supportFileKey”Key of the support file. This is an optional field and the name of the file will be used as a default. This field is case sensitive. That is, the key THUMB is different from thumb.
Type: string
parentMajorVersion
Section titled “parentMajorVersion”Major version of the parent file. This is an optional field and the parent file’s latest major version will be used as a default.
Type: number
addToLinks
Section titled “addToLinks”Whether the support file should be linked to the parent file.
Type: boolean
SupportFileUploadResponse
Section titled “SupportFileUploadResponse”Extends FileUploadResponse
Represents the response object for uploading a file.
FileUploadResponse
Section titled “FileUploadResponse”Represents the response object for uploading a file.
createdAt
Section titled “createdAt”The unique identifier for the file. This is a UUID.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
The upload identifier of file
Type: string
result
Section titled “result”The input file information message : The additional information about the upload job. If upload is failed for any reason, the message will contain the error message. status : The status of the upload operation
Type: {message: string, status: UploadStatus}
The size of the uploaded file in bytes.
Type: number
version
Section titled “version”The version of the uploaded file.
Type: string
The md5 hash of the uploaded file, only available in upload response for singlepart files.
Type: string
fileInputUploadDetails
Section titled “fileInputUploadDetails”The input file information
Type: FileInputUploadDetails
resourceTrn
Section titled “resourceTrn”The TRN of the resource.
Type: string
FileInputUploadDetails
Section titled “FileInputUploadDetails”Represents the details of a file input upload.
fileId
Section titled “fileId”The unique identifier for the file. This is a UUID.
Type: string
fileTrn
Section titled “fileTrn”TRN of the file.
Type: string
spaceId
Section titled “spaceId”The unique identifier for the space where the file is stored.
Type: string
spaceTrn
Section titled “spaceTrn”The TRN of the space where the file is stored.
Type: string
Name of the file that was created.
Type: string
parentId
Section titled “parentId”Parent Folder Id where the file was created.
Type: string
parentTrn
Section titled “parentTrn”TRN of the parent resource.
Type: string
Path where file is created
Type: string
restrictedAccess
Section titled “restrictedAccess”Set to false if the download url of the file shouldn’t be expired. Whereas when true download url expiration takes place according to the configured value
Type: boolean
status
Section titled “status”The status of the upload operation, ‘UPLOADED’ status signifies a successful file upload.
Type: string
fileset
Section titled “fileset”Whether the object consists of a set of multiple files that should be treated as a single file, such as with shape files.
Type: boolean
expiresAt
Section titled “expiresAt”Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.
Type: Date
multipart
Section titled “multipart”True if the client will split the upload into multiple parts. File service will respond with a templated URL that the client can use to do each partial upload. When the client is done, they must call the Update File Upload endpoint.
Type: boolean
responseHeaders
Section titled “responseHeaders”Download HTTP response headers can be set here.
Type: Record<string, (object | string)>
metadata
Section titled “metadata”Clients may set additional information related to the file here.
Type: Record<string, (object | string)>
response
Section titled “response”The optional response attributes to use during creation. brief - Whether the response should be full or brief. A brief response will only return upload URL.
Type: {brief: boolean}
permissionsLocal
Section titled “permissionsLocal”Permission request on the file.
Type: FilePermissionsLocal
upload
Section titled “upload”The upload URL and type of upload for the file.
Type: Upload
parentType
Section titled “parentType”The type of the parent file. It can be either FOLDER or FILE and parentType should be FILE when the file is a support file.
Type: string
supportFileKey
Section titled “supportFileKey”An optional key for the support file, Defaults to the file name if not specified.
Type: string
parentMajorVersion
Section titled “parentMajorVersion”This optional field specifies the major version of the parent file.
Type: number
addToLinks
Section titled “addToLinks”Indicates whether the support file should be linked to the parent file.
Type: boolean
Upload
Section titled “Upload”Represents an upload object that contains the URL and type of the file upload.
The URL to upload the file to.
Type: string
The type of the file upload URL.
Type: FileUploadType
FileUploadType
Section titled “FileUploadType”Represents the type of file upload.
SINGLEPART
Section titled “SINGLEPART”The file is uploaded in a single part.
Type: string
MULTIPART
Section titled “MULTIPART”The file is uploaded in multiple parts.
Type: string
UploadStatus
Section titled “UploadStatus”Represents the status of the upload operation.
FileChunkUploadResponse
Section titled “FileChunkUploadResponse”Represents the response for uploading a chunk of a file.
partNumber
Section titled “partNumber”The part number of the uploaded chunk.
Type: number
The entity tag (ETag) of the uploaded chunk.
Type: string
UploadResponse
Section titled “UploadResponse”Represents the response for uploading a file.
fileId
Section titled “fileId”The unique identifier for the file. This is a UUID.
Type: string
uploadId
Section titled “uploadId”The upload identifier of file
Type: string
FileCopyOptionalParams
Section titled “FileCopyOptionalParams”Represents the parameters for copying a file.
Optionally provide a new name for the copied file
Type: string
versionId
Section titled “versionId”Version identifier of the file.
Type: string
copySupportFiles
Section titled “copySupportFiles”The copySupportFiles query parameter determines whether to copy the support files along with the main file. If specified and true, the support files are copied and links are created between the copied main file and the copied support files.
Type: boolean
overwriteExisting
Section titled “overwriteExisting”The overwriteExisting query parameter determines whether to overwrite an existing resource. If specified and true, the existing resource will have a new version created with the copied content.
Type: boolean
copyAcl
Section titled “copyAcl”The copyAcl query parameter determines whether to copy the ACL from the resource to the target resource.
Type: boolean
permissionsLocal
Section titled “permissionsLocal”Permissions that are set directly for an actor on the resource itself.
Type: FilePermissionsLocal
UploadOptionalParams
Section titled “UploadOptionalParams”Represents the configuration options for uploads.
chunkSize
Section titled “chunkSize”The size of each chunk in bytes for multipart upload. Provide the value in bytes.
Type: number
maxConcurrentRequests
Section titled “maxConcurrentRequests”The number of concurrent requests to be made during the upload process. Valid only with multipart upload.
Type: number
FileLockOptionalParams
Section titled “FileLockOptionalParams”Represents the parameters for locking a file.
reason
Section titled “reason”Reason to lock a file
Type: string
FileCheckoutOptionalParams
Section titled “FileCheckoutOptionalParams”Optional parameters for checking out a file.
reason
Section titled “reason”Reason to checkout a file
Type: string
FileContent
Section titled “FileContent”Represents the content type of a file. It can be a string, Buffer, or Blob.
Type: (string | Buffer | Blob)
JobResponse
Section titled “JobResponse”Copyright (c) Trimble Inc.
The unique identifier of the job.
Type: string
resourceTrn
Section titled “resourceTrn”TRN of the resource.
Type: string
The type of job.
Type: JobType
status
Section titled “status”The status of the job.
Type: JobStatus
createdAt
Section titled “createdAt”The date and time when the job was created, expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”The unique identifier of the user, application, or device that created the job (ActorTrn).
Type: string
message
Section titled “message”The message associated with the job.
Type: string
JobResponse
Section titled “JobResponse”Represents a response object for a job.
The unique identifier of the job.
Type: string
resourceTrn
Section titled “resourceTrn”TRN of the resource.
Type: string
The type of job.
Type: JobType
status
Section titled “status”The status of the job.
Type: JobStatus
createdAt
Section titled “createdAt”The date and time when the job was created, expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”The unique identifier of the user, application, or device that created the job (ActorTrn).
Type: string
message
Section titled “message”The message associated with the job.
Type: string
JobType
Section titled “JobType”The type of job
JobStatus
Section titled “JobStatus”The status of the job
EventResponse
Section titled “EventResponse”Copyright (c) Trimble Inc.
eventType
Section titled “eventType”Type of event that occurred.
Type: EventType
spaceId
Section titled “spaceId”Space identifier.
Type: string
uploadId
Section titled “uploadId”The unique identifier of the upload.
Type: string
percentage
Section titled “percentage”Percentage of the file uploaded.
Type: number
EventResponse
Section titled “EventResponse”Events response model.
eventType
Section titled “eventType”Type of event that occurred.
Type: EventType
spaceId
Section titled “spaceId”Space identifier.
Type: string
uploadId
Section titled “uploadId”The unique identifier of the upload.
Type: string
percentage
Section titled “percentage”Percentage of the file uploaded.
Type: number
Capabilities
Section titled “Capabilities”Copyright (c) Trimble Inc.
canCreate
Section titled “canCreate”Indicates if the user has the capability to create an upload or create a folder under the resource
Type: boolean
canRead
Section titled “canRead”Indicates if the user has the capability to read the given resource
Type: boolean
canDelete
Section titled “canDelete”Indicates if the user has the capability to perform delete operation on the resource
Type: boolean
canUpdate
Section titled “canUpdate”Indicates if the user has the capability to perform mutation operation on the resource
Type: boolean
canManageAccess
Section titled “canManageAccess”Indicates if the user has the capability to modify the resource permissions
Type: boolean
canLock
Section titled “canLock”Indicates if the user has the capability to lock the file
Type: boolean
canUnlock
Section titled “canUnlock”Indicates if the user has the capability to unlock the file
Type: boolean
canCheckout
Section titled “canCheckout”Indicates if the user has the capability to checkout the file
Type: boolean
canCheckin
Section titled “canCheckin”Indicates if the user has the capability to checkin the file
Type: boolean
Capabilities
Section titled “Capabilities”Describes the list of actions that can be performed on the resource by the current user.
canCreate
Section titled “canCreate”Indicates if the user has the capability to create an upload or create a folder under the resource
Type: boolean
canRead
Section titled “canRead”Indicates if the user has the capability to read the given resource
Type: boolean
canDelete
Section titled “canDelete”Indicates if the user has the capability to perform delete operation on the resource
Type: boolean
canUpdate
Section titled “canUpdate”Indicates if the user has the capability to perform mutation operation on the resource
Type: boolean
canManageAccess
Section titled “canManageAccess”Indicates if the user has the capability to modify the resource permissions
Type: boolean
canLock
Section titled “canLock”Indicates if the user has the capability to lock the file
Type: boolean
canUnlock
Section titled “canUnlock”Indicates if the user has the capability to unlock the file
Type: boolean
canCheckout
Section titled “canCheckout”Indicates if the user has the capability to checkout the file
Type: boolean
canCheckin
Section titled “canCheckin”Indicates if the user has the capability to checkin the file
Type: boolean
ExportResponse
Section titled “ExportResponse”Copyright (c) Trimble Inc.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
The unique identifier of the entity
Type: string
exportTrn
Section titled “exportTrn”TRN of the resource
Type: string
spaceId
Section titled “spaceId”The unique identifier of the space
Type: string
spaceTrn
Section titled “spaceTrn”TRN of the resource
Type: string
resourceId
Section titled “resourceId”The unique identifier of the target folder
Type: string
resourceTrn
Section titled “resourceTrn”TRN of the resource
Type: string
output
Section titled “output”The output of the export
Type: Output
status
Section titled “status”The status of the export job
Type: ExportStatus
ExportResponse
Section titled “ExportResponse”Represents an export entity.
createdAt
Section titled “createdAt”A date time expressed in ISO 8601 format.
Type: Date
createdByTrn
Section titled “createdByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
updatedAt
Section titled “updatedAt”A date time expressed in ISO 8601 format.
Type: Date
updatedByTrn
Section titled “updatedByTrn”userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)
Type: string
The unique identifier of the entity
Type: string
exportTrn
Section titled “exportTrn”TRN of the resource
Type: string
spaceId
Section titled “spaceId”The unique identifier of the space
Type: string
spaceTrn
Section titled “spaceTrn”TRN of the resource
Type: string
resourceId
Section titled “resourceId”The unique identifier of the target folder
Type: string
resourceTrn
Section titled “resourceTrn”TRN of the resource
Type: string
output
Section titled “output”The output of the export
Type: Output
status
Section titled “status”The status of the export job
Type: ExportStatus
ExportStatus
Section titled “ExportStatus”The status of the export job.
Output
Section titled “Output”Represents an output of an export.
The download URL of the export
Type: string
ResourceGetOptionalParams
Section titled “ResourceGetOptionalParams”Represents the parameters for retrieving a resource.
The content type is used to determine the format of the response. It overrides the file settings for the response content type which is given when creating the file.
Type: string
status
Section titled “status”Status of the resource.
Type: Status
urlDuration
Section titled “urlDuration”The duration for which the download URL is valid.
Type: string
ResourceBatchGetParams
Section titled “ResourceBatchGetParams”Extends ResourceGetOptionalParams
Represents the parameters for retrieving a resource in batch.
List of IDs of the resources to be fetched
List of paths of the resources to be fetched
ResourceBatchResponse
Section titled “ResourceBatchResponse”Represents the response for a batch of resources.
List of items in the batch response.
Type: (Array<(FolderResponse | FileResponse)> | Array<(MinimalFolderResponse | MinimalFileResponse)>)
invalidItems
Section titled “invalidItems”List of invalid items in the batch response.
Type: Array<InvalidItems>
InvalidItems
Section titled “InvalidItems”Represents the invalid items in a batch response.
Unique identifier of the resource
Type: string
Path of the resource
Type: string
status
Section titled “status”HTTP status code
Type: number
Type of the error
Type: string
Title of the error
Type: string
detail
Section titled “detail”Detailed description of the error
Type: string
Error code
Type: string