exposed methods

Hierarchy (view full)

Constructors

Methods

  • Create a new Artifact.

    This is an advanced method - you are probably looking for createNewAssetVersionAndUploadBinary or createNewAssetVersionAndUploadTestResults.

    Parameters

    Returns Promise<CreateArtifactResponse>

  • Creates a new Asset Version for an existing asset, and uploads test results for that asset version. By default, this uses the existing Business Unit and Created By User for the Asset. If you need to change these, you can provide the IDs for them.

    Parameters

    Returns Promise<CompleteTestResultUploadResponse>

    The response from the GraphQL query, a createAssetVersion Object.

  • Create a new Test object for uploading files.

    This is an advanced method - you are probably looking for createNewAssetVersionAndUploadBinary or createNewAssetVersionAndUploadTestResults.

    Parameters

    Returns Promise<CreateTestResponse>

  • Download a report for a specific asset version and save it to a local file. This is a blocking call, and can sometimes take minutes to return if the report is very large.

    Returns Promise<void>

  • Download a report for a specific product and save it to a local file. This is a blocking call, and can sometimes take minutes to return if the report is very large.

    Parameters

    Returns Promise<void>

  • Download an SBOM for an Asset Version and save it to a local file. This is a blocking call, and can sometimes take minutes to return if the SBOM is very large.

    Parameters

    Returns Promise<void>

  • Blocking call: Initiates generation of a report, and returns a pre-signed URL for downloading the report. This may take several minutes to complete, depending on the size of the report.

    Returns Promise<string>

  • Blocking call: Initiates generation of an SBOM for the asset_version_id, and return a pre-signed URL for downloading the SBOM. This may take several minutes to complete, depending on the size of SBOM.

    Returns Promise<string>

  • Gets all assets in the organization. Uses pagination to get all results.

    Parameters

    Returns Promise<any[]>

  • Get all business units in the organization. NOTE: The return type here is Group. Uses pagination to get all results.

    Returns Promise<any[]>

  • Get all results from a paginated GraphQL query

    Parameters

    • query: string

      The GraphQL query string

    • Optionalvariables: Record<string, any>

      Variables to be used in the GraphQL query, by default None

    • Optionalfield: string

      The field in the response JSON that contains the results

    • Optionallimit: number

      The maximum number of results to return. By default, None to return all results. Limit cannot be greater than 1000.

    Returns Promise<any[]>

  • Parameters

    • query: string
    • Optionalvariables: Record<string, any>
    • Optionalfield: string
    • Optionallimit: number

    Returns Promise<any[]>

  • Get all products in the organization. Uses pagination to get all results.

    Returns Promise<any[]>

    Use: getProducts instead

  • Returns Promise<any[]>

  • Get all users in the organization. Uses pagination to get all results.

    Returns Promise<any[]>

  • Returns Promise<any[]>

  • Gets asset versions in the organization. Uses pagination to get all results.

    Parameters

    Returns Promise<any[]>

  • Gets all the Findings for an Asset Version. Uses pagination to get all results.

    Parameters

    Returns Promise<any[] | FindingsMeta>

  • Gets all the asset versions for a product.

    Parameters

    • productId: string

      Product ID to get asset versions for. If not provided, will get all asset versions in the organization.

    Returns Promise<any[]>

  • Parameters

    • productId: string

    Returns Promise<any[]>

  • Searches the SBOM of a specific asset version or the entire organization for matching software components. Search Methods: EXACT or CONTAINS An exact match will return only the software component whose name matches the name exactly. A contains match will return all software components whose name contains the search string.

    Parameters

    Returns Promise<SoftwareComponentInstance[]>

  • Send a GraphQL query to the API

    Parameters

    • organizationContext: string
    • query: string

      The GraphQL query string

    • Optionalvariables: Record<string, any>

      Variables to be used in the GraphQL query, by default null

    Returns Promise<any>

    • Response JSON
    • If the response status code is not 200
  • Parameters

    • organizationContext: string
    • query: string
    • Optionalvariables: Record<string, any>

    Returns Promise<any>

  • Updates the status of a findings or multiple findings. This is a blocking call.

    Parameters

    Returns Promise<any>