postman-cli-completion 1.41.2 → 1.43.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.41.2)
1
+ # Bash completion for Postman CLI (postman v1.43.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
@@ -141,7 +141,7 @@ _postman_collection_ai_readiness() {
141
141
 
142
142
  _postman_collection_run() {
143
143
  if [[ "$cur" == -* ]]; then
144
- COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --simulate -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
144
+ COMPREPLY=( $(compgen -W "-e --environment -g --globals -r --reporters --output --reporter-json-structure -n --iteration-count -d --iteration-data --iteration-data-dataset --iteration-data-view --dataset -i --global-var --env-var --integration-id --postman-api-key --alias --bail --ignore-redirects -x --suppress-exit-code --silent --disable-unicode --delay-request --timeout --timeout-request --timeout-script --working-dir --no-insecure-file-read -k --insecure --ssl-client-cert-list --ssl-client-cert --ssl-client-key --ssl-client-passphrase --ssl-extra-ca-certs --cookie-jar --export-cookie-jar --verbose --mock --simulate --report-events -h --help --reporter-json-export --reporter-junit-export --reporter-html-export --reporter-json-omitRequestBodies --reporter-html-omitRequestBodies --reporter-json-omitResponseBodies --reporter-html-omitResponseBodies --reporter-json-omitHeaders --reporter-html-omitHeaders --reporter-json-omitAllHeadersAndBody --reporter-html-omitAllHeadersAndBody" -- "$cur") )
145
145
  return 0
146
146
  fi
147
147
  case "$prev" in
@@ -258,7 +258,7 @@ _postman_runner() {
258
258
 
259
259
  _postman_runner_start() {
260
260
  if [[ "$cur" == -* ]]; then
261
- COMPREPLY=( $(compgen -W "--id --key --region --proxy --egress-proxy --egress-proxy-authz-url --ssl-extra-ca-certs --metrics --metrics-port -h --help" -- "$cur") )
261
+ COMPREPLY=( $(compgen -W "--id --key --region --proxy --egress-proxy --egress-proxy-authz-url --ssl-extra-ca-certs --metrics --metrics-port --report-events -h --help" -- "$cur") )
262
262
  return 0
263
263
  fi
264
264
  case "$prev" in
@@ -288,7 +288,7 @@ _postman_spec() {
288
288
 
289
289
  _postman_spec_lint() {
290
290
  if [[ "$cur" == -* ]]; then
291
- COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --workspace-id -h --help" -- "$cur") )
291
+ COMPREPLY=( $(compgen -W "-f --fail-severity -o --output --workspace-id --report-events -h --help" -- "$cur") )
292
292
  return 0
293
293
  fi
294
294
  case "$prev" in
@@ -359,7 +359,7 @@ _postman_workspace_prepare() {
359
359
 
360
360
  _postman_workspace_push() {
361
361
  if [[ "$cur" == -* ]]; then
362
- COMPREPLY=( $(compgen -W "--collections-dir --environments-dir --no-prepare -y --yes --verbose -h --help" -- "$cur") )
362
+ COMPREPLY=( $(compgen -W "--collections-dir --environments-dir --no-prepare -y --yes --verbose --report-events -h --help" -- "$cur") )
363
363
  return 0
364
364
  fi
365
365
  case "$prev" in
@@ -986,7 +986,7 @@ _postman_webhook() {
986
986
  if [[ "$cur" == -* ]]; then
987
987
  COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
988
988
  else
989
- COMPREPLY=( $(compgen -W "create start pause list delete status forward" -- "$cur") )
989
+ COMPREPLY=( $(compgen -W "create start pause list delete status requests forward" -- "$cur") )
990
990
  fi
991
991
  return 0
992
992
  fi
@@ -997,6 +997,7 @@ _postman_webhook() {
997
997
  list) _postman_webhook_list ;;
998
998
  delete) _postman_webhook_delete ;;
999
999
  status) _postman_webhook_status ;;
1000
+ requests) _postman_webhook_requests ;;
1000
1001
  forward) _postman_webhook_forward ;;
1001
1002
  esac
1002
1003
  }
@@ -1073,6 +1074,58 @@ _postman_webhook_status() {
1073
1074
  esac
1074
1075
  }
1075
1076
 
1077
+ _postman_webhook_requests() {
1078
+ if [[ -z "$subcmd" ]]; then
1079
+ if [[ "$cur" == -* ]]; then
1080
+ COMPREPLY=( $(compgen -W "-h --help" -- "$cur") )
1081
+ else
1082
+ COMPREPLY=( $(compgen -W "list describe replay" -- "$cur") )
1083
+ fi
1084
+ return 0
1085
+ fi
1086
+ case "$subcmd" in
1087
+ list) _postman_webhook_requests_list ;;
1088
+ describe) _postman_webhook_requests_describe ;;
1089
+ replay) _postman_webhook_requests_replay ;;
1090
+ esac
1091
+ }
1092
+
1093
+ _postman_webhook_requests_list() {
1094
+ if [[ "$cur" == -* ]]; then
1095
+ COMPREPLY=( $(compgen -W "-w --workspace --cursor --api-key -h --help" -- "$cur") )
1096
+ return 0
1097
+ fi
1098
+ case "$prev" in
1099
+ --api-key)
1100
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1101
+ return 0 ;;
1102
+ esac
1103
+ }
1104
+
1105
+ _postman_webhook_requests_describe() {
1106
+ if [[ "$cur" == -* ]]; then
1107
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
1108
+ return 0
1109
+ fi
1110
+ case "$prev" in
1111
+ --api-key)
1112
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1113
+ return 0 ;;
1114
+ esac
1115
+ }
1116
+
1117
+ _postman_webhook_requests_replay() {
1118
+ if [[ "$cur" == -* ]]; then
1119
+ COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
1120
+ return 0
1121
+ fi
1122
+ case "$prev" in
1123
+ --api-key)
1124
+ _postman_filematch '!*.@(pem|crt|key)' "$cur"
1125
+ return 0 ;;
1126
+ esac
1127
+ }
1128
+
1076
1129
  _postman_webhook_forward() {
1077
1130
  if [[ "$cur" == -* ]]; then
1078
1131
  COMPREPLY=( $(compgen -W "-w --workspace --api-key -h --help" -- "$cur") )
@@ -1,4 +1,4 @@
1
- # Fish completion for Postman CLI (postman v1.41.2)
1
+ # Fish completion for Postman CLI (postman v1.43.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
@@ -78,6 +78,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
78
78
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s e -l environment -d 'Specify an Id or path to a Postman Environment' -r
79
79
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s g -l globals -d 'Specify an Id or path to a file containing Postman Globals' -r
80
80
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s r -l reporters -d 'Specify the reporters to use for the run: cli,json,junit,html. For multiple reporters, provide their names as a comma-separated list (E.g., -r cli,json) (default: ["cli"])' -x -a 'cli json junit html'
81
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l output -d 'Write a YAML-based run report to the given folder. Creates a paired `<prefix>.collection-run-summary.yaml` (refreshed during the run) and streaming `<prefix>.collection-run-executions.yaml`, where prefix defaults to `<collection-slug>-<timestamp>`. Gotcha: --output streams run data to file and cannot be combined with the built-in reporters (-r/--reporter-*); doing so exits with an error. This keeps large runs from buffering an entire report in memory.' -x
81
82
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-json-structure -d '[Optional] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.'
82
83
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s n -l iteration-count -d 'Define the number of iterations to run' -x
83
84
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s d -l iteration-data -d 'Specify a data file to use for iterations (either JSON or CSV)' -r
@@ -112,6 +113,7 @@ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_
112
113
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l verbose -d 'Show detailed information of collection run and each request sent'
113
114
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l mock -d 'Start a mock server from manifest (.json) file' -r
114
115
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l simulate -d 'Start mock servers with fault-injection scenarios from a .sim.yaml file' -r
116
+ complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l report-events -d 'Send run results and analytics to Postman'
115
117
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -s h -l help -d 'display help for command'
116
118
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-json-export -d 'Path to save the report for the given reporter.' -r
117
119
  complete -c postman -n '__fish_seen_subcommand_from collection; and __fish_seen_subcommand_from run' -l reporter-junit-export -d 'Path to save the report for the given reporter.' -r
@@ -157,6 +159,7 @@ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subc
157
159
  complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -l ssl-extra-ca-certs -d 'Additional trusted CA certificates (PEM file, can contain multiple certs)' -r
158
160
  complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -l metrics -d 'Enable the metrics server for health checks'
159
161
  complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -l metrics-port -d 'Port for the metrics server (default: "9090")' -x
162
+ complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -l report-events -d 'Send run events and analytics to Postman'
160
163
  complete -c postman -n '__fish_seen_subcommand_from runner; and __fish_seen_subcommand_from start' -s h -l help -d 'display help for command'
161
164
 
162
165
  # ---------- spec ----------
@@ -167,6 +170,7 @@ complete -c postman -n '__fish_seen_subcommand_from spec' -s h -l help -d 'displ
167
170
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s f -l fail-severity -d 'Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: "ERROR")' -x
168
171
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s o -l output -d 'Output format for the results. [choices: "json", "csv"]' -x
169
172
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -l workspace-id -d 'The workspace ID to use for fetching governance rulesets.' -x
173
+ complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -l report-events -d 'Send lint results and analytics to Postman'
170
174
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from lint' -s h -l help -d 'display help for command'
171
175
  # ---------- spec ai-readiness ----------
172
176
  complete -c postman -n '__fish_seen_subcommand_from spec; and __fish_seen_subcommand_from ai-readiness' -s o -l output -d 'Output format for the results. [choices: "cli", "json", "html"]' -x
@@ -196,6 +200,7 @@ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_s
196
200
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l no-prepare -d 'Skip ID validation and auto-fix before pushing'
197
201
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s y -l yes -d 'Skip all confirmation prompts'
198
202
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l verbose -d 'Show detailed logging'
203
+ complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -l report-events -d 'Send workspace push events to Postman'
199
204
  complete -c postman -n '__fish_seen_subcommand_from workspace; and __fish_seen_subcommand_from push' -s h -l help -d 'display help for command'
200
205
 
201
206
  # ---------- performance ----------
@@ -542,13 +547,14 @@ complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subc
542
547
  complete -c postman -n '__fish_seen_subcommand_from search; and __fish_seen_subcommand_from environments' -s h -l help -d 'display help for command'
543
548
 
544
549
  # ---------- webhook ----------
545
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a create -d 'Create a new webhook and print its public URL.'
546
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a start -d 'Activate a webhook so it can receive requests.'
547
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a pause -d 'Pause a webhook so it no longer accepts requests.'
548
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a list -d 'List all webhooks in a workspace.'
549
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a delete -d 'Permanently delete a webhook.'
550
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a status -d 'Show details for a webhook.'
551
- complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status forward' -a forward -d 'Forward incoming webhook requests to a local port.'
550
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a create -d 'Create a new webhook and print its public URL.'
551
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a start -d 'Activate a webhook so it can receive requests.'
552
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a pause -d 'Pause a webhook so it no longer accepts requests.'
553
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a list -d 'List all webhooks in a workspace.'
554
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a delete -d 'Permanently delete a webhook.'
555
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a status -d 'Show details for a webhook.'
556
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a requests -d 'List, inspect, and replay requests received by a webhook.'
557
+ complete -c postman -n '__postman_using_subcommand webhook create start pause list delete status requests forward' -a forward -d 'Forward incoming webhook requests to a local port.'
552
558
  complete -c postman -n '__fish_seen_subcommand_from webhook' -s h -l help -d 'display help for command'
553
559
  # ---------- webhook create ----------
554
560
  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
@@ -575,6 +581,24 @@ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_sub
575
581
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from status' -s w -l workspace -d 'Postman workspace ID' -x
576
582
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from status' -l api-key -d 'Postman API key' -r
577
583
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from status' -s h -l help -d 'display help for command'
584
+ # ---------- webhook requests ----------
585
+ complete -c postman -n '__postman_using_subcommand requests list describe replay' -a list -d 'List recent requests received by a webhook.'
586
+ complete -c postman -n '__postman_using_subcommand requests list describe replay' -a describe -d 'Show details for a request received by a webhook.'
587
+ complete -c postman -n '__postman_using_subcommand requests list describe replay' -a replay -d 'Replay a request received by a webhook.'
588
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests' -s h -l help -d 'display help for command'
589
+ # ---------- webhook requests list ----------
590
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from list' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
591
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from list' -l cursor -d 'Pagination cursor returned by a previous request list response' -x
592
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from list' -l api-key -d 'Postman API key' -r
593
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from list' -s h -l help -d 'display help for command'
594
+ # ---------- webhook requests describe ----------
595
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
596
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -l api-key -d 'Postman API key' -r
597
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from describe' -s h -l help -d 'display help for command'
598
+ # ---------- webhook requests replay ----------
599
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from replay' -s w -l workspace -d 'Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)' -x
600
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from replay' -l api-key -d 'Postman API key' -r
601
+ complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from requests; and __fish_seen_subcommand_from replay' -s h -l help -d 'display help for command'
578
602
  # ---------- webhook forward ----------
579
603
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -s w -l workspace -d 'Postman workspace ID' -x
580
604
  complete -c postman -n '__fish_seen_subcommand_from webhook; and __fish_seen_subcommand_from forward' -l api-key -d 'Postman API key' -r
@@ -1,6 +1,6 @@
1
1
  #compdef postman
2
2
  compdef _postman postman
3
- # Zsh completion for Postman CLI (postman v1.41.2)
3
+ # Zsh completion for Postman CLI (postman v1.43.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
@@ -145,6 +145,7 @@ _postman_collection_run() {
145
145
  '(-e --environment)'{-e,--environment}'[Specify an Id or path to a Postman Environment]:path:_files -g "*.json"' \
146
146
  '(-g --globals)'{-g,--globals}'[Specify an Id or path to a file containing Postman Globals]:path:_files -g "*.json"' \
147
147
  '(-r --reporters)'{-r,--reporters}'[Specify the reporters to use for the run\: cli,json,junit,html. For multiple reporters, provide their names as a comma-separated list (E.g., -r cli,json) (default\: \["cli"\])]:reporter:(cli json junit html)' \
148
+ '--output[Write a YAML-based run report to the given folder. Creates a paired `<prefix>.collection-run-summary.yaml` (refreshed during the run) and streaming `<prefix>.collection-run-executions.yaml`, where prefix defaults to `<collection-slug>-<timestamp>`. Gotcha\: --output streams run data to file and cannot be combined with the built-in reporters (-r/--reporter-*); doing so exits with an error. This keeps large runs from buffering an entire report in memory.]:folder' \
148
149
  '--reporter-json-structure[\[Optional\] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.]' \
149
150
  '(-n --iteration-count)'{-n,--iteration-count}'[Define the number of iterations to run]:n' \
150
151
  '(-d --iteration-data)'{-d,--iteration-data}'[Specify a data file to use for iterations (either JSON or CSV)]:path:_files -g "*.(json|csv)"' \
@@ -179,6 +180,7 @@ _postman_collection_run() {
179
180
  '--verbose[Show detailed information of collection run and each request sent]' \
180
181
  '--mock[Start a mock server from manifest (.json) file]:path:_files -g "*.json"' \
181
182
  '--simulate[Start mock servers with fault-injection scenarios from a .sim.yaml file]:path:_files -g "*.(sim.yaml|yaml|yml)"' \
183
+ '--report-events[Send run results and analytics to Postman]' \
182
184
  '(-h --help)'{-h,--help}'[display help for command]' \
183
185
  '--reporter-json-export[Path to save the report for the given reporter.]:value:_files -g "*.(json|xml|html)"' \
184
186
  '--reporter-junit-export[Path to save the report for the given reporter.]:value:_files -g "*.(json|xml|html)"' \
@@ -276,6 +278,7 @@ _postman_runner_start() {
276
278
  '--ssl-extra-ca-certs[Additional trusted CA certificates (PEM file, can contain multiple certs)]:path:_files -g "*.(pem|crt|key)"' \
277
279
  '--metrics[Enable the metrics server for health checks]' \
278
280
  '--metrics-port[Port for the metrics server (default\: "9090")]:port' \
281
+ '--report-events[Send run events and analytics to Postman]' \
279
282
  '(-h --help)'{-h,--help}'[display help for command]'
280
283
  }
281
284
 
@@ -310,6 +313,7 @@ _postman_spec_lint() {
310
313
  '(-f --fail-severity)'{-f,--fail-severity}'[Results of this level or above will trigger a failure exit code. \[choices\: "error", "warning", "info", "hint"\] (default\: "ERROR")]:value' \
311
314
  '(-o --output)'{-o,--output}'[Output format for the results. \[choices\: "json", "csv"\]]:value' \
312
315
  '--workspace-id[The workspace ID to use for fetching governance rulesets.]:value' \
316
+ '--report-events[Send lint results and analytics to Postman]' \
313
317
  '(-h --help)'{-h,--help}'[display help for command]' \
314
318
  '*:spec:'
315
319
  }
@@ -395,6 +399,7 @@ _postman_workspace_push() {
395
399
  '--no-prepare[Skip ID validation and auto-fix before pushing]' \
396
400
  '(-y --yes)'{-y,--yes}'[Skip all confirmation prompts]' \
397
401
  '--verbose[Show detailed logging]' \
402
+ '--report-events[Send workspace push events to Postman]' \
398
403
  '(-h --help)'{-h,--help}'[display help for command]'
399
404
  }
400
405
 
@@ -1217,6 +1222,7 @@ _postman_webhook() {
1217
1222
  list) _postman_webhook_list ;;
1218
1223
  delete) _postman_webhook_delete ;;
1219
1224
  status) _postman_webhook_status ;;
1225
+ requests) _postman_webhook_requests ;;
1220
1226
  forward) _postman_webhook_forward ;;
1221
1227
  esac
1222
1228
  ;;
@@ -1232,6 +1238,7 @@ _postman_webhook_commands() {
1232
1238
  'list:List all webhooks in a workspace.'
1233
1239
  'delete:Permanently delete a webhook.'
1234
1240
  'status:Show details for a webhook.'
1241
+ 'requests:List, inspect, and replay requests received by a webhook.'
1235
1242
  'forward:Forward incoming webhook requests to a local port.'
1236
1243
  )
1237
1244
  _describe -t commands 'webhook command' sub
@@ -1284,6 +1291,59 @@ _postman_webhook_status() {
1284
1291
  '*:webhookId:'
1285
1292
  }
1286
1293
 
1294
+ _postman_webhook_requests() {
1295
+ local context state state_descr line
1296
+ typeset -A opt_args
1297
+ _arguments -C \
1298
+ '(-h --help)'{-h,--help}'[display help for command]' \
1299
+ '1: :_postman_webhook_requests_commands' \
1300
+ '*::arg:->args'
1301
+ case $state in
1302
+ args)
1303
+ case $words[1] in
1304
+ list) _postman_webhook_requests_list ;;
1305
+ describe) _postman_webhook_requests_describe ;;
1306
+ replay) _postman_webhook_requests_replay ;;
1307
+ esac
1308
+ ;;
1309
+ esac
1310
+ }
1311
+
1312
+ _postman_webhook_requests_commands() {
1313
+ local -a sub
1314
+ sub=(
1315
+ 'list:List recent requests received by a webhook.'
1316
+ 'describe:Show details for a request received by a webhook.'
1317
+ 'replay:Replay a request received by a webhook.'
1318
+ )
1319
+ _describe -t commands 'requests command' sub
1320
+ }
1321
+
1322
+ _postman_webhook_requests_list() {
1323
+ _arguments \
1324
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
1325
+ '--cursor[Pagination cursor returned by a previous request list response]:cursor' \
1326
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
1327
+ '(-h --help)'{-h,--help}'[display help for command]' \
1328
+ '*:webhookId:'
1329
+ }
1330
+
1331
+ _postman_webhook_requests_describe() {
1332
+ _arguments \
1333
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
1334
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
1335
+ '(-h --help)'{-h,--help}'[display help for command]' \
1336
+ '*:requestId:'
1337
+ }
1338
+
1339
+ _postman_webhook_requests_replay() {
1340
+ _arguments \
1341
+ '(-w --workspace)'{-w,--workspace}'[Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)]:workspaceId' \
1342
+ '--api-key[Postman API key]:key:_files -g "*.(pem|crt|key)"' \
1343
+ '(-h --help)'{-h,--help}'[display help for command]' \
1344
+ '*:requestId:'
1345
+ }
1346
+
1287
1347
  _postman_webhook_forward() {
1288
1348
  _arguments \
1289
1349
  '(-w --workspace)'{-w,--workspace}'[Postman workspace ID]:workspaceId' \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli-completion",
3
- "version": "1.41.2",
3
+ "version": "1.43.0",
4
4
  "description": "Shell completions for the Postman CLI (zsh, bash, fish)",
5
5
  "type": "module",
6
6
  "bin": {