Skip to content

PostmanPluginOptions

Defined in: plugins/holocron-plugin-postman/src/index.ts:17

Options for the Postman plugin: how the API key is resolved, the tooling settings, and test overrides.

optional baseUrl?: string

Defined in: plugins/holocron-plugin-postman/src/index.ts:21

Override base URL for tests.


optional cliToken?: string

Defined in: cli/kyber/dist/secrets.d.mts:125

The --token flag.

ResolveTokenInput.cliToken


optional collectionFiles?: string[]

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

Local Postman collection JSON files to push (relative to repoRoot), matched to Postman’s by info.name.

PostmanToolingOptions.collectionFiles


optional collectionName?: string

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

Collection name to import the spec as. Defaults to specName.

PostmanToolingOptions.collectionName


optional env?: ProcessEnv

Defined in: cli/kyber/dist/secrets.d.mts:127

The environment to read. Default process.env; a test passes its own.

ResolveTokenInput.env


optional envFiles?: string[]

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

Local Postman environment JSON files to push (relative to repoRoot).

PostmanToolingOptions.envFiles


optional fetch?: (input, init?) => Promise<Response>

Defined in: plugins/holocron-plugin-postman/src/index.ts:23

Override fetch for tests.

string | URL | Request

RequestInit

Promise<Response>


optional keyring?: (account) => string | null

Defined in: cli/kyber/dist/secrets.d.mts:129

Looks an account up in the keyring. Replaces the configured lookup and the credential store; a test passes its own.

string

string | null

ResolveTokenInput.keyring


optional org?: string

Defined in: cli/kyber/dist/secrets.d.mts:131

The active org. It selects the keyring account <service>.<org> first. Default: the variable orgEnvName names.

ResolveTokenInput.org


optional repoRoot?: string

Defined in: plugins/holocron-plugin-postman/src/index.ts:19

Working repo root. Used to resolve relative paths in specFile/envFiles. Defaults to process.cwd().

PostmanToolingOptions.repoRoot


optional spawn?: {(command): SpawnSyncReturns<NonSharedBuffer>; (command, options): SpawnSyncReturns<string>; (command, options): SpawnSyncReturns<NonSharedBuffer>; (command, options?): SpawnSyncReturns<string | NonSharedBuffer>; (command, args): SpawnSyncReturns<NonSharedBuffer>; (command, args, options): SpawnSyncReturns<string>; (command, args, options): SpawnSyncReturns<NonSharedBuffer>; (command, args?, options?): SpawnSyncReturns<string | NonSharedBuffer>; }

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

Override the spawn function the Postman CLI is run with, in tests.

(command): SpawnSyncReturns<NonSharedBuffer>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(command, options): SpawnSyncReturns<string>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

SpawnSyncOptionsWithStringEncoding

SpawnSyncReturns<string>

v0.11.12

(command, options): SpawnSyncReturns<NonSharedBuffer>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

SpawnSyncOptionsWithBufferEncoding

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(command, options?): SpawnSyncReturns<string | NonSharedBuffer>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

SpawnSyncOptions

SpawnSyncReturns<string | NonSharedBuffer>

v0.11.12

(command, args): SpawnSyncReturns<NonSharedBuffer>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(command, args, options): SpawnSyncReturns<string>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncOptionsWithStringEncoding

SpawnSyncReturns<string>

v0.11.12

(command, args, options): SpawnSyncReturns<NonSharedBuffer>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncOptionsWithBufferEncoding

SpawnSyncReturns<NonSharedBuffer>

v0.11.12

(command, args?, options?): SpawnSyncReturns<string | NonSharedBuffer>

The child_process.spawnSync() method is generally identical to spawn with the exception that the function will not return until the child process has fully closed. When a timeout has been encountered and killSignal is sent, the method won’t return until the process has completely exited. If the process intercepts and handles the SIGTERM signal and doesn’t exit, the parent process will wait until the child process has exited.

If the shell option is enabled, do not pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

string

The command to run.

readonly string[]

List of string arguments.

SpawnSyncOptions

SpawnSyncReturns<string | NonSharedBuffer>

v0.11.12

PostmanToolingOptions.spawn


optional specFile?: string

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

Local OpenAPI JSON path (relative to repoRoot).

PostmanToolingOptions.specFile


optional specName?: string

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

Display name in Postman. Defaults to the OpenAPI spec’s info.title.

PostmanToolingOptions.specName


optional workspace?: string

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

Workspace name; found, or made on sync() when no workspace has it.

PostmanToolingOptions.workspace


optional workspaceId?: string

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

Postman workspace id. Wins over workspace.

PostmanToolingOptions.workspaceId


optional workspaceType?: "team" | "personal"

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

Type of a workspace sync() makes. Defaults to personal.

PostmanToolingOptions.workspaceType