Skip to content
Navigation

getNpmPackage

Read an extension's releases as npm's packument for @buildr-custom/<org slug>.<repo slug>.<name>, or the versions of @buildr/sdk that this Forge publishes, for npm to resolve. An org's previous slugs name its packages too. Point the @buildr-custom and @buildr scopes at /npm/ in .npmrc.

GET
/npm/{package}

Path parameters

  • package
    string
    required

    An extension's npm package, @buildr-custom/<org slug>.<repo slug>.<name>, or @buildr/sdk

Returns

200

NpmPackument

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

ExtensionNotFound | OrgNotFound
JSON

One of the following:

  • ExtensionNotFoundEncoded
    • _tag
      ExtensionNotFound
      required
    • extension_name
      string
      required
      minLength: 1
  • 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