Skip to content

PostmanTooling

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:73

The Postman implementation of the tooling capability: syncs an OpenAPI spec, collection and environments into a workspace.

  • Tooling

new PostmanTooling(client, opts): PostmanTooling

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:83

() => object

PostmanToolingOptions

PostmanTooling

readonly key: "tooling"

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:75

The capability this class provides, always "tooling".

Tooling.key


readonly providerName: "postman" = "postman"

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:77

The provider name, "postman".

Tooling.providerName

createCollection(input): Promise<PostmanCollection>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:247

Creates a collection in the workspace from a Postman collection document.

unknown

string

Promise<PostmanCollection>


createEnvironment(input): Promise<PostmanEnvironment>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:296

Creates an environment in the workspace.

unknown

string

Promise<PostmanEnvironment>


createSpec(input): Promise<PostmanSpec>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:314

Creates an API spec in the workspace from the given file content.

string

string

string

string

string

Promise<PostmanSpec>


deleteCollection(uid): Promise<void>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:259

Deletes the collection with this uid.

string

Promise<void>


doctor(): Promise<ToolingDoctorReport>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:196

Checks the key and the configured workspace; reports the authenticated user and the workspace, or why either failed.

Promise<ToolingDoctorReport>

Tooling.doctor


export(input): Promise<ToolingExportResult>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:191

Writes each collection file in Postman’s schema 3.0 YAML layout under input.outDir by running the Postman CLI (postman collection migrate), one folder per collection. Environment files are reported as issues, not exported. Needs the CLI on the PATH and no API key: it never touches the workspace.

ToolingExportInput

Promise<ToolingExportResult>

Tooling.export


findCollectionByName(input): Promise<PostmanCollection | null>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:241

Finds a collection in the workspace by exact name, or null when there is none.

string

string

Promise<PostmanCollection | null>


findEnvironmentByName(input): Promise<PostmanEnvironment | null>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:284

Finds an environment in the workspace by exact name, or null when there is none.

string

string

Promise<PostmanEnvironment | null>


findSpecByName(input): Promise<PostmanSpec | null>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:308

Finds an API spec in the workspace by exact name, or null when there is none.

string

string

Promise<PostmanSpec | null>


getEnvironment(uid): Promise<PostmanEnvironment>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:290

Reads one environment with its variables.

string

Promise<PostmanEnvironment>


getMyself(): Promise<PostmanUser>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:229

Returns the authenticated Postman user.

Promise<PostmanUser>


importOpenApi(input): Promise<PostmanCollection>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:264

Imports an OpenAPI document into the workspace as a collection; throws when Postman returns none.

unknown

string

Promise<PostmanCollection>


listEnvironments(input): Promise<PostmanEnvironment[]>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:278

Lists the workspace’s environments.

string

Promise<PostmanEnvironment[]>


listWorkspaces(): Promise<PostmanWorkspace[]>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:235

Lists the workspaces the key can see.

Promise<PostmanWorkspace[]>


sync(): Promise<void>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:96

Sync the tool’s authoritative state from the repo.

Promise<void>

Tooling.sync


updateCollection(input): Promise<PostmanCollection>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:253

Replaces the collection with this uid.

unknown

string

Promise<PostmanCollection>


updateEnvironment(input): Promise<PostmanEnvironment>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:302

Replaces the environment with this uid.

unknown

string

Promise<PostmanEnvironment>


upsertSpecFile(input): Promise<void>

Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:330

Writes new content to a file of an existing spec.

string

string

string

Promise<void>