Skip to content

# Table of Contents

Represents a client for interacting with the File Service API.

  • tokenProvider ITokenProvider The token provider.
  • baseUrl string The base URL of the File Service API.

Represents the HTTP client provider.

Type: BearerTokenHttpClientProvider

Represents a token provider.

Type: ITokenProvider

Represents the implementation of the Spaces.

Type: SpacesImpl

Represents the implementation of the Folders.

Type: FoldersImpl

Represents the implementation of the Files.

Type: FilesImpl

Represents the implementation of the Jobs.

Type: JobsImpl

Represents the implementation of the Exports.

Type: ExportsImpl

Represents the implementation of the

Represents the implementation of the Files operations.

Get file by path.

  • spaceId string Space identifier
  • path string 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.

Get file by path.

  • Throws Error If there was an error retrieving the file information.

Returns Promise<FileResponse> A promise that resolves to a complete file response.

Get file by path.

  • spaceId string Space identifier
  • path string Path of the file
  • minimalResponse boolean 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 path.

  • spaceId string Space identifier
  • path string Path of the file
  • params FileGetOptionalParams Optional parameters used to get file.
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • 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.

  • 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • params FileGetOptionalParams Optional parameters used to get file.
  • minimalResponse boolean 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.

Updates the file metadata and ACL. Linking/unlinking operation can only be done on a parent file.

  • spaceId string Space identifier
  • fileId string File identifier
  • params FileUpdateParams Parameters for the file update.
  • minimalResponse boolean Indicate if the response should be complete or minimal (optional, default false)
  • Throws Error If there was an error updating the file.

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a updated file object.

Updates file by ID.

  • spaceId string Space identifier

  • fileId string File identifier

  • params FileUpdateParams Parameters for the file update.

  • options object Additional options for the update operation. (optional, default {minimalResponse:false})

    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the update request. Supported headers: “If-Match”, “If-None-Match”.
    • options.minimalResponse boolean Indicate if the response should be complete or minimal

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to an updated file object.

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.

  • Throws Error If there was an error deleting the file.

Returns Promise<FileDeleteResponse> A promise that resolves to the result of the delete operation.

Deletes the file by ID.

  • spaceId string Space identifier

  • fileId string File identifier

  • options object Additional options for the delete operation.

    • options.params FileDeleteOptionalParams? Optional parameters for the file delete.
    • options.requestHeaders Record<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.

  • spaceId string Space identifier
  • fileId string File identifier
  • targetParentId string target where the source file need to be moved
  • minimalResponse boolean Indicate if the response should be complete or minimal (optional, default false)
  • Throws Error If there was an error moving the file.

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves the moved file response.

Move a file to a new location within the same space.

  • spaceId string Space identifier

  • fileId string File identifier

  • targetParentId string Target where the source file needs to be moved.

  • options object Additional options for the move operation. (optional, default {minimalResponse:false})

    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the move request. Supported headers: “If-Match”, “If-None-Match”.
    • options.minimalResponse boolean? Indicate if the response should be complete or minimal
  • Throws Error If there was an error moving the file.

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to the moved file response.

Rename a file within the same space.

  • spaceId string Space identifier
  • fileId string File identifier
  • name string New name for the file
  • minimalResponse boolean Indicate if the response should be complete or minimal (optional, default false)
  • Throws Error If there was an error renaming the file.

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to the renamed file response.

Rename a file within the same space.

  • spaceId string Space identifier

  • fileId string File identifier

  • name string New name for the file

  • options object Additional options for the rename operation. (optional, default {minimalResponse:false})

    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the rename request. Supported headers: “If-Match”, “If-None-Match”.
    • options.minimalResponse boolean? Indicate if the response should be complete or minimal
  • 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.

  • spaceId string Space identifier.
  • fileId string File identifier.
  • targetParentId string 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.

  • spaceId string Space identifier.
  • fileId string File identifier.
  • targetParentId string Target where the source file needs to be copied.
  • params FileCopyOptionalParams 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.

  • spaceId string Space identifier.
  • fileId string File identifier.
  • targetParentId string Target where the source file needs to be copied.
  • minimalResponse boolean 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.

  • spaceId string Space identifier.
  • fileId string File identifier.
  • targetParentId string Target where the source file needs to be copied.
  • params FileCopyOptionalParams Optional parameters for copying the file.
  • minimalResponse boolean 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 with additional options.

  • spaceId string Space identifier.

  • fileId string File identifier.

  • targetParentId string Target where the source file needs to be copied.

  • options object Additional options for the copy operation. (optional, default {minimalResponse:false})

    • options.params FileCopyOptionalParams? Optional parameters for copying the file.
    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the copy request. Supported headers: “If-Match”, “If-None-Match”.
    • options.minimalResponse boolean? 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 a deleted file by ID.

  • spaceId string Space identifier
  • fileId string File identifier
  • 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 a deleted file by ID.

  • 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 a deleted file by ID.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean 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 a deleted file by ID.

  • 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 a deleted file by ID.

  • spaceId string Space identifier

  • fileId string File identifier

  • options object Additional options for the restore operation. (optional, default {minimalResponse:false})

    • options.params FileRestoreOptionalParams? Optional parameters for the file restore.
    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the restore request. Supported headers: “If-Match”, “If-None-Match”.
    • options.minimalResponse boolean? 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.

Get a specific version of a file by ID.

  • spaceId string Space identifier
  • fileId string File identifier
  • versionId string 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.

Get a specific version of a file by ID.

  • spaceId string Space identifier
  • fileId string File identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • params FileGetOptionalParams 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.

Get a specific version of a file by ID.

  • spaceId string Space identifier
  • fileId string File identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • minimalResponse boolean 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 a specific version of a file by ID.

  • spaceId string Space identifier
  • fileId string File identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • params FileGetOptionalParams Optional parameters used to get a file version.
  • minimalResponse boolean 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 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • Throws Error If there was an error retrieving the file versions.

Returns Promise<FileListResponse> A promise that resolves to a complete file list response.

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.

  • Throws Error If there was an error retrieving the file versions.

Returns Promise<FileListResponse> A promise that resolves to a complete file list response.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • params FileListOptionalParams Optional parameters used to list file versions.
  • minimalResponse boolean 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.

Get a specific version of a file by path.

  • spaceId string Space identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • path string 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.

Get a specific version of a file by path.

  • spaceId string Space identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • path string Path of the file.
  • params FileGetOptionalParams 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.

Get a specific version of a file by path.

  • spaceId string Space identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • path string Path of the file.
  • minimalResponse boolean 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 a specific version of a file by path.

  • spaceId string Space identifier
  • versionId string Version identifier of the file. The version identifier follows the major and minor version format.
  • path string Path of the file.
  • params FileGetOptionalParams Optional parameters used to get file versions.
  • minimalResponse boolean 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 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.

  • Throws Error If there was an error retrieving the file versions.

Returns Promise<FileListResponse> A promise that resolves to a complete file list response.

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.

  • Throws Error If there was an error retrieving the file versions.

Returns Promise<FileListResponse> A promise that resolves to a complete file list response.

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.

  • spaceId string Space identifier
  • path string
  • minimalResponse boolean 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.

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.

  • Throws Error If there was an error retrieving the file versions.

Returns Promise<FileListResponse> A promise that resolves to a file list response.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • Throws Error If there was an error retrieving the file resources.

Returns Promise<FileListResponse> A promise that resolves to a complete resource list response.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • params FileListResourcesOptionalParams 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.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • params FileListResourcesOptionalParams Optional parameters used to get resources.
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • path string Path of the file
  • Throws Error If there was an error retrieving the file resources.

Returns Promise<FileListResponse> A promise that resolves to a complete resource list response.

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.

  • spaceId string Space identifier
  • path string Path of the file
  • params FileListResourcesOptionalParams 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.

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.

  • spaceId string Space identifier
  • path string Path of the file
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • path string Path of the file
  • params FileListResourcesOptionalParams Optional parameters used to get resources.
  • minimalResponse boolean 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.

Generates a pre-signed upload url for the given name and parentId.

  • spaceId string Space identifier
  • name string The name of the file.
  • parentId string Parent folder identifier to which the file has to be uploaded.
  • params FileUploadCreateOptionalParams 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.

Generates a pre-signed upload url for the given name and parentId with additional options.

  • spaceId string Space identifier

  • name string The name of the file.

  • parentId string Parent folder identifier to which the file has to be uploaded.

  • options object Additional options for the file upload.

    • options.params FileUploadCreateOptionalParams? Optional parameters for the file upload.
    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the upload request. Supported headers: “If-Match”, “If-None-Match”.
  • Throws Error If there was an error creating the upload.

Returns Promise<FileUploadResponse> A promise that resolves to a file upload response.

Generates a pre-signed upload url for the given name and parentId of support file.

  • spaceId string Space identifier
  • name string name of the file
  • parentId string ID of a file to which the support file has to be uploaded.
  • params SupportFileUploadCreateOptionalParams 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.

Generates a pre-signed upload url for the given name and parentId of support file.

  • spaceId string Space identifier

  • name string name of the file

  • parentId string ID of a file to which the support file has to be uploaded.

  • options object Additional options for the file upload.

    • options.params SupportFileUploadCreateOptionalParams? Optional parameters for the file upload.
    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the upload request. Supported headers: “If-Match”, “If-None-Match”.
  • Throws Error If there was an error creating the upload.

Returns Promise<SupportFileUploadResponse> A promise that resolves to a support file upload response.

Uploads a file/support file to the given upload URL.

  • Throws Error If there was an error uploading the file.

Returns Promise<boolean> A promise that resolves to true if the upload was successful.

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.

  • spaceId string Space identifier
  • name string The name of the file.
  • parentId string Parent folder identifier to which the file has to be uploaded.
  • file FileContent The file to upload.
  • options UploadOptions 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.

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.

  • spaceId string Space identifier
  • fileId string File identifier
  • fileMajorVersion string The major version of the parent file.
  • params SupportFileLinkParams The support file link parameters.
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default false)
  • Throws Error If there was an error linking support files.

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to a file response.

Retrieve the upload details by Id

  • spaceId string Space identifier
  • uploadId string upload identifier
  • urlDuration string 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • 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.

  • 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • fileId string File identifier
  • params FileLockOptionalParams Optional parameters for the file lock.
  • minimalResponse boolean 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 a file within a space.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean Indicate if the response should be complete or minimal (optional, default false)
  • Throws Error If there was an error unlocking the file.

Returns Promise<(FileResponse | MinimalFileResponse)> A promise that resolves to an unlocked file response.

Checking out a file will prevent other actors from creating a new version or other mutation operations.

  • spaceId string Space identifier

  • fileId string File identifier

  • options object Additional options for the checkout operation. (optional, default {minimalResponse:false})

    • options.params FileCheckoutOptionalParams? Optional parameters for the file checkout.
    • options.requestHeaders Record<string, (string | Array<string>)>? Optional request headers to include in the checkout request.
    • options.minimalResponse boolean Indicate if the response should be complete or minimal
  • 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.

Checking in a file will allow other actors to create a new version or perform other mutation operations.

  • spaceId string Space identifier
  • fileId string File identifier
  • minimalResponse boolean Indicate if the response should be complete or minimal (optional, default false)
  • 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.

Copyright (c) Trimble Inc.

Copyright (c) Trimble Inc.

Calculates the byte length of the input.

  • input The input value to calculate the byte length of.

Returns any The byte length of the input.

Validates the upload file configuration.

  • chunkSize
  • concurrentRequest
  • uploadFileConfiguration The upload file configuration to validate.
  • Throws Error If the upload file configuration is invalid.

Represents the implementation of the Spaces operations.

Create a new space.

  • name string The name of the space.
  • accountId string The unique identifier of the IAM account.
  • 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 a new 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 a new space.

  • name string The name of the space.
  • accountId string The unique identifier of the IAM account.
  • minimalResponse boolean 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 a new space.

  • name string The name of the space.
  • accountId string The unique identifier of the IAM account.
  • params SpaceCreateOptionalParams Optional parameters for creating the space.
  • minimalResponse boolean 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.

  • spaceId string 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.

  • spaceId string Space identifier
  • status Status Filter the space by status.
  • 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.

  • spaceId string Space identifier
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • status (Status | boolean) Filter the space by status.
  • minimalResponse boolean 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 space by ID. Only the name and acl details can be updated for the given space.

  • spaceId string Space identifier.
  • params SpaceUpdateParams The parameters for updating the space.
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default false)
  • Throws any An error if the space update fails.

Returns Promise<(SpaceResponse | MinimalSpaceResponse)> A Promise that resolves to the updated space.

Delete space by ID. By default, it is a soft delete operation.

  • Throws any If there was an error deleting the space.

Returns Promise<SpaceDeleteResponse> A Promise that resolves to the space delete response.

Restore a deleted space by ID.

  • spaceId string Space identifier
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default false)
  • 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).

  • spaceId string Space identifier

  • options object Options for listing space children (optional, default {minimalResponse:false})

    • options.params SpaceListOptionalParams Optional parameters to filter the list of space children
    • options.minimalResponse boolean 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.

Constructs a query string from the given query parameters object.

  • queryParameters The query parameters object.

Returns string The generated query string. If no parameters are provided, it returns an empty string. *

Represents the implementation of the folders operations.

Create a new folder under the given parentId.

  • spaceId string Space identifier.
  • parentId string Parent folder identifier.
  • name string 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 a new folder under the given parentId.

  • spaceId string Space identifier.
  • parentId string Parent folder identifier.
  • name string Name of the folder. The name must be unique within the parent folder.
  • params FolderCreateOptionalParams 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 a new folder under the given parentId.

  • spaceId string Space identifier.
  • parentId string Parent folder identifier.
  • name string Name of the folder. The name must be unique within the parent folder.
  • minimalResponse boolean 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 a new folder under the given parentId.

  • spaceId string Space identifier.
  • parentId string Parent folder identifier.
  • name string Name of the folder. The name must be unique within the parent folder.
  • params FolderCreateOptionalParams Optional parameters for creating the folder.
  • minimalResponse boolean 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.

Get Folder by Path. Retrieves the folder with status set to active.

  • spaceId string Space identifier
  • path string 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.

Get Folder by Path.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • status Status 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 Path. Retrieves the folder with status set to active.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • minimalResponse boolean 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 Path.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • status Status Filter the folder by status.
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • 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.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • status Status 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.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • status Status Filter the folder by status.
  • minimalResponse boolean 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 Folder by ID.

  • spaceId string Space identifier.
  • folderId string Folder identifier.
  • params FolderUpdateParams The parameters for updating the folder.
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default false)
  • Throws any If there was an error updating the folder.

Returns Promise<(FolderResponse | MinimalFolderResponse)> A Promise that resolves to the updated folder response.

Update Folder by ID.

  • spaceId string Space identifier.
  • folderId string Folder identifier.
  • params FolderUpdateParams The parameters for updating the folder.
  • options object Optional parameters for the folder update. (optional, default {minimalResponse:false})
  • requestHeaders Record<string, (string | Array<string>)>? Optional request headers.
  • minimalResponse boolean? 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 Folder by ID. By default, it is a soft delete operation.

  • Throws any If there was an error deleting the folder.

Returns Promise<FolderDeleteResponse> A Promise that resolves to the result of the delete operation.

Delete Folder by ID.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • options object Optional parameters for the folder delete operation.
  • 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.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • targetParentId string target where the source folder need to be moved
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default 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.

Move a folder to a new location within the same space.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • targetParentId string Target where the source folder needs to be moved.
  • options object 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 a folder with a new name.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • name string new name
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default 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.

Rename a folder with a new name.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • name string new name
  • options object 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.

  • spaceId string Space identifier.
  • folderId string Folder identifier to operate on.
  • targetParentId string 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.

  • spaceId string Space identifier.
  • folderId string Folder identifier to operate on.
  • targetParentId string Target where the source folder needs to be copied.
  • params FolderCopyOptionalParams 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.

  • spaceId string Space identifier.
  • folderId string Folder identifier to operate on.
  • targetParentId string Target where the source folder needs to be copied.
  • minimalResponse boolean 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.

  • spaceId string Space identifier.
  • folderId string Folder identifier to operate on.
  • targetParentId string Target where the source folder needs to be copied.
  • params FolderCopyOptionalParams Optional parameters for copying the folder.
  • minimalResponse boolean 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.

  • spaceId string Space identifier.
  • folderId string Folder identifier to operate on.
  • targetParentId string Target where the source folder needs to be copied.
  • options object 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 a deleted folder by ID.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • 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 a deleted folder by ID.

  • 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 a deleted folder by ID.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • minimalResponse boolean 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 a deleted folder by ID.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • params FolderRestoreOptionalParams Optional parameters for restoring the folder.
  • minimalResponse boolean 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 a deleted folder by ID.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • options object 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.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • 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.

  • 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.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • folderId string Folder identifier to operate on.
  • params FolderListOptionalParams Optional parameters to list the children of the folder.
  • minimalResponse boolean 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.

Get details for the specified folder version. Retrieves the folder with status set to active.

  • spaceId string Space identifier
  • folderId string folder identifier to operate on.
  • versionId string 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.

Get details for the specified folder version.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • status Status 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 details for the specified folder version. Retrieves the folder with status set to active.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • minimalResponse boolean 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 details for the specified folder version.

  • spaceId string Space identifier
  • folderId string Folder identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • status Status Filter the folder by status.
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • folderId string folder identifier to operate on.
  • 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.

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.

  • spaceId string Space identifier
  • folderId string folder identifier to operate on.
  • params FolderListOptionalParams 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.

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.

  • spaceId string Space identifier
  • folderId string folder identifier to operate on.
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • folderId string folder identifier to operate on.
  • params FolderListOptionalParams Optional parameters to filter the list of versions of the folder.
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • path string 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.

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.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • params FolderListOptionalParams 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.

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.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • minimalResponse boolean 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 path. The operation is paginated and the response contains a token that can be used to get the next page of results.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • params FolderListOptionalParams Optional parameters to filter the list of children of the folder.
  • minimalResponse boolean 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.

Get details for the specified folder version by path. Retrieves the folder with status set to active.

  • spaceId string Space identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • path string 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.

Get details for the specified folder version by path.

  • spaceId string Space identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • status Status 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 details for the specified folder version by path. Retrieves the folder with status set to active.

  • spaceId string Space identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • minimalResponse boolean 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.

Get details for the specified folder version by path.

  • spaceId string Space identifier
  • versionId string Version identifier of the folder. The version identifier will be a whole number for folders.
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • status Status Filter the folder by status.
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • path string 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.

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.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • params FolderListOptionalParams 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.

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.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • minimalResponse boolean 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.

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.

  • spaceId string Space identifier
  • path string Full path of the folder including all parent folders. The path should start with the root folder.
  • params FolderListOptionalParams Optional parameters to filter the list of versions of the folder.
  • minimalResponse boolean 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.

Creating and managing jobs.

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.

  • jobId string The job identifier.
  • Throws Error If the request fails.

Returns Promise<JobResponse> A promise that resolves with the job details.

Creating and managing exports.

Create a new export.

  • spaceId string Space identifier.
  • folderId string Folder identifier.
  • includeTopLevel boolean 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, default true)
  • 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.

  • spaceId string Space identifier
  • exportId string Export identifier
  • urlDuration string 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.

Copyright (c) Trimble Inc.

Represents the type of event that can occur during file upload.

Manages event subscriptions and publishes events to subscribers.

Publishes one or more events to their respective subscribers.

Returns void

Subscribes to one or more event types with a callback function.

  • eventTypes (Array<EventType> | EventType) An array of event types or a single event type string.
  • callback EventCallback The callback function to be invoked when the event is published.

Returns void

Unsubscribes from one or more event types with a callback function.

  • eventTypes (Array<EventType> | EventType) An array of event types or a single event type string.
  • callback EventCallback The callback function to be removed from the subscribers list.

Returns void

Represents the resources operations in the Trimble Cloud File Service.

Get resource by Path. Retrieves the resource with status set to active.

  • spaceId string Space identifier
  • path string 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.

Get resource by Path.

  • spaceId string Space identifier
  • path string Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.
  • params ResourceGetOptionalParams 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 Path. Retrieves the resource with status set to active.

  • spaceId string Space identifier
  • path string Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.
  • minimalResponse boolean 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 Path.

  • spaceId string Space identifier
  • path string Full path of the resource (folder/file) including all parent folders. The path should start with the root folder.
  • params ResourceGetOptionalParams Optional parameters for retrieving the resource.
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • resourceId string Resource identifier (file or folder ID).
  • 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.

  • 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.

  • spaceId string Space identifier
  • resourceId string Resource identifier (file or folder ID).
  • minimalResponse boolean 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.

  • spaceId string Space identifier
  • resourceId string Resource identifier (file or folder ID).
  • params ResourceGetOptionalParams Optional parameters for retrieving the resource.
  • minimalResponse boolean 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.

Retrieve resources in batch.

  • spaceId string Space identifier
  • params ResourceBatchGetParams Parameters for retrieving resources in batch.
  • minimalResponse boolean Indicate if the response should be complete or minimal. (optional, default false)
  • Throws any If there was an error retrieving the folder information.

Returns Promise<ResourceBatchResponse> A Promise that resolves to a resource batch response.

Copyright (c) Trimble Inc.

Transforms the response object by applying specific transformations to certain keys. Recursively transforms nested objects and arrays.

  • key
  • value
  • acc
  • item The item to be transformed.

Returns any The transformed item.

Transforms the links key in the response object.

  • value The value of the links key.
  • acc The accumulator object for transformed values.
  • item The original item being transformed.

Transforms the default key in the response object.

  • key The key to be transformed.
  • value The value associated with the key.
  • acc The accumulator object for transformed values.

Transforms the key in the response object.

  • key The key to be transformed.
  • value The value associated with the key.
  • acc The accumulator object for transformed values.
  • item The original item being transformed.

Transforms the response object by applying specific transformations to certain keys. Recursively transforms nested objects and arrays.

  • item The item to be transformed.

Returns any The transformed item.

Checks if the given URL duration is valid.

  • urlDuration The URL duration to validate.

Returns any true if the URL duration is valid, false otherwise.

Retrieves the job ID from a given path.

  • path string The path from which to extract the job ID.

Returns string The extracted job ID.

Retrieves the next page token from the given result object.

  • result any The result object from which to extract the next page token.

Returns string The extracted next page token.

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.

  • 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

Represents the optional parameters for creating a space.

The cloud provider where the space will be created. Supported values are “aws” and “azure”.

Type: Provider

Permission request on the space.

Type: SpacePermissionsLocal

Duration of soft deleted resources being retained before being permanently removed.

Type: SoftDeleteRetention

Duration of soft deleted resources being retained before being permanently removed.

The space will be deleted after 30 days.

Type: string

The space will be deleted after 180 days.

Type: string

The space will be deleted after 1 year.

Type: string

The space will never be deleted.

Type: string

The cloud provider where the space will be created. Supported values are “aws” and “azure”.

Represents a space in the file service.

A date time expressed in ISO 8601 format.

Type: Date

The TRN (Tenant Resource Name) of the user, application, or device that created the space.

Type: string

A date time expressed in ISO 8601 format.

Type: Date

The TRN (Tenant Resource Name) of the user, application, or device that last updated the space.

Type: string

Indicates whether the space has been deleted.

Type: boolean

A date time expressed in ISO 8601 format.

Type: Date

The unique identifier of the space.

Type: string

The TRN of the resource.

Type: string

The name of the space.

Type: string

The unique identifier of the root folder.

Type: string

The TRN of the root folder.

Type: string

Permission request on the space.

Type: SpacePermissionsLocal

Permissions that are evaluated for the user.

Type: PermissionsEvaluated

The type of the space.

Type: EntityType.SPACE

The unique identifier of the IAM account.

Type: string

The cloud provider of the space. Allowed values are aws, azure

Type: Provider

Duration of soft deleted resources being retained before being permanently removed.

Type: SoftDeleteRetention

The statistics of the space.

Type: SpaceStatistics

Describes the list of actions that can be performed on the resource by the current user.

Type: Capabilities

Represents a minimal space response.

A date time expressed in ISO 8601 format.

Type: Date

The TRN (Tenant Resource Name) of the user, application, or device that created the space.

Type: string

A date time expressed in ISO 8601 format.

Type: Date

The TRN (Tenant Resource Name) of the user, application, or device that last updated the space.

Type: string

Indicates whether the space has been deleted.

Type: boolean

The unique identifier of the space.

Type: string

The TRN of the resource.

Type: string

The name of the space.

Type: string

The unique identifier of the root folder.

Type: string

The type of the space.

Type: EntityType.SPACE

The TRN of the root folder.

Type: string

Space parameters that can updated.

The name of the space

Type: string

Update the permissions on the resource.

Type: SpaceUpdatePermissionsLocal

Duration of soft deleted resources being retained before being permanently removed.

Type: SoftDeleteRetention

Represents the optional parameters for deleting a space.

If true, the space and its content will be hard deleted. If false, the space and its content will be soft deleted.

Type: boolean

This needs to be set to true in order to delete a space that is not empty.

Type: boolean

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

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

Represents the statistics of a space.

The sum of sizes of all the active resources in the space in bytes

Type: number

The sum of size of all the active support files in the space in bytes

Type: number

The sum of sizes of all the soft deleted resources in the space in bytes

Type: number

The sum of sizes of all the soft deleted support files in the space in bytes

Type: number

The count of all active files in the space

Type: number

The count of all active folders in the space

Type: number

The count of all soft deleted files in the space

Type: number

The count of all soft deleted folders in the space

Type: number

The total storage used by the space and its contents, including versions, in bytes

Type: number

The date and time when the contents of the space were last updated

Type: Date

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")

Represents the type of an entity.

Permission request on the space.

The list of actors and their roles.

Type: Array<Acl>

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.

Type: Array<Acl>

Modify the current permissions by adding or removing permissions, without fully replacing the existing permissions.

Type: 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.

Type: Array<Acl>

Represent acl to remove

Type: Array<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

Represents the optional parameters for listing space children.

Maximum number of results to return per page.

Type: number

Token to retrieve the next page of results.

Type: string

Filter the children by status.

Type: Status

The date and time since when the resources were last updated.

Type: Date

Filter the children by resource type.

Type: EntityType

Include support files in the response.

Type: boolean

Duration of the download URL in seconds.

Type: number

Sort order of the results.

Type: string

Represents a list of resources in a space.

List of resources in the space.

Type: (Array<(FolderResponse | FileResponse | SpaceResponse)> | Array<(MinimalFolderResponse | MinimalFileResponse | MinimalSpaceResponse)>)

Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.

Type: string

Copyright (c) Trimble Inc.

SpaceManager has the highest level of permissions in the file space. Can perform all operations on the file space.

Type: string

ContentManager has almost as many permissions as SpaceManager, but cannot update/delete the file space.

Type: string

ContentContributor has all operations on the file and folder except for the ACL control.

Type: string

ContentViewer has all read permissions on the file and folder.

Type: string

The role assigned to the actor.

SpaceManager has the highest level of permissions in the file space. Can perform all operations on the file space.

Type: string

ContentManager has almost as many permissions as SpaceManager, but cannot update/delete the file space.

Type: string

ContentContributor has all operations on the file and folder except for the ACL control.

Type: string

ContentViewer has all read permissions on the file and folder.

Type: string

The actor identifier

The actor identifier. The actor could be a user or application or group or a device.

Type: string

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

The resource identifier from which the permissions are inherited.

Type: string

The TRN of the resource.

Type: string

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>

Lists the permissions inherited from the entire parent hierarchy applicable for the actor.

The list of actors and their roles.

Type: Array<InheritedAcl>

Represents the optional parameters required to create a folder.

Permission request on the folder.

Type: FolderPermissionsLocal

Clients may set additional information related to the folder here.

Type: Record<string, (object | string)>

Represents a folder entity.

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

True if the entity has been deleted

Type: boolean

A date time expressed in ISO 8601 format.

Type: Date

The unique identifier of the entity

Type: string

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

The unique identifier of the space where the entity is stored

Type: string

TRN of the space where the entity is stored

Type: string

The version of the entity

Type: string

Clients may set additional information related to the folder here.

Type: Record<string, (object | string)>

Full path of the folder.

Type: string

Folder identifier of the parent folder. Not present for root folder or for files not attached to any folder

Type: string

The TRN of the parent resource.

Type: string

The size of the folder in bytes.

Type: number

The statistics of the folder.

Type: FolderStatistics

Describes the list of actions that can be performed on the resource by the current user.

Type: Capabilities

Permissions that are set directly for an actor on the resource itself.

Type: FolderPermissionsLocal

Permissions that are evaluated for the user.

Type: PermissionsEvaluated

Lists the permissions inherited from the entire parent hierarchy applicable for the actor.

Type: PermissionsInherited

Represents a minimal folder entity.

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

True if the entity has been deleted

Type: boolean

The unique identifier of the entity

Type: string

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

The unique identifier of the space where the entity is stored

Type: string

TRN of the space where the entity is stored

Type: string

The version of the entity

Type: string

Folder parameters that can updated.

Clients may set additional information related to the file here.

Type: Record<string, (object | string)>

Update the permissions on the resource.

Type: FolderUpdatePermissionsLocal

Represents the optional parameters for deleting a folder.

If true, the folder and its content will be hard deleted. If false, the folder and its content will be soft deleted.

Type: boolean

This needs to be set to true in order to delete a folder that is not empty.

Type: boolean

Represents the optional parameters for copying a folder.

Optionally provide a new name for the copied folder

Type: string

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

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

The copyAcl query parameter determines whether to copy the ACL from the resource to the target resource.

Type: boolean

Permissions that are set directly for an actor on the resource itself.

Type: FolderPermissionsLocal

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

Represents the parameters for restoring a folder.

The target parent ID where the source folder needs to be restored.

Type: string

The new name of the folder.

Type: string

Represents the query parameters for listing folders.

The largest quantity of items to be returned in a single response (in a single page).

Type: number

The status query parameter is used to filter the resources based on their status.

Type: Status

Pagination token that can be used as input from a previous response to get the next page of results.

Type: string

The duration for which the upload URL is valid.

Type: string

Field to sort the results by.

Type: string

Sort order of the results.

Type: string

Whether to recursively list all children of subfolders.

Type: boolean

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)>)

Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.

Type: string

Represents a list of all versions of a folder.

List of folders in the space.

Type: (Array<FolderResponse> | Array<MinimalFolderResponse>)

Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.

Type: string

Extends FolderJobResponse

Represents the response for restoring a folder.

Folder job response.

Folder response.

Type: (FolderResponse | MinimalFolderResponse)

The ID of the job associated with the folder operation.

Type: string

Extends FolderJobResponse

Represents the response for copying a folder.

Extends FolderJobResponse

Represents the response for renaming a folder.

Extends FolderJobResponse

Represents the response for moving a folder.

Represents the statistics of a folder.

The sum of sizes of all the latest versions of the support files in the folder in bytes

Type: number

The count of files directly under the folder

Type: number

The count of folders directly under the folder

Type: number

The date and time when the contents of the folder were last updated

Type: Date

Permission request on the folder.

Specifies if permissions are inherited from the parent resources.

Type: boolean

The list of actors and their roles.

Type: Array<Acl>

Represents a folder permissions update request. Note: Both replaceAcl and updateAcl cannot be used in the same request.

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.

Type: Array<Acl>

Modify the current permissions by adding or removing permissions, without fully replacing the existing permissions.

Type: 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.

Type: Array<Acl>

Actors to be removed from the permissions.

Type: Array<AclActor>

Represents a file entity.

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

True if the entity has been deleted

Type: boolean

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

The TRN of the resource.

Type: string

The type of the file.

Type: EntityType.FILE

The unique identifier of the space where the file is stored

Type: string

TRN of the space where the entity is stored

Type: string

The version of the file

Type: string

Clients may set additional information related to the file here.

Type: Record<string, (object | string)>

Path where file is created.

Type: string

Parent Folder Id where the file was created.

Type: string

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

TRN of the parent resource.

Type: string

Permissions that are set directly for an actor on the resource itself.

Type: FilePermissionsLocal

Permissions that are evaluated for the user.

Type: PermissionsEvaluated

Lists the permissions inherited from the entire parent hierarchy applicable for the actor.

Type: PermissionsInherited

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

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

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

Whether the object consists of multiple parts that should be treated as a single file, such as with multipart uploads.

Type: boolean

Download HTTP response headers can be set here.

Type: Record<string, (object | string)>

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}

The download URL for the file.

Type: {url: string}

The status of the malware scan for the file.

Type: MalwareScanStatus

The result of the malware scan for the file. Only applicable when the MalwareScanStatus is INFECTED or CANNOT_SCAN.

Type: string

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

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

Describes the list of actions that can be performed on the resource by the current user.

Type: Capabilities

Checkout attached to the file.

Type: Checkout

Represents a minimal file entity.

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

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

The TRN of the resource.

Type: string

The type of the file.

Type: EntityType.FILE

The unique identifier of the space where the file is stored

Type: string

TRN of the space where the entity is stored

Type: string

The version of the file

Type: string

Permission request on the file.

Specifies if permissions are inherited from the parent resources.

Type: boolean

The list of actors and their roles.

Type: Array<Acl>

Lock attached to the file.

TRN of the user, application, or device that locked the file.

Type: string

The date and time when the file was locked.

Type: Date

The reason for locking the file.

Type: string

Checkout attached to the file.

TRN of the user, application, or device that checked out the file.

Type: string

The date and time when the file was checked out.

Type: Date

The reason for checking out the file.

Type: string

Represents the statistics of a file.

The sum of sizes of all the latest versions of the support files in the file in bytes

Type: number

The count of support files under the main file

Type: number

The size of decompressed file in bytes. This field is only applicable for file set.

Type: number

The date and time when the support files were last updated

Type: Date

Support file response object

The unique identifier of the support file

Type: string

The version of the support file

Type: string

Download URL of the support file

Type: string

TRN of the resource

Type: string

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 of the file.

Type: Status

The duration for which the download URL is valid.

Type: string

The status of the malware scan for the file.

Represents the parameters for updating a file.

Clients may set additional information related to the file here.

Type: Record<string, (object | string)>

Update the permissions on the resource.

Type: FileUpdatePermissionsLocal

Links to support files

Type: Record<string, SupportFileLinkDetails>

Represents a file permissions update request. Note: Both replaceAcl and updateAcl cannot be used in the same request.

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.

Type: Array<Acl>

Modify the current permissions by adding or removing permissions, without fully replacing the existing permissions.

Type: 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.

Type: Array<Acl>

The actors to be removed from the permissions.

Type: Array<AclActor>

Represents the list of support files to be linked.

The links to support files

Type: Record<string, SupportFileLinkDetails>

Support file link details

The unique identifier of the support file

Type: string

The version of the support file

Type: string

Represents the optional parameters for deleting a file.

If true, the file is permanently deleted.

Type: boolean

Represents the response for deleting a file.

The ID of the job associated with deletion of the file.

Type: string

Represents the parameters for restoring a file.

The target parent ID where the source file needs to be restored.

Type: string

The new name of the file.

Type: string

File job response

The ID of the job associated with the operation on the file.

Type: string

File response.

Type: (FileResponse | MinimalFileResponse)

Extends FileJobResponse

Represents the response for restoring a file.

Extends FileJobResponse

Represents the parameters for copying a file.

Represents the query parameters for listing file versions.

The largest quantity of items to be returned in a single response (in a single page).

Type: number

The status query parameter is used to filter the resources based on their status.

Type: Status

Pagination token that can be used as input from a previous response to get the next page of results.

Type: string

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

Represents the response for a list of files.

List of file objects.

Type: (Array<FileResponse> | Array<MinimalFileResponse>)

Token used to get the next result set on subsequent calls. If this is not returned, then this is the final page.

Type: string

Represents the configuration options for file uploads.

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

The size of each chunk in bytes for multipart upload. Provide the value in bytes.

Type: number

The number of concurrent requests to be made during the upload process. Valid only with multipart upload.

Type: number

Optional headers to be included in the upload request. Supported headers: “If-Match”, “If-None-Match”.

Type: Record<string, (string | Array<string>)>

Optional parameters for uploading a file.

Type: FileUploadOptionalParams

Represents the parameters for uploading a file.

The duration for which the upload URL is valid. @default: “60m”

Type: string

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

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

Type: boolean

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

Download HTTP response headers can be set here.

Type: Record<string, (object | string)>

Type: Record<string, (object | string)>

Permission request on the file.

Type: FilePermissionsLocal

True if the client will split the upload into multiple parts.

Type: boolean

The duration for which the upload URL is valid. @default: “60m”

Type: string

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

Type: boolean

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

Download HTTP response headers can be set here.

Type: Record<string, (object | string)>

Type: Record<string, (object | string)>

True if the client will split the upload into multiple parts.

Type: boolean

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

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

Whether the support file should be linked to the parent file.

Type: boolean

Extends FileUploadResponse

Represents the response object for uploading a file.

Represents the response object for uploading a file.

The unique identifier for the file. This is a UUID.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

The upload identifier of file

Type: string

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

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

The input file information

Type: FileInputUploadDetails

The TRN of the resource.

Type: string

Represents the details of a file input upload.

The unique identifier for the file. This is a UUID.

Type: string

TRN of the file.

Type: string

The unique identifier for the space where the file is stored.

Type: string

The TRN of the space where the file is stored.

Type: string

Name of the file that was created.

Type: string

Parent Folder Id where the file was created.

Type: string

TRN of the parent resource.

Type: string

Path where file is created

Type: string

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

The status of the upload operation, ‘UPLOADED’ status signifies a successful file upload.

Type: string

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

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

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

Download HTTP response headers can be set here.

Type: Record<string, (object | string)>

Clients may set additional information related to the file here.

Type: Record<string, (object | string)>

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}

Permission request on the file.

Type: FilePermissionsLocal

The upload URL and type of upload for the file.

Type: Upload

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

An optional key for the support file, Defaults to the file name if not specified.

Type: string

This optional field specifies the major version of the parent file.

Type: number

Indicates whether the support file should be linked to the parent file.

Type: boolean

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

Represents the type of file upload.

The file is uploaded in a single part.

Type: string

The file is uploaded in multiple parts.

Type: string

Represents the status of the upload operation.

Represents the response for uploading a chunk of a file.

The part number of the uploaded chunk.

Type: number

The entity tag (ETag) of the uploaded chunk.

Type: string

Represents the response for uploading a file.

The unique identifier for the file. This is a UUID.

Type: string

The upload identifier of file

Type: string

Represents the parameters for copying a file.

Optionally provide a new name for the copied file

Type: string

Version identifier of the file.

Type: string

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

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

The copyAcl query parameter determines whether to copy the ACL from the resource to the target resource.

Type: boolean

Permissions that are set directly for an actor on the resource itself.

Type: FilePermissionsLocal

Represents the configuration options for uploads.

The size of each chunk in bytes for multipart upload. Provide the value in bytes.

Type: number

The number of concurrent requests to be made during the upload process. Valid only with multipart upload.

Type: number

Represents the parameters for locking a file.

Reason to lock a file

Type: string

Optional parameters for checking out a file.

Reason to checkout a file

Type: string

Represents the content type of a file. It can be a string, Buffer, or Blob.

Type: (string | Buffer | Blob)

Copyright (c) Trimble Inc.

The unique identifier of the job.

Type: string

TRN of the resource.

Type: string

The type of job.

Type: JobType

The status of the job.

Type: JobStatus

The date and time when the job was created, expressed in ISO 8601 format.

Type: Date

The unique identifier of the user, application, or device that created the job (ActorTrn).

Type: string

The message associated with the job.

Type: string

Represents a response object for a job.

The unique identifier of the job.

Type: string

TRN of the resource.

Type: string

The type of job.

Type: JobType

The status of the job.

Type: JobStatus

The date and time when the job was created, expressed in ISO 8601 format.

Type: Date

The unique identifier of the user, application, or device that created the job (ActorTrn).

Type: string

The message associated with the job.

Type: string

The type of job

The status of the job

Copyright (c) Trimble Inc.

Type of event that occurred.

Type: EventType

Space identifier.

Type: string

The unique identifier of the upload.

Type: string

Percentage of the file uploaded.

Type: number

Events response model.

Type of event that occurred.

Type: EventType

Space identifier.

Type: string

The unique identifier of the upload.

Type: string

Percentage of the file uploaded.

Type: number

Copyright (c) Trimble Inc.

Indicates if the user has the capability to create an upload or create a folder under the resource

Type: boolean

Indicates if the user has the capability to read the given resource

Type: boolean

Indicates if the user has the capability to perform delete operation on the resource

Type: boolean

Indicates if the user has the capability to perform mutation operation on the resource

Type: boolean

Indicates if the user has the capability to modify the resource permissions

Type: boolean

Indicates if the user has the capability to lock the file

Type: boolean

Indicates if the user has the capability to unlock the file

Type: boolean

Indicates if the user has the capability to checkout the file

Type: boolean

Indicates if the user has the capability to checkin the file

Type: boolean

Describes the list of actions that can be performed on the resource by the current user.

Indicates if the user has the capability to create an upload or create a folder under the resource

Type: boolean

Indicates if the user has the capability to read the given resource

Type: boolean

Indicates if the user has the capability to perform delete operation on the resource

Type: boolean

Indicates if the user has the capability to perform mutation operation on the resource

Type: boolean

Indicates if the user has the capability to modify the resource permissions

Type: boolean

Indicates if the user has the capability to lock the file

Type: boolean

Indicates if the user has the capability to unlock the file

Type: boolean

Indicates if the user has the capability to checkout the file

Type: boolean

Indicates if the user has the capability to checkin the file

Type: boolean

Copyright (c) Trimble Inc.

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

The unique identifier of the entity

Type: string

TRN of the resource

Type: string

The unique identifier of the space

Type: string

TRN of the resource

Type: string

The unique identifier of the target folder

Type: string

TRN of the resource

Type: string

The output of the export

Type: Output

The status of the export job

Type: ExportStatus

Represents an export entity.

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

A date time expressed in ISO 8601 format.

Type: Date

userTrn (string) or applicationTrn (string) or deviceTrn (string) (ActorTrn)

Type: string

The unique identifier of the entity

Type: string

TRN of the resource

Type: string

The unique identifier of the space

Type: string

TRN of the resource

Type: string

The unique identifier of the target folder

Type: string

TRN of the resource

Type: string

The output of the export

Type: Output

The status of the export job

Type: ExportStatus

The status of the export job.

Represents an output of an export.

The download URL of the export

Type: string

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 of the resource.

Type: Status

The duration for which the download URL is valid.

Type: string

Extends ResourceGetOptionalParams

Represents the parameters for retrieving a resource in batch.

List of IDs of the resources to be fetched

Type: Array<string>

List of paths of the resources to be fetched

Type: Array<string>

Represents the response for a batch of resources.

List of items in the batch response.

Type: (Array<(FolderResponse | FileResponse)> | Array<(MinimalFolderResponse | MinimalFileResponse)>)

List of invalid items in the batch response.

Type: Array<InvalidItems>

Represents the invalid items in a batch response.

Unique identifier of the resource

Type: string

Path of the resource

Type: string

HTTP status code

Type: number

Type of the error

Type: string

Title of the error

Type: string

Detailed description of the error

Type: string

Error code

Type: string