postman-cli-completion 1.84.0 → 1.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- # Bash completion for Postman CLI (postman v1.84.0)
1
+ # Bash completion for Postman CLI (postman v1.85.0)
2
2
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
3
3
  # Source: spec/commands.json
4
4
  # https://github.com/yokawasa/postman-cli-completion
@@ -1236,7 +1236,7 @@ _postman_mock() {
1236
1236
 
1237
1237
  _postman_mock_generate() {
1238
1238
  if [[ "$cur" == -* ]]; then
1239
- COMPREPLY=( $(compgen -W "-o --output -n --name --port --mode --stateful --instructions --spec --collection --dataset --force -u --update -w --workspace --deploy --public -s --slug --timeout --api-key --json -x --suppress-exit-code -h --help" -- "$cur") )
1239
+ COMPREPLY=( $(compgen -W "-o --output -n --name --port --mode --stateful --instructions --strict --spec --collection --dataset --force -u --update -w --workspace --deploy --public -s --slug --timeout --api-key --json -x --suppress-exit-code -h --help" -- "$cur") )
1240
1240
  return 0
1241
1241
  fi
1242
1242
  case "$prev" in
@@ -3005,7 +3005,7 @@ _postman_webhook() {
3005
3005
  if [[ "$cur" == -* ]]; then
3006
3006
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
3007
3007
  else
3008
- COMPREPLY=( $(compgen -W "create start pause list delete status requests scripts forward" -- "$cur") )
3008
+ COMPREPLY=( $(compgen -W "create start pause list delete status requests scripts forward environment auth" -- "$cur") )
3009
3009
  fi
3010
3010
  return 0
3011
3011
  fi
@@ -3019,6 +3019,8 @@ _postman_webhook() {
3019
3019
  requests) _postman_webhook_requests ;;
3020
3020
  scripts) _postman_webhook_scripts ;;
3021
3021
  forward) _postman_webhook_forward ;;
3022
+ environment) _postman_webhook_environment ;;
3023
+ auth) _postman_webhook_auth ;;
3022
3024
  esac
3023
3025
  }
3024
3026
 
@@ -3184,4 +3186,86 @@ _postman_webhook_forward() {
3184
3186
  esac
3185
3187
  }
3186
3188
 
3189
+ _postman_webhook_environment() {
3190
+ if [[ -z "$subcmd" ]]; then
3191
+ if [[ "$cur" == -* ]]; then
3192
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
3193
+ else
3194
+ COMPREPLY=( $(compgen -W "get set" -- "$cur") )
3195
+ fi
3196
+ return 0
3197
+ fi
3198
+ case "$subcmd" in
3199
+ get) _postman_webhook_environment_get ;;
3200
+ set) _postman_webhook_environment_set ;;
3201
+ esac
3202
+ }
3203
+
3204
+ _postman_webhook_environment_get() {
3205
+ if [[ "$cur" == -* ]]; then
3206
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --timeout --json -h --help" -- "$cur") )
3207
+ return 0
3208
+ fi
3209
+ case "$prev" in
3210
+ --api-key)
3211
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3212
+ return 0 ;;
3213
+ esac
3214
+ }
3215
+
3216
+ _postman_webhook_environment_set() {
3217
+ if [[ "$cur" == -* ]]; then
3218
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --timeout --json -h --help" -- "$cur") )
3219
+ return 0
3220
+ fi
3221
+ case "$prev" in
3222
+ --api-key)
3223
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3224
+ return 0 ;;
3225
+ esac
3226
+ _postman_filematch '!*.@(json)' "$cur"
3227
+ }
3228
+
3229
+ _postman_webhook_auth() {
3230
+ if [[ -z "$subcmd" ]]; then
3231
+ if [[ "$cur" == -* ]]; then
3232
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
3233
+ else
3234
+ COMPREPLY=( $(compgen -W "get set" -- "$cur") )
3235
+ fi
3236
+ return 0
3237
+ fi
3238
+ case "$subcmd" in
3239
+ get) _postman_webhook_auth_get ;;
3240
+ set) _postman_webhook_auth_set ;;
3241
+ esac
3242
+ }
3243
+
3244
+ _postman_webhook_auth_get() {
3245
+ if [[ "$cur" == -* ]]; then
3246
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key --timeout --json -h --help" -- "$cur") )
3247
+ return 0
3248
+ fi
3249
+ case "$prev" in
3250
+ --api-key)
3251
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3252
+ return 0 ;;
3253
+ esac
3254
+ }
3255
+
3256
+ _postman_webhook_auth_set() {
3257
+ if [[ "$cur" == -* ]]; then
3258
+ COMPREPLY=( $(compgen -W "--type --username --password --secret --source --key -w --workspace --api-key --timeout --json -h --help" -- "$cur") )
3259
+ return 0
3260
+ fi
3261
+ case "$prev" in
3262
+ --key)
3263
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3264
+ return 0 ;;
3265
+ --api-key)
3266
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
3267
+ return 0 ;;
3268
+ esac
3269
+ }
3270
+
3187
3271
  complete -F _postman postman
@@ -1,4 +1,4 @@
1
- # Fish completion for Postman CLI (postman v1.84.0)
1
+ # Fish completion for Postman CLI (postman v1.85.0)
2
2
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
3
3
  # Source: spec/commands.json
4
4
  # https://github.com/yokawasa/postman-cli-completion
@@ -792,7 +792,7 @@ complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_sub
792
792
  complete -c postman -n '__fish_seen_subcommand_from globals; and __fish_seen_subcommand_from lint' -r -k -a '(__fish_complete_suffix .json)'
793
793
 
794
794
  # ---------- mock ----------
795
- complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or from a built-in sample shopping-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
795
+ complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a generate -d 'Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
796
796
  complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a run -d 'Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
797
797
  complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a push -d 'Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
798
798
  complete -c postman -n '__postman_using_subcommand mock generate run push deploy get list log delete' -a deploy -d 'Turn a mock in Postman cloud into a live mock server others can call over the internet.'
@@ -803,20 +803,21 @@ complete -c postman -n '__postman_using_subcommand mock generate run push deploy
803
803
  complete -c postman -n '__fish_seen_subcommand_from mock' -s h -l help -d 'display help for command'
804
804
  # ---------- mock generate ----------
805
805
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s o -l output -d 'Folder to save the mock in. Relative or absolute, e.g. ./postman/mocks/orders. Defaults to postman/mocks/<name>.' -r
806
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s n -l name -d 'Name for the mock. Taken from the source when you provide one; required for the sample.' -x
807
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l port -d 'Port the mock runs on (e.g. 4010) (default: 4500)' -x
806
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s n -l name -d 'Name for the mock. Taken from the source when you provide one; required for the sample. With --update, renames the mock.' -x
807
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l port -d 'Port the mock runs on (e.g. 4010; default 4500). With --update, changes the mock\'s port.' -x
808
808
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l mode -d 'How the mock behaves: static (replays examples, the default), stateful (keeps records: create, read, list, update, delete), or ai (stateful, plus realistic data and business rules; generated by Postman, needs `postman login`).' -x
809
809
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l stateful -d 'Same as --mode stateful. Generated offline for a local file, by Postman with --workspace, --spec, --collection or --dataset (validated, with seed data). Endpoints that are not CRUD-shaped stay static.'
810
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l instructions -d 'With --mode ai: guidance for the AI, e.g. "Orders can only be cancelled before they ship".' -x
810
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l instructions -d 'With --mode ai: guidance for the AI, up to 2000 characters, e.g. "Orders can only be cancelled before they ship". Recorded with the mock, so --update reuses them.' -x
811
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l strict -d 'With --mode ai: fail instead of falling back. Postman refuses a mock it would build without AI (exit 1, nothing written or saved). A mock whose AI rules reached only some operations, or one an older Postman built without AI anyway, is kept but exits 4.'
811
812
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l spec -d 'Generate from a spec in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.' -x
812
813
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l collection -d 'Generate from a collection in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.' -r
813
814
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l dataset -d 'Generate from a dataset: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.' -x
814
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l force -d 'Overwrite the mock\'s files if the target folder already has one'
815
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s u -l update -d 'Regenerate an existing mock in place, e.g. ./postman/mocks/orders. Without a source or --mode, it uses the ones the mock recorded. Cannot be used with --output.' -r
816
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s w -l workspace -d 'Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update, except with --deploy, where it only picks the workspace.' -x
815
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l force -d 'Replace the mock\'s files if the target folder already holds a mock. A folder with other files and no mock is never written to.'
816
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s u -l update -d 'Regenerate an existing mock in place: one in your repository by path (e.g. ./postman/mocks/orders), or one in Postman cloud by id. Without a source or --mode, it uses the ones the mock recorded (and an ai mock\'s instructions). Cannot be used with --output.' -r
817
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s w -l workspace -d 'Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update <mockPath>; with --deploy it only picks the workspace, and with --update <cloudMockId> it names the workspace the mock is in.' -x
817
818
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l deploy -d 'After generating, upload the mock to Postman cloud and deploy it to a live mock server (private by default). Uses --workspace, else the workspace linked to this project.'
818
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l public -d 'With --deploy, let anyone with the link reach the server (default: callers need an API key)'
819
- complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s s -l slug -d 'With --deploy, the short label used in the server\'s web address' -x
819
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l public -d 'With --deploy, let anyone with the link reach the server (default: callers need an API key). Requires --deploy.'
820
+ complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -s s -l slug -d 'With --deploy, the short label used in the server\'s web address. Requires --deploy.' -x
820
821
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l timeout -d 'How long to wait for Postman to generate the mock, in milliseconds (default 75000).' -x
821
822
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l api-key -d 'Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)' -r
822
823
  complete -c postman -n '__fish_seen_subcommand_from mock; and __fish_seen_subcommand_from generate' -l json -d 'Print the result as machine-readable data instead of a summary: the generated mock, or with --deploy the live server details'
@@ -1844,15 +1845,17 @@ complete -c postman -n '__fish_seen_subcommand_from update' -l check -d 'Check w
1844
1845
  complete -c postman -n '__fish_seen_subcommand_from update' -s h -l help -d 'display help for command'
1845
1846
 
1846
1847
  # ---------- webhook ----------
1847
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a create -d 'Create a new webhook and print its public URL.'
1848
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a start -d 'Activate a webhook so it can receive requests.'
1849
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a pause -d 'Pause a webhook so it no longer accepts requests.'
1850
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a list -d 'List all webhooks in a workspace.'
1851
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a delete -d 'Permanently delete a webhook.'
1852
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a status -d 'Show details for a webhook.'
1853
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a requests -d 'List, inspect, and replay requests received by a webhook.'
1854
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a scripts -d 'Create or update scripts executed by a webhook.'
1855
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward' -a forward -d 'Forward incoming webhook requests to a local port.'
1848
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a create -d 'Create a new webhook and print its public URL.'
1849
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a start -d 'Activate a webhook so it can receive requests.'
1850
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a pause -d 'Pause a webhook so it no longer accepts requests.'
1851
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a list -d 'List all webhooks in a workspace.'
1852
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a delete -d 'Permanently delete a webhook.'
1853
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a status -d 'Show details for a webhook.'
1854
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a requests -d 'List, inspect, and replay requests received by a webhook.'
1855
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a scripts -d 'Create or update scripts executed by a webhook.'
1856
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a forward -d 'Forward incoming webhook requests to a local port.'
1857
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a environment -d 'Get or set the cloud environment associated with a webhook.'
1858
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests scripts forward environment auth' -a auth -d 'Get or set authentication for incoming webhook requests.'
1856
1859
  complete -c postman -n '__fish_seen_subcommand_from webhook' -s h -l help -d 'display help for command'
1857
1860
  # ---------- webhook create ----------
1858
1861
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from create' -s t -l title -d 'Name for the webhook (default: "CLI Webhook")' -x
@@ -1910,3 +1913,42 @@ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_sub
1910
1913
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s w -l workspace -d 'Postman workspace ID' -x
1911
1914
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -l api-key -d 'Postman API key' -r
1912
1915
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s h -l help -d 'display help for command'
1916
+ # ---------- webhook environment ----------
1917
+ complete -c postman -n '__postman_using_subcommand environment get set' -a get -d 'Print the associated cloud environment ID.'
1918
+ complete -c postman -n '__postman_using_subcommand environment get set' -a set -d 'Associate a cloud environment ID with a webhook; local files are not supported.'
1919
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment' -s h -l help -d 'display help for command'
1920
+ # ---------- webhook environment get ----------
1921
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
1922
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key for CLI authentication' -r
1923
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -l timeout -d 'Request timeout in milliseconds (default: 30000)' -x
1924
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -l json -d 'Print the result as JSON'
1925
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
1926
+ # ---------- webhook environment set ----------
1927
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from set' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
1928
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from set' -l api-key -d 'Postman API key for CLI authentication' -r
1929
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from set' -l timeout -d 'Request timeout in milliseconds (default: 30000)' -x
1930
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from set' -l json -d 'Print the result as JSON'
1931
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from set' -s h -l help -d 'display help for command'
1932
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from environment; and __fish_seen_subcommand_from set' -r -k -a '(__fish_complete_suffix .json)'
1933
+ # ---------- webhook auth ----------
1934
+ complete -c postman -n '__postman_using_subcommand auth get set' -a get -d 'Show webhook authentication details without credential values.'
1935
+ complete -c postman -n '__postman_using_subcommand auth get set' -a set -d 'Set Basic or API key authentication, or disable authentication.'
1936
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth' -s h -l help -d 'display help for command'
1937
+ # ---------- webhook auth get ----------
1938
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from get' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
1939
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from get' -l api-key -d 'Postman API key for CLI authentication' -r
1940
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from get' -l timeout -d 'Request timeout in milliseconds (default: 30000)' -x
1941
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from get' -l json -d 'Print the result as JSON'
1942
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from get' -s h -l help -d 'display help for command'
1943
+ # ---------- webhook auth set ----------
1944
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l type -d 'Authentication type (choices: "basic", "api-key", "none")' -x
1945
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l username -d 'Basic auth username or variable reference' -x
1946
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l password -d 'Basic auth password or variable reference' -x
1947
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l secret -d 'Webhook API key value or variable reference' -x
1948
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l source -d 'Where incoming credentials are read (choices: "headers", "query", default: "headers")' -x
1949
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l key -d 'Header or query parameter name (default: Authorization for Basic, x-api-key for API key)' -r
1950
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
1951
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l api-key -d 'Postman API key for CLI authentication' -r
1952
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l timeout -d 'Request timeout in milliseconds (default: 30000)' -x
1953
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -l json -d 'Print the result as JSON'
1954
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from auth; and __fish_seen_subcommand_from set' -s h -l help -d 'display help for command'
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.84.0)
3
+ # Zsh completion for Postman CLI (postman v1.85.0)
4
4
  # Auto-generated by scripts/generate.mjs — DO NOT EDIT
5
5
  # Source: spec/commands.json
6
6
  # https://github.com/yokawasa/postman-cli-completion
@@ -1488,7 +1488,7 @@ _postman_mock() {
1488
1488
  _postman_mock_commands() {
1489
1489
  local -a sub
1490
1490
  sub=(
1491
- 'generate:Generate a mock from a Postman collection, an OpenAPI file or a dataset, or from a built-in sample shopping-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
1491
+ 'generate:Generate a mock from a Postman collection, an OpenAPI file or a dataset, or a static mock from a built-in sample shopping cart (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with --workspace. Add --deploy to also make it a live mock server.'
1492
1492
  'run:Start a mock using its path if it lives in your repository, or its id if it lives in Postman cloud (fetched and run locally).'
1493
1493
  'push:Upload a mock from your repository to Postman cloud (creates it the first time, updates it after).'
1494
1494
  'deploy:Turn a mock in Postman cloud into a live mock server others can call over the internet.'
@@ -1503,20 +1503,21 @@ _postman_mock_commands() {
1503
1503
  _postman_mock_generate() {
1504
1504
  _arguments \
1505
1505
  '(-o --output)'{-o,--output}'[Folder to save the mock in. Relative or absolute, e.g. ./postman/mocks/orders. Defaults to postman/mocks/<name>.]:dir:_files -g "*.json"' \
1506
- '(-n --name)'{-n,--name}'[Name for the mock. Taken from the source when you provide one; required for the sample.]:name' \
1507
- '--port[Port the mock runs on (e.g. 4010) (default\: 4500)]:port' \
1506
+ '(-n --name)'{-n,--name}'[Name for the mock. Taken from the source when you provide one; required for the sample. With --update, renames the mock.]:name' \
1507
+ '--port[Port the mock runs on (e.g. 4010; default 4500). With --update, changes the mock'\''s port.]:port' \
1508
1508
  '--mode[How the mock behaves\: static (replays examples, the default), stateful (keeps records\: create, read, list, update, delete), or ai (stateful, plus realistic data and business rules; generated by Postman, needs `postman login`).]:mode' \
1509
1509
  '--stateful[Same as --mode stateful. Generated offline for a local file, by Postman with --workspace, --spec, --collection or --dataset (validated, with seed data). Endpoints that are not CRUD-shaped stay static.]' \
1510
- '--instructions[With --mode ai\: guidance for the AI, e.g. "Orders can only be cancelled before they ship".]:text' \
1510
+ '--instructions[With --mode ai\: guidance for the AI, up to 2000 characters, e.g. "Orders can only be cancelled before they ship". Recorded with the mock, so --update reuses them.]:text' \
1511
+ '--strict[With --mode ai\: fail instead of falling back. Postman refuses a mock it would build without AI (exit 1, nothing written or saved). A mock whose AI rules reached only some operations, or one an older Postman built without AI anyway, is kept but exits 4.]' \
1511
1512
  '--spec[Generate from a spec in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.]:specId' \
1512
1513
  '--collection[Generate from a collection in Postman (by id) instead of a local file. With --workspace, the mock stays linked to it and is regenerated when it changes.]:collectionId:_files -g "*.json"' \
1513
1514
  '--dataset[Generate from a dataset\: its tables become resources and their first 20 rows the records. A dataset in Postman (by id) or a local .dataset.yaml (CSV and JSON sources). Generated by Postman in stateful (the default) or ai mode; AI sees the column names and types, never the rows.]:datasetIdOrPath' \
1514
- '--force[Overwrite the mock'\''s files if the target folder already has one]' \
1515
- '(-u --update)'{-u,--update}'[Regenerate an existing mock in place, e.g. ./postman/mocks/orders. Without a source or --mode, it uses the ones the mock recorded. Cannot be used with --output.]:mockPath:_files -g "*.json"' \
1516
- '(-w --workspace)'{-w,--workspace}'[Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update, except with --deploy, where it only picks the workspace.]:id' \
1515
+ '--force[Replace the mock'\''s files if the target folder already holds a mock. A folder with other files and no mock is never written to.]' \
1516
+ '(-u --update)'{-u,--update}'[Regenerate an existing mock in place\: one in your repository by path (e.g. ./postman/mocks/orders), or one in Postman cloud by id. Without a source or --mode, it uses the ones the mock recorded (and an ai mock'\''s instructions). Cannot be used with --output.]:mockPathOrId:_files -g "*.json"' \
1517
+ '(-w --workspace)'{-w,--workspace}'[Save the mock to this Postman cloud workspace (by id) instead of your repository. Cannot be used with --output, --force, or --update <mockPath>; with --deploy it only picks the workspace, and with --update <cloudMockId> it names the workspace the mock is in.]:id' \
1517
1518
  '--deploy[After generating, upload the mock to Postman cloud and deploy it to a live mock server (private by default). Uses --workspace, else the workspace linked to this project.]' \
1518
- '--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key)]' \
1519
- '(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address]:slug' \
1519
+ '--public[With --deploy, let anyone with the link reach the server (default\: callers need an API key). Requires --deploy.]' \
1520
+ '(-s --slug)'{-s,--slug}'[With --deploy, the short label used in the server'\''s web address. Requires --deploy.]:slug' \
1520
1521
  '--timeout[How long to wait for Postman to generate the mock, in milliseconds (default 75000).]:ms' \
1521
1522
  '--api-key[Postman API key for anything Postman generates, saves or deploys (defaults to your `postman login` session)]:key:_files -g "*.(pem|crt|key)"' \
1522
1523
  '--json[Print the result as machine-readable data instead of a summary\: the generated mock, or with --deploy the live server details]' \
@@ -3607,6 +3608,8 @@ _postman_webhook() {
3607
3608
  requests) _postman_webhook_requests ;;
3608
3609
  scripts) _postman_webhook_scripts ;;
3609
3610
  forward) _postman_webhook_forward ;;
3611
+ environment) _postman_webhook_environment ;;
3612
+ auth) _postman_webhook_auth ;;
3610
3613
  esac
3611
3614
  ;;
3612
3615
  esac
@@ -3624,6 +3627,8 @@ _postman_webhook_commands() {
3624
3627
  'requests:List, inspect, and replay requests received by a webhook.'
3625
3628
  'scripts:Create or update scripts executed by a webhook.'
3626
3629
  'forward:Forward incoming webhook requests to a local port.'
3630
+ 'environment:Get or set the cloud environment associated with a webhook.'
3631
+ 'auth:Get or set authentication for incoming webhook requests.'
3627
3632
  )
3628
3633
  _describe -t commands 'webhook command' sub
3629
3634
  }
@@ -3770,6 +3775,104 @@ _postman_webhook_forward() {
3770
3775
  '*:port:'
3771
3776
  }
3772
3777
 
3778
+ _postman_webhook_environment() {
3779
+ local context state state_descr line
3780
+ typeset -A opt_args
3781
+ _arguments -C \
3782
+ '(-h --help)'{-h,--help}'[display help for command]' \
3783
+ '1: :_postman_webhook_environment_commands' \
3784
+ '*::arg:->args'
3785
+ case $state in
3786
+ args)
3787
+ case $words[1] in
3788
+ get) _postman_webhook_environment_get ;;
3789
+ set) _postman_webhook_environment_set ;;
3790
+ esac
3791
+ ;;
3792
+ esac
3793
+ }
3794
+
3795
+ _postman_webhook_environment_commands() {
3796
+ local -a sub
3797
+ sub=(
3798
+ 'get:Print the associated cloud environment ID.'
3799
+ 'set:Associate a cloud environment ID with a webhook; local files are not supported.'
3800
+ )
3801
+ _describe -t commands 'environment command' sub
3802
+ }
3803
+
3804
+ _postman_webhook_environment_get() {
3805
+ _arguments \
3806
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
3807
+ '--api-key[Postman API key for CLI authentication]:key:_files -g "*.(pem|crt|key)"' \
3808
+ '--timeout[Request timeout in milliseconds (default\: 30000)]:ms' \
3809
+ '--json[Print the result as JSON]' \
3810
+ '(-h --help)'{-h,--help}'[display help for command]' \
3811
+ '*:webhookId:'
3812
+ }
3813
+
3814
+ _postman_webhook_environment_set() {
3815
+ _arguments \
3816
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
3817
+ '--api-key[Postman API key for CLI authentication]:key:_files -g "*.(pem|crt|key)"' \
3818
+ '--timeout[Request timeout in milliseconds (default\: 30000)]:ms' \
3819
+ '--json[Print the result as JSON]' \
3820
+ '(-h --help)'{-h,--help}'[display help for command]' \
3821
+ '*:environmentId:_files -g "*.json"'
3822
+ }
3823
+
3824
+ _postman_webhook_auth() {
3825
+ local context state state_descr line
3826
+ typeset -A opt_args
3827
+ _arguments -C \
3828
+ '(-h --help)'{-h,--help}'[display help for command]' \
3829
+ '1: :_postman_webhook_auth_commands' \
3830
+ '*::arg:->args'
3831
+ case $state in
3832
+ args)
3833
+ case $words[1] in
3834
+ get) _postman_webhook_auth_get ;;
3835
+ set) _postman_webhook_auth_set ;;
3836
+ esac
3837
+ ;;
3838
+ esac
3839
+ }
3840
+
3841
+ _postman_webhook_auth_commands() {
3842
+ local -a sub
3843
+ sub=(
3844
+ 'get:Show webhook authentication details without credential values.'
3845
+ 'set:Set Basic or API key authentication, or disable authentication.'
3846
+ )
3847
+ _describe -t commands 'auth command' sub
3848
+ }
3849
+
3850
+ _postman_webhook_auth_get() {
3851
+ _arguments \
3852
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
3853
+ '--api-key[Postman API key for CLI authentication]:key:_files -g "*.(pem|crt|key)"' \
3854
+ '--timeout[Request timeout in milliseconds (default\: 30000)]:ms' \
3855
+ '--json[Print the result as JSON]' \
3856
+ '(-h --help)'{-h,--help}'[display help for command]' \
3857
+ '*:webhookId:'
3858
+ }
3859
+
3860
+ _postman_webhook_auth_set() {
3861
+ _arguments \
3862
+ '--type[Authentication type (choices\: "basic", "api-key", "none")]:type' \
3863
+ '--username[Basic auth username or variable reference]:username' \
3864
+ '--password[Basic auth password or variable reference]:password' \
3865
+ '--secret[Webhook API key value or variable reference]:secret' \
3866
+ '--source[Where incoming credentials are read (choices\: "headers", "query", default\: "headers")]:source' \
3867
+ '--key[Header or query parameter name (default\: Authorization for Basic, x-api-key for API key)]:key:_files -g "*.(pem|crt|key)"' \
3868
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
3869
+ '--api-key[Postman API key for CLI authentication]:key:_files -g "*.(pem|crt|key)"' \
3870
+ '--timeout[Request timeout in milliseconds (default\: 30000)]:ms' \
3871
+ '--json[Print the result as JSON]' \
3872
+ '(-h --help)'{-h,--help}'[display help for command]' \
3873
+ '*:webhookId:'
3874
+ }
3875
+
3773
3876
  # When loaded via fpath + compinit, the file body becomes the function body of
3774
3877
  # `_postman`. In that case `funcstack[1]` is `_postman` and we must actually
3775
3878
  # invoke the completion. When sourced directly, this is a no-op — `_postman`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.84.0",
3
+ "version": "1.85.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {