Skip to content
Navigation

getNpmPackageTarball

Download a release of @buildr-custom/<org slug>.<repo slug>.<name> as an npm tarball: its source files, a package.json that Forge writes, and an npm-shrinkwrap.json of the npm packages its build resolved. Forge packs a release once, when it publishes, so every download gives the same bytes.

GET
/npm/@buildr-custom/{name}/-/{version}

Path parameters

  • name
    string
    required

    An extension's npm package without its @buildr-custom/ scope, <org slug>.<repo slug>.<name>

  • version
    string
    required

Returns

200

Success

400

InvalidRequest
JSON
  • _tag
    InvalidRequest
    required
  • part
    path
    or
    query
    or
    headers
    or
    body
    required
  • issues
    array of
    object
    required
    • path
      array of
      required

      One of the following:

      • string
      • integer
    • message
      string
      required

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

ExtensionVersionNotFound | OrgNotFound
JSON

One of the following:

  • ExtensionVersionNotFoundEncoded
    • _tag
      ExtensionVersionNotFound
      required
    • extension_name
      string
      required
      minLength: 1
    • version
      string
      required
    • message
      string
      required
  • OrgNotFoundEncoded
    • _tag
      OrgNotFound
      required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure | ControlPlaneFailure
JSON

One of the following:

  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required
  • ControlPlaneFailureEncoded
    • _tag
      ControlPlaneFailure
      required
    • reason
      string
      required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close