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.
Extends
Section titled “Extends”ResolveTokenInputPostmanToolingOptions
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: plugins/holocron-plugin-postman/src/index.ts:21
Override base URL for tests.
cliToken?
Section titled “cliToken?”
optionalcliToken?:string
Defined in: cli/kyber/dist/secrets.d.mts:125
The --token flag.
Inherited from
Section titled “Inherited from”collectionFiles?
Section titled “collectionFiles?”
optionalcollectionFiles?: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.
Inherited from
Section titled “Inherited from”PostmanToolingOptions.collectionFiles
collectionName?
Section titled “collectionName?”
optionalcollectionName?:string
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:63
Collection name to import the spec as. Defaults to specName.
Inherited from
Section titled “Inherited from”PostmanToolingOptions.collectionName
optionalenv?:ProcessEnv
Defined in: cli/kyber/dist/secrets.d.mts:127
The environment to read. Default process.env; a test passes its own.
Inherited from
Section titled “Inherited from”envFiles?
Section titled “envFiles?”
optionalenvFiles?:string[]
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:65
Local Postman environment JSON files to push (relative to repoRoot).
Inherited from
Section titled “Inherited from”PostmanToolingOptions.envFiles
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: plugins/holocron-plugin-postman/src/index.ts:23
Override fetch for tests.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
keyring?
Section titled “keyring?”
optionalkeyring?: (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.
Parameters
Section titled “Parameters”account
Section titled “account”string
Returns
Section titled “Returns”string | null
Inherited from
Section titled “Inherited from”
optionalorg?: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.
Inherited from
Section titled “Inherited from”repoRoot?
Section titled “repoRoot?”
optionalrepoRoot?: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().
Overrides
Section titled “Overrides”PostmanToolingOptions.repoRoot
spawn?
Section titled “spawn?”
optionalspawn?: {(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.
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
options
Section titled “options”SpawnSyncOptionsWithStringEncoding
Returns
Section titled “Returns”SpawnSyncReturns<string>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
options
Section titled “options”SpawnSyncOptionsWithBufferEncoding
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
options?
Section titled “options?”SpawnSyncOptions
Returns
Section titled “Returns”SpawnSyncReturns<string | NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
options
Section titled “options”SpawnSyncOptionsWithStringEncoding
Returns
Section titled “Returns”SpawnSyncReturns<string>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
options
Section titled “options”SpawnSyncOptionsWithBufferEncoding
Returns
Section titled “Returns”SpawnSyncReturns<NonSharedBuffer>
v0.11.12
Call Signature
Section titled “Call Signature”(
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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The command to run.
readonly string[]
List of string arguments.
options?
Section titled “options?”SpawnSyncOptions
Returns
Section titled “Returns”SpawnSyncReturns<string | NonSharedBuffer>
v0.11.12
Inherited from
Section titled “Inherited from”PostmanToolingOptions.spawn
specFile?
Section titled “specFile?”
optionalspecFile?:string
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:59
Local OpenAPI JSON path (relative to repoRoot).
Inherited from
Section titled “Inherited from”PostmanToolingOptions.specFile
specName?
Section titled “specName?”
optionalspecName?:string
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:61
Display name in Postman. Defaults to the OpenAPI spec’s info.title.
Inherited from
Section titled “Inherited from”PostmanToolingOptions.specName
workspace?
Section titled “workspace?”
optionalworkspace?:string
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:53
Workspace name; found, or made on sync() when no workspace has it.
Inherited from
Section titled “Inherited from”PostmanToolingOptions.workspace
workspaceId?
Section titled “workspaceId?”
optionalworkspaceId?:string
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:51
Postman workspace id. Wins over workspace.
Inherited from
Section titled “Inherited from”PostmanToolingOptions.workspaceId
workspaceType?
Section titled “workspaceType?”
optionalworkspaceType?:"team"|"personal"
Defined in: plugins/holocron-plugin-postman/src/capabilities/tooling.ts:55
Type of a workspace sync() makes. Defaults to personal.
Inherited from
Section titled “Inherited from”PostmanToolingOptions.workspaceType